]> git.sur5r.net Git - bacula/bacula/blob - bacula/configure
Restore JobIds in right order + Tru64 porting
[bacula/bacula] / bacula / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57.
4 #
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization.  ##
11 ## --------------------- ##
12
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15   emulate sh
16   NULLCMD=:
17   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18   # is contrary to our usage.  Disable this feature.
19   alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21   set -o posix
22 fi
23
24 # Support unset when possible.
25 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
26   as_unset=unset
27 else
28   as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42   LC_TELEPHONE LC_TIME
43 do
44   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
45     eval $as_var=C; export $as_var
46   else
47     $as_unset $as_var
48   fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53   as_expr=expr
54 else
55   as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59   as_basename=basename
60 else
61   as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68          X"$0" : 'X\(//\)$' \| \
69          X"$0" : 'X\(/\)$' \| \
70          .     : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73           /^X\/\(\/\/\)$/{ s//\1/; q; }
74           /^X\/\(\/\).*/{ s//\1/; q; }
75           s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88   echo "#! /bin/sh" >conf$$.sh
89   echo  "exit 0"   >>conf$$.sh
90   chmod +x conf$$.sh
91   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92     PATH_SEPARATOR=';'
93   else
94     PATH_SEPARATOR=:
95   fi
96   rm -f conf$$.sh
97 fi
98
99
100   as_lineno_1=$LINENO
101   as_lineno_2=$LINENO
102   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103   test "x$as_lineno_1" != "x$as_lineno_2" &&
104   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105   # Find who we are.  Look in the path if we contain no path at all
106   # relative or not.
107   case $0 in
108     *[\\/]* ) as_myself=$0 ;;
109     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112   IFS=$as_save_IFS
113   test -z "$as_dir" && as_dir=.
114   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117        ;;
118   esac
119   # We did not find ourselves, most probably we were run as `sh COMMAND'
120   # in which case we are not to be found in the path.
121   if test "x$as_myself" = x; then
122     as_myself=$0
123   fi
124   if test ! -f "$as_myself"; then
125     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126    { (exit 1); exit 1; }; }
127   fi
128   case $CONFIG_SHELL in
129   '')
130     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133   IFS=$as_save_IFS
134   test -z "$as_dir" && as_dir=.
135   for as_base in sh bash ksh sh5; do
136          case $as_dir in
137          /*)
138            if ("$as_dir/$as_base" -c '
139   as_lineno_1=$LINENO
140   as_lineno_2=$LINENO
141   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142   test "x$as_lineno_1" != "x$as_lineno_2" &&
143   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146              CONFIG_SHELL=$as_dir/$as_base
147              export CONFIG_SHELL
148              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149            fi;;
150          esac
151        done
152 done
153 ;;
154   esac
155
156   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157   # uniformly replaced by the line number.  The first 'sed' inserts a
158   # line-number line before each line; the second 'sed' does the real
159   # work.  The second script uses 'N' to pair each line-number line
160   # with the numbered line, and appends trailing '-' during
161   # substitution so that $LINENO is not a special case at line end.
162   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164   sed '=' <$as_myself |
165     sed '
166       N
167       s,$,-,
168       : loop
169       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170       t loop
171       s,-$,,
172       s,^['$as_cr_digits']*\n,,
173     ' >$as_me.lineno &&
174   chmod +x $as_me.lineno ||
175     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176    { (exit 1); exit 1; }; }
177
178   # Don't try to exec as it changes $[0], causing all sort of problems
179   # (the dirname of $[0] is not the place where we might find the
180   # original and so on.  Autoconf is especially sensible to this).
181   . ./$as_me.lineno
182   # Exit status is that of the last command.
183   exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188   *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T='      ' ;;
190   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195   as_expr=expr
196 else
197   as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203   # We could just check for DJGPP; but this test a) works b) is more generic
204   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205   if test -f conf$$.exe; then
206     # Don't use ln at all; we don't have any links
207     as_ln_s='cp -p'
208   else
209     as_ln_s='ln -s'
210   fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212   as_ln_s=ln
213 else
214   as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219   as_mkdir_p=:
220 else
221   as_mkdir_p=false
222 fi
223
224 as_executable_p="test -f"
225
226 # Sed expression to map a string onto a valid CPP name.
227 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
228
229 # Sed expression to map a string onto a valid variable name.
230 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
231
232
233 # IFS
234 # We need space, tab and new line, in precisely that order.
235 as_nl='
236 '
237 IFS="   $as_nl"
238
239 # CDPATH.
240 $as_unset CDPATH
241
242
243 # Name of the host.
244 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
245 # so uname gets run too.
246 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
247
248 exec 6>&1
249
250 #
251 # Initializations.
252 #
253 ac_default_prefix=/usr/local
254 ac_config_libobj_dir=.
255 cross_compiling=no
256 subdirs=
257 MFLAGS=
258 MAKEFLAGS=
259 SHELL=${CONFIG_SHELL-/bin/sh}
260
261 # Maximum number of lines to put in a shell here document.
262 # This variable seems obsolete.  It should probably be removed, and
263 # only ac_max_sed_lines should be used.
264 : ${ac_max_here_lines=38}
265
266 # Identity of this package.
267 PACKAGE_NAME=
268 PACKAGE_TARNAME=
269 PACKAGE_VERSION=
270 PACKAGE_STRING=
271 PACKAGE_BUGREPORT=
272
273 ac_unique_file="src/version.h"
274 # Factoring default headers for most tests.
275 ac_includes_default="\
276 #include <stdio.h>
277 #if HAVE_SYS_TYPES_H
278 # include <sys/types.h>
279 #endif
280 #if HAVE_SYS_STAT_H
281 # include <sys/stat.h>
282 #endif
283 #if STDC_HEADERS
284 # include <stdlib.h>
285 # include <stddef.h>
286 #else
287 # if HAVE_STDLIB_H
288 #  include <stdlib.h>
289 # endif
290 #endif
291 #if HAVE_STRING_H
292 # if !STDC_HEADERS && HAVE_MEMORY_H
293 #  include <memory.h>
294 # endif
295 # include <string.h>
296 #endif
297 #if HAVE_STRINGS_H
298 # include <strings.h>
299 #endif
300 #if HAVE_INTTYPES_H
301 # include <inttypes.h>
302 #else
303 # if HAVE_STDINT_H
304 #  include <stdint.h>
305 # endif
306 #endif
307 #if HAVE_UNISTD_H
308 # include <unistd.h>
309 #endif"
310
311 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS BUILD_DIR TRUEPRG FALSEPRG VERSION DATE LSMDATE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX CPP EGREP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA RANLIB ac_ct_RANLIB MV RM CP SED AWK ECHO CMP TBL AR OPENSSL MTX PKGCONFIG WXCONFIG ARFLAGS MAKE_SHELL LOCAL_LIBS LOCAL_CFLAGS LOCAL_LDFLAGS LOCAL_DEFS build build_cpu build_vendor build_os host host_cpu host_vendor host_os HAVE_SUN_OS_TRUE HAVE_SUN_OS_FALSE HAVE_OSF1_OS_TRUE HAVE_OSF1_OS_FALSE HAVE_AIX_OS_TRUE HAVE_AIX_OS_FALSE HAVE_HPUX_OS_TRUE HAVE_HPUX_OS_FALSE HAVE_LINUX_OS_TRUE HAVE_LINUX_OS_FALSE HAVE_FREEBSD_OS_TRUE HAVE_FREEBSD_OS_FALSE HAVE_NETBSD_OS_TRUE HAVE_NETBSD_OS_FALSE HAVE_OPENBSD_OS_TRUE HAVE_OPENBSD_OS_FALSE HAVE_BSDI_OS_TRUE HAVE_BSDI_OS_FALSE HAVE_SGI_OS_TRUE HAVE_SGI_OS_FALSE HAVE_IRIX_OS_TRUE HAVE_IRIX_OS_FALSE HAVE_DARWIN_OS_TRUE HAVE_DARWIN_OS_FALSE INSIDE_GNOME_COMMON_TRUE INSIDE_GNOME_COMMON_FALSE MSGFMT GNOME_INCLUDEDIR GNOMEUI_LIBS GNOME_LIBDIR GNOME_LIBS GNOMEGNORBA_LIBS GTKXMHTML_LIBS ZVT_LIBS GNOME_CONFIG ORBIT_CONFIG ORBIT_IDL HAVE_ORBIT_TRUE HAVE_ORBIT_FALSE ORBIT_CFLAGS ORBIT_LIBS HAVE_GNORBA_TRUE HAVE_GNORBA_FALSE GNORBA_CFLAGS GNORBA_LIBS GNOME_APPLETS_LIBS GNOME_DOCKLETS_LIBS GNOME_CAPPLET_LIBS GNOME_DIR WXCONS_CPPFLAGS WXCONS_LDFLAGS WX_DIR TTOOL_LDFLAGS STATIC_FD STATIC_SD STATIC_DIR STATIC_CONS STATIC_GNOME_CONS STATIC_WX_CONS ALL_DIRS CONS_INC CONS_OBJ CONS_SRC CONS_LIBS CONS_LDFLAGS READLINE_SRC 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 SBINPERM SQL_LFLAGS SQL_INCLUDE SQL_BINDIR cats DB_NAME GETCONF ac_ct_GETCONF X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS LIBOBJS ALLOCA FDLIBS DEBUG DINCLUDE DLIB DB_LIBS WCFLAGS WLDFLAGS OBJLIST hostname TAPEDRIVE PSCMD WIN32 MACOSX DISTNAME DISTVER LTLIBOBJS'
312 ac_subst_files='MCOMMON'
313
314 # Initialize some variables set by options.
315 ac_init_help=
316 ac_init_version=false
317 # The variables have the same names as the options, with
318 # dashes changed to underlines.
319 cache_file=/dev/null
320 exec_prefix=NONE
321 no_create=
322 no_recursion=
323 prefix=NONE
324 program_prefix=NONE
325 program_suffix=NONE
326 program_transform_name=s,x,x,
327 silent=
328 site=
329 srcdir=
330 verbose=
331 x_includes=NONE
332 x_libraries=NONE
333
334 # Installation directory options.
335 # These are left unexpanded so users can "make install exec_prefix=/foo"
336 # and all the variables that are supposed to be based on exec_prefix
337 # by default will actually change.
338 # Use braces instead of parens because sh, perl, etc. also accept them.
339 bindir='${exec_prefix}/bin'
340 sbindir='${exec_prefix}/sbin'
341 libexecdir='${exec_prefix}/libexec'
342 datadir='${prefix}/share'
343 sysconfdir='${prefix}/etc'
344 sharedstatedir='${prefix}/com'
345 localstatedir='${prefix}/var'
346 libdir='${exec_prefix}/lib'
347 includedir='${prefix}/include'
348 oldincludedir='/usr/include'
349 infodir='${prefix}/info'
350 mandir='${prefix}/man'
351
352 ac_prev=
353 for ac_option
354 do
355   # If the previous option needs an argument, assign it.
356   if test -n "$ac_prev"; then
357     eval "$ac_prev=\$ac_option"
358     ac_prev=
359     continue
360   fi
361
362   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
363
364   # Accept the important Cygnus configure options, so we can diagnose typos.
365
366   case $ac_option in
367
368   -bindir | --bindir | --bindi | --bind | --bin | --bi)
369     ac_prev=bindir ;;
370   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
371     bindir=$ac_optarg ;;
372
373   -build | --build | --buil | --bui | --bu)
374     ac_prev=build_alias ;;
375   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
376     build_alias=$ac_optarg ;;
377
378   -cache-file | --cache-file | --cache-fil | --cache-fi \
379   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
380     ac_prev=cache_file ;;
381   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
382   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
383     cache_file=$ac_optarg ;;
384
385   --config-cache | -C)
386     cache_file=config.cache ;;
387
388   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
389     ac_prev=datadir ;;
390   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
391   | --da=*)
392     datadir=$ac_optarg ;;
393
394   -disable-* | --disable-*)
395     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
396     # Reject names that are not valid shell variable names.
397     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
398       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
399    { (exit 1); exit 1; }; }
400     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
401     eval "enable_$ac_feature=no" ;;
402
403   -enable-* | --enable-*)
404     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
405     # Reject names that are not valid shell variable names.
406     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
407       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
408    { (exit 1); exit 1; }; }
409     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
410     case $ac_option in
411       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
412       *) ac_optarg=yes ;;
413     esac
414     eval "enable_$ac_feature='$ac_optarg'" ;;
415
416   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
417   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
418   | --exec | --exe | --ex)
419     ac_prev=exec_prefix ;;
420   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
421   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
422   | --exec=* | --exe=* | --ex=*)
423     exec_prefix=$ac_optarg ;;
424
425   -gas | --gas | --ga | --g)
426     # Obsolete; use --with-gas.
427     with_gas=yes ;;
428
429   -help | --help | --hel | --he | -h)
430     ac_init_help=long ;;
431   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
432     ac_init_help=recursive ;;
433   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
434     ac_init_help=short ;;
435
436   -host | --host | --hos | --ho)
437     ac_prev=host_alias ;;
438   -host=* | --host=* | --hos=* | --ho=*)
439     host_alias=$ac_optarg ;;
440
441   -includedir | --includedir | --includedi | --included | --include \
442   | --includ | --inclu | --incl | --inc)
443     ac_prev=includedir ;;
444   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
445   | --includ=* | --inclu=* | --incl=* | --inc=*)
446     includedir=$ac_optarg ;;
447
448   -infodir | --infodir | --infodi | --infod | --info | --inf)
449     ac_prev=infodir ;;
450   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
451     infodir=$ac_optarg ;;
452
453   -libdir | --libdir | --libdi | --libd)
454     ac_prev=libdir ;;
455   -libdir=* | --libdir=* | --libdi=* | --libd=*)
456     libdir=$ac_optarg ;;
457
458   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
459   | --libexe | --libex | --libe)
460     ac_prev=libexecdir ;;
461   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
462   | --libexe=* | --libex=* | --libe=*)
463     libexecdir=$ac_optarg ;;
464
465   -localstatedir | --localstatedir | --localstatedi | --localstated \
466   | --localstate | --localstat | --localsta | --localst \
467   | --locals | --local | --loca | --loc | --lo)
468     ac_prev=localstatedir ;;
469   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
470   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
471   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
472     localstatedir=$ac_optarg ;;
473
474   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
475     ac_prev=mandir ;;
476   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
477     mandir=$ac_optarg ;;
478
479   -nfp | --nfp | --nf)
480     # Obsolete; use --without-fp.
481     with_fp=no ;;
482
483   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
484   | --no-cr | --no-c | -n)
485     no_create=yes ;;
486
487   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
488   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
489     no_recursion=yes ;;
490
491   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
492   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
493   | --oldin | --oldi | --old | --ol | --o)
494     ac_prev=oldincludedir ;;
495   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
496   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
497   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
498     oldincludedir=$ac_optarg ;;
499
500   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
501     ac_prev=prefix ;;
502   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
503     prefix=$ac_optarg ;;
504
505   -program-prefix | --program-prefix | --program-prefi | --program-pref \
506   | --program-pre | --program-pr | --program-p)
507     ac_prev=program_prefix ;;
508   -program-prefix=* | --program-prefix=* | --program-prefi=* \
509   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
510     program_prefix=$ac_optarg ;;
511
512   -program-suffix | --program-suffix | --program-suffi | --program-suff \
513   | --program-suf | --program-su | --program-s)
514     ac_prev=program_suffix ;;
515   -program-suffix=* | --program-suffix=* | --program-suffi=* \
516   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
517     program_suffix=$ac_optarg ;;
518
519   -program-transform-name | --program-transform-name \
520   | --program-transform-nam | --program-transform-na \
521   | --program-transform-n | --program-transform- \
522   | --program-transform | --program-transfor \
523   | --program-transfo | --program-transf \
524   | --program-trans | --program-tran \
525   | --progr-tra | --program-tr | --program-t)
526     ac_prev=program_transform_name ;;
527   -program-transform-name=* | --program-transform-name=* \
528   | --program-transform-nam=* | --program-transform-na=* \
529   | --program-transform-n=* | --program-transform-=* \
530   | --program-transform=* | --program-transfor=* \
531   | --program-transfo=* | --program-transf=* \
532   | --program-trans=* | --program-tran=* \
533   | --progr-tra=* | --program-tr=* | --program-t=*)
534     program_transform_name=$ac_optarg ;;
535
536   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
537   | -silent | --silent | --silen | --sile | --sil)
538     silent=yes ;;
539
540   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
541     ac_prev=sbindir ;;
542   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
543   | --sbi=* | --sb=*)
544     sbindir=$ac_optarg ;;
545
546   -sharedstatedir | --sharedstatedir | --sharedstatedi \
547   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
548   | --sharedst | --shareds | --shared | --share | --shar \
549   | --sha | --sh)
550     ac_prev=sharedstatedir ;;
551   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
552   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
553   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
554   | --sha=* | --sh=*)
555     sharedstatedir=$ac_optarg ;;
556
557   -site | --site | --sit)
558     ac_prev=site ;;
559   -site=* | --site=* | --sit=*)
560     site=$ac_optarg ;;
561
562   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
563     ac_prev=srcdir ;;
564   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
565     srcdir=$ac_optarg ;;
566
567   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
568   | --syscon | --sysco | --sysc | --sys | --sy)
569     ac_prev=sysconfdir ;;
570   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
571   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
572     sysconfdir=$ac_optarg ;;
573
574   -target | --target | --targe | --targ | --tar | --ta | --t)
575     ac_prev=target_alias ;;
576   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
577     target_alias=$ac_optarg ;;
578
579   -v | -verbose | --verbose | --verbos | --verbo | --verb)
580     verbose=yes ;;
581
582   -version | --version | --versio | --versi | --vers | -V)
583     ac_init_version=: ;;
584
585   -with-* | --with-*)
586     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
587     # Reject names that are not valid shell variable names.
588     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
589       { echo "$as_me: error: invalid package name: $ac_package" >&2
590    { (exit 1); exit 1; }; }
591     ac_package=`echo $ac_package| sed 's/-/_/g'`
592     case $ac_option in
593       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
594       *) ac_optarg=yes ;;
595     esac
596     eval "with_$ac_package='$ac_optarg'" ;;
597
598   -without-* | --without-*)
599     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
600     # Reject names that are not valid shell variable names.
601     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
602       { echo "$as_me: error: invalid package name: $ac_package" >&2
603    { (exit 1); exit 1; }; }
604     ac_package=`echo $ac_package | sed 's/-/_/g'`
605     eval "with_$ac_package=no" ;;
606
607   --x)
608     # Obsolete; use --with-x.
609     with_x=yes ;;
610
611   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
612   | --x-incl | --x-inc | --x-in | --x-i)
613     ac_prev=x_includes ;;
614   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
615   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
616     x_includes=$ac_optarg ;;
617
618   -x-libraries | --x-libraries | --x-librarie | --x-librari \
619   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
620     ac_prev=x_libraries ;;
621   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
622   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
623     x_libraries=$ac_optarg ;;
624
625   -*) { echo "$as_me: error: unrecognized option: $ac_option
626 Try \`$0 --help' for more information." >&2
627    { (exit 1); exit 1; }; }
628     ;;
629
630   *=*)
631     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
632     # Reject names that are not valid shell variable names.
633     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
634       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
635    { (exit 1); exit 1; }; }
636     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
637     eval "$ac_envvar='$ac_optarg'"
638     export $ac_envvar ;;
639
640   *)
641     # FIXME: should be removed in autoconf 3.0.
642     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
643     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
644       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
645     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
646     ;;
647
648   esac
649 done
650
651 if test -n "$ac_prev"; then
652   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
653   { echo "$as_me: error: missing argument to $ac_option" >&2
654    { (exit 1); exit 1; }; }
655 fi
656
657 # Be sure to have absolute paths.
658 for ac_var in exec_prefix prefix
659 do
660   eval ac_val=$`echo $ac_var`
661   case $ac_val in
662     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
663     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
664    { (exit 1); exit 1; }; };;
665   esac
666 done
667
668 # Be sure to have absolute paths.
669 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
670               localstatedir libdir includedir oldincludedir infodir mandir
671 do
672   eval ac_val=$`echo $ac_var`
673   case $ac_val in
674     [\\/$]* | ?:[\\/]* ) ;;
675     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
676    { (exit 1); exit 1; }; };;
677   esac
678 done
679
680 # There might be people who depend on the old broken behavior: `$host'
681 # used to hold the argument of --host etc.
682 # FIXME: To remove some day.
683 build=$build_alias
684 host=$host_alias
685 target=$target_alias
686
687 # FIXME: To remove some day.
688 if test "x$host_alias" != x; then
689   if test "x$build_alias" = x; then
690     cross_compiling=maybe
691     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
692     If a cross compiler is detected then cross compile mode will be used." >&2
693   elif test "x$build_alias" != "x$host_alias"; then
694     cross_compiling=yes
695   fi
696 fi
697
698 ac_tool_prefix=
699 test -n "$host_alias" && ac_tool_prefix=$host_alias-
700
701 test "$silent" = yes && exec 6>/dev/null
702
703
704 # Find the source files, if location was not specified.
705 if test -z "$srcdir"; then
706   ac_srcdir_defaulted=yes
707   # Try the directory containing this script, then its parent.
708   ac_confdir=`(dirname "$0") 2>/dev/null ||
709 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
710          X"$0" : 'X\(//\)[^/]' \| \
711          X"$0" : 'X\(//\)$' \| \
712          X"$0" : 'X\(/\)' \| \
713          .     : '\(.\)' 2>/dev/null ||
714 echo X"$0" |
715     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
716           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
717           /^X\(\/\/\)$/{ s//\1/; q; }
718           /^X\(\/\).*/{ s//\1/; q; }
719           s/.*/./; q'`
720   srcdir=$ac_confdir
721   if test ! -r $srcdir/$ac_unique_file; then
722     srcdir=..
723   fi
724 else
725   ac_srcdir_defaulted=no
726 fi
727 if test ! -r $srcdir/$ac_unique_file; then
728   if test "$ac_srcdir_defaulted" = yes; then
729     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
730    { (exit 1); exit 1; }; }
731   else
732     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
733    { (exit 1); exit 1; }; }
734   fi
735 fi
736 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
737   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
738    { (exit 1); exit 1; }; }
739 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
740 ac_env_build_alias_set=${build_alias+set}
741 ac_env_build_alias_value=$build_alias
742 ac_cv_env_build_alias_set=${build_alias+set}
743 ac_cv_env_build_alias_value=$build_alias
744 ac_env_host_alias_set=${host_alias+set}
745 ac_env_host_alias_value=$host_alias
746 ac_cv_env_host_alias_set=${host_alias+set}
747 ac_cv_env_host_alias_value=$host_alias
748 ac_env_target_alias_set=${target_alias+set}
749 ac_env_target_alias_value=$target_alias
750 ac_cv_env_target_alias_set=${target_alias+set}
751 ac_cv_env_target_alias_value=$target_alias
752 ac_env_CC_set=${CC+set}
753 ac_env_CC_value=$CC
754 ac_cv_env_CC_set=${CC+set}
755 ac_cv_env_CC_value=$CC
756 ac_env_CFLAGS_set=${CFLAGS+set}
757 ac_env_CFLAGS_value=$CFLAGS
758 ac_cv_env_CFLAGS_set=${CFLAGS+set}
759 ac_cv_env_CFLAGS_value=$CFLAGS
760 ac_env_LDFLAGS_set=${LDFLAGS+set}
761 ac_env_LDFLAGS_value=$LDFLAGS
762 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_cv_env_LDFLAGS_value=$LDFLAGS
764 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
765 ac_env_CPPFLAGS_value=$CPPFLAGS
766 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
768 ac_env_CXX_set=${CXX+set}
769 ac_env_CXX_value=$CXX
770 ac_cv_env_CXX_set=${CXX+set}
771 ac_cv_env_CXX_value=$CXX
772 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
773 ac_env_CXXFLAGS_value=$CXXFLAGS
774 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
775 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
776 ac_env_CPP_set=${CPP+set}
777 ac_env_CPP_value=$CPP
778 ac_cv_env_CPP_set=${CPP+set}
779 ac_cv_env_CPP_value=$CPP
780
781 #
782 # Report the --help message.
783 #
784 if test "$ac_init_help" = "long"; then
785   # Omit some internal or obsolete options to make the list less imposing.
786   # This message is too long to be a string in the A/UX 3.1 sh.
787   cat <<_ACEOF
788 \`configure' configures this package to adapt to many kinds of systems.
789
790 Usage: $0 [OPTION]... [VAR=VALUE]...
791
792 To assign environment variables (e.g., CC, CFLAGS...), specify them as
793 VAR=VALUE.  See below for descriptions of some of the useful variables.
794
795 Defaults for the options are specified in brackets.
796
797 Configuration:
798   -h, --help              display this help and exit
799       --help=short        display options specific to this package
800       --help=recursive    display the short help of all the included packages
801   -V, --version           display version information and exit
802   -q, --quiet, --silent   do not print \`checking...' messages
803       --cache-file=FILE   cache test results in FILE [disabled]
804   -C, --config-cache      alias for \`--cache-file=config.cache'
805   -n, --no-create         do not create output files
806       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
807
808 _ACEOF
809
810   cat <<_ACEOF
811 Installation directories:
812   --prefix=PREFIX         install architecture-independent files in PREFIX
813                           [$ac_default_prefix]
814   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
815                           [PREFIX]
816
817 By default, \`make install' will install all the files in
818 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
819 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
820 for instance \`--prefix=\$HOME'.
821
822 For better control, use the options below.
823
824 Fine tuning of the installation directories:
825   --bindir=DIR           user executables [EPREFIX/bin]
826   --sbindir=DIR          system admin executables [EPREFIX/sbin]
827   --libexecdir=DIR       program executables [EPREFIX/libexec]
828   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
829   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
830   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
831   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
832   --libdir=DIR           object code libraries [EPREFIX/lib]
833   --includedir=DIR       C header files [PREFIX/include]
834   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
835   --infodir=DIR          info documentation [PREFIX/info]
836   --mandir=DIR           man documentation [PREFIX/man]
837 _ACEOF
838
839   cat <<\_ACEOF
840
841 X features:
842   --x-includes=DIR    X include files are in DIR
843   --x-libraries=DIR   X library files are in DIR
844
845 System types:
846   --build=BUILD     configure for building on BUILD [guessed]
847   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
848 _ACEOF
849 fi
850
851 if test -n "$ac_init_help"; then
852
853   cat <<\_ACEOF
854
855 Optional Features:
856   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
857   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
858   --enable-gnome          enable build of gnome-console GUI disabled
859   --enable-wx-console      enable build of wxWidgets console disabled
860   --enable-smartalloc     enable smartalloc debugging support disabled
861   --enable-static-tools   enable static tape tools disabled
862   --enable-static-fd      enable static File daemon disabled
863   --enable-static-sd      enable static Storage daemon disabled
864   --enable-static-dir     enable static Director disabled
865   --enable-static-cons    enable static Console disabled
866   --enable-client-only    build client (File daemon) only disabled
867   --disable-conio            disable conio support enabled
868
869   --disable-readline      disable readline support disable
870
871   --disable-largefile     omit support for large files
872
873 Optional Packages:
874   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
875   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
876   --with-gnome-includes   Specify location of GNOME headers
877   --with-gnome-libs       Specify location of GNOME libs
878   --with-gnome            Specify prefix for GNOME files
879  --with-readline=DIR             specify readline library directory
880   --with-tcp-wrappers=DIR        enable tcpwrappers support
881   --with-working-dir=PATH        specify path of Bacula working directory
882   --with-scriptdir=PATH    specify path of Bacula scripts directory
883   --with-dump-email=EMAIL        dump email address
884   --with-job-email=EMAIL         job output email address
885   --with-smtp-host=HOST          SMTP mail host address
886   --with-pid-dir=PATH            specify location of Bacula pid files
887   --with-subsys-dir=PATH         specify location of Bacula subsys file
888   --with-baseport=PORT           specify base port address for daemons
889   --with-dir-password=PASSWORD   specify Director's password
890   --with-fd-password=PASSWORD    specify Client's password
891   --with-sd-password=PASSWORD    specify Storage daemon's password
892   --with-dir-user=USER           specify user for Director daemon
893   --with-dir-group=GROUP                 specify group for Director daemon
894   --with-sd-user=USER            specify user for Storage daemon
895   --with-sd-group=GROUP          specify group for Storage daemon
896   --with-fd-user=USER            specify user for File daemon
897   --with-fd-group=GROUP          specify group for File daemon
898   --with-sbin-perm=MODE          specify permissions for sbin binaries (0754)
899   --with-postgresql=DIR      Include PostgreSQL support.  DIR is the PostgreSQL
900                           base install directory, defaults to /usr/local/pgsql
901
902   --with-mysql=DIR      Include MySQL support.  DIR is the MySQL base
903                           install directory, default is to search through
904                           a number of common places for the MySQL files.
905
906   --with-embedded-mysql=DIR Include MySQL support.  DIR is the MySQL base
907                           install directory, default is to search through
908                           a number of common places for the MySQL files.
909
910   --with-sqlite=DIR     Include SQLite support.  DIR is the SQLite base
911                           install directory, default is to search through
912                           a number of common places for the SQLite files.
913   --with-x                use the X Window System
914
915 Some influential environment variables:
916   CC          C compiler command
917   CFLAGS      C compiler flags
918   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
919               nonstandard directory <lib dir>
920   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
921               headers in a nonstandard directory <include dir>
922   CXX         C++ compiler command
923   CXXFLAGS    C++ compiler flags
924   CPP         C preprocessor
925
926 Use these variables to override the choices made by `configure' or to help
927 it to find libraries and programs with nonstandard names/locations.
928
929 _ACEOF
930 fi
931
932 if test "$ac_init_help" = "recursive"; then
933   # If there are subdirs, report their specific --help.
934   ac_popdir=`pwd`
935   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
936     test -d $ac_dir || continue
937     ac_builddir=.
938
939 if test "$ac_dir" != .; then
940   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
941   # A "../" for each directory in $ac_dir_suffix.
942   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
943 else
944   ac_dir_suffix= ac_top_builddir=
945 fi
946
947 case $srcdir in
948   .)  # No --srcdir option.  We are building in place.
949     ac_srcdir=.
950     if test -z "$ac_top_builddir"; then
951        ac_top_srcdir=.
952     else
953        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
954     fi ;;
955   [\\/]* | ?:[\\/]* )  # Absolute path.
956     ac_srcdir=$srcdir$ac_dir_suffix;
957     ac_top_srcdir=$srcdir ;;
958   *) # Relative path.
959     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
960     ac_top_srcdir=$ac_top_builddir$srcdir ;;
961 esac
962 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
963 # absolute.
964 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
965 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
966 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
967 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
968
969     cd $ac_dir
970     # Check for guested configure; otherwise get Cygnus style configure.
971     if test -f $ac_srcdir/configure.gnu; then
972       echo
973       $SHELL $ac_srcdir/configure.gnu  --help=recursive
974     elif test -f $ac_srcdir/configure; then
975       echo
976       $SHELL $ac_srcdir/configure  --help=recursive
977     elif test -f $ac_srcdir/configure.ac ||
978            test -f $ac_srcdir/configure.in; then
979       echo
980       $ac_configure --help
981     else
982       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
983     fi
984     cd $ac_popdir
985   done
986 fi
987
988 test -n "$ac_init_help" && exit 0
989 if $ac_init_version; then
990   cat <<\_ACEOF
991
992 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
993 Free Software Foundation, Inc.
994 This configure script is free software; the Free Software Foundation
995 gives unlimited permission to copy, distribute and modify it.
996 _ACEOF
997   exit 0
998 fi
999 exec 5>config.log
1000 cat >&5 <<_ACEOF
1001 This file contains any messages produced by compilers while
1002 running configure, to aid debugging if configure makes a mistake.
1003
1004 It was created by $as_me, which was
1005 generated by GNU Autoconf 2.57.  Invocation command line was
1006
1007   $ $0 $@
1008
1009 _ACEOF
1010 {
1011 cat <<_ASUNAME
1012 ## --------- ##
1013 ## Platform. ##
1014 ## --------- ##
1015
1016 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1017 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1018 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1019 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1020 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1021
1022 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1023 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1024
1025 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1026 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1027 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1028 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1029 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1030 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1031 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1032
1033 _ASUNAME
1034
1035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1036 for as_dir in $PATH
1037 do
1038   IFS=$as_save_IFS
1039   test -z "$as_dir" && as_dir=.
1040   echo "PATH: $as_dir"
1041 done
1042
1043 } >&5
1044
1045 cat >&5 <<_ACEOF
1046
1047
1048 ## ----------- ##
1049 ## Core tests. ##
1050 ## ----------- ##
1051
1052 _ACEOF
1053
1054
1055 # Keep a trace of the command line.
1056 # Strip out --no-create and --no-recursion so they do not pile up.
1057 # Strip out --silent because we don't want to record it for future runs.
1058 # Also quote any args containing shell meta-characters.
1059 # Make two passes to allow for proper duplicate-argument suppression.
1060 ac_configure_args=
1061 ac_configure_args0=
1062 ac_configure_args1=
1063 ac_sep=
1064 ac_must_keep_next=false
1065 for ac_pass in 1 2
1066 do
1067   for ac_arg
1068   do
1069     case $ac_arg in
1070     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1071     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1072     | -silent | --silent | --silen | --sile | --sil)
1073       continue ;;
1074     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1075       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1076     esac
1077     case $ac_pass in
1078     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1079     2)
1080       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1081       if test $ac_must_keep_next = true; then
1082         ac_must_keep_next=false # Got value, back to normal.
1083       else
1084         case $ac_arg in
1085           *=* | --config-cache | -C | -disable-* | --disable-* \
1086           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1087           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1088           | -with-* | --with-* | -without-* | --without-* | --x)
1089             case "$ac_configure_args0 " in
1090               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1091             esac
1092             ;;
1093           -* ) ac_must_keep_next=true ;;
1094         esac
1095       fi
1096       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1097       # Get rid of the leading space.
1098       ac_sep=" "
1099       ;;
1100     esac
1101   done
1102 done
1103 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1104 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1105
1106 # When interrupted or exit'd, cleanup temporary files, and complete
1107 # config.log.  We remove comments because anyway the quotes in there
1108 # would cause problems or look ugly.
1109 # WARNING: Be sure not to use single quotes in there, as some shells,
1110 # such as our DU 5.0 friend, will then `close' the trap.
1111 trap 'exit_status=$?
1112   # Save into config.log some information that might help in debugging.
1113   {
1114     echo
1115
1116     cat <<\_ASBOX
1117 ## ---------------- ##
1118 ## Cache variables. ##
1119 ## ---------------- ##
1120 _ASBOX
1121     echo
1122     # The following way of writing the cache mishandles newlines in values,
1123 {
1124   (set) 2>&1 |
1125     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1126     *ac_space=\ *)
1127       sed -n \
1128         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1129           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1130       ;;
1131     *)
1132       sed -n \
1133         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1134       ;;
1135     esac;
1136 }
1137     echo
1138
1139     cat <<\_ASBOX
1140 ## ----------------- ##
1141 ## Output variables. ##
1142 ## ----------------- ##
1143 _ASBOX
1144     echo
1145     for ac_var in $ac_subst_vars
1146     do
1147       eval ac_val=$`echo $ac_var`
1148       echo "$ac_var='"'"'$ac_val'"'"'"
1149     done | sort
1150     echo
1151
1152     if test -n "$ac_subst_files"; then
1153       cat <<\_ASBOX
1154 ## ------------- ##
1155 ## Output files. ##
1156 ## ------------- ##
1157 _ASBOX
1158       echo
1159       for ac_var in $ac_subst_files
1160       do
1161         eval ac_val=$`echo $ac_var`
1162         echo "$ac_var='"'"'$ac_val'"'"'"
1163       done | sort
1164       echo
1165     fi
1166
1167     if test -s confdefs.h; then
1168       cat <<\_ASBOX
1169 ## ----------- ##
1170 ## confdefs.h. ##
1171 ## ----------- ##
1172 _ASBOX
1173       echo
1174       sed "/^$/d" confdefs.h | sort
1175       echo
1176     fi
1177     test "$ac_signal" != 0 &&
1178       echo "$as_me: caught signal $ac_signal"
1179     echo "$as_me: exit $exit_status"
1180   } >&5
1181   rm -f core core.* *.core &&
1182   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1183     exit $exit_status
1184      ' 0
1185 for ac_signal in 1 2 13 15; do
1186   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1187 done
1188 ac_signal=0
1189
1190 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1191 rm -rf conftest* confdefs.h
1192 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1193 echo >confdefs.h
1194
1195 # Predefined preprocessor variables.
1196
1197 cat >>confdefs.h <<_ACEOF
1198 #define PACKAGE_NAME "$PACKAGE_NAME"
1199 _ACEOF
1200
1201
1202 cat >>confdefs.h <<_ACEOF
1203 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1204 _ACEOF
1205
1206
1207 cat >>confdefs.h <<_ACEOF
1208 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1209 _ACEOF
1210
1211
1212 cat >>confdefs.h <<_ACEOF
1213 #define PACKAGE_STRING "$PACKAGE_STRING"
1214 _ACEOF
1215
1216
1217 cat >>confdefs.h <<_ACEOF
1218 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1219 _ACEOF
1220
1221
1222 # Let the site file select an alternate cache file if it wants to.
1223 # Prefer explicitly selected file to automatically selected ones.
1224 if test -z "$CONFIG_SITE"; then
1225   if test "x$prefix" != xNONE; then
1226     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1227   else
1228     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1229   fi
1230 fi
1231 for ac_site_file in $CONFIG_SITE; do
1232   if test -r "$ac_site_file"; then
1233     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1234 echo "$as_me: loading site script $ac_site_file" >&6;}
1235     sed 's/^/| /' "$ac_site_file" >&5
1236     . "$ac_site_file"
1237   fi
1238 done
1239
1240 if test -r "$cache_file"; then
1241   # Some versions of bash will fail to source /dev/null (special
1242   # files actually), so we avoid doing that.
1243   if test -f "$cache_file"; then
1244     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1245 echo "$as_me: loading cache $cache_file" >&6;}
1246     case $cache_file in
1247       [\\/]* | ?:[\\/]* ) . $cache_file;;
1248       *)                      . ./$cache_file;;
1249     esac
1250   fi
1251 else
1252   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1253 echo "$as_me: creating cache $cache_file" >&6;}
1254   >$cache_file
1255 fi
1256
1257 # Check that the precious variables saved in the cache have kept the same
1258 # value.
1259 ac_cache_corrupted=false
1260 for ac_var in `(set) 2>&1 |
1261                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1262   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1263   eval ac_new_set=\$ac_env_${ac_var}_set
1264   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1265   eval ac_new_val="\$ac_env_${ac_var}_value"
1266   case $ac_old_set,$ac_new_set in
1267     set,)
1268       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1269 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1270       ac_cache_corrupted=: ;;
1271     ,set)
1272       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1273 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1274       ac_cache_corrupted=: ;;
1275     ,);;
1276     *)
1277       if test "x$ac_old_val" != "x$ac_new_val"; then
1278         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1279 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1280         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1281 echo "$as_me:   former value:  $ac_old_val" >&2;}
1282         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1283 echo "$as_me:   current value: $ac_new_val" >&2;}
1284         ac_cache_corrupted=:
1285       fi;;
1286   esac
1287   # Pass precious variables to config.status.
1288   if test "$ac_new_set" = set; then
1289     case $ac_new_val in
1290     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1291       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1292     *) ac_arg=$ac_var=$ac_new_val ;;
1293     esac
1294     case " $ac_configure_args " in
1295       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1296       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1297     esac
1298   fi
1299 done
1300 if $ac_cache_corrupted; then
1301   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1302 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1303   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1304 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1305    { (exit 1); exit 1; }; }
1306 fi
1307
1308 ac_ext=c
1309 ac_cpp='$CPP $CPPFLAGS'
1310 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1311 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1312 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332 BUILD_DIR=`pwd`
1333 cd ..
1334 TOP_DIR=`pwd`
1335 cd ${BUILD_DIR}
1336
1337 ac_aux_dir=
1338 for ac_dir in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf; do
1339   if test -f $ac_dir/install-sh; then
1340     ac_aux_dir=$ac_dir
1341     ac_install_sh="$ac_aux_dir/install-sh -c"
1342     break
1343   elif test -f $ac_dir/install.sh; then
1344     ac_aux_dir=$ac_dir
1345     ac_install_sh="$ac_aux_dir/install.sh -c"
1346     break
1347   elif test -f $ac_dir/shtool; then
1348     ac_aux_dir=$ac_dir
1349     ac_install_sh="$ac_aux_dir/shtool install -c"
1350     break
1351   fi
1352 done
1353 if test -z "$ac_aux_dir"; then
1354   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&5
1355 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&2;}
1356    { (exit 1); exit 1; }; }
1357 fi
1358 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1359 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1360 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1361
1362           ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
1363
1364
1365
1366
1367
1368 for ac_prog in true
1369 do
1370   # Extract the first word of "$ac_prog", so it can be a program name with args.
1371 set dummy $ac_prog; ac_word=$2
1372 echo "$as_me:$LINENO: checking for $ac_word" >&5
1373 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1374 if test "${ac_cv_path_TRUEPRG+set}" = set; then
1375   echo $ECHO_N "(cached) $ECHO_C" >&6
1376 else
1377   case $TRUEPRG in
1378   [\\/]* | ?:[\\/]*)
1379   ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
1380   ;;
1381   *)
1382   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1383 for as_dir in $PATH
1384 do
1385   IFS=$as_save_IFS
1386   test -z "$as_dir" && as_dir=.
1387   for ac_exec_ext in '' $ac_executable_extensions; do
1388   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1389     ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
1390     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1391     break 2
1392   fi
1393 done
1394 done
1395
1396   ;;
1397 esac
1398 fi
1399 TRUEPRG=$ac_cv_path_TRUEPRG
1400
1401 if test -n "$TRUEPRG"; then
1402   echo "$as_me:$LINENO: result: $TRUEPRG" >&5
1403 echo "${ECHO_T}$TRUEPRG" >&6
1404 else
1405   echo "$as_me:$LINENO: result: no" >&5
1406 echo "${ECHO_T}no" >&6
1407 fi
1408
1409   test -n "$TRUEPRG" && break
1410 done
1411 test -n "$TRUEPRG" || TRUEPRG=":"
1412
1413 for ac_prog in false
1414 do
1415   # Extract the first word of "$ac_prog", so it can be a program name with args.
1416 set dummy $ac_prog; ac_word=$2
1417 echo "$as_me:$LINENO: checking for $ac_word" >&5
1418 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1419 if test "${ac_cv_path_FALSEPRG+set}" = set; then
1420   echo $ECHO_N "(cached) $ECHO_C" >&6
1421 else
1422   case $FALSEPRG in
1423   [\\/]* | ?:[\\/]*)
1424   ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
1425   ;;
1426   *)
1427   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1428 for as_dir in $PATH
1429 do
1430   IFS=$as_save_IFS
1431   test -z "$as_dir" && as_dir=.
1432   for ac_exec_ext in '' $ac_executable_extensions; do
1433   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1434     ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
1435     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1436     break 2
1437   fi
1438 done
1439 done
1440
1441   ;;
1442 esac
1443 fi
1444 FALSEPRG=$ac_cv_path_FALSEPRG
1445
1446 if test -n "$FALSEPRG"; then
1447   echo "$as_me:$LINENO: result: $FALSEPRG" >&5
1448 echo "${ECHO_T}$FALSEPRG" >&6
1449 else
1450   echo "$as_me:$LINENO: result: no" >&5
1451 echo "${ECHO_T}no" >&6
1452 fi
1453
1454   test -n "$FALSEPRG" && break
1455 done
1456 test -n "$FALSEPRG" || FALSEPRG=":"
1457
1458
1459 #AC_CANONICAL_HOST
1460
1461 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1462 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1463 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1464 echo "configuring for bacula $VERSION ($DATE)"
1465
1466
1467
1468 ac_ext=c
1469 ac_cpp='$CPP $CPPFLAGS'
1470 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1471 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1472 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1473 if test -n "$ac_tool_prefix"; then
1474   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1475 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1476 echo "$as_me:$LINENO: checking for $ac_word" >&5
1477 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1478 if test "${ac_cv_prog_CC+set}" = set; then
1479   echo $ECHO_N "(cached) $ECHO_C" >&6
1480 else
1481   if test -n "$CC"; then
1482   ac_cv_prog_CC="$CC" # Let the user override the test.
1483 else
1484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1485 for as_dir in $PATH
1486 do
1487   IFS=$as_save_IFS
1488   test -z "$as_dir" && as_dir=.
1489   for ac_exec_ext in '' $ac_executable_extensions; do
1490   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1491     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1492     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1493     break 2
1494   fi
1495 done
1496 done
1497
1498 fi
1499 fi
1500 CC=$ac_cv_prog_CC
1501 if test -n "$CC"; then
1502   echo "$as_me:$LINENO: result: $CC" >&5
1503 echo "${ECHO_T}$CC" >&6
1504 else
1505   echo "$as_me:$LINENO: result: no" >&5
1506 echo "${ECHO_T}no" >&6
1507 fi
1508
1509 fi
1510 if test -z "$ac_cv_prog_CC"; then
1511   ac_ct_CC=$CC
1512   # Extract the first word of "gcc", so it can be a program name with args.
1513 set dummy gcc; ac_word=$2
1514 echo "$as_me:$LINENO: checking for $ac_word" >&5
1515 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1516 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1517   echo $ECHO_N "(cached) $ECHO_C" >&6
1518 else
1519   if test -n "$ac_ct_CC"; then
1520   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1521 else
1522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1523 for as_dir in $PATH
1524 do
1525   IFS=$as_save_IFS
1526   test -z "$as_dir" && as_dir=.
1527   for ac_exec_ext in '' $ac_executable_extensions; do
1528   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1529     ac_cv_prog_ac_ct_CC="gcc"
1530     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1531     break 2
1532   fi
1533 done
1534 done
1535
1536 fi
1537 fi
1538 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1539 if test -n "$ac_ct_CC"; then
1540   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1541 echo "${ECHO_T}$ac_ct_CC" >&6
1542 else
1543   echo "$as_me:$LINENO: result: no" >&5
1544 echo "${ECHO_T}no" >&6
1545 fi
1546
1547   CC=$ac_ct_CC
1548 else
1549   CC="$ac_cv_prog_CC"
1550 fi
1551
1552 if test -z "$CC"; then
1553   if test -n "$ac_tool_prefix"; then
1554   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1555 set dummy ${ac_tool_prefix}cc; ac_word=$2
1556 echo "$as_me:$LINENO: checking for $ac_word" >&5
1557 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1558 if test "${ac_cv_prog_CC+set}" = set; then
1559   echo $ECHO_N "(cached) $ECHO_C" >&6
1560 else
1561   if test -n "$CC"; then
1562   ac_cv_prog_CC="$CC" # Let the user override the test.
1563 else
1564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1565 for as_dir in $PATH
1566 do
1567   IFS=$as_save_IFS
1568   test -z "$as_dir" && as_dir=.
1569   for ac_exec_ext in '' $ac_executable_extensions; do
1570   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1571     ac_cv_prog_CC="${ac_tool_prefix}cc"
1572     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1573     break 2
1574   fi
1575 done
1576 done
1577
1578 fi
1579 fi
1580 CC=$ac_cv_prog_CC
1581 if test -n "$CC"; then
1582   echo "$as_me:$LINENO: result: $CC" >&5
1583 echo "${ECHO_T}$CC" >&6
1584 else
1585   echo "$as_me:$LINENO: result: no" >&5
1586 echo "${ECHO_T}no" >&6
1587 fi
1588
1589 fi
1590 if test -z "$ac_cv_prog_CC"; then
1591   ac_ct_CC=$CC
1592   # Extract the first word of "cc", so it can be a program name with args.
1593 set dummy cc; ac_word=$2
1594 echo "$as_me:$LINENO: checking for $ac_word" >&5
1595 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1596 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1597   echo $ECHO_N "(cached) $ECHO_C" >&6
1598 else
1599   if test -n "$ac_ct_CC"; then
1600   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1601 else
1602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1603 for as_dir in $PATH
1604 do
1605   IFS=$as_save_IFS
1606   test -z "$as_dir" && as_dir=.
1607   for ac_exec_ext in '' $ac_executable_extensions; do
1608   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1609     ac_cv_prog_ac_ct_CC="cc"
1610     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1611     break 2
1612   fi
1613 done
1614 done
1615
1616 fi
1617 fi
1618 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1619 if test -n "$ac_ct_CC"; then
1620   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1621 echo "${ECHO_T}$ac_ct_CC" >&6
1622 else
1623   echo "$as_me:$LINENO: result: no" >&5
1624 echo "${ECHO_T}no" >&6
1625 fi
1626
1627   CC=$ac_ct_CC
1628 else
1629   CC="$ac_cv_prog_CC"
1630 fi
1631
1632 fi
1633 if test -z "$CC"; then
1634   # Extract the first word of "cc", so it can be a program name with args.
1635 set dummy cc; ac_word=$2
1636 echo "$as_me:$LINENO: checking for $ac_word" >&5
1637 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1638 if test "${ac_cv_prog_CC+set}" = set; then
1639   echo $ECHO_N "(cached) $ECHO_C" >&6
1640 else
1641   if test -n "$CC"; then
1642   ac_cv_prog_CC="$CC" # Let the user override the test.
1643 else
1644   ac_prog_rejected=no
1645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1646 for as_dir in $PATH
1647 do
1648   IFS=$as_save_IFS
1649   test -z "$as_dir" && as_dir=.
1650   for ac_exec_ext in '' $ac_executable_extensions; do
1651   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1652     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1653        ac_prog_rejected=yes
1654        continue
1655      fi
1656     ac_cv_prog_CC="cc"
1657     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1658     break 2
1659   fi
1660 done
1661 done
1662
1663 if test $ac_prog_rejected = yes; then
1664   # We found a bogon in the path, so make sure we never use it.
1665   set dummy $ac_cv_prog_CC
1666   shift
1667   if test $# != 0; then
1668     # We chose a different compiler from the bogus one.
1669     # However, it has the same basename, so the bogon will be chosen
1670     # first if we set CC to just the basename; use the full file name.
1671     shift
1672     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1673   fi
1674 fi
1675 fi
1676 fi
1677 CC=$ac_cv_prog_CC
1678 if test -n "$CC"; then
1679   echo "$as_me:$LINENO: result: $CC" >&5
1680 echo "${ECHO_T}$CC" >&6
1681 else
1682   echo "$as_me:$LINENO: result: no" >&5
1683 echo "${ECHO_T}no" >&6
1684 fi
1685
1686 fi
1687 if test -z "$CC"; then
1688   if test -n "$ac_tool_prefix"; then
1689   for ac_prog in cl
1690   do
1691     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1692 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1693 echo "$as_me:$LINENO: checking for $ac_word" >&5
1694 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1695 if test "${ac_cv_prog_CC+set}" = set; then
1696   echo $ECHO_N "(cached) $ECHO_C" >&6
1697 else
1698   if test -n "$CC"; then
1699   ac_cv_prog_CC="$CC" # Let the user override the test.
1700 else
1701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1702 for as_dir in $PATH
1703 do
1704   IFS=$as_save_IFS
1705   test -z "$as_dir" && as_dir=.
1706   for ac_exec_ext in '' $ac_executable_extensions; do
1707   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1708     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1709     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1710     break 2
1711   fi
1712 done
1713 done
1714
1715 fi
1716 fi
1717 CC=$ac_cv_prog_CC
1718 if test -n "$CC"; then
1719   echo "$as_me:$LINENO: result: $CC" >&5
1720 echo "${ECHO_T}$CC" >&6
1721 else
1722   echo "$as_me:$LINENO: result: no" >&5
1723 echo "${ECHO_T}no" >&6
1724 fi
1725
1726     test -n "$CC" && break
1727   done
1728 fi
1729 if test -z "$CC"; then
1730   ac_ct_CC=$CC
1731   for ac_prog in cl
1732 do
1733   # Extract the first word of "$ac_prog", so it can be a program name with args.
1734 set dummy $ac_prog; ac_word=$2
1735 echo "$as_me:$LINENO: checking for $ac_word" >&5
1736 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1737 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1738   echo $ECHO_N "(cached) $ECHO_C" >&6
1739 else
1740   if test -n "$ac_ct_CC"; then
1741   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1742 else
1743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1744 for as_dir in $PATH
1745 do
1746   IFS=$as_save_IFS
1747   test -z "$as_dir" && as_dir=.
1748   for ac_exec_ext in '' $ac_executable_extensions; do
1749   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1750     ac_cv_prog_ac_ct_CC="$ac_prog"
1751     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1752     break 2
1753   fi
1754 done
1755 done
1756
1757 fi
1758 fi
1759 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1760 if test -n "$ac_ct_CC"; then
1761   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1762 echo "${ECHO_T}$ac_ct_CC" >&6
1763 else
1764   echo "$as_me:$LINENO: result: no" >&5
1765 echo "${ECHO_T}no" >&6
1766 fi
1767
1768   test -n "$ac_ct_CC" && break
1769 done
1770
1771   CC=$ac_ct_CC
1772 fi
1773
1774 fi
1775
1776
1777 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1778 See \`config.log' for more details." >&5
1779 echo "$as_me: error: no acceptable C compiler found in \$PATH
1780 See \`config.log' for more details." >&2;}
1781    { (exit 1); exit 1; }; }
1782
1783 # Provide some information about the compiler.
1784 echo "$as_me:$LINENO:" \
1785      "checking for C compiler version" >&5
1786 ac_compiler=`set X $ac_compile; echo $2`
1787 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1788   (eval $ac_compiler --version </dev/null >&5) 2>&5
1789   ac_status=$?
1790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1791   (exit $ac_status); }
1792 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1793   (eval $ac_compiler -v </dev/null >&5) 2>&5
1794   ac_status=$?
1795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1796   (exit $ac_status); }
1797 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1798   (eval $ac_compiler -V </dev/null >&5) 2>&5
1799   ac_status=$?
1800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1801   (exit $ac_status); }
1802
1803 cat >conftest.$ac_ext <<_ACEOF
1804 #line $LINENO "configure"
1805 /* confdefs.h.  */
1806 _ACEOF
1807 cat confdefs.h >>conftest.$ac_ext
1808 cat >>conftest.$ac_ext <<_ACEOF
1809 /* end confdefs.h.  */
1810
1811 int
1812 main ()
1813 {
1814
1815   ;
1816   return 0;
1817 }
1818 _ACEOF
1819 ac_clean_files_save=$ac_clean_files
1820 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1821 # Try to create an executable without -o first, disregard a.out.
1822 # It will help us diagnose broken compilers, and finding out an intuition
1823 # of exeext.
1824 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1825 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1826 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1827 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1828   (eval $ac_link_default) 2>&5
1829   ac_status=$?
1830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1831   (exit $ac_status); }; then
1832   # Find the output, starting from the most likely.  This scheme is
1833 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1834 # resort.
1835
1836 # Be careful to initialize this variable, since it used to be cached.
1837 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1838 ac_cv_exeext=
1839 # b.out is created by i960 compilers.
1840 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1841 do
1842   test -f "$ac_file" || continue
1843   case $ac_file in
1844     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1845         ;;
1846     conftest.$ac_ext )
1847         # This is the source file.
1848         ;;
1849     [ab].out )
1850         # We found the default executable, but exeext='' is most
1851         # certainly right.
1852         break;;
1853     *.* )
1854         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1855         # FIXME: I believe we export ac_cv_exeext for Libtool,
1856         # but it would be cool to find out if it's true.  Does anybody
1857         # maintain Libtool? --akim.
1858         export ac_cv_exeext
1859         break;;
1860     * )
1861         break;;
1862   esac
1863 done
1864 else
1865   echo "$as_me: failed program was:" >&5
1866 sed 's/^/| /' conftest.$ac_ext >&5
1867
1868 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1869 See \`config.log' for more details." >&5
1870 echo "$as_me: error: C compiler cannot create executables
1871 See \`config.log' for more details." >&2;}
1872    { (exit 77); exit 77; }; }
1873 fi
1874
1875 ac_exeext=$ac_cv_exeext
1876 echo "$as_me:$LINENO: result: $ac_file" >&5
1877 echo "${ECHO_T}$ac_file" >&6
1878
1879 # Check the compiler produces executables we can run.  If not, either
1880 # the compiler is broken, or we cross compile.
1881 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1882 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1883 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1884 # If not cross compiling, check that we can run a simple program.
1885 if test "$cross_compiling" != yes; then
1886   if { ac_try='./$ac_file'
1887   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1888   (eval $ac_try) 2>&5
1889   ac_status=$?
1890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1891   (exit $ac_status); }; }; then
1892     cross_compiling=no
1893   else
1894     if test "$cross_compiling" = maybe; then
1895         cross_compiling=yes
1896     else
1897         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1898 If you meant to cross compile, use \`--host'.
1899 See \`config.log' for more details." >&5
1900 echo "$as_me: error: cannot run C compiled programs.
1901 If you meant to cross compile, use \`--host'.
1902 See \`config.log' for more details." >&2;}
1903    { (exit 1); exit 1; }; }
1904     fi
1905   fi
1906 fi
1907 echo "$as_me:$LINENO: result: yes" >&5
1908 echo "${ECHO_T}yes" >&6
1909
1910 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1911 ac_clean_files=$ac_clean_files_save
1912 # Check the compiler produces executables we can run.  If not, either
1913 # the compiler is broken, or we cross compile.
1914 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1915 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1916 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1917 echo "${ECHO_T}$cross_compiling" >&6
1918
1919 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1920 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1921 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1922   (eval $ac_link) 2>&5
1923   ac_status=$?
1924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1925   (exit $ac_status); }; then
1926   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1927 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1928 # work properly (i.e., refer to `conftest.exe'), while it won't with
1929 # `rm'.
1930 for ac_file in conftest.exe conftest conftest.*; do
1931   test -f "$ac_file" || continue
1932   case $ac_file in
1933     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1934     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1935           export ac_cv_exeext
1936           break;;
1937     * ) break;;
1938   esac
1939 done
1940 else
1941   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1942 See \`config.log' for more details." >&5
1943 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1944 See \`config.log' for more details." >&2;}
1945    { (exit 1); exit 1; }; }
1946 fi
1947
1948 rm -f conftest$ac_cv_exeext
1949 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1950 echo "${ECHO_T}$ac_cv_exeext" >&6
1951
1952 rm -f conftest.$ac_ext
1953 EXEEXT=$ac_cv_exeext
1954 ac_exeext=$EXEEXT
1955 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1956 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1957 if test "${ac_cv_objext+set}" = set; then
1958   echo $ECHO_N "(cached) $ECHO_C" >&6
1959 else
1960   cat >conftest.$ac_ext <<_ACEOF
1961 #line $LINENO "configure"
1962 /* confdefs.h.  */
1963 _ACEOF
1964 cat confdefs.h >>conftest.$ac_ext
1965 cat >>conftest.$ac_ext <<_ACEOF
1966 /* end confdefs.h.  */
1967
1968 int
1969 main ()
1970 {
1971
1972   ;
1973   return 0;
1974 }
1975 _ACEOF
1976 rm -f conftest.o conftest.obj
1977 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1978   (eval $ac_compile) 2>&5
1979   ac_status=$?
1980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1981   (exit $ac_status); }; then
1982   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1983   case $ac_file in
1984     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1985     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1986        break;;
1987   esac
1988 done
1989 else
1990   echo "$as_me: failed program was:" >&5
1991 sed 's/^/| /' conftest.$ac_ext >&5
1992
1993 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1994 See \`config.log' for more details." >&5
1995 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1996 See \`config.log' for more details." >&2;}
1997    { (exit 1); exit 1; }; }
1998 fi
1999
2000 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2001 fi
2002 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2003 echo "${ECHO_T}$ac_cv_objext" >&6
2004 OBJEXT=$ac_cv_objext
2005 ac_objext=$OBJEXT
2006 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2007 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2008 if test "${ac_cv_c_compiler_gnu+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 #ifndef __GNUC__
2023        choke me
2024 #endif
2025
2026   ;
2027   return 0;
2028 }
2029 _ACEOF
2030 rm -f conftest.$ac_objext
2031 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2032   (eval $ac_compile) 2>&5
2033   ac_status=$?
2034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2035   (exit $ac_status); } &&
2036          { ac_try='test -s conftest.$ac_objext'
2037   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2038   (eval $ac_try) 2>&5
2039   ac_status=$?
2040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2041   (exit $ac_status); }; }; then
2042   ac_compiler_gnu=yes
2043 else
2044   echo "$as_me: failed program was:" >&5
2045 sed 's/^/| /' conftest.$ac_ext >&5
2046
2047 ac_compiler_gnu=no
2048 fi
2049 rm -f conftest.$ac_objext conftest.$ac_ext
2050 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2051
2052 fi
2053 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2054 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2055 GCC=`test $ac_compiler_gnu = yes && echo yes`
2056 ac_test_CFLAGS=${CFLAGS+set}
2057 ac_save_CFLAGS=$CFLAGS
2058 CFLAGS="-g"
2059 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2060 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2061 if test "${ac_cv_prog_cc_g+set}" = set; then
2062   echo $ECHO_N "(cached) $ECHO_C" >&6
2063 else
2064   cat >conftest.$ac_ext <<_ACEOF
2065 #line $LINENO "configure"
2066 /* confdefs.h.  */
2067 _ACEOF
2068 cat confdefs.h >>conftest.$ac_ext
2069 cat >>conftest.$ac_ext <<_ACEOF
2070 /* end confdefs.h.  */
2071
2072 int
2073 main ()
2074 {
2075
2076   ;
2077   return 0;
2078 }
2079 _ACEOF
2080 rm -f conftest.$ac_objext
2081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2082   (eval $ac_compile) 2>&5
2083   ac_status=$?
2084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2085   (exit $ac_status); } &&
2086          { ac_try='test -s conftest.$ac_objext'
2087   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2088   (eval $ac_try) 2>&5
2089   ac_status=$?
2090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2091   (exit $ac_status); }; }; then
2092   ac_cv_prog_cc_g=yes
2093 else
2094   echo "$as_me: failed program was:" >&5
2095 sed 's/^/| /' conftest.$ac_ext >&5
2096
2097 ac_cv_prog_cc_g=no
2098 fi
2099 rm -f conftest.$ac_objext conftest.$ac_ext
2100 fi
2101 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2102 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2103 if test "$ac_test_CFLAGS" = set; then
2104   CFLAGS=$ac_save_CFLAGS
2105 elif test $ac_cv_prog_cc_g = yes; then
2106   if test "$GCC" = yes; then
2107     CFLAGS="-g -O2"
2108   else
2109     CFLAGS="-g"
2110   fi
2111 else
2112   if test "$GCC" = yes; then
2113     CFLAGS="-O2"
2114   else
2115     CFLAGS=
2116   fi
2117 fi
2118 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2119 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2120 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2121   echo $ECHO_N "(cached) $ECHO_C" >&6
2122 else
2123   ac_cv_prog_cc_stdc=no
2124 ac_save_CC=$CC
2125 cat >conftest.$ac_ext <<_ACEOF
2126 #line $LINENO "configure"
2127 /* confdefs.h.  */
2128 _ACEOF
2129 cat confdefs.h >>conftest.$ac_ext
2130 cat >>conftest.$ac_ext <<_ACEOF
2131 /* end confdefs.h.  */
2132 #include <stdarg.h>
2133 #include <stdio.h>
2134 #include <sys/types.h>
2135 #include <sys/stat.h>
2136 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2137 struct buf { int x; };
2138 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2139 static char *e (p, i)
2140      char **p;
2141      int i;
2142 {
2143   return p[i];
2144 }
2145 static char *f (char * (*g) (char **, int), char **p, ...)
2146 {
2147   char *s;
2148   va_list v;
2149   va_start (v,p);
2150   s = g (p, va_arg (v,int));
2151   va_end (v);
2152   return s;
2153 }
2154 int test (int i, double x);
2155 struct s1 {int (*f) (int a);};
2156 struct s2 {int (*f) (double a);};
2157 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2158 int argc;
2159 char **argv;
2160 int
2161 main ()
2162 {
2163 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2164   ;
2165   return 0;
2166 }
2167 _ACEOF
2168 # Don't try gcc -ansi; that turns off useful extensions and
2169 # breaks some systems' header files.
2170 # AIX                   -qlanglvl=ansi
2171 # Ultrix and OSF/1      -std1
2172 # HP-UX 10.20 and later -Ae
2173 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2174 # SVR4                  -Xc -D__EXTENSIONS__
2175 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2176 do
2177   CC="$ac_save_CC $ac_arg"
2178   rm -f conftest.$ac_objext
2179 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2180   (eval $ac_compile) 2>&5
2181   ac_status=$?
2182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2183   (exit $ac_status); } &&
2184          { ac_try='test -s conftest.$ac_objext'
2185   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2186   (eval $ac_try) 2>&5
2187   ac_status=$?
2188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2189   (exit $ac_status); }; }; then
2190   ac_cv_prog_cc_stdc=$ac_arg
2191 break
2192 else
2193   echo "$as_me: failed program was:" >&5
2194 sed 's/^/| /' conftest.$ac_ext >&5
2195
2196 fi
2197 rm -f conftest.$ac_objext
2198 done
2199 rm -f conftest.$ac_ext conftest.$ac_objext
2200 CC=$ac_save_CC
2201
2202 fi
2203
2204 case "x$ac_cv_prog_cc_stdc" in
2205   x|xno)
2206     echo "$as_me:$LINENO: result: none needed" >&5
2207 echo "${ECHO_T}none needed" >&6 ;;
2208   *)
2209     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2210 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2211     CC="$CC $ac_cv_prog_cc_stdc" ;;
2212 esac
2213
2214 # Some people use a C++ compiler to compile C.  Since we use `exit',
2215 # in C++ we need to declare it.  In case someone uses the same compiler
2216 # for both compiling C and C++ we need to have the C++ compiler decide
2217 # the declaration of exit, since it's the most demanding environment.
2218 cat >conftest.$ac_ext <<_ACEOF
2219 #ifndef __cplusplus
2220   choke me
2221 #endif
2222 _ACEOF
2223 rm -f conftest.$ac_objext
2224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2225   (eval $ac_compile) 2>&5
2226   ac_status=$?
2227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2228   (exit $ac_status); } &&
2229          { ac_try='test -s conftest.$ac_objext'
2230   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2231   (eval $ac_try) 2>&5
2232   ac_status=$?
2233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2234   (exit $ac_status); }; }; then
2235   for ac_declaration in \
2236    ''\
2237    '#include <stdlib.h>' \
2238    'extern "C" void std::exit (int) throw (); using std::exit;' \
2239    'extern "C" void std::exit (int); using std::exit;' \
2240    'extern "C" void exit (int) throw ();' \
2241    'extern "C" void exit (int);' \
2242    'void exit (int);'
2243 do
2244   cat >conftest.$ac_ext <<_ACEOF
2245 #line $LINENO "configure"
2246 /* confdefs.h.  */
2247 _ACEOF
2248 cat confdefs.h >>conftest.$ac_ext
2249 cat >>conftest.$ac_ext <<_ACEOF
2250 /* end confdefs.h.  */
2251 #include <stdlib.h>
2252 $ac_declaration
2253 int
2254 main ()
2255 {
2256 exit (42);
2257   ;
2258   return 0;
2259 }
2260 _ACEOF
2261 rm -f conftest.$ac_objext
2262 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2263   (eval $ac_compile) 2>&5
2264   ac_status=$?
2265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2266   (exit $ac_status); } &&
2267          { ac_try='test -s conftest.$ac_objext'
2268   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2269   (eval $ac_try) 2>&5
2270   ac_status=$?
2271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2272   (exit $ac_status); }; }; then
2273   :
2274 else
2275   echo "$as_me: failed program was:" >&5
2276 sed 's/^/| /' conftest.$ac_ext >&5
2277
2278 continue
2279 fi
2280 rm -f conftest.$ac_objext conftest.$ac_ext
2281   cat >conftest.$ac_ext <<_ACEOF
2282 #line $LINENO "configure"
2283 /* confdefs.h.  */
2284 _ACEOF
2285 cat confdefs.h >>conftest.$ac_ext
2286 cat >>conftest.$ac_ext <<_ACEOF
2287 /* end confdefs.h.  */
2288 $ac_declaration
2289 int
2290 main ()
2291 {
2292 exit (42);
2293   ;
2294   return 0;
2295 }
2296 _ACEOF
2297 rm -f conftest.$ac_objext
2298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2299   (eval $ac_compile) 2>&5
2300   ac_status=$?
2301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2302   (exit $ac_status); } &&
2303          { ac_try='test -s conftest.$ac_objext'
2304   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2305   (eval $ac_try) 2>&5
2306   ac_status=$?
2307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2308   (exit $ac_status); }; }; then
2309   break
2310 else
2311   echo "$as_me: failed program was:" >&5
2312 sed 's/^/| /' conftest.$ac_ext >&5
2313
2314 fi
2315 rm -f conftest.$ac_objext conftest.$ac_ext
2316 done
2317 rm -f conftest*
2318 if test -n "$ac_declaration"; then
2319   echo '#ifdef __cplusplus' >>confdefs.h
2320   echo $ac_declaration      >>confdefs.h
2321   echo '#endif'             >>confdefs.h
2322 fi
2323
2324 else
2325   echo "$as_me: failed program was:" >&5
2326 sed 's/^/| /' conftest.$ac_ext >&5
2327
2328 fi
2329 rm -f conftest.$ac_objext conftest.$ac_ext
2330 ac_ext=c
2331 ac_cpp='$CPP $CPPFLAGS'
2332 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2333 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2334 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2335
2336 ac_ext=cc
2337 ac_cpp='$CXXCPP $CPPFLAGS'
2338 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2339 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2340 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2341 if test -n "$ac_tool_prefix"; then
2342   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2343   do
2344     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2345 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2346 echo "$as_me:$LINENO: checking for $ac_word" >&5
2347 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2348 if test "${ac_cv_prog_CXX+set}" = set; then
2349   echo $ECHO_N "(cached) $ECHO_C" >&6
2350 else
2351   if test -n "$CXX"; then
2352   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2353 else
2354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2355 for as_dir in $PATH
2356 do
2357   IFS=$as_save_IFS
2358   test -z "$as_dir" && as_dir=.
2359   for ac_exec_ext in '' $ac_executable_extensions; do
2360   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2361     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2362     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2363     break 2
2364   fi
2365 done
2366 done
2367
2368 fi
2369 fi
2370 CXX=$ac_cv_prog_CXX
2371 if test -n "$CXX"; then
2372   echo "$as_me:$LINENO: result: $CXX" >&5
2373 echo "${ECHO_T}$CXX" >&6
2374 else
2375   echo "$as_me:$LINENO: result: no" >&5
2376 echo "${ECHO_T}no" >&6
2377 fi
2378
2379     test -n "$CXX" && break
2380   done
2381 fi
2382 if test -z "$CXX"; then
2383   ac_ct_CXX=$CXX
2384   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2385 do
2386   # Extract the first word of "$ac_prog", so it can be a program name with args.
2387 set dummy $ac_prog; ac_word=$2
2388 echo "$as_me:$LINENO: checking for $ac_word" >&5
2389 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2390 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2391   echo $ECHO_N "(cached) $ECHO_C" >&6
2392 else
2393   if test -n "$ac_ct_CXX"; then
2394   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2395 else
2396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2397 for as_dir in $PATH
2398 do
2399   IFS=$as_save_IFS
2400   test -z "$as_dir" && as_dir=.
2401   for ac_exec_ext in '' $ac_executable_extensions; do
2402   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2403     ac_cv_prog_ac_ct_CXX="$ac_prog"
2404     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2405     break 2
2406   fi
2407 done
2408 done
2409
2410 fi
2411 fi
2412 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2413 if test -n "$ac_ct_CXX"; then
2414   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2415 echo "${ECHO_T}$ac_ct_CXX" >&6
2416 else
2417   echo "$as_me:$LINENO: result: no" >&5
2418 echo "${ECHO_T}no" >&6
2419 fi
2420
2421   test -n "$ac_ct_CXX" && break
2422 done
2423 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2424
2425   CXX=$ac_ct_CXX
2426 fi
2427
2428
2429 # Provide some information about the compiler.
2430 echo "$as_me:$LINENO:" \
2431      "checking for C++ compiler version" >&5
2432 ac_compiler=`set X $ac_compile; echo $2`
2433 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2434   (eval $ac_compiler --version </dev/null >&5) 2>&5
2435   ac_status=$?
2436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2437   (exit $ac_status); }
2438 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2439   (eval $ac_compiler -v </dev/null >&5) 2>&5
2440   ac_status=$?
2441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2442   (exit $ac_status); }
2443 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2444   (eval $ac_compiler -V </dev/null >&5) 2>&5
2445   ac_status=$?
2446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2447   (exit $ac_status); }
2448
2449 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2450 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2451 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2452   echo $ECHO_N "(cached) $ECHO_C" >&6
2453 else
2454   cat >conftest.$ac_ext <<_ACEOF
2455 #line $LINENO "configure"
2456 /* confdefs.h.  */
2457 _ACEOF
2458 cat confdefs.h >>conftest.$ac_ext
2459 cat >>conftest.$ac_ext <<_ACEOF
2460 /* end confdefs.h.  */
2461
2462 int
2463 main ()
2464 {
2465 #ifndef __GNUC__
2466        choke me
2467 #endif
2468
2469   ;
2470   return 0;
2471 }
2472 _ACEOF
2473 rm -f conftest.$ac_objext
2474 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2475   (eval $ac_compile) 2>&5
2476   ac_status=$?
2477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2478   (exit $ac_status); } &&
2479          { ac_try='test -s conftest.$ac_objext'
2480   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2481   (eval $ac_try) 2>&5
2482   ac_status=$?
2483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2484   (exit $ac_status); }; }; then
2485   ac_compiler_gnu=yes
2486 else
2487   echo "$as_me: failed program was:" >&5
2488 sed 's/^/| /' conftest.$ac_ext >&5
2489
2490 ac_compiler_gnu=no
2491 fi
2492 rm -f conftest.$ac_objext conftest.$ac_ext
2493 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2494
2495 fi
2496 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2497 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2498 GXX=`test $ac_compiler_gnu = yes && echo yes`
2499 ac_test_CXXFLAGS=${CXXFLAGS+set}
2500 ac_save_CXXFLAGS=$CXXFLAGS
2501 CXXFLAGS="-g"
2502 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2503 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2504 if test "${ac_cv_prog_cxx_g+set}" = set; then
2505   echo $ECHO_N "(cached) $ECHO_C" >&6
2506 else
2507   cat >conftest.$ac_ext <<_ACEOF
2508 #line $LINENO "configure"
2509 /* confdefs.h.  */
2510 _ACEOF
2511 cat confdefs.h >>conftest.$ac_ext
2512 cat >>conftest.$ac_ext <<_ACEOF
2513 /* end confdefs.h.  */
2514
2515 int
2516 main ()
2517 {
2518
2519   ;
2520   return 0;
2521 }
2522 _ACEOF
2523 rm -f conftest.$ac_objext
2524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2525   (eval $ac_compile) 2>&5
2526   ac_status=$?
2527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2528   (exit $ac_status); } &&
2529          { ac_try='test -s conftest.$ac_objext'
2530   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2531   (eval $ac_try) 2>&5
2532   ac_status=$?
2533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2534   (exit $ac_status); }; }; then
2535   ac_cv_prog_cxx_g=yes
2536 else
2537   echo "$as_me: failed program was:" >&5
2538 sed 's/^/| /' conftest.$ac_ext >&5
2539
2540 ac_cv_prog_cxx_g=no
2541 fi
2542 rm -f conftest.$ac_objext conftest.$ac_ext
2543 fi
2544 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2545 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2546 if test "$ac_test_CXXFLAGS" = set; then
2547   CXXFLAGS=$ac_save_CXXFLAGS
2548 elif test $ac_cv_prog_cxx_g = yes; then
2549   if test "$GXX" = yes; then
2550     CXXFLAGS="-g -O2"
2551   else
2552     CXXFLAGS="-g"
2553   fi
2554 else
2555   if test "$GXX" = yes; then
2556     CXXFLAGS="-O2"
2557   else
2558     CXXFLAGS=
2559   fi
2560 fi
2561 for ac_declaration in \
2562    ''\
2563    '#include <stdlib.h>' \
2564    'extern "C" void std::exit (int) throw (); using std::exit;' \
2565    'extern "C" void std::exit (int); using std::exit;' \
2566    'extern "C" void exit (int) throw ();' \
2567    'extern "C" void exit (int);' \
2568    'void exit (int);'
2569 do
2570   cat >conftest.$ac_ext <<_ACEOF
2571 #line $LINENO "configure"
2572 /* confdefs.h.  */
2573 _ACEOF
2574 cat confdefs.h >>conftest.$ac_ext
2575 cat >>conftest.$ac_ext <<_ACEOF
2576 /* end confdefs.h.  */
2577 #include <stdlib.h>
2578 $ac_declaration
2579 int
2580 main ()
2581 {
2582 exit (42);
2583   ;
2584   return 0;
2585 }
2586 _ACEOF
2587 rm -f conftest.$ac_objext
2588 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2589   (eval $ac_compile) 2>&5
2590   ac_status=$?
2591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2592   (exit $ac_status); } &&
2593          { ac_try='test -s conftest.$ac_objext'
2594   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2595   (eval $ac_try) 2>&5
2596   ac_status=$?
2597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2598   (exit $ac_status); }; }; then
2599   :
2600 else
2601   echo "$as_me: failed program was:" >&5
2602 sed 's/^/| /' conftest.$ac_ext >&5
2603
2604 continue
2605 fi
2606 rm -f conftest.$ac_objext conftest.$ac_ext
2607   cat >conftest.$ac_ext <<_ACEOF
2608 #line $LINENO "configure"
2609 /* confdefs.h.  */
2610 _ACEOF
2611 cat confdefs.h >>conftest.$ac_ext
2612 cat >>conftest.$ac_ext <<_ACEOF
2613 /* end confdefs.h.  */
2614 $ac_declaration
2615 int
2616 main ()
2617 {
2618 exit (42);
2619   ;
2620   return 0;
2621 }
2622 _ACEOF
2623 rm -f conftest.$ac_objext
2624 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2625   (eval $ac_compile) 2>&5
2626   ac_status=$?
2627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2628   (exit $ac_status); } &&
2629          { ac_try='test -s conftest.$ac_objext'
2630   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2631   (eval $ac_try) 2>&5
2632   ac_status=$?
2633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2634   (exit $ac_status); }; }; then
2635   break
2636 else
2637   echo "$as_me: failed program was:" >&5
2638 sed 's/^/| /' conftest.$ac_ext >&5
2639
2640 fi
2641 rm -f conftest.$ac_objext conftest.$ac_ext
2642 done
2643 rm -f conftest*
2644 if test -n "$ac_declaration"; then
2645   echo '#ifdef __cplusplus' >>confdefs.h
2646   echo $ac_declaration      >>confdefs.h
2647   echo '#endif'             >>confdefs.h
2648 fi
2649
2650 ac_ext=c
2651 ac_cpp='$CPP $CPPFLAGS'
2652 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2653 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2654 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2655
2656 if test "x$CC" != xcc; then
2657   echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2658 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2659 else
2660   echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2661 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2662 fi
2663 set dummy $CC; ac_cc=`echo $2 |
2664                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2665 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2666   echo $ECHO_N "(cached) $ECHO_C" >&6
2667 else
2668   cat >conftest.$ac_ext <<_ACEOF
2669 #line $LINENO "configure"
2670 /* confdefs.h.  */
2671 _ACEOF
2672 cat confdefs.h >>conftest.$ac_ext
2673 cat >>conftest.$ac_ext <<_ACEOF
2674 /* end confdefs.h.  */
2675
2676 int
2677 main ()
2678 {
2679
2680   ;
2681   return 0;
2682 }
2683 _ACEOF
2684 # Make sure it works both with $CC and with simple cc.
2685 # We do the test twice because some compilers refuse to overwrite an
2686 # existing .o file with -o, though they will create one.
2687 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2688 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2689   (eval $ac_try) 2>&5
2690   ac_status=$?
2691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2692   (exit $ac_status); } &&
2693    test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2694   (eval $ac_try) 2>&5
2695   ac_status=$?
2696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2697   (exit $ac_status); };
2698 then
2699   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2700   if test "x$CC" != xcc; then
2701     # Test first that cc exists at all.
2702     if { ac_try='cc -c conftest.$ac_ext >&5'
2703   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2704   (eval $ac_try) 2>&5
2705   ac_status=$?
2706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2707   (exit $ac_status); }; }; then
2708       ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2709       if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2710   (eval $ac_try) 2>&5
2711   ac_status=$?
2712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2713   (exit $ac_status); } &&
2714          test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2715   (eval $ac_try) 2>&5
2716   ac_status=$?
2717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2718   (exit $ac_status); };
2719       then
2720         # cc works too.
2721         :
2722       else
2723         # cc exists but doesn't like -o.
2724         eval ac_cv_prog_cc_${ac_cc}_c_o=no
2725       fi
2726     fi
2727   fi
2728 else
2729   eval ac_cv_prog_cc_${ac_cc}_c_o=no
2730 fi
2731 rm -f conftest*
2732
2733 fi
2734 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2735   echo "$as_me:$LINENO: result: yes" >&5
2736 echo "${ECHO_T}yes" >&6
2737 else
2738   echo "$as_me:$LINENO: result: no" >&5
2739 echo "${ECHO_T}no" >&6
2740
2741 cat >>confdefs.h <<\_ACEOF
2742 #define NO_MINUS_C_MINUS_O 1
2743 _ACEOF
2744
2745 fi
2746
2747 ac_ext=c
2748 ac_cpp='$CPP $CPPFLAGS'
2749 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2750 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2751 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2752 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2753 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2754 # On Suns, sometimes $CPP names a directory.
2755 if test -n "$CPP" && test -d "$CPP"; then
2756   CPP=
2757 fi
2758 if test -z "$CPP"; then
2759   if test "${ac_cv_prog_CPP+set}" = set; then
2760   echo $ECHO_N "(cached) $ECHO_C" >&6
2761 else
2762       # Double quotes because CPP needs to be expanded
2763     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2764     do
2765       ac_preproc_ok=false
2766 for ac_c_preproc_warn_flag in '' yes
2767 do
2768   # Use a header file that comes with gcc, so configuring glibc
2769   # with a fresh cross-compiler works.
2770   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2771   # <limits.h> exists even on freestanding compilers.
2772   # On the NeXT, cc -E runs the code through the compiler's parser,
2773   # not just through cpp. "Syntax error" is here to catch this case.
2774   cat >conftest.$ac_ext <<_ACEOF
2775 #line $LINENO "configure"
2776 /* confdefs.h.  */
2777 _ACEOF
2778 cat confdefs.h >>conftest.$ac_ext
2779 cat >>conftest.$ac_ext <<_ACEOF
2780 /* end confdefs.h.  */
2781 #ifdef __STDC__
2782 # include <limits.h>
2783 #else
2784 # include <assert.h>
2785 #endif
2786                      Syntax error
2787 _ACEOF
2788 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2789   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2790   ac_status=$?
2791   grep -v '^ *+' conftest.er1 >conftest.err
2792   rm -f conftest.er1
2793   cat conftest.err >&5
2794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2795   (exit $ac_status); } >/dev/null; then
2796   if test -s conftest.err; then
2797     ac_cpp_err=$ac_c_preproc_warn_flag
2798   else
2799     ac_cpp_err=
2800   fi
2801 else
2802   ac_cpp_err=yes
2803 fi
2804 if test -z "$ac_cpp_err"; then
2805   :
2806 else
2807   echo "$as_me: failed program was:" >&5
2808 sed 's/^/| /' conftest.$ac_ext >&5
2809
2810   # Broken: fails on valid input.
2811 continue
2812 fi
2813 rm -f conftest.err conftest.$ac_ext
2814
2815   # OK, works on sane cases.  Now check whether non-existent headers
2816   # can be detected and how.
2817   cat >conftest.$ac_ext <<_ACEOF
2818 #line $LINENO "configure"
2819 /* confdefs.h.  */
2820 _ACEOF
2821 cat confdefs.h >>conftest.$ac_ext
2822 cat >>conftest.$ac_ext <<_ACEOF
2823 /* end confdefs.h.  */
2824 #include <ac_nonexistent.h>
2825 _ACEOF
2826 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2827   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2828   ac_status=$?
2829   grep -v '^ *+' conftest.er1 >conftest.err
2830   rm -f conftest.er1
2831   cat conftest.err >&5
2832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2833   (exit $ac_status); } >/dev/null; then
2834   if test -s conftest.err; then
2835     ac_cpp_err=$ac_c_preproc_warn_flag
2836   else
2837     ac_cpp_err=
2838   fi
2839 else
2840   ac_cpp_err=yes
2841 fi
2842 if test -z "$ac_cpp_err"; then
2843   # Broken: success on invalid input.
2844 continue
2845 else
2846   echo "$as_me: failed program was:" >&5
2847 sed 's/^/| /' conftest.$ac_ext >&5
2848
2849   # Passes both tests.
2850 ac_preproc_ok=:
2851 break
2852 fi
2853 rm -f conftest.err conftest.$ac_ext
2854
2855 done
2856 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2857 rm -f conftest.err conftest.$ac_ext
2858 if $ac_preproc_ok; then
2859   break
2860 fi
2861
2862     done
2863     ac_cv_prog_CPP=$CPP
2864
2865 fi
2866   CPP=$ac_cv_prog_CPP
2867 else
2868   ac_cv_prog_CPP=$CPP
2869 fi
2870 echo "$as_me:$LINENO: result: $CPP" >&5
2871 echo "${ECHO_T}$CPP" >&6
2872 ac_preproc_ok=false
2873 for ac_c_preproc_warn_flag in '' yes
2874 do
2875   # Use a header file that comes with gcc, so configuring glibc
2876   # with a fresh cross-compiler works.
2877   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2878   # <limits.h> exists even on freestanding compilers.
2879   # On the NeXT, cc -E runs the code through the compiler's parser,
2880   # not just through cpp. "Syntax error" is here to catch this case.
2881   cat >conftest.$ac_ext <<_ACEOF
2882 #line $LINENO "configure"
2883 /* confdefs.h.  */
2884 _ACEOF
2885 cat confdefs.h >>conftest.$ac_ext
2886 cat >>conftest.$ac_ext <<_ACEOF
2887 /* end confdefs.h.  */
2888 #ifdef __STDC__
2889 # include <limits.h>
2890 #else
2891 # include <assert.h>
2892 #endif
2893                      Syntax error
2894 _ACEOF
2895 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2896   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2897   ac_status=$?
2898   grep -v '^ *+' conftest.er1 >conftest.err
2899   rm -f conftest.er1
2900   cat conftest.err >&5
2901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2902   (exit $ac_status); } >/dev/null; then
2903   if test -s conftest.err; then
2904     ac_cpp_err=$ac_c_preproc_warn_flag
2905   else
2906     ac_cpp_err=
2907   fi
2908 else
2909   ac_cpp_err=yes
2910 fi
2911 if test -z "$ac_cpp_err"; then
2912   :
2913 else
2914   echo "$as_me: failed program was:" >&5
2915 sed 's/^/| /' conftest.$ac_ext >&5
2916
2917   # Broken: fails on valid input.
2918 continue
2919 fi
2920 rm -f conftest.err conftest.$ac_ext
2921
2922   # OK, works on sane cases.  Now check whether non-existent headers
2923   # can be detected and how.
2924   cat >conftest.$ac_ext <<_ACEOF
2925 #line $LINENO "configure"
2926 /* confdefs.h.  */
2927 _ACEOF
2928 cat confdefs.h >>conftest.$ac_ext
2929 cat >>conftest.$ac_ext <<_ACEOF
2930 /* end confdefs.h.  */
2931 #include <ac_nonexistent.h>
2932 _ACEOF
2933 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2934   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2935   ac_status=$?
2936   grep -v '^ *+' conftest.er1 >conftest.err
2937   rm -f conftest.er1
2938   cat conftest.err >&5
2939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2940   (exit $ac_status); } >/dev/null; then
2941   if test -s conftest.err; then
2942     ac_cpp_err=$ac_c_preproc_warn_flag
2943   else
2944     ac_cpp_err=
2945   fi
2946 else
2947   ac_cpp_err=yes
2948 fi
2949 if test -z "$ac_cpp_err"; then
2950   # Broken: success on invalid input.
2951 continue
2952 else
2953   echo "$as_me: failed program was:" >&5
2954 sed 's/^/| /' conftest.$ac_ext >&5
2955
2956   # Passes both tests.
2957 ac_preproc_ok=:
2958 break
2959 fi
2960 rm -f conftest.err conftest.$ac_ext
2961
2962 done
2963 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2964 rm -f conftest.err conftest.$ac_ext
2965 if $ac_preproc_ok; then
2966   :
2967 else
2968   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2969 See \`config.log' for more details." >&5
2970 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2971 See \`config.log' for more details." >&2;}
2972    { (exit 1); exit 1; }; }
2973 fi
2974
2975 ac_ext=c
2976 ac_cpp='$CPP $CPPFLAGS'
2977 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2978 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2979 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2980
2981
2982 echo "$as_me:$LINENO: checking for egrep" >&5
2983 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2984 if test "${ac_cv_prog_egrep+set}" = set; then
2985   echo $ECHO_N "(cached) $ECHO_C" >&6
2986 else
2987   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2988     then ac_cv_prog_egrep='grep -E'
2989     else ac_cv_prog_egrep='egrep'
2990     fi
2991 fi
2992 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2993 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2994  EGREP=$ac_cv_prog_egrep
2995
2996
2997 if test $ac_cv_c_compiler_gnu = yes; then
2998     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
2999 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3000 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3001   echo $ECHO_N "(cached) $ECHO_C" >&6
3002 else
3003     ac_pattern="Autoconf.*'x'"
3004   cat >conftest.$ac_ext <<_ACEOF
3005 #line $LINENO "configure"
3006 /* confdefs.h.  */
3007 _ACEOF
3008 cat confdefs.h >>conftest.$ac_ext
3009 cat >>conftest.$ac_ext <<_ACEOF
3010 /* end confdefs.h.  */
3011 #include <sgtty.h>
3012 Autoconf TIOCGETP
3013 _ACEOF
3014 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3015   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3016   ac_cv_prog_gcc_traditional=yes
3017 else
3018   ac_cv_prog_gcc_traditional=no
3019 fi
3020 rm -f conftest*
3021
3022
3023   if test $ac_cv_prog_gcc_traditional = no; then
3024     cat >conftest.$ac_ext <<_ACEOF
3025 #line $LINENO "configure"
3026 /* confdefs.h.  */
3027 _ACEOF
3028 cat confdefs.h >>conftest.$ac_ext
3029 cat >>conftest.$ac_ext <<_ACEOF
3030 /* end confdefs.h.  */
3031 #include <termio.h>
3032 Autoconf TCGETA
3033 _ACEOF
3034 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3035   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3036   ac_cv_prog_gcc_traditional=yes
3037 fi
3038 rm -f conftest*
3039
3040   fi
3041 fi
3042 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3043 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3044   if test $ac_cv_prog_gcc_traditional = yes; then
3045     CC="$CC -traditional"
3046   fi
3047 fi
3048
3049 if test x$CC = xgcc
3050 then
3051    cat >>confdefs.h <<\_ACEOF
3052 #define HAVE_GCC 1
3053 _ACEOF
3054
3055 fi
3056
3057 # Find a good install program.  We prefer a C program (faster),
3058 # so one script is as good as another.  But avoid the broken or
3059 # incompatible versions:
3060 # SysV /etc/install, /usr/sbin/install
3061 # SunOS /usr/etc/install
3062 # IRIX /sbin/install
3063 # AIX /bin/install
3064 # AmigaOS /C/install, which installs bootblocks on floppy discs
3065 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3066 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3067 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3068 # ./install, which can be erroneously created by make from ./install.sh.
3069 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3070 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3071 if test -z "$INSTALL"; then
3072 if test "${ac_cv_path_install+set}" = set; then
3073   echo $ECHO_N "(cached) $ECHO_C" >&6
3074 else
3075   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3076 for as_dir in $PATH
3077 do
3078   IFS=$as_save_IFS
3079   test -z "$as_dir" && as_dir=.
3080   # Account for people who put trailing slashes in PATH elements.
3081 case $as_dir/ in
3082   ./ | .// | /cC/* | \
3083   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3084   /usr/ucb/* ) ;;
3085   *)
3086     # OSF1 and SCO ODT 3.0 have their own names for install.
3087     # Don't use installbsd from OSF since it installs stuff as root
3088     # by default.
3089     for ac_prog in ginstall scoinst install; do
3090       for ac_exec_ext in '' $ac_executable_extensions; do
3091         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3092           if test $ac_prog = install &&
3093             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3094             # AIX install.  It has an incompatible calling convention.
3095             :
3096           elif test $ac_prog = install &&
3097             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3098             # program-specific install script used by HP pwplus--don't use.
3099             :
3100           else
3101             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3102             break 3
3103           fi
3104         fi
3105       done
3106     done
3107     ;;
3108 esac
3109 done
3110
3111
3112 fi
3113   if test "${ac_cv_path_install+set}" = set; then
3114     INSTALL=$ac_cv_path_install
3115   else
3116     # As a last resort, use the slow shell script.  We don't cache a
3117     # path for INSTALL within a source directory, because that will
3118     # break other packages using the cache if that directory is
3119     # removed, or if the path is relative.
3120     INSTALL=$ac_install_sh
3121   fi
3122 fi
3123 echo "$as_me:$LINENO: result: $INSTALL" >&5
3124 echo "${ECHO_T}$INSTALL" >&6
3125
3126 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3127 # It thinks the first close brace ends the variable substitution.
3128 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3129
3130 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3131
3132 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3133
3134 if test -n "$ac_tool_prefix"; then
3135   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3136 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3137 echo "$as_me:$LINENO: checking for $ac_word" >&5
3138 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3139 if test "${ac_cv_prog_RANLIB+set}" = set; then
3140   echo $ECHO_N "(cached) $ECHO_C" >&6
3141 else
3142   if test -n "$RANLIB"; then
3143   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3144 else
3145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3146 for as_dir in $PATH
3147 do
3148   IFS=$as_save_IFS
3149   test -z "$as_dir" && as_dir=.
3150   for ac_exec_ext in '' $ac_executable_extensions; do
3151   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3152     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3153     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3154     break 2
3155   fi
3156 done
3157 done
3158
3159 fi
3160 fi
3161 RANLIB=$ac_cv_prog_RANLIB
3162 if test -n "$RANLIB"; then
3163   echo "$as_me:$LINENO: result: $RANLIB" >&5
3164 echo "${ECHO_T}$RANLIB" >&6
3165 else
3166   echo "$as_me:$LINENO: result: no" >&5
3167 echo "${ECHO_T}no" >&6
3168 fi
3169
3170 fi
3171 if test -z "$ac_cv_prog_RANLIB"; then
3172   ac_ct_RANLIB=$RANLIB
3173   # Extract the first word of "ranlib", so it can be a program name with args.
3174 set dummy ranlib; ac_word=$2
3175 echo "$as_me:$LINENO: checking for $ac_word" >&5
3176 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3177 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3178   echo $ECHO_N "(cached) $ECHO_C" >&6
3179 else
3180   if test -n "$ac_ct_RANLIB"; then
3181   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3182 else
3183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3184 for as_dir in $PATH
3185 do
3186   IFS=$as_save_IFS
3187   test -z "$as_dir" && as_dir=.
3188   for ac_exec_ext in '' $ac_executable_extensions; do
3189   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3190     ac_cv_prog_ac_ct_RANLIB="ranlib"
3191     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3192     break 2
3193   fi
3194 done
3195 done
3196
3197   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3198 fi
3199 fi
3200 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3201 if test -n "$ac_ct_RANLIB"; then
3202   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3203 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3204 else
3205   echo "$as_me:$LINENO: result: no" >&5
3206 echo "${ECHO_T}no" >&6
3207 fi
3208
3209   RANLIB=$ac_ct_RANLIB
3210 else
3211   RANLIB="$ac_cv_prog_RANLIB"
3212 fi
3213
3214 # Extract the first word of "mv", so it can be a program name with args.
3215 set dummy mv; ac_word=$2
3216 echo "$as_me:$LINENO: checking for $ac_word" >&5
3217 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3218 if test "${ac_cv_path_MV+set}" = set; then
3219   echo $ECHO_N "(cached) $ECHO_C" >&6
3220 else
3221   case $MV in
3222   [\\/]* | ?:[\\/]*)
3223   ac_cv_path_MV="$MV" # Let the user override the test with a path.
3224   ;;
3225   *)
3226   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3227 for as_dir in $PATH
3228 do
3229   IFS=$as_save_IFS
3230   test -z "$as_dir" && as_dir=.
3231   for ac_exec_ext in '' $ac_executable_extensions; do
3232   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3233     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
3234     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3235     break 2
3236   fi
3237 done
3238 done
3239
3240   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
3241   ;;
3242 esac
3243 fi
3244 MV=$ac_cv_path_MV
3245
3246 if test -n "$MV"; then
3247   echo "$as_me:$LINENO: result: $MV" >&5
3248 echo "${ECHO_T}$MV" >&6
3249 else
3250   echo "$as_me:$LINENO: result: no" >&5
3251 echo "${ECHO_T}no" >&6
3252 fi
3253
3254 # Extract the first word of "rm", so it can be a program name with args.
3255 set dummy rm; ac_word=$2
3256 echo "$as_me:$LINENO: checking for $ac_word" >&5
3257 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3258 if test "${ac_cv_path_RM+set}" = set; then
3259   echo $ECHO_N "(cached) $ECHO_C" >&6
3260 else
3261   case $RM in
3262   [\\/]* | ?:[\\/]*)
3263   ac_cv_path_RM="$RM" # Let the user override the test with a path.
3264   ;;
3265   *)
3266   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3267 for as_dir in $PATH
3268 do
3269   IFS=$as_save_IFS
3270   test -z "$as_dir" && as_dir=.
3271   for ac_exec_ext in '' $ac_executable_extensions; do
3272   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3273     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
3274     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3275     break 2
3276   fi
3277 done
3278 done
3279
3280   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
3281   ;;
3282 esac
3283 fi
3284 RM=$ac_cv_path_RM
3285
3286 if test -n "$RM"; then
3287   echo "$as_me:$LINENO: result: $RM" >&5
3288 echo "${ECHO_T}$RM" >&6
3289 else
3290   echo "$as_me:$LINENO: result: no" >&5
3291 echo "${ECHO_T}no" >&6
3292 fi
3293
3294 # Extract the first word of "cp", so it can be a program name with args.
3295 set dummy cp; ac_word=$2
3296 echo "$as_me:$LINENO: checking for $ac_word" >&5
3297 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3298 if test "${ac_cv_path_CP+set}" = set; then
3299   echo $ECHO_N "(cached) $ECHO_C" >&6
3300 else
3301   case $CP in
3302   [\\/]* | ?:[\\/]*)
3303   ac_cv_path_CP="$CP" # Let the user override the test with a path.
3304   ;;
3305   *)
3306   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3307 for as_dir in $PATH
3308 do
3309   IFS=$as_save_IFS
3310   test -z "$as_dir" && as_dir=.
3311   for ac_exec_ext in '' $ac_executable_extensions; do
3312   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3313     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
3314     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3315     break 2
3316   fi
3317 done
3318 done
3319
3320   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
3321   ;;
3322 esac
3323 fi
3324 CP=$ac_cv_path_CP
3325
3326 if test -n "$CP"; then
3327   echo "$as_me:$LINENO: result: $CP" >&5
3328 echo "${ECHO_T}$CP" >&6
3329 else
3330   echo "$as_me:$LINENO: result: no" >&5
3331 echo "${ECHO_T}no" >&6
3332 fi
3333
3334 # Extract the first word of "sed", so it can be a program name with args.
3335 set dummy sed; ac_word=$2
3336 echo "$as_me:$LINENO: checking for $ac_word" >&5
3337 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3338 if test "${ac_cv_path_SED+set}" = set; then
3339   echo $ECHO_N "(cached) $ECHO_C" >&6
3340 else
3341   case $SED in
3342   [\\/]* | ?:[\\/]*)
3343   ac_cv_path_SED="$SED" # Let the user override the test with a path.
3344   ;;
3345   *)
3346   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3347 for as_dir in $PATH
3348 do
3349   IFS=$as_save_IFS
3350   test -z "$as_dir" && as_dir=.
3351   for ac_exec_ext in '' $ac_executable_extensions; do
3352   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3353     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
3354     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3355     break 2
3356   fi
3357 done
3358 done
3359
3360   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
3361   ;;
3362 esac
3363 fi
3364 SED=$ac_cv_path_SED
3365
3366 if test -n "$SED"; then
3367   echo "$as_me:$LINENO: result: $SED" >&5
3368 echo "${ECHO_T}$SED" >&6
3369 else
3370   echo "$as_me:$LINENO: result: no" >&5
3371 echo "${ECHO_T}no" >&6
3372 fi
3373
3374 # Extract the first word of "awk", so it can be a program name with args.
3375 set dummy awk; ac_word=$2
3376 echo "$as_me:$LINENO: checking for $ac_word" >&5
3377 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3378 if test "${ac_cv_path_AWK+set}" = set; then
3379   echo $ECHO_N "(cached) $ECHO_C" >&6
3380 else
3381   case $AWK in
3382   [\\/]* | ?:[\\/]*)
3383   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
3384   ;;
3385   *)
3386   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3387 for as_dir in $PATH
3388 do
3389   IFS=$as_save_IFS
3390   test -z "$as_dir" && as_dir=.
3391   for ac_exec_ext in '' $ac_executable_extensions; do
3392   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3393     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
3394     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3395     break 2
3396   fi
3397 done
3398 done
3399
3400   test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="awk"
3401   ;;
3402 esac
3403 fi
3404 AWK=$ac_cv_path_AWK
3405
3406 if test -n "$AWK"; then
3407   echo "$as_me:$LINENO: result: $AWK" >&5
3408 echo "${ECHO_T}$AWK" >&6
3409 else
3410   echo "$as_me:$LINENO: result: no" >&5
3411 echo "${ECHO_T}no" >&6
3412 fi
3413
3414 # Extract the first word of "echo", so it can be a program name with args.
3415 set dummy echo; ac_word=$2
3416 echo "$as_me:$LINENO: checking for $ac_word" >&5
3417 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3418 if test "${ac_cv_path_ECHO+set}" = set; then
3419   echo $ECHO_N "(cached) $ECHO_C" >&6
3420 else
3421   case $ECHO in
3422   [\\/]* | ?:[\\/]*)
3423   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
3424   ;;
3425   *)
3426   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3427 for as_dir in $PATH
3428 do
3429   IFS=$as_save_IFS
3430   test -z "$as_dir" && as_dir=.
3431   for ac_exec_ext in '' $ac_executable_extensions; do
3432   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3433     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
3434     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3435     break 2
3436   fi
3437 done
3438 done
3439
3440   test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
3441   ;;
3442 esac
3443 fi
3444 ECHO=$ac_cv_path_ECHO
3445
3446 if test -n "$ECHO"; then
3447   echo "$as_me:$LINENO: result: $ECHO" >&5
3448 echo "${ECHO_T}$ECHO" >&6
3449 else
3450   echo "$as_me:$LINENO: result: no" >&5
3451 echo "${ECHO_T}no" >&6
3452 fi
3453
3454 # Extract the first word of "cmp", so it can be a program name with args.
3455 set dummy cmp; ac_word=$2
3456 echo "$as_me:$LINENO: checking for $ac_word" >&5
3457 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3458 if test "${ac_cv_path_CMP+set}" = set; then
3459   echo $ECHO_N "(cached) $ECHO_C" >&6
3460 else
3461   case $CMP in
3462   [\\/]* | ?:[\\/]*)
3463   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
3464   ;;
3465   *)
3466   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3467 for as_dir in $PATH
3468 do
3469   IFS=$as_save_IFS
3470   test -z "$as_dir" && as_dir=.
3471   for ac_exec_ext in '' $ac_executable_extensions; do
3472   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3473     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
3474     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3475     break 2
3476   fi
3477 done
3478 done
3479
3480   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
3481   ;;
3482 esac
3483 fi
3484 CMP=$ac_cv_path_CMP
3485
3486 if test -n "$CMP"; then
3487   echo "$as_me:$LINENO: result: $CMP" >&5
3488 echo "${ECHO_T}$CMP" >&6
3489 else
3490   echo "$as_me:$LINENO: result: no" >&5
3491 echo "${ECHO_T}no" >&6
3492 fi
3493
3494 # Extract the first word of "tbl", so it can be a program name with args.
3495 set dummy tbl; ac_word=$2
3496 echo "$as_me:$LINENO: checking for $ac_word" >&5
3497 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3498 if test "${ac_cv_path_TBL+set}" = set; then
3499   echo $ECHO_N "(cached) $ECHO_C" >&6
3500 else
3501   case $TBL in
3502   [\\/]* | ?:[\\/]*)
3503   ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
3504   ;;
3505   *)
3506   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3507 for as_dir in $PATH
3508 do
3509   IFS=$as_save_IFS
3510   test -z "$as_dir" && as_dir=.
3511   for ac_exec_ext in '' $ac_executable_extensions; do
3512   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3513     ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
3514     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3515     break 2
3516   fi
3517 done
3518 done
3519
3520   test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
3521   ;;
3522 esac
3523 fi
3524 TBL=$ac_cv_path_TBL
3525
3526 if test -n "$TBL"; then
3527   echo "$as_me:$LINENO: result: $TBL" >&5
3528 echo "${ECHO_T}$TBL" >&6
3529 else
3530   echo "$as_me:$LINENO: result: no" >&5
3531 echo "${ECHO_T}no" >&6
3532 fi
3533
3534 # Extract the first word of "ar", so it can be a program name with args.
3535 set dummy ar; ac_word=$2
3536 echo "$as_me:$LINENO: checking for $ac_word" >&5
3537 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3538 if test "${ac_cv_path_AR+set}" = set; then
3539   echo $ECHO_N "(cached) $ECHO_C" >&6
3540 else
3541   case $AR in
3542   [\\/]* | ?:[\\/]*)
3543   ac_cv_path_AR="$AR" # Let the user override the test with a path.
3544   ;;
3545   *)
3546   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3547 for as_dir in $PATH
3548 do
3549   IFS=$as_save_IFS
3550   test -z "$as_dir" && as_dir=.
3551   for ac_exec_ext in '' $ac_executable_extensions; do
3552   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3553     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3554     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3555     break 2
3556   fi
3557 done
3558 done
3559
3560   test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
3561   ;;
3562 esac
3563 fi
3564 AR=$ac_cv_path_AR
3565
3566 if test -n "$AR"; then
3567   echo "$as_me:$LINENO: result: $AR" >&5
3568 echo "${ECHO_T}$AR" >&6
3569 else
3570   echo "$as_me:$LINENO: result: no" >&5
3571 echo "${ECHO_T}no" >&6
3572 fi
3573
3574 # Extract the first word of "openssl", so it can be a program name with args.
3575 set dummy openssl; ac_word=$2
3576 echo "$as_me:$LINENO: checking for $ac_word" >&5
3577 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3578 if test "${ac_cv_path_OPENSSL+set}" = set; then
3579   echo $ECHO_N "(cached) $ECHO_C" >&6
3580 else
3581   case $OPENSSL in
3582   [\\/]* | ?:[\\/]*)
3583   ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
3584   ;;
3585   *)
3586   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3587 for as_dir in $PATH
3588 do
3589   IFS=$as_save_IFS
3590   test -z "$as_dir" && as_dir=.
3591   for ac_exec_ext in '' $ac_executable_extensions; do
3592   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3593     ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
3594     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3595     break 2
3596   fi
3597 done
3598 done
3599
3600   test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
3601   ;;
3602 esac
3603 fi
3604 OPENSSL=$ac_cv_path_OPENSSL
3605
3606 if test -n "$OPENSSL"; then
3607   echo "$as_me:$LINENO: result: $OPENSSL" >&5
3608 echo "${ECHO_T}$OPENSSL" >&6
3609 else
3610   echo "$as_me:$LINENO: result: no" >&5
3611 echo "${ECHO_T}no" >&6
3612 fi
3613
3614 # Extract the first word of "mtx", so it can be a program name with args.
3615 set dummy mtx; ac_word=$2
3616 echo "$as_me:$LINENO: checking for $ac_word" >&5
3617 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3618 if test "${ac_cv_path_MTX+set}" = set; then
3619   echo $ECHO_N "(cached) $ECHO_C" >&6
3620 else
3621   case $MTX in
3622   [\\/]* | ?:[\\/]*)
3623   ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
3624   ;;
3625   *)
3626   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3627 for as_dir in $PATH
3628 do
3629   IFS=$as_save_IFS
3630   test -z "$as_dir" && as_dir=.
3631   for ac_exec_ext in '' $ac_executable_extensions; do
3632   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3633     ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
3634     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3635     break 2
3636   fi
3637 done
3638 done
3639
3640   test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
3641   ;;
3642 esac
3643 fi
3644 MTX=$ac_cv_path_MTX
3645
3646 if test -n "$MTX"; then
3647   echo "$as_me:$LINENO: result: $MTX" >&5
3648 echo "${ECHO_T}$MTX" >&6
3649 else
3650   echo "$as_me:$LINENO: result: no" >&5
3651 echo "${ECHO_T}no" >&6
3652 fi
3653
3654 # Extract the first word of "pkg-config", so it can be a program name with args.
3655 set dummy pkg-config; ac_word=$2
3656 echo "$as_me:$LINENO: checking for $ac_word" >&5
3657 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3658 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
3659   echo $ECHO_N "(cached) $ECHO_C" >&6
3660 else
3661   case $PKGCONFIG in
3662   [\\/]* | ?:[\\/]*)
3663   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
3664   ;;
3665   *)
3666   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3667 for as_dir in $PATH
3668 do
3669   IFS=$as_save_IFS
3670   test -z "$as_dir" && as_dir=.
3671   for ac_exec_ext in '' $ac_executable_extensions; do
3672   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3673     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
3674     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3675     break 2
3676   fi
3677 done
3678 done
3679
3680   test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
3681   ;;
3682 esac
3683 fi
3684 PKGCONFIG=$ac_cv_path_PKGCONFIG
3685
3686 if test -n "$PKGCONFIG"; then
3687   echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
3688 echo "${ECHO_T}$PKGCONFIG" >&6
3689 else
3690   echo "$as_me:$LINENO: result: no" >&5
3691 echo "${ECHO_T}no" >&6
3692 fi
3693
3694 # Extract the first word of "wx-config", so it can be a program name with args.
3695 set dummy wx-config; ac_word=$2
3696 echo "$as_me:$LINENO: checking for $ac_word" >&5
3697 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3698 if test "${ac_cv_path_WXCONFIG+set}" = set; then
3699   echo $ECHO_N "(cached) $ECHO_C" >&6
3700 else
3701   case $WXCONFIG in
3702   [\\/]* | ?:[\\/]*)
3703   ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
3704   ;;
3705   *)
3706   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3707 for as_dir in $PATH
3708 do
3709   IFS=$as_save_IFS
3710   test -z "$as_dir" && as_dir=.
3711   for ac_exec_ext in '' $ac_executable_extensions; do
3712   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3713     ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
3714     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3715     break 2
3716   fi
3717 done
3718 done
3719
3720   test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="wx-config"
3721   ;;
3722 esac
3723 fi
3724 WXCONFIG=$ac_cv_path_WXCONFIG
3725
3726 if test -n "$WXCONFIG"; then
3727   echo "$as_me:$LINENO: result: $WXCONFIG" >&5
3728 echo "${ECHO_T}$WXCONFIG" >&6
3729 else
3730   echo "$as_me:$LINENO: result: no" >&5
3731 echo "${ECHO_T}no" >&6
3732 fi
3733
3734
3735 test -n "$ARFLAG" || ARFLAGS="cr"
3736
3737
3738 MAKE_SHELL=/bin/sh
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748 # Make sure we can run config.sub.
3749 $ac_config_sub sun4 >/dev/null 2>&1 ||
3750   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3751 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3752    { (exit 1); exit 1; }; }
3753
3754 echo "$as_me:$LINENO: checking build system type" >&5
3755 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3756 if test "${ac_cv_build+set}" = set; then
3757   echo $ECHO_N "(cached) $ECHO_C" >&6
3758 else
3759   ac_cv_build_alias=$build_alias
3760 test -z "$ac_cv_build_alias" &&
3761   ac_cv_build_alias=`$ac_config_guess`
3762 test -z "$ac_cv_build_alias" &&
3763   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3764 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3765    { (exit 1); exit 1; }; }
3766 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3767   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3768 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3769    { (exit 1); exit 1; }; }
3770
3771 fi
3772 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3773 echo "${ECHO_T}$ac_cv_build" >&6
3774 build=$ac_cv_build
3775 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3776 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3777 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3778
3779
3780
3781 echo "$as_me:$LINENO: checking host system type" >&5
3782 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3783 if test "${ac_cv_host+set}" = set; then
3784   echo $ECHO_N "(cached) $ECHO_C" >&6
3785 else
3786   ac_cv_host_alias=$host_alias
3787 test -z "$ac_cv_host_alias" &&
3788   ac_cv_host_alias=$ac_cv_build_alias
3789 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3790   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3791 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3792    { (exit 1); exit 1; }; }
3793
3794 fi
3795 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3796 echo "${ECHO_T}$ac_cv_host" >&6
3797 host=$ac_cv_host
3798 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3799 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3800 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3801
3802
3803 case $host_os in
3804   *cygwin* ) CYGWIN=yes;;
3805          * ) CYGWIN=no;;
3806 esac
3807
3808 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
3809 then
3810
3811
3812 if $TRUEPRG; then
3813   HAVE_SUN_OS_TRUE=
3814   HAVE_SUN_OS_FALSE='#'
3815 else
3816   HAVE_SUN_OS_TRUE='#'
3817   HAVE_SUN_OS_FALSE=
3818 fi
3819         cat >>confdefs.h <<\_ACEOF
3820 #define HAVE_SUN_OS 1
3821 _ACEOF
3822
3823 else
3824
3825
3826 if $FALSEPRG; then
3827   HAVE_SUN_OS_TRUE=
3828   HAVE_SUN_OS_FALSE='#'
3829 else
3830   HAVE_SUN_OS_TRUE='#'
3831   HAVE_SUN_OS_FALSE=
3832 fi
3833 fi
3834
3835 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
3836 then
3837
3838
3839 if $TRUEPRG; then
3840   HAVE_OSF1_OS_TRUE=
3841   HAVE_OSF1_OS_FALSE='#'
3842 else
3843   HAVE_OSF1_OS_TRUE='#'
3844   HAVE_OSF1_OS_FALSE=
3845 fi
3846         cat >>confdefs.h <<\_ACEOF
3847 #define HAVE_OSF1_OS 1
3848 _ACEOF
3849
3850 else
3851
3852
3853 if $FALSEPRG; then
3854   HAVE_OSF1_OS_TRUE=
3855   HAVE_OSF1_OS_FALSE='#'
3856 else
3857   HAVE_OSF1_OS_TRUE='#'
3858   HAVE_OSF1_OS_FALSE=
3859 fi
3860 fi
3861
3862 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
3863 then
3864
3865
3866 if $TRUEPRG; then
3867   HAVE_AIX_OS_TRUE=
3868   HAVE_AIX_OS_FALSE='#'
3869 else
3870   HAVE_AIX_OS_TRUE='#'
3871   HAVE_AIX_OS_FALSE=
3872 fi
3873         cat >>confdefs.h <<\_ACEOF
3874 #define HAVE_AIX_OS 1
3875 _ACEOF
3876
3877 else
3878
3879
3880 if $FALSEPRG; then
3881   HAVE_AIX_OS_TRUE=
3882   HAVE_AIX_OS_FALSE='#'
3883 else
3884   HAVE_AIX_OS_TRUE='#'
3885   HAVE_AIX_OS_FALSE=
3886 fi
3887 fi
3888
3889 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
3890 then
3891
3892
3893 if $TRUEPRG; then
3894   HAVE_HPUX_OS_TRUE=
3895   HAVE_HPUX_OS_FALSE='#'
3896 else
3897   HAVE_HPUX_OS_TRUE='#'
3898   HAVE_HPUX_OS_FALSE=
3899 fi
3900         cat >>confdefs.h <<\_ACEOF
3901 #define HAVE_HPUX_OS 1
3902 _ACEOF
3903
3904 else
3905
3906
3907 if $FALSEPRG; then
3908   HAVE_HPUX_OS_TRUE=
3909   HAVE_HPUX_OS_FALSE='#'
3910 else
3911   HAVE_HPUX_OS_TRUE='#'
3912   HAVE_HPUX_OS_FALSE=
3913 fi
3914 fi
3915
3916 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
3917 then
3918
3919
3920 if $TRUEPRG; then
3921   HAVE_LINUX_OS_TRUE=
3922   HAVE_LINUX_OS_FALSE='#'
3923 else
3924   HAVE_LINUX_OS_TRUE='#'
3925   HAVE_LINUX_OS_FALSE=
3926 fi
3927         cat >>confdefs.h <<\_ACEOF
3928 #define HAVE_LINUX_OS 1
3929 _ACEOF
3930
3931 else
3932
3933
3934 if $FALSEPRG; then
3935   HAVE_LINUX_OS_TRUE=
3936   HAVE_LINUX_OS_FALSE='#'
3937 else
3938   HAVE_LINUX_OS_TRUE='#'
3939   HAVE_LINUX_OS_FALSE=
3940 fi
3941 fi
3942
3943 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
3944 then
3945
3946
3947 if $TRUEPRG; then
3948   HAVE_FREEBSD_OS_TRUE=
3949   HAVE_FREEBSD_OS_FALSE='#'
3950 else
3951   HAVE_FREEBSD_OS_TRUE='#'
3952   HAVE_FREEBSD_OS_FALSE=
3953 fi
3954         cat >>confdefs.h <<\_ACEOF
3955 #define HAVE_FREEBSD_OS 1
3956 _ACEOF
3957
3958 else
3959
3960
3961 if $FALSEPRG; then
3962   HAVE_FREEBSD_OS_TRUE=
3963   HAVE_FREEBSD_OS_FALSE='#'
3964 else
3965   HAVE_FREEBSD_OS_TRUE='#'
3966   HAVE_FREEBSD_OS_FALSE=
3967 fi
3968 fi
3969
3970 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
3971 then
3972
3973
3974 if $TRUEPRG; then
3975   HAVE_NETBSD_OS_TRUE=
3976   HAVE_NETBSD_OS_FALSE='#'
3977 else
3978   HAVE_NETBSD_OS_TRUE='#'
3979   HAVE_NETBSD_OS_FALSE=
3980 fi
3981         cat >>confdefs.h <<\_ACEOF
3982 #define HAVE_NETBSD_OS 1
3983 _ACEOF
3984
3985 else
3986
3987
3988 if $FALSEPRG; then
3989   HAVE_NETBSD_OS_TRUE=
3990   HAVE_NETBSD_OS_FALSE='#'
3991 else
3992   HAVE_NETBSD_OS_TRUE='#'
3993   HAVE_NETBSD_OS_FALSE=
3994 fi
3995 fi
3996
3997 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
3998 then
3999
4000
4001 if $TRUEPRG; then
4002   HAVE_OPENBSD_OS_TRUE=
4003   HAVE_OPENBSD_OS_FALSE='#'
4004 else
4005   HAVE_OPENBSD_OS_TRUE='#'
4006   HAVE_OPENBSD_OS_FALSE=
4007 fi
4008         cat >>confdefs.h <<\_ACEOF
4009 #define HAVE_OPENBSD_OS 1
4010 _ACEOF
4011
4012 else
4013
4014
4015 if $FALSEPRG; then
4016   HAVE_OPENBSD_OS_TRUE=
4017   HAVE_OPENBSD_OS_FALSE='#'
4018 else
4019   HAVE_OPENBSD_OS_TRUE='#'
4020   HAVE_OPENBSD_OS_FALSE=
4021 fi
4022 fi
4023
4024 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4025 then
4026
4027
4028 if $TRUEPRG; then
4029   HAVE_BSDI_OS_TRUE=
4030   HAVE_BSDI_OS_FALSE='#'
4031 else
4032   HAVE_BSDI_OS_TRUE='#'
4033   HAVE_BSDI_OS_FALSE=
4034 fi
4035         cat >>confdefs.h <<\_ACEOF
4036 #define HAVE_BSDI_OS 1
4037 _ACEOF
4038
4039 else
4040
4041
4042 if $FALSEPRG; then
4043   HAVE_BSDI_OS_TRUE=
4044   HAVE_BSDI_OS_FALSE='#'
4045 else
4046   HAVE_BSDI_OS_TRUE='#'
4047   HAVE_BSDI_OS_FALSE=
4048 fi
4049 fi
4050
4051 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
4052 then
4053
4054
4055 if $TRUEPRG; then
4056   HAVE_SGI_OS_TRUE=
4057   HAVE_SGI_OS_FALSE='#'
4058 else
4059   HAVE_SGI_OS_TRUE='#'
4060   HAVE_SGI_OS_FALSE=
4061 fi
4062         cat >>confdefs.h <<\_ACEOF
4063 #define HAVE_SGI_OS 1
4064 _ACEOF
4065
4066 else
4067
4068
4069 if $FALSEPRG; then
4070   HAVE_SGI_OS_TRUE=
4071   HAVE_SGI_OS_FALSE='#'
4072 else
4073   HAVE_SGI_OS_TRUE='#'
4074   HAVE_SGI_OS_FALSE=
4075 fi
4076 fi
4077
4078 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4079 then
4080
4081
4082 if $TRUEPRG; then
4083   HAVE_IRIX_OS_TRUE=
4084   HAVE_IRIX_OS_FALSE='#'
4085 else
4086   HAVE_IRIX_OS_TRUE='#'
4087   HAVE_IRIX_OS_FALSE=
4088 fi
4089         cat >>confdefs.h <<\_ACEOF
4090 #define HAVE_IRIX_OS 1
4091 _ACEOF
4092
4093 else
4094
4095
4096 if $FALSEPRG; then
4097   HAVE_IRIX_OS_TRUE=
4098   HAVE_IRIX_OS_FALSE='#'
4099 else
4100   HAVE_IRIX_OS_TRUE='#'
4101   HAVE_IRIX_OS_FALSE=
4102 fi
4103 fi
4104
4105 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4106 then
4107
4108
4109 if $TRUEPRG; then
4110   HAVE_DARWIN_OS_TRUE=
4111   HAVE_DARWIN_OS_FALSE='#'
4112 else
4113   HAVE_DARWIN_OS_TRUE='#'
4114   HAVE_DARWIN_OS_FALSE=
4115 fi
4116     cat >>confdefs.h <<\_ACEOF
4117 #define HAVE_DARWIN_OS 1
4118 _ACEOF
4119
4120 else
4121
4122
4123 if $FALSEPRG; then
4124   HAVE_DARWIN_OS_TRUE=
4125   HAVE_DARWIN_OS_FALSE='#'
4126 else
4127   HAVE_DARWIN_OS_TRUE='#'
4128   HAVE_DARWIN_OS_FALSE=
4129 fi
4130 fi
4131
4132
4133 # -----------------------------------------------------------
4134 # ----------------------------------------------------------
4135 echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
4136 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6
4137 if test "x$DISTNAME" != "x"
4138 then
4139         echo "distname set to $DISTNAME"
4140 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4141 then
4142         DISTNAME=alpha
4143 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4144 then
4145         DISTNAME=aix
4146 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4147 then
4148         DISTNAME=hpux
4149 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4150 then
4151         DISTNAME=solaris
4152 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4153 then
4154         DISTNAME=freebsd
4155 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4156 then
4157         DISTNAME=netbsd
4158 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4159 then
4160         DISTNAME=openbsd
4161 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4162 then
4163         DISTNAME=irix
4164 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4165 then
4166         DISTNAME=bsdi
4167 elif test -f /etc/SuSE-release
4168 then
4169         DISTNAME=suse
4170 elif test -d /etc/SuSEconfig
4171 then
4172         DISTNAME=suse5
4173 elif test -f /etc/mandrake-release
4174 then
4175         DISTNAME=mandrake
4176 elif test -f /etc/whitebox-release
4177 then
4178        DISTNAME=redhat
4179 elif test -f /etc/redhat-release
4180 then
4181         DISTNAME=redhat
4182 elif test -f /etc/gentoo-release
4183 then
4184         DISTNAME=gentoo
4185 elif test -f /etc/debian_version
4186 then
4187         DISTNAME=debian
4188 elif test -f /etc/slackware-version
4189 then
4190         DISTNAME=slackware
4191 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4192 then
4193     DISTNAME=darwin
4194 elif test -f /etc/engarde-version
4195 then
4196         DISTNAME=engarde
4197 elif test "$CYGWIN" = yes
4198 then
4199         DISTNAME=cygwin
4200         cat >>confdefs.h <<\_ACEOF
4201 #define HAVE_CYGWIN 1
4202 _ACEOF
4203
4204 else
4205         DISTNAME=unknown
4206 fi
4207 echo "$as_me:$LINENO: result: done" >&5
4208 echo "${ECHO_T}done" >&6
4209
4210
4211 # -----------------------------------------------------------
4212 # ----------------------------------------------------------
4213
4214
4215
4216 if false; then
4217   INSIDE_GNOME_COMMON_TRUE=
4218   INSIDE_GNOME_COMMON_FALSE='#'
4219 else
4220   INSIDE_GNOME_COMMON_TRUE='#'
4221   INSIDE_GNOME_COMMON_FALSE=
4222 fi
4223
4224         test -n "$ACLOCAL_FLAGS" && ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
4225
4226         for k in gnome-macros ; do ACLOCAL="$ACLOCAL -I $k" ; done
4227
4228
4229 # ------------------------------------------------------------------
4230 #  If the user has not set --prefix, we set our default to nothing.
4231 #  In this case, if the user has not set --sysconfdir, we set it
4232 #  to the package default of /etc/bacula.  If either --prefix or
4233 #  --sysconfdir is set, we leave sysconfdir alone except to eval it.
4234 # ------------------------------------------------------------------
4235 if test x${prefix} = xNONE ; then
4236     if test `eval echo ${sysconfdir}` = NONE/etc ; then
4237         sysconfdir=/etc/bacula
4238     fi
4239     prefix=
4240 fi
4241 sysconfdir=`eval echo ${sysconfdir}`
4242
4243 # -------------------------------------------------------------------------
4244 #  If the user has not set --exec-prefix, we default to ${prefix}
4245 # -------------------------------------------------------------------------
4246 if test x${exec_prefix} = xNONE ; then
4247     exec_prefix=${prefix}
4248 fi
4249
4250 # ------------------------------------------------------------------
4251 # If the user has not set --sbindir, we set our default as /sbin
4252 # ------------------------------------------------------------------
4253 if test x$sbindir = x'${exec_prefix}/sbin' ; then
4254     sbindir=${exec_prefix}/sbin
4255 fi
4256 sbindir=`eval echo ${sbindir}`
4257
4258 # ------------------------------------------------------------------
4259 # All list of languages for which a translation exist. Each
4260 #  language is separated by a space.
4261 # ------------------------------------------------------------------
4262 ALL_LINGUAS=""
4263
4264 for ac_prog in msgfmt
4265 do
4266   # Extract the first word of "$ac_prog", so it can be a program name with args.
4267 set dummy $ac_prog; ac_word=$2
4268 echo "$as_me:$LINENO: checking for $ac_word" >&5
4269 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4270 if test "${ac_cv_path_MSGFMT+set}" = set; then
4271   echo $ECHO_N "(cached) $ECHO_C" >&6
4272 else
4273   case $MSGFMT in
4274   [\\/]* | ?:[\\/]*)
4275   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4276   ;;
4277   *)
4278   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4279 for as_dir in $PATH
4280 do
4281   IFS=$as_save_IFS
4282   test -z "$as_dir" && as_dir=.
4283   for ac_exec_ext in '' $ac_executable_extensions; do
4284   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4285     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
4286     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4287     break 2
4288   fi
4289 done
4290 done
4291
4292   ;;
4293 esac
4294 fi
4295 MSGFMT=$ac_cv_path_MSGFMT
4296
4297 if test -n "$MSGFMT"; then
4298   echo "$as_me:$LINENO: result: $MSGFMT" >&5
4299 echo "${ECHO_T}$MSGFMT" >&6
4300 else
4301   echo "$as_me:$LINENO: result: no" >&5
4302 echo "${ECHO_T}no" >&6
4303 fi
4304
4305   test -n "$MSGFMT" && break
4306 done
4307 test -n "$MSGFMT" || MSGFMT="no"
4308
4309 if test "$MSGFMT" = "no"
4310 then
4311    echo 'msgfmt program not found, disabling NLS !'
4312    USE_NLS=no
4313    USE_INCLUDED_LIBINTL=no
4314 #else
4315 #   AM_GNU_GETTEXT
4316 fi
4317
4318
4319 support_mysql=no
4320 support_sqlite=no
4321 support_postgresql=no
4322 support_smartalloc=yes
4323 support_readline=yes
4324 support_conio=yes
4325 support_gnome=no
4326 support_wx_console=no
4327 gnome_version=
4328 support_static_tools=no
4329 support_static_fd=no
4330 support_static_sd=no
4331 support_static_dir=no
4332 support_static_cons=no
4333 build_client_only=no
4334 cats=
4335 db_name=Internal
4336 DB_NAME=bdb
4337
4338
4339 # -------------------------------------------
4340 # gnome (default off)
4341 # -------------------------------------------
4342 # Check whether --enable-gnome or --disable-gnome was given.
4343 if test "${enable_gnome+set}" = set; then
4344   enableval="$enable_gnome"
4345   if test x$enableval = xyes; then
4346     support_gnome=yes
4347   fi
4348 fi;
4349
4350 GNOME_DIR=
4351 if test x$support_gnome = xyes; then
4352   abc=`$PKGCONFIG --exists libgnomeui-2.0`
4353   pkg=$?
4354   if test $pkg = 0; then
4355      GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
4356      GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
4357      GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
4358      GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
4359
4360
4361
4362
4363      GNOME_DIR=src/gnome2-console
4364      gnome_version="Version 2.x"
4365   else
4366
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377 # Check whether --with-gnome-includes or --without-gnome-includes was given.
4378 if test "${with_gnome_includes+set}" = set; then
4379   withval="$with_gnome_includes"
4380
4381         CFLAGS="$CFLAGS -I$withval"
4382
4383 fi;
4384
4385
4386 # Check whether --with-gnome-libs or --without-gnome-libs was given.
4387 if test "${with_gnome_libs+set}" = set; then
4388   withval="$with_gnome_libs"
4389
4390         LDFLAGS="$LDFLAGS -L$withval"
4391         gnome_prefix=$withval
4392
4393 fi;
4394
4395
4396 # Check whether --with-gnome or --without-gnome was given.
4397 if test "${with_gnome+set}" = set; then
4398   withval="$with_gnome"
4399   if test x$withval = xyes; then
4400                         want_gnome=yes
4401                                                                         :
4402                 else
4403                         if test "x$withval" = xno; then
4404                                 want_gnome=no
4405                         else
4406                                 want_gnome=yes
4407                                 LDFLAGS="$LDFLAGS -L$withval/lib"
4408                                 CFLAGS="$CFLAGS -I$withval/include"
4409                                 gnome_prefix=$withval/lib
4410                         fi
4411                 fi
4412 else
4413   want_gnome=yes
4414 fi;
4415
4416         if test "x$want_gnome" = xyes; then
4417
4418             # Extract the first word of "gnome-config", so it can be a program name with args.
4419 set dummy gnome-config; ac_word=$2
4420 echo "$as_me:$LINENO: checking for $ac_word" >&5
4421 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4422 if test "${ac_cv_path_GNOME_CONFIG+set}" = set; then
4423   echo $ECHO_N "(cached) $ECHO_C" >&6
4424 else
4425   case $GNOME_CONFIG in
4426   [\\/]* | ?:[\\/]*)
4427   ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
4428   ;;
4429   *)
4430   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4431 for as_dir in $PATH
4432 do
4433   IFS=$as_save_IFS
4434   test -z "$as_dir" && as_dir=.
4435   for ac_exec_ext in '' $ac_executable_extensions; do
4436   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4437     ac_cv_path_GNOME_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4438     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4439     break 2
4440   fi
4441 done
4442 done
4443
4444   test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
4445   ;;
4446 esac
4447 fi
4448 GNOME_CONFIG=$ac_cv_path_GNOME_CONFIG
4449
4450 if test -n "$GNOME_CONFIG"; then
4451   echo "$as_me:$LINENO: result: $GNOME_CONFIG" >&5
4452 echo "${ECHO_T}$GNOME_CONFIG" >&6
4453 else
4454   echo "$as_me:$LINENO: result: no" >&5
4455 echo "${ECHO_T}no" >&6
4456 fi
4457
4458             if test "$GNOME_CONFIG" = "no"; then
4459               no_gnome_config="yes"
4460             else
4461               echo "$as_me:$LINENO: checking if $GNOME_CONFIG works" >&5
4462 echo $ECHO_N "checking if $GNOME_CONFIG works... $ECHO_C" >&6
4463               if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then
4464                 echo "$as_me:$LINENO: result: yes" >&5
4465 echo "${ECHO_T}yes" >&6
4466
4467
4468         # Extract the first word of "orbit-config", so it can be a program name with args.
4469 set dummy orbit-config; ac_word=$2
4470 echo "$as_me:$LINENO: checking for $ac_word" >&5
4471 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4472 if test "${ac_cv_path_ORBIT_CONFIG+set}" = set; then
4473   echo $ECHO_N "(cached) $ECHO_C" >&6
4474 else
4475   case $ORBIT_CONFIG in
4476   [\\/]* | ?:[\\/]*)
4477   ac_cv_path_ORBIT_CONFIG="$ORBIT_CONFIG" # Let the user override the test with a path.
4478   ;;
4479   *)
4480   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4481 for as_dir in $PATH
4482 do
4483   IFS=$as_save_IFS
4484   test -z "$as_dir" && as_dir=.
4485   for ac_exec_ext in '' $ac_executable_extensions; do
4486   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4487     ac_cv_path_ORBIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4488     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4489     break 2
4490   fi
4491 done
4492 done
4493
4494   test -z "$ac_cv_path_ORBIT_CONFIG" && ac_cv_path_ORBIT_CONFIG="no"
4495   ;;
4496 esac
4497 fi
4498 ORBIT_CONFIG=$ac_cv_path_ORBIT_CONFIG
4499
4500 if test -n "$ORBIT_CONFIG"; then
4501   echo "$as_me:$LINENO: result: $ORBIT_CONFIG" >&5
4502 echo "${ECHO_T}$ORBIT_CONFIG" >&6
4503 else
4504   echo "$as_me:$LINENO: result: no" >&5
4505 echo "${ECHO_T}no" >&6
4506 fi
4507
4508         # Extract the first word of "orbit-idl", so it can be a program name with args.
4509 set dummy orbit-idl; ac_word=$2
4510 echo "$as_me:$LINENO: checking for $ac_word" >&5
4511 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4512 if test "${ac_cv_path_ORBIT_IDL+set}" = set; then
4513   echo $ECHO_N "(cached) $ECHO_C" >&6
4514 else
4515   case $ORBIT_IDL in
4516   [\\/]* | ?:[\\/]*)
4517   ac_cv_path_ORBIT_IDL="$ORBIT_IDL" # Let the user override the test with a path.
4518   ;;
4519   *)
4520   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4521 for as_dir in $PATH
4522 do
4523   IFS=$as_save_IFS
4524   test -z "$as_dir" && as_dir=.
4525   for ac_exec_ext in '' $ac_executable_extensions; do
4526   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4527     ac_cv_path_ORBIT_IDL="$as_dir/$ac_word$ac_exec_ext"
4528     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4529     break 2
4530   fi
4531 done
4532 done
4533
4534   test -z "$ac_cv_path_ORBIT_IDL" && ac_cv_path_ORBIT_IDL="no"
4535   ;;
4536 esac
4537 fi
4538 ORBIT_IDL=$ac_cv_path_ORBIT_IDL
4539
4540 if test -n "$ORBIT_IDL"; then
4541   echo "$as_me:$LINENO: result: $ORBIT_IDL" >&5
4542 echo "${ECHO_T}$ORBIT_IDL" >&6
4543 else
4544   echo "$as_me:$LINENO: result: no" >&5
4545 echo "${ECHO_T}no" >&6
4546 fi
4547
4548         echo "$as_me:$LINENO: checking for working ORBit environment" >&5
4549 echo $ECHO_N "checking for working ORBit environment... $ECHO_C" >&6
4550 if test "${gnome_cv_orbit_found+set}" = set; then
4551   echo $ECHO_N "(cached) $ECHO_C" >&6
4552 else
4553
4554                 if test x$ORBIT_CONFIG = xno -o x$ORBIT_IDL = xno; then
4555                         gnome_cv_orbit_found=no
4556                 else
4557                         gnome_cv_orbit_found=yes
4558                 fi
4559
4560 fi
4561 echo "$as_me:$LINENO: result: $gnome_cv_orbit_found" >&5
4562 echo "${ECHO_T}$gnome_cv_orbit_found" >&6
4563
4564
4565 if test x$gnome_cv_orbit_found = xyes; then
4566   HAVE_ORBIT_TRUE=
4567   HAVE_ORBIT_FALSE='#'
4568 else
4569   HAVE_ORBIT_TRUE='#'
4570   HAVE_ORBIT_FALSE=
4571 fi
4572         if test x$gnome_cv_orbit_found = xyes; then
4573
4574                 ORBIT_CFLAGS=`orbit-config --cflags client server`
4575                 ORBIT_LIBS=`orbit-config --use-service=name --libs client server`
4576
4577
4578         else
4579                 if test xfail = xfailure; then
4580                         { { echo "$as_me:$LINENO: error: ORBit not installed or installation problem" >&5
4581 echo "$as_me: error: ORBit not installed or installation problem" >&2;}
4582    { (exit 1); exit 1; }; }
4583                 fi
4584         fi
4585
4586         echo "$as_me:$LINENO: checking for gnorba libraries" >&5
4587 echo $ECHO_N "checking for gnorba libraries... $ECHO_C" >&6
4588 if test "${gnome_cv_gnorba_found+set}" = set; then
4589   echo $ECHO_N "(cached) $ECHO_C" >&6
4590 else
4591
4592                 gnome_cv_gnorba_found=no
4593                 if test x$gnome_cv_orbit_found = xyes; then
4594                         GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
4595                         GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
4596                         if test -n "$GNORBA_LIBS"; then
4597                                 gnome_cv_gnorba_found=yes
4598                         fi
4599                 fi
4600
4601 fi
4602 echo "$as_me:$LINENO: result: $gnome_cv_gnorba_found" >&5
4603 echo "${ECHO_T}$gnome_cv_gnorba_found" >&6
4604
4605
4606 if test x$gnome_cv_gnorba_found = xyes; then
4607   HAVE_GNORBA_TRUE=
4608   HAVE_GNORBA_FALSE='#'
4609 else
4610   HAVE_GNORBA_TRUE='#'
4611   HAVE_GNORBA_FALSE=
4612 fi
4613         if test x$gnome_cv_orbit_found = xyes; then
4614
4615                 GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
4616                 GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
4617
4618
4619         else
4620                 if test xfail = xfailure; then
4621                         { { echo "$as_me:$LINENO: error: gnorba library not installed or installation problem" >&5
4622 echo "$as_me: error: gnorba library not installed or installation problem" >&2;}
4623    { (exit 1); exit 1; }; }
4624                 fi
4625         fi
4626
4627                 GNOME_LIBS="`$GNOME_CONFIG --libs-only-l gnome`"
4628                 GNOMEUI_LIBS="`$GNOME_CONFIG --libs-only-l gnomeui`"
4629                 GNOMEGNORBA_LIBS="`$GNOME_CONFIG --libs-only-l gnorba gnomeui`"
4630                 GTKXMHTML_LIBS="`$GNOME_CONFIG --libs-only-l gtkxmhtml`"
4631                 ZVT_LIBS="`$GNOME_CONFIG --libs-only-l zvt`"
4632                 GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui`"
4633                 GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui`"
4634
4635               else
4636                 echo "$as_me:$LINENO: result: no" >&5
4637 echo "${ECHO_T}no" >&6
4638                 no_gnome_config="yes"
4639               fi
4640             fi
4641
4642             if test x$exec_prefix = xNONE; then
4643                 if test x$prefix = xNONE; then
4644                     gnome_prefix=$ac_default_prefix/lib
4645                 else
4646                     gnome_prefix=$prefix/lib
4647                 fi
4648             else
4649                 gnome_prefix=`eval echo \`echo $libdir\``
4650             fi
4651
4652             if test "$no_gnome_config" = "yes"; then
4653               echo "$as_me:$LINENO: checking for gnomeConf.sh file in $gnome_prefix" >&5
4654 echo $ECHO_N "checking for gnomeConf.sh file in $gnome_prefix... $ECHO_C" >&6
4655               if test -f $gnome_prefix/gnomeConf.sh; then
4656                 echo "$as_me:$LINENO: result: found" >&5
4657 echo "${ECHO_T}found" >&6
4658                 echo "loading gnome configuration from" \
4659                      "$gnome_prefix/gnomeConf.sh"
4660                 . $gnome_prefix/gnomeConf.sh
4661
4662               else
4663                 echo "$as_me:$LINENO: result: not found" >&5
4664 echo "${ECHO_T}not found" >&6
4665                 if test xfail = xfail; then
4666                   { { echo "$as_me:$LINENO: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&5
4667 echo "$as_me: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&2;}
4668    { (exit 1); exit 1; }; }
4669                 fi
4670               fi
4671             fi
4672         fi
4673
4674         if test -n ""; then
4675           n=""
4676           for i in $n; do
4677             echo "$as_me:$LINENO: checking extra library \"$i\"" >&5
4678 echo $ECHO_N "checking extra library \"$i\"... $ECHO_C" >&6
4679             case $i in
4680               applets)
4681
4682                 GNOME_APPLETS_LIBS=`$GNOME_CONFIG --libs-only-l applets`
4683                 echo "$as_me:$LINENO: result: $GNOME_APPLETS_LIBS" >&5
4684 echo "${ECHO_T}$GNOME_APPLETS_LIBS" >&6;;
4685               docklets)
4686
4687                 GNOME_DOCKLETS_LIBS=`$GNOME_CONFIG --libs-only-l docklets`
4688                 echo "$as_me:$LINENO: result: $GNOME_DOCKLETS_LIBS" >&5
4689 echo "${ECHO_T}$GNOME_DOCKLETS_LIBS" >&6;;
4690               capplet)
4691
4692                 GNOME_CAPPLET_LIBS=`$GNOME_CONFIG --libs-only-l capplet`
4693                 echo "$as_me:$LINENO: result: $GNOME_CAPPLET_LIBS" >&5
4694 echo "${ECHO_T}$GNOME_CAPPLET_LIBS" >&6;;
4695               *)
4696                 echo "$as_me:$LINENO: result: unknown library" >&5
4697 echo "${ECHO_T}unknown library" >&6
4698             esac
4699             EXTRA_INCLUDEDIR=`$GNOME_CONFIG --cflags $i`
4700             GNOME_INCLUDEDIR="$GNOME_INCLUDEDIR $EXTRA_INCLUDEDIR"
4701           done
4702         fi
4703
4704
4705      GNOME_DIR=src/gnome-console
4706      gnome_version="Version 1.4"
4707   fi
4708 fi
4709
4710
4711
4712 # -------------------------------------------
4713 # wx-console (default off)
4714 # -------------------------------------------
4715 # Check whether --enable-wx-console or --disable-wx-console was given.
4716 if test "${enable_wx_console+set}" = set; then
4717   enableval="$enable_wx_console"
4718   if test x$enableval = xyes; then
4719     support_wx_console=yes
4720   fi
4721 fi;
4722
4723 WX_DIR=
4724 if test x$support_wx_console = xyes; then
4725   abc=`$WXCONFIG --cppflags`
4726   pkg=$?
4727   if test $pkg = 0; then
4728      WXCONS_CPPFLAGS=`$WXCONFIG --cppflags`
4729      WXCONS_LDFLAGS=`$WXCONFIG --libs`
4730
4731
4732      WX_DIR=src/wx-console
4733   else
4734      echo " "
4735      echo "wx-config program not found. wx-console disabled."
4736      echo " "
4737      support_wx_console=no
4738   fi
4739 fi
4740
4741
4742
4743
4744 # -------------------------------------------
4745 # smartalloc (default off)
4746 # -------------------------------------------
4747 # Check whether --enable-smartalloc or --disable-smartalloc was given.
4748 if test "${enable_smartalloc+set}" = set; then
4749   enableval="$enable_smartalloc"
4750   if test x$enableval = xno; then
4751     support_smartalloc=no
4752   fi
4753 fi;
4754
4755 if test x$support_smartalloc = xyes; then
4756    cat >>confdefs.h <<\_ACEOF
4757 #define SMARTALLOC 1
4758 _ACEOF
4759
4760 fi
4761
4762 # -------------------------------------------
4763 # static-tools (default off)
4764 # -------------------------------------------
4765 # Check whether --enable-static-tools or --disable-static-tools was given.
4766 if test "${enable_static_tools+set}" = set; then
4767   enableval="$enable_static_tools"
4768   if test x$enableval = xyes; then
4769      support_static_tools=yes
4770    fi
4771 fi;
4772
4773 TTOOL_LDFLAGS=
4774 if test x$support_static_tools = xyes; then
4775    TTOOL_LDFLAGS="-static"
4776 fi
4777
4778
4779 # -------------------------------------------
4780 # static-fd    (default off)
4781 # -------------------------------------------
4782 # Check whether --enable-static-fd or --disable-static-fd was given.
4783 if test "${enable_static_fd+set}" = set; then
4784   enableval="$enable_static_fd"
4785   if test x$enableval = xyes; then
4786      support_static_fd=yes
4787    fi
4788 fi;
4789
4790 STATIC_FD=
4791 if test x$support_static_fd = xyes; then
4792    STATIC_FD="static-bacula-fd"
4793 fi
4794
4795
4796 # -------------------------------------------
4797 # static-sd    (default off)
4798 # -------------------------------------------
4799 # Check whether --enable-static-sd or --disable-static-sd was given.
4800 if test "${enable_static_sd+set}" = set; then
4801   enableval="$enable_static_sd"
4802   if test x$enableval = xyes; then
4803      support_static_sd=yes
4804    fi
4805 fi;
4806
4807 STATIC_SD=
4808 if test x$support_static_sd = xyes; then
4809    STATIC_SD="static-bacula-sd"
4810 fi
4811
4812
4813 # -------------------------------------------
4814 # static-dir   (default off)
4815 # -------------------------------------------
4816 # Check whether --enable-static-dir or --disable-static-dir was given.
4817 if test "${enable_static_dir+set}" = set; then
4818   enableval="$enable_static_dir"
4819   if test x$enableval = xyes; then
4820      support_static_dir=yes
4821    fi
4822 fi;
4823
4824 STATIC_DIR=
4825 if test x$support_static_dir = xyes; then
4826    STATIC_DIR="static-bacula-dir"
4827 fi
4828
4829
4830 # -------------------------------------------
4831 # static-cons  (default off)
4832 # -------------------------------------------
4833 # Check whether --enable-static-cons or --disable-static-cons was given.
4834 if test "${enable_static_cons+set}" = set; then
4835   enableval="$enable_static_cons"
4836   if test x$enableval = xyes; then
4837      support_static_cons=yes
4838    fi
4839 fi;
4840
4841 STATIC_CONS=
4842 STATIC_GNOME_CONS=
4843 STATIC_WX_CONS=
4844 if test x$support_static_cons = xyes; then
4845    STATIC_CONS="static-bconsole"
4846    STATIC_GNOME_CONS="static-gnome-console"
4847    STATIC_WX_CONS="static-wx-console"
4848 fi
4849
4850
4851
4852
4853 # -------------------------------------------
4854 # client_only  (default off)
4855 # -------------------------------------------
4856 # Check whether --enable-client-only or --disable-client-only was given.
4857 if test "${enable_client_only+set}" = set; then
4858   enableval="$enable_client_only"
4859   if test x$enableval = xyes; then
4860      build_client_only=yes
4861     db_name=None
4862     DB_NAME=none
4863    fi
4864 fi;
4865 if test x$build_client_only = xno; then
4866    ALL_DIRS="subdirs"
4867 else
4868    ALL_DIRS=""
4869 fi
4870
4871
4872 # ---------------------------------------------------
4873 # Check for conio (Bacula readline substitute)(
4874 # ---------------------------------------------------
4875 # this allows you to turn it completely off
4876 # Check whether --enable-conio or --disable-conio was given.
4877 if test "${enable_conio+set}" = set; then
4878   enableval="$enable_conio"
4879   if test x$enableval = xno; then
4880     support_conio=no
4881   fi
4882 fi;
4883
4884 got_conio="no"
4885 if test x$support_conio = xyes; then
4886    echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4887 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4888 if test "${ac_cv_header_stdc+set}" = set; then
4889   echo $ECHO_N "(cached) $ECHO_C" >&6
4890 else
4891   cat >conftest.$ac_ext <<_ACEOF
4892 #line $LINENO "configure"
4893 /* confdefs.h.  */
4894 _ACEOF
4895 cat confdefs.h >>conftest.$ac_ext
4896 cat >>conftest.$ac_ext <<_ACEOF
4897 /* end confdefs.h.  */
4898 #include <stdlib.h>
4899 #include <stdarg.h>
4900 #include <string.h>
4901 #include <float.h>
4902
4903 int
4904 main ()
4905 {
4906
4907   ;
4908   return 0;
4909 }
4910 _ACEOF
4911 rm -f conftest.$ac_objext
4912 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4913   (eval $ac_compile) 2>&5
4914   ac_status=$?
4915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4916   (exit $ac_status); } &&
4917          { ac_try='test -s conftest.$ac_objext'
4918   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4919   (eval $ac_try) 2>&5
4920   ac_status=$?
4921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4922   (exit $ac_status); }; }; then
4923   ac_cv_header_stdc=yes
4924 else
4925   echo "$as_me: failed program was:" >&5
4926 sed 's/^/| /' conftest.$ac_ext >&5
4927
4928 ac_cv_header_stdc=no
4929 fi
4930 rm -f conftest.$ac_objext conftest.$ac_ext
4931
4932 if test $ac_cv_header_stdc = yes; then
4933   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4934   cat >conftest.$ac_ext <<_ACEOF
4935 #line $LINENO "configure"
4936 /* confdefs.h.  */
4937 _ACEOF
4938 cat confdefs.h >>conftest.$ac_ext
4939 cat >>conftest.$ac_ext <<_ACEOF
4940 /* end confdefs.h.  */
4941 #include <string.h>
4942
4943 _ACEOF
4944 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4945   $EGREP "memchr" >/dev/null 2>&1; then
4946   :
4947 else
4948   ac_cv_header_stdc=no
4949 fi
4950 rm -f conftest*
4951
4952 fi
4953
4954 if test $ac_cv_header_stdc = yes; then
4955   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4956   cat >conftest.$ac_ext <<_ACEOF
4957 #line $LINENO "configure"
4958 /* confdefs.h.  */
4959 _ACEOF
4960 cat confdefs.h >>conftest.$ac_ext
4961 cat >>conftest.$ac_ext <<_ACEOF
4962 /* end confdefs.h.  */
4963 #include <stdlib.h>
4964
4965 _ACEOF
4966 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4967   $EGREP "free" >/dev/null 2>&1; then
4968   :
4969 else
4970   ac_cv_header_stdc=no
4971 fi
4972 rm -f conftest*
4973
4974 fi
4975
4976 if test $ac_cv_header_stdc = yes; then
4977   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4978   if test "$cross_compiling" = yes; then
4979   :
4980 else
4981   cat >conftest.$ac_ext <<_ACEOF
4982 #line $LINENO "configure"
4983 /* confdefs.h.  */
4984 _ACEOF
4985 cat confdefs.h >>conftest.$ac_ext
4986 cat >>conftest.$ac_ext <<_ACEOF
4987 /* end confdefs.h.  */
4988 #include <ctype.h>
4989 #if ((' ' & 0x0FF) == 0x020)
4990 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4991 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4992 #else
4993 # define ISLOWER(c) \
4994                    (('a' <= (c) && (c) <= 'i') \
4995                      || ('j' <= (c) && (c) <= 'r') \
4996                      || ('s' <= (c) && (c) <= 'z'))
4997 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4998 #endif
4999
5000 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5001 int
5002 main ()
5003 {
5004   int i;
5005   for (i = 0; i < 256; i++)
5006     if (XOR (islower (i), ISLOWER (i))
5007         || toupper (i) != TOUPPER (i))
5008       exit(2);
5009   exit (0);
5010 }
5011 _ACEOF
5012 rm -f conftest$ac_exeext
5013 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5014   (eval $ac_link) 2>&5
5015   ac_status=$?
5016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5017   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5018   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5019   (eval $ac_try) 2>&5
5020   ac_status=$?
5021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5022   (exit $ac_status); }; }; then
5023   :
5024 else
5025   echo "$as_me: program exited with status $ac_status" >&5
5026 echo "$as_me: failed program was:" >&5
5027 sed 's/^/| /' conftest.$ac_ext >&5
5028
5029 ( exit $ac_status )
5030 ac_cv_header_stdc=no
5031 fi
5032 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5033 fi
5034 fi
5035 fi
5036 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5037 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5038 if test $ac_cv_header_stdc = yes; then
5039
5040 cat >>confdefs.h <<\_ACEOF
5041 #define STDC_HEADERS 1
5042 _ACEOF
5043
5044 fi
5045
5046 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5047
5048
5049
5050
5051
5052
5053
5054
5055
5056 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5057                   inttypes.h stdint.h unistd.h
5058 do
5059 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5060 echo "$as_me:$LINENO: checking for $ac_header" >&5
5061 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5062 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5063   echo $ECHO_N "(cached) $ECHO_C" >&6
5064 else
5065   cat >conftest.$ac_ext <<_ACEOF
5066 #line $LINENO "configure"
5067 /* confdefs.h.  */
5068 _ACEOF
5069 cat confdefs.h >>conftest.$ac_ext
5070 cat >>conftest.$ac_ext <<_ACEOF
5071 /* end confdefs.h.  */
5072 $ac_includes_default
5073
5074 #include <$ac_header>
5075 _ACEOF
5076 rm -f conftest.$ac_objext
5077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5078   (eval $ac_compile) 2>&5
5079   ac_status=$?
5080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5081   (exit $ac_status); } &&
5082          { ac_try='test -s conftest.$ac_objext'
5083   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5084   (eval $ac_try) 2>&5
5085   ac_status=$?
5086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5087   (exit $ac_status); }; }; then
5088   eval "$as_ac_Header=yes"
5089 else
5090   echo "$as_me: failed program was:" >&5
5091 sed 's/^/| /' conftest.$ac_ext >&5
5092
5093 eval "$as_ac_Header=no"
5094 fi
5095 rm -f conftest.$ac_objext conftest.$ac_ext
5096 fi
5097 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5098 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5099 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5100   cat >>confdefs.h <<_ACEOF
5101 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5102 _ACEOF
5103
5104 fi
5105
5106 done
5107
5108
5109 if test "${ac_cv_header_termcap_h+set}" = set; then
5110   echo "$as_me:$LINENO: checking for termcap.h" >&5
5111 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
5112 if test "${ac_cv_header_termcap_h+set}" = set; then
5113   echo $ECHO_N "(cached) $ECHO_C" >&6
5114 fi
5115 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
5116 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
5117 else
5118   # Is the header compilable?
5119 echo "$as_me:$LINENO: checking termcap.h usability" >&5
5120 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6
5121 cat >conftest.$ac_ext <<_ACEOF
5122 #line $LINENO "configure"
5123 /* confdefs.h.  */
5124 _ACEOF
5125 cat confdefs.h >>conftest.$ac_ext
5126 cat >>conftest.$ac_ext <<_ACEOF
5127 /* end confdefs.h.  */
5128 $ac_includes_default
5129 #include <termcap.h>
5130 _ACEOF
5131 rm -f conftest.$ac_objext
5132 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5133   (eval $ac_compile) 2>&5
5134   ac_status=$?
5135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5136   (exit $ac_status); } &&
5137          { ac_try='test -s conftest.$ac_objext'
5138   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5139   (eval $ac_try) 2>&5
5140   ac_status=$?
5141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5142   (exit $ac_status); }; }; then
5143   ac_header_compiler=yes
5144 else
5145   echo "$as_me: failed program was:" >&5
5146 sed 's/^/| /' conftest.$ac_ext >&5
5147
5148 ac_header_compiler=no
5149 fi
5150 rm -f conftest.$ac_objext conftest.$ac_ext
5151 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5152 echo "${ECHO_T}$ac_header_compiler" >&6
5153
5154 # Is the header present?
5155 echo "$as_me:$LINENO: checking termcap.h presence" >&5
5156 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6
5157 cat >conftest.$ac_ext <<_ACEOF
5158 #line $LINENO "configure"
5159 /* confdefs.h.  */
5160 _ACEOF
5161 cat confdefs.h >>conftest.$ac_ext
5162 cat >>conftest.$ac_ext <<_ACEOF
5163 /* end confdefs.h.  */
5164 #include <termcap.h>
5165 _ACEOF
5166 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5167   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5168   ac_status=$?
5169   grep -v '^ *+' conftest.er1 >conftest.err
5170   rm -f conftest.er1
5171   cat conftest.err >&5
5172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5173   (exit $ac_status); } >/dev/null; then
5174   if test -s conftest.err; then
5175     ac_cpp_err=$ac_c_preproc_warn_flag
5176   else
5177     ac_cpp_err=
5178   fi
5179 else
5180   ac_cpp_err=yes
5181 fi
5182 if test -z "$ac_cpp_err"; then
5183   ac_header_preproc=yes
5184 else
5185   echo "$as_me: failed program was:" >&5
5186 sed 's/^/| /' conftest.$ac_ext >&5
5187
5188   ac_header_preproc=no
5189 fi
5190 rm -f conftest.err conftest.$ac_ext
5191 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5192 echo "${ECHO_T}$ac_header_preproc" >&6
5193
5194 # So?  What about this header?
5195 case $ac_header_compiler:$ac_header_preproc in
5196   yes:no )
5197     { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
5198 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5199     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
5200 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
5201     (
5202       cat <<\_ASBOX
5203 ## ------------------------------------ ##
5204 ## Report this to bug-autoconf@gnu.org. ##
5205 ## ------------------------------------ ##
5206 _ASBOX
5207     ) |
5208       sed "s/^/$as_me: WARNING:     /" >&2
5209     ;;
5210   no:yes )
5211     { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
5212 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
5213     { echo "$as_me:$LINENO: WARNING: termcap.h: check for missing prerequisite headers?" >&5
5214 echo "$as_me: WARNING: termcap.h: check for missing prerequisite headers?" >&2;}
5215     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
5216 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
5217     (
5218       cat <<\_ASBOX
5219 ## ------------------------------------ ##
5220 ## Report this to bug-autoconf@gnu.org. ##
5221 ## ------------------------------------ ##
5222 _ASBOX
5223     ) |
5224       sed "s/^/$as_me: WARNING:     /" >&2
5225     ;;
5226 esac
5227 echo "$as_me:$LINENO: checking for termcap.h" >&5
5228 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
5229 if test "${ac_cv_header_termcap_h+set}" = set; then
5230   echo $ECHO_N "(cached) $ECHO_C" >&6
5231 else
5232   ac_cv_header_termcap_h=$ac_header_preproc
5233 fi
5234 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
5235 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
5236
5237 fi
5238 if test $ac_cv_header_termcap_h = yes; then
5239    echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
5240 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
5241 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
5242   echo $ECHO_N "(cached) $ECHO_C" >&6
5243 else
5244   ac_check_lib_save_LIBS=$LIBS
5245 LIBS="-ltermcap  $LIBS"
5246 cat >conftest.$ac_ext <<_ACEOF
5247 #line $LINENO "configure"
5248 /* confdefs.h.  */
5249 _ACEOF
5250 cat confdefs.h >>conftest.$ac_ext
5251 cat >>conftest.$ac_ext <<_ACEOF
5252 /* end confdefs.h.  */
5253
5254 /* Override any gcc2 internal prototype to avoid an error.  */
5255 #ifdef __cplusplus
5256 extern "C"
5257 #endif
5258 /* We use char because int might match the return type of a gcc2
5259    builtin and then its argument prototype would still apply.  */
5260 char tgetent ();
5261 int
5262 main ()
5263 {
5264 tgetent ();
5265   ;
5266   return 0;
5267 }
5268 _ACEOF
5269 rm -f conftest.$ac_objext conftest$ac_exeext
5270 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5271   (eval $ac_link) 2>&5
5272   ac_status=$?
5273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5274   (exit $ac_status); } &&
5275          { ac_try='test -s conftest$ac_exeext'
5276   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5277   (eval $ac_try) 2>&5
5278   ac_status=$?
5279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5280   (exit $ac_status); }; }; then
5281   ac_cv_lib_termcap_tgetent=yes
5282 else
5283   echo "$as_me: failed program was:" >&5
5284 sed 's/^/| /' conftest.$ac_ext >&5
5285
5286 ac_cv_lib_termcap_tgetent=no
5287 fi
5288 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5289 LIBS=$ac_check_lib_save_LIBS
5290 fi
5291 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
5292 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
5293 if test $ac_cv_lib_termcap_tgetent = yes; then
5294    CONS_LIBS="-ltermcap"
5295          CONS_OBJ="conio.o"
5296          CONS_SRC="conio.c"
5297          got_conio="yes"
5298          support_readline=no
5299
5300 cat >>confdefs.h <<\_ACEOF
5301 #define HAVE_CONIO 1
5302 _ACEOF
5303
5304
5305 else
5306    echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
5307 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6
5308 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
5309   echo $ECHO_N "(cached) $ECHO_C" >&6
5310 else
5311   ac_check_lib_save_LIBS=$LIBS
5312 LIBS="-lncurses  $LIBS"
5313 cat >conftest.$ac_ext <<_ACEOF
5314 #line $LINENO "configure"
5315 /* confdefs.h.  */
5316 _ACEOF
5317 cat confdefs.h >>conftest.$ac_ext
5318 cat >>conftest.$ac_ext <<_ACEOF
5319 /* end confdefs.h.  */
5320
5321 /* Override any gcc2 internal prototype to avoid an error.  */
5322 #ifdef __cplusplus
5323 extern "C"
5324 #endif
5325 /* We use char because int might match the return type of a gcc2
5326    builtin and then its argument prototype would still apply.  */
5327 char tgetent ();
5328 int
5329 main ()
5330 {
5331 tgetent ();
5332   ;
5333   return 0;
5334 }
5335 _ACEOF
5336 rm -f conftest.$ac_objext conftest$ac_exeext
5337 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5338   (eval $ac_link) 2>&5
5339   ac_status=$?
5340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5341   (exit $ac_status); } &&
5342          { ac_try='test -s conftest$ac_exeext'
5343   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5344   (eval $ac_try) 2>&5
5345   ac_status=$?
5346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5347   (exit $ac_status); }; }; then
5348   ac_cv_lib_ncurses_tgetent=yes
5349 else
5350   echo "$as_me: failed program was:" >&5
5351 sed 's/^/| /' conftest.$ac_ext >&5
5352
5353 ac_cv_lib_ncurses_tgetent=no
5354 fi
5355 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5356 LIBS=$ac_check_lib_save_LIBS
5357 fi
5358 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
5359 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6
5360 if test $ac_cv_lib_ncurses_tgetent = yes; then
5361    CONS_LIBS="-lncurses"
5362            CONS_OBJ="conio.o"
5363            CONS_SRC="conio.c"
5364            got_conio="yes"
5365            support_readline=no
5366
5367 cat >>confdefs.h <<\_ACEOF
5368 #define HAVE_CONIO 1
5369 _ACEOF
5370
5371
5372 else
5373    echo " "; echo "Neither termcap nor ncurses library found. CONIO turned off ..."; echo " "
5374 fi
5375
5376
5377 fi
5378
5379
5380 else
5381   echo " "; echo "termcap.h not found. CONIO turned off ..."; echo " "
5382 fi
5383
5384
5385 fi
5386
5387
5388 # ---------------------------------------------------
5389 # Check for readline support/directory (default off)
5390 # ---------------------------------------------------
5391 # this allows you to turn it completely off
5392 # Check whether --enable-readline or --disable-readline was given.
5393 if test "${enable_readline+set}" = set; then
5394   enableval="$enable_readline"
5395   if test x$enableval = xno; then
5396     support_readline=no
5397   fi
5398 fi;
5399
5400 got_readline="no"
5401 READLINE_SRC=
5402 if test x$support_readline = xyes; then
5403
5404 # Check whether --with-readline or --without-readline was given.
5405 if test "${with_readline+set}" = set; then
5406   withval="$with_readline"
5407
5408         case "$with_readline" in
5409         no) : ;;
5410         yes|*)
5411           if test "$with_readline" != "yes"; then
5412             CONS_INC="-I${with_readline}"
5413             CONS_LDFLAGS="-L$with_readline"
5414           else
5415              with_readline="/usr/include/readline"
5416           fi
5417           as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
5418 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5419   echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
5420 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
5421 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5422   echo $ECHO_N "(cached) $ECHO_C" >&6
5423 fi
5424 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5425 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5426 else
5427   # Is the header compilable?
5428 echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
5429 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6
5430 cat >conftest.$ac_ext <<_ACEOF
5431 #line $LINENO "configure"
5432 /* confdefs.h.  */
5433 _ACEOF
5434 cat confdefs.h >>conftest.$ac_ext
5435 cat >>conftest.$ac_ext <<_ACEOF
5436 /* end confdefs.h.  */
5437 $ac_includes_default
5438 #include <${with_readline}/readline.h>
5439 _ACEOF
5440 rm -f conftest.$ac_objext
5441 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5442   (eval $ac_compile) 2>&5
5443   ac_status=$?
5444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5445   (exit $ac_status); } &&
5446          { ac_try='test -s conftest.$ac_objext'
5447   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5448   (eval $ac_try) 2>&5
5449   ac_status=$?
5450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5451   (exit $ac_status); }; }; then
5452   ac_header_compiler=yes
5453 else
5454   echo "$as_me: failed program was:" >&5
5455 sed 's/^/| /' conftest.$ac_ext >&5
5456
5457 ac_header_compiler=no
5458 fi
5459 rm -f conftest.$ac_objext conftest.$ac_ext
5460 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5461 echo "${ECHO_T}$ac_header_compiler" >&6
5462
5463 # Is the header present?
5464 echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
5465 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6
5466 cat >conftest.$ac_ext <<_ACEOF
5467 #line $LINENO "configure"
5468 /* confdefs.h.  */
5469 _ACEOF
5470 cat confdefs.h >>conftest.$ac_ext
5471 cat >>conftest.$ac_ext <<_ACEOF
5472 /* end confdefs.h.  */
5473 #include <${with_readline}/readline.h>
5474 _ACEOF
5475 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5476   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5477   ac_status=$?
5478   grep -v '^ *+' conftest.er1 >conftest.err
5479   rm -f conftest.er1
5480   cat conftest.err >&5
5481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5482   (exit $ac_status); } >/dev/null; then
5483   if test -s conftest.err; then
5484     ac_cpp_err=$ac_c_preproc_warn_flag
5485   else
5486     ac_cpp_err=
5487   fi
5488 else
5489   ac_cpp_err=yes
5490 fi
5491 if test -z "$ac_cpp_err"; then
5492   ac_header_preproc=yes
5493 else
5494   echo "$as_me: failed program was:" >&5
5495 sed 's/^/| /' conftest.$ac_ext >&5
5496
5497   ac_header_preproc=no
5498 fi
5499 rm -f conftest.err conftest.$ac_ext
5500 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5501 echo "${ECHO_T}$ac_header_preproc" >&6
5502
5503 # So?  What about this header?
5504 case $ac_header_compiler:$ac_header_preproc in
5505   yes:no )
5506     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5507 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5508     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
5509 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
5510     (
5511       cat <<\_ASBOX
5512 ## ------------------------------------ ##
5513 ## Report this to bug-autoconf@gnu.org. ##
5514 ## ------------------------------------ ##
5515 _ASBOX
5516     ) |
5517       sed "s/^/$as_me: WARNING:     /" >&2
5518     ;;
5519   no:yes )
5520     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
5521 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
5522     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&5
5523 echo "$as_me: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&2;}
5524     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
5525 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
5526     (
5527       cat <<\_ASBOX
5528 ## ------------------------------------ ##
5529 ## Report this to bug-autoconf@gnu.org. ##
5530 ## ------------------------------------ ##
5531 _ASBOX
5532     ) |
5533       sed "s/^/$as_me: WARNING:     /" >&2
5534     ;;
5535 esac
5536 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
5537 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
5538 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5539   echo $ECHO_N "(cached) $ECHO_C" >&6
5540 else
5541   eval "$as_ac_Header=$ac_header_preproc"
5542 fi
5543 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5544 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5545
5546 fi
5547 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5548    cat >>confdefs.h <<\_ACEOF
5549 #define HAVE_READLINE 1
5550 _ACEOF
5551
5552                CONS_LIBS="-lreadline -ltermcap"
5553                got_readline="yes"
5554
5555 else
5556    echo " "
5557                echo "readline.h not found. readline turned off ..."
5558                echo " "
5559
5560
5561 fi
5562
5563
5564           ;;
5565         esac
5566
5567 else
5568
5569        # check for standard readline library
5570        if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5571   echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
5572 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
5573 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5574   echo $ECHO_N "(cached) $ECHO_C" >&6
5575 fi
5576 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
5577 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
5578 else
5579   # Is the header compilable?
5580 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
5581 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6
5582 cat >conftest.$ac_ext <<_ACEOF
5583 #line $LINENO "configure"
5584 /* confdefs.h.  */
5585 _ACEOF
5586 cat confdefs.h >>conftest.$ac_ext
5587 cat >>conftest.$ac_ext <<_ACEOF
5588 /* end confdefs.h.  */
5589 $ac_includes_default
5590 #include </usr/include/readline/readline.h>
5591 _ACEOF
5592 rm -f conftest.$ac_objext
5593 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5594   (eval $ac_compile) 2>&5
5595   ac_status=$?
5596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5597   (exit $ac_status); } &&
5598          { ac_try='test -s conftest.$ac_objext'
5599   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5600   (eval $ac_try) 2>&5
5601   ac_status=$?
5602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5603   (exit $ac_status); }; }; then
5604   ac_header_compiler=yes
5605 else
5606   echo "$as_me: failed program was:" >&5
5607 sed 's/^/| /' conftest.$ac_ext >&5
5608
5609 ac_header_compiler=no
5610 fi
5611 rm -f conftest.$ac_objext conftest.$ac_ext
5612 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5613 echo "${ECHO_T}$ac_header_compiler" >&6
5614
5615 # Is the header present?
5616 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
5617 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6
5618 cat >conftest.$ac_ext <<_ACEOF
5619 #line $LINENO "configure"
5620 /* confdefs.h.  */
5621 _ACEOF
5622 cat confdefs.h >>conftest.$ac_ext
5623 cat >>conftest.$ac_ext <<_ACEOF
5624 /* end confdefs.h.  */
5625 #include </usr/include/readline/readline.h>
5626 _ACEOF
5627 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5628   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5629   ac_status=$?
5630   grep -v '^ *+' conftest.er1 >conftest.err
5631   rm -f conftest.er1
5632   cat conftest.err >&5
5633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5634   (exit $ac_status); } >/dev/null; then
5635   if test -s conftest.err; then
5636     ac_cpp_err=$ac_c_preproc_warn_flag
5637   else
5638     ac_cpp_err=
5639   fi
5640 else
5641   ac_cpp_err=yes
5642 fi
5643 if test -z "$ac_cpp_err"; then
5644   ac_header_preproc=yes
5645 else
5646   echo "$as_me: failed program was:" >&5
5647 sed 's/^/| /' conftest.$ac_ext >&5
5648
5649   ac_header_preproc=no
5650 fi
5651 rm -f conftest.err conftest.$ac_ext
5652 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5653 echo "${ECHO_T}$ac_header_preproc" >&6
5654
5655 # So?  What about this header?
5656 case $ac_header_compiler:$ac_header_preproc in
5657   yes:no )
5658     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5659 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5660     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
5661 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5662     (
5663       cat <<\_ASBOX
5664 ## ------------------------------------ ##
5665 ## Report this to bug-autoconf@gnu.org. ##
5666 ## ------------------------------------ ##
5667 _ASBOX
5668     ) |
5669       sed "s/^/$as_me: WARNING:     /" >&2
5670     ;;
5671   no:yes )
5672     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
5673 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
5674     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&5
5675 echo "$as_me: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&2;}
5676     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
5677 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5678     (
5679       cat <<\_ASBOX
5680 ## ------------------------------------ ##
5681 ## Report this to bug-autoconf@gnu.org. ##
5682 ## ------------------------------------ ##
5683 _ASBOX
5684     ) |
5685       sed "s/^/$as_me: WARNING:     /" >&2
5686     ;;
5687 esac
5688 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
5689 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
5690 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5691   echo $ECHO_N "(cached) $ECHO_C" >&6
5692 else
5693   ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
5694 fi
5695 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
5696 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
5697
5698 fi
5699 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
5700    cat >>confdefs.h <<\_ACEOF
5701 #define HAVE_READLINE 1
5702 _ACEOF
5703
5704            got_readline="yes"
5705            CONS_INC="-I/usr/include/readline"
5706            CONS_LIBS="-lreadline -ltermcap"
5707
5708 else
5709
5710            # Did not find standard library, so try Bacula's default
5711             as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
5712 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5713   echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
5714 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
5715 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5716   echo $ECHO_N "(cached) $ECHO_C" >&6
5717 fi
5718 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5719 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5720 else
5721   # Is the header compilable?
5722 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
5723 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6
5724 cat >conftest.$ac_ext <<_ACEOF
5725 #line $LINENO "configure"
5726 /* confdefs.h.  */
5727 _ACEOF
5728 cat confdefs.h >>conftest.$ac_ext
5729 cat >>conftest.$ac_ext <<_ACEOF
5730 /* end confdefs.h.  */
5731 $ac_includes_default
5732 #include <${TOP_DIR}/depkgs/readline/readline.h>
5733 _ACEOF
5734 rm -f conftest.$ac_objext
5735 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5736   (eval $ac_compile) 2>&5
5737   ac_status=$?
5738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5739   (exit $ac_status); } &&
5740          { ac_try='test -s conftest.$ac_objext'
5741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5742   (eval $ac_try) 2>&5
5743   ac_status=$?
5744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5745   (exit $ac_status); }; }; then
5746   ac_header_compiler=yes
5747 else
5748   echo "$as_me: failed program was:" >&5
5749 sed 's/^/| /' conftest.$ac_ext >&5
5750
5751 ac_header_compiler=no
5752 fi
5753 rm -f conftest.$ac_objext conftest.$ac_ext
5754 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5755 echo "${ECHO_T}$ac_header_compiler" >&6
5756
5757 # Is the header present?
5758 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
5759 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6
5760 cat >conftest.$ac_ext <<_ACEOF
5761 #line $LINENO "configure"
5762 /* confdefs.h.  */
5763 _ACEOF
5764 cat confdefs.h >>conftest.$ac_ext
5765 cat >>conftest.$ac_ext <<_ACEOF
5766 /* end confdefs.h.  */
5767 #include <${TOP_DIR}/depkgs/readline/readline.h>
5768 _ACEOF
5769 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5770   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5771   ac_status=$?
5772   grep -v '^ *+' conftest.er1 >conftest.err
5773   rm -f conftest.er1
5774   cat conftest.err >&5
5775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5776   (exit $ac_status); } >/dev/null; then
5777   if test -s conftest.err; then
5778     ac_cpp_err=$ac_c_preproc_warn_flag
5779   else
5780     ac_cpp_err=
5781   fi
5782 else
5783   ac_cpp_err=yes
5784 fi
5785 if test -z "$ac_cpp_err"; then
5786   ac_header_preproc=yes
5787 else
5788   echo "$as_me: failed program was:" >&5
5789 sed 's/^/| /' conftest.$ac_ext >&5
5790
5791   ac_header_preproc=no
5792 fi
5793 rm -f conftest.err conftest.$ac_ext
5794 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5795 echo "${ECHO_T}$ac_header_preproc" >&6
5796
5797 # So?  What about this header?
5798 case $ac_header_compiler:$ac_header_preproc in
5799   yes:no )
5800     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5801 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5802     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
5803 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5804     (
5805       cat <<\_ASBOX
5806 ## ------------------------------------ ##
5807 ## Report this to bug-autoconf@gnu.org. ##
5808 ## ------------------------------------ ##
5809 _ASBOX
5810     ) |
5811       sed "s/^/$as_me: WARNING:     /" >&2
5812     ;;
5813   no:yes )
5814     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
5815 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
5816     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&5
5817 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&2;}
5818     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
5819 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5820     (
5821       cat <<\_ASBOX
5822 ## ------------------------------------ ##
5823 ## Report this to bug-autoconf@gnu.org. ##
5824 ## ------------------------------------ ##
5825 _ASBOX
5826     ) |
5827       sed "s/^/$as_me: WARNING:     /" >&2
5828     ;;
5829 esac
5830 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
5831 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
5832 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5833   echo $ECHO_N "(cached) $ECHO_C" >&6
5834 else
5835   eval "$as_ac_Header=$ac_header_preproc"
5836 fi
5837 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5838 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5839
5840 fi
5841 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5842    cat >>confdefs.h <<\_ACEOF
5843 #define HAVE_READLINE 1
5844 _ACEOF
5845
5846                  got_readline="yes"
5847                  CONS_INC="-I${TOP_DIR}/depkgs/readline"
5848                  CONS_LIBS="-lreadline -lhistory -ltermcap"
5849                  CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
5850                  PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
5851
5852 else
5853    echo " "
5854                 echo "readline.h not found. readline turned off ..."
5855                 echo " "
5856
5857
5858 fi
5859
5860
5861
5862
5863 fi
5864
5865
5866
5867
5868 fi;
5869 fi
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880 # Minimal stuff for readline Makefile configuration
5881 MAKE_SHELL=/bin/sh
5882
5883 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
5884 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
5885 if test "${ac_cv_header_stat_broken+set}" = set; then
5886   echo $ECHO_N "(cached) $ECHO_C" >&6
5887 else
5888   cat >conftest.$ac_ext <<_ACEOF
5889 #line $LINENO "configure"
5890 /* confdefs.h.  */
5891 _ACEOF
5892 cat confdefs.h >>conftest.$ac_ext
5893 cat >>conftest.$ac_ext <<_ACEOF
5894 /* end confdefs.h.  */
5895 #include <sys/types.h>
5896 #include <sys/stat.h>
5897
5898 #if defined(S_ISBLK) && defined(S_IFDIR)
5899 # if S_ISBLK (S_IFDIR)
5900 You lose.
5901 # endif
5902 #endif
5903
5904 #if defined(S_ISBLK) && defined(S_IFCHR)
5905 # if S_ISBLK (S_IFCHR)
5906 You lose.
5907 # endif
5908 #endif
5909
5910 #if defined(S_ISLNK) && defined(S_IFREG)
5911 # if S_ISLNK (S_IFREG)
5912 You lose.
5913 # endif
5914 #endif
5915
5916 #if defined(S_ISSOCK) && defined(S_IFREG)
5917 # if S_ISSOCK (S_IFREG)
5918 You lose.
5919 # endif
5920 #endif
5921
5922 _ACEOF
5923 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5924   $EGREP "You lose" >/dev/null 2>&1; then
5925   ac_cv_header_stat_broken=yes
5926 else
5927   ac_cv_header_stat_broken=no
5928 fi
5929 rm -f conftest*
5930
5931 fi
5932 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
5933 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
5934 if test $ac_cv_header_stat_broken = yes; then
5935
5936 cat >>confdefs.h <<\_ACEOF
5937 #define STAT_MACROS_BROKEN 1
5938 _ACEOF
5939
5940 fi
5941
5942
5943
5944
5945
5946
5947 ac_header_dirent=no
5948 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5949   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5950 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5951 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
5952 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5953   echo $ECHO_N "(cached) $ECHO_C" >&6
5954 else
5955   cat >conftest.$ac_ext <<_ACEOF
5956 #line $LINENO "configure"
5957 /* confdefs.h.  */
5958 _ACEOF
5959 cat confdefs.h >>conftest.$ac_ext
5960 cat >>conftest.$ac_ext <<_ACEOF
5961 /* end confdefs.h.  */
5962 #include <sys/types.h>
5963 #include <$ac_hdr>
5964
5965 int
5966 main ()
5967 {
5968 if ((DIR *) 0)
5969 return 0;
5970   ;
5971   return 0;
5972 }
5973 _ACEOF
5974 rm -f conftest.$ac_objext
5975 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5976   (eval $ac_compile) 2>&5
5977   ac_status=$?
5978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5979   (exit $ac_status); } &&
5980          { ac_try='test -s conftest.$ac_objext'
5981   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5982   (eval $ac_try) 2>&5
5983   ac_status=$?
5984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5985   (exit $ac_status); }; }; then
5986   eval "$as_ac_Header=yes"
5987 else
5988   echo "$as_me: failed program was:" >&5
5989 sed 's/^/| /' conftest.$ac_ext >&5
5990
5991 eval "$as_ac_Header=no"
5992 fi
5993 rm -f conftest.$ac_objext conftest.$ac_ext
5994 fi
5995 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5996 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5997 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5998   cat >>confdefs.h <<_ACEOF
5999 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6000 _ACEOF
6001
6002 ac_header_dirent=$ac_hdr; break
6003 fi
6004
6005 done
6006 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6007 if test $ac_header_dirent = dirent.h; then
6008   echo "$as_me:$LINENO: checking for library containing opendir" >&5
6009 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6010 if test "${ac_cv_search_opendir+set}" = set; then
6011   echo $ECHO_N "(cached) $ECHO_C" >&6
6012 else
6013   ac_func_search_save_LIBS=$LIBS
6014 ac_cv_search_opendir=no
6015 cat >conftest.$ac_ext <<_ACEOF
6016 #line $LINENO "configure"
6017 /* confdefs.h.  */
6018 _ACEOF
6019 cat confdefs.h >>conftest.$ac_ext
6020 cat >>conftest.$ac_ext <<_ACEOF
6021 /* end confdefs.h.  */
6022
6023 /* Override any gcc2 internal prototype to avoid an error.  */
6024 #ifdef __cplusplus
6025 extern "C"
6026 #endif
6027 /* We use char because int might match the return type of a gcc2
6028    builtin and then its argument prototype would still apply.  */
6029 char opendir ();
6030 int
6031 main ()
6032 {
6033 opendir ();
6034   ;
6035   return 0;
6036 }
6037 _ACEOF
6038 rm -f conftest.$ac_objext conftest$ac_exeext
6039 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6040   (eval $ac_link) 2>&5
6041   ac_status=$?
6042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6043   (exit $ac_status); } &&
6044          { ac_try='test -s conftest$ac_exeext'
6045   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6046   (eval $ac_try) 2>&5
6047   ac_status=$?
6048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6049   (exit $ac_status); }; }; then
6050   ac_cv_search_opendir="none required"
6051 else
6052   echo "$as_me: failed program was:" >&5
6053 sed 's/^/| /' conftest.$ac_ext >&5
6054
6055 fi
6056 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6057 if test "$ac_cv_search_opendir" = no; then
6058   for ac_lib in dir; do
6059     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6060     cat >conftest.$ac_ext <<_ACEOF
6061 #line $LINENO "configure"
6062 /* confdefs.h.  */
6063 _ACEOF
6064 cat confdefs.h >>conftest.$ac_ext
6065 cat >>conftest.$ac_ext <<_ACEOF
6066 /* end confdefs.h.  */
6067
6068 /* Override any gcc2 internal prototype to avoid an error.  */
6069 #ifdef __cplusplus
6070 extern "C"
6071 #endif
6072 /* We use char because int might match the return type of a gcc2
6073    builtin and then its argument prototype would still apply.  */
6074 char opendir ();
6075 int
6076 main ()
6077 {
6078 opendir ();
6079   ;
6080   return 0;
6081 }
6082 _ACEOF
6083 rm -f conftest.$ac_objext conftest$ac_exeext
6084 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6085   (eval $ac_link) 2>&5
6086   ac_status=$?
6087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6088   (exit $ac_status); } &&
6089          { ac_try='test -s conftest$ac_exeext'
6090   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6091   (eval $ac_try) 2>&5
6092   ac_status=$?
6093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6094   (exit $ac_status); }; }; then
6095   ac_cv_search_opendir="-l$ac_lib"
6096 break
6097 else
6098   echo "$as_me: failed program was:" >&5
6099 sed 's/^/| /' conftest.$ac_ext >&5
6100
6101 fi
6102 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6103   done
6104 fi
6105 LIBS=$ac_func_search_save_LIBS
6106 fi
6107 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6108 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6109 if test "$ac_cv_search_opendir" != no; then
6110   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6111
6112 fi
6113
6114 else
6115   echo "$as_me:$LINENO: checking for library containing opendir" >&5
6116 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6117 if test "${ac_cv_search_opendir+set}" = set; then
6118   echo $ECHO_N "(cached) $ECHO_C" >&6
6119 else
6120   ac_func_search_save_LIBS=$LIBS
6121 ac_cv_search_opendir=no
6122 cat >conftest.$ac_ext <<_ACEOF
6123 #line $LINENO "configure"
6124 /* confdefs.h.  */
6125 _ACEOF
6126 cat confdefs.h >>conftest.$ac_ext
6127 cat >>conftest.$ac_ext <<_ACEOF
6128 /* end confdefs.h.  */
6129
6130 /* Override any gcc2 internal prototype to avoid an error.  */
6131 #ifdef __cplusplus
6132 extern "C"
6133 #endif
6134 /* We use char because int might match the return type of a gcc2
6135    builtin and then its argument prototype would still apply.  */
6136 char opendir ();
6137 int
6138 main ()
6139 {
6140 opendir ();
6141   ;
6142   return 0;
6143 }
6144 _ACEOF
6145 rm -f conftest.$ac_objext conftest$ac_exeext
6146 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6147   (eval $ac_link) 2>&5
6148   ac_status=$?
6149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6150   (exit $ac_status); } &&
6151          { ac_try='test -s conftest$ac_exeext'
6152   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6153   (eval $ac_try) 2>&5
6154   ac_status=$?
6155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6156   (exit $ac_status); }; }; then
6157   ac_cv_search_opendir="none required"
6158 else
6159   echo "$as_me: failed program was:" >&5
6160 sed 's/^/| /' conftest.$ac_ext >&5
6161
6162 fi
6163 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6164 if test "$ac_cv_search_opendir" = no; then
6165   for ac_lib in x; do
6166     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6167     cat >conftest.$ac_ext <<_ACEOF
6168 #line $LINENO "configure"
6169 /* confdefs.h.  */
6170 _ACEOF
6171 cat confdefs.h >>conftest.$ac_ext
6172 cat >>conftest.$ac_ext <<_ACEOF
6173 /* end confdefs.h.  */
6174
6175 /* Override any gcc2 internal prototype to avoid an error.  */
6176 #ifdef __cplusplus
6177 extern "C"
6178 #endif
6179 /* We use char because int might match the return type of a gcc2
6180    builtin and then its argument prototype would still apply.  */
6181 char opendir ();
6182 int
6183 main ()
6184 {
6185 opendir ();
6186   ;
6187   return 0;
6188 }
6189 _ACEOF
6190 rm -f conftest.$ac_objext conftest$ac_exeext
6191 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6192   (eval $ac_link) 2>&5
6193   ac_status=$?
6194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6195   (exit $ac_status); } &&
6196          { ac_try='test -s conftest$ac_exeext'
6197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6198   (eval $ac_try) 2>&5
6199   ac_status=$?
6200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6201   (exit $ac_status); }; }; then
6202   ac_cv_search_opendir="-l$ac_lib"
6203 break
6204 else
6205   echo "$as_me: failed program was:" >&5
6206 sed 's/^/| /' conftest.$ac_ext >&5
6207
6208 fi
6209 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6210   done
6211 fi
6212 LIBS=$ac_func_search_save_LIBS
6213 fi
6214 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6215 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6216 if test "$ac_cv_search_opendir" != no; then
6217   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6218
6219 fi
6220
6221 fi
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231 for ac_func in strcasecmp select setenv putenv tcgetattr setlocale lstat lchown
6232 do
6233 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6234 echo "$as_me:$LINENO: checking for $ac_func" >&5
6235 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6236 if eval "test \"\${$as_ac_var+set}\" = set"; then
6237   echo $ECHO_N "(cached) $ECHO_C" >&6
6238 else
6239   cat >conftest.$ac_ext <<_ACEOF
6240 #line $LINENO "configure"
6241 /* confdefs.h.  */
6242 _ACEOF
6243 cat confdefs.h >>conftest.$ac_ext
6244 cat >>conftest.$ac_ext <<_ACEOF
6245 /* end confdefs.h.  */
6246 /* System header to define __stub macros and hopefully few prototypes,
6247     which can conflict with char $ac_func (); below.
6248     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6249     <limits.h> exists even on freestanding compilers.  */
6250 #ifdef __STDC__
6251 # include <limits.h>
6252 #else
6253 # include <assert.h>
6254 #endif
6255 /* Override any gcc2 internal prototype to avoid an error.  */
6256 #ifdef __cplusplus
6257 extern "C"
6258 {
6259 #endif
6260 /* We use char because int might match the return type of a gcc2
6261    builtin and then its argument prototype would still apply.  */
6262 char $ac_func ();
6263 /* The GNU C library defines this for functions which it implements
6264     to always fail with ENOSYS.  Some functions are actually named
6265     something starting with __ and the normal name is an alias.  */
6266 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6267 choke me
6268 #else
6269 char (*f) () = $ac_func;
6270 #endif
6271 #ifdef __cplusplus
6272 }
6273 #endif
6274
6275 int
6276 main ()
6277 {
6278 return f != $ac_func;
6279   ;
6280   return 0;
6281 }
6282 _ACEOF
6283 rm -f conftest.$ac_objext conftest$ac_exeext
6284 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6285   (eval $ac_link) 2>&5
6286   ac_status=$?
6287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6288   (exit $ac_status); } &&
6289          { ac_try='test -s conftest$ac_exeext'
6290   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6291   (eval $ac_try) 2>&5
6292   ac_status=$?
6293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6294   (exit $ac_status); }; }; then
6295   eval "$as_ac_var=yes"
6296 else
6297   echo "$as_me: failed program was:" >&5
6298 sed 's/^/| /' conftest.$ac_ext >&5
6299
6300 eval "$as_ac_var=no"
6301 fi
6302 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6303 fi
6304 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6305 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6306 if test `eval echo '${'$as_ac_var'}'` = yes; then
6307   cat >>confdefs.h <<_ACEOF
6308 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6309 _ACEOF
6310
6311 fi
6312 done
6313
6314
6315
6316 for ac_func in nanosleep nl_langinfo
6317 do
6318 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6319 echo "$as_me:$LINENO: checking for $ac_func" >&5
6320 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6321 if eval "test \"\${$as_ac_var+set}\" = set"; then
6322   echo $ECHO_N "(cached) $ECHO_C" >&6
6323 else
6324   cat >conftest.$ac_ext <<_ACEOF
6325 #line $LINENO "configure"
6326 /* confdefs.h.  */
6327 _ACEOF
6328 cat confdefs.h >>conftest.$ac_ext
6329 cat >>conftest.$ac_ext <<_ACEOF
6330 /* end confdefs.h.  */
6331 /* System header to define __stub macros and hopefully few prototypes,
6332     which can conflict with char $ac_func (); below.
6333     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6334     <limits.h> exists even on freestanding compilers.  */
6335 #ifdef __STDC__
6336 # include <limits.h>
6337 #else
6338 # include <assert.h>
6339 #endif
6340 /* Override any gcc2 internal prototype to avoid an error.  */
6341 #ifdef __cplusplus
6342 extern "C"
6343 {
6344 #endif
6345 /* We use char because int might match the return type of a gcc2
6346    builtin and then its argument prototype would still apply.  */
6347 char $ac_func ();
6348 /* The GNU C library defines this for functions which it implements
6349     to always fail with ENOSYS.  Some functions are actually named
6350     something starting with __ and the normal name is an alias.  */
6351 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6352 choke me
6353 #else
6354 char (*f) () = $ac_func;
6355 #endif
6356 #ifdef __cplusplus
6357 }
6358 #endif
6359
6360 int
6361 main ()
6362 {
6363 return f != $ac_func;
6364   ;
6365   return 0;
6366 }
6367 _ACEOF
6368 rm -f conftest.$ac_objext conftest$ac_exeext
6369 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6370   (eval $ac_link) 2>&5
6371   ac_status=$?
6372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6373   (exit $ac_status); } &&
6374          { ac_try='test -s conftest$ac_exeext'
6375   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6376   (eval $ac_try) 2>&5
6377   ac_status=$?
6378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6379   (exit $ac_status); }; }; then
6380   eval "$as_ac_var=yes"
6381 else
6382   echo "$as_me: failed program was:" >&5
6383 sed 's/^/| /' conftest.$ac_ext >&5
6384
6385 eval "$as_ac_var=no"
6386 fi
6387 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6388 fi
6389 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6390 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6391 if test `eval echo '${'$as_ac_var'}'` = yes; then
6392   cat >>confdefs.h <<_ACEOF
6393 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6394 _ACEOF
6395
6396 fi
6397 done
6398
6399
6400 for ac_header in varargs.h
6401 do
6402 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6403 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6404   echo "$as_me:$LINENO: checking for $ac_header" >&5
6405 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6406 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6407   echo $ECHO_N "(cached) $ECHO_C" >&6
6408 fi
6409 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6410 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6411 else
6412   # Is the header compilable?
6413 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6414 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6415 cat >conftest.$ac_ext <<_ACEOF
6416 #line $LINENO "configure"
6417 /* confdefs.h.  */
6418 _ACEOF
6419 cat confdefs.h >>conftest.$ac_ext
6420 cat >>conftest.$ac_ext <<_ACEOF
6421 /* end confdefs.h.  */
6422 $ac_includes_default
6423 #include <$ac_header>
6424 _ACEOF
6425 rm -f conftest.$ac_objext
6426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6427   (eval $ac_compile) 2>&5
6428   ac_status=$?
6429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6430   (exit $ac_status); } &&
6431          { ac_try='test -s conftest.$ac_objext'
6432   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6433   (eval $ac_try) 2>&5
6434   ac_status=$?
6435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6436   (exit $ac_status); }; }; then
6437   ac_header_compiler=yes
6438 else
6439   echo "$as_me: failed program was:" >&5
6440 sed 's/^/| /' conftest.$ac_ext >&5
6441
6442 ac_header_compiler=no
6443 fi
6444 rm -f conftest.$ac_objext conftest.$ac_ext
6445 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6446 echo "${ECHO_T}$ac_header_compiler" >&6
6447
6448 # Is the header present?
6449 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6450 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6451 cat >conftest.$ac_ext <<_ACEOF
6452 #line $LINENO "configure"
6453 /* confdefs.h.  */
6454 _ACEOF
6455 cat confdefs.h >>conftest.$ac_ext
6456 cat >>conftest.$ac_ext <<_ACEOF
6457 /* end confdefs.h.  */
6458 #include <$ac_header>
6459 _ACEOF
6460 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6461   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6462   ac_status=$?
6463   grep -v '^ *+' conftest.er1 >conftest.err
6464   rm -f conftest.er1
6465   cat conftest.err >&5
6466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6467   (exit $ac_status); } >/dev/null; then
6468   if test -s conftest.err; then
6469     ac_cpp_err=$ac_c_preproc_warn_flag
6470   else
6471     ac_cpp_err=
6472   fi
6473 else
6474   ac_cpp_err=yes
6475 fi
6476 if test -z "$ac_cpp_err"; then
6477   ac_header_preproc=yes
6478 else
6479   echo "$as_me: failed program was:" >&5
6480 sed 's/^/| /' conftest.$ac_ext >&5
6481
6482   ac_header_preproc=no
6483 fi
6484 rm -f conftest.err conftest.$ac_ext
6485 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6486 echo "${ECHO_T}$ac_header_preproc" >&6
6487
6488 # So?  What about this header?
6489 case $ac_header_compiler:$ac_header_preproc in
6490   yes:no )
6491     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6492 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6493     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6494 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6495     (
6496       cat <<\_ASBOX
6497 ## ------------------------------------ ##
6498 ## Report this to bug-autoconf@gnu.org. ##
6499 ## ------------------------------------ ##
6500 _ASBOX
6501     ) |
6502       sed "s/^/$as_me: WARNING:     /" >&2
6503     ;;
6504   no:yes )
6505     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6506 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6507     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6508 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6509     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6510 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6511     (
6512       cat <<\_ASBOX
6513 ## ------------------------------------ ##
6514 ## Report this to bug-autoconf@gnu.org. ##
6515 ## ------------------------------------ ##
6516 _ASBOX
6517     ) |
6518       sed "s/^/$as_me: WARNING:     /" >&2
6519     ;;
6520 esac
6521 echo "$as_me:$LINENO: checking for $ac_header" >&5
6522 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6523 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6524   echo $ECHO_N "(cached) $ECHO_C" >&6
6525 else
6526   eval "$as_ac_Header=$ac_header_preproc"
6527 fi
6528 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6529 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6530
6531 fi
6532 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6533   cat >>confdefs.h <<_ACEOF
6534 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6535 _ACEOF
6536
6537 fi
6538
6539 done
6540
6541
6542 # End of readline/conio stuff
6543 # -----------------------------------------------------------------------
6544
6545
6546 # ---------------------------------------------------
6547 # Check for GMP support/directory
6548 # ---------------------------------------------------
6549 #GMP_SRC=
6550 #local_gmp="no"
6551 #AC_ARG_WITH(gmp,
6552 #  [  --with-gmp[=DIR]   Specify gmp library directory],
6553 #  [
6554 #     case "$with_gmp" in
6555 #     no) : ;;
6556 #     yes|*)
6557 #       if test "$with_gmp" != "yes"; then
6558 #         GMP_INC="-I$with_gmp"
6559 #         GMP_LIBS="-lgmp"
6560 #         GMP_LDFLAGS="-L$with_gmp"
6561 #       else
6562 #          with_gmp="/usr/include"
6563 #       fi
6564 #       AC_CHECK_HEADER($with_gmp/gmp.h,
6565 #          [ AC_MSG_RESULT(yes)
6566 #            AC_DEFINE(HAVE_GMP)
6567 #            GMP_LIBS="-lgmp"
6568 #            got_gmp="yes"
6569 #          ],
6570 #          [ AC_MSG_ERROR([*** gmp library missing])
6571 #          ]
6572 #       )
6573 #       ;;
6574 #     esac
6575 #  ],[
6576 #    # check for standard gmp library
6577 #    AC_CHECK_HEADER(/usr/include/gmp.h,
6578 #    [ AC_MSG_RESULT(yes)
6579 #      AC_DEFINE(HAVE_GMP)
6580 #      got_gmp="yes"
6581 #      GMP_INC=
6582 #      GMP_LIBS="-lgmp"
6583 #    ], [
6584 #      # Did not find standard library, so use our own
6585 #      AC_MSG_RESULT(yes)
6586 #      AC_DEFINE(HAVE_GMP)
6587 #      got_gmp="yes"
6588 #      local_gmp="yes"
6589 #      GMP_INC="-I${TOP_DIR}/depkgs/gmp"
6590 #      GMP_LIBS="-lgmp"
6591 #      GMP_LDFLAGS="-L${TOP_DIR}/depkgs/gmp"
6592 #      GMP_SRC="${TOP_DIR}/depkgs/gmp"
6593 #    ])
6594 #  ]
6595 #)
6596 #AC_SUBST(GMP_INC)
6597 #AC_SUBST(GMP_LIBS)
6598 #AC_SUBST(GMP_LDFLAGS)
6599 #AC_SUBST(GMP_SRC)
6600
6601 # End of GMP stuff
6602 # -----------------------------------------------------------------------
6603
6604
6605 # ---------------------------------------------------
6606 # Check for CWEB support/directory
6607 # ---------------------------------------------------
6608 #CWEB_SRC=
6609 #CWEB=/bin
6610 #local_cweb="no"
6611 #AC_ARG_WITH(cweb,
6612 #  [  --with-cweb[=DIR]   Specify cweb library directory],
6613 #  [
6614 #     case "$with_cweb" in
6615 #     no) : ;;
6616 #     yes|*)
6617 #       if test "$with_cweb" != "yes"; then
6618 #         CWEB_INC="-I$with_cweb"
6619 #         CWEB_LIBS="-lcweb"
6620 #         CWEB_LDFLAGS="-L$with_cweb"
6621 #       else
6622 #          with_cweb="/usr/include"
6623 #       fi
6624 #       AC_CHECK_HEADER($with_cweb/cweb.h,
6625 #          [ AC_MSG_RESULT(yes)
6626 #            AC_DEFINE(HAVE_CWEB)
6627 #            CWEB_LIBS="-lcweb"
6628 #            got_cweb="yes"
6629 #          ],
6630 #          [ AC_MSG_ERROR([*** cweb library missing])
6631 #          ]
6632 #       )
6633 #       ;;
6634 #     esac
6635 #  ],[
6636 #    # check for standard cweb library
6637 #    AC_CHECK_HEADER(/usr/include/cweb.h,
6638 #    [ AC_MSG_RESULT(yes)
6639 #      AC_DEFINE(HAVE_CWEB)
6640 #      got_cweb="yes"
6641 #      CWEB_INC=
6642 #      CWEB_LIBS="-lcweb"
6643 #    ], [
6644 #      # Did not find starndard library, so use our own
6645 #      AC_MSG_RESULT(yes)
6646 #      AC_DEFINE(HAVE_CWEB)
6647 #      got_cweb="yes"
6648 #      local_cweb="yes"
6649 #      CWEB=${TOP_DIR}/depkgs/cweb
6650 #      CWEB_INC="-I${TOP_DIR}/depkgs/cweb"
6651 #      CWEB_LIBS="-lcweb"
6652 #      CWEB_LDFLAGS="-L${TOP_DIR}/depkgs/cweb"
6653 #      CWEB_SRC="${TOP_DIR}/depkgs/cweb"
6654 #    ])
6655 #  ]
6656 #)
6657 #AC_SUBST(CWEB)
6658 #AC_SUBST(CWEB_INC)
6659 #AC_SUBST(CWEB_LIBS)
6660 #AC_SUBST(CWEB_LDFLAGS)
6661 #AC_SUBST(CWEB_SRC)
6662
6663 # End of CWEB stuff
6664 # -----------------------------------------------------------------------
6665
6666
6667
6668 # -----------------------------------------------------------
6669 # Check whether user wants TCP wrappers support (default off)
6670 # -----------------------------------------------------------
6671 TCPW_MSG="no"
6672
6673 # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
6674 if test "${with_tcp_wrappers+set}" = set; then
6675   withval="$with_tcp_wrappers"
6676
6677     if test "x$withval" != "xno" ; then
6678        saved_LIBS="$LIBS"
6679        LIBS="$saved_LIBS -lwrap"
6680        echo "$as_me:$LINENO: checking for libwrap" >&5
6681 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6
6682        cat >conftest.$ac_ext <<_ACEOF
6683 #line $LINENO "configure"
6684 /* confdefs.h.  */
6685 _ACEOF
6686 cat confdefs.h >>conftest.$ac_ext
6687 cat >>conftest.$ac_ext <<_ACEOF
6688 /* end confdefs.h.  */
6689  #include <tcpd.h>
6690              int deny_severity = 0;
6691              int allow_severity = 0;
6692              struct request_info *req;
6693 int
6694 main ()
6695 {
6696  hosts_access(req);
6697   ;
6698   return 0;
6699 }
6700 _ACEOF
6701 rm -f conftest.$ac_objext conftest$ac_exeext
6702 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6703   (eval $ac_link) 2>&5
6704   ac_status=$?
6705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6706   (exit $ac_status); } &&
6707          { ac_try='test -s conftest$ac_exeext'
6708   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6709   (eval $ac_try) 2>&5
6710   ac_status=$?
6711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6712   (exit $ac_status); }; }; then
6713
6714             echo "$as_me:$LINENO: result: yes" >&5
6715 echo "${ECHO_T}yes" >&6
6716             cat >>confdefs.h <<\_ACEOF
6717 #define HAVE_LIBWRAP 1
6718 _ACEOF
6719
6720             TCPW_MSG="yes"
6721
6722 else
6723   echo "$as_me: failed program was:" >&5
6724 sed 's/^/| /' conftest.$ac_ext >&5
6725
6726
6727             LIBS="$saved_LIBS -lwrap -lnsl"
6728             cat >conftest.$ac_ext <<_ACEOF
6729 #line $LINENO "configure"
6730 /* confdefs.h.  */
6731 _ACEOF
6732 cat confdefs.h >>conftest.$ac_ext
6733 cat >>conftest.$ac_ext <<_ACEOF
6734 /* end confdefs.h.  */
6735  #include <tcpd.h>
6736                  int deny_severity = 0;
6737                  int allow_severity = 0;
6738                  struct request_info *req;
6739 int
6740 main ()
6741 {
6742  hosts_access(req);
6743   ;
6744   return 0;
6745 }
6746 _ACEOF
6747 rm -f conftest.$ac_objext conftest$ac_exeext
6748 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6749   (eval $ac_link) 2>&5
6750   ac_status=$?
6751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6752   (exit $ac_status); } &&
6753          { ac_try='test -s conftest$ac_exeext'
6754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6755   (eval $ac_try) 2>&5
6756   ac_status=$?
6757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6758   (exit $ac_status); }; }; then
6759
6760                  echo "$as_me:$LINENO: result: yes" >&5
6761 echo "${ECHO_T}yes" >&6
6762                  cat >>confdefs.h <<\_ACEOF
6763 #define HAVE_LIBWRAP 1
6764 _ACEOF
6765
6766                  TCPW_MSG="yes"
6767
6768 else
6769   echo "$as_me: failed program was:" >&5
6770 sed 's/^/| /' conftest.$ac_ext >&5
6771
6772 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
6773 echo "$as_me: error: *** libwrap missing" >&2;}
6774    { (exit 1); exit 1; }; }
6775
6776 fi
6777 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6778
6779 fi
6780 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6781     fi
6782
6783
6784 fi;
6785
6786 # ------------------------------------------
6787 # Where to place working dir
6788 # ------------------------------------------
6789 working_dir=`eval echo ${prefix}/var/bacula/working`
6790
6791 # Check whether --with-working-dir or --without-working-dir was given.
6792 if test "${with_working_dir+set}" = set; then
6793   withval="$with_working_dir"
6794
6795        if test "x$withval" != "xno" ; then
6796               working_dir=$withval
6797        fi
6798
6799
6800 fi;
6801
6802
6803
6804
6805 # ------------------------------------------
6806 # Where to place scriptdir (script files)
6807 # ------------------------------------------
6808 scriptdir=`eval echo ${sysconfdir}`
6809
6810 # Check whether --with-scriptdir or --without-scriptdir was given.
6811 if test "${with_scriptdir+set}" = set; then
6812   withval="$with_scriptdir"
6813
6814        if test "x$withval" != "xno" ; then
6815               scriptdir=$withval
6816        fi
6817
6818
6819 fi;
6820
6821
6822
6823
6824 # ------------------------------------------
6825 # Where to send dump email
6826 # ------------------------------------------
6827 dump_email=root@localhost
6828
6829 # Check whether --with-dump-email or --without-dump-email was given.
6830 if test "${with_dump_email+set}" = set; then
6831   withval="$with_dump_email"
6832
6833        if test "x$withval" != "xno" ; then
6834               dump_email=$withval
6835        fi
6836
6837
6838 fi;
6839
6840
6841
6842 # ------------------------------------------
6843 # Where to send job email
6844 # ------------------------------------------
6845 job_email=root@localhost
6846
6847 # Check whether --with-job-email or --without-job-email was given.
6848 if test "${with_job_email+set}" = set; then
6849   withval="$with_job_email"
6850
6851        if test "x$withval" != "xno" ; then
6852               job_email=$withval
6853        fi
6854
6855
6856 fi;
6857
6858
6859
6860 # ------------------------------------------
6861 # Where to find smtp host
6862 # ------------------------------------------
6863 smtp_host=localhost
6864
6865 # Check whether --with-smtp_host or --without-smtp_host was given.
6866 if test "${with_smtp_host+set}" = set; then
6867   withval="$with_smtp_host"
6868
6869        if test "x$withval" != "xno" ; then
6870               smtp_host=$withval
6871        fi
6872
6873
6874 fi;
6875
6876
6877
6878
6879 # ------------------------------------
6880 # Where to place pid files
6881 # ------------------------------------
6882 piddir=/var/run
6883
6884 # Check whether --with-pid-dir or --without-pid-dir was given.
6885 if test "${with_pid_dir+set}" = set; then
6886   withval="$with_pid_dir"
6887
6888         if test "x$withval" != "xno" ; then
6889             piddir=$withval
6890         fi
6891
6892
6893 fi;
6894
6895 cat >>confdefs.h <<_ACEOF
6896 #define _PATH_BACULA_PIDDIR "$piddir"
6897 _ACEOF
6898
6899
6900
6901
6902 # ------------------------------------
6903 # Where to place subsys "lock file"
6904 # ------------------------------------
6905 subsysdir=/var/run/subsys
6906
6907 # Check whether --with-subsys-dir or --without-subsys-dir was given.
6908 if test "${with_subsys_dir+set}" = set; then
6909   withval="$with_subsys_dir"
6910
6911         if test "x$withval" != "xno" ; then
6912             subsysdir=$withval
6913         fi
6914
6915
6916 fi;
6917
6918
6919
6920
6921
6922 # ------------------------------------
6923 # Where to start assigning ports
6924 # ------------------------------------
6925 baseport=9101
6926
6927 # Check whether --with-baseport or --without-baseport was given.
6928 if test "${with_baseport+set}" = set; then
6929   withval="$with_baseport"
6930
6931         if test "x$withval" != "xno" ; then
6932              baseport=$withval
6933         fi
6934
6935
6936 fi;
6937
6938
6939 dir_port=`expr $baseport`
6940 fd_port=`expr $baseport + 1`
6941 sd_port=`expr $fd_port + 1`
6942
6943
6944
6945
6946
6947
6948 # ------------------------------------------
6949 # Generate passwords
6950 # ------------------------------------------
6951 dir_password=
6952
6953 # Check whether --with-dir-password or --without-dir-password was given.
6954 if test "${with_dir_password+set}" = set; then
6955   withval="$with_dir_password"
6956
6957        if test "x$withval" != "xno" ; then
6958            dir_password=$withval
6959        fi
6960
6961
6962 fi;
6963
6964 if test "x$dir_password" = "x" ; then
6965    if test "x$OPENSSL" = "xnone" ; then
6966 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" abcdefghijklmnopqrst | awk '{getline} {print} {exit}'`
6967       key=`autoconf/randpass 33`
6968    else
6969       key=`openssl rand -base64 33`
6970    fi
6971    dir_password=$key
6972 fi
6973
6974 fd_password=
6975
6976 # Check whether --with-fd-password or --without-fd-password was given.
6977 if test "${with_fd_password+set}" = set; then
6978   withval="$with_fd_password"
6979
6980        if test "x$withval" != "xno" ; then
6981            fd_password=$withval
6982        fi
6983
6984
6985 fi;
6986
6987 if test "x$fd_password" = "x" ; then
6988    if test "x$OPENSSL" = "xnone" ; then
6989 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" tsrqponmlkjihgfedcba | awk '{getline} {print} {exit}'`
6990       key=`autoconf/randpass 37`
6991    else
6992       key=`openssl rand -base64 33`
6993    fi
6994    fd_password=$key
6995 fi
6996
6997 sd_password=
6998
6999 # Check whether --with-sd-password or --without-sd-password was given.
7000 if test "${with_sd_password+set}" = set; then
7001   withval="$with_sd_password"
7002
7003        if test "x$withval" != "xno" ; then
7004            sd_password=$withval
7005        fi
7006
7007
7008 fi;
7009
7010 if test "x$sd_password" = "x" ; then
7011    if test "x$OPENSSL" = "xnone" ; then
7012 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" 123456789uvwxyzabcdef | awk '{getline} {print} {exit}'`
7013       key=`autoconf/randpass 41`
7014    else
7015       key=`openssl rand -base64 33`
7016    fi
7017    sd_password=$key
7018 fi
7019
7020
7021
7022
7023
7024
7025
7026 #
7027 # Handle users and groups for each daemon
7028 #
7029 dir_user=
7030
7031 # Check whether --with-dir_user or --without-dir_user was given.
7032 if test "${with_dir_user+set}" = set; then
7033   withval="$with_dir_user"
7034
7035         if test "x$withval" != "x" ; then
7036              dir_user=$withval
7037         fi
7038
7039
7040 fi;
7041
7042 dir_group=
7043
7044 # Check whether --with-dir_group or --without-dir_group was given.
7045 if test "${with_dir_group+set}" = set; then
7046   withval="$with_dir_group"
7047
7048         if test "x$withval" != "x" ; then
7049              dir_group=$withval
7050         fi
7051
7052
7053 fi;
7054
7055 sd_user=
7056
7057 # Check whether --with-sd_user or --without-sd_user was given.
7058 if test "${with_sd_user+set}" = set; then
7059   withval="$with_sd_user"
7060
7061         if test "x$withval" != "x" ; then
7062              sd_user=$withval
7063         fi
7064
7065
7066 fi;
7067
7068 sd_group=
7069
7070 # Check whether --with-sd_group or --without-sd_group was given.
7071 if test "${with_sd_group+set}" = set; then
7072   withval="$with_sd_group"
7073
7074         if test "x$withval" != "x" ; then
7075              sd_group=$withval
7076         fi
7077
7078
7079 fi;
7080
7081 fd_user=
7082
7083 # Check whether --with-fd_user or --without-fd_user was given.
7084 if test "${with_fd_user+set}" = set; then
7085   withval="$with_fd_user"
7086
7087         if test "x$withval" != "x" ; then
7088              fd_user=$withval
7089         fi
7090
7091
7092 fi;
7093
7094 fd_group=
7095
7096 # Check whether --with-fd_group or --without-fd_group was given.
7097 if test "${with_fd_group+set}" = set; then
7098   withval="$with_fd_group"
7099
7100         if test "x$withval" != "x" ; then
7101              fd_group=$withval
7102         fi
7103
7104
7105 fi;
7106
7107
7108
7109
7110
7111
7112
7113
7114
7115
7116
7117 #
7118 # allow setting default executable permissions
7119 #
7120 SBINPERM=0754
7121
7122 # Check whether --with-sbin-perm or --without-sbin-perm was given.
7123 if test "${with_sbin_perm+set}" = set; then
7124   withval="$with_sbin_perm"
7125
7126         if test "x$withval" != "x" ; then
7127             SBINPERM=$withval
7128         fi
7129
7130
7131 fi;
7132
7133
7134
7135 # ------------------------------------------------
7136 # Bacula check for various SQL database engines
7137 # ------------------------------------------------
7138
7139 db_found=no
7140 echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
7141 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6
7142
7143 # Check whether --with-postgresql or --without-postgresql was given.
7144 if test "${with_postgresql+set}" = set; then
7145   withval="$with_postgresql"
7146
7147   if test "$withval" != "no"; then
7148       if test "$db_found" = "yes"; then
7149           echo "$as_me:$LINENO: result: error" >&5
7150 echo "${ECHO_T}error" >&6
7151           { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
7152 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
7153    { (exit 1); exit 1; }; };
7154       fi
7155       if test "$withval" = "yes"; then
7156           if test -f /usr/local/include/libpq-fe.h; then
7157               POSTGRESQL_INCDIR=/usr/local/include
7158               POSTGRESQL_LIBDIR=/usr/local/lib
7159               POSTGRESQL_BINDIR=/usr/local/bin
7160           elif test -f /usr/include/libpq-fe.h; then
7161               POSTGRESQL_INCDIR=/usr/include
7162               POSTGRESQL_LIBDIR=/usr/lib
7163               POSTGRESQL_BINDIR=/usr/bin
7164           elif test -f /usr/include/pgsql/libpq-fe.h; then
7165               POSTGRESQL_INCDIR=/usr/include/pgsql
7166               POSTGRESQL_LIBDIR=/usr/lib/pgsql
7167               POSTGRESQL_BINDIR=/usr/bin
7168           elif test -f /usr/include/postgresql/libpq-fe.h; then
7169               POSTGRESQL_INCDIR=/usr/include/postgresql
7170               POSTGRESQL_LIBDIR=/usr/lib/postgresql
7171               POSTGRESQL_BINDIR=/usr/bin
7172           else
7173               echo "$as_me:$LINENO: result: no" >&5
7174 echo "${ECHO_T}no" >&6
7175               { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
7176 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
7177    { (exit 1); exit 1; }; }
7178           fi
7179       elif test -f $withval/include/libpq-fe.h; then
7180           POSTGRESQL_INCDIR=$withval/include
7181           POSTGRESQL_LIBDIR=$withval/lib
7182           POSTGRESQL_BINDIR=$withval/bin
7183       else
7184           echo "$as_me:$LINENO: result: no" >&5
7185 echo "${ECHO_T}no" >&6
7186           { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
7187 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
7188    { (exit 1); exit 1; }; }
7189       fi
7190       POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
7191       echo "$as_me:$LINENO: checking for crypt" >&5
7192 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
7193 if test "${ac_cv_func_crypt+set}" = set; then
7194   echo $ECHO_N "(cached) $ECHO_C" >&6
7195 else
7196   cat >conftest.$ac_ext <<_ACEOF
7197 #line $LINENO "configure"
7198 /* confdefs.h.  */
7199 _ACEOF
7200 cat confdefs.h >>conftest.$ac_ext
7201 cat >>conftest.$ac_ext <<_ACEOF
7202 /* end confdefs.h.  */
7203 /* System header to define __stub macros and hopefully few prototypes,
7204     which can conflict with char crypt (); below.
7205     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7206     <limits.h> exists even on freestanding compilers.  */
7207 #ifdef __STDC__
7208 # include <limits.h>
7209 #else
7210 # include <assert.h>
7211 #endif
7212 /* Override any gcc2 internal prototype to avoid an error.  */
7213 #ifdef __cplusplus
7214 extern "C"
7215 {
7216 #endif
7217 /* We use char because int might match the return type of a gcc2
7218    builtin and then its argument prototype would still apply.  */
7219 char crypt ();
7220 /* The GNU C library defines this for functions which it implements
7221     to always fail with ENOSYS.  Some functions are actually named
7222     something starting with __ and the normal name is an alias.  */
7223 #if defined (__stub_crypt) || defined (__stub___crypt)
7224 choke me
7225 #else
7226 char (*f) () = crypt;
7227 #endif
7228 #ifdef __cplusplus
7229 }
7230 #endif
7231
7232 int
7233 main ()
7234 {
7235 return f != crypt;
7236   ;
7237   return 0;
7238 }
7239 _ACEOF
7240 rm -f conftest.$ac_objext conftest$ac_exeext
7241 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7242   (eval $ac_link) 2>&5
7243   ac_status=$?
7244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7245   (exit $ac_status); } &&
7246          { ac_try='test -s conftest$ac_exeext'
7247   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7248   (eval $ac_try) 2>&5
7249   ac_status=$?
7250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7251   (exit $ac_status); }; }; then
7252   ac_cv_func_crypt=yes
7253 else
7254   echo "$as_me: failed program was:" >&5
7255 sed 's/^/| /' conftest.$ac_ext >&5
7256
7257 ac_cv_func_crypt=no
7258 fi
7259 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7260 fi
7261 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
7262 echo "${ECHO_T}$ac_cv_func_crypt" >&6
7263 if test $ac_cv_func_crypt = yes; then
7264   :
7265 else
7266   echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
7267 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
7268 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
7269   echo $ECHO_N "(cached) $ECHO_C" >&6
7270 else
7271   ac_check_lib_save_LIBS=$LIBS
7272 LIBS="-lcrypt  $LIBS"
7273 cat >conftest.$ac_ext <<_ACEOF
7274 #line $LINENO "configure"
7275 /* confdefs.h.  */
7276 _ACEOF
7277 cat confdefs.h >>conftest.$ac_ext
7278 cat >>conftest.$ac_ext <<_ACEOF
7279 /* end confdefs.h.  */
7280
7281 /* Override any gcc2 internal prototype to avoid an error.  */
7282 #ifdef __cplusplus
7283 extern "C"
7284 #endif
7285 /* We use char because int might match the return type of a gcc2
7286    builtin and then its argument prototype would still apply.  */
7287 char crypt ();
7288 int
7289 main ()
7290 {
7291 crypt ();
7292   ;
7293   return 0;
7294 }
7295 _ACEOF
7296 rm -f conftest.$ac_objext conftest$ac_exeext
7297 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7298   (eval $ac_link) 2>&5
7299   ac_status=$?
7300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7301   (exit $ac_status); } &&
7302          { ac_try='test -s conftest$ac_exeext'
7303   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7304   (eval $ac_try) 2>&5
7305   ac_status=$?
7306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7307   (exit $ac_status); }; }; then
7308   ac_cv_lib_crypt_crypt=yes
7309 else
7310   echo "$as_me: failed program was:" >&5
7311 sed 's/^/| /' conftest.$ac_ext >&5
7312
7313 ac_cv_lib_crypt_crypt=no
7314 fi
7315 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7316 LIBS=$ac_check_lib_save_LIBS
7317 fi
7318 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
7319 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
7320 if test $ac_cv_lib_crypt_crypt = yes; then
7321   POSTGRESQL_LFLAGS="-lcrypt $POSTGRESQL_LFLAGS"
7322 fi
7323
7324 fi
7325
7326       SQL_INCLUDE=-I$POSTGRESQL_INCDIR
7327       SQL_LFLAGS=$POSTGRESQL_LFLAGS
7328       SQL_BINDIR=$POSTGRESQL_BINDIR
7329       cat >>confdefs.h <<\_ACEOF
7330 #define HAVE_POSTGRESQL 1
7331 _ACEOF
7332
7333       echo "$as_me:$LINENO: result: yes" >&5
7334 echo "${ECHO_T}yes" >&6
7335       db_found=yes
7336       support_postgresql=yes
7337       db_name=PostgreSQL
7338       DB_NAME=postgresql
7339   else
7340       echo "$as_me:$LINENO: result: no" >&5
7341 echo "${ECHO_T}no" >&6
7342   fi
7343
7344 else
7345
7346   echo "$as_me:$LINENO: result: no" >&5
7347 echo "${ECHO_T}no" >&6
7348
7349 fi;
7350
7351
7352
7353
7354
7355
7356
7357 db_found=no
7358 echo "$as_me:$LINENO: checking for MySQL support" >&5
7359 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6
7360
7361 # Check whether --with-mysql or --without-mysql was given.
7362 if test "${with_mysql+set}" = set; then
7363   withval="$with_mysql"
7364
7365   if test "$withval" != "no"; then
7366         if test "$withval" = "yes"; then
7367                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
7368                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
7369                         MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
7370                         MYSQL_BINDIR=/usr/local/mysql/bin
7371                 elif test -f /usr/include/mysql/mysql.h; then
7372                         MYSQL_INCDIR=/usr/include/mysql
7373                         MYSQL_LIBDIR=/usr/lib/mysql
7374                         MYSQL_BINDIR=/usr/bin
7375                 elif test -f /usr/include/mysql.h; then
7376                         MYSQL_INCDIR=/usr/include
7377                         MYSQL_LIBDIR=/usr/lib
7378                         MYSQL_BINDIR=/usr/bin
7379                 elif test -f /usr/local/include/mysql/mysql.h; then
7380                         MYSQL_INCDIR=/usr/local/include/mysql
7381                         MYSQL_LIBDIR=/usr/local/lib/mysql
7382                         MYSQL_BINDIR=/usr/local/bin
7383                 elif test -f /usr/local/include/mysql.h; then
7384                         MYSQL_INCDIR=/usr/local/include
7385                         MYSQL_LIBDIR=/usr/local/lib
7386                         MYSQL_BINDIR=/usr/local/bin
7387                 else
7388                    echo "$as_me:$LINENO: result: no" >&5
7389 echo "${ECHO_T}no" >&6
7390                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
7391 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
7392    { (exit 1); exit 1; }; }
7393                 fi
7394         else
7395                 if test -f $withval/include/mysql/mysql.h; then
7396                         MYSQL_INCDIR=$withval/include/mysql
7397                         MYSQL_LIBDIR=$withval/lib/mysql
7398                         MYSQL_BINDIR=$withval/bin
7399                 elif test -f $withval/include/mysql.h; then
7400                         MYSQL_INCDIR=$withval/include
7401                         MYSQL_LIBDIR=$withval/lib
7402                         MYSQL_BINDIR=$withval/bin
7403                 else
7404                    echo "$as_me:$LINENO: result: no" >&5
7405 echo "${ECHO_T}no" >&6
7406                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
7407 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
7408    { (exit 1); exit 1; }; }
7409                 fi
7410         fi
7411     SQL_INCLUDE=-I$MYSQL_INCDIR
7412     if test -f $MYSQL_LIBDIR/libmysqlclient_r.a; then
7413        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
7414        cat >>confdefs.h <<\_ACEOF
7415 #define HAVE_THREAD_SAFE_MYSQL 1
7416 _ACEOF
7417
7418     else
7419        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient -lz"
7420     fi
7421     SQL_BINDIR=$MYSQL_BINDIR
7422
7423     cat >>confdefs.h <<\_ACEOF
7424 #define HAVE_MYSQL 1
7425 _ACEOF
7426
7427     echo "$as_me:$LINENO: result: yes" >&5
7428 echo "${ECHO_T}yes" >&6
7429     db_found=yes
7430     support_mysql=yes
7431     db_name=MySQL
7432     DB_NAME=mysql
7433
7434   else
7435         echo "$as_me:$LINENO: result: no" >&5
7436 echo "${ECHO_T}no" >&6
7437   fi
7438
7439
7440 fi;
7441
7442
7443 # Check whether --with-embedded-mysql or --without-embedded-mysql was given.
7444 if test "${with_embedded_mysql+set}" = set; then
7445   withval="$with_embedded_mysql"
7446
7447   if test "$withval" != "no"; then
7448         if test "$withval" = "yes"; then
7449                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
7450                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
7451                         MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
7452                         MYSQL_BINDIR=/usr/local/mysql/bin
7453                 elif test -f /usr/include/mysql/mysql.h; then
7454                         MYSQL_INCDIR=/usr/include/mysql
7455                         MYSQL_LIBDIR=/usr/lib/mysql
7456                         MYSQL_BINDIR=/usr/bin
7457                 elif test -f /usr/include/mysql.h; then
7458                         MYSQL_INCDIR=/usr/include
7459                         MYSQL_LIBDIR=/usr/lib
7460                         MYSQL_BINDIR=/usr/bin
7461                 elif test -f /usr/local/include/mysql/mysql.h; then
7462                         MYSQL_INCDIR=/usr/local/include/mysql
7463                         MYSQL_LIBDIR=/usr/local/lib/mysql
7464                         MYSQL_BINDIR=/usr/local/bin
7465                 elif test -f /usr/local/include/mysql.h; then
7466                         MYSQL_INCDIR=/usr/local/include
7467                         MYSQL_LIBDIR=/usr/local/lib
7468                         MYSQL_BINDIR=/usr/local/bin
7469                 else
7470                    echo "$as_me:$LINENO: result: no" >&5
7471 echo "${ECHO_T}no" >&6
7472                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
7473 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
7474    { (exit 1); exit 1; }; }
7475                 fi
7476         else
7477                 if test -f $withval/include/mysql/mysql.h; then
7478                         MYSQL_INCDIR=$withval/include/mysql
7479                         MYSQL_LIBDIR=$withval/lib/mysql
7480                         MYSQL_BINDIR=$withval/bin
7481                 elif test -f $withval/include/mysql.h; then
7482                         MYSQL_INCDIR=$withval/include
7483                         MYSQL_LIBDIR=$withval/lib
7484                         MYSQL_BINDIR=$withval/bin
7485                 else
7486                    echo "$as_me:$LINENO: result: no" >&5
7487 echo "${ECHO_T}no" >&6
7488                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
7489 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
7490    { (exit 1); exit 1; }; }
7491                 fi
7492         fi
7493     SQL_INCLUDE=-I$MYSQL_INCDIR
7494     SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
7495     SQL_BINDIR=$MYSQL_BINDIR
7496
7497     cat >>confdefs.h <<\_ACEOF
7498 #define HAVE_MYSQL 1
7499 _ACEOF
7500
7501     cat >>confdefs.h <<\_ACEOF
7502 #define HAVE_EMBEDDED_MYSQL 1
7503 _ACEOF
7504
7505     echo "$as_me:$LINENO: result: yes" >&5
7506 echo "${ECHO_T}yes" >&6
7507     db_found=yes
7508     support_mysql=yes
7509     db_name=MySQL
7510     DB_NAME=mysql
7511
7512   else
7513         echo "$as_me:$LINENO: result: no" >&5
7514 echo "${ECHO_T}no" >&6
7515   fi
7516
7517
7518 fi;
7519
7520
7521
7522
7523
7524
7525
7526
7527
7528 db_found=no
7529 echo "$as_me:$LINENO: checking for SQLite support" >&5
7530 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6
7531
7532 # Check whether --with-sqlite or --without-sqlite was given.
7533 if test "${with_sqlite+set}" = set; then
7534   withval="$with_sqlite"
7535
7536   if test "$withval" != "no"; then
7537         if test "$withval" = "yes"; then
7538                 if test -f /usr/local/include/sqlite.h; then
7539                         SQLITE_INCDIR=/usr/local/include
7540                         SQLITE_LIBDIR=/usr/local/lib
7541                         SQLITE_BINDIR=/usr/local/bin
7542                 elif test -f /usr/include/sqlite.h; then
7543                         SQLITE_INCDIR=/usr/include
7544                         SQLITE_LIBDIR=/usr/lib
7545                         SQLITE_BINDIR=/usr/bin
7546                 else
7547                    echo "$as_me:$LINENO: result: no" >&5
7548 echo "${ECHO_T}no" >&6
7549                    { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
7550 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
7551    { (exit 1); exit 1; }; }
7552                 fi
7553         else
7554                 if test -f $withval/sqlite.h; then
7555                         SQLITE_INCDIR=$withval
7556                         SQLITE_LIBDIR=$withval
7557                         SQLITE_BINDIR=$withval
7558                 else
7559                    echo "$as_me:$LINENO: result: no" >&5
7560 echo "${ECHO_T}no" >&6
7561                    { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
7562 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
7563    { (exit 1); exit 1; }; }
7564                 fi
7565         fi
7566     SQL_INCLUDE=-I$SQLITE_INCDIR
7567     SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
7568     SQL_BINDIR=$SQLITE_BINDIR
7569
7570     cat >>confdefs.h <<\_ACEOF
7571 #define HAVE_SQLITE 1
7572 _ACEOF
7573
7574     echo "$as_me:$LINENO: result: yes" >&5
7575 echo "${ECHO_T}yes" >&6
7576     db_found=yes
7577     support_sqlite=yes
7578     db_name=SQLite
7579     DB_NAME=sqlite
7580
7581   else
7582         echo "$as_me:$LINENO: result: no" >&5
7583 echo "${ECHO_T}no" >&6
7584   fi
7585
7586 else
7587
7588   echo "$as_me:$LINENO: result: no" >&5
7589 echo "${ECHO_T}no" >&6
7590
7591 fi;
7592
7593
7594
7595
7596
7597
7598
7599
7600
7601 cat >>confdefs.h <<\_ACEOF
7602 #define PROTOTYPES 1
7603 _ACEOF
7604
7605
7606 if test -z "$CFLAGS"; then
7607     if test -z "$CCOPTS"; then
7608         CCOPTS='-g -O2'
7609     fi
7610     CFLAGS="$CCOPTS"
7611 fi
7612
7613
7614
7615
7616 largefile_support="no"
7617
7618    # Check whether --enable-largefile or --disable-largefile was given.
7619 if test "${enable_largefile+set}" = set; then
7620   enableval="$enable_largefile"
7621
7622 fi;
7623    if test "$enable_largefile" != no; then
7624      if test -n "$ac_tool_prefix"; then
7625   # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
7626 set dummy ${ac_tool_prefix}getconf; ac_word=$2
7627 echo "$as_me:$LINENO: checking for $ac_word" >&5
7628 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7629 if test "${ac_cv_prog_GETCONF+set}" = set; then
7630   echo $ECHO_N "(cached) $ECHO_C" >&6
7631 else
7632   if test -n "$GETCONF"; then
7633   ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
7634 else
7635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7636 for as_dir in $PATH
7637 do
7638   IFS=$as_save_IFS
7639   test -z "$as_dir" && as_dir=.
7640   for ac_exec_ext in '' $ac_executable_extensions; do
7641   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7642     ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
7643     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7644     break 2
7645   fi
7646 done
7647 done
7648
7649 fi
7650 fi
7651 GETCONF=$ac_cv_prog_GETCONF
7652 if test -n "$GETCONF"; then
7653   echo "$as_me:$LINENO: result: $GETCONF" >&5
7654 echo "${ECHO_T}$GETCONF" >&6
7655 else
7656   echo "$as_me:$LINENO: result: no" >&5
7657 echo "${ECHO_T}no" >&6
7658 fi
7659
7660 fi
7661 if test -z "$ac_cv_prog_GETCONF"; then
7662   ac_ct_GETCONF=$GETCONF
7663   # Extract the first word of "getconf", so it can be a program name with args.
7664 set dummy getconf; ac_word=$2
7665 echo "$as_me:$LINENO: checking for $ac_word" >&5
7666 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7667 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
7668   echo $ECHO_N "(cached) $ECHO_C" >&6
7669 else
7670   if test -n "$ac_ct_GETCONF"; then
7671   ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
7672 else
7673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7674 for as_dir in $PATH
7675 do
7676   IFS=$as_save_IFS
7677   test -z "$as_dir" && as_dir=.
7678   for ac_exec_ext in '' $ac_executable_extensions; do
7679   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7680     ac_cv_prog_ac_ct_GETCONF="getconf"
7681     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7682     break 2
7683   fi
7684 done
7685 done
7686
7687 fi
7688 fi
7689 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
7690 if test -n "$ac_ct_GETCONF"; then
7691   echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
7692 echo "${ECHO_T}$ac_ct_GETCONF" >&6
7693 else
7694   echo "$as_me:$LINENO: result: no" >&5
7695 echo "${ECHO_T}no" >&6
7696 fi
7697
7698   GETCONF=$ac_ct_GETCONF
7699 else
7700   GETCONF="$ac_cv_prog_GETCONF"
7701 fi
7702
7703      echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
7704 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6
7705 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
7706   echo $ECHO_N "(cached) $ECHO_C" >&6
7707 else
7708   ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
7709         ac_cv_sys_largefile_CFLAGS=no
7710         case "$host_os" in
7711            # IRIX 6.2 and later require cc -n32.
7712            irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
7713              if test "$GCC" != yes; then
7714                ac_cv_sys_largefile_CFLAGS=-n32
7715              fi
7716              ac_save_CC="$CC"
7717              CC="$CC $ac_cv_sys_largefile_CFLAGS"
7718              cat >conftest.$ac_ext <<_ACEOF
7719 #line $LINENO "configure"
7720 /* confdefs.h.  */
7721 _ACEOF
7722 cat confdefs.h >>conftest.$ac_ext
7723 cat >>conftest.$ac_ext <<_ACEOF
7724 /* end confdefs.h.  */
7725
7726 int
7727 main ()
7728 {
7729
7730   ;
7731   return 0;
7732 }
7733 _ACEOF
7734 rm -f conftest.$ac_objext conftest$ac_exeext
7735 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7736   (eval $ac_link) 2>&5
7737   ac_status=$?
7738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7739   (exit $ac_status); } &&
7740          { ac_try='test -s conftest$ac_exeext'
7741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7742   (eval $ac_try) 2>&5
7743   ac_status=$?
7744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7745   (exit $ac_status); }; }; then
7746   :
7747 else
7748   echo "$as_me: failed program was:" >&5
7749 sed 's/^/| /' conftest.$ac_ext >&5
7750
7751 ac_cv_sys_largefile_CFLAGS=no
7752 fi
7753 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7754              CC="$ac_save_CC"
7755            esac
7756       }
7757 fi
7758 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
7759 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6
7760      echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
7761 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6
7762 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
7763   echo $ECHO_N "(cached) $ECHO_C" >&6
7764 else
7765   ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
7766         ac_cv_sys_largefile_LDFLAGS=no
7767
7768       }
7769 fi
7770 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
7771 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6
7772      echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
7773 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6
7774 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
7775   echo $ECHO_N "(cached) $ECHO_C" >&6
7776 else
7777   ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
7778         ac_cv_sys_largefile_LIBS=no
7779
7780       }
7781 fi
7782 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
7783 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6
7784
7785      for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7786        case "$ac_flag" in
7787        no) ;;
7788        -D_FILE_OFFSET_BITS=*) ;;
7789        -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
7790        -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
7791        -D?* | -I?*)
7792          case "$ac_flag" in
7793    no) ;;
7794    ?*)
7795      case "$CPPFLAGS" in
7796      '') CPPFLAGS="$ac_flag" ;;
7797      *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
7798      esac ;;
7799    esac ;;
7800        *)
7801          case "$ac_flag" in
7802    no) ;;
7803    ?*)
7804      case "$CFLAGS" in
7805      '') CFLAGS="$ac_flag" ;;
7806      *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
7807      esac ;;
7808    esac ;;
7809        esac
7810      done
7811      case "$ac_cv_sys_largefile_LDFLAGS" in
7812    no) ;;
7813    ?*)
7814      case "$LDFLAGS" in
7815      '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
7816      *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
7817      esac ;;
7818    esac
7819      case "$ac_cv_sys_largefile_LIBS" in
7820    no) ;;
7821    ?*)
7822      case "$LIBS" in
7823      '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
7824      *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
7825      esac ;;
7826    esac
7827      echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
7828 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6
7829 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
7830   echo $ECHO_N "(cached) $ECHO_C" >&6
7831 else
7832   ac_cv_sys_file_offset_bits=no
7833       case "$host_os" in
7834         # HP-UX 10.20 and later
7835         hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
7836           ac_cv_sys_file_offset_bits=64 ;;
7837         esac
7838       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7839         case "$ac_flag" in
7840         -D_FILE_OFFSET_BITS)
7841           ac_cv_sys_file_offset_bits=1 ;;
7842         -D_FILE_OFFSET_BITS=*)
7843           ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
7844         esac
7845       done
7846
7847 fi
7848 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
7849 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
7850    if test "$ac_cv_sys_file_offset_bits" != no; then
7851
7852 cat >>confdefs.h <<_ACEOF
7853 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7854 _ACEOF
7855
7856    fi
7857      echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
7858 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6
7859 if test "${ac_cv_sys_largefile_source+set}" = set; then
7860   echo $ECHO_N "(cached) $ECHO_C" >&6
7861 else
7862   ac_cv_sys_largefile_source=no
7863       case "$host_os" in
7864         # HP-UX 10.20 and later
7865         hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
7866           ac_cv_sys_largefile_source=1 ;;
7867         esac
7868       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7869         case "$ac_flag" in
7870         -D_LARGEFILE_SOURCE)
7871           ac_cv_sys_largefile_source=1 ;;
7872         -D_LARGEFILE_SOURCE=*)
7873           ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
7874         esac
7875       done
7876
7877 fi
7878 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
7879 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
7880    if test "$ac_cv_sys_largefile_source" != no; then
7881
7882 cat >>confdefs.h <<_ACEOF
7883 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
7884 _ACEOF
7885
7886    fi
7887      echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
7888 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6
7889 if test "${ac_cv_sys_large_files+set}" = set; then
7890   echo $ECHO_N "(cached) $ECHO_C" >&6
7891 else
7892   ac_cv_sys_large_files=no
7893       case "$host_os" in
7894         # AIX 4.2 and later
7895         aix4.[2-9]* | aix4.1[0-9]* | aix[5-9].* | aix[1-9][0-9]*)
7896           ac_cv_sys_large_files=1 ;;
7897         esac
7898       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7899         case "$ac_flag" in
7900         -D_LARGE_FILES)
7901           ac_cv_sys_large_files=1 ;;
7902         -D_LARGE_FILES=*)
7903           ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
7904         esac
7905       done
7906
7907 fi
7908 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
7909 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
7910    if test "$ac_cv_sys_large_files" != no; then
7911
7912 cat >>confdefs.h <<_ACEOF
7913 #define _LARGE_FILES $ac_cv_sys_large_files
7914 _ACEOF
7915
7916    fi
7917    fi
7918
7919
7920
7921 echo "$as_me:$LINENO: checking for X" >&5
7922 echo $ECHO_N "checking for X... $ECHO_C" >&6
7923
7924
7925 # Check whether --with-x or --without-x was given.
7926 if test "${with_x+set}" = set; then
7927   withval="$with_x"
7928
7929 fi;
7930 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7931 if test "x$with_x" = xno; then
7932   # The user explicitly disabled X.
7933   have_x=disabled
7934 else
7935   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
7936     # Both variables are already set.
7937     have_x=yes
7938   else
7939     if test "${ac_cv_have_x+set}" = set; then
7940   echo $ECHO_N "(cached) $ECHO_C" >&6
7941 else
7942   # One or both of the vars are not set, and there is no cached value.
7943 ac_x_includes=no ac_x_libraries=no
7944 rm -fr conftest.dir
7945 if mkdir conftest.dir; then
7946   cd conftest.dir
7947   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7948   cat >Imakefile <<'_ACEOF'
7949 acfindx:
7950         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7951 _ACEOF
7952   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
7953     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7954     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7955     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7956     for ac_extension in a so sl; do
7957       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
7958          test -f $ac_im_libdir/libX11.$ac_extension; then
7959         ac_im_usrlibdir=$ac_im_libdir; break
7960       fi
7961     done
7962     # Screen out bogus values from the imake configuration.  They are
7963     # bogus both because they are the default anyway, and because
7964     # using them would break gcc on systems where it needs fixed includes.
7965     case $ac_im_incroot in
7966         /usr/include) ;;
7967         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7968     esac
7969     case $ac_im_usrlibdir in
7970         /usr/lib | /lib) ;;
7971         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7972     esac
7973   fi
7974   cd ..
7975   rm -fr conftest.dir
7976 fi
7977
7978 # Standard set of common directories for X headers.
7979 # Check X11 before X11Rn because it is often a symlink to the current release.
7980 ac_x_header_dirs='
7981 /usr/X11/include
7982 /usr/X11R6/include
7983 /usr/X11R5/include
7984 /usr/X11R4/include
7985
7986 /usr/include/X11
7987 /usr/include/X11R6
7988 /usr/include/X11R5
7989 /usr/include/X11R4
7990
7991 /usr/local/X11/include
7992 /usr/local/X11R6/include
7993 /usr/local/X11R5/include
7994 /usr/local/X11R4/include
7995
7996 /usr/local/include/X11
7997 /usr/local/include/X11R6
7998 /usr/local/include/X11R5
7999 /usr/local/include/X11R4
8000
8001 /usr/X386/include
8002 /usr/x386/include
8003 /usr/XFree86/include/X11
8004
8005 /usr/include
8006 /usr/local/include
8007 /usr/unsupported/include
8008 /usr/athena/include
8009 /usr/local/x11r5/include
8010 /usr/lpp/Xamples/include
8011
8012 /usr/openwin/include
8013 /usr/openwin/share/include'
8014
8015 if test "$ac_x_includes" = no; then
8016   # Guess where to find include files, by looking for Intrinsic.h.
8017   # First, try using that file with no special directory specified.
8018   cat >conftest.$ac_ext <<_ACEOF
8019 #line $LINENO "configure"
8020 /* confdefs.h.  */
8021 _ACEOF
8022 cat confdefs.h >>conftest.$ac_ext
8023 cat >>conftest.$ac_ext <<_ACEOF
8024 /* end confdefs.h.  */
8025 #include <X11/Intrinsic.h>
8026 _ACEOF
8027 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8028   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8029   ac_status=$?
8030   grep -v '^ *+' conftest.er1 >conftest.err
8031   rm -f conftest.er1
8032   cat conftest.err >&5
8033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8034   (exit $ac_status); } >/dev/null; then
8035   if test -s conftest.err; then
8036     ac_cpp_err=$ac_c_preproc_warn_flag
8037   else
8038     ac_cpp_err=
8039   fi
8040 else
8041   ac_cpp_err=yes
8042 fi
8043 if test -z "$ac_cpp_err"; then
8044   # We can compile using X headers with no special include directory.
8045 ac_x_includes=
8046 else
8047   echo "$as_me: failed program was:" >&5
8048 sed 's/^/| /' conftest.$ac_ext >&5
8049
8050   for ac_dir in $ac_x_header_dirs; do
8051   if test -r "$ac_dir/X11/Intrinsic.h"; then
8052     ac_x_includes=$ac_dir
8053     break
8054   fi
8055 done
8056 fi
8057 rm -f conftest.err conftest.$ac_ext
8058 fi # $ac_x_includes = no
8059
8060 if test "$ac_x_libraries" = no; then
8061   # Check for the libraries.
8062   # See if we find them without any special options.
8063   # Don't add to $LIBS permanently.
8064   ac_save_LIBS=$LIBS
8065   LIBS="-lXt $LIBS"
8066   cat >conftest.$ac_ext <<_ACEOF
8067 #line $LINENO "configure"
8068 /* confdefs.h.  */
8069 _ACEOF
8070 cat confdefs.h >>conftest.$ac_ext
8071 cat >>conftest.$ac_ext <<_ACEOF
8072 /* end confdefs.h.  */
8073 #include <X11/Intrinsic.h>
8074 int
8075 main ()
8076 {
8077 XtMalloc (0)
8078   ;
8079   return 0;
8080 }
8081 _ACEOF
8082 rm -f conftest.$ac_objext conftest$ac_exeext
8083 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8084   (eval $ac_link) 2>&5
8085   ac_status=$?
8086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8087   (exit $ac_status); } &&
8088          { ac_try='test -s conftest$ac_exeext'
8089   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8090   (eval $ac_try) 2>&5
8091   ac_status=$?
8092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8093   (exit $ac_status); }; }; then
8094   LIBS=$ac_save_LIBS
8095 # We can link X programs with no special library path.
8096 ac_x_libraries=
8097 else
8098   echo "$as_me: failed program was:" >&5
8099 sed 's/^/| /' conftest.$ac_ext >&5
8100
8101 LIBS=$ac_save_LIBS
8102 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8103 do
8104   # Don't even attempt the hair of trying to link an X program!
8105   for ac_extension in a so sl; do
8106     if test -r $ac_dir/libXt.$ac_extension; then
8107       ac_x_libraries=$ac_dir
8108       break 2
8109     fi
8110   done
8111 done
8112 fi
8113 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8114 fi # $ac_x_libraries = no
8115
8116 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
8117   # Didn't find X anywhere.  Cache the known absence of X.
8118   ac_cv_have_x="have_x=no"
8119 else
8120   # Record where we found X for the cache.
8121   ac_cv_have_x="have_x=yes \
8122                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8123 fi
8124 fi
8125
8126   fi
8127   eval "$ac_cv_have_x"
8128 fi # $with_x != no
8129
8130 if test "$have_x" != yes; then
8131   echo "$as_me:$LINENO: result: $have_x" >&5
8132 echo "${ECHO_T}$have_x" >&6
8133   no_x=yes
8134 else
8135   # If each of the values was on the command line, it overrides each guess.
8136   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8137   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8138   # Update the cache value to reflect the command line values.
8139   ac_cv_have_x="have_x=yes \
8140                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8141   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
8142 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
8143 fi
8144
8145 if test "$no_x" = yes; then
8146   # Not all programs may use this symbol, but it does not hurt to define it.
8147
8148 cat >>confdefs.h <<\_ACEOF
8149 #define X_DISPLAY_MISSING 1
8150 _ACEOF
8151
8152   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
8153 else
8154   if test -n "$x_includes"; then
8155     X_CFLAGS="$X_CFLAGS -I$x_includes"
8156   fi
8157
8158   # It would also be nice to do this for all -L options, not just this one.
8159   if test -n "$x_libraries"; then
8160     X_LIBS="$X_LIBS -L$x_libraries"
8161     # For Solaris; some versions of Sun CC require a space after -R and
8162     # others require no space.  Words are not sufficient . . . .
8163     case `(uname -sr) 2>/dev/null` in
8164     "SunOS 5"*)
8165       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
8166 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
8167       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
8168       cat >conftest.$ac_ext <<_ACEOF
8169 #line $LINENO "configure"
8170 /* confdefs.h.  */
8171 _ACEOF
8172 cat confdefs.h >>conftest.$ac_ext
8173 cat >>conftest.$ac_ext <<_ACEOF
8174 /* end confdefs.h.  */
8175
8176 int
8177 main ()
8178 {
8179
8180   ;
8181   return 0;
8182 }
8183 _ACEOF
8184 rm -f conftest.$ac_objext conftest$ac_exeext
8185 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8186   (eval $ac_link) 2>&5
8187   ac_status=$?
8188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8189   (exit $ac_status); } &&
8190          { ac_try='test -s conftest$ac_exeext'
8191   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8192   (eval $ac_try) 2>&5
8193   ac_status=$?
8194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8195   (exit $ac_status); }; }; then
8196   ac_R_nospace=yes
8197 else
8198   echo "$as_me: failed program was:" >&5
8199 sed 's/^/| /' conftest.$ac_ext >&5
8200
8201 ac_R_nospace=no
8202 fi
8203 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8204       if test $ac_R_nospace = yes; then
8205         echo "$as_me:$LINENO: result: no" >&5
8206 echo "${ECHO_T}no" >&6
8207         X_LIBS="$X_LIBS -R$x_libraries"
8208       else
8209         LIBS="$ac_xsave_LIBS -R $x_libraries"
8210         cat >conftest.$ac_ext <<_ACEOF
8211 #line $LINENO "configure"
8212 /* confdefs.h.  */
8213 _ACEOF
8214 cat confdefs.h >>conftest.$ac_ext
8215 cat >>conftest.$ac_ext <<_ACEOF
8216 /* end confdefs.h.  */
8217
8218 int
8219 main ()
8220 {
8221
8222   ;
8223   return 0;
8224 }
8225 _ACEOF
8226 rm -f conftest.$ac_objext conftest$ac_exeext
8227 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8228   (eval $ac_link) 2>&5
8229   ac_status=$?
8230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8231   (exit $ac_status); } &&
8232          { ac_try='test -s conftest$ac_exeext'
8233   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8234   (eval $ac_try) 2>&5
8235   ac_status=$?
8236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8237   (exit $ac_status); }; }; then
8238   ac_R_space=yes
8239 else
8240   echo "$as_me: failed program was:" >&5
8241 sed 's/^/| /' conftest.$ac_ext >&5
8242
8243 ac_R_space=no
8244 fi
8245 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8246         if test $ac_R_space = yes; then
8247           echo "$as_me:$LINENO: result: yes" >&5
8248 echo "${ECHO_T}yes" >&6
8249           X_LIBS="$X_LIBS -R $x_libraries"
8250         else
8251           echo "$as_me:$LINENO: result: neither works" >&5
8252 echo "${ECHO_T}neither works" >&6
8253         fi
8254       fi
8255       LIBS=$ac_xsave_LIBS
8256     esac
8257   fi
8258
8259   # Check for system-dependent libraries X programs must link with.
8260   # Do this before checking for the system-independent R6 libraries
8261   # (-lICE), since we may need -lsocket or whatever for X linking.
8262
8263   if test "$ISC" = yes; then
8264     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
8265   else
8266     # Martyn Johnson says this is needed for Ultrix, if the X
8267     # libraries were built with DECnet support.  And Karl Berry says
8268     # the Alpha needs dnet_stub (dnet does not exist).
8269     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
8270     cat >conftest.$ac_ext <<_ACEOF
8271 #line $LINENO "configure"
8272 /* confdefs.h.  */
8273 _ACEOF
8274 cat confdefs.h >>conftest.$ac_ext
8275 cat >>conftest.$ac_ext <<_ACEOF
8276 /* end confdefs.h.  */
8277
8278 /* Override any gcc2 internal prototype to avoid an error.  */
8279 #ifdef __cplusplus
8280 extern "C"
8281 #endif
8282 /* We use char because int might match the return type of a gcc2
8283    builtin and then its argument prototype would still apply.  */
8284 char XOpenDisplay ();
8285 int
8286 main ()
8287 {
8288 XOpenDisplay ();
8289   ;
8290   return 0;
8291 }
8292 _ACEOF
8293 rm -f conftest.$ac_objext conftest$ac_exeext
8294 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8295   (eval $ac_link) 2>&5
8296   ac_status=$?
8297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8298   (exit $ac_status); } &&
8299          { ac_try='test -s conftest$ac_exeext'
8300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8301   (eval $ac_try) 2>&5
8302   ac_status=$?
8303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8304   (exit $ac_status); }; }; then
8305   :
8306 else
8307   echo "$as_me: failed program was:" >&5
8308 sed 's/^/| /' conftest.$ac_ext >&5
8309
8310 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
8311 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
8312 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
8313   echo $ECHO_N "(cached) $ECHO_C" >&6
8314 else
8315   ac_check_lib_save_LIBS=$LIBS
8316 LIBS="-ldnet  $LIBS"
8317 cat >conftest.$ac_ext <<_ACEOF
8318 #line $LINENO "configure"
8319 /* confdefs.h.  */
8320 _ACEOF
8321 cat confdefs.h >>conftest.$ac_ext
8322 cat >>conftest.$ac_ext <<_ACEOF
8323 /* end confdefs.h.  */
8324
8325 /* Override any gcc2 internal prototype to avoid an error.  */
8326 #ifdef __cplusplus
8327 extern "C"
8328 #endif
8329 /* We use char because int might match the return type of a gcc2
8330    builtin and then its argument prototype would still apply.  */
8331 char dnet_ntoa ();
8332 int
8333 main ()
8334 {
8335 dnet_ntoa ();
8336   ;
8337   return 0;
8338 }
8339 _ACEOF
8340 rm -f conftest.$ac_objext conftest$ac_exeext
8341 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8342   (eval $ac_link) 2>&5
8343   ac_status=$?
8344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8345   (exit $ac_status); } &&
8346          { ac_try='test -s conftest$ac_exeext'
8347   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8348   (eval $ac_try) 2>&5
8349   ac_status=$?
8350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8351   (exit $ac_status); }; }; then
8352   ac_cv_lib_dnet_dnet_ntoa=yes
8353 else
8354   echo "$as_me: failed program was:" >&5
8355 sed 's/^/| /' conftest.$ac_ext >&5
8356
8357 ac_cv_lib_dnet_dnet_ntoa=no
8358 fi
8359 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8360 LIBS=$ac_check_lib_save_LIBS
8361 fi
8362 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8363 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
8364 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
8365   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
8366 fi
8367
8368     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
8369       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
8370 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
8371 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
8372   echo $ECHO_N "(cached) $ECHO_C" >&6
8373 else
8374   ac_check_lib_save_LIBS=$LIBS
8375 LIBS="-ldnet_stub  $LIBS"
8376 cat >conftest.$ac_ext <<_ACEOF
8377 #line $LINENO "configure"
8378 /* confdefs.h.  */
8379 _ACEOF
8380 cat confdefs.h >>conftest.$ac_ext
8381 cat >>conftest.$ac_ext <<_ACEOF
8382 /* end confdefs.h.  */
8383
8384 /* Override any gcc2 internal prototype to avoid an error.  */
8385 #ifdef __cplusplus
8386 extern "C"
8387 #endif
8388 /* We use char because int might match the return type of a gcc2
8389    builtin and then its argument prototype would still apply.  */
8390 char dnet_ntoa ();
8391 int
8392 main ()
8393 {
8394 dnet_ntoa ();
8395   ;
8396   return 0;
8397 }
8398 _ACEOF
8399 rm -f conftest.$ac_objext conftest$ac_exeext
8400 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8401   (eval $ac_link) 2>&5
8402   ac_status=$?
8403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8404   (exit $ac_status); } &&
8405          { ac_try='test -s conftest$ac_exeext'
8406   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8407   (eval $ac_try) 2>&5
8408   ac_status=$?
8409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8410   (exit $ac_status); }; }; then
8411   ac_cv_lib_dnet_stub_dnet_ntoa=yes
8412 else
8413   echo "$as_me: failed program was:" >&5
8414 sed 's/^/| /' conftest.$ac_ext >&5
8415
8416 ac_cv_lib_dnet_stub_dnet_ntoa=no
8417 fi
8418 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8419 LIBS=$ac_check_lib_save_LIBS
8420 fi
8421 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
8422 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
8423 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
8424   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
8425 fi
8426
8427     fi
8428 fi
8429 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8430     LIBS="$ac_xsave_LIBS"
8431
8432     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
8433     # to get the SysV transport functions.
8434     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
8435     # needs -lnsl.
8436     # The nsl library prevents programs from opening the X display
8437     # on Irix 5.2, according to T.E. Dickey.
8438     # The functions gethostbyname, getservbyname, and inet_addr are
8439     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
8440     echo "$as_me:$LINENO: checking for gethostbyname" >&5
8441 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
8442 if test "${ac_cv_func_gethostbyname+set}" = set; then
8443   echo $ECHO_N "(cached) $ECHO_C" >&6
8444 else
8445   cat >conftest.$ac_ext <<_ACEOF
8446 #line $LINENO "configure"
8447 /* confdefs.h.  */
8448 _ACEOF
8449 cat confdefs.h >>conftest.$ac_ext
8450 cat >>conftest.$ac_ext <<_ACEOF
8451 /* end confdefs.h.  */
8452 /* System header to define __stub macros and hopefully few prototypes,
8453     which can conflict with char gethostbyname (); below.
8454     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8455     <limits.h> exists even on freestanding compilers.  */
8456 #ifdef __STDC__
8457 # include <limits.h>
8458 #else
8459 # include <assert.h>
8460 #endif
8461 /* Override any gcc2 internal prototype to avoid an error.  */
8462 #ifdef __cplusplus
8463 extern "C"
8464 {
8465 #endif
8466 /* We use char because int might match the return type of a gcc2
8467    builtin and then its argument prototype would still apply.  */
8468 char gethostbyname ();
8469 /* The GNU C library defines this for functions which it implements
8470     to always fail with ENOSYS.  Some functions are actually named
8471     something starting with __ and the normal name is an alias.  */
8472 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
8473 choke me
8474 #else
8475 char (*f) () = gethostbyname;
8476 #endif
8477 #ifdef __cplusplus
8478 }
8479 #endif
8480
8481 int
8482 main ()
8483 {
8484 return f != gethostbyname;
8485   ;
8486   return 0;
8487 }
8488 _ACEOF
8489 rm -f conftest.$ac_objext conftest$ac_exeext
8490 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8491   (eval $ac_link) 2>&5
8492   ac_status=$?
8493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8494   (exit $ac_status); } &&
8495          { ac_try='test -s conftest$ac_exeext'
8496   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8497   (eval $ac_try) 2>&5
8498   ac_status=$?
8499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8500   (exit $ac_status); }; }; then
8501   ac_cv_func_gethostbyname=yes
8502 else
8503   echo "$as_me: failed program was:" >&5
8504 sed 's/^/| /' conftest.$ac_ext >&5
8505
8506 ac_cv_func_gethostbyname=no
8507 fi
8508 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8509 fi
8510 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
8511 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
8512
8513     if test $ac_cv_func_gethostbyname = no; then
8514       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
8515 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
8516 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
8517   echo $ECHO_N "(cached) $ECHO_C" >&6
8518 else
8519   ac_check_lib_save_LIBS=$LIBS
8520 LIBS="-lnsl  $LIBS"
8521 cat >conftest.$ac_ext <<_ACEOF
8522 #line $LINENO "configure"
8523 /* confdefs.h.  */
8524 _ACEOF
8525 cat confdefs.h >>conftest.$ac_ext
8526 cat >>conftest.$ac_ext <<_ACEOF
8527 /* end confdefs.h.  */
8528
8529 /* Override any gcc2 internal prototype to avoid an error.  */
8530 #ifdef __cplusplus
8531 extern "C"
8532 #endif
8533 /* We use char because int might match the return type of a gcc2
8534    builtin and then its argument prototype would still apply.  */
8535 char gethostbyname ();
8536 int
8537 main ()
8538 {
8539 gethostbyname ();
8540   ;
8541   return 0;
8542 }
8543 _ACEOF
8544 rm -f conftest.$ac_objext conftest$ac_exeext
8545 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8546   (eval $ac_link) 2>&5
8547   ac_status=$?
8548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8549   (exit $ac_status); } &&
8550          { ac_try='test -s conftest$ac_exeext'
8551   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8552   (eval $ac_try) 2>&5
8553   ac_status=$?
8554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8555   (exit $ac_status); }; }; then
8556   ac_cv_lib_nsl_gethostbyname=yes
8557 else
8558   echo "$as_me: failed program was:" >&5
8559 sed 's/^/| /' conftest.$ac_ext >&5
8560
8561 ac_cv_lib_nsl_gethostbyname=no
8562 fi
8563 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8564 LIBS=$ac_check_lib_save_LIBS
8565 fi
8566 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
8567 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
8568 if test $ac_cv_lib_nsl_gethostbyname = yes; then
8569   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
8570 fi
8571
8572       if test $ac_cv_lib_nsl_gethostbyname = no; then
8573         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
8574 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
8575 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
8576   echo $ECHO_N "(cached) $ECHO_C" >&6
8577 else
8578   ac_check_lib_save_LIBS=$LIBS
8579 LIBS="-lbsd  $LIBS"
8580 cat >conftest.$ac_ext <<_ACEOF
8581 #line $LINENO "configure"
8582 /* confdefs.h.  */
8583 _ACEOF
8584 cat confdefs.h >>conftest.$ac_ext
8585 cat >>conftest.$ac_ext <<_ACEOF
8586 /* end confdefs.h.  */
8587
8588 /* Override any gcc2 internal prototype to avoid an error.  */
8589 #ifdef __cplusplus
8590 extern "C"
8591 #endif
8592 /* We use char because int might match the return type of a gcc2
8593    builtin and then its argument prototype would still apply.  */
8594 char gethostbyname ();
8595 int
8596 main ()
8597 {
8598 gethostbyname ();
8599   ;
8600   return 0;
8601 }
8602 _ACEOF
8603 rm -f conftest.$ac_objext conftest$ac_exeext
8604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8605   (eval $ac_link) 2>&5
8606   ac_status=$?
8607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8608   (exit $ac_status); } &&
8609          { ac_try='test -s conftest$ac_exeext'
8610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8611   (eval $ac_try) 2>&5
8612   ac_status=$?
8613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8614   (exit $ac_status); }; }; then
8615   ac_cv_lib_bsd_gethostbyname=yes
8616 else
8617   echo "$as_me: failed program was:" >&5
8618 sed 's/^/| /' conftest.$ac_ext >&5
8619
8620 ac_cv_lib_bsd_gethostbyname=no
8621 fi
8622 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8623 LIBS=$ac_check_lib_save_LIBS
8624 fi
8625 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
8626 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
8627 if test $ac_cv_lib_bsd_gethostbyname = yes; then
8628   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
8629 fi
8630
8631       fi
8632     fi
8633
8634     # lieder@skyler.mavd.honeywell.com says without -lsocket,
8635     # socket/setsockopt and other routines are undefined under SCO ODT
8636     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
8637     # on later versions), says Simon Leinen: it contains gethostby*
8638     # variants that don't use the name server (or something).  -lsocket
8639     # must be given before -lnsl if both are needed.  We assume that
8640     # if connect needs -lnsl, so does gethostbyname.
8641     echo "$as_me:$LINENO: checking for connect" >&5
8642 echo $ECHO_N "checking for connect... $ECHO_C" >&6
8643 if test "${ac_cv_func_connect+set}" = set; then
8644   echo $ECHO_N "(cached) $ECHO_C" >&6
8645 else
8646   cat >conftest.$ac_ext <<_ACEOF
8647 #line $LINENO "configure"
8648 /* confdefs.h.  */
8649 _ACEOF
8650 cat confdefs.h >>conftest.$ac_ext
8651 cat >>conftest.$ac_ext <<_ACEOF
8652 /* end confdefs.h.  */
8653 /* System header to define __stub macros and hopefully few prototypes,
8654     which can conflict with char connect (); below.
8655     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8656     <limits.h> exists even on freestanding compilers.  */
8657 #ifdef __STDC__
8658 # include <limits.h>
8659 #else
8660 # include <assert.h>
8661 #endif
8662 /* Override any gcc2 internal prototype to avoid an error.  */
8663 #ifdef __cplusplus
8664 extern "C"
8665 {
8666 #endif
8667 /* We use char because int might match the return type of a gcc2
8668    builtin and then its argument prototype would still apply.  */
8669 char connect ();
8670 /* The GNU C library defines this for functions which it implements
8671     to always fail with ENOSYS.  Some functions are actually named
8672     something starting with __ and the normal name is an alias.  */
8673 #if defined (__stub_connect) || defined (__stub___connect)
8674 choke me
8675 #else
8676 char (*f) () = connect;
8677 #endif
8678 #ifdef __cplusplus
8679 }
8680 #endif
8681
8682 int
8683 main ()
8684 {
8685 return f != connect;
8686   ;
8687   return 0;
8688 }
8689 _ACEOF
8690 rm -f conftest.$ac_objext conftest$ac_exeext
8691 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8692   (eval $ac_link) 2>&5
8693   ac_status=$?
8694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8695   (exit $ac_status); } &&
8696          { ac_try='test -s conftest$ac_exeext'
8697   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8698   (eval $ac_try) 2>&5
8699   ac_status=$?
8700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8701   (exit $ac_status); }; }; then
8702   ac_cv_func_connect=yes
8703 else
8704   echo "$as_me: failed program was:" >&5
8705 sed 's/^/| /' conftest.$ac_ext >&5
8706
8707 ac_cv_func_connect=no
8708 fi
8709 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8710 fi
8711 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
8712 echo "${ECHO_T}$ac_cv_func_connect" >&6
8713
8714     if test $ac_cv_func_connect = no; then
8715       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
8716 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
8717 if test "${ac_cv_lib_socket_connect+set}" = set; then
8718   echo $ECHO_N "(cached) $ECHO_C" >&6
8719 else
8720   ac_check_lib_save_LIBS=$LIBS
8721 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
8722 cat >conftest.$ac_ext <<_ACEOF
8723 #line $LINENO "configure"
8724 /* confdefs.h.  */
8725 _ACEOF
8726 cat confdefs.h >>conftest.$ac_ext
8727 cat >>conftest.$ac_ext <<_ACEOF
8728 /* end confdefs.h.  */
8729
8730 /* Override any gcc2 internal prototype to avoid an error.  */
8731 #ifdef __cplusplus
8732 extern "C"
8733 #endif
8734 /* We use char because int might match the return type of a gcc2
8735    builtin and then its argument prototype would still apply.  */
8736 char connect ();
8737 int
8738 main ()
8739 {
8740 connect ();
8741   ;
8742   return 0;
8743 }
8744 _ACEOF
8745 rm -f conftest.$ac_objext conftest$ac_exeext
8746 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8747   (eval $ac_link) 2>&5
8748   ac_status=$?
8749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8750   (exit $ac_status); } &&
8751          { ac_try='test -s conftest$ac_exeext'
8752   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8753   (eval $ac_try) 2>&5
8754   ac_status=$?
8755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8756   (exit $ac_status); }; }; then
8757   ac_cv_lib_socket_connect=yes
8758 else
8759   echo "$as_me: failed program was:" >&5
8760 sed 's/^/| /' conftest.$ac_ext >&5
8761
8762 ac_cv_lib_socket_connect=no
8763 fi
8764 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8765 LIBS=$ac_check_lib_save_LIBS
8766 fi
8767 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
8768 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
8769 if test $ac_cv_lib_socket_connect = yes; then
8770   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
8771 fi
8772
8773     fi
8774
8775     # Guillermo Gomez says -lposix is necessary on A/UX.
8776     echo "$as_me:$LINENO: checking for remove" >&5
8777 echo $ECHO_N "checking for remove... $ECHO_C" >&6
8778 if test "${ac_cv_func_remove+set}" = set; then
8779   echo $ECHO_N "(cached) $ECHO_C" >&6
8780 else
8781   cat >conftest.$ac_ext <<_ACEOF
8782 #line $LINENO "configure"
8783 /* confdefs.h.  */
8784 _ACEOF
8785 cat confdefs.h >>conftest.$ac_ext
8786 cat >>conftest.$ac_ext <<_ACEOF
8787 /* end confdefs.h.  */
8788 /* System header to define __stub macros and hopefully few prototypes,
8789     which can conflict with char remove (); below.
8790     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8791     <limits.h> exists even on freestanding compilers.  */
8792 #ifdef __STDC__
8793 # include <limits.h>
8794 #else
8795 # include <assert.h>
8796 #endif
8797 /* Override any gcc2 internal prototype to avoid an error.  */
8798 #ifdef __cplusplus
8799 extern "C"
8800 {
8801 #endif
8802 /* We use char because int might match the return type of a gcc2
8803    builtin and then its argument prototype would still apply.  */
8804 char remove ();
8805 /* The GNU C library defines this for functions which it implements
8806     to always fail with ENOSYS.  Some functions are actually named
8807     something starting with __ and the normal name is an alias.  */
8808 #if defined (__stub_remove) || defined (__stub___remove)
8809 choke me
8810 #else
8811 char (*f) () = remove;
8812 #endif
8813 #ifdef __cplusplus
8814 }
8815 #endif
8816
8817 int
8818 main ()
8819 {
8820 return f != remove;
8821   ;
8822   return 0;
8823 }
8824 _ACEOF
8825 rm -f conftest.$ac_objext conftest$ac_exeext
8826 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8827   (eval $ac_link) 2>&5
8828   ac_status=$?
8829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8830   (exit $ac_status); } &&
8831          { ac_try='test -s conftest$ac_exeext'
8832   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8833   (eval $ac_try) 2>&5
8834   ac_status=$?
8835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8836   (exit $ac_status); }; }; then
8837   ac_cv_func_remove=yes
8838 else
8839   echo "$as_me: failed program was:" >&5
8840 sed 's/^/| /' conftest.$ac_ext >&5
8841
8842 ac_cv_func_remove=no
8843 fi
8844 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8845 fi
8846 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
8847 echo "${ECHO_T}$ac_cv_func_remove" >&6
8848
8849     if test $ac_cv_func_remove = no; then
8850       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
8851 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
8852 if test "${ac_cv_lib_posix_remove+set}" = set; then
8853   echo $ECHO_N "(cached) $ECHO_C" >&6
8854 else
8855   ac_check_lib_save_LIBS=$LIBS
8856 LIBS="-lposix  $LIBS"
8857 cat >conftest.$ac_ext <<_ACEOF
8858 #line $LINENO "configure"
8859 /* confdefs.h.  */
8860 _ACEOF
8861 cat confdefs.h >>conftest.$ac_ext
8862 cat >>conftest.$ac_ext <<_ACEOF
8863 /* end confdefs.h.  */
8864
8865 /* Override any gcc2 internal prototype to avoid an error.  */
8866 #ifdef __cplusplus
8867 extern "C"
8868 #endif
8869 /* We use char because int might match the return type of a gcc2
8870    builtin and then its argument prototype would still apply.  */
8871 char remove ();
8872 int
8873 main ()
8874 {
8875 remove ();
8876   ;
8877   return 0;
8878 }
8879 _ACEOF
8880 rm -f conftest.$ac_objext conftest$ac_exeext
8881 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8882   (eval $ac_link) 2>&5
8883   ac_status=$?
8884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8885   (exit $ac_status); } &&
8886          { ac_try='test -s conftest$ac_exeext'
8887   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8888   (eval $ac_try) 2>&5
8889   ac_status=$?
8890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8891   (exit $ac_status); }; }; then
8892   ac_cv_lib_posix_remove=yes
8893 else
8894   echo "$as_me: failed program was:" >&5
8895 sed 's/^/| /' conftest.$ac_ext >&5
8896
8897 ac_cv_lib_posix_remove=no
8898 fi
8899 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8900 LIBS=$ac_check_lib_save_LIBS
8901 fi
8902 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
8903 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
8904 if test $ac_cv_lib_posix_remove = yes; then
8905   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
8906 fi
8907
8908     fi
8909
8910     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
8911     echo "$as_me:$LINENO: checking for shmat" >&5
8912 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
8913 if test "${ac_cv_func_shmat+set}" = set; then
8914   echo $ECHO_N "(cached) $ECHO_C" >&6
8915 else
8916   cat >conftest.$ac_ext <<_ACEOF
8917 #line $LINENO "configure"
8918 /* confdefs.h.  */
8919 _ACEOF
8920 cat confdefs.h >>conftest.$ac_ext
8921 cat >>conftest.$ac_ext <<_ACEOF
8922 /* end confdefs.h.  */
8923 /* System header to define __stub macros and hopefully few prototypes,
8924     which can conflict with char shmat (); below.
8925     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8926     <limits.h> exists even on freestanding compilers.  */
8927 #ifdef __STDC__
8928 # include <limits.h>
8929 #else
8930 # include <assert.h>
8931 #endif
8932 /* Override any gcc2 internal prototype to avoid an error.  */
8933 #ifdef __cplusplus
8934 extern "C"
8935 {
8936 #endif
8937 /* We use char because int might match the return type of a gcc2
8938    builtin and then its argument prototype would still apply.  */
8939 char shmat ();
8940 /* The GNU C library defines this for functions which it implements
8941     to always fail with ENOSYS.  Some functions are actually named
8942     something starting with __ and the normal name is an alias.  */
8943 #if defined (__stub_shmat) || defined (__stub___shmat)
8944 choke me
8945 #else
8946 char (*f) () = shmat;
8947 #endif
8948 #ifdef __cplusplus
8949 }
8950 #endif
8951
8952 int
8953 main ()
8954 {
8955 return f != shmat;
8956   ;
8957   return 0;
8958 }
8959 _ACEOF
8960 rm -f conftest.$ac_objext conftest$ac_exeext
8961 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8962   (eval $ac_link) 2>&5
8963   ac_status=$?
8964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8965   (exit $ac_status); } &&
8966          { ac_try='test -s conftest$ac_exeext'
8967   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8968   (eval $ac_try) 2>&5
8969   ac_status=$?
8970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8971   (exit $ac_status); }; }; then
8972   ac_cv_func_shmat=yes
8973 else
8974   echo "$as_me: failed program was:" >&5
8975 sed 's/^/| /' conftest.$ac_ext >&5
8976
8977 ac_cv_func_shmat=no
8978 fi
8979 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8980 fi
8981 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
8982 echo "${ECHO_T}$ac_cv_func_shmat" >&6
8983
8984     if test $ac_cv_func_shmat = no; then
8985       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
8986 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
8987 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
8988   echo $ECHO_N "(cached) $ECHO_C" >&6
8989 else
8990   ac_check_lib_save_LIBS=$LIBS
8991 LIBS="-lipc  $LIBS"
8992 cat >conftest.$ac_ext <<_ACEOF
8993 #line $LINENO "configure"
8994 /* confdefs.h.  */
8995 _ACEOF
8996 cat confdefs.h >>conftest.$ac_ext
8997 cat >>conftest.$ac_ext <<_ACEOF
8998 /* end confdefs.h.  */
8999
9000 /* Override any gcc2 internal prototype to avoid an error.  */
9001 #ifdef __cplusplus
9002 extern "C"
9003 #endif
9004 /* We use char because int might match the return type of a gcc2
9005    builtin and then its argument prototype would still apply.  */
9006 char shmat ();
9007 int
9008 main ()
9009 {
9010 shmat ();
9011   ;
9012   return 0;
9013 }
9014 _ACEOF
9015 rm -f conftest.$ac_objext conftest$ac_exeext
9016 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9017   (eval $ac_link) 2>&5
9018   ac_status=$?
9019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9020   (exit $ac_status); } &&
9021          { ac_try='test -s conftest$ac_exeext'
9022   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9023   (eval $ac_try) 2>&5
9024   ac_status=$?
9025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9026   (exit $ac_status); }; }; then
9027   ac_cv_lib_ipc_shmat=yes
9028 else
9029   echo "$as_me: failed program was:" >&5
9030 sed 's/^/| /' conftest.$ac_ext >&5
9031
9032 ac_cv_lib_ipc_shmat=no
9033 fi
9034 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9035 LIBS=$ac_check_lib_save_LIBS
9036 fi
9037 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
9038 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
9039 if test $ac_cv_lib_ipc_shmat = yes; then
9040   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
9041 fi
9042
9043     fi
9044   fi
9045
9046   # Check for libraries that X11R6 Xt/Xaw programs need.
9047   ac_save_LDFLAGS=$LDFLAGS
9048   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
9049   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
9050   # check for ICE first), but we must link in the order -lSM -lICE or
9051   # we get undefined symbols.  So assume we have SM if we have ICE.
9052   # These have to be linked with before -lX11, unlike the other
9053   # libraries we check for below, so use a different variable.
9054   # John Interrante, Karl Berry
9055   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
9056 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
9057 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
9058   echo $ECHO_N "(cached) $ECHO_C" >&6
9059 else
9060   ac_check_lib_save_LIBS=$LIBS
9061 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
9062 cat >conftest.$ac_ext <<_ACEOF
9063 #line $LINENO "configure"
9064 /* confdefs.h.  */
9065 _ACEOF
9066 cat confdefs.h >>conftest.$ac_ext
9067 cat >>conftest.$ac_ext <<_ACEOF
9068 /* end confdefs.h.  */
9069
9070 /* Override any gcc2 internal prototype to avoid an error.  */
9071 #ifdef __cplusplus
9072 extern "C"
9073 #endif
9074 /* We use char because int might match the return type of a gcc2
9075    builtin and then its argument prototype would still apply.  */
9076 char IceConnectionNumber ();
9077 int
9078 main ()
9079 {
9080 IceConnectionNumber ();
9081   ;
9082   return 0;
9083 }
9084 _ACEOF
9085 rm -f conftest.$ac_objext conftest$ac_exeext
9086 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9087   (eval $ac_link) 2>&5
9088   ac_status=$?
9089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9090   (exit $ac_status); } &&
9091          { ac_try='test -s conftest$ac_exeext'
9092   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9093   (eval $ac_try) 2>&5
9094   ac_status=$?
9095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9096   (exit $ac_status); }; }; then
9097   ac_cv_lib_ICE_IceConnectionNumber=yes
9098 else
9099   echo "$as_me: failed program was:" >&5
9100 sed 's/^/| /' conftest.$ac_ext >&5
9101
9102 ac_cv_lib_ICE_IceConnectionNumber=no
9103 fi
9104 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9105 LIBS=$ac_check_lib_save_LIBS
9106 fi
9107 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
9108 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
9109 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
9110   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
9111 fi
9112
9113   LDFLAGS=$ac_save_LDFLAGS
9114
9115 fi
9116
9117
9118
9119
9120
9121
9122
9123
9124
9125
9126
9127
9128
9129
9130
9131
9132
9133
9134
9135
9136
9137
9138
9139
9140
9141
9142 for ac_header in \
9143         assert.h \
9144         fcntl.h \
9145         grp.h \
9146         pwd.h \
9147         libc.h \
9148         limits.h \
9149         stdarg.h \
9150         stdlib.h \
9151         stdint.h \
9152         string.h \
9153         termios.h \
9154         unistd.h \
9155         sys/bitypes.h \
9156         sys/byteorder.h \
9157         sys/ioctl.h \
9158         sys/select.h \
9159         sys/sockio.h \
9160         sys/time.h \
9161         sys/socket.h \
9162         arpa/nameser.h \
9163         resolv.h \
9164         mtio.h \
9165         sys/mtio.h \
9166         regex.h \
9167
9168 do
9169 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9170 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9171   echo "$as_me:$LINENO: checking for $ac_header" >&5
9172 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9173 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9174   echo $ECHO_N "(cached) $ECHO_C" >&6
9175 fi
9176 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9177 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9178 else
9179   # Is the header compilable?
9180 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9181 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9182 cat >conftest.$ac_ext <<_ACEOF
9183 #line $LINENO "configure"
9184 /* confdefs.h.  */
9185 _ACEOF
9186 cat confdefs.h >>conftest.$ac_ext
9187 cat >>conftest.$ac_ext <<_ACEOF
9188 /* end confdefs.h.  */
9189 $ac_includes_default
9190 #include <$ac_header>
9191 _ACEOF
9192 rm -f conftest.$ac_objext
9193 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9194   (eval $ac_compile) 2>&5
9195   ac_status=$?
9196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9197   (exit $ac_status); } &&
9198          { ac_try='test -s conftest.$ac_objext'
9199   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9200   (eval $ac_try) 2>&5
9201   ac_status=$?
9202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9203   (exit $ac_status); }; }; then
9204   ac_header_compiler=yes
9205 else
9206   echo "$as_me: failed program was:" >&5
9207 sed 's/^/| /' conftest.$ac_ext >&5
9208
9209 ac_header_compiler=no
9210 fi
9211 rm -f conftest.$ac_objext conftest.$ac_ext
9212 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9213 echo "${ECHO_T}$ac_header_compiler" >&6
9214
9215 # Is the header present?
9216 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9217 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9218 cat >conftest.$ac_ext <<_ACEOF
9219 #line $LINENO "configure"
9220 /* confdefs.h.  */
9221 _ACEOF
9222 cat confdefs.h >>conftest.$ac_ext
9223 cat >>conftest.$ac_ext <<_ACEOF
9224 /* end confdefs.h.  */
9225 #include <$ac_header>
9226 _ACEOF
9227 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9228   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9229   ac_status=$?
9230   grep -v '^ *+' conftest.er1 >conftest.err
9231   rm -f conftest.er1
9232   cat conftest.err >&5
9233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9234   (exit $ac_status); } >/dev/null; then
9235   if test -s conftest.err; then
9236     ac_cpp_err=$ac_c_preproc_warn_flag
9237   else
9238     ac_cpp_err=
9239   fi
9240 else
9241   ac_cpp_err=yes
9242 fi
9243 if test -z "$ac_cpp_err"; then
9244   ac_header_preproc=yes
9245 else
9246   echo "$as_me: failed program was:" >&5
9247 sed 's/^/| /' conftest.$ac_ext >&5
9248
9249   ac_header_preproc=no
9250 fi
9251 rm -f conftest.err conftest.$ac_ext
9252 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9253 echo "${ECHO_T}$ac_header_preproc" >&6
9254
9255 # So?  What about this header?
9256 case $ac_header_compiler:$ac_header_preproc in
9257   yes:no )
9258     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9259 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9260     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9261 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9262     (
9263       cat <<\_ASBOX
9264 ## ------------------------------------ ##
9265 ## Report this to bug-autoconf@gnu.org. ##
9266 ## ------------------------------------ ##
9267 _ASBOX
9268     ) |
9269       sed "s/^/$as_me: WARNING:     /" >&2
9270     ;;
9271   no:yes )
9272     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9273 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9274     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9275 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9276     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9277 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9278     (
9279       cat <<\_ASBOX
9280 ## ------------------------------------ ##
9281 ## Report this to bug-autoconf@gnu.org. ##
9282 ## ------------------------------------ ##
9283 _ASBOX
9284     ) |
9285       sed "s/^/$as_me: WARNING:     /" >&2
9286     ;;
9287 esac
9288 echo "$as_me:$LINENO: checking for $ac_header" >&5
9289 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9290 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9291   echo $ECHO_N "(cached) $ECHO_C" >&6
9292 else
9293   eval "$as_ac_Header=$ac_header_preproc"
9294 fi
9295 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9296 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9297
9298 fi
9299 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9300   cat >>confdefs.h <<_ACEOF
9301 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9302 _ACEOF
9303
9304 fi
9305
9306 done
9307
9308 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9309 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9310 if test "${ac_cv_header_stdc+set}" = set; then
9311   echo $ECHO_N "(cached) $ECHO_C" >&6
9312 else
9313   cat >conftest.$ac_ext <<_ACEOF
9314 #line $LINENO "configure"
9315 /* confdefs.h.  */
9316 _ACEOF
9317 cat confdefs.h >>conftest.$ac_ext
9318 cat >>conftest.$ac_ext <<_ACEOF
9319 /* end confdefs.h.  */
9320 #include <stdlib.h>
9321 #include <stdarg.h>
9322 #include <string.h>
9323 #include <float.h>
9324
9325 int
9326 main ()
9327 {
9328
9329   ;
9330   return 0;
9331 }
9332 _ACEOF
9333 rm -f conftest.$ac_objext
9334 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9335   (eval $ac_compile) 2>&5
9336   ac_status=$?
9337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9338   (exit $ac_status); } &&
9339          { ac_try='test -s conftest.$ac_objext'
9340   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9341   (eval $ac_try) 2>&5
9342   ac_status=$?
9343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9344   (exit $ac_status); }; }; then
9345   ac_cv_header_stdc=yes
9346 else
9347   echo "$as_me: failed program was:" >&5
9348 sed 's/^/| /' conftest.$ac_ext >&5
9349
9350 ac_cv_header_stdc=no
9351 fi
9352 rm -f conftest.$ac_objext conftest.$ac_ext
9353
9354 if test $ac_cv_header_stdc = yes; then
9355   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9356   cat >conftest.$ac_ext <<_ACEOF
9357 #line $LINENO "configure"
9358 /* confdefs.h.  */
9359 _ACEOF
9360 cat confdefs.h >>conftest.$ac_ext
9361 cat >>conftest.$ac_ext <<_ACEOF
9362 /* end confdefs.h.  */
9363 #include <string.h>
9364
9365 _ACEOF
9366 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9367   $EGREP "memchr" >/dev/null 2>&1; then
9368   :
9369 else
9370   ac_cv_header_stdc=no
9371 fi
9372 rm -f conftest*
9373
9374 fi
9375
9376 if test $ac_cv_header_stdc = yes; then
9377   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9378   cat >conftest.$ac_ext <<_ACEOF
9379 #line $LINENO "configure"
9380 /* confdefs.h.  */
9381 _ACEOF
9382 cat confdefs.h >>conftest.$ac_ext
9383 cat >>conftest.$ac_ext <<_ACEOF
9384 /* end confdefs.h.  */
9385 #include <stdlib.h>
9386
9387 _ACEOF
9388 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9389   $EGREP "free" >/dev/null 2>&1; then
9390   :
9391 else
9392   ac_cv_header_stdc=no
9393 fi
9394 rm -f conftest*
9395
9396 fi
9397
9398 if test $ac_cv_header_stdc = yes; then
9399   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9400   if test "$cross_compiling" = yes; then
9401   :
9402 else
9403   cat >conftest.$ac_ext <<_ACEOF
9404 #line $LINENO "configure"
9405 /* confdefs.h.  */
9406 _ACEOF
9407 cat confdefs.h >>conftest.$ac_ext
9408 cat >>conftest.$ac_ext <<_ACEOF
9409 /* end confdefs.h.  */
9410 #include <ctype.h>
9411 #if ((' ' & 0x0FF) == 0x020)
9412 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9413 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9414 #else
9415 # define ISLOWER(c) \
9416                    (('a' <= (c) && (c) <= 'i') \
9417                      || ('j' <= (c) && (c) <= 'r') \
9418                      || ('s' <= (c) && (c) <= 'z'))
9419 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9420 #endif
9421
9422 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9423 int
9424 main ()
9425 {
9426   int i;
9427   for (i = 0; i < 256; i++)
9428     if (XOR (islower (i), ISLOWER (i))
9429         || toupper (i) != TOUPPER (i))
9430       exit(2);
9431   exit (0);
9432 }
9433 _ACEOF
9434 rm -f 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); } && { ac_try='./conftest$ac_exeext'
9440   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9441   (eval $ac_try) 2>&5
9442   ac_status=$?
9443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9444   (exit $ac_status); }; }; then
9445   :
9446 else
9447   echo "$as_me: program exited with status $ac_status" >&5
9448 echo "$as_me: failed program was:" >&5
9449 sed 's/^/| /' conftest.$ac_ext >&5
9450
9451 ( exit $ac_status )
9452 ac_cv_header_stdc=no
9453 fi
9454 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9455 fi
9456 fi
9457 fi
9458 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9459 echo "${ECHO_T}$ac_cv_header_stdc" >&6
9460 if test $ac_cv_header_stdc = yes; then
9461
9462 cat >>confdefs.h <<\_ACEOF
9463 #define STDC_HEADERS 1
9464 _ACEOF
9465
9466 fi
9467
9468 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
9469 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
9470 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
9471   echo $ECHO_N "(cached) $ECHO_C" >&6
9472 else
9473   cat >conftest.$ac_ext <<_ACEOF
9474 #line $LINENO "configure"
9475 /* confdefs.h.  */
9476 _ACEOF
9477 cat confdefs.h >>conftest.$ac_ext
9478 cat >>conftest.$ac_ext <<_ACEOF
9479 /* end confdefs.h.  */
9480 #include <sys/types.h>
9481 int
9482 main ()
9483 {
9484 return makedev(0, 0);
9485   ;
9486   return 0;
9487 }
9488 _ACEOF
9489 rm -f conftest.$ac_objext conftest$ac_exeext
9490 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9491   (eval $ac_link) 2>&5
9492   ac_status=$?
9493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9494   (exit $ac_status); } &&
9495          { ac_try='test -s conftest$ac_exeext'
9496   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9497   (eval $ac_try) 2>&5
9498   ac_status=$?
9499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9500   (exit $ac_status); }; }; then
9501   ac_cv_header_sys_types_h_makedev=yes
9502 else
9503   echo "$as_me: failed program was:" >&5
9504 sed 's/^/| /' conftest.$ac_ext >&5
9505
9506 ac_cv_header_sys_types_h_makedev=no
9507 fi
9508 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9509
9510 fi
9511 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
9512 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
9513
9514 if test $ac_cv_header_sys_types_h_makedev = no; then
9515 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
9516   echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
9517 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
9518 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
9519   echo $ECHO_N "(cached) $ECHO_C" >&6
9520 fi
9521 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
9522 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
9523 else
9524   # Is the header compilable?
9525 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
9526 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
9527 cat >conftest.$ac_ext <<_ACEOF
9528 #line $LINENO "configure"
9529 /* confdefs.h.  */
9530 _ACEOF
9531 cat confdefs.h >>conftest.$ac_ext
9532 cat >>conftest.$ac_ext <<_ACEOF
9533 /* end confdefs.h.  */
9534 $ac_includes_default
9535 #include <sys/mkdev.h>
9536 _ACEOF
9537 rm -f conftest.$ac_objext
9538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9539   (eval $ac_compile) 2>&5
9540   ac_status=$?
9541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9542   (exit $ac_status); } &&
9543          { ac_try='test -s conftest.$ac_objext'
9544   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9545   (eval $ac_try) 2>&5
9546   ac_status=$?
9547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9548   (exit $ac_status); }; }; then
9549   ac_header_compiler=yes
9550 else
9551   echo "$as_me: failed program was:" >&5
9552 sed 's/^/| /' conftest.$ac_ext >&5
9553
9554 ac_header_compiler=no
9555 fi
9556 rm -f conftest.$ac_objext conftest.$ac_ext
9557 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9558 echo "${ECHO_T}$ac_header_compiler" >&6
9559
9560 # Is the header present?
9561 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
9562 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
9563 cat >conftest.$ac_ext <<_ACEOF
9564 #line $LINENO "configure"
9565 /* confdefs.h.  */
9566 _ACEOF
9567 cat confdefs.h >>conftest.$ac_ext
9568 cat >>conftest.$ac_ext <<_ACEOF
9569 /* end confdefs.h.  */
9570 #include <sys/mkdev.h>
9571 _ACEOF
9572 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9573   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9574   ac_status=$?
9575   grep -v '^ *+' conftest.er1 >conftest.err
9576   rm -f conftest.er1
9577   cat conftest.err >&5
9578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9579   (exit $ac_status); } >/dev/null; then
9580   if test -s conftest.err; then
9581     ac_cpp_err=$ac_c_preproc_warn_flag
9582   else
9583     ac_cpp_err=
9584   fi
9585 else
9586   ac_cpp_err=yes
9587 fi
9588 if test -z "$ac_cpp_err"; then
9589   ac_header_preproc=yes
9590 else
9591   echo "$as_me: failed program was:" >&5
9592 sed 's/^/| /' conftest.$ac_ext >&5
9593
9594   ac_header_preproc=no
9595 fi
9596 rm -f conftest.err conftest.$ac_ext
9597 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9598 echo "${ECHO_T}$ac_header_preproc" >&6
9599
9600 # So?  What about this header?
9601 case $ac_header_compiler:$ac_header_preproc in
9602   yes:no )
9603     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
9604 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9605     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
9606 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
9607     (
9608       cat <<\_ASBOX
9609 ## ------------------------------------ ##
9610 ## Report this to bug-autoconf@gnu.org. ##
9611 ## ------------------------------------ ##
9612 _ASBOX
9613     ) |
9614       sed "s/^/$as_me: WARNING:     /" >&2
9615     ;;
9616   no:yes )
9617     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
9618 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
9619     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
9620 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
9621     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
9622 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
9623     (
9624       cat <<\_ASBOX
9625 ## ------------------------------------ ##
9626 ## Report this to bug-autoconf@gnu.org. ##
9627 ## ------------------------------------ ##
9628 _ASBOX
9629     ) |
9630       sed "s/^/$as_me: WARNING:     /" >&2
9631     ;;
9632 esac
9633 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
9634 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
9635 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
9636   echo $ECHO_N "(cached) $ECHO_C" >&6
9637 else
9638   ac_cv_header_sys_mkdev_h=$ac_header_preproc
9639 fi
9640 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
9641 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
9642
9643 fi
9644 if test $ac_cv_header_sys_mkdev_h = yes; then
9645
9646 cat >>confdefs.h <<\_ACEOF
9647 #define MAJOR_IN_MKDEV 1
9648 _ACEOF
9649
9650 fi
9651
9652
9653
9654   if test $ac_cv_header_sys_mkdev_h = no; then
9655     if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
9656   echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
9657 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
9658 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
9659   echo $ECHO_N "(cached) $ECHO_C" >&6
9660 fi
9661 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
9662 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
9663 else
9664   # Is the header compilable?
9665 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
9666 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
9667 cat >conftest.$ac_ext <<_ACEOF
9668 #line $LINENO "configure"
9669 /* confdefs.h.  */
9670 _ACEOF
9671 cat confdefs.h >>conftest.$ac_ext
9672 cat >>conftest.$ac_ext <<_ACEOF
9673 /* end confdefs.h.  */
9674 $ac_includes_default
9675 #include <sys/sysmacros.h>
9676 _ACEOF
9677 rm -f conftest.$ac_objext
9678 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9679   (eval $ac_compile) 2>&5
9680   ac_status=$?
9681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9682   (exit $ac_status); } &&
9683          { ac_try='test -s conftest.$ac_objext'
9684   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9685   (eval $ac_try) 2>&5
9686   ac_status=$?
9687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9688   (exit $ac_status); }; }; then
9689   ac_header_compiler=yes
9690 else
9691   echo "$as_me: failed program was:" >&5
9692 sed 's/^/| /' conftest.$ac_ext >&5
9693
9694 ac_header_compiler=no
9695 fi
9696 rm -f conftest.$ac_objext conftest.$ac_ext
9697 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9698 echo "${ECHO_T}$ac_header_compiler" >&6
9699
9700 # Is the header present?
9701 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
9702 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
9703 cat >conftest.$ac_ext <<_ACEOF
9704 #line $LINENO "configure"
9705 /* confdefs.h.  */
9706 _ACEOF
9707 cat confdefs.h >>conftest.$ac_ext
9708 cat >>conftest.$ac_ext <<_ACEOF
9709 /* end confdefs.h.  */
9710 #include <sys/sysmacros.h>
9711 _ACEOF
9712 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9713   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9714   ac_status=$?
9715   grep -v '^ *+' conftest.er1 >conftest.err
9716   rm -f conftest.er1
9717   cat conftest.err >&5
9718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9719   (exit $ac_status); } >/dev/null; then
9720   if test -s conftest.err; then
9721     ac_cpp_err=$ac_c_preproc_warn_flag
9722   else
9723     ac_cpp_err=
9724   fi
9725 else
9726   ac_cpp_err=yes
9727 fi
9728 if test -z "$ac_cpp_err"; then
9729   ac_header_preproc=yes
9730 else
9731   echo "$as_me: failed program was:" >&5
9732 sed 's/^/| /' conftest.$ac_ext >&5
9733
9734   ac_header_preproc=no
9735 fi
9736 rm -f conftest.err conftest.$ac_ext
9737 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9738 echo "${ECHO_T}$ac_header_preproc" >&6
9739
9740 # So?  What about this header?
9741 case $ac_header_compiler:$ac_header_preproc in
9742   yes:no )
9743     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
9744 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9745     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
9746 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
9747     (
9748       cat <<\_ASBOX
9749 ## ------------------------------------ ##
9750 ## Report this to bug-autoconf@gnu.org. ##
9751 ## ------------------------------------ ##
9752 _ASBOX
9753     ) |
9754       sed "s/^/$as_me: WARNING:     /" >&2
9755     ;;
9756   no:yes )
9757     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
9758 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
9759     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
9760 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
9761     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
9762 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
9763     (
9764       cat <<\_ASBOX
9765 ## ------------------------------------ ##
9766 ## Report this to bug-autoconf@gnu.org. ##
9767 ## ------------------------------------ ##
9768 _ASBOX
9769     ) |
9770       sed "s/^/$as_me: WARNING:     /" >&2
9771     ;;
9772 esac
9773 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
9774 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
9775 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
9776   echo $ECHO_N "(cached) $ECHO_C" >&6
9777 else
9778   ac_cv_header_sys_sysmacros_h=$ac_header_preproc
9779 fi
9780 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
9781 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
9782
9783 fi
9784 if test $ac_cv_header_sys_sysmacros_h = yes; then
9785
9786 cat >>confdefs.h <<\_ACEOF
9787 #define MAJOR_IN_SYSMACROS 1
9788 _ACEOF
9789
9790 fi
9791
9792
9793   fi
9794 fi
9795
9796
9797
9798
9799
9800
9801 ac_header_dirent=no
9802 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9803   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9804 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9805 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
9806 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9807   echo $ECHO_N "(cached) $ECHO_C" >&6
9808 else
9809   cat >conftest.$ac_ext <<_ACEOF
9810 #line $LINENO "configure"
9811 /* confdefs.h.  */
9812 _ACEOF
9813 cat confdefs.h >>conftest.$ac_ext
9814 cat >>conftest.$ac_ext <<_ACEOF
9815 /* end confdefs.h.  */
9816 #include <sys/types.h>
9817 #include <$ac_hdr>
9818
9819 int
9820 main ()
9821 {
9822 if ((DIR *) 0)
9823 return 0;
9824   ;
9825   return 0;
9826 }
9827 _ACEOF
9828 rm -f conftest.$ac_objext
9829 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9830   (eval $ac_compile) 2>&5
9831   ac_status=$?
9832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9833   (exit $ac_status); } &&
9834          { ac_try='test -s conftest.$ac_objext'
9835   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9836   (eval $ac_try) 2>&5
9837   ac_status=$?
9838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9839   (exit $ac_status); }; }; then
9840   eval "$as_ac_Header=yes"
9841 else
9842   echo "$as_me: failed program was:" >&5
9843 sed 's/^/| /' conftest.$ac_ext >&5
9844
9845 eval "$as_ac_Header=no"
9846 fi
9847 rm -f conftest.$ac_objext conftest.$ac_ext
9848 fi
9849 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9850 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9851 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9852   cat >>confdefs.h <<_ACEOF
9853 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9854 _ACEOF
9855
9856 ac_header_dirent=$ac_hdr; break
9857 fi
9858
9859 done
9860 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9861 if test $ac_header_dirent = dirent.h; then
9862   echo "$as_me:$LINENO: checking for library containing opendir" >&5
9863 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9864 if test "${ac_cv_search_opendir+set}" = set; then
9865   echo $ECHO_N "(cached) $ECHO_C" >&6
9866 else
9867   ac_func_search_save_LIBS=$LIBS
9868 ac_cv_search_opendir=no
9869 cat >conftest.$ac_ext <<_ACEOF
9870 #line $LINENO "configure"
9871 /* confdefs.h.  */
9872 _ACEOF
9873 cat confdefs.h >>conftest.$ac_ext
9874 cat >>conftest.$ac_ext <<_ACEOF
9875 /* end confdefs.h.  */
9876
9877 /* Override any gcc2 internal prototype to avoid an error.  */
9878 #ifdef __cplusplus
9879 extern "C"
9880 #endif
9881 /* We use char because int might match the return type of a gcc2
9882    builtin and then its argument prototype would still apply.  */
9883 char opendir ();
9884 int
9885 main ()
9886 {
9887 opendir ();
9888   ;
9889   return 0;
9890 }
9891 _ACEOF
9892 rm -f conftest.$ac_objext conftest$ac_exeext
9893 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9894   (eval $ac_link) 2>&5
9895   ac_status=$?
9896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9897   (exit $ac_status); } &&
9898          { ac_try='test -s conftest$ac_exeext'
9899   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9900   (eval $ac_try) 2>&5
9901   ac_status=$?
9902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9903   (exit $ac_status); }; }; then
9904   ac_cv_search_opendir="none required"
9905 else
9906   echo "$as_me: failed program was:" >&5
9907 sed 's/^/| /' conftest.$ac_ext >&5
9908
9909 fi
9910 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9911 if test "$ac_cv_search_opendir" = no; then
9912   for ac_lib in dir; do
9913     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9914     cat >conftest.$ac_ext <<_ACEOF
9915 #line $LINENO "configure"
9916 /* confdefs.h.  */
9917 _ACEOF
9918 cat confdefs.h >>conftest.$ac_ext
9919 cat >>conftest.$ac_ext <<_ACEOF
9920 /* end confdefs.h.  */
9921
9922 /* Override any gcc2 internal prototype to avoid an error.  */
9923 #ifdef __cplusplus
9924 extern "C"
9925 #endif
9926 /* We use char because int might match the return type of a gcc2
9927    builtin and then its argument prototype would still apply.  */
9928 char opendir ();
9929 int
9930 main ()
9931 {
9932 opendir ();
9933   ;
9934   return 0;
9935 }
9936 _ACEOF
9937 rm -f conftest.$ac_objext conftest$ac_exeext
9938 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9939   (eval $ac_link) 2>&5
9940   ac_status=$?
9941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9942   (exit $ac_status); } &&
9943          { ac_try='test -s conftest$ac_exeext'
9944   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9945   (eval $ac_try) 2>&5
9946   ac_status=$?
9947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9948   (exit $ac_status); }; }; then
9949   ac_cv_search_opendir="-l$ac_lib"
9950 break
9951 else
9952   echo "$as_me: failed program was:" >&5
9953 sed 's/^/| /' conftest.$ac_ext >&5
9954
9955 fi
9956 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9957   done
9958 fi
9959 LIBS=$ac_func_search_save_LIBS
9960 fi
9961 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9962 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9963 if test "$ac_cv_search_opendir" != no; then
9964   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9965
9966 fi
9967
9968 else
9969   echo "$as_me:$LINENO: checking for library containing opendir" >&5
9970 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9971 if test "${ac_cv_search_opendir+set}" = set; then
9972   echo $ECHO_N "(cached) $ECHO_C" >&6
9973 else
9974   ac_func_search_save_LIBS=$LIBS
9975 ac_cv_search_opendir=no
9976 cat >conftest.$ac_ext <<_ACEOF
9977 #line $LINENO "configure"
9978 /* confdefs.h.  */
9979 _ACEOF
9980 cat confdefs.h >>conftest.$ac_ext
9981 cat >>conftest.$ac_ext <<_ACEOF
9982 /* end confdefs.h.  */
9983
9984 /* Override any gcc2 internal prototype to avoid an error.  */
9985 #ifdef __cplusplus
9986 extern "C"
9987 #endif
9988 /* We use char because int might match the return type of a gcc2
9989    builtin and then its argument prototype would still apply.  */
9990 char opendir ();
9991 int
9992 main ()
9993 {
9994 opendir ();
9995   ;
9996   return 0;
9997 }
9998 _ACEOF
9999 rm -f conftest.$ac_objext conftest$ac_exeext
10000 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10001   (eval $ac_link) 2>&5
10002   ac_status=$?
10003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10004   (exit $ac_status); } &&
10005          { ac_try='test -s conftest$ac_exeext'
10006   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10007   (eval $ac_try) 2>&5
10008   ac_status=$?
10009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10010   (exit $ac_status); }; }; then
10011   ac_cv_search_opendir="none required"
10012 else
10013   echo "$as_me: failed program was:" >&5
10014 sed 's/^/| /' conftest.$ac_ext >&5
10015
10016 fi
10017 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10018 if test "$ac_cv_search_opendir" = no; then
10019   for ac_lib in x; do
10020     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10021     cat >conftest.$ac_ext <<_ACEOF
10022 #line $LINENO "configure"
10023 /* confdefs.h.  */
10024 _ACEOF
10025 cat confdefs.h >>conftest.$ac_ext
10026 cat >>conftest.$ac_ext <<_ACEOF
10027 /* end confdefs.h.  */
10028
10029 /* Override any gcc2 internal prototype to avoid an error.  */
10030 #ifdef __cplusplus
10031 extern "C"
10032 #endif
10033 /* We use char because int might match the return type of a gcc2
10034    builtin and then its argument prototype would still apply.  */
10035 char opendir ();
10036 int
10037 main ()
10038 {
10039 opendir ();
10040   ;
10041   return 0;
10042 }
10043 _ACEOF
10044 rm -f conftest.$ac_objext conftest$ac_exeext
10045 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10046   (eval $ac_link) 2>&5
10047   ac_status=$?
10048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10049   (exit $ac_status); } &&
10050          { ac_try='test -s conftest$ac_exeext'
10051   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10052   (eval $ac_try) 2>&5
10053   ac_status=$?
10054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10055   (exit $ac_status); }; }; then
10056   ac_cv_search_opendir="-l$ac_lib"
10057 break
10058 else
10059   echo "$as_me: failed program was:" >&5
10060 sed 's/^/| /' conftest.$ac_ext >&5
10061
10062 fi
10063 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10064   done
10065 fi
10066 LIBS=$ac_func_search_save_LIBS
10067 fi
10068 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10069 echo "${ECHO_T}$ac_cv_search_opendir" >&6
10070 if test "$ac_cv_search_opendir" != no; then
10071   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
10072
10073 fi
10074
10075 fi
10076
10077 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
10078 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
10079 if test "${ac_cv_header_stat_broken+set}" = set; then
10080   echo $ECHO_N "(cached) $ECHO_C" >&6
10081 else
10082   cat >conftest.$ac_ext <<_ACEOF
10083 #line $LINENO "configure"
10084 /* confdefs.h.  */
10085 _ACEOF
10086 cat confdefs.h >>conftest.$ac_ext
10087 cat >>conftest.$ac_ext <<_ACEOF
10088 /* end confdefs.h.  */
10089 #include <sys/types.h>
10090 #include <sys/stat.h>
10091
10092 #if defined(S_ISBLK) && defined(S_IFDIR)
10093 # if S_ISBLK (S_IFDIR)
10094 You lose.
10095 # endif
10096 #endif
10097
10098 #if defined(S_ISBLK) && defined(S_IFCHR)
10099 # if S_ISBLK (S_IFCHR)
10100 You lose.
10101 # endif
10102 #endif
10103
10104 #if defined(S_ISLNK) && defined(S_IFREG)
10105 # if S_ISLNK (S_IFREG)
10106 You lose.
10107 # endif
10108 #endif
10109
10110 #if defined(S_ISSOCK) && defined(S_IFREG)
10111 # if S_ISSOCK (S_IFREG)
10112 You lose.
10113 # endif
10114 #endif
10115
10116 _ACEOF
10117 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10118   $EGREP "You lose" >/dev/null 2>&1; then
10119   ac_cv_header_stat_broken=yes
10120 else
10121   ac_cv_header_stat_broken=no
10122 fi
10123 rm -f conftest*
10124
10125 fi
10126 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
10127 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
10128 if test $ac_cv_header_stat_broken = yes; then
10129
10130 cat >>confdefs.h <<\_ACEOF
10131 #define STAT_MACROS_BROKEN 1
10132 _ACEOF
10133
10134 fi
10135
10136 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
10137 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
10138 if test "${ac_cv_header_sys_wait_h+set}" = set; then
10139   echo $ECHO_N "(cached) $ECHO_C" >&6
10140 else
10141   cat >conftest.$ac_ext <<_ACEOF
10142 #line $LINENO "configure"
10143 /* confdefs.h.  */
10144 _ACEOF
10145 cat confdefs.h >>conftest.$ac_ext
10146 cat >>conftest.$ac_ext <<_ACEOF
10147 /* end confdefs.h.  */
10148 #include <sys/types.h>
10149 #include <sys/wait.h>
10150 #ifndef WEXITSTATUS
10151 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
10152 #endif
10153 #ifndef WIFEXITED
10154 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
10155 #endif
10156
10157 int
10158 main ()
10159 {
10160   int s;
10161   wait (&s);
10162   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
10163   ;
10164   return 0;
10165 }
10166 _ACEOF
10167 rm -f conftest.$ac_objext
10168 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10169   (eval $ac_compile) 2>&5
10170   ac_status=$?
10171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10172   (exit $ac_status); } &&
10173          { ac_try='test -s conftest.$ac_objext'
10174   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10175   (eval $ac_try) 2>&5
10176   ac_status=$?
10177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10178   (exit $ac_status); }; }; then
10179   ac_cv_header_sys_wait_h=yes
10180 else
10181   echo "$as_me: failed program was:" >&5
10182 sed 's/^/| /' conftest.$ac_ext >&5
10183
10184 ac_cv_header_sys_wait_h=no
10185 fi
10186 rm -f conftest.$ac_objext conftest.$ac_ext
10187 fi
10188 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
10189 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
10190 if test $ac_cv_header_sys_wait_h = yes; then
10191
10192 cat >>confdefs.h <<\_ACEOF
10193 #define HAVE_SYS_WAIT_H 1
10194 _ACEOF
10195
10196 fi
10197
10198 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
10199 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
10200 if test "${ac_cv_header_time+set}" = set; then
10201   echo $ECHO_N "(cached) $ECHO_C" >&6
10202 else
10203   cat >conftest.$ac_ext <<_ACEOF
10204 #line $LINENO "configure"
10205 /* confdefs.h.  */
10206 _ACEOF
10207 cat confdefs.h >>conftest.$ac_ext
10208 cat >>conftest.$ac_ext <<_ACEOF
10209 /* end confdefs.h.  */
10210 #include <sys/types.h>
10211 #include <sys/time.h>
10212 #include <time.h>
10213
10214 int
10215 main ()
10216 {
10217 if ((struct tm *) 0)
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_header_time=yes
10236 else
10237   echo "$as_me: failed program was:" >&5
10238 sed 's/^/| /' conftest.$ac_ext >&5
10239
10240 ac_cv_header_time=no
10241 fi
10242 rm -f conftest.$ac_objext conftest.$ac_ext
10243 fi
10244 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
10245 echo "${ECHO_T}$ac_cv_header_time" >&6
10246 if test $ac_cv_header_time = yes; then
10247
10248 cat >>confdefs.h <<\_ACEOF
10249 #define TIME_WITH_SYS_TIME 1
10250 _ACEOF
10251
10252 fi
10253
10254
10255 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
10256 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
10257 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
10258   echo $ECHO_N "(cached) $ECHO_C" >&6
10259 else
10260   cat >conftest.$ac_ext <<_ACEOF
10261 #line $LINENO "configure"
10262 /* confdefs.h.  */
10263 _ACEOF
10264 cat confdefs.h >>conftest.$ac_ext
10265 cat >>conftest.$ac_ext <<_ACEOF
10266 /* end confdefs.h.  */
10267 $ac_includes_default
10268 int
10269 main ()
10270 {
10271 static struct stat ac_aggr;
10272 if (ac_aggr.st_blksize)
10273 return 0;
10274   ;
10275   return 0;
10276 }
10277 _ACEOF
10278 rm -f conftest.$ac_objext
10279 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10280   (eval $ac_compile) 2>&5
10281   ac_status=$?
10282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10283   (exit $ac_status); } &&
10284          { ac_try='test -s conftest.$ac_objext'
10285   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10286   (eval $ac_try) 2>&5
10287   ac_status=$?
10288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10289   (exit $ac_status); }; }; then
10290   ac_cv_member_struct_stat_st_blksize=yes
10291 else
10292   echo "$as_me: failed program was:" >&5
10293 sed 's/^/| /' conftest.$ac_ext >&5
10294
10295 cat >conftest.$ac_ext <<_ACEOF
10296 #line $LINENO "configure"
10297 /* confdefs.h.  */
10298 _ACEOF
10299 cat confdefs.h >>conftest.$ac_ext
10300 cat >>conftest.$ac_ext <<_ACEOF
10301 /* end confdefs.h.  */
10302 $ac_includes_default
10303 int
10304 main ()
10305 {
10306 static struct stat ac_aggr;
10307 if (sizeof ac_aggr.st_blksize)
10308 return 0;
10309   ;
10310   return 0;
10311 }
10312 _ACEOF
10313 rm -f conftest.$ac_objext
10314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10315   (eval $ac_compile) 2>&5
10316   ac_status=$?
10317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10318   (exit $ac_status); } &&
10319          { ac_try='test -s conftest.$ac_objext'
10320   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10321   (eval $ac_try) 2>&5
10322   ac_status=$?
10323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10324   (exit $ac_status); }; }; then
10325   ac_cv_member_struct_stat_st_blksize=yes
10326 else
10327   echo "$as_me: failed program was:" >&5
10328 sed 's/^/| /' conftest.$ac_ext >&5
10329
10330 ac_cv_member_struct_stat_st_blksize=no
10331 fi
10332 rm -f conftest.$ac_objext conftest.$ac_ext
10333 fi
10334 rm -f conftest.$ac_objext conftest.$ac_ext
10335 fi
10336 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
10337 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
10338 if test $ac_cv_member_struct_stat_st_blksize = yes; then
10339
10340 cat >>confdefs.h <<_ACEOF
10341 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
10342 _ACEOF
10343
10344
10345 cat >>confdefs.h <<\_ACEOF
10346 #define HAVE_ST_BLKSIZE 1
10347 _ACEOF
10348
10349 fi
10350
10351
10352 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
10353 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
10354 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
10355   echo $ECHO_N "(cached) $ECHO_C" >&6
10356 else
10357   cat >conftest.$ac_ext <<_ACEOF
10358 #line $LINENO "configure"
10359 /* confdefs.h.  */
10360 _ACEOF
10361 cat confdefs.h >>conftest.$ac_ext
10362 cat >>conftest.$ac_ext <<_ACEOF
10363 /* end confdefs.h.  */
10364 $ac_includes_default
10365 int
10366 main ()
10367 {
10368 static struct stat ac_aggr;
10369 if (ac_aggr.st_blocks)
10370 return 0;
10371   ;
10372   return 0;
10373 }
10374 _ACEOF
10375 rm -f conftest.$ac_objext
10376 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10377   (eval $ac_compile) 2>&5
10378   ac_status=$?
10379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10380   (exit $ac_status); } &&
10381          { ac_try='test -s conftest.$ac_objext'
10382   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10383   (eval $ac_try) 2>&5
10384   ac_status=$?
10385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10386   (exit $ac_status); }; }; then
10387   ac_cv_member_struct_stat_st_blocks=yes
10388 else
10389   echo "$as_me: failed program was:" >&5
10390 sed 's/^/| /' conftest.$ac_ext >&5
10391
10392 cat >conftest.$ac_ext <<_ACEOF
10393 #line $LINENO "configure"
10394 /* confdefs.h.  */
10395 _ACEOF
10396 cat confdefs.h >>conftest.$ac_ext
10397 cat >>conftest.$ac_ext <<_ACEOF
10398 /* end confdefs.h.  */
10399 $ac_includes_default
10400 int
10401 main ()
10402 {
10403 static struct stat ac_aggr;
10404 if (sizeof ac_aggr.st_blocks)
10405 return 0;
10406   ;
10407   return 0;
10408 }
10409 _ACEOF
10410 rm -f conftest.$ac_objext
10411 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10412   (eval $ac_compile) 2>&5
10413   ac_status=$?
10414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10415   (exit $ac_status); } &&
10416          { ac_try='test -s conftest.$ac_objext'
10417   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10418   (eval $ac_try) 2>&5
10419   ac_status=$?
10420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10421   (exit $ac_status); }; }; then
10422   ac_cv_member_struct_stat_st_blocks=yes
10423 else
10424   echo "$as_me: failed program was:" >&5
10425 sed 's/^/| /' conftest.$ac_ext >&5
10426
10427 ac_cv_member_struct_stat_st_blocks=no
10428 fi
10429 rm -f conftest.$ac_objext conftest.$ac_ext
10430 fi
10431 rm -f conftest.$ac_objext conftest.$ac_ext
10432 fi
10433 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
10434 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
10435 if test $ac_cv_member_struct_stat_st_blocks = yes; then
10436
10437 cat >>confdefs.h <<_ACEOF
10438 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
10439 _ACEOF
10440
10441
10442 cat >>confdefs.h <<\_ACEOF
10443 #define HAVE_ST_BLOCKS 1
10444 _ACEOF
10445
10446 else
10447   LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
10448 fi
10449
10450
10451 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
10452 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
10453 if test "${ac_cv_struct_tm+set}" = set; then
10454   echo $ECHO_N "(cached) $ECHO_C" >&6
10455 else
10456   cat >conftest.$ac_ext <<_ACEOF
10457 #line $LINENO "configure"
10458 /* confdefs.h.  */
10459 _ACEOF
10460 cat confdefs.h >>conftest.$ac_ext
10461 cat >>conftest.$ac_ext <<_ACEOF
10462 /* end confdefs.h.  */
10463 #include <sys/types.h>
10464 #include <time.h>
10465
10466 int
10467 main ()
10468 {
10469 struct tm *tp; tp->tm_sec;
10470   ;
10471   return 0;
10472 }
10473 _ACEOF
10474 rm -f conftest.$ac_objext
10475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10476   (eval $ac_compile) 2>&5
10477   ac_status=$?
10478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10479   (exit $ac_status); } &&
10480          { ac_try='test -s conftest.$ac_objext'
10481   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10482   (eval $ac_try) 2>&5
10483   ac_status=$?
10484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10485   (exit $ac_status); }; }; then
10486   ac_cv_struct_tm=time.h
10487 else
10488   echo "$as_me: failed program was:" >&5
10489 sed 's/^/| /' conftest.$ac_ext >&5
10490
10491 ac_cv_struct_tm=sys/time.h
10492 fi
10493 rm -f conftest.$ac_objext conftest.$ac_ext
10494 fi
10495 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
10496 echo "${ECHO_T}$ac_cv_struct_tm" >&6
10497 if test $ac_cv_struct_tm = sys/time.h; then
10498
10499 cat >>confdefs.h <<\_ACEOF
10500 #define TM_IN_SYS_TIME 1
10501 _ACEOF
10502
10503 fi
10504
10505 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
10506 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
10507 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
10508   echo $ECHO_N "(cached) $ECHO_C" >&6
10509 else
10510   cat >conftest.$ac_ext <<_ACEOF
10511 #line $LINENO "configure"
10512 /* confdefs.h.  */
10513 _ACEOF
10514 cat confdefs.h >>conftest.$ac_ext
10515 cat >>conftest.$ac_ext <<_ACEOF
10516 /* end confdefs.h.  */
10517 #include <sys/types.h>
10518 #include <$ac_cv_struct_tm>
10519
10520
10521 int
10522 main ()
10523 {
10524 static struct tm ac_aggr;
10525 if (ac_aggr.tm_zone)
10526 return 0;
10527   ;
10528   return 0;
10529 }
10530 _ACEOF
10531 rm -f conftest.$ac_objext
10532 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10533   (eval $ac_compile) 2>&5
10534   ac_status=$?
10535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10536   (exit $ac_status); } &&
10537          { ac_try='test -s conftest.$ac_objext'
10538   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10539   (eval $ac_try) 2>&5
10540   ac_status=$?
10541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10542   (exit $ac_status); }; }; then
10543   ac_cv_member_struct_tm_tm_zone=yes
10544 else
10545   echo "$as_me: failed program was:" >&5
10546 sed 's/^/| /' conftest.$ac_ext >&5
10547
10548 cat >conftest.$ac_ext <<_ACEOF
10549 #line $LINENO "configure"
10550 /* confdefs.h.  */
10551 _ACEOF
10552 cat confdefs.h >>conftest.$ac_ext
10553 cat >>conftest.$ac_ext <<_ACEOF
10554 /* end confdefs.h.  */
10555 #include <sys/types.h>
10556 #include <$ac_cv_struct_tm>
10557
10558
10559 int
10560 main ()
10561 {
10562 static struct tm ac_aggr;
10563 if (sizeof ac_aggr.tm_zone)
10564 return 0;
10565   ;
10566   return 0;
10567 }
10568 _ACEOF
10569 rm -f conftest.$ac_objext
10570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10571   (eval $ac_compile) 2>&5
10572   ac_status=$?
10573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10574   (exit $ac_status); } &&
10575          { ac_try='test -s conftest.$ac_objext'
10576   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10577   (eval $ac_try) 2>&5
10578   ac_status=$?
10579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10580   (exit $ac_status); }; }; then
10581   ac_cv_member_struct_tm_tm_zone=yes
10582 else
10583   echo "$as_me: failed program was:" >&5
10584 sed 's/^/| /' conftest.$ac_ext >&5
10585
10586 ac_cv_member_struct_tm_tm_zone=no
10587 fi
10588 rm -f conftest.$ac_objext conftest.$ac_ext
10589 fi
10590 rm -f conftest.$ac_objext conftest.$ac_ext
10591 fi
10592 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
10593 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
10594 if test $ac_cv_member_struct_tm_tm_zone = yes; then
10595
10596 cat >>confdefs.h <<_ACEOF
10597 #define HAVE_STRUCT_TM_TM_ZONE 1
10598 _ACEOF
10599
10600
10601 fi
10602
10603 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
10604
10605 cat >>confdefs.h <<\_ACEOF
10606 #define HAVE_TM_ZONE 1
10607 _ACEOF
10608
10609 else
10610   echo "$as_me:$LINENO: checking for tzname" >&5
10611 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
10612 if test "${ac_cv_var_tzname+set}" = set; then
10613   echo $ECHO_N "(cached) $ECHO_C" >&6
10614 else
10615   cat >conftest.$ac_ext <<_ACEOF
10616 #line $LINENO "configure"
10617 /* confdefs.h.  */
10618 _ACEOF
10619 cat confdefs.h >>conftest.$ac_ext
10620 cat >>conftest.$ac_ext <<_ACEOF
10621 /* end confdefs.h.  */
10622 #include <time.h>
10623 #ifndef tzname /* For SGI.  */
10624 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
10625 #endif
10626
10627 int
10628 main ()
10629 {
10630 atoi(*tzname);
10631   ;
10632   return 0;
10633 }
10634 _ACEOF
10635 rm -f conftest.$ac_objext conftest$ac_exeext
10636 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10637   (eval $ac_link) 2>&5
10638   ac_status=$?
10639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10640   (exit $ac_status); } &&
10641          { ac_try='test -s conftest$ac_exeext'
10642   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10643   (eval $ac_try) 2>&5
10644   ac_status=$?
10645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10646   (exit $ac_status); }; }; then
10647   ac_cv_var_tzname=yes
10648 else
10649   echo "$as_me: failed program was:" >&5
10650 sed 's/^/| /' conftest.$ac_ext >&5
10651
10652 ac_cv_var_tzname=no
10653 fi
10654 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10655 fi
10656 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
10657 echo "${ECHO_T}$ac_cv_var_tzname" >&6
10658   if test $ac_cv_var_tzname = yes; then
10659
10660 cat >>confdefs.h <<\_ACEOF
10661 #define HAVE_TZNAME 1
10662 _ACEOF
10663
10664   fi
10665 fi
10666
10667
10668 echo "$as_me:$LINENO: checking for utime.h" >&5
10669 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6
10670 if test "${ba_cv_header_utime_h+set}" = set; then
10671   echo $ECHO_N "(cached) $ECHO_C" >&6
10672 else
10673   cat >conftest.$ac_ext <<_ACEOF
10674 #line $LINENO "configure"
10675 /* confdefs.h.  */
10676 _ACEOF
10677 cat confdefs.h >>conftest.$ac_ext
10678 cat >>conftest.$ac_ext <<_ACEOF
10679 /* end confdefs.h.  */
10680
10681 #include <sys/types.h>
10682 #include <utime.h>
10683 int
10684 main ()
10685 {
10686 struct utimbuf foo
10687   ;
10688   return 0;
10689 }
10690 _ACEOF
10691 rm -f conftest.$ac_objext
10692 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10693   (eval $ac_compile) 2>&5
10694   ac_status=$?
10695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10696   (exit $ac_status); } &&
10697          { ac_try='test -s conftest.$ac_objext'
10698   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10699   (eval $ac_try) 2>&5
10700   ac_status=$?
10701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10702   (exit $ac_status); }; }; then
10703   ba_cv_header_utime_h=yes
10704 else
10705   echo "$as_me: failed program was:" >&5
10706 sed 's/^/| /' conftest.$ac_ext >&5
10707
10708 ba_cv_header_utime_h=no
10709 fi
10710 rm -f conftest.$ac_objext conftest.$ac_ext
10711 fi
10712 echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
10713 echo "${ECHO_T}$ba_cv_header_utime_h" >&6
10714 test $ba_cv_header_utime_h = yes && cat >>confdefs.h <<\_ACEOF
10715 #define HAVE_UTIME_H 1
10716 _ACEOF
10717
10718
10719 echo "$as_me:$LINENO: checking for socklen_t" >&5
10720 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
10721 if test "${ba_cv_header_socklen_t+set}" = set; then
10722   echo $ECHO_N "(cached) $ECHO_C" >&6
10723 else
10724   cat >conftest.$ac_ext <<_ACEOF
10725 #line $LINENO "configure"
10726 /* confdefs.h.  */
10727 _ACEOF
10728 cat confdefs.h >>conftest.$ac_ext
10729 cat >>conftest.$ac_ext <<_ACEOF
10730 /* end confdefs.h.  */
10731
10732 #include <sys/types.h>
10733 #include <sys/socket.h>
10734 int
10735 main ()
10736 {
10737 socklen_t x
10738   ;
10739   return 0;
10740 }
10741 _ACEOF
10742 rm -f conftest.$ac_objext
10743 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10744   (eval $ac_compile) 2>&5
10745   ac_status=$?
10746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10747   (exit $ac_status); } &&
10748          { ac_try='test -s conftest.$ac_objext'
10749   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10750   (eval $ac_try) 2>&5
10751   ac_status=$?
10752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10753   (exit $ac_status); }; }; then
10754   ba_cv_header_socklen_t=yes
10755 else
10756   echo "$as_me: failed program was:" >&5
10757 sed 's/^/| /' conftest.$ac_ext >&5
10758
10759 ba_cv_header_socklen_t=no
10760 fi
10761 rm -f conftest.$ac_objext conftest.$ac_ext
10762 fi
10763 echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
10764 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6
10765 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
10766 #define HAVE_SOCKLEN_T 1
10767 _ACEOF
10768
10769
10770 echo "$as_me:$LINENO: checking for bigendian" >&5
10771 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6
10772 if test "${ba_cv_bigendian+set}" = set; then
10773   echo $ECHO_N "(cached) $ECHO_C" >&6
10774 else
10775   if test "$cross_compiling" = yes; then
10776   ba_cv_bigendian=no
10777 else
10778   cat >conftest.$ac_ext <<_ACEOF
10779 #line $LINENO "configure"
10780 /* confdefs.h.  */
10781 _ACEOF
10782 cat confdefs.h >>conftest.$ac_ext
10783 cat >>conftest.$ac_ext <<_ACEOF
10784 /* end confdefs.h.  */
10785 main(){long a=1L; char *p=(char *)&a; exit(*p);}
10786 _ACEOF
10787 rm -f conftest$ac_exeext
10788 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10789   (eval $ac_link) 2>&5
10790   ac_status=$?
10791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10792   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10793   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10794   (eval $ac_try) 2>&5
10795   ac_status=$?
10796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10797   (exit $ac_status); }; }; then
10798   ba_cv_bigendian=yes
10799 else
10800   echo "$as_me: program exited with status $ac_status" >&5
10801 echo "$as_me: failed program was:" >&5
10802 sed 's/^/| /' conftest.$ac_ext >&5
10803
10804 ( exit $ac_status )
10805 ba_cv_bigendian=no
10806 fi
10807 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10808 fi
10809 fi
10810 echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
10811 echo "${ECHO_T}$ba_cv_bigendian" >&6
10812 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
10813 #define HAVE_BIGENDIAN 1
10814 _ACEOF
10815
10816
10817
10818 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
10819 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
10820 if test "${ac_cv_c_const+set}" = set; then
10821   echo $ECHO_N "(cached) $ECHO_C" >&6
10822 else
10823   cat >conftest.$ac_ext <<_ACEOF
10824 #line $LINENO "configure"
10825 /* confdefs.h.  */
10826 _ACEOF
10827 cat confdefs.h >>conftest.$ac_ext
10828 cat >>conftest.$ac_ext <<_ACEOF
10829 /* end confdefs.h.  */
10830
10831 int
10832 main ()
10833 {
10834 /* FIXME: Include the comments suggested by Paul. */
10835 #ifndef __cplusplus
10836   /* Ultrix mips cc rejects this.  */
10837   typedef int charset[2];
10838   const charset x;
10839   /* SunOS 4.1.1 cc rejects this.  */
10840   char const *const *ccp;
10841   char **p;
10842   /* NEC SVR4.0.2 mips cc rejects this.  */
10843   struct point {int x, y;};
10844   static struct point const zero = {0,0};
10845   /* AIX XL C 1.02.0.0 rejects this.
10846      It does not let you subtract one const X* pointer from another in
10847      an arm of an if-expression whose if-part is not a constant
10848      expression */
10849   const char *g = "string";
10850   ccp = &g + (g ? g-g : 0);
10851   /* HPUX 7.0 cc rejects these. */
10852   ++ccp;
10853   p = (char**) ccp;
10854   ccp = (char const *const *) p;
10855   { /* SCO 3.2v4 cc rejects this.  */
10856     char *t;
10857     char const *s = 0 ? (char *) 0 : (char const *) 0;
10858
10859     *t++ = 0;
10860   }
10861   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
10862     int x[] = {25, 17};
10863     const int *foo = &x[0];
10864     ++foo;
10865   }
10866   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10867     typedef const int *iptr;
10868     iptr p = 0;
10869     ++p;
10870   }
10871   { /* AIX XL C 1.02.0.0 rejects this saying
10872        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10873     struct s { int j; const int *ap[3]; };
10874     struct s *b; b->j = 5;
10875   }
10876   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10877     const int foo = 10;
10878   }
10879 #endif
10880
10881   ;
10882   return 0;
10883 }
10884 _ACEOF
10885 rm -f conftest.$ac_objext
10886 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10887   (eval $ac_compile) 2>&5
10888   ac_status=$?
10889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10890   (exit $ac_status); } &&
10891          { ac_try='test -s conftest.$ac_objext'
10892   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10893   (eval $ac_try) 2>&5
10894   ac_status=$?
10895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10896   (exit $ac_status); }; }; then
10897   ac_cv_c_const=yes
10898 else
10899   echo "$as_me: failed program was:" >&5
10900 sed 's/^/| /' conftest.$ac_ext >&5
10901
10902 ac_cv_c_const=no
10903 fi
10904 rm -f conftest.$ac_objext conftest.$ac_ext
10905 fi
10906 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
10907 echo "${ECHO_T}$ac_cv_c_const" >&6
10908 if test $ac_cv_c_const = no; then
10909
10910 cat >>confdefs.h <<\_ACEOF
10911 #define const
10912 _ACEOF
10913
10914 fi
10915
10916
10917
10918 echo "$as_me:$LINENO: checking how to get filesystem type" >&5
10919 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6
10920 fstype=no
10921 # The order of these tests is important.
10922 cat >conftest.$ac_ext <<_ACEOF
10923 #line $LINENO "configure"
10924 /* confdefs.h.  */
10925 _ACEOF
10926 cat confdefs.h >>conftest.$ac_ext
10927 cat >>conftest.$ac_ext <<_ACEOF
10928 /* end confdefs.h.  */
10929 #include <sys/statvfs.h>
10930 #include <sys/fstyp.h>
10931 _ACEOF
10932 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10933   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10934   ac_status=$?
10935   grep -v '^ *+' conftest.er1 >conftest.err
10936   rm -f conftest.er1
10937   cat conftest.err >&5
10938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10939   (exit $ac_status); } >/dev/null; then
10940   if test -s conftest.err; then
10941     ac_cpp_err=$ac_c_preproc_warn_flag
10942   else
10943     ac_cpp_err=
10944   fi
10945 else
10946   ac_cpp_err=yes
10947 fi
10948 if test -z "$ac_cpp_err"; then
10949   cat >>confdefs.h <<\_ACEOF
10950 #define FSTYPE_STATVFS 1
10951 _ACEOF
10952  fstype=SVR4
10953 else
10954   echo "$as_me: failed program was:" >&5
10955 sed 's/^/| /' conftest.$ac_ext >&5
10956
10957
10958 fi
10959 rm -f conftest.err conftest.$ac_ext
10960 if test $fstype = no; then
10961 cat >conftest.$ac_ext <<_ACEOF
10962 #line $LINENO "configure"
10963 /* confdefs.h.  */
10964 _ACEOF
10965 cat confdefs.h >>conftest.$ac_ext
10966 cat >>conftest.$ac_ext <<_ACEOF
10967 /* end confdefs.h.  */
10968 #include <sys/statfs.h>
10969 #include <sys/fstyp.h>
10970 _ACEOF
10971 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10972   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10973   ac_status=$?
10974   grep -v '^ *+' conftest.er1 >conftest.err
10975   rm -f conftest.er1
10976   cat conftest.err >&5
10977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10978   (exit $ac_status); } >/dev/null; then
10979   if test -s conftest.err; then
10980     ac_cpp_err=$ac_c_preproc_warn_flag
10981   else
10982     ac_cpp_err=
10983   fi
10984 else
10985   ac_cpp_err=yes
10986 fi
10987 if test -z "$ac_cpp_err"; then
10988   cat >>confdefs.h <<\_ACEOF
10989 #define FSTYPE_USG_STATFS 1
10990 _ACEOF
10991  fstype=SVR3
10992 else
10993   echo "$as_me: failed program was:" >&5
10994 sed 's/^/| /' conftest.$ac_ext >&5
10995
10996
10997 fi
10998 rm -f conftest.err conftest.$ac_ext
10999 fi
11000 if test $fstype = no; then
11001 cat >conftest.$ac_ext <<_ACEOF
11002 #line $LINENO "configure"
11003 /* confdefs.h.  */
11004 _ACEOF
11005 cat confdefs.h >>conftest.$ac_ext
11006 cat >>conftest.$ac_ext <<_ACEOF
11007 /* end confdefs.h.  */
11008 #include <sys/statfs.h>
11009 #include <sys/vmount.h>
11010 _ACEOF
11011 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11012   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11013   ac_status=$?
11014   grep -v '^ *+' conftest.er1 >conftest.err
11015   rm -f conftest.er1
11016   cat conftest.err >&5
11017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11018   (exit $ac_status); } >/dev/null; then
11019   if test -s conftest.err; then
11020     ac_cpp_err=$ac_c_preproc_warn_flag
11021   else
11022     ac_cpp_err=
11023   fi
11024 else
11025   ac_cpp_err=yes
11026 fi
11027 if test -z "$ac_cpp_err"; then
11028   cat >>confdefs.h <<\_ACEOF
11029 #define FSTYPE_AIX_STATFS 1
11030 _ACEOF
11031  fstype=AIX
11032 else
11033   echo "$as_me: failed program was:" >&5
11034 sed 's/^/| /' conftest.$ac_ext >&5
11035
11036
11037 fi
11038 rm -f conftest.err conftest.$ac_ext
11039 fi
11040 if test $fstype = no; then
11041 cat >conftest.$ac_ext <<_ACEOF
11042 #line $LINENO "configure"
11043 /* confdefs.h.  */
11044 _ACEOF
11045 cat confdefs.h >>conftest.$ac_ext
11046 cat >>conftest.$ac_ext <<_ACEOF
11047 /* end confdefs.h.  */
11048 #include <mntent.h>
11049 _ACEOF
11050 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11051   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11052   ac_status=$?
11053   grep -v '^ *+' conftest.er1 >conftest.err
11054   rm -f conftest.er1
11055   cat conftest.err >&5
11056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11057   (exit $ac_status); } >/dev/null; then
11058   if test -s conftest.err; then
11059     ac_cpp_err=$ac_c_preproc_warn_flag
11060   else
11061     ac_cpp_err=
11062   fi
11063 else
11064   ac_cpp_err=yes
11065 fi
11066 if test -z "$ac_cpp_err"; then
11067   cat >>confdefs.h <<\_ACEOF
11068 #define FSTYPE_MNTENT 1
11069 _ACEOF
11070  fstype=4.3BSD
11071 else
11072   echo "$as_me: failed program was:" >&5
11073 sed 's/^/| /' conftest.$ac_ext >&5
11074
11075
11076 fi
11077 rm -f conftest.err conftest.$ac_ext
11078 fi
11079 if test $fstype = no; then
11080 cat >conftest.$ac_ext <<_ACEOF
11081 #line $LINENO "configure"
11082 /* confdefs.h.  */
11083 _ACEOF
11084 cat confdefs.h >>conftest.$ac_ext
11085 cat >>conftest.$ac_ext <<_ACEOF
11086 /* end confdefs.h.  */
11087 #include <sys/mount.h>
11088
11089 _ACEOF
11090 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11091   $EGREP "f_type;" >/dev/null 2>&1; then
11092   cat >>confdefs.h <<\_ACEOF
11093 #define FSTYPE_STATFS 1
11094 _ACEOF
11095  fstype=4.4BSD/OSF1
11096 fi
11097 rm -f conftest*
11098
11099 fi
11100 if test $fstype = no; then
11101 cat >conftest.$ac_ext <<_ACEOF
11102 #line $LINENO "configure"
11103 /* confdefs.h.  */
11104 _ACEOF
11105 cat confdefs.h >>conftest.$ac_ext
11106 cat >>conftest.$ac_ext <<_ACEOF
11107 /* end confdefs.h.  */
11108 #include <sys/mount.h>
11109 #include <sys/fs_types.h>
11110 _ACEOF
11111 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11112   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11113   ac_status=$?
11114   grep -v '^ *+' conftest.er1 >conftest.err
11115   rm -f conftest.er1
11116   cat conftest.err >&5
11117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11118   (exit $ac_status); } >/dev/null; then
11119   if test -s conftest.err; then
11120     ac_cpp_err=$ac_c_preproc_warn_flag
11121   else
11122     ac_cpp_err=
11123   fi
11124 else
11125   ac_cpp_err=yes
11126 fi
11127 if test -z "$ac_cpp_err"; then
11128   cat >>confdefs.h <<\_ACEOF
11129 #define FSTYPE_GETMNT 1
11130 _ACEOF
11131  fstype=Ultrix
11132 else
11133   echo "$as_me: failed program was:" >&5
11134 sed 's/^/| /' conftest.$ac_ext >&5
11135
11136
11137 fi
11138 rm -f conftest.err conftest.$ac_ext
11139 fi
11140 echo "$as_me:$LINENO: result: $fstype" >&5
11141 echo "${ECHO_T}$fstype" >&6
11142
11143 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
11144 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
11145 if test "${ac_cv_type_signal+set}" = set; then
11146   echo $ECHO_N "(cached) $ECHO_C" >&6
11147 else
11148   cat >conftest.$ac_ext <<_ACEOF
11149 #line $LINENO "configure"
11150 /* confdefs.h.  */
11151 _ACEOF
11152 cat confdefs.h >>conftest.$ac_ext
11153 cat >>conftest.$ac_ext <<_ACEOF
11154 /* end confdefs.h.  */
11155 #include <sys/types.h>
11156 #include <signal.h>
11157 #ifdef signal
11158 # undef signal
11159 #endif
11160 #ifdef __cplusplus
11161 extern "C" void (*signal (int, void (*)(int)))(int);
11162 #else
11163 void (*signal ()) ();
11164 #endif
11165
11166 int
11167 main ()
11168 {
11169 int i;
11170   ;
11171   return 0;
11172 }
11173 _ACEOF
11174 rm -f conftest.$ac_objext
11175 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11176   (eval $ac_compile) 2>&5
11177   ac_status=$?
11178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11179   (exit $ac_status); } &&
11180          { ac_try='test -s conftest.$ac_objext'
11181   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11182   (eval $ac_try) 2>&5
11183   ac_status=$?
11184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11185   (exit $ac_status); }; }; then
11186   ac_cv_type_signal=void
11187 else
11188   echo "$as_me: failed program was:" >&5
11189 sed 's/^/| /' conftest.$ac_ext >&5
11190
11191 ac_cv_type_signal=int
11192 fi
11193 rm -f conftest.$ac_objext conftest.$ac_ext
11194 fi
11195 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
11196 echo "${ECHO_T}$ac_cv_type_signal" >&6
11197
11198 cat >>confdefs.h <<_ACEOF
11199 #define RETSIGTYPE $ac_cv_type_signal
11200 _ACEOF
11201
11202
11203
11204 echo "$as_me:$LINENO: checking for type of signal functions" >&5
11205 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6
11206 if test "${bash_cv_signal_vintage+set}" = set; then
11207   echo $ECHO_N "(cached) $ECHO_C" >&6
11208 else
11209
11210   cat >conftest.$ac_ext <<_ACEOF
11211 #line $LINENO "configure"
11212 /* confdefs.h.  */
11213 _ACEOF
11214 cat confdefs.h >>conftest.$ac_ext
11215 cat >>conftest.$ac_ext <<_ACEOF
11216 /* end confdefs.h.  */
11217 #include <signal.h>
11218 int
11219 main ()
11220 {
11221
11222     sigset_t ss;
11223     struct sigaction sa;
11224     sigemptyset(&ss); sigsuspend(&ss);
11225     sigaction(SIGINT, &sa, (struct sigaction *) 0);
11226     sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
11227
11228   ;
11229   return 0;
11230 }
11231 _ACEOF
11232 rm -f conftest.$ac_objext conftest$ac_exeext
11233 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11234   (eval $ac_link) 2>&5
11235   ac_status=$?
11236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11237   (exit $ac_status); } &&
11238          { ac_try='test -s conftest$ac_exeext'
11239   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11240   (eval $ac_try) 2>&5
11241   ac_status=$?
11242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11243   (exit $ac_status); }; }; then
11244   bash_cv_signal_vintage=posix
11245 else
11246   echo "$as_me: failed program was:" >&5
11247 sed 's/^/| /' conftest.$ac_ext >&5
11248
11249
11250     cat >conftest.$ac_ext <<_ACEOF
11251 #line $LINENO "configure"
11252 /* confdefs.h.  */
11253 _ACEOF
11254 cat confdefs.h >>conftest.$ac_ext
11255 cat >>conftest.$ac_ext <<_ACEOF
11256 /* end confdefs.h.  */
11257 #include <signal.h>
11258 int
11259 main ()
11260 {
11261
11262         int mask = sigmask(SIGINT);
11263         sigsetmask(mask); sigblock(mask); sigpause(mask);
11264
11265   ;
11266   return 0;
11267 }
11268 _ACEOF
11269 rm -f conftest.$ac_objext conftest$ac_exeext
11270 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11271   (eval $ac_link) 2>&5
11272   ac_status=$?
11273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11274   (exit $ac_status); } &&
11275          { ac_try='test -s conftest$ac_exeext'
11276   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11277   (eval $ac_try) 2>&5
11278   ac_status=$?
11279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11280   (exit $ac_status); }; }; then
11281   bash_cv_signal_vintage=4.2bsd
11282 else
11283   echo "$as_me: failed program was:" >&5
11284 sed 's/^/| /' conftest.$ac_ext >&5
11285
11286
11287       cat >conftest.$ac_ext <<_ACEOF
11288 #line $LINENO "configure"
11289 /* confdefs.h.  */
11290 _ACEOF
11291 cat confdefs.h >>conftest.$ac_ext
11292 cat >>conftest.$ac_ext <<_ACEOF
11293 /* end confdefs.h.  */
11294
11295         #include <signal.h>
11296         RETSIGTYPE foo() { }
11297 int
11298 main ()
11299 {
11300
11301                 int mask = sigmask(SIGINT);
11302                 sigset(SIGINT, foo); sigrelse(SIGINT);
11303                 sighold(SIGINT); sigpause(SIGINT);
11304
11305   ;
11306   return 0;
11307 }
11308 _ACEOF
11309 rm -f conftest.$ac_objext conftest$ac_exeext
11310 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11311   (eval $ac_link) 2>&5
11312   ac_status=$?
11313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11314   (exit $ac_status); } &&
11315          { ac_try='test -s conftest$ac_exeext'
11316   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11317   (eval $ac_try) 2>&5
11318   ac_status=$?
11319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11320   (exit $ac_status); }; }; then
11321   bash_cv_signal_vintage=svr3
11322 else
11323   echo "$as_me: failed program was:" >&5
11324 sed 's/^/| /' conftest.$ac_ext >&5
11325
11326 bash_cv_signal_vintage=v7
11327
11328 fi
11329 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11330
11331 fi
11332 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11333
11334 fi
11335 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11336
11337 fi
11338
11339 echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
11340 echo "${ECHO_T}$bash_cv_signal_vintage" >&6
11341 if test "$bash_cv_signal_vintage" = posix; then
11342 cat >>confdefs.h <<\_ACEOF
11343 #define HAVE_POSIX_SIGNALS 1
11344 _ACEOF
11345
11346 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
11347 cat >>confdefs.h <<\_ACEOF
11348 #define HAVE_BSD_SIGNALS 1
11349 _ACEOF
11350
11351 elif test "$bash_cv_signal_vintage" = svr3; then
11352 cat >>confdefs.h <<\_ACEOF
11353 #define HAVE_USG_SIGHOLD 1
11354 _ACEOF
11355
11356 fi
11357
11358 echo "$as_me:$LINENO: checking for mode_t" >&5
11359 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
11360 if test "${ac_cv_type_mode_t+set}" = set; then
11361   echo $ECHO_N "(cached) $ECHO_C" >&6
11362 else
11363   cat >conftest.$ac_ext <<_ACEOF
11364 #line $LINENO "configure"
11365 /* confdefs.h.  */
11366 _ACEOF
11367 cat confdefs.h >>conftest.$ac_ext
11368 cat >>conftest.$ac_ext <<_ACEOF
11369 /* end confdefs.h.  */
11370 $ac_includes_default
11371 int
11372 main ()
11373 {
11374 if ((mode_t *) 0)
11375   return 0;
11376 if (sizeof (mode_t))
11377   return 0;
11378   ;
11379   return 0;
11380 }
11381 _ACEOF
11382 rm -f conftest.$ac_objext
11383 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11384   (eval $ac_compile) 2>&5
11385   ac_status=$?
11386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11387   (exit $ac_status); } &&
11388          { ac_try='test -s conftest.$ac_objext'
11389   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11390   (eval $ac_try) 2>&5
11391   ac_status=$?
11392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11393   (exit $ac_status); }; }; then
11394   ac_cv_type_mode_t=yes
11395 else
11396   echo "$as_me: failed program was:" >&5
11397 sed 's/^/| /' conftest.$ac_ext >&5
11398
11399 ac_cv_type_mode_t=no
11400 fi
11401 rm -f conftest.$ac_objext conftest.$ac_ext
11402 fi
11403 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
11404 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
11405 if test $ac_cv_type_mode_t = yes; then
11406   :
11407 else
11408
11409 cat >>confdefs.h <<_ACEOF
11410 #define mode_t int
11411 _ACEOF
11412
11413 fi
11414
11415 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
11416 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
11417 if test "${ac_cv_type_uid_t+set}" = set; then
11418   echo $ECHO_N "(cached) $ECHO_C" >&6
11419 else
11420   cat >conftest.$ac_ext <<_ACEOF
11421 #line $LINENO "configure"
11422 /* confdefs.h.  */
11423 _ACEOF
11424 cat confdefs.h >>conftest.$ac_ext
11425 cat >>conftest.$ac_ext <<_ACEOF
11426 /* end confdefs.h.  */
11427 #include <sys/types.h>
11428
11429 _ACEOF
11430 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11431   $EGREP "uid_t" >/dev/null 2>&1; then
11432   ac_cv_type_uid_t=yes
11433 else
11434   ac_cv_type_uid_t=no
11435 fi
11436 rm -f conftest*
11437
11438 fi
11439 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
11440 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
11441 if test $ac_cv_type_uid_t = no; then
11442
11443 cat >>confdefs.h <<\_ACEOF
11444 #define uid_t int
11445 _ACEOF
11446
11447
11448 cat >>confdefs.h <<\_ACEOF
11449 #define gid_t int
11450 _ACEOF
11451
11452 fi
11453
11454 echo "$as_me:$LINENO: checking for size_t" >&5
11455 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
11456 if test "${ac_cv_type_size_t+set}" = set; then
11457   echo $ECHO_N "(cached) $ECHO_C" >&6
11458 else
11459   cat >conftest.$ac_ext <<_ACEOF
11460 #line $LINENO "configure"
11461 /* confdefs.h.  */
11462 _ACEOF
11463 cat confdefs.h >>conftest.$ac_ext
11464 cat >>conftest.$ac_ext <<_ACEOF
11465 /* end confdefs.h.  */
11466 $ac_includes_default
11467 int
11468 main ()
11469 {
11470 if ((size_t *) 0)
11471   return 0;
11472 if (sizeof (size_t))
11473   return 0;
11474   ;
11475   return 0;
11476 }
11477 _ACEOF
11478 rm -f conftest.$ac_objext
11479 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11480   (eval $ac_compile) 2>&5
11481   ac_status=$?
11482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11483   (exit $ac_status); } &&
11484          { ac_try='test -s conftest.$ac_objext'
11485   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11486   (eval $ac_try) 2>&5
11487   ac_status=$?
11488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11489   (exit $ac_status); }; }; then
11490   ac_cv_type_size_t=yes
11491 else
11492   echo "$as_me: failed program was:" >&5
11493 sed 's/^/| /' conftest.$ac_ext >&5
11494
11495 ac_cv_type_size_t=no
11496 fi
11497 rm -f conftest.$ac_objext conftest.$ac_ext
11498 fi
11499 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
11500 echo "${ECHO_T}$ac_cv_type_size_t" >&6
11501 if test $ac_cv_type_size_t = yes; then
11502   :
11503 else
11504
11505 cat >>confdefs.h <<_ACEOF
11506 #define size_t unsigned
11507 _ACEOF
11508
11509 fi
11510
11511 echo "$as_me:$LINENO: checking for pid_t" >&5
11512 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
11513 if test "${ac_cv_type_pid_t+set}" = set; then
11514   echo $ECHO_N "(cached) $ECHO_C" >&6
11515 else
11516   cat >conftest.$ac_ext <<_ACEOF
11517 #line $LINENO "configure"
11518 /* confdefs.h.  */
11519 _ACEOF
11520 cat confdefs.h >>conftest.$ac_ext
11521 cat >>conftest.$ac_ext <<_ACEOF
11522 /* end confdefs.h.  */
11523 $ac_includes_default
11524 int
11525 main ()
11526 {
11527 if ((pid_t *) 0)
11528   return 0;
11529 if (sizeof (pid_t))
11530   return 0;
11531   ;
11532   return 0;
11533 }
11534 _ACEOF
11535 rm -f conftest.$ac_objext
11536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11537   (eval $ac_compile) 2>&5
11538   ac_status=$?
11539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11540   (exit $ac_status); } &&
11541          { ac_try='test -s conftest.$ac_objext'
11542   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11543   (eval $ac_try) 2>&5
11544   ac_status=$?
11545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11546   (exit $ac_status); }; }; then
11547   ac_cv_type_pid_t=yes
11548 else
11549   echo "$as_me: failed program was:" >&5
11550 sed 's/^/| /' conftest.$ac_ext >&5
11551
11552 ac_cv_type_pid_t=no
11553 fi
11554 rm -f conftest.$ac_objext conftest.$ac_ext
11555 fi
11556 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
11557 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
11558 if test $ac_cv_type_pid_t = yes; then
11559   :
11560 else
11561
11562 cat >>confdefs.h <<_ACEOF
11563 #define pid_t int
11564 _ACEOF
11565
11566 fi
11567
11568 echo "$as_me:$LINENO: checking for off_t" >&5
11569 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
11570 if test "${ac_cv_type_off_t+set}" = set; then
11571   echo $ECHO_N "(cached) $ECHO_C" >&6
11572 else
11573   cat >conftest.$ac_ext <<_ACEOF
11574 #line $LINENO "configure"
11575 /* confdefs.h.  */
11576 _ACEOF
11577 cat confdefs.h >>conftest.$ac_ext
11578 cat >>conftest.$ac_ext <<_ACEOF
11579 /* end confdefs.h.  */
11580 $ac_includes_default
11581 int
11582 main ()
11583 {
11584 if ((off_t *) 0)
11585   return 0;
11586 if (sizeof (off_t))
11587   return 0;
11588   ;
11589   return 0;
11590 }
11591 _ACEOF
11592 rm -f conftest.$ac_objext
11593 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11594   (eval $ac_compile) 2>&5
11595   ac_status=$?
11596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11597   (exit $ac_status); } &&
11598          { ac_try='test -s conftest.$ac_objext'
11599   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11600   (eval $ac_try) 2>&5
11601   ac_status=$?
11602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11603   (exit $ac_status); }; }; then
11604   ac_cv_type_off_t=yes
11605 else
11606   echo "$as_me: failed program was:" >&5
11607 sed 's/^/| /' conftest.$ac_ext >&5
11608
11609 ac_cv_type_off_t=no
11610 fi
11611 rm -f conftest.$ac_objext conftest.$ac_ext
11612 fi
11613 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
11614 echo "${ECHO_T}$ac_cv_type_off_t" >&6
11615 if test $ac_cv_type_off_t = yes; then
11616   :
11617 else
11618
11619 cat >>confdefs.h <<_ACEOF
11620 #define off_t long
11621 _ACEOF
11622
11623 fi
11624
11625 echo "$as_me:$LINENO: checking for ino_t" >&5
11626 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
11627 if test "${ac_cv_type_ino_t+set}" = set; then
11628   echo $ECHO_N "(cached) $ECHO_C" >&6
11629 else
11630   cat >conftest.$ac_ext <<_ACEOF
11631 #line $LINENO "configure"
11632 /* confdefs.h.  */
11633 _ACEOF
11634 cat confdefs.h >>conftest.$ac_ext
11635 cat >>conftest.$ac_ext <<_ACEOF
11636 /* end confdefs.h.  */
11637 $ac_includes_default
11638 int
11639 main ()
11640 {
11641 if ((ino_t *) 0)
11642   return 0;
11643 if (sizeof (ino_t))
11644   return 0;
11645   ;
11646   return 0;
11647 }
11648 _ACEOF
11649 rm -f conftest.$ac_objext
11650 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11651   (eval $ac_compile) 2>&5
11652   ac_status=$?
11653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11654   (exit $ac_status); } &&
11655          { ac_try='test -s conftest.$ac_objext'
11656   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11657   (eval $ac_try) 2>&5
11658   ac_status=$?
11659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11660   (exit $ac_status); }; }; then
11661   ac_cv_type_ino_t=yes
11662 else
11663   echo "$as_me: failed program was:" >&5
11664 sed 's/^/| /' conftest.$ac_ext >&5
11665
11666 ac_cv_type_ino_t=no
11667 fi
11668 rm -f conftest.$ac_objext conftest.$ac_ext
11669 fi
11670 echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
11671 echo "${ECHO_T}$ac_cv_type_ino_t" >&6
11672 if test $ac_cv_type_ino_t = yes; then
11673   :
11674 else
11675
11676 cat >>confdefs.h <<_ACEOF
11677 #define ino_t unsigned long
11678 _ACEOF
11679
11680 fi
11681
11682 echo "$as_me:$LINENO: checking for dev_t" >&5
11683 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6
11684 if test "${ac_cv_type_dev_t+set}" = set; then
11685   echo $ECHO_N "(cached) $ECHO_C" >&6
11686 else
11687   cat >conftest.$ac_ext <<_ACEOF
11688 #line $LINENO "configure"
11689 /* confdefs.h.  */
11690 _ACEOF
11691 cat confdefs.h >>conftest.$ac_ext
11692 cat >>conftest.$ac_ext <<_ACEOF
11693 /* end confdefs.h.  */
11694 $ac_includes_default
11695 int
11696 main ()
11697 {
11698 if ((dev_t *) 0)
11699   return 0;
11700 if (sizeof (dev_t))
11701   return 0;
11702   ;
11703   return 0;
11704 }
11705 _ACEOF
11706 rm -f conftest.$ac_objext
11707 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11708   (eval $ac_compile) 2>&5
11709   ac_status=$?
11710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11711   (exit $ac_status); } &&
11712          { ac_try='test -s conftest.$ac_objext'
11713   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11714   (eval $ac_try) 2>&5
11715   ac_status=$?
11716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11717   (exit $ac_status); }; }; then
11718   ac_cv_type_dev_t=yes
11719 else
11720   echo "$as_me: failed program was:" >&5
11721 sed 's/^/| /' conftest.$ac_ext >&5
11722
11723 ac_cv_type_dev_t=no
11724 fi
11725 rm -f conftest.$ac_objext conftest.$ac_ext
11726 fi
11727 echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
11728 echo "${ECHO_T}$ac_cv_type_dev_t" >&6
11729 if test $ac_cv_type_dev_t = yes; then
11730   :
11731 else
11732
11733 cat >>confdefs.h <<_ACEOF
11734 #define dev_t unsigned long
11735 _ACEOF
11736
11737 fi
11738
11739 echo "$as_me:$LINENO: checking for daddr_t" >&5
11740 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6
11741 if test "${ac_cv_type_daddr_t+set}" = set; then
11742   echo $ECHO_N "(cached) $ECHO_C" >&6
11743 else
11744   cat >conftest.$ac_ext <<_ACEOF
11745 #line $LINENO "configure"
11746 /* confdefs.h.  */
11747 _ACEOF
11748 cat confdefs.h >>conftest.$ac_ext
11749 cat >>conftest.$ac_ext <<_ACEOF
11750 /* end confdefs.h.  */
11751 $ac_includes_default
11752 int
11753 main ()
11754 {
11755 if ((daddr_t *) 0)
11756   return 0;
11757 if (sizeof (daddr_t))
11758   return 0;
11759   ;
11760   return 0;
11761 }
11762 _ACEOF
11763 rm -f conftest.$ac_objext
11764 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11765   (eval $ac_compile) 2>&5
11766   ac_status=$?
11767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11768   (exit $ac_status); } &&
11769          { ac_try='test -s conftest.$ac_objext'
11770   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11771   (eval $ac_try) 2>&5
11772   ac_status=$?
11773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11774   (exit $ac_status); }; }; then
11775   ac_cv_type_daddr_t=yes
11776 else
11777   echo "$as_me: failed program was:" >&5
11778 sed 's/^/| /' conftest.$ac_ext >&5
11779
11780 ac_cv_type_daddr_t=no
11781 fi
11782 rm -f conftest.$ac_objext conftest.$ac_ext
11783 fi
11784 echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
11785 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6
11786 if test $ac_cv_type_daddr_t = yes; then
11787   :
11788 else
11789
11790 cat >>confdefs.h <<_ACEOF
11791 #define daddr_t long
11792 _ACEOF
11793
11794 fi
11795
11796 echo "$as_me:$LINENO: checking for major_t" >&5
11797 echo $ECHO_N "checking for major_t... $ECHO_C" >&6
11798 if test "${ac_cv_type_major_t+set}" = set; then
11799   echo $ECHO_N "(cached) $ECHO_C" >&6
11800 else
11801   cat >conftest.$ac_ext <<_ACEOF
11802 #line $LINENO "configure"
11803 /* confdefs.h.  */
11804 _ACEOF
11805 cat confdefs.h >>conftest.$ac_ext
11806 cat >>conftest.$ac_ext <<_ACEOF
11807 /* end confdefs.h.  */
11808 $ac_includes_default
11809 int
11810 main ()
11811 {
11812 if ((major_t *) 0)
11813   return 0;
11814 if (sizeof (major_t))
11815   return 0;
11816   ;
11817   return 0;
11818 }
11819 _ACEOF
11820 rm -f conftest.$ac_objext
11821 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11822   (eval $ac_compile) 2>&5
11823   ac_status=$?
11824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11825   (exit $ac_status); } &&
11826          { ac_try='test -s conftest.$ac_objext'
11827   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11828   (eval $ac_try) 2>&5
11829   ac_status=$?
11830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11831   (exit $ac_status); }; }; then
11832   ac_cv_type_major_t=yes
11833 else
11834   echo "$as_me: failed program was:" >&5
11835 sed 's/^/| /' conftest.$ac_ext >&5
11836
11837 ac_cv_type_major_t=no
11838 fi
11839 rm -f conftest.$ac_objext conftest.$ac_ext
11840 fi
11841 echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
11842 echo "${ECHO_T}$ac_cv_type_major_t" >&6
11843 if test $ac_cv_type_major_t = yes; then
11844   :
11845 else
11846
11847 cat >>confdefs.h <<_ACEOF
11848 #define major_t int
11849 _ACEOF
11850
11851 fi
11852
11853 echo "$as_me:$LINENO: checking for minor_t" >&5
11854 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6
11855 if test "${ac_cv_type_minor_t+set}" = set; then
11856   echo $ECHO_N "(cached) $ECHO_C" >&6
11857 else
11858   cat >conftest.$ac_ext <<_ACEOF
11859 #line $LINENO "configure"
11860 /* confdefs.h.  */
11861 _ACEOF
11862 cat confdefs.h >>conftest.$ac_ext
11863 cat >>conftest.$ac_ext <<_ACEOF
11864 /* end confdefs.h.  */
11865 $ac_includes_default
11866 int
11867 main ()
11868 {
11869 if ((minor_t *) 0)
11870   return 0;
11871 if (sizeof (minor_t))
11872   return 0;
11873   ;
11874   return 0;
11875 }
11876 _ACEOF
11877 rm -f conftest.$ac_objext
11878 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11879   (eval $ac_compile) 2>&5
11880   ac_status=$?
11881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11882   (exit $ac_status); } &&
11883          { ac_try='test -s conftest.$ac_objext'
11884   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11885   (eval $ac_try) 2>&5
11886   ac_status=$?
11887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11888   (exit $ac_status); }; }; then
11889   ac_cv_type_minor_t=yes
11890 else
11891   echo "$as_me: failed program was:" >&5
11892 sed 's/^/| /' conftest.$ac_ext >&5
11893
11894 ac_cv_type_minor_t=no
11895 fi
11896 rm -f conftest.$ac_objext conftest.$ac_ext
11897 fi
11898 echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
11899 echo "${ECHO_T}$ac_cv_type_minor_t" >&6
11900 if test $ac_cv_type_minor_t = yes; then
11901   :
11902 else
11903
11904 cat >>confdefs.h <<_ACEOF
11905 #define minor_t int
11906 _ACEOF
11907
11908 fi
11909
11910 echo "$as_me:$LINENO: checking for ssize_t" >&5
11911 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
11912 if test "${ac_cv_type_ssize_t+set}" = set; then
11913   echo $ECHO_N "(cached) $ECHO_C" >&6
11914 else
11915   cat >conftest.$ac_ext <<_ACEOF
11916 #line $LINENO "configure"
11917 /* confdefs.h.  */
11918 _ACEOF
11919 cat confdefs.h >>conftest.$ac_ext
11920 cat >>conftest.$ac_ext <<_ACEOF
11921 /* end confdefs.h.  */
11922 $ac_includes_default
11923 int
11924 main ()
11925 {
11926 if ((ssize_t *) 0)
11927   return 0;
11928 if (sizeof (ssize_t))
11929   return 0;
11930   ;
11931   return 0;
11932 }
11933 _ACEOF
11934 rm -f conftest.$ac_objext
11935 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11936   (eval $ac_compile) 2>&5
11937   ac_status=$?
11938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11939   (exit $ac_status); } &&
11940          { ac_try='test -s conftest.$ac_objext'
11941   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11942   (eval $ac_try) 2>&5
11943   ac_status=$?
11944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11945   (exit $ac_status); }; }; then
11946   ac_cv_type_ssize_t=yes
11947 else
11948   echo "$as_me: failed program was:" >&5
11949 sed 's/^/| /' conftest.$ac_ext >&5
11950
11951 ac_cv_type_ssize_t=no
11952 fi
11953 rm -f conftest.$ac_objext conftest.$ac_ext
11954 fi
11955 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
11956 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
11957 if test $ac_cv_type_ssize_t = yes; then
11958   :
11959 else
11960
11961 cat >>confdefs.h <<_ACEOF
11962 #define ssize_t int
11963 _ACEOF
11964
11965 fi
11966
11967 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
11968 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
11969 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
11970   echo $ECHO_N "(cached) $ECHO_C" >&6
11971 else
11972   cat >conftest.$ac_ext <<_ACEOF
11973 #line $LINENO "configure"
11974 /* confdefs.h.  */
11975 _ACEOF
11976 cat confdefs.h >>conftest.$ac_ext
11977 cat >>conftest.$ac_ext <<_ACEOF
11978 /* end confdefs.h.  */
11979 $ac_includes_default
11980 int
11981 main ()
11982 {
11983 static struct stat ac_aggr;
11984 if (ac_aggr.st_blocks)
11985 return 0;
11986   ;
11987   return 0;
11988 }
11989 _ACEOF
11990 rm -f conftest.$ac_objext
11991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11992   (eval $ac_compile) 2>&5
11993   ac_status=$?
11994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11995   (exit $ac_status); } &&
11996          { ac_try='test -s conftest.$ac_objext'
11997   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11998   (eval $ac_try) 2>&5
11999   ac_status=$?
12000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12001   (exit $ac_status); }; }; then
12002   ac_cv_member_struct_stat_st_blocks=yes
12003 else
12004   echo "$as_me: failed program was:" >&5
12005 sed 's/^/| /' conftest.$ac_ext >&5
12006
12007 cat >conftest.$ac_ext <<_ACEOF
12008 #line $LINENO "configure"
12009 /* confdefs.h.  */
12010 _ACEOF
12011 cat confdefs.h >>conftest.$ac_ext
12012 cat >>conftest.$ac_ext <<_ACEOF
12013 /* end confdefs.h.  */
12014 $ac_includes_default
12015 int
12016 main ()
12017 {
12018 static struct stat ac_aggr;
12019 if (sizeof ac_aggr.st_blocks)
12020 return 0;
12021   ;
12022   return 0;
12023 }
12024 _ACEOF
12025 rm -f conftest.$ac_objext
12026 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12027   (eval $ac_compile) 2>&5
12028   ac_status=$?
12029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12030   (exit $ac_status); } &&
12031          { ac_try='test -s conftest.$ac_objext'
12032   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12033   (eval $ac_try) 2>&5
12034   ac_status=$?
12035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12036   (exit $ac_status); }; }; then
12037   ac_cv_member_struct_stat_st_blocks=yes
12038 else
12039   echo "$as_me: failed program was:" >&5
12040 sed 's/^/| /' conftest.$ac_ext >&5
12041
12042 ac_cv_member_struct_stat_st_blocks=no
12043 fi
12044 rm -f conftest.$ac_objext conftest.$ac_ext
12045 fi
12046 rm -f conftest.$ac_objext conftest.$ac_ext
12047 fi
12048 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
12049 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
12050 if test $ac_cv_member_struct_stat_st_blocks = yes; then
12051
12052 cat >>confdefs.h <<_ACEOF
12053 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
12054 _ACEOF
12055
12056
12057 cat >>confdefs.h <<\_ACEOF
12058 #define HAVE_ST_BLOCKS 1
12059 _ACEOF
12060
12061 else
12062   LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
12063 fi
12064
12065
12066
12067 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
12068 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
12069 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
12070   echo $ECHO_N "(cached) $ECHO_C" >&6
12071 else
12072   cat >conftest.$ac_ext <<_ACEOF
12073 #line $LINENO "configure"
12074 /* confdefs.h.  */
12075 _ACEOF
12076 cat confdefs.h >>conftest.$ac_ext
12077 cat >>conftest.$ac_ext <<_ACEOF
12078 /* end confdefs.h.  */
12079 $ac_includes_default
12080 int
12081 main ()
12082 {
12083 static struct stat ac_aggr;
12084 if (ac_aggr.st_rdev)
12085 return 0;
12086   ;
12087   return 0;
12088 }
12089 _ACEOF
12090 rm -f conftest.$ac_objext
12091 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12092   (eval $ac_compile) 2>&5
12093   ac_status=$?
12094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12095   (exit $ac_status); } &&
12096          { ac_try='test -s conftest.$ac_objext'
12097   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12098   (eval $ac_try) 2>&5
12099   ac_status=$?
12100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12101   (exit $ac_status); }; }; then
12102   ac_cv_member_struct_stat_st_rdev=yes
12103 else
12104   echo "$as_me: failed program was:" >&5
12105 sed 's/^/| /' conftest.$ac_ext >&5
12106
12107 cat >conftest.$ac_ext <<_ACEOF
12108 #line $LINENO "configure"
12109 /* confdefs.h.  */
12110 _ACEOF
12111 cat confdefs.h >>conftest.$ac_ext
12112 cat >>conftest.$ac_ext <<_ACEOF
12113 /* end confdefs.h.  */
12114 $ac_includes_default
12115 int
12116 main ()
12117 {
12118 static struct stat ac_aggr;
12119 if (sizeof ac_aggr.st_rdev)
12120 return 0;
12121   ;
12122   return 0;
12123 }
12124 _ACEOF
12125 rm -f conftest.$ac_objext
12126 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12127   (eval $ac_compile) 2>&5
12128   ac_status=$?
12129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12130   (exit $ac_status); } &&
12131          { ac_try='test -s conftest.$ac_objext'
12132   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12133   (eval $ac_try) 2>&5
12134   ac_status=$?
12135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12136   (exit $ac_status); }; }; then
12137   ac_cv_member_struct_stat_st_rdev=yes
12138 else
12139   echo "$as_me: failed program was:" >&5
12140 sed 's/^/| /' conftest.$ac_ext >&5
12141
12142 ac_cv_member_struct_stat_st_rdev=no
12143 fi
12144 rm -f conftest.$ac_objext conftest.$ac_ext
12145 fi
12146 rm -f conftest.$ac_objext conftest.$ac_ext
12147 fi
12148 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
12149 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
12150 if test $ac_cv_member_struct_stat_st_rdev = yes; then
12151
12152 cat >>confdefs.h <<_ACEOF
12153 #define HAVE_STRUCT_STAT_ST_RDEV 1
12154 _ACEOF
12155
12156
12157 cat >>confdefs.h <<\_ACEOF
12158 #define HAVE_ST_RDEV 1
12159 _ACEOF
12160
12161 fi
12162
12163
12164 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
12165 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
12166 if test "${ac_cv_struct_tm+set}" = set; then
12167   echo $ECHO_N "(cached) $ECHO_C" >&6
12168 else
12169   cat >conftest.$ac_ext <<_ACEOF
12170 #line $LINENO "configure"
12171 /* confdefs.h.  */
12172 _ACEOF
12173 cat confdefs.h >>conftest.$ac_ext
12174 cat >>conftest.$ac_ext <<_ACEOF
12175 /* end confdefs.h.  */
12176 #include <sys/types.h>
12177 #include <time.h>
12178
12179 int
12180 main ()
12181 {
12182 struct tm *tp; tp->tm_sec;
12183   ;
12184   return 0;
12185 }
12186 _ACEOF
12187 rm -f conftest.$ac_objext
12188 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12189   (eval $ac_compile) 2>&5
12190   ac_status=$?
12191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12192   (exit $ac_status); } &&
12193          { ac_try='test -s conftest.$ac_objext'
12194   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12195   (eval $ac_try) 2>&5
12196   ac_status=$?
12197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12198   (exit $ac_status); }; }; then
12199   ac_cv_struct_tm=time.h
12200 else
12201   echo "$as_me: failed program was:" >&5
12202 sed 's/^/| /' conftest.$ac_ext >&5
12203
12204 ac_cv_struct_tm=sys/time.h
12205 fi
12206 rm -f conftest.$ac_objext conftest.$ac_ext
12207 fi
12208 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
12209 echo "${ECHO_T}$ac_cv_struct_tm" >&6
12210 if test $ac_cv_struct_tm = sys/time.h; then
12211
12212 cat >>confdefs.h <<\_ACEOF
12213 #define TM_IN_SYS_TIME 1
12214 _ACEOF
12215
12216 fi
12217
12218 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
12219 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
12220 if test "${ac_cv_c_const+set}" = set; then
12221   echo $ECHO_N "(cached) $ECHO_C" >&6
12222 else
12223   cat >conftest.$ac_ext <<_ACEOF
12224 #line $LINENO "configure"
12225 /* confdefs.h.  */
12226 _ACEOF
12227 cat confdefs.h >>conftest.$ac_ext
12228 cat >>conftest.$ac_ext <<_ACEOF
12229 /* end confdefs.h.  */
12230
12231 int
12232 main ()
12233 {
12234 /* FIXME: Include the comments suggested by Paul. */
12235 #ifndef __cplusplus
12236   /* Ultrix mips cc rejects this.  */
12237   typedef int charset[2];
12238   const charset x;
12239   /* SunOS 4.1.1 cc rejects this.  */
12240   char const *const *ccp;
12241   char **p;
12242   /* NEC SVR4.0.2 mips cc rejects this.  */
12243   struct point {int x, y;};
12244   static struct point const zero = {0,0};
12245   /* AIX XL C 1.02.0.0 rejects this.
12246      It does not let you subtract one const X* pointer from another in
12247      an arm of an if-expression whose if-part is not a constant
12248      expression */
12249   const char *g = "string";
12250   ccp = &g + (g ? g-g : 0);
12251   /* HPUX 7.0 cc rejects these. */
12252   ++ccp;
12253   p = (char**) ccp;
12254   ccp = (char const *const *) p;
12255   { /* SCO 3.2v4 cc rejects this.  */
12256     char *t;
12257     char const *s = 0 ? (char *) 0 : (char const *) 0;
12258
12259     *t++ = 0;
12260   }
12261   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
12262     int x[] = {25, 17};
12263     const int *foo = &x[0];
12264     ++foo;
12265   }
12266   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12267     typedef const int *iptr;
12268     iptr p = 0;
12269     ++p;
12270   }
12271   { /* AIX XL C 1.02.0.0 rejects this saying
12272        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12273     struct s { int j; const int *ap[3]; };
12274     struct s *b; b->j = 5;
12275   }
12276   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12277     const int foo = 10;
12278   }
12279 #endif
12280
12281   ;
12282   return 0;
12283 }
12284 _ACEOF
12285 rm -f conftest.$ac_objext
12286 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12287   (eval $ac_compile) 2>&5
12288   ac_status=$?
12289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12290   (exit $ac_status); } &&
12291          { ac_try='test -s conftest.$ac_objext'
12292   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12293   (eval $ac_try) 2>&5
12294   ac_status=$?
12295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12296   (exit $ac_status); }; }; then
12297   ac_cv_c_const=yes
12298 else
12299   echo "$as_me: failed program was:" >&5
12300 sed 's/^/| /' conftest.$ac_ext >&5
12301
12302 ac_cv_c_const=no
12303 fi
12304 rm -f conftest.$ac_objext conftest.$ac_ext
12305 fi
12306 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
12307 echo "${ECHO_T}$ac_cv_c_const" >&6
12308 if test $ac_cv_c_const = no; then
12309
12310 cat >>confdefs.h <<\_ACEOF
12311 #define const
12312 _ACEOF
12313
12314 fi
12315
12316
12317
12318 echo "$as_me:$LINENO: checking for char" >&5
12319 echo $ECHO_N "checking for char... $ECHO_C" >&6
12320 if test "${ac_cv_type_char+set}" = set; then
12321   echo $ECHO_N "(cached) $ECHO_C" >&6
12322 else
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 if ((char *) 0)
12335   return 0;
12336 if (sizeof (char))
12337   return 0;
12338   ;
12339   return 0;
12340 }
12341 _ACEOF
12342 rm -f conftest.$ac_objext
12343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12344   (eval $ac_compile) 2>&5
12345   ac_status=$?
12346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12347   (exit $ac_status); } &&
12348          { ac_try='test -s conftest.$ac_objext'
12349   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12350   (eval $ac_try) 2>&5
12351   ac_status=$?
12352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12353   (exit $ac_status); }; }; then
12354   ac_cv_type_char=yes
12355 else
12356   echo "$as_me: failed program was:" >&5
12357 sed 's/^/| /' conftest.$ac_ext >&5
12358
12359 ac_cv_type_char=no
12360 fi
12361 rm -f conftest.$ac_objext conftest.$ac_ext
12362 fi
12363 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
12364 echo "${ECHO_T}$ac_cv_type_char" >&6
12365
12366 echo "$as_me:$LINENO: checking size of char" >&5
12367 echo $ECHO_N "checking size of char... $ECHO_C" >&6
12368 if test "${ac_cv_sizeof_char+set}" = set; then
12369   echo $ECHO_N "(cached) $ECHO_C" >&6
12370 else
12371   if test "$ac_cv_type_char" = yes; then
12372   # The cast to unsigned long works around a bug in the HP C Compiler
12373   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12374   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12375   # This bug is HP SR number 8606223364.
12376   if test "$cross_compiling" = yes; then
12377   # Depending upon the size, compute the lo and hi bounds.
12378 cat >conftest.$ac_ext <<_ACEOF
12379 #line $LINENO "configure"
12380 /* confdefs.h.  */
12381 _ACEOF
12382 cat confdefs.h >>conftest.$ac_ext
12383 cat >>conftest.$ac_ext <<_ACEOF
12384 /* end confdefs.h.  */
12385 $ac_includes_default
12386 int
12387 main ()
12388 {
12389 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
12390 test_array [0] = 0
12391
12392   ;
12393   return 0;
12394 }
12395 _ACEOF
12396 rm -f conftest.$ac_objext
12397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12398   (eval $ac_compile) 2>&5
12399   ac_status=$?
12400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12401   (exit $ac_status); } &&
12402          { ac_try='test -s conftest.$ac_objext'
12403   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12404   (eval $ac_try) 2>&5
12405   ac_status=$?
12406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12407   (exit $ac_status); }; }; then
12408   ac_lo=0 ac_mid=0
12409   while :; do
12410     cat >conftest.$ac_ext <<_ACEOF
12411 #line $LINENO "configure"
12412 /* confdefs.h.  */
12413 _ACEOF
12414 cat confdefs.h >>conftest.$ac_ext
12415 cat >>conftest.$ac_ext <<_ACEOF
12416 /* end confdefs.h.  */
12417 $ac_includes_default
12418 int
12419 main ()
12420 {
12421 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
12422 test_array [0] = 0
12423
12424   ;
12425   return 0;
12426 }
12427 _ACEOF
12428 rm -f conftest.$ac_objext
12429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12430   (eval $ac_compile) 2>&5
12431   ac_status=$?
12432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12433   (exit $ac_status); } &&
12434          { ac_try='test -s conftest.$ac_objext'
12435   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12436   (eval $ac_try) 2>&5
12437   ac_status=$?
12438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12439   (exit $ac_status); }; }; then
12440   ac_hi=$ac_mid; break
12441 else
12442   echo "$as_me: failed program was:" >&5
12443 sed 's/^/| /' conftest.$ac_ext >&5
12444
12445 ac_lo=`expr $ac_mid + 1`
12446                     if test $ac_lo -le $ac_mid; then
12447                       ac_lo= ac_hi=
12448                       break
12449                     fi
12450                     ac_mid=`expr 2 '*' $ac_mid + 1`
12451 fi
12452 rm -f conftest.$ac_objext conftest.$ac_ext
12453   done
12454 else
12455   echo "$as_me: failed program was:" >&5
12456 sed 's/^/| /' conftest.$ac_ext >&5
12457
12458 cat >conftest.$ac_ext <<_ACEOF
12459 #line $LINENO "configure"
12460 /* confdefs.h.  */
12461 _ACEOF
12462 cat confdefs.h >>conftest.$ac_ext
12463 cat >>conftest.$ac_ext <<_ACEOF
12464 /* end confdefs.h.  */
12465 $ac_includes_default
12466 int
12467 main ()
12468 {
12469 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
12470 test_array [0] = 0
12471
12472   ;
12473   return 0;
12474 }
12475 _ACEOF
12476 rm -f conftest.$ac_objext
12477 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12478   (eval $ac_compile) 2>&5
12479   ac_status=$?
12480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12481   (exit $ac_status); } &&
12482          { ac_try='test -s conftest.$ac_objext'
12483   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12484   (eval $ac_try) 2>&5
12485   ac_status=$?
12486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12487   (exit $ac_status); }; }; then
12488   ac_hi=-1 ac_mid=-1
12489   while :; do
12490     cat >conftest.$ac_ext <<_ACEOF
12491 #line $LINENO "configure"
12492 /* confdefs.h.  */
12493 _ACEOF
12494 cat confdefs.h >>conftest.$ac_ext
12495 cat >>conftest.$ac_ext <<_ACEOF
12496 /* end confdefs.h.  */
12497 $ac_includes_default
12498 int
12499 main ()
12500 {
12501 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
12502 test_array [0] = 0
12503
12504   ;
12505   return 0;
12506 }
12507 _ACEOF
12508 rm -f conftest.$ac_objext
12509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12510   (eval $ac_compile) 2>&5
12511   ac_status=$?
12512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12513   (exit $ac_status); } &&
12514          { ac_try='test -s conftest.$ac_objext'
12515   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12516   (eval $ac_try) 2>&5
12517   ac_status=$?
12518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12519   (exit $ac_status); }; }; then
12520   ac_lo=$ac_mid; break
12521 else
12522   echo "$as_me: failed program was:" >&5
12523 sed 's/^/| /' conftest.$ac_ext >&5
12524
12525 ac_hi=`expr '(' $ac_mid ')' - 1`
12526                        if test $ac_mid -le $ac_hi; then
12527                          ac_lo= ac_hi=
12528                          break
12529                        fi
12530                        ac_mid=`expr 2 '*' $ac_mid`
12531 fi
12532 rm -f conftest.$ac_objext conftest.$ac_ext
12533   done
12534 else
12535   echo "$as_me: failed program was:" >&5
12536 sed 's/^/| /' conftest.$ac_ext >&5
12537
12538 ac_lo= ac_hi=
12539 fi
12540 rm -f conftest.$ac_objext conftest.$ac_ext
12541 fi
12542 rm -f conftest.$ac_objext conftest.$ac_ext
12543 # Binary search between lo and hi bounds.
12544 while test "x$ac_lo" != "x$ac_hi"; do
12545   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
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 int
12555 main ()
12556 {
12557 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
12558 test_array [0] = 0
12559
12560   ;
12561   return 0;
12562 }
12563 _ACEOF
12564 rm -f conftest.$ac_objext
12565 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12566   (eval $ac_compile) 2>&5
12567   ac_status=$?
12568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12569   (exit $ac_status); } &&
12570          { ac_try='test -s conftest.$ac_objext'
12571   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12572   (eval $ac_try) 2>&5
12573   ac_status=$?
12574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12575   (exit $ac_status); }; }; then
12576   ac_hi=$ac_mid
12577 else
12578   echo "$as_me: failed program was:" >&5
12579 sed 's/^/| /' conftest.$ac_ext >&5
12580
12581 ac_lo=`expr '(' $ac_mid ')' + 1`
12582 fi
12583 rm -f conftest.$ac_objext conftest.$ac_ext
12584 done
12585 case $ac_lo in
12586 ?*) ac_cv_sizeof_char=$ac_lo;;
12587 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
12588 See \`config.log' for more details." >&5
12589 echo "$as_me: error: cannot compute sizeof (char), 77
12590 See \`config.log' for more details." >&2;}
12591    { (exit 1); exit 1; }; } ;;
12592 esac
12593 else
12594   if test "$cross_compiling" = yes; then
12595   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12596 See \`config.log' for more details." >&5
12597 echo "$as_me: error: cannot run test program while cross compiling
12598 See \`config.log' for more details." >&2;}
12599    { (exit 1); exit 1; }; }
12600 else
12601   cat >conftest.$ac_ext <<_ACEOF
12602 #line $LINENO "configure"
12603 /* confdefs.h.  */
12604 _ACEOF
12605 cat confdefs.h >>conftest.$ac_ext
12606 cat >>conftest.$ac_ext <<_ACEOF
12607 /* end confdefs.h.  */
12608 $ac_includes_default
12609 long longval () { return (long) (sizeof (char)); }
12610 unsigned long ulongval () { return (long) (sizeof (char)); }
12611 #include <stdio.h>
12612 #include <stdlib.h>
12613 int
12614 main ()
12615 {
12616
12617   FILE *f = fopen ("conftest.val", "w");
12618   if (! f)
12619     exit (1);
12620   if (((long) (sizeof (char))) < 0)
12621     {
12622       long i = longval ();
12623       if (i != ((long) (sizeof (char))))
12624         exit (1);
12625       fprintf (f, "%ld\n", i);
12626     }
12627   else
12628     {
12629       unsigned long i = ulongval ();
12630       if (i != ((long) (sizeof (char))))
12631         exit (1);
12632       fprintf (f, "%lu\n", i);
12633     }
12634   exit (ferror (f) || fclose (f) != 0);
12635
12636   ;
12637   return 0;
12638 }
12639 _ACEOF
12640 rm -f conftest$ac_exeext
12641 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12642   (eval $ac_link) 2>&5
12643   ac_status=$?
12644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12645   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12646   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12647   (eval $ac_try) 2>&5
12648   ac_status=$?
12649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12650   (exit $ac_status); }; }; then
12651   ac_cv_sizeof_char=`cat conftest.val`
12652 else
12653   echo "$as_me: program exited with status $ac_status" >&5
12654 echo "$as_me: failed program was:" >&5
12655 sed 's/^/| /' conftest.$ac_ext >&5
12656
12657 ( exit $ac_status )
12658 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
12659 See \`config.log' for more details." >&5
12660 echo "$as_me: error: cannot compute sizeof (char), 77
12661 See \`config.log' for more details." >&2;}
12662    { (exit 1); exit 1; }; }
12663 fi
12664 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12665 fi
12666 fi
12667 rm -f conftest.val
12668 else
12669   ac_cv_sizeof_char=0
12670 fi
12671 fi
12672 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
12673 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
12674 cat >>confdefs.h <<_ACEOF
12675 #define SIZEOF_CHAR $ac_cv_sizeof_char
12676 _ACEOF
12677
12678
12679 echo "$as_me:$LINENO: checking for short int" >&5
12680 echo $ECHO_N "checking for short int... $ECHO_C" >&6
12681 if test "${ac_cv_type_short_int+set}" = set; then
12682   echo $ECHO_N "(cached) $ECHO_C" >&6
12683 else
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 if ((short int *) 0)
12696   return 0;
12697 if (sizeof (short int))
12698   return 0;
12699   ;
12700   return 0;
12701 }
12702 _ACEOF
12703 rm -f conftest.$ac_objext
12704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12705   (eval $ac_compile) 2>&5
12706   ac_status=$?
12707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12708   (exit $ac_status); } &&
12709          { ac_try='test -s conftest.$ac_objext'
12710   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12711   (eval $ac_try) 2>&5
12712   ac_status=$?
12713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12714   (exit $ac_status); }; }; then
12715   ac_cv_type_short_int=yes
12716 else
12717   echo "$as_me: failed program was:" >&5
12718 sed 's/^/| /' conftest.$ac_ext >&5
12719
12720 ac_cv_type_short_int=no
12721 fi
12722 rm -f conftest.$ac_objext conftest.$ac_ext
12723 fi
12724 echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
12725 echo "${ECHO_T}$ac_cv_type_short_int" >&6
12726
12727 echo "$as_me:$LINENO: checking size of short int" >&5
12728 echo $ECHO_N "checking size of short int... $ECHO_C" >&6
12729 if test "${ac_cv_sizeof_short_int+set}" = set; then
12730   echo $ECHO_N "(cached) $ECHO_C" >&6
12731 else
12732   if test "$ac_cv_type_short_int" = yes; then
12733   # The cast to unsigned long works around a bug in the HP C Compiler
12734   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12735   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12736   # This bug is HP SR number 8606223364.
12737   if test "$cross_compiling" = yes; then
12738   # Depending upon the size, compute the lo and hi bounds.
12739 cat >conftest.$ac_ext <<_ACEOF
12740 #line $LINENO "configure"
12741 /* confdefs.h.  */
12742 _ACEOF
12743 cat confdefs.h >>conftest.$ac_ext
12744 cat >>conftest.$ac_ext <<_ACEOF
12745 /* end confdefs.h.  */
12746 $ac_includes_default
12747 int
12748 main ()
12749 {
12750 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= 0)];
12751 test_array [0] = 0
12752
12753   ;
12754   return 0;
12755 }
12756 _ACEOF
12757 rm -f conftest.$ac_objext
12758 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12759   (eval $ac_compile) 2>&5
12760   ac_status=$?
12761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12762   (exit $ac_status); } &&
12763          { ac_try='test -s conftest.$ac_objext'
12764   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12765   (eval $ac_try) 2>&5
12766   ac_status=$?
12767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12768   (exit $ac_status); }; }; then
12769   ac_lo=0 ac_mid=0
12770   while :; do
12771     cat >conftest.$ac_ext <<_ACEOF
12772 #line $LINENO "configure"
12773 /* confdefs.h.  */
12774 _ACEOF
12775 cat confdefs.h >>conftest.$ac_ext
12776 cat >>conftest.$ac_ext <<_ACEOF
12777 /* end confdefs.h.  */
12778 $ac_includes_default
12779 int
12780 main ()
12781 {
12782 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
12783 test_array [0] = 0
12784
12785   ;
12786   return 0;
12787 }
12788 _ACEOF
12789 rm -f conftest.$ac_objext
12790 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12791   (eval $ac_compile) 2>&5
12792   ac_status=$?
12793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12794   (exit $ac_status); } &&
12795          { ac_try='test -s conftest.$ac_objext'
12796   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12797   (eval $ac_try) 2>&5
12798   ac_status=$?
12799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12800   (exit $ac_status); }; }; then
12801   ac_hi=$ac_mid; break
12802 else
12803   echo "$as_me: failed program was:" >&5
12804 sed 's/^/| /' conftest.$ac_ext >&5
12805
12806 ac_lo=`expr $ac_mid + 1`
12807                     if test $ac_lo -le $ac_mid; then
12808                       ac_lo= ac_hi=
12809                       break
12810                     fi
12811                     ac_mid=`expr 2 '*' $ac_mid + 1`
12812 fi
12813 rm -f conftest.$ac_objext conftest.$ac_ext
12814   done
12815 else
12816   echo "$as_me: failed program was:" >&5
12817 sed 's/^/| /' conftest.$ac_ext >&5
12818
12819 cat >conftest.$ac_ext <<_ACEOF
12820 #line $LINENO "configure"
12821 /* confdefs.h.  */
12822 _ACEOF
12823 cat confdefs.h >>conftest.$ac_ext
12824 cat >>conftest.$ac_ext <<_ACEOF
12825 /* end confdefs.h.  */
12826 $ac_includes_default
12827 int
12828 main ()
12829 {
12830 static int test_array [1 - 2 * !(((long) (sizeof (short int))) < 0)];
12831 test_array [0] = 0
12832
12833   ;
12834   return 0;
12835 }
12836 _ACEOF
12837 rm -f conftest.$ac_objext
12838 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12839   (eval $ac_compile) 2>&5
12840   ac_status=$?
12841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12842   (exit $ac_status); } &&
12843          { ac_try='test -s conftest.$ac_objext'
12844   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12845   (eval $ac_try) 2>&5
12846   ac_status=$?
12847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12848   (exit $ac_status); }; }; then
12849   ac_hi=-1 ac_mid=-1
12850   while :; do
12851     cat >conftest.$ac_ext <<_ACEOF
12852 #line $LINENO "configure"
12853 /* confdefs.h.  */
12854 _ACEOF
12855 cat confdefs.h >>conftest.$ac_ext
12856 cat >>conftest.$ac_ext <<_ACEOF
12857 /* end confdefs.h.  */
12858 $ac_includes_default
12859 int
12860 main ()
12861 {
12862 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= $ac_mid)];
12863 test_array [0] = 0
12864
12865   ;
12866   return 0;
12867 }
12868 _ACEOF
12869 rm -f conftest.$ac_objext
12870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12871   (eval $ac_compile) 2>&5
12872   ac_status=$?
12873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12874   (exit $ac_status); } &&
12875          { ac_try='test -s conftest.$ac_objext'
12876   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12877   (eval $ac_try) 2>&5
12878   ac_status=$?
12879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12880   (exit $ac_status); }; }; then
12881   ac_lo=$ac_mid; break
12882 else
12883   echo "$as_me: failed program was:" >&5
12884 sed 's/^/| /' conftest.$ac_ext >&5
12885
12886 ac_hi=`expr '(' $ac_mid ')' - 1`
12887                        if test $ac_mid -le $ac_hi; then
12888                          ac_lo= ac_hi=
12889                          break
12890                        fi
12891                        ac_mid=`expr 2 '*' $ac_mid`
12892 fi
12893 rm -f conftest.$ac_objext conftest.$ac_ext
12894   done
12895 else
12896   echo "$as_me: failed program was:" >&5
12897 sed 's/^/| /' conftest.$ac_ext >&5
12898
12899 ac_lo= ac_hi=
12900 fi
12901 rm -f conftest.$ac_objext conftest.$ac_ext
12902 fi
12903 rm -f conftest.$ac_objext conftest.$ac_ext
12904 # Binary search between lo and hi bounds.
12905 while test "x$ac_lo" != "x$ac_hi"; do
12906   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
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 int
12916 main ()
12917 {
12918 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
12919 test_array [0] = 0
12920
12921   ;
12922   return 0;
12923 }
12924 _ACEOF
12925 rm -f conftest.$ac_objext
12926 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12927   (eval $ac_compile) 2>&5
12928   ac_status=$?
12929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12930   (exit $ac_status); } &&
12931          { ac_try='test -s conftest.$ac_objext'
12932   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12933   (eval $ac_try) 2>&5
12934   ac_status=$?
12935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12936   (exit $ac_status); }; }; then
12937   ac_hi=$ac_mid
12938 else
12939   echo "$as_me: failed program was:" >&5
12940 sed 's/^/| /' conftest.$ac_ext >&5
12941
12942 ac_lo=`expr '(' $ac_mid ')' + 1`
12943 fi
12944 rm -f conftest.$ac_objext conftest.$ac_ext
12945 done
12946 case $ac_lo in
12947 ?*) ac_cv_sizeof_short_int=$ac_lo;;
12948 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
12949 See \`config.log' for more details." >&5
12950 echo "$as_me: error: cannot compute sizeof (short int), 77
12951 See \`config.log' for more details." >&2;}
12952    { (exit 1); exit 1; }; } ;;
12953 esac
12954 else
12955   if test "$cross_compiling" = yes; then
12956   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12957 See \`config.log' for more details." >&5
12958 echo "$as_me: error: cannot run test program while cross compiling
12959 See \`config.log' for more details." >&2;}
12960    { (exit 1); exit 1; }; }
12961 else
12962   cat >conftest.$ac_ext <<_ACEOF
12963 #line $LINENO "configure"
12964 /* confdefs.h.  */
12965 _ACEOF
12966 cat confdefs.h >>conftest.$ac_ext
12967 cat >>conftest.$ac_ext <<_ACEOF
12968 /* end confdefs.h.  */
12969 $ac_includes_default
12970 long longval () { return (long) (sizeof (short int)); }
12971 unsigned long ulongval () { return (long) (sizeof (short int)); }
12972 #include <stdio.h>
12973 #include <stdlib.h>
12974 int
12975 main ()
12976 {
12977
12978   FILE *f = fopen ("conftest.val", "w");
12979   if (! f)
12980     exit (1);
12981   if (((long) (sizeof (short int))) < 0)
12982     {
12983       long i = longval ();
12984       if (i != ((long) (sizeof (short int))))
12985         exit (1);
12986       fprintf (f, "%ld\n", i);
12987     }
12988   else
12989     {
12990       unsigned long i = ulongval ();
12991       if (i != ((long) (sizeof (short int))))
12992         exit (1);
12993       fprintf (f, "%lu\n", i);
12994     }
12995   exit (ferror (f) || fclose (f) != 0);
12996
12997   ;
12998   return 0;
12999 }
13000 _ACEOF
13001 rm -f conftest$ac_exeext
13002 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13003   (eval $ac_link) 2>&5
13004   ac_status=$?
13005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13006   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13007   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13008   (eval $ac_try) 2>&5
13009   ac_status=$?
13010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13011   (exit $ac_status); }; }; then
13012   ac_cv_sizeof_short_int=`cat conftest.val`
13013 else
13014   echo "$as_me: program exited with status $ac_status" >&5
13015 echo "$as_me: failed program was:" >&5
13016 sed 's/^/| /' conftest.$ac_ext >&5
13017
13018 ( exit $ac_status )
13019 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
13020 See \`config.log' for more details." >&5
13021 echo "$as_me: error: cannot compute sizeof (short int), 77
13022 See \`config.log' for more details." >&2;}
13023    { (exit 1); exit 1; }; }
13024 fi
13025 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13026 fi
13027 fi
13028 rm -f conftest.val
13029 else
13030   ac_cv_sizeof_short_int=0
13031 fi
13032 fi
13033 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
13034 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6
13035 cat >>confdefs.h <<_ACEOF
13036 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
13037 _ACEOF
13038
13039
13040 echo "$as_me:$LINENO: checking for int" >&5
13041 echo $ECHO_N "checking for int... $ECHO_C" >&6
13042 if test "${ac_cv_type_int+set}" = set; then
13043   echo $ECHO_N "(cached) $ECHO_C" >&6
13044 else
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 if ((int *) 0)
13057   return 0;
13058 if (sizeof (int))
13059   return 0;
13060   ;
13061   return 0;
13062 }
13063 _ACEOF
13064 rm -f conftest.$ac_objext
13065 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13066   (eval $ac_compile) 2>&5
13067   ac_status=$?
13068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13069   (exit $ac_status); } &&
13070          { ac_try='test -s conftest.$ac_objext'
13071   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13072   (eval $ac_try) 2>&5
13073   ac_status=$?
13074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13075   (exit $ac_status); }; }; then
13076   ac_cv_type_int=yes
13077 else
13078   echo "$as_me: failed program was:" >&5
13079 sed 's/^/| /' conftest.$ac_ext >&5
13080
13081 ac_cv_type_int=no
13082 fi
13083 rm -f conftest.$ac_objext conftest.$ac_ext
13084 fi
13085 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
13086 echo "${ECHO_T}$ac_cv_type_int" >&6
13087
13088 echo "$as_me:$LINENO: checking size of int" >&5
13089 echo $ECHO_N "checking size of int... $ECHO_C" >&6
13090 if test "${ac_cv_sizeof_int+set}" = set; then
13091   echo $ECHO_N "(cached) $ECHO_C" >&6
13092 else
13093   if test "$ac_cv_type_int" = yes; then
13094   # The cast to unsigned long works around a bug in the HP C Compiler
13095   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13096   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13097   # This bug is HP SR number 8606223364.
13098   if test "$cross_compiling" = yes; then
13099   # Depending upon the size, compute the lo and hi bounds.
13100 cat >conftest.$ac_ext <<_ACEOF
13101 #line $LINENO "configure"
13102 /* confdefs.h.  */
13103 _ACEOF
13104 cat confdefs.h >>conftest.$ac_ext
13105 cat >>conftest.$ac_ext <<_ACEOF
13106 /* end confdefs.h.  */
13107 $ac_includes_default
13108 int
13109 main ()
13110 {
13111 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
13112 test_array [0] = 0
13113
13114   ;
13115   return 0;
13116 }
13117 _ACEOF
13118 rm -f conftest.$ac_objext
13119 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13120   (eval $ac_compile) 2>&5
13121   ac_status=$?
13122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13123   (exit $ac_status); } &&
13124          { ac_try='test -s conftest.$ac_objext'
13125   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13126   (eval $ac_try) 2>&5
13127   ac_status=$?
13128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13129   (exit $ac_status); }; }; then
13130   ac_lo=0 ac_mid=0
13131   while :; do
13132     cat >conftest.$ac_ext <<_ACEOF
13133 #line $LINENO "configure"
13134 /* confdefs.h.  */
13135 _ACEOF
13136 cat confdefs.h >>conftest.$ac_ext
13137 cat >>conftest.$ac_ext <<_ACEOF
13138 /* end confdefs.h.  */
13139 $ac_includes_default
13140 int
13141 main ()
13142 {
13143 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
13144 test_array [0] = 0
13145
13146   ;
13147   return 0;
13148 }
13149 _ACEOF
13150 rm -f conftest.$ac_objext
13151 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13152   (eval $ac_compile) 2>&5
13153   ac_status=$?
13154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13155   (exit $ac_status); } &&
13156          { ac_try='test -s conftest.$ac_objext'
13157   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13158   (eval $ac_try) 2>&5
13159   ac_status=$?
13160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13161   (exit $ac_status); }; }; then
13162   ac_hi=$ac_mid; break
13163 else
13164   echo "$as_me: failed program was:" >&5
13165 sed 's/^/| /' conftest.$ac_ext >&5
13166
13167 ac_lo=`expr $ac_mid + 1`
13168                     if test $ac_lo -le $ac_mid; then
13169                       ac_lo= ac_hi=
13170                       break
13171                     fi
13172                     ac_mid=`expr 2 '*' $ac_mid + 1`
13173 fi
13174 rm -f conftest.$ac_objext conftest.$ac_ext
13175   done
13176 else
13177   echo "$as_me: failed program was:" >&5
13178 sed 's/^/| /' conftest.$ac_ext >&5
13179
13180 cat >conftest.$ac_ext <<_ACEOF
13181 #line $LINENO "configure"
13182 /* confdefs.h.  */
13183 _ACEOF
13184 cat confdefs.h >>conftest.$ac_ext
13185 cat >>conftest.$ac_ext <<_ACEOF
13186 /* end confdefs.h.  */
13187 $ac_includes_default
13188 int
13189 main ()
13190 {
13191 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
13192 test_array [0] = 0
13193
13194   ;
13195   return 0;
13196 }
13197 _ACEOF
13198 rm -f conftest.$ac_objext
13199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13200   (eval $ac_compile) 2>&5
13201   ac_status=$?
13202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13203   (exit $ac_status); } &&
13204          { ac_try='test -s conftest.$ac_objext'
13205   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13206   (eval $ac_try) 2>&5
13207   ac_status=$?
13208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13209   (exit $ac_status); }; }; then
13210   ac_hi=-1 ac_mid=-1
13211   while :; do
13212     cat >conftest.$ac_ext <<_ACEOF
13213 #line $LINENO "configure"
13214 /* confdefs.h.  */
13215 _ACEOF
13216 cat confdefs.h >>conftest.$ac_ext
13217 cat >>conftest.$ac_ext <<_ACEOF
13218 /* end confdefs.h.  */
13219 $ac_includes_default
13220 int
13221 main ()
13222 {
13223 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
13224 test_array [0] = 0
13225
13226   ;
13227   return 0;
13228 }
13229 _ACEOF
13230 rm -f conftest.$ac_objext
13231 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13232   (eval $ac_compile) 2>&5
13233   ac_status=$?
13234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13235   (exit $ac_status); } &&
13236          { ac_try='test -s conftest.$ac_objext'
13237   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13238   (eval $ac_try) 2>&5
13239   ac_status=$?
13240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13241   (exit $ac_status); }; }; then
13242   ac_lo=$ac_mid; break
13243 else
13244   echo "$as_me: failed program was:" >&5
13245 sed 's/^/| /' conftest.$ac_ext >&5
13246
13247 ac_hi=`expr '(' $ac_mid ')' - 1`
13248                        if test $ac_mid -le $ac_hi; then
13249                          ac_lo= ac_hi=
13250                          break
13251                        fi
13252                        ac_mid=`expr 2 '*' $ac_mid`
13253 fi
13254 rm -f conftest.$ac_objext conftest.$ac_ext
13255   done
13256 else
13257   echo "$as_me: failed program was:" >&5
13258 sed 's/^/| /' conftest.$ac_ext >&5
13259
13260 ac_lo= ac_hi=
13261 fi
13262 rm -f conftest.$ac_objext conftest.$ac_ext
13263 fi
13264 rm -f conftest.$ac_objext conftest.$ac_ext
13265 # Binary search between lo and hi bounds.
13266 while test "x$ac_lo" != "x$ac_hi"; do
13267   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
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 int
13277 main ()
13278 {
13279 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
13280 test_array [0] = 0
13281
13282   ;
13283   return 0;
13284 }
13285 _ACEOF
13286 rm -f conftest.$ac_objext
13287 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13288   (eval $ac_compile) 2>&5
13289   ac_status=$?
13290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13291   (exit $ac_status); } &&
13292          { ac_try='test -s conftest.$ac_objext'
13293   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13294   (eval $ac_try) 2>&5
13295   ac_status=$?
13296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13297   (exit $ac_status); }; }; then
13298   ac_hi=$ac_mid
13299 else
13300   echo "$as_me: failed program was:" >&5
13301 sed 's/^/| /' conftest.$ac_ext >&5
13302
13303 ac_lo=`expr '(' $ac_mid ')' + 1`
13304 fi
13305 rm -f conftest.$ac_objext conftest.$ac_ext
13306 done
13307 case $ac_lo in
13308 ?*) ac_cv_sizeof_int=$ac_lo;;
13309 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
13310 See \`config.log' for more details." >&5
13311 echo "$as_me: error: cannot compute sizeof (int), 77
13312 See \`config.log' for more details." >&2;}
13313    { (exit 1); exit 1; }; } ;;
13314 esac
13315 else
13316   if test "$cross_compiling" = yes; then
13317   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13318 See \`config.log' for more details." >&5
13319 echo "$as_me: error: cannot run test program while cross compiling
13320 See \`config.log' for more details." >&2;}
13321    { (exit 1); exit 1; }; }
13322 else
13323   cat >conftest.$ac_ext <<_ACEOF
13324 #line $LINENO "configure"
13325 /* confdefs.h.  */
13326 _ACEOF
13327 cat confdefs.h >>conftest.$ac_ext
13328 cat >>conftest.$ac_ext <<_ACEOF
13329 /* end confdefs.h.  */
13330 $ac_includes_default
13331 long longval () { return (long) (sizeof (int)); }
13332 unsigned long ulongval () { return (long) (sizeof (int)); }
13333 #include <stdio.h>
13334 #include <stdlib.h>
13335 int
13336 main ()
13337 {
13338
13339   FILE *f = fopen ("conftest.val", "w");
13340   if (! f)
13341     exit (1);
13342   if (((long) (sizeof (int))) < 0)
13343     {
13344       long i = longval ();
13345       if (i != ((long) (sizeof (int))))
13346         exit (1);
13347       fprintf (f, "%ld\n", i);
13348     }
13349   else
13350     {
13351       unsigned long i = ulongval ();
13352       if (i != ((long) (sizeof (int))))
13353         exit (1);
13354       fprintf (f, "%lu\n", i);
13355     }
13356   exit (ferror (f) || fclose (f) != 0);
13357
13358   ;
13359   return 0;
13360 }
13361 _ACEOF
13362 rm -f conftest$ac_exeext
13363 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13364   (eval $ac_link) 2>&5
13365   ac_status=$?
13366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13367   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13368   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13369   (eval $ac_try) 2>&5
13370   ac_status=$?
13371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13372   (exit $ac_status); }; }; then
13373   ac_cv_sizeof_int=`cat conftest.val`
13374 else
13375   echo "$as_me: program exited with status $ac_status" >&5
13376 echo "$as_me: failed program was:" >&5
13377 sed 's/^/| /' conftest.$ac_ext >&5
13378
13379 ( exit $ac_status )
13380 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
13381 See \`config.log' for more details." >&5
13382 echo "$as_me: error: cannot compute sizeof (int), 77
13383 See \`config.log' for more details." >&2;}
13384    { (exit 1); exit 1; }; }
13385 fi
13386 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13387 fi
13388 fi
13389 rm -f conftest.val
13390 else
13391   ac_cv_sizeof_int=0
13392 fi
13393 fi
13394 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
13395 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
13396 cat >>confdefs.h <<_ACEOF
13397 #define SIZEOF_INT $ac_cv_sizeof_int
13398 _ACEOF
13399
13400
13401 echo "$as_me:$LINENO: checking for long int" >&5
13402 echo $ECHO_N "checking for long int... $ECHO_C" >&6
13403 if test "${ac_cv_type_long_int+set}" = set; then
13404   echo $ECHO_N "(cached) $ECHO_C" >&6
13405 else
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 if ((long int *) 0)
13418   return 0;
13419 if (sizeof (long int))
13420   return 0;
13421   ;
13422   return 0;
13423 }
13424 _ACEOF
13425 rm -f conftest.$ac_objext
13426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13427   (eval $ac_compile) 2>&5
13428   ac_status=$?
13429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13430   (exit $ac_status); } &&
13431          { ac_try='test -s conftest.$ac_objext'
13432   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13433   (eval $ac_try) 2>&5
13434   ac_status=$?
13435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13436   (exit $ac_status); }; }; then
13437   ac_cv_type_long_int=yes
13438 else
13439   echo "$as_me: failed program was:" >&5
13440 sed 's/^/| /' conftest.$ac_ext >&5
13441
13442 ac_cv_type_long_int=no
13443 fi
13444 rm -f conftest.$ac_objext conftest.$ac_ext
13445 fi
13446 echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
13447 echo "${ECHO_T}$ac_cv_type_long_int" >&6
13448
13449 echo "$as_me:$LINENO: checking size of long int" >&5
13450 echo $ECHO_N "checking size of long int... $ECHO_C" >&6
13451 if test "${ac_cv_sizeof_long_int+set}" = set; then
13452   echo $ECHO_N "(cached) $ECHO_C" >&6
13453 else
13454   if test "$ac_cv_type_long_int" = yes; then
13455   # The cast to unsigned long works around a bug in the HP C Compiler
13456   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13457   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13458   # This bug is HP SR number 8606223364.
13459   if test "$cross_compiling" = yes; then
13460   # Depending upon the size, compute the lo and hi bounds.
13461 cat >conftest.$ac_ext <<_ACEOF
13462 #line $LINENO "configure"
13463 /* confdefs.h.  */
13464 _ACEOF
13465 cat confdefs.h >>conftest.$ac_ext
13466 cat >>conftest.$ac_ext <<_ACEOF
13467 /* end confdefs.h.  */
13468 $ac_includes_default
13469 int
13470 main ()
13471 {
13472 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= 0)];
13473 test_array [0] = 0
13474
13475   ;
13476   return 0;
13477 }
13478 _ACEOF
13479 rm -f conftest.$ac_objext
13480 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13481   (eval $ac_compile) 2>&5
13482   ac_status=$?
13483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13484   (exit $ac_status); } &&
13485          { ac_try='test -s conftest.$ac_objext'
13486   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13487   (eval $ac_try) 2>&5
13488   ac_status=$?
13489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13490   (exit $ac_status); }; }; then
13491   ac_lo=0 ac_mid=0
13492   while :; do
13493     cat >conftest.$ac_ext <<_ACEOF
13494 #line $LINENO "configure"
13495 /* confdefs.h.  */
13496 _ACEOF
13497 cat confdefs.h >>conftest.$ac_ext
13498 cat >>conftest.$ac_ext <<_ACEOF
13499 /* end confdefs.h.  */
13500 $ac_includes_default
13501 int
13502 main ()
13503 {
13504 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
13505 test_array [0] = 0
13506
13507   ;
13508   return 0;
13509 }
13510 _ACEOF
13511 rm -f conftest.$ac_objext
13512 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13513   (eval $ac_compile) 2>&5
13514   ac_status=$?
13515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13516   (exit $ac_status); } &&
13517          { ac_try='test -s conftest.$ac_objext'
13518   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13519   (eval $ac_try) 2>&5
13520   ac_status=$?
13521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13522   (exit $ac_status); }; }; then
13523   ac_hi=$ac_mid; break
13524 else
13525   echo "$as_me: failed program was:" >&5
13526 sed 's/^/| /' conftest.$ac_ext >&5
13527
13528 ac_lo=`expr $ac_mid + 1`
13529                     if test $ac_lo -le $ac_mid; then
13530                       ac_lo= ac_hi=
13531                       break
13532                     fi
13533                     ac_mid=`expr 2 '*' $ac_mid + 1`
13534 fi
13535 rm -f conftest.$ac_objext conftest.$ac_ext
13536   done
13537 else
13538   echo "$as_me: failed program was:" >&5
13539 sed 's/^/| /' conftest.$ac_ext >&5
13540
13541 cat >conftest.$ac_ext <<_ACEOF
13542 #line $LINENO "configure"
13543 /* confdefs.h.  */
13544 _ACEOF
13545 cat confdefs.h >>conftest.$ac_ext
13546 cat >>conftest.$ac_ext <<_ACEOF
13547 /* end confdefs.h.  */
13548 $ac_includes_default
13549 int
13550 main ()
13551 {
13552 static int test_array [1 - 2 * !(((long) (sizeof (long int))) < 0)];
13553 test_array [0] = 0
13554
13555   ;
13556   return 0;
13557 }
13558 _ACEOF
13559 rm -f conftest.$ac_objext
13560 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13561   (eval $ac_compile) 2>&5
13562   ac_status=$?
13563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13564   (exit $ac_status); } &&
13565          { ac_try='test -s conftest.$ac_objext'
13566   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13567   (eval $ac_try) 2>&5
13568   ac_status=$?
13569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13570   (exit $ac_status); }; }; then
13571   ac_hi=-1 ac_mid=-1
13572   while :; do
13573     cat >conftest.$ac_ext <<_ACEOF
13574 #line $LINENO "configure"
13575 /* confdefs.h.  */
13576 _ACEOF
13577 cat confdefs.h >>conftest.$ac_ext
13578 cat >>conftest.$ac_ext <<_ACEOF
13579 /* end confdefs.h.  */
13580 $ac_includes_default
13581 int
13582 main ()
13583 {
13584 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= $ac_mid)];
13585 test_array [0] = 0
13586
13587   ;
13588   return 0;
13589 }
13590 _ACEOF
13591 rm -f conftest.$ac_objext
13592 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13593   (eval $ac_compile) 2>&5
13594   ac_status=$?
13595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13596   (exit $ac_status); } &&
13597          { ac_try='test -s conftest.$ac_objext'
13598   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13599   (eval $ac_try) 2>&5
13600   ac_status=$?
13601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13602   (exit $ac_status); }; }; then
13603   ac_lo=$ac_mid; break
13604 else
13605   echo "$as_me: failed program was:" >&5
13606 sed 's/^/| /' conftest.$ac_ext >&5
13607
13608 ac_hi=`expr '(' $ac_mid ')' - 1`
13609                        if test $ac_mid -le $ac_hi; then
13610                          ac_lo= ac_hi=
13611                          break
13612                        fi
13613                        ac_mid=`expr 2 '*' $ac_mid`
13614 fi
13615 rm -f conftest.$ac_objext conftest.$ac_ext
13616   done
13617 else
13618   echo "$as_me: failed program was:" >&5
13619 sed 's/^/| /' conftest.$ac_ext >&5
13620
13621 ac_lo= ac_hi=
13622 fi
13623 rm -f conftest.$ac_objext conftest.$ac_ext
13624 fi
13625 rm -f conftest.$ac_objext conftest.$ac_ext
13626 # Binary search between lo and hi bounds.
13627 while test "x$ac_lo" != "x$ac_hi"; do
13628   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
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 int
13638 main ()
13639 {
13640 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
13641 test_array [0] = 0
13642
13643   ;
13644   return 0;
13645 }
13646 _ACEOF
13647 rm -f conftest.$ac_objext
13648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13649   (eval $ac_compile) 2>&5
13650   ac_status=$?
13651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13652   (exit $ac_status); } &&
13653          { ac_try='test -s conftest.$ac_objext'
13654   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13655   (eval $ac_try) 2>&5
13656   ac_status=$?
13657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13658   (exit $ac_status); }; }; then
13659   ac_hi=$ac_mid
13660 else
13661   echo "$as_me: failed program was:" >&5
13662 sed 's/^/| /' conftest.$ac_ext >&5
13663
13664 ac_lo=`expr '(' $ac_mid ')' + 1`
13665 fi
13666 rm -f conftest.$ac_objext conftest.$ac_ext
13667 done
13668 case $ac_lo in
13669 ?*) ac_cv_sizeof_long_int=$ac_lo;;
13670 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
13671 See \`config.log' for more details." >&5
13672 echo "$as_me: error: cannot compute sizeof (long int), 77
13673 See \`config.log' for more details." >&2;}
13674    { (exit 1); exit 1; }; } ;;
13675 esac
13676 else
13677   if test "$cross_compiling" = yes; then
13678   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13679 See \`config.log' for more details." >&5
13680 echo "$as_me: error: cannot run test program while cross compiling
13681 See \`config.log' for more details." >&2;}
13682    { (exit 1); exit 1; }; }
13683 else
13684   cat >conftest.$ac_ext <<_ACEOF
13685 #line $LINENO "configure"
13686 /* confdefs.h.  */
13687 _ACEOF
13688 cat confdefs.h >>conftest.$ac_ext
13689 cat >>conftest.$ac_ext <<_ACEOF
13690 /* end confdefs.h.  */
13691 $ac_includes_default
13692 long longval () { return (long) (sizeof (long int)); }
13693 unsigned long ulongval () { return (long) (sizeof (long int)); }
13694 #include <stdio.h>
13695 #include <stdlib.h>
13696 int
13697 main ()
13698 {
13699
13700   FILE *f = fopen ("conftest.val", "w");
13701   if (! f)
13702     exit (1);
13703   if (((long) (sizeof (long int))) < 0)
13704     {
13705       long i = longval ();
13706       if (i != ((long) (sizeof (long int))))
13707         exit (1);
13708       fprintf (f, "%ld\n", i);
13709     }
13710   else
13711     {
13712       unsigned long i = ulongval ();
13713       if (i != ((long) (sizeof (long int))))
13714         exit (1);
13715       fprintf (f, "%lu\n", i);
13716     }
13717   exit (ferror (f) || fclose (f) != 0);
13718
13719   ;
13720   return 0;
13721 }
13722 _ACEOF
13723 rm -f conftest$ac_exeext
13724 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13725   (eval $ac_link) 2>&5
13726   ac_status=$?
13727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13728   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13729   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13730   (eval $ac_try) 2>&5
13731   ac_status=$?
13732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13733   (exit $ac_status); }; }; then
13734   ac_cv_sizeof_long_int=`cat conftest.val`
13735 else
13736   echo "$as_me: program exited with status $ac_status" >&5
13737 echo "$as_me: failed program was:" >&5
13738 sed 's/^/| /' conftest.$ac_ext >&5
13739
13740 ( exit $ac_status )
13741 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
13742 See \`config.log' for more details." >&5
13743 echo "$as_me: error: cannot compute sizeof (long int), 77
13744 See \`config.log' for more details." >&2;}
13745    { (exit 1); exit 1; }; }
13746 fi
13747 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13748 fi
13749 fi
13750 rm -f conftest.val
13751 else
13752   ac_cv_sizeof_long_int=0
13753 fi
13754 fi
13755 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
13756 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6
13757 cat >>confdefs.h <<_ACEOF
13758 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
13759 _ACEOF
13760
13761
13762 echo "$as_me:$LINENO: checking for long long int" >&5
13763 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
13764 if test "${ac_cv_type_long_long_int+set}" = set; then
13765   echo $ECHO_N "(cached) $ECHO_C" >&6
13766 else
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 if ((long long int *) 0)
13779   return 0;
13780 if (sizeof (long long int))
13781   return 0;
13782   ;
13783   return 0;
13784 }
13785 _ACEOF
13786 rm -f conftest.$ac_objext
13787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13788   (eval $ac_compile) 2>&5
13789   ac_status=$?
13790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13791   (exit $ac_status); } &&
13792          { ac_try='test -s conftest.$ac_objext'
13793   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13794   (eval $ac_try) 2>&5
13795   ac_status=$?
13796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13797   (exit $ac_status); }; }; then
13798   ac_cv_type_long_long_int=yes
13799 else
13800   echo "$as_me: failed program was:" >&5
13801 sed 's/^/| /' conftest.$ac_ext >&5
13802
13803 ac_cv_type_long_long_int=no
13804 fi
13805 rm -f conftest.$ac_objext conftest.$ac_ext
13806 fi
13807 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
13808 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
13809
13810 echo "$as_me:$LINENO: checking size of long long int" >&5
13811 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6
13812 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
13813   echo $ECHO_N "(cached) $ECHO_C" >&6
13814 else
13815   if test "$ac_cv_type_long_long_int" = yes; then
13816   # The cast to unsigned long works around a bug in the HP C Compiler
13817   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13818   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13819   # This bug is HP SR number 8606223364.
13820   if test "$cross_compiling" = yes; then
13821   # Depending upon the size, compute the lo and hi bounds.
13822 cat >conftest.$ac_ext <<_ACEOF
13823 #line $LINENO "configure"
13824 /* confdefs.h.  */
13825 _ACEOF
13826 cat confdefs.h >>conftest.$ac_ext
13827 cat >>conftest.$ac_ext <<_ACEOF
13828 /* end confdefs.h.  */
13829 $ac_includes_default
13830 int
13831 main ()
13832 {
13833 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= 0)];
13834 test_array [0] = 0
13835
13836   ;
13837   return 0;
13838 }
13839 _ACEOF
13840 rm -f conftest.$ac_objext
13841 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13842   (eval $ac_compile) 2>&5
13843   ac_status=$?
13844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13845   (exit $ac_status); } &&
13846          { ac_try='test -s conftest.$ac_objext'
13847   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13848   (eval $ac_try) 2>&5
13849   ac_status=$?
13850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13851   (exit $ac_status); }; }; then
13852   ac_lo=0 ac_mid=0
13853   while :; do
13854     cat >conftest.$ac_ext <<_ACEOF
13855 #line $LINENO "configure"
13856 /* confdefs.h.  */
13857 _ACEOF
13858 cat confdefs.h >>conftest.$ac_ext
13859 cat >>conftest.$ac_ext <<_ACEOF
13860 /* end confdefs.h.  */
13861 $ac_includes_default
13862 int
13863 main ()
13864 {
13865 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
13866 test_array [0] = 0
13867
13868   ;
13869   return 0;
13870 }
13871 _ACEOF
13872 rm -f conftest.$ac_objext
13873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13874   (eval $ac_compile) 2>&5
13875   ac_status=$?
13876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13877   (exit $ac_status); } &&
13878          { ac_try='test -s conftest.$ac_objext'
13879   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13880   (eval $ac_try) 2>&5
13881   ac_status=$?
13882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13883   (exit $ac_status); }; }; then
13884   ac_hi=$ac_mid; break
13885 else
13886   echo "$as_me: failed program was:" >&5
13887 sed 's/^/| /' conftest.$ac_ext >&5
13888
13889 ac_lo=`expr $ac_mid + 1`
13890                     if test $ac_lo -le $ac_mid; then
13891                       ac_lo= ac_hi=
13892                       break
13893                     fi
13894                     ac_mid=`expr 2 '*' $ac_mid + 1`
13895 fi
13896 rm -f conftest.$ac_objext conftest.$ac_ext
13897   done
13898 else
13899   echo "$as_me: failed program was:" >&5
13900 sed 's/^/| /' conftest.$ac_ext >&5
13901
13902 cat >conftest.$ac_ext <<_ACEOF
13903 #line $LINENO "configure"
13904 /* confdefs.h.  */
13905 _ACEOF
13906 cat confdefs.h >>conftest.$ac_ext
13907 cat >>conftest.$ac_ext <<_ACEOF
13908 /* end confdefs.h.  */
13909 $ac_includes_default
13910 int
13911 main ()
13912 {
13913 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) < 0)];
13914 test_array [0] = 0
13915
13916   ;
13917   return 0;
13918 }
13919 _ACEOF
13920 rm -f conftest.$ac_objext
13921 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13922   (eval $ac_compile) 2>&5
13923   ac_status=$?
13924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13925   (exit $ac_status); } &&
13926          { ac_try='test -s conftest.$ac_objext'
13927   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13928   (eval $ac_try) 2>&5
13929   ac_status=$?
13930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13931   (exit $ac_status); }; }; then
13932   ac_hi=-1 ac_mid=-1
13933   while :; do
13934     cat >conftest.$ac_ext <<_ACEOF
13935 #line $LINENO "configure"
13936 /* confdefs.h.  */
13937 _ACEOF
13938 cat confdefs.h >>conftest.$ac_ext
13939 cat >>conftest.$ac_ext <<_ACEOF
13940 /* end confdefs.h.  */
13941 $ac_includes_default
13942 int
13943 main ()
13944 {
13945 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= $ac_mid)];
13946 test_array [0] = 0
13947
13948   ;
13949   return 0;
13950 }
13951 _ACEOF
13952 rm -f conftest.$ac_objext
13953 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13954   (eval $ac_compile) 2>&5
13955   ac_status=$?
13956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13957   (exit $ac_status); } &&
13958          { ac_try='test -s conftest.$ac_objext'
13959   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13960   (eval $ac_try) 2>&5
13961   ac_status=$?
13962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13963   (exit $ac_status); }; }; then
13964   ac_lo=$ac_mid; break
13965 else
13966   echo "$as_me: failed program was:" >&5
13967 sed 's/^/| /' conftest.$ac_ext >&5
13968
13969 ac_hi=`expr '(' $ac_mid ')' - 1`
13970                        if test $ac_mid -le $ac_hi; then
13971                          ac_lo= ac_hi=
13972                          break
13973                        fi
13974                        ac_mid=`expr 2 '*' $ac_mid`
13975 fi
13976 rm -f conftest.$ac_objext conftest.$ac_ext
13977   done
13978 else
13979   echo "$as_me: failed program was:" >&5
13980 sed 's/^/| /' conftest.$ac_ext >&5
13981
13982 ac_lo= ac_hi=
13983 fi
13984 rm -f conftest.$ac_objext conftest.$ac_ext
13985 fi
13986 rm -f conftest.$ac_objext conftest.$ac_ext
13987 # Binary search between lo and hi bounds.
13988 while test "x$ac_lo" != "x$ac_hi"; do
13989   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
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 int
13999 main ()
14000 {
14001 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
14002 test_array [0] = 0
14003
14004   ;
14005   return 0;
14006 }
14007 _ACEOF
14008 rm -f conftest.$ac_objext
14009 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14010   (eval $ac_compile) 2>&5
14011   ac_status=$?
14012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14013   (exit $ac_status); } &&
14014          { ac_try='test -s conftest.$ac_objext'
14015   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14016   (eval $ac_try) 2>&5
14017   ac_status=$?
14018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14019   (exit $ac_status); }; }; then
14020   ac_hi=$ac_mid
14021 else
14022   echo "$as_me: failed program was:" >&5
14023 sed 's/^/| /' conftest.$ac_ext >&5
14024
14025 ac_lo=`expr '(' $ac_mid ')' + 1`
14026 fi
14027 rm -f conftest.$ac_objext conftest.$ac_ext
14028 done
14029 case $ac_lo in
14030 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
14031 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
14032 See \`config.log' for more details." >&5
14033 echo "$as_me: error: cannot compute sizeof (long long int), 77
14034 See \`config.log' for more details." >&2;}
14035    { (exit 1); exit 1; }; } ;;
14036 esac
14037 else
14038   if test "$cross_compiling" = yes; then
14039   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14040 See \`config.log' for more details." >&5
14041 echo "$as_me: error: cannot run test program while cross compiling
14042 See \`config.log' for more details." >&2;}
14043    { (exit 1); exit 1; }; }
14044 else
14045   cat >conftest.$ac_ext <<_ACEOF
14046 #line $LINENO "configure"
14047 /* confdefs.h.  */
14048 _ACEOF
14049 cat confdefs.h >>conftest.$ac_ext
14050 cat >>conftest.$ac_ext <<_ACEOF
14051 /* end confdefs.h.  */
14052 $ac_includes_default
14053 long longval () { return (long) (sizeof (long long int)); }
14054 unsigned long ulongval () { return (long) (sizeof (long long int)); }
14055 #include <stdio.h>
14056 #include <stdlib.h>
14057 int
14058 main ()
14059 {
14060
14061   FILE *f = fopen ("conftest.val", "w");
14062   if (! f)
14063     exit (1);
14064   if (((long) (sizeof (long long int))) < 0)
14065     {
14066       long i = longval ();
14067       if (i != ((long) (sizeof (long long int))))
14068         exit (1);
14069       fprintf (f, "%ld\n", i);
14070     }
14071   else
14072     {
14073       unsigned long i = ulongval ();
14074       if (i != ((long) (sizeof (long long int))))
14075         exit (1);
14076       fprintf (f, "%lu\n", i);
14077     }
14078   exit (ferror (f) || fclose (f) != 0);
14079
14080   ;
14081   return 0;
14082 }
14083 _ACEOF
14084 rm -f conftest$ac_exeext
14085 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14086   (eval $ac_link) 2>&5
14087   ac_status=$?
14088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14089   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14090   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14091   (eval $ac_try) 2>&5
14092   ac_status=$?
14093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14094   (exit $ac_status); }; }; then
14095   ac_cv_sizeof_long_long_int=`cat conftest.val`
14096 else
14097   echo "$as_me: program exited with status $ac_status" >&5
14098 echo "$as_me: failed program was:" >&5
14099 sed 's/^/| /' conftest.$ac_ext >&5
14100
14101 ( exit $ac_status )
14102 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
14103 See \`config.log' for more details." >&5
14104 echo "$as_me: error: cannot compute sizeof (long long int), 77
14105 See \`config.log' for more details." >&2;}
14106    { (exit 1); exit 1; }; }
14107 fi
14108 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14109 fi
14110 fi
14111 rm -f conftest.val
14112 else
14113   ac_cv_sizeof_long_long_int=0
14114 fi
14115 fi
14116 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
14117 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6
14118 cat >>confdefs.h <<_ACEOF
14119 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
14120 _ACEOF
14121
14122
14123 echo "$as_me:$LINENO: checking for int *" >&5
14124 echo $ECHO_N "checking for int *... $ECHO_C" >&6
14125 if test "${ac_cv_type_int_p+set}" = set; then
14126   echo $ECHO_N "(cached) $ECHO_C" >&6
14127 else
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 if ((int * *) 0)
14140   return 0;
14141 if (sizeof (int *))
14142   return 0;
14143   ;
14144   return 0;
14145 }
14146 _ACEOF
14147 rm -f conftest.$ac_objext
14148 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14149   (eval $ac_compile) 2>&5
14150   ac_status=$?
14151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14152   (exit $ac_status); } &&
14153          { ac_try='test -s conftest.$ac_objext'
14154   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14155   (eval $ac_try) 2>&5
14156   ac_status=$?
14157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14158   (exit $ac_status); }; }; then
14159   ac_cv_type_int_p=yes
14160 else
14161   echo "$as_me: failed program was:" >&5
14162 sed 's/^/| /' conftest.$ac_ext >&5
14163
14164 ac_cv_type_int_p=no
14165 fi
14166 rm -f conftest.$ac_objext conftest.$ac_ext
14167 fi
14168 echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
14169 echo "${ECHO_T}$ac_cv_type_int_p" >&6
14170
14171 echo "$as_me:$LINENO: checking size of int *" >&5
14172 echo $ECHO_N "checking size of int *... $ECHO_C" >&6
14173 if test "${ac_cv_sizeof_int_p+set}" = set; then
14174   echo $ECHO_N "(cached) $ECHO_C" >&6
14175 else
14176   if test "$ac_cv_type_int_p" = yes; then
14177   # The cast to unsigned long works around a bug in the HP C Compiler
14178   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14179   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14180   # This bug is HP SR number 8606223364.
14181   if test "$cross_compiling" = yes; then
14182   # Depending upon the size, compute the lo and hi bounds.
14183 cat >conftest.$ac_ext <<_ACEOF
14184 #line $LINENO "configure"
14185 /* confdefs.h.  */
14186 _ACEOF
14187 cat confdefs.h >>conftest.$ac_ext
14188 cat >>conftest.$ac_ext <<_ACEOF
14189 /* end confdefs.h.  */
14190 $ac_includes_default
14191 int
14192 main ()
14193 {
14194 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= 0)];
14195 test_array [0] = 0
14196
14197   ;
14198   return 0;
14199 }
14200 _ACEOF
14201 rm -f conftest.$ac_objext
14202 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14203   (eval $ac_compile) 2>&5
14204   ac_status=$?
14205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14206   (exit $ac_status); } &&
14207          { ac_try='test -s conftest.$ac_objext'
14208   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14209   (eval $ac_try) 2>&5
14210   ac_status=$?
14211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14212   (exit $ac_status); }; }; then
14213   ac_lo=0 ac_mid=0
14214   while :; do
14215     cat >conftest.$ac_ext <<_ACEOF
14216 #line $LINENO "configure"
14217 /* confdefs.h.  */
14218 _ACEOF
14219 cat confdefs.h >>conftest.$ac_ext
14220 cat >>conftest.$ac_ext <<_ACEOF
14221 /* end confdefs.h.  */
14222 $ac_includes_default
14223 int
14224 main ()
14225 {
14226 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
14227 test_array [0] = 0
14228
14229   ;
14230   return 0;
14231 }
14232 _ACEOF
14233 rm -f conftest.$ac_objext
14234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14235   (eval $ac_compile) 2>&5
14236   ac_status=$?
14237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14238   (exit $ac_status); } &&
14239          { ac_try='test -s conftest.$ac_objext'
14240   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14241   (eval $ac_try) 2>&5
14242   ac_status=$?
14243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14244   (exit $ac_status); }; }; then
14245   ac_hi=$ac_mid; break
14246 else
14247   echo "$as_me: failed program was:" >&5
14248 sed 's/^/| /' conftest.$ac_ext >&5
14249
14250 ac_lo=`expr $ac_mid + 1`
14251                     if test $ac_lo -le $ac_mid; then
14252                       ac_lo= ac_hi=
14253                       break
14254                     fi
14255                     ac_mid=`expr 2 '*' $ac_mid + 1`
14256 fi
14257 rm -f conftest.$ac_objext conftest.$ac_ext
14258   done
14259 else
14260   echo "$as_me: failed program was:" >&5
14261 sed 's/^/| /' conftest.$ac_ext >&5
14262
14263 cat >conftest.$ac_ext <<_ACEOF
14264 #line $LINENO "configure"
14265 /* confdefs.h.  */
14266 _ACEOF
14267 cat confdefs.h >>conftest.$ac_ext
14268 cat >>conftest.$ac_ext <<_ACEOF
14269 /* end confdefs.h.  */
14270 $ac_includes_default
14271 int
14272 main ()
14273 {
14274 static int test_array [1 - 2 * !(((long) (sizeof (int *))) < 0)];
14275 test_array [0] = 0
14276
14277   ;
14278   return 0;
14279 }
14280 _ACEOF
14281 rm -f conftest.$ac_objext
14282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14283   (eval $ac_compile) 2>&5
14284   ac_status=$?
14285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14286   (exit $ac_status); } &&
14287          { ac_try='test -s conftest.$ac_objext'
14288   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14289   (eval $ac_try) 2>&5
14290   ac_status=$?
14291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14292   (exit $ac_status); }; }; then
14293   ac_hi=-1 ac_mid=-1
14294   while :; do
14295     cat >conftest.$ac_ext <<_ACEOF
14296 #line $LINENO "configure"
14297 /* confdefs.h.  */
14298 _ACEOF
14299 cat confdefs.h >>conftest.$ac_ext
14300 cat >>conftest.$ac_ext <<_ACEOF
14301 /* end confdefs.h.  */
14302 $ac_includes_default
14303 int
14304 main ()
14305 {
14306 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= $ac_mid)];
14307 test_array [0] = 0
14308
14309   ;
14310   return 0;
14311 }
14312 _ACEOF
14313 rm -f conftest.$ac_objext
14314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14315   (eval $ac_compile) 2>&5
14316   ac_status=$?
14317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14318   (exit $ac_status); } &&
14319          { ac_try='test -s conftest.$ac_objext'
14320   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14321   (eval $ac_try) 2>&5
14322   ac_status=$?
14323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14324   (exit $ac_status); }; }; then
14325   ac_lo=$ac_mid; break
14326 else
14327   echo "$as_me: failed program was:" >&5
14328 sed 's/^/| /' conftest.$ac_ext >&5
14329
14330 ac_hi=`expr '(' $ac_mid ')' - 1`
14331                        if test $ac_mid -le $ac_hi; then
14332                          ac_lo= ac_hi=
14333                          break
14334                        fi
14335                        ac_mid=`expr 2 '*' $ac_mid`
14336 fi
14337 rm -f conftest.$ac_objext conftest.$ac_ext
14338   done
14339 else
14340   echo "$as_me: failed program was:" >&5
14341 sed 's/^/| /' conftest.$ac_ext >&5
14342
14343 ac_lo= ac_hi=
14344 fi
14345 rm -f conftest.$ac_objext conftest.$ac_ext
14346 fi
14347 rm -f conftest.$ac_objext conftest.$ac_ext
14348 # Binary search between lo and hi bounds.
14349 while test "x$ac_lo" != "x$ac_hi"; do
14350   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
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 int
14360 main ()
14361 {
14362 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
14363 test_array [0] = 0
14364
14365   ;
14366   return 0;
14367 }
14368 _ACEOF
14369 rm -f conftest.$ac_objext
14370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14371   (eval $ac_compile) 2>&5
14372   ac_status=$?
14373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14374   (exit $ac_status); } &&
14375          { ac_try='test -s conftest.$ac_objext'
14376   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14377   (eval $ac_try) 2>&5
14378   ac_status=$?
14379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14380   (exit $ac_status); }; }; then
14381   ac_hi=$ac_mid
14382 else
14383   echo "$as_me: failed program was:" >&5
14384 sed 's/^/| /' conftest.$ac_ext >&5
14385
14386 ac_lo=`expr '(' $ac_mid ')' + 1`
14387 fi
14388 rm -f conftest.$ac_objext conftest.$ac_ext
14389 done
14390 case $ac_lo in
14391 ?*) ac_cv_sizeof_int_p=$ac_lo;;
14392 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
14393 See \`config.log' for more details." >&5
14394 echo "$as_me: error: cannot compute sizeof (int *), 77
14395 See \`config.log' for more details." >&2;}
14396    { (exit 1); exit 1; }; } ;;
14397 esac
14398 else
14399   if test "$cross_compiling" = yes; then
14400   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14401 See \`config.log' for more details." >&5
14402 echo "$as_me: error: cannot run test program while cross compiling
14403 See \`config.log' for more details." >&2;}
14404    { (exit 1); exit 1; }; }
14405 else
14406   cat >conftest.$ac_ext <<_ACEOF
14407 #line $LINENO "configure"
14408 /* confdefs.h.  */
14409 _ACEOF
14410 cat confdefs.h >>conftest.$ac_ext
14411 cat >>conftest.$ac_ext <<_ACEOF
14412 /* end confdefs.h.  */
14413 $ac_includes_default
14414 long longval () { return (long) (sizeof (int *)); }
14415 unsigned long ulongval () { return (long) (sizeof (int *)); }
14416 #include <stdio.h>
14417 #include <stdlib.h>
14418 int
14419 main ()
14420 {
14421
14422   FILE *f = fopen ("conftest.val", "w");
14423   if (! f)
14424     exit (1);
14425   if (((long) (sizeof (int *))) < 0)
14426     {
14427       long i = longval ();
14428       if (i != ((long) (sizeof (int *))))
14429         exit (1);
14430       fprintf (f, "%ld\n", i);
14431     }
14432   else
14433     {
14434       unsigned long i = ulongval ();
14435       if (i != ((long) (sizeof (int *))))
14436         exit (1);
14437       fprintf (f, "%lu\n", i);
14438     }
14439   exit (ferror (f) || fclose (f) != 0);
14440
14441   ;
14442   return 0;
14443 }
14444 _ACEOF
14445 rm -f conftest$ac_exeext
14446 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14447   (eval $ac_link) 2>&5
14448   ac_status=$?
14449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14450   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14451   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14452   (eval $ac_try) 2>&5
14453   ac_status=$?
14454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14455   (exit $ac_status); }; }; then
14456   ac_cv_sizeof_int_p=`cat conftest.val`
14457 else
14458   echo "$as_me: program exited with status $ac_status" >&5
14459 echo "$as_me: failed program was:" >&5
14460 sed 's/^/| /' conftest.$ac_ext >&5
14461
14462 ( exit $ac_status )
14463 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
14464 See \`config.log' for more details." >&5
14465 echo "$as_me: error: cannot compute sizeof (int *), 77
14466 See \`config.log' for more details." >&2;}
14467    { (exit 1); exit 1; }; }
14468 fi
14469 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14470 fi
14471 fi
14472 rm -f conftest.val
14473 else
14474   ac_cv_sizeof_int_p=0
14475 fi
14476 fi
14477 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
14478 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6
14479 cat >>confdefs.h <<_ACEOF
14480 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
14481 _ACEOF
14482
14483
14484
14485 # Check for sys/types.h types
14486 echo "$as_me:$LINENO: checking for u_int type" >&5
14487 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6
14488 if test "${ac_cv_have_u_int+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  u_int 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_u_int="yes"
14521 else
14522   echo "$as_me: failed program was:" >&5
14523 sed 's/^/| /' conftest.$ac_ext >&5
14524
14525  ac_cv_have_u_int="no"
14526
14527 fi
14528 rm -f conftest.$ac_objext conftest.$ac_ext
14529
14530 fi
14531 echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
14532 echo "${ECHO_T}$ac_cv_have_u_int" >&6
14533 if test "x$ac_cv_have_u_int" = "xyes" ; then
14534    cat >>confdefs.h <<\_ACEOF
14535 #define HAVE_U_INT 1
14536 _ACEOF
14537
14538    have_u_int=1
14539 fi
14540
14541 echo "$as_me:$LINENO: checking for intmax_t type" >&5
14542 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6
14543 if test "${ac_cv_have_intmax_t+set}" = set; then
14544   echo $ECHO_N "(cached) $ECHO_C" >&6
14545 else
14546
14547    cat >conftest.$ac_ext <<_ACEOF
14548 #line $LINENO "configure"
14549 /* confdefs.h.  */
14550 _ACEOF
14551 cat confdefs.h >>conftest.$ac_ext
14552 cat >>conftest.$ac_ext <<_ACEOF
14553 /* end confdefs.h.  */
14554  #include <sys/types.h>
14555 int
14556 main ()
14557 {
14558  intmax_t a; a = 1;
14559   ;
14560   return 0;
14561 }
14562 _ACEOF
14563 rm -f conftest.$ac_objext
14564 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14565   (eval $ac_compile) 2>&5
14566   ac_status=$?
14567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14568   (exit $ac_status); } &&
14569          { ac_try='test -s conftest.$ac_objext'
14570   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14571   (eval $ac_try) 2>&5
14572   ac_status=$?
14573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14574   (exit $ac_status); }; }; then
14575    ac_cv_have_intmax_t="yes"
14576 else
14577   echo "$as_me: failed program was:" >&5
14578 sed 's/^/| /' conftest.$ac_ext >&5
14579
14580
14581          cat >conftest.$ac_ext <<_ACEOF
14582 #line $LINENO "configure"
14583 /* confdefs.h.  */
14584 _ACEOF
14585 cat confdefs.h >>conftest.$ac_ext
14586 cat >>conftest.$ac_ext <<_ACEOF
14587 /* end confdefs.h.  */
14588  #include <stdint.h>
14589 int
14590 main ()
14591 {
14592  intmax_t a; a = 1;
14593   ;
14594   return 0;
14595 }
14596 _ACEOF
14597 rm -f conftest.$ac_objext
14598 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14599   (eval $ac_compile) 2>&5
14600   ac_status=$?
14601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14602   (exit $ac_status); } &&
14603          { ac_try='test -s conftest.$ac_objext'
14604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14605   (eval $ac_try) 2>&5
14606   ac_status=$?
14607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14608   (exit $ac_status); }; }; then
14609    ac_cv_have_intmax_t="yes"
14610 else
14611   echo "$as_me: failed program was:" >&5
14612 sed 's/^/| /' conftest.$ac_ext >&5
14613
14614  ac_cv_have_intmax_t="no"
14615
14616 fi
14617 rm -f conftest.$ac_objext conftest.$ac_ext
14618
14619
14620 fi
14621 rm -f conftest.$ac_objext conftest.$ac_ext
14622
14623
14624 fi
14625 echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
14626 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6
14627 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
14628    cat >>confdefs.h <<\_ACEOF
14629 #define HAVE_INTMAX_T 1
14630 _ACEOF
14631
14632    have_intmax_t=1
14633 fi
14634
14635
14636 echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
14637 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6
14638 if test "${ac_cv_have_u_intmax_t+set}" = set; then
14639   echo $ECHO_N "(cached) $ECHO_C" >&6
14640 else
14641
14642    cat >conftest.$ac_ext <<_ACEOF
14643 #line $LINENO "configure"
14644 /* confdefs.h.  */
14645 _ACEOF
14646 cat confdefs.h >>conftest.$ac_ext
14647 cat >>conftest.$ac_ext <<_ACEOF
14648 /* end confdefs.h.  */
14649  #include <sys/types.h>
14650 int
14651 main ()
14652 {
14653  u_intmax_t a; a = 1;
14654   ;
14655   return 0;
14656 }
14657 _ACEOF
14658 rm -f conftest.$ac_objext
14659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14660   (eval $ac_compile) 2>&5
14661   ac_status=$?
14662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14663   (exit $ac_status); } &&
14664          { ac_try='test -s conftest.$ac_objext'
14665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14666   (eval $ac_try) 2>&5
14667   ac_status=$?
14668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14669   (exit $ac_status); }; }; then
14670    ac_cv_have_u_intmax_t="yes"
14671 else
14672   echo "$as_me: failed program was:" >&5
14673 sed 's/^/| /' conftest.$ac_ext >&5
14674
14675
14676          cat >conftest.$ac_ext <<_ACEOF
14677 #line $LINENO "configure"
14678 /* confdefs.h.  */
14679 _ACEOF
14680 cat confdefs.h >>conftest.$ac_ext
14681 cat >>conftest.$ac_ext <<_ACEOF
14682 /* end confdefs.h.  */
14683  #include <stdint.h>
14684 int
14685 main ()
14686 {
14687  u_intmax_t a; a = 1;
14688   ;
14689   return 0;
14690 }
14691 _ACEOF
14692 rm -f conftest.$ac_objext
14693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14694   (eval $ac_compile) 2>&5
14695   ac_status=$?
14696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14697   (exit $ac_status); } &&
14698          { ac_try='test -s conftest.$ac_objext'
14699   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14700   (eval $ac_try) 2>&5
14701   ac_status=$?
14702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14703   (exit $ac_status); }; }; then
14704    ac_cv_have_u_intmax_t="yes"
14705 else
14706   echo "$as_me: failed program was:" >&5
14707 sed 's/^/| /' conftest.$ac_ext >&5
14708
14709  ac_cv_have_u_intmax_t="no"
14710
14711 fi
14712 rm -f conftest.$ac_objext conftest.$ac_ext
14713
14714
14715 fi
14716 rm -f conftest.$ac_objext conftest.$ac_ext
14717
14718 fi
14719 echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
14720 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6
14721 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
14722    cat >>confdefs.h <<\_ACEOF
14723 #define HAVE_U_INTMAX_T 1
14724 _ACEOF
14725
14726    have_u_intmax_t=1
14727 fi
14728
14729
14730 echo "$as_me:$LINENO: checking for intXX_t types" >&5
14731 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6
14732 if test "${ac_cv_have_intxx_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  int8_t a; int16_t b; int32_t c; a = b = c = 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_intxx_t="yes"
14765 else
14766   echo "$as_me: failed program was:" >&5
14767 sed 's/^/| /' conftest.$ac_ext >&5
14768
14769  ac_cv_have_intxx_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_intxx_t" >&5
14776 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6
14777 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
14778    cat >>confdefs.h <<\_ACEOF
14779 #define HAVE_INTXX_T 1
14780 _ACEOF
14781
14782    have_intxx_t=1
14783 fi
14784
14785 echo "$as_me:$LINENO: checking for int64_t type" >&5
14786 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6
14787 if test "${ac_cv_have_int64_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  int64_t a; a = 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_int64_t="yes"
14820 else
14821   echo "$as_me: failed program was:" >&5
14822 sed 's/^/| /' conftest.$ac_ext >&5
14823
14824  ac_cv_have_int64_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_int64_t" >&5
14831 echo "${ECHO_T}$ac_cv_have_int64_t" >&6
14832 if test "x$ac_cv_have_int64_t" = "xyes" ; then
14833    cat >>confdefs.h <<\_ACEOF
14834 #define HAVE_INT64_T 1
14835 _ACEOF
14836
14837    have_int64_t=1
14838 fi
14839
14840 echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
14841 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6
14842 if test "${ac_cv_have_u_intxx_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_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 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_intxx_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_intxx_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_intxx_t" >&5
14886 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6
14887 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
14888    cat >>confdefs.h <<\_ACEOF
14889 #define HAVE_U_INTXX_T 1
14890 _ACEOF
14891
14892    have_u_intxx_t=1
14893 fi
14894
14895 echo "$as_me:$LINENO: checking for u_int64_t types" >&5
14896 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6
14897 if test "${ac_cv_have_u_int64_t+set}" = set; then
14898   echo $ECHO_N "(cached) $ECHO_C" >&6
14899 else
14900
14901    cat >conftest.$ac_ext <<_ACEOF
14902 #line $LINENO "configure"
14903 /* confdefs.h.  */
14904 _ACEOF
14905 cat confdefs.h >>conftest.$ac_ext
14906 cat >>conftest.$ac_ext <<_ACEOF
14907 /* end confdefs.h.  */
14908  #include <sys/types.h>
14909 int
14910 main ()
14911 {
14912  u_int64_t a; a = 1;
14913   ;
14914   return 0;
14915 }
14916 _ACEOF
14917 rm -f conftest.$ac_objext
14918 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14919   (eval $ac_compile) 2>&5
14920   ac_status=$?
14921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14922   (exit $ac_status); } &&
14923          { ac_try='test -s conftest.$ac_objext'
14924   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14925   (eval $ac_try) 2>&5
14926   ac_status=$?
14927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14928   (exit $ac_status); }; }; then
14929    ac_cv_have_u_int64_t="yes"
14930 else
14931   echo "$as_me: failed program was:" >&5
14932 sed 's/^/| /' conftest.$ac_ext >&5
14933
14934  ac_cv_have_u_int64_t="no"
14935
14936 fi
14937 rm -f conftest.$ac_objext conftest.$ac_ext
14938
14939 fi
14940 echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
14941 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6
14942 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
14943    cat >>confdefs.h <<\_ACEOF
14944 #define HAVE_U_INT64_T 1
14945 _ACEOF
14946
14947    have_u_int64_t=1
14948 fi
14949
14950 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
14951            test "x$ac_cv_header_sys_bitypes_h" = "xyes")
14952 then
14953    echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
14954 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6
14955    cat >conftest.$ac_ext <<_ACEOF
14956 #line $LINENO "configure"
14957 /* confdefs.h.  */
14958 _ACEOF
14959 cat confdefs.h >>conftest.$ac_ext
14960 cat >>conftest.$ac_ext <<_ACEOF
14961 /* end confdefs.h.  */
14962  #include <sys/bitypes.h>
14963 int
14964 main ()
14965 {
14966  int8_t a; int16_t b; int32_t c;
14967         u_int8_t e; u_int16_t f; u_int32_t g;
14968         a = b = c = e = f = g = 1;
14969   ;
14970   return 0;
14971 }
14972 _ACEOF
14973 rm -f conftest.$ac_objext
14974 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14975   (eval $ac_compile) 2>&5
14976   ac_status=$?
14977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14978   (exit $ac_status); } &&
14979          { ac_try='test -s conftest.$ac_objext'
14980   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14981   (eval $ac_try) 2>&5
14982   ac_status=$?
14983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14984   (exit $ac_status); }; }; then
14985    cat >>confdefs.h <<\_ACEOF
14986 #define HAVE_U_INTXX_T 1
14987 _ACEOF
14988
14989         cat >>confdefs.h <<\_ACEOF
14990 #define HAVE_INTXX_T 1
14991 _ACEOF
14992
14993         cat >>confdefs.h <<\_ACEOF
14994 #define HAVE_SYS_BITYPES_H 1
14995 _ACEOF
14996
14997         echo "$as_me:$LINENO: result: yes" >&5
14998 echo "${ECHO_T}yes" >&6
14999 else
15000   echo "$as_me: failed program was:" >&5
15001 sed 's/^/| /' conftest.$ac_ext >&5
15002
15003  echo "$as_me:$LINENO: result: no" >&5
15004 echo "${ECHO_T}no" >&6
15005
15006 fi
15007 rm -f conftest.$ac_objext conftest.$ac_ext
15008 fi
15009
15010 if test -z "$have_u_intxx_t" ; then
15011    echo "$as_me:$LINENO: checking for uintXX_t types" >&5
15012 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6
15013 if test "${ac_cv_have_uintxx_t+set}" = set; then
15014   echo $ECHO_N "(cached) $ECHO_C" >&6
15015 else
15016
15017       cat >conftest.$ac_ext <<_ACEOF
15018 #line $LINENO "configure"
15019 /* confdefs.h.  */
15020 _ACEOF
15021 cat confdefs.h >>conftest.$ac_ext
15022 cat >>conftest.$ac_ext <<_ACEOF
15023 /* end confdefs.h.  */
15024  #include <sys/types.h>
15025 int
15026 main ()
15027 {
15028  uint8_t a; uint16_t b;
15029            uint32_t c; a = b = c = 1;
15030   ;
15031   return 0;
15032 }
15033 _ACEOF
15034 rm -f conftest.$ac_objext
15035 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15036   (eval $ac_compile) 2>&5
15037   ac_status=$?
15038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15039   (exit $ac_status); } &&
15040          { ac_try='test -s conftest.$ac_objext'
15041   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15042   (eval $ac_try) 2>&5
15043   ac_status=$?
15044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15045   (exit $ac_status); }; }; then
15046    ac_cv_have_uintxx_t="yes"
15047 else
15048   echo "$as_me: failed program was:" >&5
15049 sed 's/^/| /' conftest.$ac_ext >&5
15050
15051  ac_cv_have_uintxx_t="no"
15052
15053 fi
15054 rm -f conftest.$ac_objext conftest.$ac_ext
15055
15056 fi
15057 echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
15058 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6
15059    if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
15060       cat >>confdefs.h <<\_ACEOF
15061 #define HAVE_UINTXX_T 1
15062 _ACEOF
15063
15064    fi
15065 fi
15066
15067 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
15068           test "x$ac_cv_header_sys_bitypes_h" = "xyes")
15069 then
15070    echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
15071 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6
15072    cat >conftest.$ac_ext <<_ACEOF
15073 #line $LINENO "configure"
15074 /* confdefs.h.  */
15075 _ACEOF
15076 cat confdefs.h >>conftest.$ac_ext
15077 cat >>conftest.$ac_ext <<_ACEOF
15078 /* end confdefs.h.  */
15079  #include <sys/bitypes.h>
15080 int
15081 main ()
15082 {
15083  int64_t a; u_int64_t b;
15084        a = b = 1;
15085   ;
15086   return 0;
15087 }
15088 _ACEOF
15089 rm -f conftest.$ac_objext
15090 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15091   (eval $ac_compile) 2>&5
15092   ac_status=$?
15093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15094   (exit $ac_status); } &&
15095          { ac_try='test -s conftest.$ac_objext'
15096   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15097   (eval $ac_try) 2>&5
15098   ac_status=$?
15099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15100   (exit $ac_status); }; }; then
15101    cat >>confdefs.h <<\_ACEOF
15102 #define HAVE_U_INT64_T 1
15103 _ACEOF
15104
15105        cat >>confdefs.h <<\_ACEOF
15106 #define HAVE_INT64_T 1
15107 _ACEOF
15108
15109        echo "$as_me:$LINENO: result: yes" >&5
15110 echo "${ECHO_T}yes" >&6
15111 else
15112   echo "$as_me: failed program was:" >&5
15113 sed 's/^/| /' conftest.$ac_ext >&5
15114
15115  echo "$as_me:$LINENO: result: no" >&5
15116 echo "${ECHO_T}no" >&6
15117
15118 fi
15119 rm -f conftest.$ac_objext conftest.$ac_ext
15120 fi
15121
15122 if (test -z "$have_uintxx_t" && \
15123           test "x$ac_cv_header_sys_bitypes_h" = "xyes")
15124 then
15125    echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
15126 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6
15127    cat >conftest.$ac_ext <<_ACEOF
15128 #line $LINENO "configure"
15129 /* confdefs.h.  */
15130 _ACEOF
15131 cat confdefs.h >>conftest.$ac_ext
15132 cat >>conftest.$ac_ext <<_ACEOF
15133 /* end confdefs.h.  */
15134  #include <sys/bitypes.h>
15135 int
15136 main ()
15137 {
15138  uint8_t a; uint16_t b;
15139           uint32_t c; a = b = c = 1;
15140   ;
15141   return 0;
15142 }
15143 _ACEOF
15144 rm -f conftest.$ac_objext
15145 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15146   (eval $ac_compile) 2>&5
15147   ac_status=$?
15148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15149   (exit $ac_status); } &&
15150          { ac_try='test -s conftest.$ac_objext'
15151   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15152   (eval $ac_try) 2>&5
15153   ac_status=$?
15154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15155   (exit $ac_status); }; }; then
15156    cat >>confdefs.h <<\_ACEOF
15157 #define HAVE_UINTXX_T 1
15158 _ACEOF
15159
15160        echo "$as_me:$LINENO: result: yes" >&5
15161 echo "${ECHO_T}yes" >&6
15162 else
15163   echo "$as_me: failed program was:" >&5
15164 sed 's/^/| /' conftest.$ac_ext >&5
15165
15166  echo "$as_me:$LINENO: result: no" >&5
15167 echo "${ECHO_T}no" >&6
15168
15169 fi
15170 rm -f conftest.$ac_objext conftest.$ac_ext
15171
15172 fi
15173
15174
15175
15176
15177
15178
15179
15180
15181
15182
15183
15184
15185
15186
15187
15188
15189
15190 for ac_func in \
15191         fork \
15192         getcwd \
15193         gethostname \
15194         getpid \
15195         gettimeofday \
15196         setpgid \
15197         setpgrp \
15198         setsid \
15199         signal \
15200         strerror \
15201         strncmp \
15202         strncpy \
15203         vfprintf \
15204
15205 do
15206 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15207 echo "$as_me:$LINENO: checking for $ac_func" >&5
15208 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15209 if eval "test \"\${$as_ac_var+set}\" = set"; then
15210   echo $ECHO_N "(cached) $ECHO_C" >&6
15211 else
15212   cat >conftest.$ac_ext <<_ACEOF
15213 #line $LINENO "configure"
15214 /* confdefs.h.  */
15215 _ACEOF
15216 cat confdefs.h >>conftest.$ac_ext
15217 cat >>conftest.$ac_ext <<_ACEOF
15218 /* end confdefs.h.  */
15219 /* System header to define __stub macros and hopefully few prototypes,
15220     which can conflict with char $ac_func (); below.
15221     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15222     <limits.h> exists even on freestanding compilers.  */
15223 #ifdef __STDC__
15224 # include <limits.h>
15225 #else
15226 # include <assert.h>
15227 #endif
15228 /* Override any gcc2 internal prototype to avoid an error.  */
15229 #ifdef __cplusplus
15230 extern "C"
15231 {
15232 #endif
15233 /* We use char because int might match the return type of a gcc2
15234    builtin and then its argument prototype would still apply.  */
15235 char $ac_func ();
15236 /* The GNU C library defines this for functions which it implements
15237     to always fail with ENOSYS.  Some functions are actually named
15238     something starting with __ and the normal name is an alias.  */
15239 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15240 choke me
15241 #else
15242 char (*f) () = $ac_func;
15243 #endif
15244 #ifdef __cplusplus
15245 }
15246 #endif
15247
15248 int
15249 main ()
15250 {
15251 return f != $ac_func;
15252   ;
15253   return 0;
15254 }
15255 _ACEOF
15256 rm -f conftest.$ac_objext conftest$ac_exeext
15257 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15258   (eval $ac_link) 2>&5
15259   ac_status=$?
15260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15261   (exit $ac_status); } &&
15262          { ac_try='test -s conftest$ac_exeext'
15263   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15264   (eval $ac_try) 2>&5
15265   ac_status=$?
15266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15267   (exit $ac_status); }; }; then
15268   eval "$as_ac_var=yes"
15269 else
15270   echo "$as_me: failed program was:" >&5
15271 sed 's/^/| /' conftest.$ac_ext >&5
15272
15273 eval "$as_ac_var=no"
15274 fi
15275 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15276 fi
15277 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15278 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15279 if test `eval echo '${'$as_ac_var'}'` = yes; then
15280   cat >>confdefs.h <<_ACEOF
15281 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15282 _ACEOF
15283
15284 else
15285   echo 'configure: cannot find needed function.'; exit 1
15286
15287 fi
15288 done
15289
15290
15291
15292 for ac_func in fchdir
15293 do
15294 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15295 echo "$as_me:$LINENO: checking for $ac_func" >&5
15296 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15297 if eval "test \"\${$as_ac_var+set}\" = set"; then
15298   echo $ECHO_N "(cached) $ECHO_C" >&6
15299 else
15300   cat >conftest.$ac_ext <<_ACEOF
15301 #line $LINENO "configure"
15302 /* confdefs.h.  */
15303 _ACEOF
15304 cat confdefs.h >>conftest.$ac_ext
15305 cat >>conftest.$ac_ext <<_ACEOF
15306 /* end confdefs.h.  */
15307 /* System header to define __stub macros and hopefully few prototypes,
15308     which can conflict with char $ac_func (); below.
15309     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15310     <limits.h> exists even on freestanding compilers.  */
15311 #ifdef __STDC__
15312 # include <limits.h>
15313 #else
15314 # include <assert.h>
15315 #endif
15316 /* Override any gcc2 internal prototype to avoid an error.  */
15317 #ifdef __cplusplus
15318 extern "C"
15319 {
15320 #endif
15321 /* We use char because int might match the return type of a gcc2
15322    builtin and then its argument prototype would still apply.  */
15323 char $ac_func ();
15324 /* The GNU C library defines this for functions which it implements
15325     to always fail with ENOSYS.  Some functions are actually named
15326     something starting with __ and the normal name is an alias.  */
15327 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15328 choke me
15329 #else
15330 char (*f) () = $ac_func;
15331 #endif
15332 #ifdef __cplusplus
15333 }
15334 #endif
15335
15336 int
15337 main ()
15338 {
15339 return f != $ac_func;
15340   ;
15341   return 0;
15342 }
15343 _ACEOF
15344 rm -f conftest.$ac_objext conftest$ac_exeext
15345 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15346   (eval $ac_link) 2>&5
15347   ac_status=$?
15348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15349   (exit $ac_status); } &&
15350          { ac_try='test -s conftest$ac_exeext'
15351   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15352   (eval $ac_try) 2>&5
15353   ac_status=$?
15354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15355   (exit $ac_status); }; }; then
15356   eval "$as_ac_var=yes"
15357 else
15358   echo "$as_me: failed program was:" >&5
15359 sed 's/^/| /' conftest.$ac_ext >&5
15360
15361 eval "$as_ac_var=no"
15362 fi
15363 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15364 fi
15365 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15366 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15367 if test `eval echo '${'$as_ac_var'}'` = yes; then
15368   cat >>confdefs.h <<_ACEOF
15369 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15370 _ACEOF
15371  cat >>confdefs.h <<\_ACEOF
15372 #define HAVE_FCHDIR 1
15373 _ACEOF
15374
15375 fi
15376 done
15377
15378
15379 for ac_func in strtoll
15380 do
15381 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15382 echo "$as_me:$LINENO: checking for $ac_func" >&5
15383 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15384 if eval "test \"\${$as_ac_var+set}\" = set"; then
15385   echo $ECHO_N "(cached) $ECHO_C" >&6
15386 else
15387   cat >conftest.$ac_ext <<_ACEOF
15388 #line $LINENO "configure"
15389 /* confdefs.h.  */
15390 _ACEOF
15391 cat confdefs.h >>conftest.$ac_ext
15392 cat >>conftest.$ac_ext <<_ACEOF
15393 /* end confdefs.h.  */
15394 /* System header to define __stub macros and hopefully few prototypes,
15395     which can conflict with char $ac_func (); below.
15396     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15397     <limits.h> exists even on freestanding compilers.  */
15398 #ifdef __STDC__
15399 # include <limits.h>
15400 #else
15401 # include <assert.h>
15402 #endif
15403 /* Override any gcc2 internal prototype to avoid an error.  */
15404 #ifdef __cplusplus
15405 extern "C"
15406 {
15407 #endif
15408 /* We use char because int might match the return type of a gcc2
15409    builtin and then its argument prototype would still apply.  */
15410 char $ac_func ();
15411 /* The GNU C library defines this for functions which it implements
15412     to always fail with ENOSYS.  Some functions are actually named
15413     something starting with __ and the normal name is an alias.  */
15414 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15415 choke me
15416 #else
15417 char (*f) () = $ac_func;
15418 #endif
15419 #ifdef __cplusplus
15420 }
15421 #endif
15422
15423 int
15424 main ()
15425 {
15426 return f != $ac_func;
15427   ;
15428   return 0;
15429 }
15430 _ACEOF
15431 rm -f conftest.$ac_objext conftest$ac_exeext
15432 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15433   (eval $ac_link) 2>&5
15434   ac_status=$?
15435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15436   (exit $ac_status); } &&
15437          { ac_try='test -s conftest$ac_exeext'
15438   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15439   (eval $ac_try) 2>&5
15440   ac_status=$?
15441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15442   (exit $ac_status); }; }; then
15443   eval "$as_ac_var=yes"
15444 else
15445   echo "$as_me: failed program was:" >&5
15446 sed 's/^/| /' conftest.$ac_ext >&5
15447
15448 eval "$as_ac_var=no"
15449 fi
15450 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15451 fi
15452 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15453 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15454 if test `eval echo '${'$as_ac_var'}'` = yes; then
15455   cat >>confdefs.h <<_ACEOF
15456 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15457 _ACEOF
15458  cat >>confdefs.h <<\_ACEOF
15459 #define HAVE_STRTOLL 1
15460 _ACEOF
15461
15462 fi
15463 done
15464
15465
15466
15467 for ac_func in chflags
15468 do
15469 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15470 echo "$as_me:$LINENO: checking for $ac_func" >&5
15471 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15472 if eval "test \"\${$as_ac_var+set}\" = set"; then
15473   echo $ECHO_N "(cached) $ECHO_C" >&6
15474 else
15475   cat >conftest.$ac_ext <<_ACEOF
15476 #line $LINENO "configure"
15477 /* confdefs.h.  */
15478 _ACEOF
15479 cat confdefs.h >>conftest.$ac_ext
15480 cat >>conftest.$ac_ext <<_ACEOF
15481 /* end confdefs.h.  */
15482 /* System header to define __stub macros and hopefully few prototypes,
15483     which can conflict with char $ac_func (); below.
15484     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15485     <limits.h> exists even on freestanding compilers.  */
15486 #ifdef __STDC__
15487 # include <limits.h>
15488 #else
15489 # include <assert.h>
15490 #endif
15491 /* Override any gcc2 internal prototype to avoid an error.  */
15492 #ifdef __cplusplus
15493 extern "C"
15494 {
15495 #endif
15496 /* We use char because int might match the return type of a gcc2
15497    builtin and then its argument prototype would still apply.  */
15498 char $ac_func ();
15499 /* The GNU C library defines this for functions which it implements
15500     to always fail with ENOSYS.  Some functions are actually named
15501     something starting with __ and the normal name is an alias.  */
15502 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15503 choke me
15504 #else
15505 char (*f) () = $ac_func;
15506 #endif
15507 #ifdef __cplusplus
15508 }
15509 #endif
15510
15511 int
15512 main ()
15513 {
15514 return f != $ac_func;
15515   ;
15516   return 0;
15517 }
15518 _ACEOF
15519 rm -f conftest.$ac_objext conftest$ac_exeext
15520 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15521   (eval $ac_link) 2>&5
15522   ac_status=$?
15523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15524   (exit $ac_status); } &&
15525          { ac_try='test -s conftest$ac_exeext'
15526   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15527   (eval $ac_try) 2>&5
15528   ac_status=$?
15529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15530   (exit $ac_status); }; }; then
15531   eval "$as_ac_var=yes"
15532 else
15533   echo "$as_me: failed program was:" >&5
15534 sed 's/^/| /' conftest.$ac_ext >&5
15535
15536 eval "$as_ac_var=no"
15537 fi
15538 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15539 fi
15540 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15541 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15542 if test `eval echo '${'$as_ac_var'}'` = yes; then
15543   cat >>confdefs.h <<_ACEOF
15544 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15545 _ACEOF
15546
15547 fi
15548 done
15549
15550
15551
15552
15553
15554
15555 for ac_func in snprintf vsnprintf gethostid getdomainname
15556 do
15557 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15558 echo "$as_me:$LINENO: checking for $ac_func" >&5
15559 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15560 if eval "test \"\${$as_ac_var+set}\" = set"; then
15561   echo $ECHO_N "(cached) $ECHO_C" >&6
15562 else
15563   cat >conftest.$ac_ext <<_ACEOF
15564 #line $LINENO "configure"
15565 /* confdefs.h.  */
15566 _ACEOF
15567 cat confdefs.h >>conftest.$ac_ext
15568 cat >>conftest.$ac_ext <<_ACEOF
15569 /* end confdefs.h.  */
15570 /* System header to define __stub macros and hopefully few prototypes,
15571     which can conflict with char $ac_func (); below.
15572     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15573     <limits.h> exists even on freestanding compilers.  */
15574 #ifdef __STDC__
15575 # include <limits.h>
15576 #else
15577 # include <assert.h>
15578 #endif
15579 /* Override any gcc2 internal prototype to avoid an error.  */
15580 #ifdef __cplusplus
15581 extern "C"
15582 {
15583 #endif
15584 /* We use char because int might match the return type of a gcc2
15585    builtin and then its argument prototype would still apply.  */
15586 char $ac_func ();
15587 /* The GNU C library defines this for functions which it implements
15588     to always fail with ENOSYS.  Some functions are actually named
15589     something starting with __ and the normal name is an alias.  */
15590 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15591 choke me
15592 #else
15593 char (*f) () = $ac_func;
15594 #endif
15595 #ifdef __cplusplus
15596 }
15597 #endif
15598
15599 int
15600 main ()
15601 {
15602 return f != $ac_func;
15603   ;
15604   return 0;
15605 }
15606 _ACEOF
15607 rm -f conftest.$ac_objext conftest$ac_exeext
15608 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15609   (eval $ac_link) 2>&5
15610   ac_status=$?
15611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15612   (exit $ac_status); } &&
15613          { ac_try='test -s conftest$ac_exeext'
15614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15615   (eval $ac_try) 2>&5
15616   ac_status=$?
15617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15618   (exit $ac_status); }; }; then
15619   eval "$as_ac_var=yes"
15620 else
15621   echo "$as_me: failed program was:" >&5
15622 sed 's/^/| /' conftest.$ac_ext >&5
15623
15624 eval "$as_ac_var=no"
15625 fi
15626 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15627 fi
15628 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15629 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15630 if test `eval echo '${'$as_ac_var'}'` = yes; then
15631   cat >>confdefs.h <<_ACEOF
15632 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15633 _ACEOF
15634
15635 fi
15636 done
15637
15638
15639
15640
15641
15642
15643 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
15644 do
15645 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15646 echo "$as_me:$LINENO: checking for $ac_func" >&5
15647 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15648 if eval "test \"\${$as_ac_var+set}\" = set"; then
15649   echo $ECHO_N "(cached) $ECHO_C" >&6
15650 else
15651   cat >conftest.$ac_ext <<_ACEOF
15652 #line $LINENO "configure"
15653 /* confdefs.h.  */
15654 _ACEOF
15655 cat confdefs.h >>conftest.$ac_ext
15656 cat >>conftest.$ac_ext <<_ACEOF
15657 /* end confdefs.h.  */
15658 /* System header to define __stub macros and hopefully few prototypes,
15659     which can conflict with char $ac_func (); below.
15660     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15661     <limits.h> exists even on freestanding compilers.  */
15662 #ifdef __STDC__
15663 # include <limits.h>
15664 #else
15665 # include <assert.h>
15666 #endif
15667 /* Override any gcc2 internal prototype to avoid an error.  */
15668 #ifdef __cplusplus
15669 extern "C"
15670 {
15671 #endif
15672 /* We use char because int might match the return type of a gcc2
15673    builtin and then its argument prototype would still apply.  */
15674 char $ac_func ();
15675 /* The GNU C library defines this for functions which it implements
15676     to always fail with ENOSYS.  Some functions are actually named
15677     something starting with __ and the normal name is an alias.  */
15678 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15679 choke me
15680 #else
15681 char (*f) () = $ac_func;
15682 #endif
15683 #ifdef __cplusplus
15684 }
15685 #endif
15686
15687 int
15688 main ()
15689 {
15690 return f != $ac_func;
15691   ;
15692   return 0;
15693 }
15694 _ACEOF
15695 rm -f conftest.$ac_objext conftest$ac_exeext
15696 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15697   (eval $ac_link) 2>&5
15698   ac_status=$?
15699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15700   (exit $ac_status); } &&
15701          { ac_try='test -s conftest$ac_exeext'
15702   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15703   (eval $ac_try) 2>&5
15704   ac_status=$?
15705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15706   (exit $ac_status); }; }; then
15707   eval "$as_ac_var=yes"
15708 else
15709   echo "$as_me: failed program was:" >&5
15710 sed 's/^/| /' conftest.$ac_ext >&5
15711
15712 eval "$as_ac_var=no"
15713 fi
15714 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15715 fi
15716 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15717 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15718 if test `eval echo '${'$as_ac_var'}'` = yes; then
15719   cat >>confdefs.h <<_ACEOF
15720 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15721 _ACEOF
15722
15723 fi
15724 done
15725
15726
15727 # If resolver functions are not in libc check for -lnsl or -lresolv.
15728 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
15729 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
15730 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
15731   echo $ECHO_N "(cached) $ECHO_C" >&6
15732 else
15733   cat >conftest.$ac_ext <<_ACEOF
15734 #line $LINENO "configure"
15735 /* confdefs.h.  */
15736 _ACEOF
15737 cat confdefs.h >>conftest.$ac_ext
15738 cat >>conftest.$ac_ext <<_ACEOF
15739 /* end confdefs.h.  */
15740 /* System header to define __stub macros and hopefully few prototypes,
15741     which can conflict with char gethostbyname_r (); below.
15742     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15743     <limits.h> exists even on freestanding compilers.  */
15744 #ifdef __STDC__
15745 # include <limits.h>
15746 #else
15747 # include <assert.h>
15748 #endif
15749 /* Override any gcc2 internal prototype to avoid an error.  */
15750 #ifdef __cplusplus
15751 extern "C"
15752 {
15753 #endif
15754 /* We use char because int might match the return type of a gcc2
15755    builtin and then its argument prototype would still apply.  */
15756 char gethostbyname_r ();
15757 /* The GNU C library defines this for functions which it implements
15758     to always fail with ENOSYS.  Some functions are actually named
15759     something starting with __ and the normal name is an alias.  */
15760 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
15761 choke me
15762 #else
15763 char (*f) () = gethostbyname_r;
15764 #endif
15765 #ifdef __cplusplus
15766 }
15767 #endif
15768
15769 int
15770 main ()
15771 {
15772 return f != gethostbyname_r;
15773   ;
15774   return 0;
15775 }
15776 _ACEOF
15777 rm -f conftest.$ac_objext conftest$ac_exeext
15778 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15779   (eval $ac_link) 2>&5
15780   ac_status=$?
15781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15782   (exit $ac_status); } &&
15783          { ac_try='test -s conftest$ac_exeext'
15784   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15785   (eval $ac_try) 2>&5
15786   ac_status=$?
15787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15788   (exit $ac_status); }; }; then
15789   ac_cv_func_gethostbyname_r=yes
15790 else
15791   echo "$as_me: failed program was:" >&5
15792 sed 's/^/| /' conftest.$ac_ext >&5
15793
15794 ac_cv_func_gethostbyname_r=no
15795 fi
15796 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15797 fi
15798 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
15799 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
15800 if test $ac_cv_func_gethostbyname_r = yes; then
15801   echo "$as_me:$LINENO: result: using libc's resolver" >&5
15802 echo "${ECHO_T}using libc's resolver" >&6
15803 else
15804
15805 echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
15806 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6
15807 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
15808   echo $ECHO_N "(cached) $ECHO_C" >&6
15809 else
15810   ac_check_lib_save_LIBS=$LIBS
15811 LIBS="-lnsl  $LIBS"
15812 cat >conftest.$ac_ext <<_ACEOF
15813 #line $LINENO "configure"
15814 /* confdefs.h.  */
15815 _ACEOF
15816 cat confdefs.h >>conftest.$ac_ext
15817 cat >>conftest.$ac_ext <<_ACEOF
15818 /* end confdefs.h.  */
15819
15820 /* Override any gcc2 internal prototype to avoid an error.  */
15821 #ifdef __cplusplus
15822 extern "C"
15823 #endif
15824 /* We use char because int might match the return type of a gcc2
15825    builtin and then its argument prototype would still apply.  */
15826 char gethostbyname_r ();
15827 int
15828 main ()
15829 {
15830 gethostbyname_r ();
15831   ;
15832   return 0;
15833 }
15834 _ACEOF
15835 rm -f conftest.$ac_objext conftest$ac_exeext
15836 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15837   (eval $ac_link) 2>&5
15838   ac_status=$?
15839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15840   (exit $ac_status); } &&
15841          { ac_try='test -s conftest$ac_exeext'
15842   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15843   (eval $ac_try) 2>&5
15844   ac_status=$?
15845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15846   (exit $ac_status); }; }; then
15847   ac_cv_lib_nsl_gethostbyname_r=yes
15848 else
15849   echo "$as_me: failed program was:" >&5
15850 sed 's/^/| /' conftest.$ac_ext >&5
15851
15852 ac_cv_lib_nsl_gethostbyname_r=no
15853 fi
15854 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15855 LIBS=$ac_check_lib_save_LIBS
15856 fi
15857 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
15858 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6
15859 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
15860   cat >>confdefs.h <<_ACEOF
15861 #define HAVE_LIBNSL 1
15862 _ACEOF
15863
15864   LIBS="-lnsl $LIBS"
15865
15866 fi
15867
15868
15869 echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
15870 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6
15871 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
15872   echo $ECHO_N "(cached) $ECHO_C" >&6
15873 else
15874   ac_check_lib_save_LIBS=$LIBS
15875 LIBS="-lresolv  $LIBS"
15876 cat >conftest.$ac_ext <<_ACEOF
15877 #line $LINENO "configure"
15878 /* confdefs.h.  */
15879 _ACEOF
15880 cat confdefs.h >>conftest.$ac_ext
15881 cat >>conftest.$ac_ext <<_ACEOF
15882 /* end confdefs.h.  */
15883
15884 /* Override any gcc2 internal prototype to avoid an error.  */
15885 #ifdef __cplusplus
15886 extern "C"
15887 #endif
15888 /* We use char because int might match the return type of a gcc2
15889    builtin and then its argument prototype would still apply.  */
15890 char gethostbyname_r ();
15891 int
15892 main ()
15893 {
15894 gethostbyname_r ();
15895   ;
15896   return 0;
15897 }
15898 _ACEOF
15899 rm -f conftest.$ac_objext conftest$ac_exeext
15900 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15901   (eval $ac_link) 2>&5
15902   ac_status=$?
15903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15904   (exit $ac_status); } &&
15905          { ac_try='test -s conftest$ac_exeext'
15906   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15907   (eval $ac_try) 2>&5
15908   ac_status=$?
15909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15910   (exit $ac_status); }; }; then
15911   ac_cv_lib_resolv_gethostbyname_r=yes
15912 else
15913   echo "$as_me: failed program was:" >&5
15914 sed 's/^/| /' conftest.$ac_ext >&5
15915
15916 ac_cv_lib_resolv_gethostbyname_r=no
15917 fi
15918 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15919 LIBS=$ac_check_lib_save_LIBS
15920 fi
15921 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
15922 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6
15923 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
15924   cat >>confdefs.h <<_ACEOF
15925 #define HAVE_LIBRESOLV 1
15926 _ACEOF
15927
15928   LIBS="-lresolv $LIBS"
15929
15930 fi
15931
15932 fi
15933
15934
15935
15936 # Find where sockets are (especially for Solaris)
15937 echo "$as_me:$LINENO: checking for socket" >&5
15938 echo $ECHO_N "checking for socket... $ECHO_C" >&6
15939 if test "${ac_cv_func_socket+set}" = set; then
15940   echo $ECHO_N "(cached) $ECHO_C" >&6
15941 else
15942   cat >conftest.$ac_ext <<_ACEOF
15943 #line $LINENO "configure"
15944 /* confdefs.h.  */
15945 _ACEOF
15946 cat confdefs.h >>conftest.$ac_ext
15947 cat >>conftest.$ac_ext <<_ACEOF
15948 /* end confdefs.h.  */
15949 /* System header to define __stub macros and hopefully few prototypes,
15950     which can conflict with char socket (); below.
15951     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15952     <limits.h> exists even on freestanding compilers.  */
15953 #ifdef __STDC__
15954 # include <limits.h>
15955 #else
15956 # include <assert.h>
15957 #endif
15958 /* Override any gcc2 internal prototype to avoid an error.  */
15959 #ifdef __cplusplus
15960 extern "C"
15961 {
15962 #endif
15963 /* We use char because int might match the return type of a gcc2
15964    builtin and then its argument prototype would still apply.  */
15965 char socket ();
15966 /* The GNU C library defines this for functions which it implements
15967     to always fail with ENOSYS.  Some functions are actually named
15968     something starting with __ and the normal name is an alias.  */
15969 #if defined (__stub_socket) || defined (__stub___socket)
15970 choke me
15971 #else
15972 char (*f) () = socket;
15973 #endif
15974 #ifdef __cplusplus
15975 }
15976 #endif
15977
15978 int
15979 main ()
15980 {
15981 return f != socket;
15982   ;
15983   return 0;
15984 }
15985 _ACEOF
15986 rm -f conftest.$ac_objext conftest$ac_exeext
15987 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15988   (eval $ac_link) 2>&5
15989   ac_status=$?
15990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15991   (exit $ac_status); } &&
15992          { ac_try='test -s conftest$ac_exeext'
15993   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15994   (eval $ac_try) 2>&5
15995   ac_status=$?
15996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15997   (exit $ac_status); }; }; then
15998   ac_cv_func_socket=yes
15999 else
16000   echo "$as_me: failed program was:" >&5
16001 sed 's/^/| /' conftest.$ac_ext >&5
16002
16003 ac_cv_func_socket=no
16004 fi
16005 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16006 fi
16007 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
16008 echo "${ECHO_T}$ac_cv_func_socket" >&6
16009 if test $ac_cv_func_socket = yes; then
16010   echo "$as_me:$LINENO: result: using libc's socket" >&5
16011 echo "${ECHO_T}using libc's socket" >&6
16012 else
16013
16014 echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
16015 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6
16016 if test "${ac_cv_lib_xnet_socket+set}" = set; then
16017   echo $ECHO_N "(cached) $ECHO_C" >&6
16018 else
16019   ac_check_lib_save_LIBS=$LIBS
16020 LIBS="-lxnet  $LIBS"
16021 cat >conftest.$ac_ext <<_ACEOF
16022 #line $LINENO "configure"
16023 /* confdefs.h.  */
16024 _ACEOF
16025 cat confdefs.h >>conftest.$ac_ext
16026 cat >>conftest.$ac_ext <<_ACEOF
16027 /* end confdefs.h.  */
16028
16029 /* Override any gcc2 internal prototype to avoid an error.  */
16030 #ifdef __cplusplus
16031 extern "C"
16032 #endif
16033 /* We use char because int might match the return type of a gcc2
16034    builtin and then its argument prototype would still apply.  */
16035 char socket ();
16036 int
16037 main ()
16038 {
16039 socket ();
16040   ;
16041   return 0;
16042 }
16043 _ACEOF
16044 rm -f conftest.$ac_objext conftest$ac_exeext
16045 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16046   (eval $ac_link) 2>&5
16047   ac_status=$?
16048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16049   (exit $ac_status); } &&
16050          { ac_try='test -s conftest$ac_exeext'
16051   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16052   (eval $ac_try) 2>&5
16053   ac_status=$?
16054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16055   (exit $ac_status); }; }; then
16056   ac_cv_lib_xnet_socket=yes
16057 else
16058   echo "$as_me: failed program was:" >&5
16059 sed 's/^/| /' conftest.$ac_ext >&5
16060
16061 ac_cv_lib_xnet_socket=no
16062 fi
16063 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16064 LIBS=$ac_check_lib_save_LIBS
16065 fi
16066 echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
16067 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6
16068 if test $ac_cv_lib_xnet_socket = yes; then
16069   cat >>confdefs.h <<_ACEOF
16070 #define HAVE_LIBXNET 1
16071 _ACEOF
16072
16073   LIBS="-lxnet $LIBS"
16074
16075 fi
16076
16077
16078 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
16079 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
16080 if test "${ac_cv_lib_socket_socket+set}" = set; then
16081   echo $ECHO_N "(cached) $ECHO_C" >&6
16082 else
16083   ac_check_lib_save_LIBS=$LIBS
16084 LIBS="-lsocket  $LIBS"
16085 cat >conftest.$ac_ext <<_ACEOF
16086 #line $LINENO "configure"
16087 /* confdefs.h.  */
16088 _ACEOF
16089 cat confdefs.h >>conftest.$ac_ext
16090 cat >>conftest.$ac_ext <<_ACEOF
16091 /* end confdefs.h.  */
16092
16093 /* Override any gcc2 internal prototype to avoid an error.  */
16094 #ifdef __cplusplus
16095 extern "C"
16096 #endif
16097 /* We use char because int might match the return type of a gcc2
16098    builtin and then its argument prototype would still apply.  */
16099 char socket ();
16100 int
16101 main ()
16102 {
16103 socket ();
16104   ;
16105   return 0;
16106 }
16107 _ACEOF
16108 rm -f conftest.$ac_objext conftest$ac_exeext
16109 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16110   (eval $ac_link) 2>&5
16111   ac_status=$?
16112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16113   (exit $ac_status); } &&
16114          { ac_try='test -s conftest$ac_exeext'
16115   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16116   (eval $ac_try) 2>&5
16117   ac_status=$?
16118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16119   (exit $ac_status); }; }; then
16120   ac_cv_lib_socket_socket=yes
16121 else
16122   echo "$as_me: failed program was:" >&5
16123 sed 's/^/| /' conftest.$ac_ext >&5
16124
16125 ac_cv_lib_socket_socket=no
16126 fi
16127 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16128 LIBS=$ac_check_lib_save_LIBS
16129 fi
16130 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
16131 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
16132 if test $ac_cv_lib_socket_socket = yes; then
16133   cat >>confdefs.h <<_ACEOF
16134 #define HAVE_LIBSOCKET 1
16135 _ACEOF
16136
16137   LIBS="-lsocket $LIBS"
16138
16139 fi
16140
16141
16142 echo "$as_me:$LINENO: checking for socket in -linet" >&5
16143 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
16144 if test "${ac_cv_lib_inet_socket+set}" = set; then
16145   echo $ECHO_N "(cached) $ECHO_C" >&6
16146 else
16147   ac_check_lib_save_LIBS=$LIBS
16148 LIBS="-linet  $LIBS"
16149 cat >conftest.$ac_ext <<_ACEOF
16150 #line $LINENO "configure"
16151 /* confdefs.h.  */
16152 _ACEOF
16153 cat confdefs.h >>conftest.$ac_ext
16154 cat >>conftest.$ac_ext <<_ACEOF
16155 /* end confdefs.h.  */
16156
16157 /* Override any gcc2 internal prototype to avoid an error.  */
16158 #ifdef __cplusplus
16159 extern "C"
16160 #endif
16161 /* We use char because int might match the return type of a gcc2
16162    builtin and then its argument prototype would still apply.  */
16163 char socket ();
16164 int
16165 main ()
16166 {
16167 socket ();
16168   ;
16169   return 0;
16170 }
16171 _ACEOF
16172 rm -f conftest.$ac_objext conftest$ac_exeext
16173 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16174   (eval $ac_link) 2>&5
16175   ac_status=$?
16176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16177   (exit $ac_status); } &&
16178          { ac_try='test -s conftest$ac_exeext'
16179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16180   (eval $ac_try) 2>&5
16181   ac_status=$?
16182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16183   (exit $ac_status); }; }; then
16184   ac_cv_lib_inet_socket=yes
16185 else
16186   echo "$as_me: failed program was:" >&5
16187 sed 's/^/| /' conftest.$ac_ext >&5
16188
16189 ac_cv_lib_inet_socket=no
16190 fi
16191 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16192 LIBS=$ac_check_lib_save_LIBS
16193 fi
16194 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
16195 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
16196 if test $ac_cv_lib_inet_socket = yes; then
16197   cat >>confdefs.h <<_ACEOF
16198 #define HAVE_LIBINET 1
16199 _ACEOF
16200
16201   LIBS="-linet $LIBS"
16202
16203 fi
16204
16205 fi
16206
16207
16208
16209 for ac_func in inet_pton
16210 do
16211 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16212 echo "$as_me:$LINENO: checking for $ac_func" >&5
16213 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16214 if eval "test \"\${$as_ac_var+set}\" = set"; then
16215   echo $ECHO_N "(cached) $ECHO_C" >&6
16216 else
16217   cat >conftest.$ac_ext <<_ACEOF
16218 #line $LINENO "configure"
16219 /* confdefs.h.  */
16220 _ACEOF
16221 cat confdefs.h >>conftest.$ac_ext
16222 cat >>conftest.$ac_ext <<_ACEOF
16223 /* end confdefs.h.  */
16224 /* System header to define __stub macros and hopefully few prototypes,
16225     which can conflict with char $ac_func (); below.
16226     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16227     <limits.h> exists even on freestanding compilers.  */
16228 #ifdef __STDC__
16229 # include <limits.h>
16230 #else
16231 # include <assert.h>
16232 #endif
16233 /* Override any gcc2 internal prototype to avoid an error.  */
16234 #ifdef __cplusplus
16235 extern "C"
16236 {
16237 #endif
16238 /* We use char because int might match the return type of a gcc2
16239    builtin and then its argument prototype would still apply.  */
16240 char $ac_func ();
16241 /* The GNU C library defines this for functions which it implements
16242     to always fail with ENOSYS.  Some functions are actually named
16243     something starting with __ and the normal name is an alias.  */
16244 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16245 choke me
16246 #else
16247 char (*f) () = $ac_func;
16248 #endif
16249 #ifdef __cplusplus
16250 }
16251 #endif
16252
16253 int
16254 main ()
16255 {
16256 return f != $ac_func;
16257   ;
16258   return 0;
16259 }
16260 _ACEOF
16261 rm -f conftest.$ac_objext conftest$ac_exeext
16262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16263   (eval $ac_link) 2>&5
16264   ac_status=$?
16265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16266   (exit $ac_status); } &&
16267          { ac_try='test -s conftest$ac_exeext'
16268   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16269   (eval $ac_try) 2>&5
16270   ac_status=$?
16271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16272   (exit $ac_status); }; }; then
16273   eval "$as_ac_var=yes"
16274 else
16275   echo "$as_me: failed program was:" >&5
16276 sed 's/^/| /' conftest.$ac_ext >&5
16277
16278 eval "$as_ac_var=no"
16279 fi
16280 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16281 fi
16282 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16283 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16284 if test `eval echo '${'$as_ac_var'}'` = yes; then
16285   cat >>confdefs.h <<_ACEOF
16286 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16287 _ACEOF
16288  cat >>confdefs.h <<\_ACEOF
16289 #define HAVE_INET_PTON 1
16290 _ACEOF
16291
16292 fi
16293 done
16294
16295
16296
16297 for ac_func in strftime
16298 do
16299 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16300 echo "$as_me:$LINENO: checking for $ac_func" >&5
16301 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16302 if eval "test \"\${$as_ac_var+set}\" = set"; then
16303   echo $ECHO_N "(cached) $ECHO_C" >&6
16304 else
16305   cat >conftest.$ac_ext <<_ACEOF
16306 #line $LINENO "configure"
16307 /* confdefs.h.  */
16308 _ACEOF
16309 cat confdefs.h >>conftest.$ac_ext
16310 cat >>conftest.$ac_ext <<_ACEOF
16311 /* end confdefs.h.  */
16312 /* System header to define __stub macros and hopefully few prototypes,
16313     which can conflict with char $ac_func (); below.
16314     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16315     <limits.h> exists even on freestanding compilers.  */
16316 #ifdef __STDC__
16317 # include <limits.h>
16318 #else
16319 # include <assert.h>
16320 #endif
16321 /* Override any gcc2 internal prototype to avoid an error.  */
16322 #ifdef __cplusplus
16323 extern "C"
16324 {
16325 #endif
16326 /* We use char because int might match the return type of a gcc2
16327    builtin and then its argument prototype would still apply.  */
16328 char $ac_func ();
16329 /* The GNU C library defines this for functions which it implements
16330     to always fail with ENOSYS.  Some functions are actually named
16331     something starting with __ and the normal name is an alias.  */
16332 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16333 choke me
16334 #else
16335 char (*f) () = $ac_func;
16336 #endif
16337 #ifdef __cplusplus
16338 }
16339 #endif
16340
16341 int
16342 main ()
16343 {
16344 return f != $ac_func;
16345   ;
16346   return 0;
16347 }
16348 _ACEOF
16349 rm -f conftest.$ac_objext conftest$ac_exeext
16350 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16351   (eval $ac_link) 2>&5
16352   ac_status=$?
16353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16354   (exit $ac_status); } &&
16355          { ac_try='test -s conftest$ac_exeext'
16356   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16357   (eval $ac_try) 2>&5
16358   ac_status=$?
16359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16360   (exit $ac_status); }; }; then
16361   eval "$as_ac_var=yes"
16362 else
16363   echo "$as_me: failed program was:" >&5
16364 sed 's/^/| /' conftest.$ac_ext >&5
16365
16366 eval "$as_ac_var=no"
16367 fi
16368 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16369 fi
16370 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16371 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16372 if test `eval echo '${'$as_ac_var'}'` = yes; then
16373   cat >>confdefs.h <<_ACEOF
16374 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16375 _ACEOF
16376
16377 else
16378   # strftime is in -lintl on SCO UNIX.
16379 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
16380 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
16381 if test "${ac_cv_lib_intl_strftime+set}" = set; then
16382   echo $ECHO_N "(cached) $ECHO_C" >&6
16383 else
16384   ac_check_lib_save_LIBS=$LIBS
16385 LIBS="-lintl  $LIBS"
16386 cat >conftest.$ac_ext <<_ACEOF
16387 #line $LINENO "configure"
16388 /* confdefs.h.  */
16389 _ACEOF
16390 cat confdefs.h >>conftest.$ac_ext
16391 cat >>conftest.$ac_ext <<_ACEOF
16392 /* end confdefs.h.  */
16393
16394 /* Override any gcc2 internal prototype to avoid an error.  */
16395 #ifdef __cplusplus
16396 extern "C"
16397 #endif
16398 /* We use char because int might match the return type of a gcc2
16399    builtin and then its argument prototype would still apply.  */
16400 char strftime ();
16401 int
16402 main ()
16403 {
16404 strftime ();
16405   ;
16406   return 0;
16407 }
16408 _ACEOF
16409 rm -f conftest.$ac_objext conftest$ac_exeext
16410 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16411   (eval $ac_link) 2>&5
16412   ac_status=$?
16413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16414   (exit $ac_status); } &&
16415          { ac_try='test -s conftest$ac_exeext'
16416   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16417   (eval $ac_try) 2>&5
16418   ac_status=$?
16419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16420   (exit $ac_status); }; }; then
16421   ac_cv_lib_intl_strftime=yes
16422 else
16423   echo "$as_me: failed program was:" >&5
16424 sed 's/^/| /' conftest.$ac_ext >&5
16425
16426 ac_cv_lib_intl_strftime=no
16427 fi
16428 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16429 LIBS=$ac_check_lib_save_LIBS
16430 fi
16431 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
16432 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
16433 if test $ac_cv_lib_intl_strftime = yes; then
16434   cat >>confdefs.h <<\_ACEOF
16435 #define HAVE_STRFTIME 1
16436 _ACEOF
16437
16438 LIBS="-lintl $LIBS"
16439 fi
16440
16441 fi
16442 done
16443
16444
16445 for ac_func in vprintf
16446 do
16447 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16448 echo "$as_me:$LINENO: checking for $ac_func" >&5
16449 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16450 if eval "test \"\${$as_ac_var+set}\" = set"; then
16451   echo $ECHO_N "(cached) $ECHO_C" >&6
16452 else
16453   cat >conftest.$ac_ext <<_ACEOF
16454 #line $LINENO "configure"
16455 /* confdefs.h.  */
16456 _ACEOF
16457 cat confdefs.h >>conftest.$ac_ext
16458 cat >>conftest.$ac_ext <<_ACEOF
16459 /* end confdefs.h.  */
16460 /* System header to define __stub macros and hopefully few prototypes,
16461     which can conflict with char $ac_func (); below.
16462     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16463     <limits.h> exists even on freestanding compilers.  */
16464 #ifdef __STDC__
16465 # include <limits.h>
16466 #else
16467 # include <assert.h>
16468 #endif
16469 /* Override any gcc2 internal prototype to avoid an error.  */
16470 #ifdef __cplusplus
16471 extern "C"
16472 {
16473 #endif
16474 /* We use char because int might match the return type of a gcc2
16475    builtin and then its argument prototype would still apply.  */
16476 char $ac_func ();
16477 /* The GNU C library defines this for functions which it implements
16478     to always fail with ENOSYS.  Some functions are actually named
16479     something starting with __ and the normal name is an alias.  */
16480 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16481 choke me
16482 #else
16483 char (*f) () = $ac_func;
16484 #endif
16485 #ifdef __cplusplus
16486 }
16487 #endif
16488
16489 int
16490 main ()
16491 {
16492 return f != $ac_func;
16493   ;
16494   return 0;
16495 }
16496 _ACEOF
16497 rm -f conftest.$ac_objext conftest$ac_exeext
16498 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16499   (eval $ac_link) 2>&5
16500   ac_status=$?
16501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16502   (exit $ac_status); } &&
16503          { ac_try='test -s conftest$ac_exeext'
16504   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16505   (eval $ac_try) 2>&5
16506   ac_status=$?
16507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16508   (exit $ac_status); }; }; then
16509   eval "$as_ac_var=yes"
16510 else
16511   echo "$as_me: failed program was:" >&5
16512 sed 's/^/| /' conftest.$ac_ext >&5
16513
16514 eval "$as_ac_var=no"
16515 fi
16516 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16517 fi
16518 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16519 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16520 if test `eval echo '${'$as_ac_var'}'` = yes; then
16521   cat >>confdefs.h <<_ACEOF
16522 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16523 _ACEOF
16524
16525 echo "$as_me:$LINENO: checking for _doprnt" >&5
16526 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
16527 if test "${ac_cv_func__doprnt+set}" = set; then
16528   echo $ECHO_N "(cached) $ECHO_C" >&6
16529 else
16530   cat >conftest.$ac_ext <<_ACEOF
16531 #line $LINENO "configure"
16532 /* confdefs.h.  */
16533 _ACEOF
16534 cat confdefs.h >>conftest.$ac_ext
16535 cat >>conftest.$ac_ext <<_ACEOF
16536 /* end confdefs.h.  */
16537 /* System header to define __stub macros and hopefully few prototypes,
16538     which can conflict with char _doprnt (); below.
16539     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16540     <limits.h> exists even on freestanding compilers.  */
16541 #ifdef __STDC__
16542 # include <limits.h>
16543 #else
16544 # include <assert.h>
16545 #endif
16546 /* Override any gcc2 internal prototype to avoid an error.  */
16547 #ifdef __cplusplus
16548 extern "C"
16549 {
16550 #endif
16551 /* We use char because int might match the return type of a gcc2
16552    builtin and then its argument prototype would still apply.  */
16553 char _doprnt ();
16554 /* The GNU C library defines this for functions which it implements
16555     to always fail with ENOSYS.  Some functions are actually named
16556     something starting with __ and the normal name is an alias.  */
16557 #if defined (__stub__doprnt) || defined (__stub____doprnt)
16558 choke me
16559 #else
16560 char (*f) () = _doprnt;
16561 #endif
16562 #ifdef __cplusplus
16563 }
16564 #endif
16565
16566 int
16567 main ()
16568 {
16569 return f != _doprnt;
16570   ;
16571   return 0;
16572 }
16573 _ACEOF
16574 rm -f conftest.$ac_objext conftest$ac_exeext
16575 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16576   (eval $ac_link) 2>&5
16577   ac_status=$?
16578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16579   (exit $ac_status); } &&
16580          { ac_try='test -s conftest$ac_exeext'
16581   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16582   (eval $ac_try) 2>&5
16583   ac_status=$?
16584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16585   (exit $ac_status); }; }; then
16586   ac_cv_func__doprnt=yes
16587 else
16588   echo "$as_me: failed program was:" >&5
16589 sed 's/^/| /' conftest.$ac_ext >&5
16590
16591 ac_cv_func__doprnt=no
16592 fi
16593 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16594 fi
16595 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
16596 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
16597 if test $ac_cv_func__doprnt = yes; then
16598
16599 cat >>confdefs.h <<\_ACEOF
16600 #define HAVE_DOPRNT 1
16601 _ACEOF
16602
16603 fi
16604
16605 fi
16606 done
16607
16608
16609 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16610 # for constant arguments.  Useless!
16611 echo "$as_me:$LINENO: checking for working alloca.h" >&5
16612 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
16613 if test "${ac_cv_working_alloca_h+set}" = set; then
16614   echo $ECHO_N "(cached) $ECHO_C" >&6
16615 else
16616   cat >conftest.$ac_ext <<_ACEOF
16617 #line $LINENO "configure"
16618 /* confdefs.h.  */
16619 _ACEOF
16620 cat confdefs.h >>conftest.$ac_ext
16621 cat >>conftest.$ac_ext <<_ACEOF
16622 /* end confdefs.h.  */
16623 #include <alloca.h>
16624 int
16625 main ()
16626 {
16627 char *p = (char *) alloca (2 * sizeof (int));
16628   ;
16629   return 0;
16630 }
16631 _ACEOF
16632 rm -f conftest.$ac_objext conftest$ac_exeext
16633 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16634   (eval $ac_link) 2>&5
16635   ac_status=$?
16636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16637   (exit $ac_status); } &&
16638          { ac_try='test -s conftest$ac_exeext'
16639   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16640   (eval $ac_try) 2>&5
16641   ac_status=$?
16642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16643   (exit $ac_status); }; }; then
16644   ac_cv_working_alloca_h=yes
16645 else
16646   echo "$as_me: failed program was:" >&5
16647 sed 's/^/| /' conftest.$ac_ext >&5
16648
16649 ac_cv_working_alloca_h=no
16650 fi
16651 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16652 fi
16653 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
16654 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
16655 if test $ac_cv_working_alloca_h = yes; then
16656
16657 cat >>confdefs.h <<\_ACEOF
16658 #define HAVE_ALLOCA_H 1
16659 _ACEOF
16660
16661 fi
16662
16663 echo "$as_me:$LINENO: checking for alloca" >&5
16664 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
16665 if test "${ac_cv_func_alloca_works+set}" = set; then
16666   echo $ECHO_N "(cached) $ECHO_C" >&6
16667 else
16668   cat >conftest.$ac_ext <<_ACEOF
16669 #line $LINENO "configure"
16670 /* confdefs.h.  */
16671 _ACEOF
16672 cat confdefs.h >>conftest.$ac_ext
16673 cat >>conftest.$ac_ext <<_ACEOF
16674 /* end confdefs.h.  */
16675 #ifdef __GNUC__
16676 # define alloca __builtin_alloca
16677 #else
16678 # ifdef _MSC_VER
16679 #  include <malloc.h>
16680 #  define alloca _alloca
16681 # else
16682 #  if HAVE_ALLOCA_H
16683 #   include <alloca.h>
16684 #  else
16685 #   ifdef _AIX
16686  #pragma alloca
16687 #   else
16688 #    ifndef alloca /* predefined by HP cc +Olibcalls */
16689 char *alloca ();
16690 #    endif
16691 #   endif
16692 #  endif
16693 # endif
16694 #endif
16695
16696 int
16697 main ()
16698 {
16699 char *p = (char *) alloca (1);
16700   ;
16701   return 0;
16702 }
16703 _ACEOF
16704 rm -f conftest.$ac_objext conftest$ac_exeext
16705 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16706   (eval $ac_link) 2>&5
16707   ac_status=$?
16708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16709   (exit $ac_status); } &&
16710          { ac_try='test -s conftest$ac_exeext'
16711   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16712   (eval $ac_try) 2>&5
16713   ac_status=$?
16714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16715   (exit $ac_status); }; }; then
16716   ac_cv_func_alloca_works=yes
16717 else
16718   echo "$as_me: failed program was:" >&5
16719 sed 's/^/| /' conftest.$ac_ext >&5
16720
16721 ac_cv_func_alloca_works=no
16722 fi
16723 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16724 fi
16725 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
16726 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
16727
16728 if test $ac_cv_func_alloca_works = yes; then
16729
16730 cat >>confdefs.h <<\_ACEOF
16731 #define HAVE_ALLOCA 1
16732 _ACEOF
16733
16734 else
16735   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16736 # that cause trouble.  Some versions do not even contain alloca or
16737 # contain a buggy version.  If you still want to use their alloca,
16738 # use ar to extract alloca.o from them instead of compiling alloca.c.
16739
16740 ALLOCA=alloca.$ac_objext
16741
16742 cat >>confdefs.h <<\_ACEOF
16743 #define C_ALLOCA 1
16744 _ACEOF
16745
16746
16747 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
16748 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
16749 if test "${ac_cv_os_cray+set}" = set; then
16750   echo $ECHO_N "(cached) $ECHO_C" >&6
16751 else
16752   cat >conftest.$ac_ext <<_ACEOF
16753 #line $LINENO "configure"
16754 /* confdefs.h.  */
16755 _ACEOF
16756 cat confdefs.h >>conftest.$ac_ext
16757 cat >>conftest.$ac_ext <<_ACEOF
16758 /* end confdefs.h.  */
16759 #if defined(CRAY) && ! defined(CRAY2)
16760 webecray
16761 #else
16762 wenotbecray
16763 #endif
16764
16765 _ACEOF
16766 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16767   $EGREP "webecray" >/dev/null 2>&1; then
16768   ac_cv_os_cray=yes
16769 else
16770   ac_cv_os_cray=no
16771 fi
16772 rm -f conftest*
16773
16774 fi
16775 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
16776 echo "${ECHO_T}$ac_cv_os_cray" >&6
16777 if test $ac_cv_os_cray = yes; then
16778   for ac_func in _getb67 GETB67 getb67; do
16779     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16780 echo "$as_me:$LINENO: checking for $ac_func" >&5
16781 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16782 if eval "test \"\${$as_ac_var+set}\" = set"; then
16783   echo $ECHO_N "(cached) $ECHO_C" >&6
16784 else
16785   cat >conftest.$ac_ext <<_ACEOF
16786 #line $LINENO "configure"
16787 /* confdefs.h.  */
16788 _ACEOF
16789 cat confdefs.h >>conftest.$ac_ext
16790 cat >>conftest.$ac_ext <<_ACEOF
16791 /* end confdefs.h.  */
16792 /* System header to define __stub macros and hopefully few prototypes,
16793     which can conflict with char $ac_func (); below.
16794     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16795     <limits.h> exists even on freestanding compilers.  */
16796 #ifdef __STDC__
16797 # include <limits.h>
16798 #else
16799 # include <assert.h>
16800 #endif
16801 /* Override any gcc2 internal prototype to avoid an error.  */
16802 #ifdef __cplusplus
16803 extern "C"
16804 {
16805 #endif
16806 /* We use char because int might match the return type of a gcc2
16807    builtin and then its argument prototype would still apply.  */
16808 char $ac_func ();
16809 /* The GNU C library defines this for functions which it implements
16810     to always fail with ENOSYS.  Some functions are actually named
16811     something starting with __ and the normal name is an alias.  */
16812 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16813 choke me
16814 #else
16815 char (*f) () = $ac_func;
16816 #endif
16817 #ifdef __cplusplus
16818 }
16819 #endif
16820
16821 int
16822 main ()
16823 {
16824 return f != $ac_func;
16825   ;
16826   return 0;
16827 }
16828 _ACEOF
16829 rm -f conftest.$ac_objext conftest$ac_exeext
16830 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16831   (eval $ac_link) 2>&5
16832   ac_status=$?
16833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16834   (exit $ac_status); } &&
16835          { ac_try='test -s conftest$ac_exeext'
16836   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16837   (eval $ac_try) 2>&5
16838   ac_status=$?
16839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16840   (exit $ac_status); }; }; then
16841   eval "$as_ac_var=yes"
16842 else
16843   echo "$as_me: failed program was:" >&5
16844 sed 's/^/| /' conftest.$ac_ext >&5
16845
16846 eval "$as_ac_var=no"
16847 fi
16848 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16849 fi
16850 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16851 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16852 if test `eval echo '${'$as_ac_var'}'` = yes; then
16853
16854 cat >>confdefs.h <<_ACEOF
16855 #define CRAY_STACKSEG_END $ac_func
16856 _ACEOF
16857
16858     break
16859 fi
16860
16861   done
16862 fi
16863
16864 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
16865 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
16866 if test "${ac_cv_c_stack_direction+set}" = set; then
16867   echo $ECHO_N "(cached) $ECHO_C" >&6
16868 else
16869   if test "$cross_compiling" = yes; then
16870   ac_cv_c_stack_direction=0
16871 else
16872   cat >conftest.$ac_ext <<_ACEOF
16873 #line $LINENO "configure"
16874 /* confdefs.h.  */
16875 _ACEOF
16876 cat confdefs.h >>conftest.$ac_ext
16877 cat >>conftest.$ac_ext <<_ACEOF
16878 /* end confdefs.h.  */
16879 int
16880 find_stack_direction ()
16881 {
16882   static char *addr = 0;
16883   auto char dummy;
16884   if (addr == 0)
16885     {
16886       addr = &dummy;
16887       return find_stack_direction ();
16888     }
16889   else
16890     return (&dummy > addr) ? 1 : -1;
16891 }
16892
16893 int
16894 main ()
16895 {
16896   exit (find_stack_direction () < 0);
16897 }
16898 _ACEOF
16899 rm -f conftest$ac_exeext
16900 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16901   (eval $ac_link) 2>&5
16902   ac_status=$?
16903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16904   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16905   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16906   (eval $ac_try) 2>&5
16907   ac_status=$?
16908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16909   (exit $ac_status); }; }; then
16910   ac_cv_c_stack_direction=1
16911 else
16912   echo "$as_me: program exited with status $ac_status" >&5
16913 echo "$as_me: failed program was:" >&5
16914 sed 's/^/| /' conftest.$ac_ext >&5
16915
16916 ( exit $ac_status )
16917 ac_cv_c_stack_direction=-1
16918 fi
16919 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16920 fi
16921 fi
16922 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
16923 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
16924
16925 cat >>confdefs.h <<_ACEOF
16926 #define STACK_DIRECTION $ac_cv_c_stack_direction
16927 _ACEOF
16928
16929
16930 fi
16931
16932 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
16933 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
16934 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
16935 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
16936   echo $ECHO_N "(cached) $ECHO_C" >&6
16937 else
16938   ac_check_lib_save_LIBS=$LIBS
16939 LIBS="-lsun  $LIBS"
16940 cat >conftest.$ac_ext <<_ACEOF
16941 #line $LINENO "configure"
16942 /* confdefs.h.  */
16943 _ACEOF
16944 cat confdefs.h >>conftest.$ac_ext
16945 cat >>conftest.$ac_ext <<_ACEOF
16946 /* end confdefs.h.  */
16947
16948 /* Override any gcc2 internal prototype to avoid an error.  */
16949 #ifdef __cplusplus
16950 extern "C"
16951 #endif
16952 /* We use char because int might match the return type of a gcc2
16953    builtin and then its argument prototype would still apply.  */
16954 char getmntent ();
16955 int
16956 main ()
16957 {
16958 getmntent ();
16959   ;
16960   return 0;
16961 }
16962 _ACEOF
16963 rm -f conftest.$ac_objext conftest$ac_exeext
16964 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16965   (eval $ac_link) 2>&5
16966   ac_status=$?
16967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16968   (exit $ac_status); } &&
16969          { ac_try='test -s conftest$ac_exeext'
16970   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16971   (eval $ac_try) 2>&5
16972   ac_status=$?
16973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16974   (exit $ac_status); }; }; then
16975   ac_cv_lib_sun_getmntent=yes
16976 else
16977   echo "$as_me: failed program was:" >&5
16978 sed 's/^/| /' conftest.$ac_ext >&5
16979
16980 ac_cv_lib_sun_getmntent=no
16981 fi
16982 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16983 LIBS=$ac_check_lib_save_LIBS
16984 fi
16985 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
16986 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
16987 if test $ac_cv_lib_sun_getmntent = yes; then
16988   LIBS="-lsun $LIBS"
16989 else
16990   echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
16991 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
16992 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
16993   echo $ECHO_N "(cached) $ECHO_C" >&6
16994 else
16995   ac_check_lib_save_LIBS=$LIBS
16996 LIBS="-lseq  $LIBS"
16997 cat >conftest.$ac_ext <<_ACEOF
16998 #line $LINENO "configure"
16999 /* confdefs.h.  */
17000 _ACEOF
17001 cat confdefs.h >>conftest.$ac_ext
17002 cat >>conftest.$ac_ext <<_ACEOF
17003 /* end confdefs.h.  */
17004
17005 /* Override any gcc2 internal prototype to avoid an error.  */
17006 #ifdef __cplusplus
17007 extern "C"
17008 #endif
17009 /* We use char because int might match the return type of a gcc2
17010    builtin and then its argument prototype would still apply.  */
17011 char getmntent ();
17012 int
17013 main ()
17014 {
17015 getmntent ();
17016   ;
17017   return 0;
17018 }
17019 _ACEOF
17020 rm -f conftest.$ac_objext conftest$ac_exeext
17021 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17022   (eval $ac_link) 2>&5
17023   ac_status=$?
17024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17025   (exit $ac_status); } &&
17026          { ac_try='test -s conftest$ac_exeext'
17027   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17028   (eval $ac_try) 2>&5
17029   ac_status=$?
17030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17031   (exit $ac_status); }; }; then
17032   ac_cv_lib_seq_getmntent=yes
17033 else
17034   echo "$as_me: failed program was:" >&5
17035 sed 's/^/| /' conftest.$ac_ext >&5
17036
17037 ac_cv_lib_seq_getmntent=no
17038 fi
17039 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17040 LIBS=$ac_check_lib_save_LIBS
17041 fi
17042 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
17043 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
17044 if test $ac_cv_lib_seq_getmntent = yes; then
17045   LIBS="-lseq $LIBS"
17046 else
17047   echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
17048 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
17049 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
17050   echo $ECHO_N "(cached) $ECHO_C" >&6
17051 else
17052   ac_check_lib_save_LIBS=$LIBS
17053 LIBS="-lgen  $LIBS"
17054 cat >conftest.$ac_ext <<_ACEOF
17055 #line $LINENO "configure"
17056 /* confdefs.h.  */
17057 _ACEOF
17058 cat confdefs.h >>conftest.$ac_ext
17059 cat >>conftest.$ac_ext <<_ACEOF
17060 /* end confdefs.h.  */
17061
17062 /* Override any gcc2 internal prototype to avoid an error.  */
17063 #ifdef __cplusplus
17064 extern "C"
17065 #endif
17066 /* We use char because int might match the return type of a gcc2
17067    builtin and then its argument prototype would still apply.  */
17068 char getmntent ();
17069 int
17070 main ()
17071 {
17072 getmntent ();
17073   ;
17074   return 0;
17075 }
17076 _ACEOF
17077 rm -f conftest.$ac_objext conftest$ac_exeext
17078 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17079   (eval $ac_link) 2>&5
17080   ac_status=$?
17081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17082   (exit $ac_status); } &&
17083          { ac_try='test -s conftest$ac_exeext'
17084   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17085   (eval $ac_try) 2>&5
17086   ac_status=$?
17087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17088   (exit $ac_status); }; }; then
17089   ac_cv_lib_gen_getmntent=yes
17090 else
17091   echo "$as_me: failed program was:" >&5
17092 sed 's/^/| /' conftest.$ac_ext >&5
17093
17094 ac_cv_lib_gen_getmntent=no
17095 fi
17096 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17097 LIBS=$ac_check_lib_save_LIBS
17098 fi
17099 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
17100 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
17101 if test $ac_cv_lib_gen_getmntent = yes; then
17102   LIBS="-lgen $LIBS"
17103 fi
17104
17105 fi
17106
17107 fi
17108
17109
17110 for ac_func in getmntent
17111 do
17112 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17113 echo "$as_me:$LINENO: checking for $ac_func" >&5
17114 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17115 if eval "test \"\${$as_ac_var+set}\" = set"; then
17116   echo $ECHO_N "(cached) $ECHO_C" >&6
17117 else
17118   cat >conftest.$ac_ext <<_ACEOF
17119 #line $LINENO "configure"
17120 /* confdefs.h.  */
17121 _ACEOF
17122 cat confdefs.h >>conftest.$ac_ext
17123 cat >>conftest.$ac_ext <<_ACEOF
17124 /* end confdefs.h.  */
17125 /* System header to define __stub macros and hopefully few prototypes,
17126     which can conflict with char $ac_func (); below.
17127     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17128     <limits.h> exists even on freestanding compilers.  */
17129 #ifdef __STDC__
17130 # include <limits.h>
17131 #else
17132 # include <assert.h>
17133 #endif
17134 /* Override any gcc2 internal prototype to avoid an error.  */
17135 #ifdef __cplusplus
17136 extern "C"
17137 {
17138 #endif
17139 /* We use char because int might match the return type of a gcc2
17140    builtin and then its argument prototype would still apply.  */
17141 char $ac_func ();
17142 /* The GNU C library defines this for functions which it implements
17143     to always fail with ENOSYS.  Some functions are actually named
17144     something starting with __ and the normal name is an alias.  */
17145 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17146 choke me
17147 #else
17148 char (*f) () = $ac_func;
17149 #endif
17150 #ifdef __cplusplus
17151 }
17152 #endif
17153
17154 int
17155 main ()
17156 {
17157 return f != $ac_func;
17158   ;
17159   return 0;
17160 }
17161 _ACEOF
17162 rm -f conftest.$ac_objext conftest$ac_exeext
17163 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17164   (eval $ac_link) 2>&5
17165   ac_status=$?
17166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17167   (exit $ac_status); } &&
17168          { ac_try='test -s conftest$ac_exeext'
17169   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17170   (eval $ac_try) 2>&5
17171   ac_status=$?
17172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17173   (exit $ac_status); }; }; then
17174   eval "$as_ac_var=yes"
17175 else
17176   echo "$as_me: failed program was:" >&5
17177 sed 's/^/| /' conftest.$ac_ext >&5
17178
17179 eval "$as_ac_var=no"
17180 fi
17181 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17182 fi
17183 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17184 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17185 if test `eval echo '${'$as_ac_var'}'` = yes; then
17186   cat >>confdefs.h <<_ACEOF
17187 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17188 _ACEOF
17189
17190 fi
17191 done
17192
17193
17194 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
17195 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
17196 if test "${ac_cv_func_closedir_void+set}" = set; then
17197   echo $ECHO_N "(cached) $ECHO_C" >&6
17198 else
17199   if test "$cross_compiling" = yes; then
17200   ac_cv_func_closedir_void=yes
17201 else
17202   cat >conftest.$ac_ext <<_ACEOF
17203 #line $LINENO "configure"
17204 /* confdefs.h.  */
17205 _ACEOF
17206 cat confdefs.h >>conftest.$ac_ext
17207 cat >>conftest.$ac_ext <<_ACEOF
17208 /* end confdefs.h.  */
17209 $ac_includes_default
17210 #include <$ac_header_dirent>
17211 #ifndef __cplusplus
17212 int closedir ();
17213 #endif
17214
17215 int
17216 main ()
17217 {
17218 exit (closedir (opendir (".")) != 0);
17219   ;
17220   return 0;
17221 }
17222 _ACEOF
17223 rm -f conftest$ac_exeext
17224 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17225   (eval $ac_link) 2>&5
17226   ac_status=$?
17227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17228   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17229   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17230   (eval $ac_try) 2>&5
17231   ac_status=$?
17232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17233   (exit $ac_status); }; }; then
17234   ac_cv_func_closedir_void=no
17235 else
17236   echo "$as_me: program exited with status $ac_status" >&5
17237 echo "$as_me: failed program was:" >&5
17238 sed 's/^/| /' conftest.$ac_ext >&5
17239
17240 ( exit $ac_status )
17241 ac_cv_func_closedir_void=yes
17242 fi
17243 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17244 fi
17245 fi
17246 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
17247 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
17248 if test $ac_cv_func_closedir_void = yes; then
17249
17250 cat >>confdefs.h <<\_ACEOF
17251 #define CLOSEDIR_VOID 1
17252 _ACEOF
17253
17254 fi
17255
17256 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
17257 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
17258 if test "${ac_cv_func_setpgrp_void+set}" = set; then
17259   echo $ECHO_N "(cached) $ECHO_C" >&6
17260 else
17261   if test "$cross_compiling" = yes; then
17262   { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
17263 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
17264    { (exit 1); exit 1; }; }
17265 else
17266   cat >conftest.$ac_ext <<_ACEOF
17267 #line $LINENO "configure"
17268 /* confdefs.h.  */
17269 _ACEOF
17270 cat confdefs.h >>conftest.$ac_ext
17271 cat >>conftest.$ac_ext <<_ACEOF
17272 /* end confdefs.h.  */
17273 #if HAVE_UNISTD_H
17274 # include <unistd.h>
17275 #endif
17276
17277 int
17278 main ()
17279 {
17280 /* If this system has a BSD-style setpgrp which takes arguments,
17281   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
17282   exit successfully. */
17283   exit (setpgrp (1,1) == -1 ? 0 : 1);
17284   ;
17285   return 0;
17286 }
17287 _ACEOF
17288 rm -f conftest$ac_exeext
17289 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17290   (eval $ac_link) 2>&5
17291   ac_status=$?
17292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17293   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17294   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17295   (eval $ac_try) 2>&5
17296   ac_status=$?
17297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17298   (exit $ac_status); }; }; then
17299   ac_cv_func_setpgrp_void=no
17300 else
17301   echo "$as_me: program exited with status $ac_status" >&5
17302 echo "$as_me: failed program was:" >&5
17303 sed 's/^/| /' conftest.$ac_ext >&5
17304
17305 ( exit $ac_status )
17306 ac_cv_func_setpgrp_void=yes
17307 fi
17308 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17309 fi
17310 fi
17311 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
17312 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
17313 if test $ac_cv_func_setpgrp_void = yes; then
17314
17315 cat >>confdefs.h <<\_ACEOF
17316 #define SETPGRP_VOID 1
17317 _ACEOF
17318
17319 fi
17320                       echo "$as_me:$LINENO: checking for working POSIX fnmatch" >&5
17321 echo $ECHO_N "checking for working POSIX fnmatch... $ECHO_C" >&6
17322 if test "${ac_cv_func_fnmatch_works+set}" = set; then
17323   echo $ECHO_N "(cached) $ECHO_C" >&6
17324 else
17325   # Some versions of Solaris, SCO, and the GNU C Library
17326    # have a broken or incompatible fnmatch.
17327    # So we run a test program.  If we are cross-compiling, take no chance.
17328    # Thanks to John Oleynick, Franc,ois Pinard, and Paul Eggert for this test.
17329    if test "$cross_compiling" = yes; then
17330   ac_cv_func_fnmatch_works=cross
17331 else
17332   cat >conftest.$ac_ext <<_ACEOF
17333 #line $LINENO "configure"
17334 /* confdefs.h.  */
17335 _ACEOF
17336 cat confdefs.h >>conftest.$ac_ext
17337 cat >>conftest.$ac_ext <<_ACEOF
17338 /* end confdefs.h.  */
17339 #include <fnmatch.h>
17340 #          define y(a, b, c) (fnmatch (a, b, c) == 0)
17341 #          define n(a, b, c) (fnmatch (a, b, c) == FNM_NOMATCH)
17342
17343 int
17344 main ()
17345 {
17346 exit
17347            (!(y ("a*", "abc", 0)
17348               && n ("d*/*1", "d/s/1", FNM_PATHNAME)
17349               && y ("a\\\\bc", "abc", 0)
17350               && n ("a\\\\bc", "abc", FNM_NOESCAPE)
17351               && y ("*x", ".x", 0)
17352               && n ("*x", ".x", FNM_PERIOD)
17353               && 1));
17354   ;
17355   return 0;
17356 }
17357 _ACEOF
17358 rm -f conftest$ac_exeext
17359 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17360   (eval $ac_link) 2>&5
17361   ac_status=$?
17362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17363   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17364   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17365   (eval $ac_try) 2>&5
17366   ac_status=$?
17367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17368   (exit $ac_status); }; }; then
17369   ac_cv_func_fnmatch_works=yes
17370 else
17371   echo "$as_me: program exited with status $ac_status" >&5
17372 echo "$as_me: failed program was:" >&5
17373 sed 's/^/| /' conftest.$ac_ext >&5
17374
17375 ( exit $ac_status )
17376 ac_cv_func_fnmatch_works=no
17377 fi
17378 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17379 fi
17380 fi
17381 echo "$as_me:$LINENO: result: $ac_cv_func_fnmatch_works" >&5
17382 echo "${ECHO_T}$ac_cv_func_fnmatch_works" >&6
17383 if test $ac_cv_func_fnmatch_works = yes; then
17384
17385 cat >>confdefs.h <<\_ACEOF
17386 #define HAVE_FNMATCH 1
17387 _ACEOF
17388
17389 fi
17390
17391
17392
17393
17394
17395 echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
17396 echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
17397 if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
17398   echo $ECHO_N "(cached) $ECHO_C" >&6
17399 else
17400   ac_check_lib_save_LIBS=$LIBS
17401 LIBS="-lxpg4  $LIBS"
17402 cat >conftest.$ac_ext <<_ACEOF
17403 #line $LINENO "configure"
17404 /* confdefs.h.  */
17405 _ACEOF
17406 cat confdefs.h >>conftest.$ac_ext
17407 cat >>conftest.$ac_ext <<_ACEOF
17408 /* end confdefs.h.  */
17409
17410 /* Override any gcc2 internal prototype to avoid an error.  */
17411 #ifdef __cplusplus
17412 extern "C"
17413 #endif
17414 /* We use char because int might match the return type of a gcc2
17415    builtin and then its argument prototype would still apply.  */
17416 char setlocale ();
17417 int
17418 main ()
17419 {
17420 setlocale ();
17421   ;
17422   return 0;
17423 }
17424 _ACEOF
17425 rm -f conftest.$ac_objext conftest$ac_exeext
17426 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17427   (eval $ac_link) 2>&5
17428   ac_status=$?
17429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17430   (exit $ac_status); } &&
17431          { ac_try='test -s conftest$ac_exeext'
17432   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17433   (eval $ac_try) 2>&5
17434   ac_status=$?
17435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17436   (exit $ac_status); }; }; then
17437   ac_cv_lib_xpg4_setlocale=yes
17438 else
17439   echo "$as_me: failed program was:" >&5
17440 sed 's/^/| /' conftest.$ac_ext >&5
17441
17442 ac_cv_lib_xpg4_setlocale=no
17443 fi
17444 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17445 LIBS=$ac_check_lib_save_LIBS
17446 fi
17447 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
17448 echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
17449 if test $ac_cv_lib_xpg4_setlocale = yes; then
17450   LIBS="$LIBS -lxpg4"
17451 fi
17452
17453
17454
17455
17456 echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
17457 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6
17458 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
17459   echo $ECHO_N "(cached) $ECHO_C" >&6
17460 else
17461   ac_check_lib_save_LIBS=$LIBS
17462 LIBS="-lsun  $LIBS"
17463 cat >conftest.$ac_ext <<_ACEOF
17464 #line $LINENO "configure"
17465 /* confdefs.h.  */
17466 _ACEOF
17467 cat confdefs.h >>conftest.$ac_ext
17468 cat >>conftest.$ac_ext <<_ACEOF
17469 /* end confdefs.h.  */
17470
17471 /* Override any gcc2 internal prototype to avoid an error.  */
17472 #ifdef __cplusplus
17473 extern "C"
17474 #endif
17475 /* We use char because int might match the return type of a gcc2
17476    builtin and then its argument prototype would still apply.  */
17477 char getpwnam ();
17478 int
17479 main ()
17480 {
17481 getpwnam ();
17482   ;
17483   return 0;
17484 }
17485 _ACEOF
17486 rm -f conftest.$ac_objext conftest$ac_exeext
17487 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17488   (eval $ac_link) 2>&5
17489   ac_status=$?
17490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17491   (exit $ac_status); } &&
17492          { ac_try='test -s conftest$ac_exeext'
17493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17494   (eval $ac_try) 2>&5
17495   ac_status=$?
17496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17497   (exit $ac_status); }; }; then
17498   ac_cv_lib_sun_getpwnam=yes
17499 else
17500   echo "$as_me: failed program was:" >&5
17501 sed 's/^/| /' conftest.$ac_ext >&5
17502
17503 ac_cv_lib_sun_getpwnam=no
17504 fi
17505 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17506 LIBS=$ac_check_lib_save_LIBS
17507 fi
17508 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
17509 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6
17510 if test $ac_cv_lib_sun_getpwnam = yes; then
17511   cat >>confdefs.h <<_ACEOF
17512 #define HAVE_LIBSUN 1
17513 _ACEOF
17514
17515   LIBS="-lsun $LIBS"
17516
17517 fi
17518
17519
17520
17521 for ac_header in zlib.h
17522 do
17523 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17524 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17525   echo "$as_me:$LINENO: checking for $ac_header" >&5
17526 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17527 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17528   echo $ECHO_N "(cached) $ECHO_C" >&6
17529 fi
17530 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17531 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17532 else
17533   # Is the header compilable?
17534 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17535 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17536 cat >conftest.$ac_ext <<_ACEOF
17537 #line $LINENO "configure"
17538 /* confdefs.h.  */
17539 _ACEOF
17540 cat confdefs.h >>conftest.$ac_ext
17541 cat >>conftest.$ac_ext <<_ACEOF
17542 /* end confdefs.h.  */
17543 $ac_includes_default
17544 #include <$ac_header>
17545 _ACEOF
17546 rm -f conftest.$ac_objext
17547 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17548   (eval $ac_compile) 2>&5
17549   ac_status=$?
17550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17551   (exit $ac_status); } &&
17552          { ac_try='test -s conftest.$ac_objext'
17553   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17554   (eval $ac_try) 2>&5
17555   ac_status=$?
17556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17557   (exit $ac_status); }; }; then
17558   ac_header_compiler=yes
17559 else
17560   echo "$as_me: failed program was:" >&5
17561 sed 's/^/| /' conftest.$ac_ext >&5
17562
17563 ac_header_compiler=no
17564 fi
17565 rm -f conftest.$ac_objext conftest.$ac_ext
17566 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17567 echo "${ECHO_T}$ac_header_compiler" >&6
17568
17569 # Is the header present?
17570 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17571 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17572 cat >conftest.$ac_ext <<_ACEOF
17573 #line $LINENO "configure"
17574 /* confdefs.h.  */
17575 _ACEOF
17576 cat confdefs.h >>conftest.$ac_ext
17577 cat >>conftest.$ac_ext <<_ACEOF
17578 /* end confdefs.h.  */
17579 #include <$ac_header>
17580 _ACEOF
17581 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17582   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17583   ac_status=$?
17584   grep -v '^ *+' conftest.er1 >conftest.err
17585   rm -f conftest.er1
17586   cat conftest.err >&5
17587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17588   (exit $ac_status); } >/dev/null; then
17589   if test -s conftest.err; then
17590     ac_cpp_err=$ac_c_preproc_warn_flag
17591   else
17592     ac_cpp_err=
17593   fi
17594 else
17595   ac_cpp_err=yes
17596 fi
17597 if test -z "$ac_cpp_err"; then
17598   ac_header_preproc=yes
17599 else
17600   echo "$as_me: failed program was:" >&5
17601 sed 's/^/| /' conftest.$ac_ext >&5
17602
17603   ac_header_preproc=no
17604 fi
17605 rm -f conftest.err conftest.$ac_ext
17606 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17607 echo "${ECHO_T}$ac_header_preproc" >&6
17608
17609 # So?  What about this header?
17610 case $ac_header_compiler:$ac_header_preproc in
17611   yes:no )
17612     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17613 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17614     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17615 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17616     (
17617       cat <<\_ASBOX
17618 ## ------------------------------------ ##
17619 ## Report this to bug-autoconf@gnu.org. ##
17620 ## ------------------------------------ ##
17621 _ASBOX
17622     ) |
17623       sed "s/^/$as_me: WARNING:     /" >&2
17624     ;;
17625   no:yes )
17626     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17627 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17628     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17629 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17630     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17631 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17632     (
17633       cat <<\_ASBOX
17634 ## ------------------------------------ ##
17635 ## Report this to bug-autoconf@gnu.org. ##
17636 ## ------------------------------------ ##
17637 _ASBOX
17638     ) |
17639       sed "s/^/$as_me: WARNING:     /" >&2
17640     ;;
17641 esac
17642 echo "$as_me:$LINENO: checking for $ac_header" >&5
17643 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17644 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17645   echo $ECHO_N "(cached) $ECHO_C" >&6
17646 else
17647   eval "$as_ac_Header=$ac_header_preproc"
17648 fi
17649 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17650 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17651
17652 fi
17653 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17654   cat >>confdefs.h <<_ACEOF
17655 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17656 _ACEOF
17657
17658 fi
17659
17660 done
17661
17662 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
17663 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
17664 if test "${ac_cv_lib_z_deflate+set}" = set; then
17665   echo $ECHO_N "(cached) $ECHO_C" >&6
17666 else
17667   ac_check_lib_save_LIBS=$LIBS
17668 LIBS="-lz  $LIBS"
17669 cat >conftest.$ac_ext <<_ACEOF
17670 #line $LINENO "configure"
17671 /* confdefs.h.  */
17672 _ACEOF
17673 cat confdefs.h >>conftest.$ac_ext
17674 cat >>conftest.$ac_ext <<_ACEOF
17675 /* end confdefs.h.  */
17676
17677 /* Override any gcc2 internal prototype to avoid an error.  */
17678 #ifdef __cplusplus
17679 extern "C"
17680 #endif
17681 /* We use char because int might match the return type of a gcc2
17682    builtin and then its argument prototype would still apply.  */
17683 char deflate ();
17684 int
17685 main ()
17686 {
17687 deflate ();
17688   ;
17689   return 0;
17690 }
17691 _ACEOF
17692 rm -f conftest.$ac_objext conftest$ac_exeext
17693 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17694   (eval $ac_link) 2>&5
17695   ac_status=$?
17696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17697   (exit $ac_status); } &&
17698          { ac_try='test -s conftest$ac_exeext'
17699   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17700   (eval $ac_try) 2>&5
17701   ac_status=$?
17702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17703   (exit $ac_status); }; }; then
17704   ac_cv_lib_z_deflate=yes
17705 else
17706   echo "$as_me: failed program was:" >&5
17707 sed 's/^/| /' conftest.$ac_ext >&5
17708
17709 ac_cv_lib_z_deflate=no
17710 fi
17711 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17712 LIBS=$ac_check_lib_save_LIBS
17713 fi
17714 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
17715 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
17716 if test $ac_cv_lib_z_deflate = yes; then
17717   FDLIBS="-lz"
17718 fi
17719
17720 have_zlib=no
17721 if test x$FDLIBS = x-lz; then
17722   cat >>confdefs.h <<\_ACEOF
17723 #define HAVE_LIBZ 1
17724 _ACEOF
17725
17726   have_zlib=yes
17727 fi
17728
17729 if test "${ac_cv_header_sys_acl_h+set}" = set; then
17730   echo "$as_me:$LINENO: checking for sys/acl.h" >&5
17731 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
17732 if test "${ac_cv_header_sys_acl_h+set}" = set; then
17733   echo $ECHO_N "(cached) $ECHO_C" >&6
17734 fi
17735 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
17736 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
17737 else
17738   # Is the header compilable?
17739 echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
17740 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6
17741 cat >conftest.$ac_ext <<_ACEOF
17742 #line $LINENO "configure"
17743 /* confdefs.h.  */
17744 _ACEOF
17745 cat confdefs.h >>conftest.$ac_ext
17746 cat >>conftest.$ac_ext <<_ACEOF
17747 /* end confdefs.h.  */
17748 $ac_includes_default
17749 #include <sys/acl.h>
17750 _ACEOF
17751 rm -f conftest.$ac_objext
17752 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17753   (eval $ac_compile) 2>&5
17754   ac_status=$?
17755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17756   (exit $ac_status); } &&
17757          { ac_try='test -s conftest.$ac_objext'
17758   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17759   (eval $ac_try) 2>&5
17760   ac_status=$?
17761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17762   (exit $ac_status); }; }; then
17763   ac_header_compiler=yes
17764 else
17765   echo "$as_me: failed program was:" >&5
17766 sed 's/^/| /' conftest.$ac_ext >&5
17767
17768 ac_header_compiler=no
17769 fi
17770 rm -f conftest.$ac_objext conftest.$ac_ext
17771 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17772 echo "${ECHO_T}$ac_header_compiler" >&6
17773
17774 # Is the header present?
17775 echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
17776 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6
17777 cat >conftest.$ac_ext <<_ACEOF
17778 #line $LINENO "configure"
17779 /* confdefs.h.  */
17780 _ACEOF
17781 cat confdefs.h >>conftest.$ac_ext
17782 cat >>conftest.$ac_ext <<_ACEOF
17783 /* end confdefs.h.  */
17784 #include <sys/acl.h>
17785 _ACEOF
17786 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17787   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17788   ac_status=$?
17789   grep -v '^ *+' conftest.er1 >conftest.err
17790   rm -f conftest.er1
17791   cat conftest.err >&5
17792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17793   (exit $ac_status); } >/dev/null; then
17794   if test -s conftest.err; then
17795     ac_cpp_err=$ac_c_preproc_warn_flag
17796   else
17797     ac_cpp_err=
17798   fi
17799 else
17800   ac_cpp_err=yes
17801 fi
17802 if test -z "$ac_cpp_err"; then
17803   ac_header_preproc=yes
17804 else
17805   echo "$as_me: failed program was:" >&5
17806 sed 's/^/| /' conftest.$ac_ext >&5
17807
17808   ac_header_preproc=no
17809 fi
17810 rm -f conftest.err conftest.$ac_ext
17811 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17812 echo "${ECHO_T}$ac_header_preproc" >&6
17813
17814 # So?  What about this header?
17815 case $ac_header_compiler:$ac_header_preproc in
17816   yes:no )
17817     { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
17818 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17819     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
17820 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
17821     (
17822       cat <<\_ASBOX
17823 ## ------------------------------------ ##
17824 ## Report this to bug-autoconf@gnu.org. ##
17825 ## ------------------------------------ ##
17826 _ASBOX
17827     ) |
17828       sed "s/^/$as_me: WARNING:     /" >&2
17829     ;;
17830   no:yes )
17831     { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
17832 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
17833     { echo "$as_me:$LINENO: WARNING: sys/acl.h: check for missing prerequisite headers?" >&5
17834 echo "$as_me: WARNING: sys/acl.h: check for missing prerequisite headers?" >&2;}
17835     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
17836 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
17837     (
17838       cat <<\_ASBOX
17839 ## ------------------------------------ ##
17840 ## Report this to bug-autoconf@gnu.org. ##
17841 ## ------------------------------------ ##
17842 _ASBOX
17843     ) |
17844       sed "s/^/$as_me: WARNING:     /" >&2
17845     ;;
17846 esac
17847 echo "$as_me:$LINENO: checking for sys/acl.h" >&5
17848 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
17849 if test "${ac_cv_header_sys_acl_h+set}" = set; then
17850   echo $ECHO_N "(cached) $ECHO_C" >&6
17851 else
17852   ac_cv_header_sys_acl_h=$ac_header_preproc
17853 fi
17854 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
17855 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
17856
17857 fi
17858
17859
17860 echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
17861 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6
17862 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
17863   echo $ECHO_N "(cached) $ECHO_C" >&6
17864 else
17865   ac_check_lib_save_LIBS=$LIBS
17866 LIBS="-lacl  $LIBS"
17867 cat >conftest.$ac_ext <<_ACEOF
17868 #line $LINENO "configure"
17869 /* confdefs.h.  */
17870 _ACEOF
17871 cat confdefs.h >>conftest.$ac_ext
17872 cat >>conftest.$ac_ext <<_ACEOF
17873 /* end confdefs.h.  */
17874
17875 /* Override any gcc2 internal prototype to avoid an error.  */
17876 #ifdef __cplusplus
17877 extern "C"
17878 #endif
17879 /* We use char because int might match the return type of a gcc2
17880    builtin and then its argument prototype would still apply.  */
17881 char acl_get_file ();
17882 int
17883 main ()
17884 {
17885 acl_get_file ();
17886   ;
17887   return 0;
17888 }
17889 _ACEOF
17890 rm -f conftest.$ac_objext conftest$ac_exeext
17891 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17892   (eval $ac_link) 2>&5
17893   ac_status=$?
17894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17895   (exit $ac_status); } &&
17896          { ac_try='test -s conftest$ac_exeext'
17897   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17898   (eval $ac_try) 2>&5
17899   ac_status=$?
17900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17901   (exit $ac_status); }; }; then
17902   ac_cv_lib_acl_acl_get_file=yes
17903 else
17904   echo "$as_me: failed program was:" >&5
17905 sed 's/^/| /' conftest.$ac_ext >&5
17906
17907 ac_cv_lib_acl_acl_get_file=no
17908 fi
17909 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17910 LIBS=$ac_check_lib_save_LIBS
17911 fi
17912 echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
17913 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6
17914 if test $ac_cv_lib_acl_acl_get_file = yes; then
17915   FDLIBS="-lacl $FDLIBS"
17916 fi
17917
17918 have_acl=no
17919 if test $ac_cv_lib_acl_acl_get_file = yes; then
17920    cat >>confdefs.h <<\_ACEOF
17921 #define HAVE_ACL 1
17922 _ACEOF
17923
17924    have_acl=yes
17925 fi
17926
17927 PTHREAD_LIB=""
17928 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
17929 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
17930 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
17931   echo $ECHO_N "(cached) $ECHO_C" >&6
17932 else
17933   ac_check_lib_save_LIBS=$LIBS
17934 LIBS="-lpthread  $LIBS"
17935 cat >conftest.$ac_ext <<_ACEOF
17936 #line $LINENO "configure"
17937 /* confdefs.h.  */
17938 _ACEOF
17939 cat confdefs.h >>conftest.$ac_ext
17940 cat >>conftest.$ac_ext <<_ACEOF
17941 /* end confdefs.h.  */
17942
17943 /* Override any gcc2 internal prototype to avoid an error.  */
17944 #ifdef __cplusplus
17945 extern "C"
17946 #endif
17947 /* We use char because int might match the return type of a gcc2
17948    builtin and then its argument prototype would still apply.  */
17949 char pthread_create ();
17950 int
17951 main ()
17952 {
17953 pthread_create ();
17954   ;
17955   return 0;
17956 }
17957 _ACEOF
17958 rm -f conftest.$ac_objext conftest$ac_exeext
17959 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17960   (eval $ac_link) 2>&5
17961   ac_status=$?
17962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17963   (exit $ac_status); } &&
17964          { ac_try='test -s conftest$ac_exeext'
17965   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17966   (eval $ac_try) 2>&5
17967   ac_status=$?
17968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17969   (exit $ac_status); }; }; then
17970   ac_cv_lib_pthread_pthread_create=yes
17971 else
17972   echo "$as_me: failed program was:" >&5
17973 sed 's/^/| /' conftest.$ac_ext >&5
17974
17975 ac_cv_lib_pthread_pthread_create=no
17976 fi
17977 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17978 LIBS=$ac_check_lib_save_LIBS
17979 fi
17980 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
17981 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
17982 if test $ac_cv_lib_pthread_pthread_create = yes; then
17983   PTHREAD_LIB="-lpthread"
17984 else
17985   echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
17986 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
17987 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
17988   echo $ECHO_N "(cached) $ECHO_C" >&6
17989 else
17990   ac_check_lib_save_LIBS=$LIBS
17991 LIBS="-lpthreads  $LIBS"
17992 cat >conftest.$ac_ext <<_ACEOF
17993 #line $LINENO "configure"
17994 /* confdefs.h.  */
17995 _ACEOF
17996 cat confdefs.h >>conftest.$ac_ext
17997 cat >>conftest.$ac_ext <<_ACEOF
17998 /* end confdefs.h.  */
17999
18000 /* Override any gcc2 internal prototype to avoid an error.  */
18001 #ifdef __cplusplus
18002 extern "C"
18003 #endif
18004 /* We use char because int might match the return type of a gcc2
18005    builtin and then its argument prototype would still apply.  */
18006 char pthread_create ();
18007 int
18008 main ()
18009 {
18010 pthread_create ();
18011   ;
18012   return 0;
18013 }
18014 _ACEOF
18015 rm -f conftest.$ac_objext conftest$ac_exeext
18016 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18017   (eval $ac_link) 2>&5
18018   ac_status=$?
18019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18020   (exit $ac_status); } &&
18021          { ac_try='test -s conftest$ac_exeext'
18022   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18023   (eval $ac_try) 2>&5
18024   ac_status=$?
18025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18026   (exit $ac_status); }; }; then
18027   ac_cv_lib_pthreads_pthread_create=yes
18028 else
18029   echo "$as_me: failed program was:" >&5
18030 sed 's/^/| /' conftest.$ac_ext >&5
18031
18032 ac_cv_lib_pthreads_pthread_create=no
18033 fi
18034 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18035 LIBS=$ac_check_lib_save_LIBS
18036 fi
18037 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
18038 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
18039 if test $ac_cv_lib_pthreads_pthread_create = yes; then
18040   PTHREAD_LIB="-lpthreads"
18041 else
18042   echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
18043 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
18044 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
18045   echo $ECHO_N "(cached) $ECHO_C" >&6
18046 else
18047   ac_check_lib_save_LIBS=$LIBS
18048 LIBS="-lc_r  $LIBS"
18049 cat >conftest.$ac_ext <<_ACEOF
18050 #line $LINENO "configure"
18051 /* confdefs.h.  */
18052 _ACEOF
18053 cat confdefs.h >>conftest.$ac_ext
18054 cat >>conftest.$ac_ext <<_ACEOF
18055 /* end confdefs.h.  */
18056
18057 /* Override any gcc2 internal prototype to avoid an error.  */
18058 #ifdef __cplusplus
18059 extern "C"
18060 #endif
18061 /* We use char because int might match the return type of a gcc2
18062    builtin and then its argument prototype would still apply.  */
18063 char pthread_create ();
18064 int
18065 main ()
18066 {
18067 pthread_create ();
18068   ;
18069   return 0;
18070 }
18071 _ACEOF
18072 rm -f conftest.$ac_objext conftest$ac_exeext
18073 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18074   (eval $ac_link) 2>&5
18075   ac_status=$?
18076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18077   (exit $ac_status); } &&
18078          { ac_try='test -s conftest$ac_exeext'
18079   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18080   (eval $ac_try) 2>&5
18081   ac_status=$?
18082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18083   (exit $ac_status); }; }; then
18084   ac_cv_lib_c_r_pthread_create=yes
18085 else
18086   echo "$as_me: failed program was:" >&5
18087 sed 's/^/| /' conftest.$ac_ext >&5
18088
18089 ac_cv_lib_c_r_pthread_create=no
18090 fi
18091 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18092 LIBS=$ac_check_lib_save_LIBS
18093 fi
18094 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
18095 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
18096 if test $ac_cv_lib_c_r_pthread_create = yes; then
18097   PTHREAD_LIB="-lc_r"
18098 else
18099   echo "$as_me:$LINENO: checking for pthread_create" >&5
18100 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6
18101 if test "${ac_cv_func_pthread_create+set}" = set; then
18102   echo $ECHO_N "(cached) $ECHO_C" >&6
18103 else
18104   cat >conftest.$ac_ext <<_ACEOF
18105 #line $LINENO "configure"
18106 /* confdefs.h.  */
18107 _ACEOF
18108 cat confdefs.h >>conftest.$ac_ext
18109 cat >>conftest.$ac_ext <<_ACEOF
18110 /* end confdefs.h.  */
18111 /* System header to define __stub macros and hopefully few prototypes,
18112     which can conflict with char pthread_create (); below.
18113     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18114     <limits.h> exists even on freestanding compilers.  */
18115 #ifdef __STDC__
18116 # include <limits.h>
18117 #else
18118 # include <assert.h>
18119 #endif
18120 /* Override any gcc2 internal prototype to avoid an error.  */
18121 #ifdef __cplusplus
18122 extern "C"
18123 {
18124 #endif
18125 /* We use char because int might match the return type of a gcc2
18126    builtin and then its argument prototype would still apply.  */
18127 char pthread_create ();
18128 /* The GNU C library defines this for functions which it implements
18129     to always fail with ENOSYS.  Some functions are actually named
18130     something starting with __ and the normal name is an alias.  */
18131 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
18132 choke me
18133 #else
18134 char (*f) () = pthread_create;
18135 #endif
18136 #ifdef __cplusplus
18137 }
18138 #endif
18139
18140 int
18141 main ()
18142 {
18143 return f != pthread_create;
18144   ;
18145   return 0;
18146 }
18147 _ACEOF
18148 rm -f conftest.$ac_objext conftest$ac_exeext
18149 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18150   (eval $ac_link) 2>&5
18151   ac_status=$?
18152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18153   (exit $ac_status); } &&
18154          { ac_try='test -s conftest$ac_exeext'
18155   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18156   (eval $ac_try) 2>&5
18157   ac_status=$?
18158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18159   (exit $ac_status); }; }; then
18160   ac_cv_func_pthread_create=yes
18161 else
18162   echo "$as_me: failed program was:" >&5
18163 sed 's/^/| /' conftest.$ac_ext >&5
18164
18165 ac_cv_func_pthread_create=no
18166 fi
18167 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18168 fi
18169 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
18170 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6
18171
18172
18173 fi
18174
18175
18176 fi
18177
18178
18179 fi
18180
18181
18182
18183 cat >>confdefs.h <<\_ACEOF
18184 #define FDLIBS 1
18185 _ACEOF
18186
18187
18188
18189 CFLAGS=${CFLAGS--O}
18190 LDFLAGS=${LDFLAGS--O}
18191 DB_LIBS="${SQL_LFLAGS}"
18192
18193 CPPFLAGS="$CPPFLAGS"
18194
18195
18196
18197
18198
18199
18200
18201
18202
18203
18204
18205
18206
18207
18208 OBJLIST=
18209
18210
18211 lld="lld"
18212 llu="llu"
18213
18214 WCFLAGS=
18215 WLDFLAGS=
18216
18217 #
18218 # Finally we set appropriate distribution specific
18219 #  variables and defaults
18220 #
18221 # PFILES are platform specific files
18222 PFILES="platforms/Makefile"
18223 PSCMD="ps -e"
18224 WIN32=
18225 MACOSX=
18226 hostname=`uname -n | cut -d '.' -f 1`
18227 case "$DISTNAME" in
18228 aix)
18229         DISTVER=`uname -r`
18230         PSCMD="ps -e -o pid,comm"
18231         PFILES="${PFILES} \
18232            platforms/aix/Makefile"
18233         TAPEDRIVE="/dev/rmt0.1"
18234   ;;
18235 alpha)
18236         DISTVER=`uname -r`
18237         PTHREAD_LIB="-lpthread -lexc"
18238         if test "${CC}" = "gcc" ; then
18239            lld="lld"
18240            llu="llu"
18241         else
18242            lld="ld"
18243            llu="lu"
18244         fi
18245         TAPEDRIVE="/dev/nrmt0"
18246   ;;
18247 bsdi)
18248         DISTVER=`uname -a |awk '{print $3}'`
18249         TAPEDRIVE="/dev/nrmt0"
18250         PTHREAD_LIB="-pthread"
18251         CFLAGS="${CFLAGS} -pthread"
18252         PSCMD="ps -x -o pid,command"
18253         lld="qd"
18254         llu="qu"
18255         PFILES="${PFILES} \
18256             platforms/bsdi/Makefile \
18257             platforms/bsdi/bacula-fd \
18258             platforms/bsdi/bacula-sd \
18259             platforms/bsdi/bacula-dir"
18260         largefile_support="yes"
18261   ;;
18262 cygwin)
18263         DISTVER=`uname -a |awk '{print $3}'`
18264         TAPEDRIVE="/dev/nrst0"
18265         WIN32=win32
18266         WCFLAGS="-mwindows"
18267         WLDFLAGS="-mwindows"
18268   ;;
18269 darwin)
18270         DISTVER=`uname -r`
18271         TAPEDRIVE="/dev/nst0"
18272         PSCMD="ps -e -o pid,command"
18273         MACOSX=macosx
18274         PFILES="${PFILES} \
18275            platforms/darwin/Makefile"
18276   ;;
18277 debian)
18278         DISTVER=`cat /etc/debian_version`
18279         TAPEDRIVE="/dev/nrst0"
18280         PSCMD="ps -e -o pid,command"
18281   ;;
18282 freebsd)
18283         DISTVER=`uname -a |awk '{print $3}'`
18284         VER=`echo $DISTVER | cut -c 1`
18285         if test x$VER = x4 ; then
18286            PTHREAD_LIB="-pthread"
18287            CFLAGS="${CFLAGS} -pthread"
18288         fi
18289         lld="qd"
18290         llu="qu"
18291         TAPEDRIVE="/dev/nrsa0"
18292         PSCMD="ps -x -o pid,command"
18293         PFILES="${PFILES} \
18294             platforms/freebsd/Makefile \
18295             platforms/freebsd/bacula-fd \
18296             platforms/freebsd/bacula-sd \
18297             platforms/freebsd/bacula-dir"
18298         largefile_support="yes"
18299   ;;
18300 hpux)
18301         PSCMD="UNIX95=1 ps -e -o pid,comm"
18302         CFLAGS="$(CFLAGS) -D_XOPEN_SOURCE_EXTENDED=1"
18303         DISTVER=`uname -r`
18304         TAPEDRIVE="/dev/rmt/0hnb"
18305   ;;
18306 irix)
18307         DISTVER=`uname -r`
18308         TAPEDRIVE="/dev/rmt/0cbn"
18309         PSCMD="ps -e -o pid,comm"
18310         PFILES="${PFILES} \
18311             platforms/irix/Makefile \
18312             platforms/irix/bacula-fd \
18313             platforms/irix/bacula-sd \
18314             platforms/irix/bacula-dir"
18315   ;;
18316 netbsd)
18317         DISTVER=`uname -a |awk '{print $3}'`
18318         lld="qd"
18319         llu="qu"
18320         TAPEDRIVE="/dev/nrst0"
18321         PSCMD="ps -a -o pid,command"
18322         PTHREAD_LIB="-pthread"
18323         CFLAGS="${CFLAGS} -pthread"
18324   ;;
18325 openbsd)
18326         DISTVER=`uname -a |awk '{print $3}'`
18327         lld="qd"
18328         llu="qu"
18329         TAPEDRIVE="/dev/nrst0"
18330         PSCMD="ps -a -o pid,command"
18331         PTHREAD_LIB="-pthread"
18332         CFLAGS="${CFLAGS} -pthread"
18333         PFILES="${PFILES} \
18334             platforms/openbsd/Makefile \
18335             platforms/openbsd/bacula-fd \
18336             platforms/openbsd/bacula-sd \
18337             platforms/openbsd/bacula-dir"
18338   ;;
18339 redhat)
18340         if test -f /etc/whitebox-release ; then
18341            f=/etc/whitebox-release
18342         else
18343            f=/etc/redhat-release
18344         fi
18345         if test `cat $f | grep release |\
18346                    cut -f 3 -d ' '`x = "Enterprise"x ; then
18347            DISTVER="Enterprise "`cat $f | grep release |\
18348                     cut -f 6 -d ' '`
18349         else
18350             DISTVER=`cat /etc/redhat-release | grep release |\
18351                      cut -f 5 -d ' '`
18352         fi
18353         TAPEDRIVE="/dev/nst0"
18354         PSCMD="ps -e -o pid,command"
18355         PFILES="${PFILES} \
18356             platforms/redhat/Makefile \
18357             platforms/redhat/bacula-fd \
18358             platforms/redhat/bacula-sd \
18359             platforms/redhat/bacula-dir \
18360             platforms/redhat/bacula.spec \
18361             "
18362         hostname=`hostname -s`
18363   ;;
18364 mandrake)
18365         DISTVER=`cat /etc/mandrake-release | grep release |\
18366            cut -f 5 -d ' '`
18367         TAPEDRIVE="/dev/nst0"
18368         PSCMD="ps -e -o pid,command"
18369         PFILES="${PFILES} \
18370             platforms/mandrake/Makefile \
18371             platforms/mandrake/bacula-fd \
18372             platforms/mandrake/bacula-sd \
18373             platforms/mandrake/bacula-dir \
18374             platforms/mandrake/bacula.spec \
18375             "
18376   ;;
18377 gentoo)
18378         DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
18379         TAPEDRIVE="/dev/nst0"
18380         PSCMD="ps -e -o pid,command"
18381         PFILES="${PFILES} \
18382             platforms/gentoo/Makefile \
18383             platforms/gentoo/bacula-fd \
18384             platforms/gentoo/bacula-sd \
18385             platforms/gentoo/bacula-dir"
18386   ;;
18387 slackware)
18388         DISTVER=`cat /etc/slackware-version`
18389         TAPEDRIVE="/dev/nst0"
18390         PSCMD="ps -e -o pid,command"
18391         PFILES="${PFILES} \
18392             platforms/slackware/Makefile \
18393             platforms/slackware/rc.bacula-fd \
18394             platforms/slackware/rc.bacula-sd \
18395             platforms/slackware/rc.bacula-dir\
18396             platforms/slackware/functions.bacula"
18397   ;;
18398 solaris)
18399         DISTVER=`uname -r`
18400         TAPEDRIVE="/dev/rmt/0cbn"
18401         PSCMD="ps -e -o pid,comm"
18402         PFILES="${PFILES} \
18403             platforms/solaris/Makefile \
18404             platforms/solaris/bacula-fd \
18405             platforms/solaris/bacula-sd \
18406             platforms/solaris/bacula-dir"
18407         if test x$DISTVER = x5.6 ; then
18408             cat >>confdefs.h <<\_ACEOF
18409 #define HAVE_OLD_SOCKOPT 1
18410 _ACEOF
18411
18412         fi
18413   ;;
18414 suse)
18415         DISTVER=`cat /etc/SuSE-release |grep VERSION|\
18416             cut -f 3 -d ' '`
18417         TAPEDRIVE="/dev/nst0"
18418         PSCMD="ps -e -o pid,command"
18419         PFILES="${PFILES} \
18420             platforms/suse/Makefile \
18421             platforms/suse/bacula-fd \
18422             platforms/suse/bacula-sd \
18423             platforms/suse/bacula-dir \
18424             platforms/suse/bacula \
18425             platforms/suse/bacula.spec"
18426   ;;
18427 suse5)
18428         DISTNAME=suse
18429         DISTVER=5.x
18430         TAPEDRIVE="/dev/nst0"
18431         PSCMD="ps -e -o pid,command"
18432         PFILES="${PFILES} \
18433             platforms/suse/Makefile \
18434             platforms/suse/bacula-fd \
18435             platforms/suse/bacula-sd \
18436             platforms/suse/bacula-dir"
18437   ;;
18438 unknown)
18439         DISTVER=unknown
18440         TAPEDRIVE="/dev/nst0"
18441   ;;
18442 *)
18443   echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
18444   ;;
18445 esac
18446
18447
18448
18449 LIBS="$PTHREAD_LIB $LIBS"
18450
18451 cat >>confdefs.h <<_ACEOF
18452 #define lld "$lld"
18453 _ACEOF
18454
18455 cat >>confdefs.h <<_ACEOF
18456 #define llu "$llu"
18457 _ACEOF
18458
18459
18460
18461
18462
18463
18464
18465
18466 MCOMMON=./autoconf/Make.common
18467
18468
18469 if test "x${subsysdir}" = "x${sbindir}" ; then
18470    echo " "
18471    echo " "
18472    echo "You have set both --sbindir and --with-subsys-dir"
18473    echo "  equal to: ${subsysdir} "
18474    echo "This is not permitted. Please reconfigure."
18475    echo " "
18476    echo "Aborting configuration ..."
18477    echo " "
18478    echo " "
18479    exit 1
18480 fi
18481
18482                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       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/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/wx-console/Makefile src/wx-console/wx-console.conf src/dird/Makefile src/dird/bacula-dir.conf src/lib/Makefile src/stored/Makefile src/stored/bacula-sd.conf src/filed/Makefile src/filed/bacula-fd.conf src/filed/win32/Makefile src/cats/Makefile src/cats/make_catalog_backup src/cats/delete_catalog_backup src/cats/create_postgresql_database src/cats/update_postgresql_tables src/cats/make_postgresql_tables src/cats/grant_postgresql_privileges src/cats/drop_postgresql_tables src/cats/drop_postgresql_database src/cats/create_mysql_database src/cats/update_mysql_tables src/cats/make_mysql_tables src/cats/grant_mysql_privileges src/cats/drop_mysql_tables src/cats/drop_mysql_database src/cats/create_sqlite_database src/cats/update_sqlite_tables src/cats/make_sqlite_tables src/cats/grant_sqlite_privileges src/cats/drop_sqlite_tables src/cats/drop_sqlite_database src/cats/sqlite src/cats/mysql src/cats/create_bdb_database src/cats/update_bdb_tables src/cats/make_bdb_tables src/cats/grant_bdb_privileges src/cats/drop_bdb_tables src/cats/drop_bdb_database src/cats/create_bacula_database src/cats/update_bacula_tables src/cats/grant_bacula_privileges src/cats/make_bacula_tables src/cats/drop_bacula_tables src/cats/drop_bacula_database src/findlib/Makefile src/tools/Makefile src/win32/winbacula.nsi src/win32/baculafd/bacula-fd.conf src/win32/Makefile src/win32/console/bconsole.conf src/win32/wx-console/wx-console.conf $PFILES"
18483           ac_config_commands="$ac_config_commands default"
18484 cat >confcache <<\_ACEOF
18485 # This file is a shell script that caches the results of configure
18486 # tests run on this system so they can be shared between configure
18487 # scripts and configure runs, see configure's option --config-cache.
18488 # It is not useful on other systems.  If it contains results you don't
18489 # want to keep, you may remove or edit it.
18490 #
18491 # config.status only pays attention to the cache file if you give it
18492 # the --recheck option to rerun configure.
18493 #
18494 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18495 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18496 # following values.
18497
18498 _ACEOF
18499
18500 # The following way of writing the cache mishandles newlines in values,
18501 # but we know of no workaround that is simple, portable, and efficient.
18502 # So, don't put newlines in cache variables' values.
18503 # Ultrix sh set writes to stderr and can't be redirected directly,
18504 # and sets the high bit in the cache file unless we assign to the vars.
18505 {
18506   (set) 2>&1 |
18507     case `(ac_space=' '; set | grep ac_space) 2>&1` in
18508     *ac_space=\ *)
18509       # `set' does not quote correctly, so add quotes (double-quote
18510       # substitution turns \\\\ into \\, and sed turns \\ into \).
18511       sed -n \
18512         "s/'/'\\\\''/g;
18513           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18514       ;;
18515     *)
18516       # `set' quotes correctly as required by POSIX, so do not add quotes.
18517       sed -n \
18518         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
18519       ;;
18520     esac;
18521 } |
18522   sed '
18523      t clear
18524      : clear
18525      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18526      t end
18527      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18528      : end' >>confcache
18529 if diff $cache_file confcache >/dev/null 2>&1; then :; else
18530   if test -w $cache_file; then
18531     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
18532     cat confcache >$cache_file
18533   else
18534     echo "not updating unwritable cache $cache_file"
18535   fi
18536 fi
18537 rm -f confcache
18538
18539 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18540 # Let make expand exec_prefix.
18541 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18542
18543 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18544 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18545 # trailing colons and then remove the whole line if VPATH becomes empty
18546 # (actually we leave an empty line to preserve line numbers).
18547 if test "x$srcdir" = x.; then
18548   ac_vpsub='/^[         ]*VPATH[        ]*=/{
18549 s/:*\$(srcdir):*/:/;
18550 s/:*\${srcdir}:*/:/;
18551 s/:*@srcdir@:*/:/;
18552 s/^\([^=]*=[    ]*\):*/\1/;
18553 s/:*$//;
18554 s/^[^=]*=[      ]*$//;
18555 }'
18556 fi
18557
18558 DEFS=-DHAVE_CONFIG_H
18559
18560 ac_libobjs=
18561 ac_ltlibobjs=
18562 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18563   # 1. Remove the extension, and $U if already installed.
18564   ac_i=`echo "$ac_i" |
18565          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
18566   # 2. Add them.
18567   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
18568   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
18569 done
18570 LIBOBJS=$ac_libobjs
18571
18572 LTLIBOBJS=$ac_ltlibobjs
18573
18574
18575
18576 : ${CONFIG_STATUS=./config.status}
18577 ac_clean_files_save=$ac_clean_files
18578 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18579 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
18580 echo "$as_me: creating $CONFIG_STATUS" >&6;}
18581 cat >$CONFIG_STATUS <<_ACEOF
18582 #! $SHELL
18583 # Generated by $as_me.
18584 # Run this file to recreate the current configuration.
18585 # Compiler output produced by configure, useful for debugging
18586 # configure, is in config.log if it exists.
18587
18588 debug=false
18589 ac_cs_recheck=false
18590 ac_cs_silent=false
18591 SHELL=\${CONFIG_SHELL-$SHELL}
18592 _ACEOF
18593
18594 cat >>$CONFIG_STATUS <<\_ACEOF
18595 ## --------------------- ##
18596 ## M4sh Initialization.  ##
18597 ## --------------------- ##
18598
18599 # Be Bourne compatible
18600 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18601   emulate sh
18602   NULLCMD=:
18603   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18604   # is contrary to our usage.  Disable this feature.
18605   alias -g '${1+"$@"}'='"$@"'
18606 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
18607   set -o posix
18608 fi
18609
18610 # Support unset when possible.
18611 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
18612   as_unset=unset
18613 else
18614   as_unset=false
18615 fi
18616
18617
18618 # Work around bugs in pre-3.0 UWIN ksh.
18619 $as_unset ENV MAIL MAILPATH
18620 PS1='$ '
18621 PS2='> '
18622 PS4='+ '
18623
18624 # NLS nuisances.
18625 for as_var in \
18626   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
18627   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
18628   LC_TELEPHONE LC_TIME
18629 do
18630   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
18631     eval $as_var=C; export $as_var
18632   else
18633     $as_unset $as_var
18634   fi
18635 done
18636
18637 # Required to use basename.
18638 if expr a : '\(a\)' >/dev/null 2>&1; then
18639   as_expr=expr
18640 else
18641   as_expr=false
18642 fi
18643
18644 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
18645   as_basename=basename
18646 else
18647   as_basename=false
18648 fi
18649
18650
18651 # Name of the executable.
18652 as_me=`$as_basename "$0" ||
18653 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18654          X"$0" : 'X\(//\)$' \| \
18655          X"$0" : 'X\(/\)$' \| \
18656          .     : '\(.\)' 2>/dev/null ||
18657 echo X/"$0" |
18658     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
18659           /^X\/\(\/\/\)$/{ s//\1/; q; }
18660           /^X\/\(\/\).*/{ s//\1/; q; }
18661           s/.*/./; q'`
18662
18663
18664 # PATH needs CR, and LINENO needs CR and PATH.
18665 # Avoid depending upon Character Ranges.
18666 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18667 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18668 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18669 as_cr_digits='0123456789'
18670 as_cr_alnum=$as_cr_Letters$as_cr_digits
18671
18672 # The user is always right.
18673 if test "${PATH_SEPARATOR+set}" != set; then
18674   echo "#! /bin/sh" >conf$$.sh
18675   echo  "exit 0"   >>conf$$.sh
18676   chmod +x conf$$.sh
18677   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
18678     PATH_SEPARATOR=';'
18679   else
18680     PATH_SEPARATOR=:
18681   fi
18682   rm -f conf$$.sh
18683 fi
18684
18685
18686   as_lineno_1=$LINENO
18687   as_lineno_2=$LINENO
18688   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
18689   test "x$as_lineno_1" != "x$as_lineno_2" &&
18690   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
18691   # Find who we are.  Look in the path if we contain no path at all
18692   # relative or not.
18693   case $0 in
18694     *[\\/]* ) as_myself=$0 ;;
18695     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18696 for as_dir in $PATH
18697 do
18698   IFS=$as_save_IFS
18699   test -z "$as_dir" && as_dir=.
18700   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18701 done
18702
18703        ;;
18704   esac
18705   # We did not find ourselves, most probably we were run as `sh COMMAND'
18706   # in which case we are not to be found in the path.
18707   if test "x$as_myself" = x; then
18708     as_myself=$0
18709   fi
18710   if test ! -f "$as_myself"; then
18711     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
18712 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
18713    { (exit 1); exit 1; }; }
18714   fi
18715   case $CONFIG_SHELL in
18716   '')
18717     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18718 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
18719 do
18720   IFS=$as_save_IFS
18721   test -z "$as_dir" && as_dir=.
18722   for as_base in sh bash ksh sh5; do
18723          case $as_dir in
18724          /*)
18725            if ("$as_dir/$as_base" -c '
18726   as_lineno_1=$LINENO
18727   as_lineno_2=$LINENO
18728   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
18729   test "x$as_lineno_1" != "x$as_lineno_2" &&
18730   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
18731              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
18732              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
18733              CONFIG_SHELL=$as_dir/$as_base
18734              export CONFIG_SHELL
18735              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
18736            fi;;
18737          esac
18738        done
18739 done
18740 ;;
18741   esac
18742
18743   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
18744   # uniformly replaced by the line number.  The first 'sed' inserts a
18745   # line-number line before each line; the second 'sed' does the real
18746   # work.  The second script uses 'N' to pair each line-number line
18747   # with the numbered line, and appends trailing '-' during
18748   # substitution so that $LINENO is not a special case at line end.
18749   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
18750   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
18751   sed '=' <$as_myself |
18752     sed '
18753       N
18754       s,$,-,
18755       : loop
18756       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
18757       t loop
18758       s,-$,,
18759       s,^['$as_cr_digits']*\n,,
18760     ' >$as_me.lineno &&
18761   chmod +x $as_me.lineno ||
18762     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
18763 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
18764    { (exit 1); exit 1; }; }
18765
18766   # Don't try to exec as it changes $[0], causing all sort of problems
18767   # (the dirname of $[0] is not the place where we might find the
18768   # original and so on.  Autoconf is especially sensible to this).
18769   . ./$as_me.lineno
18770   # Exit status is that of the last command.
18771   exit
18772 }
18773
18774
18775 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
18776   *c*,-n*) ECHO_N= ECHO_C='
18777 ' ECHO_T='      ' ;;
18778   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
18779   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
18780 esac
18781
18782 if expr a : '\(a\)' >/dev/null 2>&1; then
18783   as_expr=expr
18784 else
18785   as_expr=false
18786 fi
18787
18788 rm -f conf$$ conf$$.exe conf$$.file
18789 echo >conf$$.file
18790 if ln -s conf$$.file conf$$ 2>/dev/null; then
18791   # We could just check for DJGPP; but this test a) works b) is more generic
18792   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
18793   if test -f conf$$.exe; then
18794     # Don't use ln at all; we don't have any links
18795     as_ln_s='cp -p'
18796   else
18797     as_ln_s='ln -s'
18798   fi
18799 elif ln conf$$.file conf$$ 2>/dev/null; then
18800   as_ln_s=ln
18801 else
18802   as_ln_s='cp -p'
18803 fi
18804 rm -f conf$$ conf$$.exe conf$$.file
18805
18806 if mkdir -p . 2>/dev/null; then
18807   as_mkdir_p=:
18808 else
18809   as_mkdir_p=false
18810 fi
18811
18812 as_executable_p="test -f"
18813
18814 # Sed expression to map a string onto a valid CPP name.
18815 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
18816
18817 # Sed expression to map a string onto a valid variable name.
18818 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
18819
18820
18821 # IFS
18822 # We need space, tab and new line, in precisely that order.
18823 as_nl='
18824 '
18825 IFS="   $as_nl"
18826
18827 # CDPATH.
18828 $as_unset CDPATH
18829
18830 exec 6>&1
18831
18832 # Open the log real soon, to keep \$[0] and so on meaningful, and to
18833 # report actual input values of CONFIG_FILES etc. instead of their
18834 # values after options handling.  Logging --version etc. is OK.
18835 exec 5>>config.log
18836 {
18837   echo
18838   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18839 ## Running $as_me. ##
18840 _ASBOX
18841 } >&5
18842 cat >&5 <<_CSEOF
18843
18844 This file was extended by $as_me, which was
18845 generated by GNU Autoconf 2.57.  Invocation command line was
18846
18847   CONFIG_FILES    = $CONFIG_FILES
18848   CONFIG_HEADERS  = $CONFIG_HEADERS
18849   CONFIG_LINKS    = $CONFIG_LINKS
18850   CONFIG_COMMANDS = $CONFIG_COMMANDS
18851   $ $0 $@
18852
18853 _CSEOF
18854 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
18855 echo >&5
18856 _ACEOF
18857
18858 # Files that config.status was made for.
18859 if test -n "$ac_config_files"; then
18860   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
18861 fi
18862
18863 if test -n "$ac_config_headers"; then
18864   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
18865 fi
18866
18867 if test -n "$ac_config_links"; then
18868   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
18869 fi
18870
18871 if test -n "$ac_config_commands"; then
18872   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
18873 fi
18874
18875 cat >>$CONFIG_STATUS <<\_ACEOF
18876
18877 ac_cs_usage="\
18878 \`$as_me' instantiates files from templates according to the
18879 current configuration.
18880
18881 Usage: $0 [OPTIONS] [FILE]...
18882
18883   -h, --help       print this help, then exit
18884   -V, --version    print version number, then exit
18885   -q, --quiet      do not print progress messages
18886   -d, --debug      don't remove temporary files
18887       --recheck    update $as_me by reconfiguring in the same conditions
18888   --file=FILE[:TEMPLATE]
18889                    instantiate the configuration file FILE
18890   --header=FILE[:TEMPLATE]
18891                    instantiate the configuration header FILE
18892
18893 Configuration files:
18894 $config_files
18895
18896 Configuration headers:
18897 $config_headers
18898
18899 Configuration commands:
18900 $config_commands
18901
18902 Report bugs to <bug-autoconf@gnu.org>."
18903 _ACEOF
18904
18905 cat >>$CONFIG_STATUS <<_ACEOF
18906 ac_cs_version="\\
18907 config.status
18908 configured by $0, generated by GNU Autoconf 2.57,
18909   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
18910
18911 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
18912 Free Software Foundation, Inc.
18913 This config.status script is free software; the Free Software Foundation
18914 gives unlimited permission to copy, distribute and modify it."
18915 srcdir=$srcdir
18916 INSTALL="$INSTALL"
18917 _ACEOF
18918
18919 cat >>$CONFIG_STATUS <<\_ACEOF
18920 # If no file are specified by the user, then we need to provide default
18921 # value.  By we need to know if files were specified by the user.
18922 ac_need_defaults=:
18923 while test $# != 0
18924 do
18925   case $1 in
18926   --*=*)
18927     ac_option=`expr "x$1" : 'x\([^=]*\)='`
18928     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
18929     ac_shift=:
18930     ;;
18931   -*)
18932     ac_option=$1
18933     ac_optarg=$2
18934     ac_shift=shift
18935     ;;
18936   *) # This is not an option, so the user has probably given explicit
18937      # arguments.
18938      ac_option=$1
18939      ac_need_defaults=false;;
18940   esac
18941
18942   case $ac_option in
18943   # Handling of the options.
18944 _ACEOF
18945 cat >>$CONFIG_STATUS <<\_ACEOF
18946   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18947     ac_cs_recheck=: ;;
18948   --version | --vers* | -V )
18949     echo "$ac_cs_version"; exit 0 ;;
18950   --he | --h)
18951     # Conflict between --help and --header
18952     { { echo "$as_me:$LINENO: error: ambiguous option: $1
18953 Try \`$0 --help' for more information." >&5
18954 echo "$as_me: error: ambiguous option: $1
18955 Try \`$0 --help' for more information." >&2;}
18956    { (exit 1); exit 1; }; };;
18957   --help | --hel | -h )
18958     echo "$ac_cs_usage"; exit 0 ;;
18959   --debug | --d* | -d )
18960     debug=: ;;
18961   --file | --fil | --fi | --f )
18962     $ac_shift
18963     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
18964     ac_need_defaults=false;;
18965   --header | --heade | --head | --hea )
18966     $ac_shift
18967     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
18968     ac_need_defaults=false;;
18969   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18970   | -silent | --silent | --silen | --sile | --sil | --si | --s)
18971     ac_cs_silent=: ;;
18972
18973   # This is an error.
18974   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
18975 Try \`$0 --help' for more information." >&5
18976 echo "$as_me: error: unrecognized option: $1
18977 Try \`$0 --help' for more information." >&2;}
18978    { (exit 1); exit 1; }; } ;;
18979
18980   *) ac_config_targets="$ac_config_targets $1" ;;
18981
18982   esac
18983   shift
18984 done
18985
18986 ac_configure_extra_args=
18987
18988 if $ac_cs_silent; then
18989   exec 6>/dev/null
18990   ac_configure_extra_args="$ac_configure_extra_args --silent"
18991 fi
18992
18993 _ACEOF
18994 cat >>$CONFIG_STATUS <<_ACEOF
18995 if \$ac_cs_recheck; then
18996   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
18997   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18998 fi
18999
19000 _ACEOF
19001
19002
19003
19004
19005
19006 cat >>$CONFIG_STATUS <<\_ACEOF
19007 for ac_config_target in $ac_config_targets
19008 do
19009   case "$ac_config_target" in
19010   # Handling of arguments.
19011   "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
19012   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19013   "rescue/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/Makefile" ;;
19014   "rescue/linux/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/linux/Makefile" ;;
19015   "rescue/freebsd/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/freebsd/Makefile" ;;
19016   "rescue/solaris/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/solaris/Makefile" ;;
19017   "scripts/startmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
19018   "scripts/stopmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
19019   "scripts/btraceback" ) CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
19020   "scripts/startit" ) CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
19021   "scripts/stopit" ) CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
19022   "scripts/bconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
19023   "scripts/gconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
19024   "scripts/bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
19025   "scripts/devel_bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
19026   "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
19027   "scripts/logrotate" ) CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
19028   "scripts/bacula.desktop.gnome1" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
19029   "scripts/bacula.desktop.gnome2" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
19030   "scripts/bacula.desktop.gnome1.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
19031   "scripts/bacula.desktop.gnome2.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
19032   "scripts/bacula.desktop.gnome1.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
19033   "scripts/bacula.desktop.gnome2.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
19034   "scripts/gnome-console.console_apps" ) CONFIG_FILES="$CONFIG_FILES scripts/gnome-console.console_apps" ;;
19035   "scripts/mtx-changer" ) CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
19036   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
19037   "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
19038   "src/host.h" ) CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
19039   "src/console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
19040   "src/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
19041   "src/gnome-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/Makefile" ;;
19042   "src/gnome-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/gnome-console.conf" ;;
19043   "src/gnome2-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
19044   "src/gnome2-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/gnome-console.conf" ;;
19045   "src/wx-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
19046   "src/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/wx-console.conf" ;;
19047   "src/dird/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
19048   "src/dird/bacula-dir.conf" ) CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
19049   "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
19050   "src/stored/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
19051   "src/stored/bacula-sd.conf" ) CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
19052   "src/filed/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
19053   "src/filed/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
19054   "src/filed/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/win32/Makefile" ;;
19055   "src/cats/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
19056   "src/cats/make_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
19057   "src/cats/delete_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
19058   "src/cats/create_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
19059   "src/cats/update_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
19060   "src/cats/make_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
19061   "src/cats/grant_postgresql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
19062   "src/cats/drop_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
19063   "src/cats/drop_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
19064   "src/cats/create_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
19065   "src/cats/update_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
19066   "src/cats/make_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
19067   "src/cats/grant_mysql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
19068   "src/cats/drop_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
19069   "src/cats/drop_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
19070   "src/cats/create_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
19071   "src/cats/update_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
19072   "src/cats/make_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
19073   "src/cats/grant_sqlite_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
19074   "src/cats/drop_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
19075   "src/cats/drop_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
19076   "src/cats/sqlite" ) CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
19077   "src/cats/mysql" ) CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
19078   "src/cats/create_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
19079   "src/cats/update_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
19080   "src/cats/make_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
19081   "src/cats/grant_bdb_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
19082   "src/cats/drop_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
19083   "src/cats/drop_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
19084   "src/cats/create_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
19085   "src/cats/update_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
19086   "src/cats/grant_bacula_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
19087   "src/cats/make_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
19088   "src/cats/drop_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
19089   "src/cats/drop_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
19090   "src/findlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
19091   "src/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
19092   "src/win32/winbacula.nsi" ) CONFIG_FILES="$CONFIG_FILES src/win32/winbacula.nsi" ;;
19093   "src/win32/baculafd/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/baculafd/bacula-fd.conf" ;;
19094   "src/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/win32/Makefile" ;;
19095   "src/win32/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/console/bconsole.conf" ;;
19096   "src/win32/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/wx-console/wx-console.conf" ;;
19097   "$PFILES" ) CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
19098   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
19099   "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
19100   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
19101 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
19102    { (exit 1); exit 1; }; };;
19103   esac
19104 done
19105
19106 # If the user did not use the arguments to specify the items to instantiate,
19107 # then the envvar interface is used.  Set only those that are not.
19108 # We use the long form for the default assignment because of an extremely
19109 # bizarre bug on SunOS 4.1.3.
19110 if $ac_need_defaults; then
19111   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19112   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19113   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19114 fi
19115
19116 # Have a temporary directory for convenience.  Make it in the build tree
19117 # simply because there is no reason to put it here, and in addition,
19118 # creating and moving files from /tmp can sometimes cause problems.
19119 # Create a temporary directory, and hook for its removal unless debugging.
19120 $debug ||
19121 {
19122   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
19123   trap '{ (exit 1); exit 1; }' 1 2 13 15
19124 }
19125
19126 # Create a (secure) tmp directory for tmp files.
19127
19128 {
19129   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
19130   test -n "$tmp" && test -d "$tmp"
19131 }  ||
19132 {
19133   tmp=./confstat$$-$RANDOM
19134   (umask 077 && mkdir $tmp)
19135 } ||
19136 {
19137    echo "$me: cannot create a temporary directory in ." >&2
19138    { (exit 1); exit 1; }
19139 }
19140
19141 _ACEOF
19142
19143 cat >>$CONFIG_STATUS <<_ACEOF
19144
19145 #
19146 # CONFIG_FILES section.
19147 #
19148
19149 # No need to generate the scripts if there are no CONFIG_FILES.
19150 # This happens for instance when ./config.status config.h
19151 if test -n "\$CONFIG_FILES"; then
19152   # Protect against being on the right side of a sed subst in config.status.
19153   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
19154    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
19155 s,@SHELL@,$SHELL,;t t
19156 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
19157 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
19158 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
19159 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
19160 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
19161 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
19162 s,@exec_prefix@,$exec_prefix,;t t
19163 s,@prefix@,$prefix,;t t
19164 s,@program_transform_name@,$program_transform_name,;t t
19165 s,@bindir@,$bindir,;t t
19166 s,@sbindir@,$sbindir,;t t
19167 s,@libexecdir@,$libexecdir,;t t
19168 s,@datadir@,$datadir,;t t
19169 s,@sysconfdir@,$sysconfdir,;t t
19170 s,@sharedstatedir@,$sharedstatedir,;t t
19171 s,@localstatedir@,$localstatedir,;t t
19172 s,@libdir@,$libdir,;t t
19173 s,@includedir@,$includedir,;t t
19174 s,@oldincludedir@,$oldincludedir,;t t
19175 s,@infodir@,$infodir,;t t
19176 s,@mandir@,$mandir,;t t
19177 s,@build_alias@,$build_alias,;t t
19178 s,@host_alias@,$host_alias,;t t
19179 s,@target_alias@,$target_alias,;t t
19180 s,@DEFS@,$DEFS,;t t
19181 s,@ECHO_C@,$ECHO_C,;t t
19182 s,@ECHO_N@,$ECHO_N,;t t
19183 s,@ECHO_T@,$ECHO_T,;t t
19184 s,@LIBS@,$LIBS,;t t
19185 s,@BUILD_DIR@,$BUILD_DIR,;t t
19186 s,@TRUEPRG@,$TRUEPRG,;t t
19187 s,@FALSEPRG@,$FALSEPRG,;t t
19188 s,@VERSION@,$VERSION,;t t
19189 s,@DATE@,$DATE,;t t
19190 s,@LSMDATE@,$LSMDATE,;t t
19191 s,@CC@,$CC,;t t
19192 s,@CFLAGS@,$CFLAGS,;t t
19193 s,@LDFLAGS@,$LDFLAGS,;t t
19194 s,@CPPFLAGS@,$CPPFLAGS,;t t
19195 s,@ac_ct_CC@,$ac_ct_CC,;t t
19196 s,@EXEEXT@,$EXEEXT,;t t
19197 s,@OBJEXT@,$OBJEXT,;t t
19198 s,@CXX@,$CXX,;t t
19199 s,@CXXFLAGS@,$CXXFLAGS,;t t
19200 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
19201 s,@CPP@,$CPP,;t t
19202 s,@EGREP@,$EGREP,;t t
19203 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
19204 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
19205 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
19206 s,@RANLIB@,$RANLIB,;t t
19207 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
19208 s,@MV@,$MV,;t t
19209 s,@RM@,$RM,;t t
19210 s,@CP@,$CP,;t t
19211 s,@SED@,$SED,;t t
19212 s,@AWK@,$AWK,;t t
19213 s,@ECHO@,$ECHO,;t t
19214 s,@CMP@,$CMP,;t t
19215 s,@TBL@,$TBL,;t t
19216 s,@AR@,$AR,;t t
19217 s,@OPENSSL@,$OPENSSL,;t t
19218 s,@MTX@,$MTX,;t t
19219 s,@PKGCONFIG@,$PKGCONFIG,;t t
19220 s,@WXCONFIG@,$WXCONFIG,;t t
19221 s,@ARFLAGS@,$ARFLAGS,;t t
19222 s,@MAKE_SHELL@,$MAKE_SHELL,;t t
19223 s,@LOCAL_LIBS@,$LOCAL_LIBS,;t t
19224 s,@LOCAL_CFLAGS@,$LOCAL_CFLAGS,;t t
19225 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
19226 s,@LOCAL_DEFS@,$LOCAL_DEFS,;t t
19227 s,@build@,$build,;t t
19228 s,@build_cpu@,$build_cpu,;t t
19229 s,@build_vendor@,$build_vendor,;t t
19230 s,@build_os@,$build_os,;t t
19231 s,@host@,$host,;t t
19232 s,@host_cpu@,$host_cpu,;t t
19233 s,@host_vendor@,$host_vendor,;t t
19234 s,@host_os@,$host_os,;t t
19235 s,@HAVE_SUN_OS_TRUE@,$HAVE_SUN_OS_TRUE,;t t
19236 s,@HAVE_SUN_OS_FALSE@,$HAVE_SUN_OS_FALSE,;t t
19237 s,@HAVE_OSF1_OS_TRUE@,$HAVE_OSF1_OS_TRUE,;t t
19238 s,@HAVE_OSF1_OS_FALSE@,$HAVE_OSF1_OS_FALSE,;t t
19239 s,@HAVE_AIX_OS_TRUE@,$HAVE_AIX_OS_TRUE,;t t
19240 s,@HAVE_AIX_OS_FALSE@,$HAVE_AIX_OS_FALSE,;t t
19241 s,@HAVE_HPUX_OS_TRUE@,$HAVE_HPUX_OS_TRUE,;t t
19242 s,@HAVE_HPUX_OS_FALSE@,$HAVE_HPUX_OS_FALSE,;t t
19243 s,@HAVE_LINUX_OS_TRUE@,$HAVE_LINUX_OS_TRUE,;t t
19244 s,@HAVE_LINUX_OS_FALSE@,$HAVE_LINUX_OS_FALSE,;t t
19245 s,@HAVE_FREEBSD_OS_TRUE@,$HAVE_FREEBSD_OS_TRUE,;t t
19246 s,@HAVE_FREEBSD_OS_FALSE@,$HAVE_FREEBSD_OS_FALSE,;t t
19247 s,@HAVE_NETBSD_OS_TRUE@,$HAVE_NETBSD_OS_TRUE,;t t
19248 s,@HAVE_NETBSD_OS_FALSE@,$HAVE_NETBSD_OS_FALSE,;t t
19249 s,@HAVE_OPENBSD_OS_TRUE@,$HAVE_OPENBSD_OS_TRUE,;t t
19250 s,@HAVE_OPENBSD_OS_FALSE@,$HAVE_OPENBSD_OS_FALSE,;t t
19251 s,@HAVE_BSDI_OS_TRUE@,$HAVE_BSDI_OS_TRUE,;t t
19252 s,@HAVE_BSDI_OS_FALSE@,$HAVE_BSDI_OS_FALSE,;t t
19253 s,@HAVE_SGI_OS_TRUE@,$HAVE_SGI_OS_TRUE,;t t
19254 s,@HAVE_SGI_OS_FALSE@,$HAVE_SGI_OS_FALSE,;t t
19255 s,@HAVE_IRIX_OS_TRUE@,$HAVE_IRIX_OS_TRUE,;t t
19256 s,@HAVE_IRIX_OS_FALSE@,$HAVE_IRIX_OS_FALSE,;t t
19257 s,@HAVE_DARWIN_OS_TRUE@,$HAVE_DARWIN_OS_TRUE,;t t
19258 s,@HAVE_DARWIN_OS_FALSE@,$HAVE_DARWIN_OS_FALSE,;t t
19259 s,@INSIDE_GNOME_COMMON_TRUE@,$INSIDE_GNOME_COMMON_TRUE,;t t
19260 s,@INSIDE_GNOME_COMMON_FALSE@,$INSIDE_GNOME_COMMON_FALSE,;t t
19261 s,@MSGFMT@,$MSGFMT,;t t
19262 s,@GNOME_INCLUDEDIR@,$GNOME_INCLUDEDIR,;t t
19263 s,@GNOMEUI_LIBS@,$GNOMEUI_LIBS,;t t
19264 s,@GNOME_LIBDIR@,$GNOME_LIBDIR,;t t
19265 s,@GNOME_LIBS@,$GNOME_LIBS,;t t
19266 s,@GNOMEGNORBA_LIBS@,$GNOMEGNORBA_LIBS,;t t
19267 s,@GTKXMHTML_LIBS@,$GTKXMHTML_LIBS,;t t
19268 s,@ZVT_LIBS@,$ZVT_LIBS,;t t
19269 s,@GNOME_CONFIG@,$GNOME_CONFIG,;t t
19270 s,@ORBIT_CONFIG@,$ORBIT_CONFIG,;t t
19271 s,@ORBIT_IDL@,$ORBIT_IDL,;t t
19272 s,@HAVE_ORBIT_TRUE@,$HAVE_ORBIT_TRUE,;t t
19273 s,@HAVE_ORBIT_FALSE@,$HAVE_ORBIT_FALSE,;t t
19274 s,@ORBIT_CFLAGS@,$ORBIT_CFLAGS,;t t
19275 s,@ORBIT_LIBS@,$ORBIT_LIBS,;t t
19276 s,@HAVE_GNORBA_TRUE@,$HAVE_GNORBA_TRUE,;t t
19277 s,@HAVE_GNORBA_FALSE@,$HAVE_GNORBA_FALSE,;t t
19278 s,@GNORBA_CFLAGS@,$GNORBA_CFLAGS,;t t
19279 s,@GNORBA_LIBS@,$GNORBA_LIBS,;t t
19280 s,@GNOME_APPLETS_LIBS@,$GNOME_APPLETS_LIBS,;t t
19281 s,@GNOME_DOCKLETS_LIBS@,$GNOME_DOCKLETS_LIBS,;t t
19282 s,@GNOME_CAPPLET_LIBS@,$GNOME_CAPPLET_LIBS,;t t
19283 s,@GNOME_DIR@,$GNOME_DIR,;t t
19284 s,@WXCONS_CPPFLAGS@,$WXCONS_CPPFLAGS,;t t
19285 s,@WXCONS_LDFLAGS@,$WXCONS_LDFLAGS,;t t
19286 s,@WX_DIR@,$WX_DIR,;t t
19287 s,@TTOOL_LDFLAGS@,$TTOOL_LDFLAGS,;t t
19288 s,@STATIC_FD@,$STATIC_FD,;t t
19289 s,@STATIC_SD@,$STATIC_SD,;t t
19290 s,@STATIC_DIR@,$STATIC_DIR,;t t
19291 s,@STATIC_CONS@,$STATIC_CONS,;t t
19292 s,@STATIC_GNOME_CONS@,$STATIC_GNOME_CONS,;t t
19293 s,@STATIC_WX_CONS@,$STATIC_WX_CONS,;t t
19294 s,@ALL_DIRS@,$ALL_DIRS,;t t
19295 s,@CONS_INC@,$CONS_INC,;t t
19296 s,@CONS_OBJ@,$CONS_OBJ,;t t
19297 s,@CONS_SRC@,$CONS_SRC,;t t
19298 s,@CONS_LIBS@,$CONS_LIBS,;t t
19299 s,@CONS_LDFLAGS@,$CONS_LDFLAGS,;t t
19300 s,@READLINE_SRC@,$READLINE_SRC,;t t
19301 s,@working_dir@,$working_dir,;t t
19302 s,@scriptdir@,$scriptdir,;t t
19303 s,@dump_email@,$dump_email,;t t
19304 s,@job_email@,$job_email,;t t
19305 s,@smtp_host@,$smtp_host,;t t
19306 s,@piddir@,$piddir,;t t
19307 s,@subsysdir@,$subsysdir,;t t
19308 s,@baseport@,$baseport,;t t
19309 s,@dir_port@,$dir_port,;t t
19310 s,@fd_port@,$fd_port,;t t
19311 s,@sd_port@,$sd_port,;t t
19312 s,@dir_password@,$dir_password,;t t
19313 s,@fd_password@,$fd_password,;t t
19314 s,@sd_password@,$sd_password,;t t
19315 s,@dir_user@,$dir_user,;t t
19316 s,@dir_group@,$dir_group,;t t
19317 s,@sd_user@,$sd_user,;t t
19318 s,@sd_group@,$sd_group,;t t
19319 s,@fd_user@,$fd_user,;t t
19320 s,@fd_group@,$fd_group,;t t
19321 s,@SBINPERM@,$SBINPERM,;t t
19322 s,@SQL_LFLAGS@,$SQL_LFLAGS,;t t
19323 s,@SQL_INCLUDE@,$SQL_INCLUDE,;t t
19324 s,@SQL_BINDIR@,$SQL_BINDIR,;t t
19325 s,@cats@,$cats,;t t
19326 s,@DB_NAME@,$DB_NAME,;t t
19327 s,@GETCONF@,$GETCONF,;t t
19328 s,@ac_ct_GETCONF@,$ac_ct_GETCONF,;t t
19329 s,@X_CFLAGS@,$X_CFLAGS,;t t
19330 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
19331 s,@X_LIBS@,$X_LIBS,;t t
19332 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
19333 s,@LIBOBJS@,$LIBOBJS,;t t
19334 s,@ALLOCA@,$ALLOCA,;t t
19335 s,@FDLIBS@,$FDLIBS,;t t
19336 s,@DEBUG@,$DEBUG,;t t
19337 s,@DINCLUDE@,$DINCLUDE,;t t
19338 s,@DLIB@,$DLIB,;t t
19339 s,@DB_LIBS@,$DB_LIBS,;t t
19340 s,@WCFLAGS@,$WCFLAGS,;t t
19341 s,@WLDFLAGS@,$WLDFLAGS,;t t
19342 s,@OBJLIST@,$OBJLIST,;t t
19343 s,@hostname@,$hostname,;t t
19344 s,@TAPEDRIVE@,$TAPEDRIVE,;t t
19345 s,@PSCMD@,$PSCMD,;t t
19346 s,@WIN32@,$WIN32,;t t
19347 s,@MACOSX@,$MACOSX,;t t
19348 s,@DISTNAME@,$DISTNAME,;t t
19349 s,@DISTVER@,$DISTVER,;t t
19350 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
19351 /@MCOMMON@/r $MCOMMON
19352 s,@MCOMMON@,,;t t
19353 CEOF
19354
19355 _ACEOF
19356
19357   cat >>$CONFIG_STATUS <<\_ACEOF
19358   # Split the substitutions into bite-sized pieces for seds with
19359   # small command number limits, like on Digital OSF/1 and HP-UX.
19360   ac_max_sed_lines=48
19361   ac_sed_frag=1 # Number of current file.
19362   ac_beg=1 # First line for current file.
19363   ac_end=$ac_max_sed_lines # Line after last line for current file.
19364   ac_more_lines=:
19365   ac_sed_cmds=
19366   while $ac_more_lines; do
19367     if test $ac_beg -gt 1; then
19368       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19369     else
19370       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19371     fi
19372     if test ! -s $tmp/subs.frag; then
19373       ac_more_lines=false
19374     else
19375       # The purpose of the label and of the branching condition is to
19376       # speed up the sed processing (if there are no `@' at all, there
19377       # is no need to browse any of the substitutions).
19378       # These are the two extra sed commands mentioned above.
19379       (echo ':t
19380   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
19381       if test -z "$ac_sed_cmds"; then
19382         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
19383       else
19384         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
19385       fi
19386       ac_sed_frag=`expr $ac_sed_frag + 1`
19387       ac_beg=$ac_end
19388       ac_end=`expr $ac_end + $ac_max_sed_lines`
19389     fi
19390   done
19391   if test -z "$ac_sed_cmds"; then
19392     ac_sed_cmds=cat
19393   fi
19394 fi # test -n "$CONFIG_FILES"
19395
19396 _ACEOF
19397 cat >>$CONFIG_STATUS <<\_ACEOF
19398 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
19399   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19400   case $ac_file in
19401   - | *:- | *:-:* ) # input from stdin
19402         cat >$tmp/stdin
19403         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19404         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19405   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19406         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19407   * )   ac_file_in=$ac_file.in ;;
19408   esac
19409
19410   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
19411   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
19412 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19413          X"$ac_file" : 'X\(//\)[^/]' \| \
19414          X"$ac_file" : 'X\(//\)$' \| \
19415          X"$ac_file" : 'X\(/\)' \| \
19416          .     : '\(.\)' 2>/dev/null ||
19417 echo X"$ac_file" |
19418     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19419           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19420           /^X\(\/\/\)$/{ s//\1/; q; }
19421           /^X\(\/\).*/{ s//\1/; q; }
19422           s/.*/./; q'`
19423   { if $as_mkdir_p; then
19424     mkdir -p "$ac_dir"
19425   else
19426     as_dir="$ac_dir"
19427     as_dirs=
19428     while test ! -d "$as_dir"; do
19429       as_dirs="$as_dir $as_dirs"
19430       as_dir=`(dirname "$as_dir") 2>/dev/null ||
19431 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19432          X"$as_dir" : 'X\(//\)[^/]' \| \
19433          X"$as_dir" : 'X\(//\)$' \| \
19434          X"$as_dir" : 'X\(/\)' \| \
19435          .     : '\(.\)' 2>/dev/null ||
19436 echo X"$as_dir" |
19437     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19438           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19439           /^X\(\/\/\)$/{ s//\1/; q; }
19440           /^X\(\/\).*/{ s//\1/; q; }
19441           s/.*/./; q'`
19442     done
19443     test ! -n "$as_dirs" || mkdir $as_dirs
19444   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19445 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19446    { (exit 1); exit 1; }; }; }
19447
19448   ac_builddir=.
19449
19450 if test "$ac_dir" != .; then
19451   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19452   # A "../" for each directory in $ac_dir_suffix.
19453   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19454 else
19455   ac_dir_suffix= ac_top_builddir=
19456 fi
19457
19458 case $srcdir in
19459   .)  # No --srcdir option.  We are building in place.
19460     ac_srcdir=.
19461     if test -z "$ac_top_builddir"; then
19462        ac_top_srcdir=.
19463     else
19464        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19465     fi ;;
19466   [\\/]* | ?:[\\/]* )  # Absolute path.
19467     ac_srcdir=$srcdir$ac_dir_suffix;
19468     ac_top_srcdir=$srcdir ;;
19469   *) # Relative path.
19470     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19471     ac_top_srcdir=$ac_top_builddir$srcdir ;;
19472 esac
19473 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
19474 # absolute.
19475 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
19476 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
19477 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
19478 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
19479
19480
19481   case $INSTALL in
19482   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19483   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
19484   esac
19485
19486   if test x"$ac_file" != x-; then
19487     { echo "$as_me:$LINENO: creating $ac_file" >&5
19488 echo "$as_me: creating $ac_file" >&6;}
19489     rm -f "$ac_file"
19490   fi
19491   # Let's still pretend it is `configure' which instantiates (i.e., don't
19492   # use $as_me), people would be surprised to read:
19493   #    /* config.h.  Generated by config.status.  */
19494   if test x"$ac_file" = x-; then
19495     configure_input=
19496   else
19497     configure_input="$ac_file.  "
19498   fi
19499   configure_input=$configure_input"Generated from `echo $ac_file_in |
19500                                      sed 's,.*/,,'` by configure."
19501
19502   # First look for the input files in the build tree, otherwise in the
19503   # src tree.
19504   ac_file_inputs=`IFS=:
19505     for f in $ac_file_in; do
19506       case $f in
19507       -) echo $tmp/stdin ;;
19508       [\\/$]*)
19509          # Absolute (can't be DOS-style, as IFS=:)
19510          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19511 echo "$as_me: error: cannot find input file: $f" >&2;}
19512    { (exit 1); exit 1; }; }
19513          echo $f;;
19514       *) # Relative
19515          if test -f "$f"; then
19516            # Build tree
19517            echo $f
19518          elif test -f "$srcdir/$f"; then
19519            # Source tree
19520            echo $srcdir/$f
19521          else
19522            # /dev/null tree
19523            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19524 echo "$as_me: error: cannot find input file: $f" >&2;}
19525    { (exit 1); exit 1; }; }
19526          fi;;
19527       esac
19528     done` || { (exit 1); exit 1; }
19529 _ACEOF
19530 cat >>$CONFIG_STATUS <<_ACEOF
19531   sed "$ac_vpsub
19532 $extrasub
19533 _ACEOF
19534 cat >>$CONFIG_STATUS <<\_ACEOF
19535 :t
19536 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19537 s,@configure_input@,$configure_input,;t t
19538 s,@srcdir@,$ac_srcdir,;t t
19539 s,@abs_srcdir@,$ac_abs_srcdir,;t t
19540 s,@top_srcdir@,$ac_top_srcdir,;t t
19541 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
19542 s,@builddir@,$ac_builddir,;t t
19543 s,@abs_builddir@,$ac_abs_builddir,;t t
19544 s,@top_builddir@,$ac_top_builddir,;t t
19545 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
19546 s,@INSTALL@,$ac_INSTALL,;t t
19547 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
19548   rm -f $tmp/stdin
19549   if test x"$ac_file" != x-; then
19550     mv $tmp/out $ac_file
19551   else
19552     cat $tmp/out
19553     rm -f $tmp/out
19554   fi
19555
19556 done
19557 _ACEOF
19558 cat >>$CONFIG_STATUS <<\_ACEOF
19559
19560 #
19561 # CONFIG_HEADER section.
19562 #
19563
19564 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
19565 # NAME is the cpp macro being defined and VALUE is the value it is being given.
19566 #
19567 # ac_d sets the value in "#define NAME VALUE" lines.
19568 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
19569 ac_dB='[        ].*$,\1#\2'
19570 ac_dC=' '
19571 ac_dD=',;t'
19572 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
19573 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
19574 ac_uB='$,\1#\2define\3'
19575 ac_uC=' '
19576 ac_uD=',;t'
19577
19578 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
19579   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19580   case $ac_file in
19581   - | *:- | *:-:* ) # input from stdin
19582         cat >$tmp/stdin
19583         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19584         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19585   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19586         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19587   * )   ac_file_in=$ac_file.in ;;
19588   esac
19589
19590   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
19591 echo "$as_me: creating $ac_file" >&6;}
19592
19593   # First look for the input files in the build tree, otherwise in the
19594   # src tree.
19595   ac_file_inputs=`IFS=:
19596     for f in $ac_file_in; do
19597       case $f in
19598       -) echo $tmp/stdin ;;
19599       [\\/$]*)
19600          # Absolute (can't be DOS-style, as IFS=:)
19601          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19602 echo "$as_me: error: cannot find input file: $f" >&2;}
19603    { (exit 1); exit 1; }; }
19604          echo $f;;
19605       *) # Relative
19606          if test -f "$f"; then
19607            # Build tree
19608            echo $f
19609          elif test -f "$srcdir/$f"; then
19610            # Source tree
19611            echo $srcdir/$f
19612          else
19613            # /dev/null tree
19614            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19615 echo "$as_me: error: cannot find input file: $f" >&2;}
19616    { (exit 1); exit 1; }; }
19617          fi;;
19618       esac
19619     done` || { (exit 1); exit 1; }
19620   # Remove the trailing spaces.
19621   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
19622
19623 _ACEOF
19624
19625 # Transform confdefs.h into two sed scripts, `conftest.defines' and
19626 # `conftest.undefs', that substitutes the proper values into
19627 # config.h.in to produce config.h.  The first handles `#define'
19628 # templates, and the second `#undef' templates.
19629 # And first: Protect against being on the right side of a sed subst in
19630 # config.status.  Protect against being in an unquoted here document
19631 # in config.status.
19632 rm -f conftest.defines conftest.undefs
19633 # Using a here document instead of a string reduces the quoting nightmare.
19634 # Putting comments in sed scripts is not portable.
19635 #
19636 # `end' is used to avoid that the second main sed command (meant for
19637 # 0-ary CPP macros) applies to n-ary macro definitions.
19638 # See the Autoconf documentation for `clear'.
19639 cat >confdef2sed.sed <<\_ACEOF
19640 s/[\\&,]/\\&/g
19641 s,[\\$`],\\&,g
19642 t clear
19643 : clear
19644 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
19645 t end
19646 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
19647 : end
19648 _ACEOF
19649 # If some macros were called several times there might be several times
19650 # the same #defines, which is useless.  Nevertheless, we may not want to
19651 # sort them, since we want the *last* AC-DEFINE to be honored.
19652 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
19653 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
19654 rm -f confdef2sed.sed
19655
19656 # This sed command replaces #undef with comments.  This is necessary, for
19657 # example, in the case of _POSIX_SOURCE, which is predefined and required
19658 # on some systems where configure will not decide to define it.
19659 cat >>conftest.undefs <<\_ACEOF
19660 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
19661 _ACEOF
19662
19663 # Break up conftest.defines because some shells have a limit on the size
19664 # of here documents, and old seds have small limits too (100 cmds).
19665 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
19666 echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
19667 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
19668 echo '  :' >>$CONFIG_STATUS
19669 rm -f conftest.tail
19670 while grep . conftest.defines >/dev/null
19671 do
19672   # Write a limited-size here document to $tmp/defines.sed.
19673   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
19674   # Speed up: don't consider the non `#define' lines.
19675   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
19676   # Work around the forget-to-reset-the-flag bug.
19677   echo 't clr' >>$CONFIG_STATUS
19678   echo ': clr' >>$CONFIG_STATUS
19679   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
19680   echo 'CEOF
19681   sed -f $tmp/defines.sed $tmp/in >$tmp/out
19682   rm -f $tmp/in
19683   mv $tmp/out $tmp/in
19684 ' >>$CONFIG_STATUS
19685   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
19686   rm -f conftest.defines
19687   mv conftest.tail conftest.defines
19688 done
19689 rm -f conftest.defines
19690 echo '  fi # grep' >>$CONFIG_STATUS
19691 echo >>$CONFIG_STATUS
19692
19693 # Break up conftest.undefs because some shells have a limit on the size
19694 # of here documents, and old seds have small limits too (100 cmds).
19695 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
19696 rm -f conftest.tail
19697 while grep . conftest.undefs >/dev/null
19698 do
19699   # Write a limited-size here document to $tmp/undefs.sed.
19700   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
19701   # Speed up: don't consider the non `#undef'
19702   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
19703   # Work around the forget-to-reset-the-flag bug.
19704   echo 't clr' >>$CONFIG_STATUS
19705   echo ': clr' >>$CONFIG_STATUS
19706   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
19707   echo 'CEOF
19708   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
19709   rm -f $tmp/in
19710   mv $tmp/out $tmp/in
19711 ' >>$CONFIG_STATUS
19712   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
19713   rm -f conftest.undefs
19714   mv conftest.tail conftest.undefs
19715 done
19716 rm -f conftest.undefs
19717
19718 cat >>$CONFIG_STATUS <<\_ACEOF
19719   # Let's still pretend it is `configure' which instantiates (i.e., don't
19720   # use $as_me), people would be surprised to read:
19721   #    /* config.h.  Generated by config.status.  */
19722   if test x"$ac_file" = x-; then
19723     echo "/* Generated by configure.  */" >$tmp/config.h
19724   else
19725     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
19726   fi
19727   cat $tmp/in >>$tmp/config.h
19728   rm -f $tmp/in
19729   if test x"$ac_file" != x-; then
19730     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
19731       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
19732 echo "$as_me: $ac_file is unchanged" >&6;}
19733     else
19734       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
19735 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19736          X"$ac_file" : 'X\(//\)[^/]' \| \
19737          X"$ac_file" : 'X\(//\)$' \| \
19738          X"$ac_file" : 'X\(/\)' \| \
19739          .     : '\(.\)' 2>/dev/null ||
19740 echo X"$ac_file" |
19741     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19742           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19743           /^X\(\/\/\)$/{ s//\1/; q; }
19744           /^X\(\/\).*/{ s//\1/; q; }
19745           s/.*/./; q'`
19746       { if $as_mkdir_p; then
19747     mkdir -p "$ac_dir"
19748   else
19749     as_dir="$ac_dir"
19750     as_dirs=
19751     while test ! -d "$as_dir"; do
19752       as_dirs="$as_dir $as_dirs"
19753       as_dir=`(dirname "$as_dir") 2>/dev/null ||
19754 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19755          X"$as_dir" : 'X\(//\)[^/]' \| \
19756          X"$as_dir" : 'X\(//\)$' \| \
19757          X"$as_dir" : 'X\(/\)' \| \
19758          .     : '\(.\)' 2>/dev/null ||
19759 echo X"$as_dir" |
19760     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19761           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19762           /^X\(\/\/\)$/{ s//\1/; q; }
19763           /^X\(\/\).*/{ s//\1/; q; }
19764           s/.*/./; q'`
19765     done
19766     test ! -n "$as_dirs" || mkdir $as_dirs
19767   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19768 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19769    { (exit 1); exit 1; }; }; }
19770
19771       rm -f $ac_file
19772       mv $tmp/config.h $ac_file
19773     fi
19774   else
19775     cat $tmp/config.h
19776     rm -f $tmp/config.h
19777   fi
19778 done
19779 _ACEOF
19780 cat >>$CONFIG_STATUS <<\_ACEOF
19781
19782 #
19783 # CONFIG_COMMANDS section.
19784 #
19785 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
19786   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
19787   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
19788   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
19789 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19790          X"$ac_dest" : 'X\(//\)[^/]' \| \
19791          X"$ac_dest" : 'X\(//\)$' \| \
19792          X"$ac_dest" : 'X\(/\)' \| \
19793          .     : '\(.\)' 2>/dev/null ||
19794 echo X"$ac_dest" |
19795     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19796           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19797           /^X\(\/\/\)$/{ s//\1/; q; }
19798           /^X\(\/\).*/{ s//\1/; q; }
19799           s/.*/./; q'`
19800   ac_builddir=.
19801
19802 if test "$ac_dir" != .; then
19803   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19804   # A "../" for each directory in $ac_dir_suffix.
19805   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19806 else
19807   ac_dir_suffix= ac_top_builddir=
19808 fi
19809
19810 case $srcdir in
19811   .)  # No --srcdir option.  We are building in place.
19812     ac_srcdir=.
19813     if test -z "$ac_top_builddir"; then
19814        ac_top_srcdir=.
19815     else
19816        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19817     fi ;;
19818   [\\/]* | ?:[\\/]* )  # Absolute path.
19819     ac_srcdir=$srcdir$ac_dir_suffix;
19820     ac_top_srcdir=$srcdir ;;
19821   *) # Relative path.
19822     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19823     ac_top_srcdir=$ac_top_builddir$srcdir ;;
19824 esac
19825 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
19826 # absolute.
19827 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
19828 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
19829 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
19830 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
19831
19832
19833   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
19834 echo "$as_me: executing $ac_dest commands" >&6;}
19835   case $ac_dest in
19836     default ) (echo "Doing make of dependencies"; ${MAKE:-make} depend;)
19837  ;;
19838   esac
19839 done
19840 _ACEOF
19841
19842 cat >>$CONFIG_STATUS <<\_ACEOF
19843
19844 { (exit 0); exit 0; }
19845 _ACEOF
19846 chmod +x $CONFIG_STATUS
19847 ac_clean_files=$ac_clean_files_save
19848
19849
19850 # configure is writing to config.log, and then calls config.status.
19851 # config.status does its own redirection, appending to config.log.
19852 # Unfortunately, on DOS this fails, as config.log is still kept open
19853 # by configure, so config.status won't be able to write to it; its
19854 # output is simply discarded.  So we exec the FD to /dev/null,
19855 # effectively closing config.log, so it can be properly (re)opened and
19856 # appended to by config.status.  When coming back to configure, we
19857 # need to make the FD available again.
19858 if test "$no_create" != yes; then
19859   ac_cs_success=:
19860   ac_config_status_args=
19861   test "$silent" = yes &&
19862     ac_config_status_args="$ac_config_status_args --quiet"
19863   exec 5>/dev/null
19864   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19865   exec 5>>config.log
19866   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19867   # would make configure fail if this is the last instruction.
19868   $ac_cs_success || { (exit 1); exit 1; }
19869 fi
19870
19871
19872 cd scripts
19873 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
19874 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
19875 cd ..
19876
19877 c=src/cats
19878
19879 chmod 755 $c/create_bacula_database   $c/update_bacula_tables  $c/make_bacula_tables
19880 chmod 755 $c/grant_bacula_privileges  $c/drop_bacula_tables    $c/drop_bacula_database
19881
19882 chmod 755 $c/create_bdb_database      $c/update_bdb_tables     $c/make_bdb_tables
19883 chmod 755 $c/grant_bdb_privileges     $c/drop_bdb_tables       $c/drop_bdb_database
19884
19885 chmod 755 $c/create_mysql_database    $c/update_mysql_tables   $c/make_mysql_tables
19886 chmod 755 $c/grant_mysql_privileges   $c/drop_mysql_tables     $c/drop_mysql_database
19887
19888 chmod 755 $c/create_sqlite_database   $c/update_sqlite_tables  $c/make_sqlite_tables
19889 chmod 755 $c/grant_sqlite_privileges  $c/drop_sqlite_tables    $c/drop_sqlite_database
19890
19891 chmod 755 $c/create_postgresql_database  $c/update_postgresql_tables $c/make_postgresql_tables
19892 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables   $c/drop_postgresql_database
19893
19894 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
19895 chmod 755 $c/sqlite
19896 chmod 755 $c/mysql
19897
19898 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
19899    largefile_support="yes"
19900 fi
19901
19902 #
19903 # A whole lot of hand springs to get the compiler version.
19904 #  This is because gcc changed the output in version 3.0
19905 #
19906 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
19907 if test "x${CCVERSION}" = "x" ; then
19908   CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
19909 fi
19910 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
19911 if test x"${CXXVERSION}" = x ; then
19912   CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
19913 fi
19914
19915 if test "x${subsysdir}" = "x${sbindir}" ; then
19916    echo " "
19917    echo " "
19918    echo "You have set --sbindir and --with-subsys-dir"
19919    echo "  both equal to: ${subsysdir} "
19920    echo "  This is not permitted. Please reconfigure."
19921    echo " "
19922    echo "Aborting configuration ..."
19923    echo " "
19924    echo " "
19925    exit 1
19926 fi
19927
19928 if test "x${db_name}" = "xInternal" ; then
19929    echo " "
19930    echo " "
19931    echo "You have not specified either --enable-client-only or one of the"
19932    echo "  supported databases: MySQL, PostgreSQL, or SQLite".
19933    echo "  This is not permitted. Please reconfigure."
19934    echo " "
19935    echo "Aborting the configuration ..."
19936    echo " "
19937    echo " "
19938    exit 1
19939 fi
19940
19941 echo "
19942 Configuration on `date`:
19943
19944   Host:                       $host -- ${DISTNAME} ${DISTVER}
19945   Bacula version:             ${VERSION} (${DATE})
19946   Source code location:       ${srcdir}
19947   Install binaries:           ${sbindir}
19948   Install config files:       ${sysconfdir}
19949   Scripts directory:          ${scriptdir}
19950   Working directory:          ${working_dir}
19951   PID directory:              ${piddir}
19952   Subsys directory:           ${subsysdir}
19953   C Compiler:                 ${CC} ${CCVERSION}
19954   C++ Compiler:               ${CXX} ${CXXVERSION}
19955   Compiler flags:             ${WCFLAGS} ${CFLAGS}
19956   Linker flags:               ${WLDFLAGS} ${LDFLAGS}
19957   Libraries:                  ${LIBS}
19958   Statically Linked Tools:    ${support_static_tools}
19959   Statically Linked FD:       ${support_static_fd}
19960   Statically Linked SD:       ${support_static_sd}
19961   Statically Linked DIR:      ${support_static_dir}
19962   Statically Linked CONS:     ${support_static_cons}
19963   Database type:              ${db_name}
19964   Database lib:               ${DB_LIBS}
19965
19966   Job Output Email:           ${job_email}
19967   Traceback Email:            ${dump_email}
19968   SMTP Host Address:          ${smtp_host}
19969
19970   Director Port:              ${dir_port}
19971   File daemon Port:           ${fd_port}
19972   Storage daemon Port:        ${sd_port}
19973
19974   Director User:              ${dir_user}
19975   Director Group:             ${dir_group}
19976   Storage Daemon User:        ${sd_user}
19977   Storage DaemonGroup:        ${sd_group}
19978   File Daemon User:           ${fd_user}
19979   File Daemon Group:          ${fd_group}
19980
19981   SQL binaries Directory      ${SQL_BINDIR}
19982
19983   Large file support:         $largefile_support
19984   Bacula conio support:       ${got_conio} ${CONS_LIBS}
19985   readline support:           ${got_readline} ${PRTREADLINE_SRC}
19986   TCP Wrappers support:       ${TCPW_MSG}
19987   ZLIB support:               ${have_zlib}
19988   enable-smartalloc:          ${support_smartalloc}
19989   enable-gnome:               ${support_gnome} ${gnome_version}
19990   enable-wx-console:          ${support_wx_console}
19991   client-only:                ${build_client_only}
19992   ACL support:                ${have_acl}
19993
19994   " > config.out
19995
19996 cat config.out
19997
19998 # old stuff
19999 # cweb support:               ${got_cweb} ${CWEB_SRC}
20000 # gmp support:                ${got_gmp} ${GMP_SRC}