]> git.sur5r.net Git - bacula/bacula/blob - bacula/configure
- Add missing #define for IPV6 found by Martin in address_conf.c
[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 CDRECORD ARFLAGS MAKE_SHELL LOCAL_LIBS LOCAL_CFLAGS LOCAL_LDFLAGS LOCAL_DEFS build build_cpu build_vendor build_os host host_cpu host_vendor host_os HAVE_SUN_OS_TRUE HAVE_SUN_OS_FALSE HAVE_OSF1_OS_TRUE HAVE_OSF1_OS_FALSE HAVE_AIX_OS_TRUE HAVE_AIX_OS_FALSE HAVE_HPUX_OS_TRUE HAVE_HPUX_OS_FALSE HAVE_LINUX_OS_TRUE HAVE_LINUX_OS_FALSE HAVE_FREEBSD_OS_TRUE HAVE_FREEBSD_OS_FALSE HAVE_NETBSD_OS_TRUE HAVE_NETBSD_OS_FALSE HAVE_OPENBSD_OS_TRUE HAVE_OPENBSD_OS_FALSE HAVE_BSDI_OS_TRUE HAVE_BSDI_OS_FALSE HAVE_SGI_OS_TRUE HAVE_SGI_OS_FALSE HAVE_IRIX_OS_TRUE HAVE_IRIX_OS_FALSE HAVE_DARWIN_OS_TRUE HAVE_DARWIN_OS_FALSE INSIDE_GNOME_COMMON_TRUE INSIDE_GNOME_COMMON_FALSE MSGFMT GNOME_INCLUDEDIR GNOMEUI_LIBS GNOME_LIBDIR GNOME_LIBS GNOMEGNORBA_LIBS GTKXMHTML_LIBS ZVT_LIBS GNOME_CONFIG ORBIT_CONFIG ORBIT_IDL HAVE_ORBIT_TRUE HAVE_ORBIT_FALSE ORBIT_CFLAGS ORBIT_LIBS HAVE_GNORBA_TRUE HAVE_GNORBA_FALSE GNORBA_CFLAGS GNORBA_LIBS GNOME_APPLETS_LIBS GNOME_DOCKLETS_LIBS GNOME_CAPPLET_LIBS GNOME_DIR WXCONS_CPPFLAGS WXCONS_LDFLAGS WX_DIR TRAY_MONITOR_CPPFLAGS TRAY_MONITOR_LDFLAGS TRAY_MONITOR_DIR TTOOL_LDFLAGS STATIC_FD STATIC_SD STATIC_DIR STATIC_CONS STATIC_GNOME_CONS STATIC_WX_CONS ALL_DIRS CONS_INC CONS_OBJ CONS_SRC CONS_LIBS CONS_LDFLAGS READLINE_SRC CDSTL working_dir scriptdir dump_email job_email smtp_host piddir subsysdir baseport dir_port fd_port sd_port dir_password fd_password sd_password mon_dir_password mon_fd_password mon_sd_password dir_user dir_group sd_user sd_group fd_user fd_group SBINPERM SQL_LFLAGS SQL_INCLUDE SQL_BINDIR cats DB_NAME GETCONF ac_ct_GETCONF X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS LIBOBJS ALLOCA FDLIBS DEBUG DINCLUDE DLIB DB_LIBS WCFLAGS WLDFLAGS OBJLIST hostname TAPEDRIVE PSCMD WIN32 MACOSX DISTNAME DISTVER LTLIBOBJS'
312 ac_subst_files='MCOMMON'
313
314 # Initialize some variables set by options.
315 ac_init_help=
316 ac_init_version=false
317 # The variables have the same names as the options, with
318 # dashes changed to underlines.
319 cache_file=/dev/null
320 exec_prefix=NONE
321 no_create=
322 no_recursion=
323 prefix=NONE
324 program_prefix=NONE
325 program_suffix=NONE
326 program_transform_name=s,x,x,
327 silent=
328 site=
329 srcdir=
330 verbose=
331 x_includes=NONE
332 x_libraries=NONE
333
334 # Installation directory options.
335 # These are left unexpanded so users can "make install exec_prefix=/foo"
336 # and all the variables that are supposed to be based on exec_prefix
337 # by default will actually change.
338 # Use braces instead of parens because sh, perl, etc. also accept them.
339 bindir='${exec_prefix}/bin'
340 sbindir='${exec_prefix}/sbin'
341 libexecdir='${exec_prefix}/libexec'
342 datadir='${prefix}/share'
343 sysconfdir='${prefix}/etc'
344 sharedstatedir='${prefix}/com'
345 localstatedir='${prefix}/var'
346 libdir='${exec_prefix}/lib'
347 includedir='${prefix}/include'
348 oldincludedir='/usr/include'
349 infodir='${prefix}/info'
350 mandir='${prefix}/man'
351
352 ac_prev=
353 for ac_option
354 do
355   # If the previous option needs an argument, assign it.
356   if test -n "$ac_prev"; then
357     eval "$ac_prev=\$ac_option"
358     ac_prev=
359     continue
360   fi
361
362   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
363
364   # Accept the important Cygnus configure options, so we can diagnose typos.
365
366   case $ac_option in
367
368   -bindir | --bindir | --bindi | --bind | --bin | --bi)
369     ac_prev=bindir ;;
370   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
371     bindir=$ac_optarg ;;
372
373   -build | --build | --buil | --bui | --bu)
374     ac_prev=build_alias ;;
375   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
376     build_alias=$ac_optarg ;;
377
378   -cache-file | --cache-file | --cache-fil | --cache-fi \
379   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
380     ac_prev=cache_file ;;
381   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
382   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
383     cache_file=$ac_optarg ;;
384
385   --config-cache | -C)
386     cache_file=config.cache ;;
387
388   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
389     ac_prev=datadir ;;
390   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
391   | --da=*)
392     datadir=$ac_optarg ;;
393
394   -disable-* | --disable-*)
395     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
396     # Reject names that are not valid shell variable names.
397     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
398       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
399    { (exit 1); exit 1; }; }
400     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
401     eval "enable_$ac_feature=no" ;;
402
403   -enable-* | --enable-*)
404     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
405     # Reject names that are not valid shell variable names.
406     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
407       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
408    { (exit 1); exit 1; }; }
409     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
410     case $ac_option in
411       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
412       *) ac_optarg=yes ;;
413     esac
414     eval "enable_$ac_feature='$ac_optarg'" ;;
415
416   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
417   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
418   | --exec | --exe | --ex)
419     ac_prev=exec_prefix ;;
420   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
421   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
422   | --exec=* | --exe=* | --ex=*)
423     exec_prefix=$ac_optarg ;;
424
425   -gas | --gas | --ga | --g)
426     # Obsolete; use --with-gas.
427     with_gas=yes ;;
428
429   -help | --help | --hel | --he | -h)
430     ac_init_help=long ;;
431   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
432     ac_init_help=recursive ;;
433   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
434     ac_init_help=short ;;
435
436   -host | --host | --hos | --ho)
437     ac_prev=host_alias ;;
438   -host=* | --host=* | --hos=* | --ho=*)
439     host_alias=$ac_optarg ;;
440
441   -includedir | --includedir | --includedi | --included | --include \
442   | --includ | --inclu | --incl | --inc)
443     ac_prev=includedir ;;
444   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
445   | --includ=* | --inclu=* | --incl=* | --inc=*)
446     includedir=$ac_optarg ;;
447
448   -infodir | --infodir | --infodi | --infod | --info | --inf)
449     ac_prev=infodir ;;
450   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
451     infodir=$ac_optarg ;;
452
453   -libdir | --libdir | --libdi | --libd)
454     ac_prev=libdir ;;
455   -libdir=* | --libdir=* | --libdi=* | --libd=*)
456     libdir=$ac_optarg ;;
457
458   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
459   | --libexe | --libex | --libe)
460     ac_prev=libexecdir ;;
461   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
462   | --libexe=* | --libex=* | --libe=*)
463     libexecdir=$ac_optarg ;;
464
465   -localstatedir | --localstatedir | --localstatedi | --localstated \
466   | --localstate | --localstat | --localsta | --localst \
467   | --locals | --local | --loca | --loc | --lo)
468     ac_prev=localstatedir ;;
469   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
470   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
471   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
472     localstatedir=$ac_optarg ;;
473
474   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
475     ac_prev=mandir ;;
476   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
477     mandir=$ac_optarg ;;
478
479   -nfp | --nfp | --nf)
480     # Obsolete; use --without-fp.
481     with_fp=no ;;
482
483   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
484   | --no-cr | --no-c | -n)
485     no_create=yes ;;
486
487   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
488   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
489     no_recursion=yes ;;
490
491   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
492   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
493   | --oldin | --oldi | --old | --ol | --o)
494     ac_prev=oldincludedir ;;
495   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
496   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
497   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
498     oldincludedir=$ac_optarg ;;
499
500   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
501     ac_prev=prefix ;;
502   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
503     prefix=$ac_optarg ;;
504
505   -program-prefix | --program-prefix | --program-prefi | --program-pref \
506   | --program-pre | --program-pr | --program-p)
507     ac_prev=program_prefix ;;
508   -program-prefix=* | --program-prefix=* | --program-prefi=* \
509   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
510     program_prefix=$ac_optarg ;;
511
512   -program-suffix | --program-suffix | --program-suffi | --program-suff \
513   | --program-suf | --program-su | --program-s)
514     ac_prev=program_suffix ;;
515   -program-suffix=* | --program-suffix=* | --program-suffi=* \
516   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
517     program_suffix=$ac_optarg ;;
518
519   -program-transform-name | --program-transform-name \
520   | --program-transform-nam | --program-transform-na \
521   | --program-transform-n | --program-transform- \
522   | --program-transform | --program-transfor \
523   | --program-transfo | --program-transf \
524   | --program-trans | --program-tran \
525   | --progr-tra | --program-tr | --program-t)
526     ac_prev=program_transform_name ;;
527   -program-transform-name=* | --program-transform-name=* \
528   | --program-transform-nam=* | --program-transform-na=* \
529   | --program-transform-n=* | --program-transform-=* \
530   | --program-transform=* | --program-transfor=* \
531   | --program-transfo=* | --program-transf=* \
532   | --program-trans=* | --program-tran=* \
533   | --progr-tra=* | --program-tr=* | --program-t=*)
534     program_transform_name=$ac_optarg ;;
535
536   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
537   | -silent | --silent | --silen | --sile | --sil)
538     silent=yes ;;
539
540   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
541     ac_prev=sbindir ;;
542   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
543   | --sbi=* | --sb=*)
544     sbindir=$ac_optarg ;;
545
546   -sharedstatedir | --sharedstatedir | --sharedstatedi \
547   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
548   | --sharedst | --shareds | --shared | --share | --shar \
549   | --sha | --sh)
550     ac_prev=sharedstatedir ;;
551   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
552   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
553   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
554   | --sha=* | --sh=*)
555     sharedstatedir=$ac_optarg ;;
556
557   -site | --site | --sit)
558     ac_prev=site ;;
559   -site=* | --site=* | --sit=*)
560     site=$ac_optarg ;;
561
562   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
563     ac_prev=srcdir ;;
564   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
565     srcdir=$ac_optarg ;;
566
567   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
568   | --syscon | --sysco | --sysc | --sys | --sy)
569     ac_prev=sysconfdir ;;
570   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
571   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
572     sysconfdir=$ac_optarg ;;
573
574   -target | --target | --targe | --targ | --tar | --ta | --t)
575     ac_prev=target_alias ;;
576   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
577     target_alias=$ac_optarg ;;
578
579   -v | -verbose | --verbose | --verbos | --verbo | --verb)
580     verbose=yes ;;
581
582   -version | --version | --versio | --versi | --vers | -V)
583     ac_init_version=: ;;
584
585   -with-* | --with-*)
586     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
587     # Reject names that are not valid shell variable names.
588     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
589       { echo "$as_me: error: invalid package name: $ac_package" >&2
590    { (exit 1); exit 1; }; }
591     ac_package=`echo $ac_package| sed 's/-/_/g'`
592     case $ac_option in
593       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
594       *) ac_optarg=yes ;;
595     esac
596     eval "with_$ac_package='$ac_optarg'" ;;
597
598   -without-* | --without-*)
599     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
600     # Reject names that are not valid shell variable names.
601     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
602       { echo "$as_me: error: invalid package name: $ac_package" >&2
603    { (exit 1); exit 1; }; }
604     ac_package=`echo $ac_package | sed 's/-/_/g'`
605     eval "with_$ac_package=no" ;;
606
607   --x)
608     # Obsolete; use --with-x.
609     with_x=yes ;;
610
611   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
612   | --x-incl | --x-inc | --x-in | --x-i)
613     ac_prev=x_includes ;;
614   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
615   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
616     x_includes=$ac_optarg ;;
617
618   -x-libraries | --x-libraries | --x-librarie | --x-librari \
619   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
620     ac_prev=x_libraries ;;
621   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
622   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
623     x_libraries=$ac_optarg ;;
624
625   -*) { echo "$as_me: error: unrecognized option: $ac_option
626 Try \`$0 --help' for more information." >&2
627    { (exit 1); exit 1; }; }
628     ;;
629
630   *=*)
631     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
632     # Reject names that are not valid shell variable names.
633     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
634       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
635    { (exit 1); exit 1; }; }
636     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
637     eval "$ac_envvar='$ac_optarg'"
638     export $ac_envvar ;;
639
640   *)
641     # FIXME: should be removed in autoconf 3.0.
642     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
643     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
644       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
645     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
646     ;;
647
648   esac
649 done
650
651 if test -n "$ac_prev"; then
652   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
653   { echo "$as_me: error: missing argument to $ac_option" >&2
654    { (exit 1); exit 1; }; }
655 fi
656
657 # Be sure to have absolute paths.
658 for ac_var in exec_prefix prefix
659 do
660   eval ac_val=$`echo $ac_var`
661   case $ac_val in
662     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
663     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
664    { (exit 1); exit 1; }; };;
665   esac
666 done
667
668 # Be sure to have absolute paths.
669 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
670               localstatedir libdir includedir oldincludedir infodir mandir
671 do
672   eval ac_val=$`echo $ac_var`
673   case $ac_val in
674     [\\/$]* | ?:[\\/]* ) ;;
675     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
676    { (exit 1); exit 1; }; };;
677   esac
678 done
679
680 # There might be people who depend on the old broken behavior: `$host'
681 # used to hold the argument of --host etc.
682 # FIXME: To remove some day.
683 build=$build_alias
684 host=$host_alias
685 target=$target_alias
686
687 # FIXME: To remove some day.
688 if test "x$host_alias" != x; then
689   if test "x$build_alias" = x; then
690     cross_compiling=maybe
691     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
692     If a cross compiler is detected then cross compile mode will be used." >&2
693   elif test "x$build_alias" != "x$host_alias"; then
694     cross_compiling=yes
695   fi
696 fi
697
698 ac_tool_prefix=
699 test -n "$host_alias" && ac_tool_prefix=$host_alias-
700
701 test "$silent" = yes && exec 6>/dev/null
702
703
704 # Find the source files, if location was not specified.
705 if test -z "$srcdir"; then
706   ac_srcdir_defaulted=yes
707   # Try the directory containing this script, then its parent.
708   ac_confdir=`(dirname "$0") 2>/dev/null ||
709 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
710          X"$0" : 'X\(//\)[^/]' \| \
711          X"$0" : 'X\(//\)$' \| \
712          X"$0" : 'X\(/\)' \| \
713          .     : '\(.\)' 2>/dev/null ||
714 echo X"$0" |
715     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
716           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
717           /^X\(\/\/\)$/{ s//\1/; q; }
718           /^X\(\/\).*/{ s//\1/; q; }
719           s/.*/./; q'`
720   srcdir=$ac_confdir
721   if test ! -r $srcdir/$ac_unique_file; then
722     srcdir=..
723   fi
724 else
725   ac_srcdir_defaulted=no
726 fi
727 if test ! -r $srcdir/$ac_unique_file; then
728   if test "$ac_srcdir_defaulted" = yes; then
729     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
730    { (exit 1); exit 1; }; }
731   else
732     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
733    { (exit 1); exit 1; }; }
734   fi
735 fi
736 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
737   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
738    { (exit 1); exit 1; }; }
739 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
740 ac_env_build_alias_set=${build_alias+set}
741 ac_env_build_alias_value=$build_alias
742 ac_cv_env_build_alias_set=${build_alias+set}
743 ac_cv_env_build_alias_value=$build_alias
744 ac_env_host_alias_set=${host_alias+set}
745 ac_env_host_alias_value=$host_alias
746 ac_cv_env_host_alias_set=${host_alias+set}
747 ac_cv_env_host_alias_value=$host_alias
748 ac_env_target_alias_set=${target_alias+set}
749 ac_env_target_alias_value=$target_alias
750 ac_cv_env_target_alias_set=${target_alias+set}
751 ac_cv_env_target_alias_value=$target_alias
752 ac_env_CC_set=${CC+set}
753 ac_env_CC_value=$CC
754 ac_cv_env_CC_set=${CC+set}
755 ac_cv_env_CC_value=$CC
756 ac_env_CFLAGS_set=${CFLAGS+set}
757 ac_env_CFLAGS_value=$CFLAGS
758 ac_cv_env_CFLAGS_set=${CFLAGS+set}
759 ac_cv_env_CFLAGS_value=$CFLAGS
760 ac_env_LDFLAGS_set=${LDFLAGS+set}
761 ac_env_LDFLAGS_value=$LDFLAGS
762 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_cv_env_LDFLAGS_value=$LDFLAGS
764 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
765 ac_env_CPPFLAGS_value=$CPPFLAGS
766 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
768 ac_env_CXX_set=${CXX+set}
769 ac_env_CXX_value=$CXX
770 ac_cv_env_CXX_set=${CXX+set}
771 ac_cv_env_CXX_value=$CXX
772 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
773 ac_env_CXXFLAGS_value=$CXXFLAGS
774 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
775 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
776 ac_env_CPP_set=${CPP+set}
777 ac_env_CPP_value=$CPP
778 ac_cv_env_CPP_set=${CPP+set}
779 ac_cv_env_CPP_value=$CPP
780
781 #
782 # Report the --help message.
783 #
784 if test "$ac_init_help" = "long"; then
785   # Omit some internal or obsolete options to make the list less imposing.
786   # This message is too long to be a string in the A/UX 3.1 sh.
787   cat <<_ACEOF
788 \`configure' configures this package to adapt to many kinds of systems.
789
790 Usage: $0 [OPTION]... [VAR=VALUE]...
791
792 To assign environment variables (e.g., CC, CFLAGS...), specify them as
793 VAR=VALUE.  See below for descriptions of some of the useful variables.
794
795 Defaults for the options are specified in brackets.
796
797 Configuration:
798   -h, --help              display this help and exit
799       --help=short        display options specific to this package
800       --help=recursive    display the short help of all the included packages
801   -V, --version           display version information and exit
802   -q, --quiet, --silent   do not print \`checking...' messages
803       --cache-file=FILE   cache test results in FILE [disabled]
804   -C, --config-cache      alias for \`--cache-file=config.cache'
805   -n, --no-create         do not create output files
806       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
807
808 _ACEOF
809
810   cat <<_ACEOF
811 Installation directories:
812   --prefix=PREFIX         install architecture-independent files in PREFIX
813                           [$ac_default_prefix]
814   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
815                           [PREFIX]
816
817 By default, \`make install' will install all the files in
818 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
819 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
820 for instance \`--prefix=\$HOME'.
821
822 For better control, use the options below.
823
824 Fine tuning of the installation directories:
825   --bindir=DIR           user executables [EPREFIX/bin]
826   --sbindir=DIR          system admin executables [EPREFIX/sbin]
827   --libexecdir=DIR       program executables [EPREFIX/libexec]
828   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
829   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
830   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
831   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
832   --libdir=DIR           object code libraries [EPREFIX/lib]
833   --includedir=DIR       C header files [PREFIX/include]
834   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
835   --infodir=DIR          info documentation [PREFIX/info]
836   --mandir=DIR           man documentation [PREFIX/man]
837 _ACEOF
838
839   cat <<\_ACEOF
840
841 X features:
842   --x-includes=DIR    X include files are in DIR
843   --x-libraries=DIR   X library files are in DIR
844
845 System types:
846   --build=BUILD     configure for building on BUILD [guessed]
847   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
848 _ACEOF
849 fi
850
851 if test -n "$ac_init_help"; then
852
853   cat <<\_ACEOF
854
855 Optional Features:
856   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
857   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
858   --enable-gnome          enable build of gnome-console GUI disabled
859   --enable-wx-console     enable build of wxWidgets console disabled
860   --enable-tray-monitor   enable build of Gnome tray monitor (compatible with KDE) disabled
861   --enable-smartalloc     enable smartalloc debugging support disabled
862   --enable-static-tools   enable static tape tools disabled
863   --enable-static-fd      enable static File daemon disabled
864   --enable-static-sd      enable static Storage daemon disabled
865   --enable-static-dir     enable static Director disabled
866   --enable-static-cons    enable static Console disabled
867   --enable-client-only    build client (File daemon) only disabled
868   --disable-conio            disable conio support enabled
869
870   --disable-readline      disable readline support disable
871
872   --disable-largefile     omit support for large files
873
874 Optional Packages:
875   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
876   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
877   --with-gnome-includes   Specify location of GNOME headers
878   --with-gnome-libs       Specify location of GNOME libs
879   --with-gnome            Specify prefix for GNOME files
880  --with-readline=DIR             specify readline library directory
881   --with-tcp-wrappers=DIR        enable tcpwrappers support
882   --with-working-dir=PATH        specify path of Bacula working directory
883   --with-scriptdir=PATH    specify path of Bacula scripts directory
884   --with-dump-email=EMAIL        dump email address
885   --with-job-email=EMAIL         job output email address
886   --with-smtp-host=HOST          SMTP mail host address
887   --with-pid-dir=PATH            specify location of Bacula pid files
888   --with-subsys-dir=PATH         specify location of Bacula subsys file
889   --with-baseport=PORT           specify base port address for daemons
890   --with-dir-password=PASSWORD   specify Director's password
891   --with-fd-password=PASSWORD    specify Client's password
892   --with-sd-password=PASSWORD    specify Storage daemon's password
893   --with-mon-dir-password=PASSWORD       specify Director's password used by the monitor
894   --with-mon-fd-password=PASSWORD        specify Client's password used by the monitor
895   --with-mon-sd-password=PASSWORD        specify Storage daemon's password used by the monitor
896   --with-dir-user=USER           specify user for Director daemon
897   --with-dir-group=GROUP                 specify group for Director daemon
898   --with-sd-user=USER            specify user for Storage daemon
899   --with-sd-group=GROUP          specify group for Storage daemon
900   --with-fd-user=USER            specify user for File daemon
901   --with-fd-group=GROUP          specify group for File daemon
902   --with-sbin-perm=MODE          specify permissions for sbin binaries (0754)
903   --with-postgresql=DIR      Include PostgreSQL support.  DIR is the PostgreSQL
904                           base install directory, defaults to /usr/local/pgsql
905
906   --with-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-embedded-mysql=DIR Include MySQL support.  DIR is the MySQL base
911                           install directory, default is to search through
912                           a number of common places for the MySQL files.
913
914   --with-sqlite=DIR     Include SQLite support.  DIR is the SQLite base
915                           install directory, default is to search through
916                           a number of common places for the SQLite files.
917   --with-x                use the X Window System
918
919 Some influential environment variables:
920   CC          C compiler command
921   CFLAGS      C compiler flags
922   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
923               nonstandard directory <lib dir>
924   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
925               headers in a nonstandard directory <include dir>
926   CXX         C++ compiler command
927   CXXFLAGS    C++ compiler flags
928   CPP         C preprocessor
929
930 Use these variables to override the choices made by `configure' or to help
931 it to find libraries and programs with nonstandard names/locations.
932
933 _ACEOF
934 fi
935
936 if test "$ac_init_help" = "recursive"; then
937   # If there are subdirs, report their specific --help.
938   ac_popdir=`pwd`
939   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
940     test -d $ac_dir || continue
941     ac_builddir=.
942
943 if test "$ac_dir" != .; then
944   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
945   # A "../" for each directory in $ac_dir_suffix.
946   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
947 else
948   ac_dir_suffix= ac_top_builddir=
949 fi
950
951 case $srcdir in
952   .)  # No --srcdir option.  We are building in place.
953     ac_srcdir=.
954     if test -z "$ac_top_builddir"; then
955        ac_top_srcdir=.
956     else
957        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
958     fi ;;
959   [\\/]* | ?:[\\/]* )  # Absolute path.
960     ac_srcdir=$srcdir$ac_dir_suffix;
961     ac_top_srcdir=$srcdir ;;
962   *) # Relative path.
963     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
964     ac_top_srcdir=$ac_top_builddir$srcdir ;;
965 esac
966 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
967 # absolute.
968 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
969 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
970 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
971 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
972
973     cd $ac_dir
974     # Check for guested configure; otherwise get Cygnus style configure.
975     if test -f $ac_srcdir/configure.gnu; then
976       echo
977       $SHELL $ac_srcdir/configure.gnu  --help=recursive
978     elif test -f $ac_srcdir/configure; then
979       echo
980       $SHELL $ac_srcdir/configure  --help=recursive
981     elif test -f $ac_srcdir/configure.ac ||
982            test -f $ac_srcdir/configure.in; then
983       echo
984       $ac_configure --help
985     else
986       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
987     fi
988     cd $ac_popdir
989   done
990 fi
991
992 test -n "$ac_init_help" && exit 0
993 if $ac_init_version; then
994   cat <<\_ACEOF
995
996 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
997 Free Software Foundation, Inc.
998 This configure script is free software; the Free Software Foundation
999 gives unlimited permission to copy, distribute and modify it.
1000 _ACEOF
1001   exit 0
1002 fi
1003 exec 5>config.log
1004 cat >&5 <<_ACEOF
1005 This file contains any messages produced by compilers while
1006 running configure, to aid debugging if configure makes a mistake.
1007
1008 It was created by $as_me, which was
1009 generated by GNU Autoconf 2.57.  Invocation command line was
1010
1011   $ $0 $@
1012
1013 _ACEOF
1014 {
1015 cat <<_ASUNAME
1016 ## --------- ##
1017 ## Platform. ##
1018 ## --------- ##
1019
1020 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1021 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1022 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1023 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1024 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1025
1026 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1027 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1028
1029 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1030 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1031 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1032 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1033 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1034 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1035 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1036
1037 _ASUNAME
1038
1039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1040 for as_dir in $PATH
1041 do
1042   IFS=$as_save_IFS
1043   test -z "$as_dir" && as_dir=.
1044   echo "PATH: $as_dir"
1045 done
1046
1047 } >&5
1048
1049 cat >&5 <<_ACEOF
1050
1051
1052 ## ----------- ##
1053 ## Core tests. ##
1054 ## ----------- ##
1055
1056 _ACEOF
1057
1058
1059 # Keep a trace of the command line.
1060 # Strip out --no-create and --no-recursion so they do not pile up.
1061 # Strip out --silent because we don't want to record it for future runs.
1062 # Also quote any args containing shell meta-characters.
1063 # Make two passes to allow for proper duplicate-argument suppression.
1064 ac_configure_args=
1065 ac_configure_args0=
1066 ac_configure_args1=
1067 ac_sep=
1068 ac_must_keep_next=false
1069 for ac_pass in 1 2
1070 do
1071   for ac_arg
1072   do
1073     case $ac_arg in
1074     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1075     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1076     | -silent | --silent | --silen | --sile | --sil)
1077       continue ;;
1078     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1079       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1080     esac
1081     case $ac_pass in
1082     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1083     2)
1084       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1085       if test $ac_must_keep_next = true; then
1086         ac_must_keep_next=false # Got value, back to normal.
1087       else
1088         case $ac_arg in
1089           *=* | --config-cache | -C | -disable-* | --disable-* \
1090           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1091           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1092           | -with-* | --with-* | -without-* | --without-* | --x)
1093             case "$ac_configure_args0 " in
1094               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1095             esac
1096             ;;
1097           -* ) ac_must_keep_next=true ;;
1098         esac
1099       fi
1100       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1101       # Get rid of the leading space.
1102       ac_sep=" "
1103       ;;
1104     esac
1105   done
1106 done
1107 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1108 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1109
1110 # When interrupted or exit'd, cleanup temporary files, and complete
1111 # config.log.  We remove comments because anyway the quotes in there
1112 # would cause problems or look ugly.
1113 # WARNING: Be sure not to use single quotes in there, as some shells,
1114 # such as our DU 5.0 friend, will then `close' the trap.
1115 trap 'exit_status=$?
1116   # Save into config.log some information that might help in debugging.
1117   {
1118     echo
1119
1120     cat <<\_ASBOX
1121 ## ---------------- ##
1122 ## Cache variables. ##
1123 ## ---------------- ##
1124 _ASBOX
1125     echo
1126     # The following way of writing the cache mishandles newlines in values,
1127 {
1128   (set) 2>&1 |
1129     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1130     *ac_space=\ *)
1131       sed -n \
1132         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1133           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1134       ;;
1135     *)
1136       sed -n \
1137         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1138       ;;
1139     esac;
1140 }
1141     echo
1142
1143     cat <<\_ASBOX
1144 ## ----------------- ##
1145 ## Output variables. ##
1146 ## ----------------- ##
1147 _ASBOX
1148     echo
1149     for ac_var in $ac_subst_vars
1150     do
1151       eval ac_val=$`echo $ac_var`
1152       echo "$ac_var='"'"'$ac_val'"'"'"
1153     done | sort
1154     echo
1155
1156     if test -n "$ac_subst_files"; then
1157       cat <<\_ASBOX
1158 ## ------------- ##
1159 ## Output files. ##
1160 ## ------------- ##
1161 _ASBOX
1162       echo
1163       for ac_var in $ac_subst_files
1164       do
1165         eval ac_val=$`echo $ac_var`
1166         echo "$ac_var='"'"'$ac_val'"'"'"
1167       done | sort
1168       echo
1169     fi
1170
1171     if test -s confdefs.h; then
1172       cat <<\_ASBOX
1173 ## ----------- ##
1174 ## confdefs.h. ##
1175 ## ----------- ##
1176 _ASBOX
1177       echo
1178       sed "/^$/d" confdefs.h | sort
1179       echo
1180     fi
1181     test "$ac_signal" != 0 &&
1182       echo "$as_me: caught signal $ac_signal"
1183     echo "$as_me: exit $exit_status"
1184   } >&5
1185   rm -f core core.* *.core &&
1186   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1187     exit $exit_status
1188      ' 0
1189 for ac_signal in 1 2 13 15; do
1190   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1191 done
1192 ac_signal=0
1193
1194 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1195 rm -rf conftest* confdefs.h
1196 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1197 echo >confdefs.h
1198
1199 # Predefined preprocessor variables.
1200
1201 cat >>confdefs.h <<_ACEOF
1202 #define PACKAGE_NAME "$PACKAGE_NAME"
1203 _ACEOF
1204
1205
1206 cat >>confdefs.h <<_ACEOF
1207 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1208 _ACEOF
1209
1210
1211 cat >>confdefs.h <<_ACEOF
1212 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1213 _ACEOF
1214
1215
1216 cat >>confdefs.h <<_ACEOF
1217 #define PACKAGE_STRING "$PACKAGE_STRING"
1218 _ACEOF
1219
1220
1221 cat >>confdefs.h <<_ACEOF
1222 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1223 _ACEOF
1224
1225
1226 # Let the site file select an alternate cache file if it wants to.
1227 # Prefer explicitly selected file to automatically selected ones.
1228 if test -z "$CONFIG_SITE"; then
1229   if test "x$prefix" != xNONE; then
1230     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1231   else
1232     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1233   fi
1234 fi
1235 for ac_site_file in $CONFIG_SITE; do
1236   if test -r "$ac_site_file"; then
1237     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1238 echo "$as_me: loading site script $ac_site_file" >&6;}
1239     sed 's/^/| /' "$ac_site_file" >&5
1240     . "$ac_site_file"
1241   fi
1242 done
1243
1244 if test -r "$cache_file"; then
1245   # Some versions of bash will fail to source /dev/null (special
1246   # files actually), so we avoid doing that.
1247   if test -f "$cache_file"; then
1248     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1249 echo "$as_me: loading cache $cache_file" >&6;}
1250     case $cache_file in
1251       [\\/]* | ?:[\\/]* ) . $cache_file;;
1252       *)                      . ./$cache_file;;
1253     esac
1254   fi
1255 else
1256   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1257 echo "$as_me: creating cache $cache_file" >&6;}
1258   >$cache_file
1259 fi
1260
1261 # Check that the precious variables saved in the cache have kept the same
1262 # value.
1263 ac_cache_corrupted=false
1264 for ac_var in `(set) 2>&1 |
1265                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1266   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1267   eval ac_new_set=\$ac_env_${ac_var}_set
1268   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1269   eval ac_new_val="\$ac_env_${ac_var}_value"
1270   case $ac_old_set,$ac_new_set in
1271     set,)
1272       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1273 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1274       ac_cache_corrupted=: ;;
1275     ,set)
1276       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1277 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1278       ac_cache_corrupted=: ;;
1279     ,);;
1280     *)
1281       if test "x$ac_old_val" != "x$ac_new_val"; then
1282         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1283 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1284         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1285 echo "$as_me:   former value:  $ac_old_val" >&2;}
1286         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1287 echo "$as_me:   current value: $ac_new_val" >&2;}
1288         ac_cache_corrupted=:
1289       fi;;
1290   esac
1291   # Pass precious variables to config.status.
1292   if test "$ac_new_set" = set; then
1293     case $ac_new_val in
1294     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1295       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1296     *) ac_arg=$ac_var=$ac_new_val ;;
1297     esac
1298     case " $ac_configure_args " in
1299       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1300       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1301     esac
1302   fi
1303 done
1304 if $ac_cache_corrupted; then
1305   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1306 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1307   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1308 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1309    { (exit 1); exit 1; }; }
1310 fi
1311
1312 ac_ext=c
1313 ac_cpp='$CPP $CPPFLAGS'
1314 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1315 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1316 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336 BUILD_DIR=`pwd`
1337 cd ..
1338 TOP_DIR=`pwd`
1339 cd ${BUILD_DIR}
1340
1341 ac_aux_dir=
1342 for ac_dir in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf; do
1343   if 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/install.sh; then
1348     ac_aux_dir=$ac_dir
1349     ac_install_sh="$ac_aux_dir/install.sh -c"
1350     break
1351   elif test -f $ac_dir/shtool; then
1352     ac_aux_dir=$ac_dir
1353     ac_install_sh="$ac_aux_dir/shtool install -c"
1354     break
1355   fi
1356 done
1357 if test -z "$ac_aux_dir"; then
1358   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&5
1359 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&2;}
1360    { (exit 1); exit 1; }; }
1361 fi
1362 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1363 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1364 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1365
1366           ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
1367
1368
1369
1370
1371
1372 for ac_prog in true
1373 do
1374   # Extract the first word of "$ac_prog", so it can be a program name with args.
1375 set dummy $ac_prog; ac_word=$2
1376 echo "$as_me:$LINENO: checking for $ac_word" >&5
1377 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1378 if test "${ac_cv_path_TRUEPRG+set}" = set; then
1379   echo $ECHO_N "(cached) $ECHO_C" >&6
1380 else
1381   case $TRUEPRG in
1382   [\\/]* | ?:[\\/]*)
1383   ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
1384   ;;
1385   *)
1386   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1387 for as_dir in $PATH
1388 do
1389   IFS=$as_save_IFS
1390   test -z "$as_dir" && as_dir=.
1391   for ac_exec_ext in '' $ac_executable_extensions; do
1392   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1393     ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
1394     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1395     break 2
1396   fi
1397 done
1398 done
1399
1400   ;;
1401 esac
1402 fi
1403 TRUEPRG=$ac_cv_path_TRUEPRG
1404
1405 if test -n "$TRUEPRG"; then
1406   echo "$as_me:$LINENO: result: $TRUEPRG" >&5
1407 echo "${ECHO_T}$TRUEPRG" >&6
1408 else
1409   echo "$as_me:$LINENO: result: no" >&5
1410 echo "${ECHO_T}no" >&6
1411 fi
1412
1413   test -n "$TRUEPRG" && break
1414 done
1415 test -n "$TRUEPRG" || TRUEPRG=":"
1416
1417 for ac_prog in false
1418 do
1419   # Extract the first word of "$ac_prog", so it can be a program name with args.
1420 set dummy $ac_prog; ac_word=$2
1421 echo "$as_me:$LINENO: checking for $ac_word" >&5
1422 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1423 if test "${ac_cv_path_FALSEPRG+set}" = set; then
1424   echo $ECHO_N "(cached) $ECHO_C" >&6
1425 else
1426   case $FALSEPRG in
1427   [\\/]* | ?:[\\/]*)
1428   ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
1429   ;;
1430   *)
1431   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1432 for as_dir in $PATH
1433 do
1434   IFS=$as_save_IFS
1435   test -z "$as_dir" && as_dir=.
1436   for ac_exec_ext in '' $ac_executable_extensions; do
1437   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1438     ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
1439     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1440     break 2
1441   fi
1442 done
1443 done
1444
1445   ;;
1446 esac
1447 fi
1448 FALSEPRG=$ac_cv_path_FALSEPRG
1449
1450 if test -n "$FALSEPRG"; then
1451   echo "$as_me:$LINENO: result: $FALSEPRG" >&5
1452 echo "${ECHO_T}$FALSEPRG" >&6
1453 else
1454   echo "$as_me:$LINENO: result: no" >&5
1455 echo "${ECHO_T}no" >&6
1456 fi
1457
1458   test -n "$FALSEPRG" && break
1459 done
1460 test -n "$FALSEPRG" || FALSEPRG=":"
1461
1462
1463 #AC_CANONICAL_HOST
1464
1465 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1466 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1467 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1468 echo "configuring for bacula $VERSION ($DATE)"
1469
1470
1471
1472 ac_ext=c
1473 ac_cpp='$CPP $CPPFLAGS'
1474 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1475 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1476 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1477 if test -n "$ac_tool_prefix"; then
1478   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1479 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1480 echo "$as_me:$LINENO: checking for $ac_word" >&5
1481 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1482 if test "${ac_cv_prog_CC+set}" = set; then
1483   echo $ECHO_N "(cached) $ECHO_C" >&6
1484 else
1485   if test -n "$CC"; then
1486   ac_cv_prog_CC="$CC" # Let the user override the test.
1487 else
1488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1489 for as_dir in $PATH
1490 do
1491   IFS=$as_save_IFS
1492   test -z "$as_dir" && as_dir=.
1493   for ac_exec_ext in '' $ac_executable_extensions; do
1494   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1495     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1496     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1497     break 2
1498   fi
1499 done
1500 done
1501
1502 fi
1503 fi
1504 CC=$ac_cv_prog_CC
1505 if test -n "$CC"; then
1506   echo "$as_me:$LINENO: result: $CC" >&5
1507 echo "${ECHO_T}$CC" >&6
1508 else
1509   echo "$as_me:$LINENO: result: no" >&5
1510 echo "${ECHO_T}no" >&6
1511 fi
1512
1513 fi
1514 if test -z "$ac_cv_prog_CC"; then
1515   ac_ct_CC=$CC
1516   # Extract the first word of "gcc", so it can be a program name with args.
1517 set dummy gcc; ac_word=$2
1518 echo "$as_me:$LINENO: checking for $ac_word" >&5
1519 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1520 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1521   echo $ECHO_N "(cached) $ECHO_C" >&6
1522 else
1523   if test -n "$ac_ct_CC"; then
1524   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1525 else
1526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1527 for as_dir in $PATH
1528 do
1529   IFS=$as_save_IFS
1530   test -z "$as_dir" && as_dir=.
1531   for ac_exec_ext in '' $ac_executable_extensions; do
1532   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1533     ac_cv_prog_ac_ct_CC="gcc"
1534     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1535     break 2
1536   fi
1537 done
1538 done
1539
1540 fi
1541 fi
1542 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1543 if test -n "$ac_ct_CC"; then
1544   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1545 echo "${ECHO_T}$ac_ct_CC" >&6
1546 else
1547   echo "$as_me:$LINENO: result: no" >&5
1548 echo "${ECHO_T}no" >&6
1549 fi
1550
1551   CC=$ac_ct_CC
1552 else
1553   CC="$ac_cv_prog_CC"
1554 fi
1555
1556 if test -z "$CC"; then
1557   if test -n "$ac_tool_prefix"; then
1558   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1559 set dummy ${ac_tool_prefix}cc; ac_word=$2
1560 echo "$as_me:$LINENO: checking for $ac_word" >&5
1561 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1562 if test "${ac_cv_prog_CC+set}" = set; then
1563   echo $ECHO_N "(cached) $ECHO_C" >&6
1564 else
1565   if test -n "$CC"; then
1566   ac_cv_prog_CC="$CC" # Let the user override the test.
1567 else
1568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1569 for as_dir in $PATH
1570 do
1571   IFS=$as_save_IFS
1572   test -z "$as_dir" && as_dir=.
1573   for ac_exec_ext in '' $ac_executable_extensions; do
1574   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1575     ac_cv_prog_CC="${ac_tool_prefix}cc"
1576     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1577     break 2
1578   fi
1579 done
1580 done
1581
1582 fi
1583 fi
1584 CC=$ac_cv_prog_CC
1585 if test -n "$CC"; then
1586   echo "$as_me:$LINENO: result: $CC" >&5
1587 echo "${ECHO_T}$CC" >&6
1588 else
1589   echo "$as_me:$LINENO: result: no" >&5
1590 echo "${ECHO_T}no" >&6
1591 fi
1592
1593 fi
1594 if test -z "$ac_cv_prog_CC"; then
1595   ac_ct_CC=$CC
1596   # Extract the first word of "cc", so it can be a program name with args.
1597 set dummy cc; ac_word=$2
1598 echo "$as_me:$LINENO: checking for $ac_word" >&5
1599 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1600 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1601   echo $ECHO_N "(cached) $ECHO_C" >&6
1602 else
1603   if test -n "$ac_ct_CC"; then
1604   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1605 else
1606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1607 for as_dir in $PATH
1608 do
1609   IFS=$as_save_IFS
1610   test -z "$as_dir" && as_dir=.
1611   for ac_exec_ext in '' $ac_executable_extensions; do
1612   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1613     ac_cv_prog_ac_ct_CC="cc"
1614     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1615     break 2
1616   fi
1617 done
1618 done
1619
1620 fi
1621 fi
1622 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1623 if test -n "$ac_ct_CC"; then
1624   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1625 echo "${ECHO_T}$ac_ct_CC" >&6
1626 else
1627   echo "$as_me:$LINENO: result: no" >&5
1628 echo "${ECHO_T}no" >&6
1629 fi
1630
1631   CC=$ac_ct_CC
1632 else
1633   CC="$ac_cv_prog_CC"
1634 fi
1635
1636 fi
1637 if test -z "$CC"; then
1638   # Extract the first word of "cc", so it can be a program name with args.
1639 set dummy cc; ac_word=$2
1640 echo "$as_me:$LINENO: checking for $ac_word" >&5
1641 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1642 if test "${ac_cv_prog_CC+set}" = set; then
1643   echo $ECHO_N "(cached) $ECHO_C" >&6
1644 else
1645   if test -n "$CC"; then
1646   ac_cv_prog_CC="$CC" # Let the user override the test.
1647 else
1648   ac_prog_rejected=no
1649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1650 for as_dir in $PATH
1651 do
1652   IFS=$as_save_IFS
1653   test -z "$as_dir" && as_dir=.
1654   for ac_exec_ext in '' $ac_executable_extensions; do
1655   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1656     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1657        ac_prog_rejected=yes
1658        continue
1659      fi
1660     ac_cv_prog_CC="cc"
1661     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1662     break 2
1663   fi
1664 done
1665 done
1666
1667 if test $ac_prog_rejected = yes; then
1668   # We found a bogon in the path, so make sure we never use it.
1669   set dummy $ac_cv_prog_CC
1670   shift
1671   if test $# != 0; then
1672     # We chose a different compiler from the bogus one.
1673     # However, it has the same basename, so the bogon will be chosen
1674     # first if we set CC to just the basename; use the full file name.
1675     shift
1676     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1677   fi
1678 fi
1679 fi
1680 fi
1681 CC=$ac_cv_prog_CC
1682 if test -n "$CC"; then
1683   echo "$as_me:$LINENO: result: $CC" >&5
1684 echo "${ECHO_T}$CC" >&6
1685 else
1686   echo "$as_me:$LINENO: result: no" >&5
1687 echo "${ECHO_T}no" >&6
1688 fi
1689
1690 fi
1691 if test -z "$CC"; then
1692   if test -n "$ac_tool_prefix"; then
1693   for ac_prog in cl
1694   do
1695     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1696 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1697 echo "$as_me:$LINENO: checking for $ac_word" >&5
1698 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1699 if test "${ac_cv_prog_CC+set}" = set; then
1700   echo $ECHO_N "(cached) $ECHO_C" >&6
1701 else
1702   if test -n "$CC"; then
1703   ac_cv_prog_CC="$CC" # Let the user override the test.
1704 else
1705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1706 for as_dir in $PATH
1707 do
1708   IFS=$as_save_IFS
1709   test -z "$as_dir" && as_dir=.
1710   for ac_exec_ext in '' $ac_executable_extensions; do
1711   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1712     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1713     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1714     break 2
1715   fi
1716 done
1717 done
1718
1719 fi
1720 fi
1721 CC=$ac_cv_prog_CC
1722 if test -n "$CC"; then
1723   echo "$as_me:$LINENO: result: $CC" >&5
1724 echo "${ECHO_T}$CC" >&6
1725 else
1726   echo "$as_me:$LINENO: result: no" >&5
1727 echo "${ECHO_T}no" >&6
1728 fi
1729
1730     test -n "$CC" && break
1731   done
1732 fi
1733 if test -z "$CC"; then
1734   ac_ct_CC=$CC
1735   for ac_prog in cl
1736 do
1737   # Extract the first word of "$ac_prog", so it can be a program name with args.
1738 set dummy $ac_prog; ac_word=$2
1739 echo "$as_me:$LINENO: checking for $ac_word" >&5
1740 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1741 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1742   echo $ECHO_N "(cached) $ECHO_C" >&6
1743 else
1744   if test -n "$ac_ct_CC"; then
1745   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1746 else
1747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1748 for as_dir in $PATH
1749 do
1750   IFS=$as_save_IFS
1751   test -z "$as_dir" && as_dir=.
1752   for ac_exec_ext in '' $ac_executable_extensions; do
1753   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1754     ac_cv_prog_ac_ct_CC="$ac_prog"
1755     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1756     break 2
1757   fi
1758 done
1759 done
1760
1761 fi
1762 fi
1763 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1764 if test -n "$ac_ct_CC"; then
1765   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1766 echo "${ECHO_T}$ac_ct_CC" >&6
1767 else
1768   echo "$as_me:$LINENO: result: no" >&5
1769 echo "${ECHO_T}no" >&6
1770 fi
1771
1772   test -n "$ac_ct_CC" && break
1773 done
1774
1775   CC=$ac_ct_CC
1776 fi
1777
1778 fi
1779
1780
1781 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1782 See \`config.log' for more details." >&5
1783 echo "$as_me: error: no acceptable C compiler found in \$PATH
1784 See \`config.log' for more details." >&2;}
1785    { (exit 1); exit 1; }; }
1786
1787 # Provide some information about the compiler.
1788 echo "$as_me:$LINENO:" \
1789      "checking for C compiler version" >&5
1790 ac_compiler=`set X $ac_compile; echo $2`
1791 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1792   (eval $ac_compiler --version </dev/null >&5) 2>&5
1793   ac_status=$?
1794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1795   (exit $ac_status); }
1796 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1797   (eval $ac_compiler -v </dev/null >&5) 2>&5
1798   ac_status=$?
1799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1800   (exit $ac_status); }
1801 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1802   (eval $ac_compiler -V </dev/null >&5) 2>&5
1803   ac_status=$?
1804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1805   (exit $ac_status); }
1806
1807 cat >conftest.$ac_ext <<_ACEOF
1808 #line $LINENO "configure"
1809 /* confdefs.h.  */
1810 _ACEOF
1811 cat confdefs.h >>conftest.$ac_ext
1812 cat >>conftest.$ac_ext <<_ACEOF
1813 /* end confdefs.h.  */
1814
1815 int
1816 main ()
1817 {
1818
1819   ;
1820   return 0;
1821 }
1822 _ACEOF
1823 ac_clean_files_save=$ac_clean_files
1824 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1825 # Try to create an executable without -o first, disregard a.out.
1826 # It will help us diagnose broken compilers, and finding out an intuition
1827 # of exeext.
1828 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1829 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1830 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1831 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1832   (eval $ac_link_default) 2>&5
1833   ac_status=$?
1834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1835   (exit $ac_status); }; then
1836   # Find the output, starting from the most likely.  This scheme is
1837 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1838 # resort.
1839
1840 # Be careful to initialize this variable, since it used to be cached.
1841 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1842 ac_cv_exeext=
1843 # b.out is created by i960 compilers.
1844 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1845 do
1846   test -f "$ac_file" || continue
1847   case $ac_file in
1848     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1849         ;;
1850     conftest.$ac_ext )
1851         # This is the source file.
1852         ;;
1853     [ab].out )
1854         # We found the default executable, but exeext='' is most
1855         # certainly right.
1856         break;;
1857     *.* )
1858         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1859         # FIXME: I believe we export ac_cv_exeext for Libtool,
1860         # but it would be cool to find out if it's true.  Does anybody
1861         # maintain Libtool? --akim.
1862         export ac_cv_exeext
1863         break;;
1864     * )
1865         break;;
1866   esac
1867 done
1868 else
1869   echo "$as_me: failed program was:" >&5
1870 sed 's/^/| /' conftest.$ac_ext >&5
1871
1872 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1873 See \`config.log' for more details." >&5
1874 echo "$as_me: error: C compiler cannot create executables
1875 See \`config.log' for more details." >&2;}
1876    { (exit 77); exit 77; }; }
1877 fi
1878
1879 ac_exeext=$ac_cv_exeext
1880 echo "$as_me:$LINENO: result: $ac_file" >&5
1881 echo "${ECHO_T}$ac_file" >&6
1882
1883 # Check the compiler produces executables we can run.  If not, either
1884 # the compiler is broken, or we cross compile.
1885 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1886 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1887 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1888 # If not cross compiling, check that we can run a simple program.
1889 if test "$cross_compiling" != yes; then
1890   if { ac_try='./$ac_file'
1891   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1892   (eval $ac_try) 2>&5
1893   ac_status=$?
1894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1895   (exit $ac_status); }; }; then
1896     cross_compiling=no
1897   else
1898     if test "$cross_compiling" = maybe; then
1899         cross_compiling=yes
1900     else
1901         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1902 If you meant to cross compile, use \`--host'.
1903 See \`config.log' for more details." >&5
1904 echo "$as_me: error: cannot run C compiled programs.
1905 If you meant to cross compile, use \`--host'.
1906 See \`config.log' for more details." >&2;}
1907    { (exit 1); exit 1; }; }
1908     fi
1909   fi
1910 fi
1911 echo "$as_me:$LINENO: result: yes" >&5
1912 echo "${ECHO_T}yes" >&6
1913
1914 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1915 ac_clean_files=$ac_clean_files_save
1916 # Check the compiler produces executables we can run.  If not, either
1917 # the compiler is broken, or we cross compile.
1918 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1919 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1920 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1921 echo "${ECHO_T}$cross_compiling" >&6
1922
1923 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1924 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1925 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1926   (eval $ac_link) 2>&5
1927   ac_status=$?
1928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1929   (exit $ac_status); }; then
1930   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1931 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1932 # work properly (i.e., refer to `conftest.exe'), while it won't with
1933 # `rm'.
1934 for ac_file in conftest.exe conftest conftest.*; do
1935   test -f "$ac_file" || continue
1936   case $ac_file in
1937     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1938     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1939           export ac_cv_exeext
1940           break;;
1941     * ) break;;
1942   esac
1943 done
1944 else
1945   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1946 See \`config.log' for more details." >&5
1947 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1948 See \`config.log' for more details." >&2;}
1949    { (exit 1); exit 1; }; }
1950 fi
1951
1952 rm -f conftest$ac_cv_exeext
1953 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1954 echo "${ECHO_T}$ac_cv_exeext" >&6
1955
1956 rm -f conftest.$ac_ext
1957 EXEEXT=$ac_cv_exeext
1958 ac_exeext=$EXEEXT
1959 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1960 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1961 if test "${ac_cv_objext+set}" = set; then
1962   echo $ECHO_N "(cached) $ECHO_C" >&6
1963 else
1964   cat >conftest.$ac_ext <<_ACEOF
1965 #line $LINENO "configure"
1966 /* confdefs.h.  */
1967 _ACEOF
1968 cat confdefs.h >>conftest.$ac_ext
1969 cat >>conftest.$ac_ext <<_ACEOF
1970 /* end confdefs.h.  */
1971
1972 int
1973 main ()
1974 {
1975
1976   ;
1977   return 0;
1978 }
1979 _ACEOF
1980 rm -f conftest.o conftest.obj
1981 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1982   (eval $ac_compile) 2>&5
1983   ac_status=$?
1984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1985   (exit $ac_status); }; then
1986   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1987   case $ac_file in
1988     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1989     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1990        break;;
1991   esac
1992 done
1993 else
1994   echo "$as_me: failed program was:" >&5
1995 sed 's/^/| /' conftest.$ac_ext >&5
1996
1997 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1998 See \`config.log' for more details." >&5
1999 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2000 See \`config.log' for more details." >&2;}
2001    { (exit 1); exit 1; }; }
2002 fi
2003
2004 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2005 fi
2006 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2007 echo "${ECHO_T}$ac_cv_objext" >&6
2008 OBJEXT=$ac_cv_objext
2009 ac_objext=$OBJEXT
2010 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2011 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2012 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2013   echo $ECHO_N "(cached) $ECHO_C" >&6
2014 else
2015   cat >conftest.$ac_ext <<_ACEOF
2016 #line $LINENO "configure"
2017 /* confdefs.h.  */
2018 _ACEOF
2019 cat confdefs.h >>conftest.$ac_ext
2020 cat >>conftest.$ac_ext <<_ACEOF
2021 /* end confdefs.h.  */
2022
2023 int
2024 main ()
2025 {
2026 #ifndef __GNUC__
2027        choke me
2028 #endif
2029
2030   ;
2031   return 0;
2032 }
2033 _ACEOF
2034 rm -f conftest.$ac_objext
2035 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2036   (eval $ac_compile) 2>&5
2037   ac_status=$?
2038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2039   (exit $ac_status); } &&
2040          { ac_try='test -s conftest.$ac_objext'
2041   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2042   (eval $ac_try) 2>&5
2043   ac_status=$?
2044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2045   (exit $ac_status); }; }; then
2046   ac_compiler_gnu=yes
2047 else
2048   echo "$as_me: failed program was:" >&5
2049 sed 's/^/| /' conftest.$ac_ext >&5
2050
2051 ac_compiler_gnu=no
2052 fi
2053 rm -f conftest.$ac_objext conftest.$ac_ext
2054 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2055
2056 fi
2057 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2058 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2059 GCC=`test $ac_compiler_gnu = yes && echo yes`
2060 ac_test_CFLAGS=${CFLAGS+set}
2061 ac_save_CFLAGS=$CFLAGS
2062 CFLAGS="-g"
2063 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2064 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2065 if test "${ac_cv_prog_cc_g+set}" = set; then
2066   echo $ECHO_N "(cached) $ECHO_C" >&6
2067 else
2068   cat >conftest.$ac_ext <<_ACEOF
2069 #line $LINENO "configure"
2070 /* confdefs.h.  */
2071 _ACEOF
2072 cat confdefs.h >>conftest.$ac_ext
2073 cat >>conftest.$ac_ext <<_ACEOF
2074 /* end confdefs.h.  */
2075
2076 int
2077 main ()
2078 {
2079
2080   ;
2081   return 0;
2082 }
2083 _ACEOF
2084 rm -f conftest.$ac_objext
2085 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2086   (eval $ac_compile) 2>&5
2087   ac_status=$?
2088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2089   (exit $ac_status); } &&
2090          { ac_try='test -s conftest.$ac_objext'
2091   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2092   (eval $ac_try) 2>&5
2093   ac_status=$?
2094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2095   (exit $ac_status); }; }; then
2096   ac_cv_prog_cc_g=yes
2097 else
2098   echo "$as_me: failed program was:" >&5
2099 sed 's/^/| /' conftest.$ac_ext >&5
2100
2101 ac_cv_prog_cc_g=no
2102 fi
2103 rm -f conftest.$ac_objext conftest.$ac_ext
2104 fi
2105 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2106 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2107 if test "$ac_test_CFLAGS" = set; then
2108   CFLAGS=$ac_save_CFLAGS
2109 elif test $ac_cv_prog_cc_g = yes; then
2110   if test "$GCC" = yes; then
2111     CFLAGS="-g -O2"
2112   else
2113     CFLAGS="-g"
2114   fi
2115 else
2116   if test "$GCC" = yes; then
2117     CFLAGS="-O2"
2118   else
2119     CFLAGS=
2120   fi
2121 fi
2122 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2123 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2124 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2125   echo $ECHO_N "(cached) $ECHO_C" >&6
2126 else
2127   ac_cv_prog_cc_stdc=no
2128 ac_save_CC=$CC
2129 cat >conftest.$ac_ext <<_ACEOF
2130 #line $LINENO "configure"
2131 /* confdefs.h.  */
2132 _ACEOF
2133 cat confdefs.h >>conftest.$ac_ext
2134 cat >>conftest.$ac_ext <<_ACEOF
2135 /* end confdefs.h.  */
2136 #include <stdarg.h>
2137 #include <stdio.h>
2138 #include <sys/types.h>
2139 #include <sys/stat.h>
2140 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2141 struct buf { int x; };
2142 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2143 static char *e (p, i)
2144      char **p;
2145      int i;
2146 {
2147   return p[i];
2148 }
2149 static char *f (char * (*g) (char **, int), char **p, ...)
2150 {
2151   char *s;
2152   va_list v;
2153   va_start (v,p);
2154   s = g (p, va_arg (v,int));
2155   va_end (v);
2156   return s;
2157 }
2158 int test (int i, double x);
2159 struct s1 {int (*f) (int a);};
2160 struct s2 {int (*f) (double a);};
2161 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2162 int argc;
2163 char **argv;
2164 int
2165 main ()
2166 {
2167 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2168   ;
2169   return 0;
2170 }
2171 _ACEOF
2172 # Don't try gcc -ansi; that turns off useful extensions and
2173 # breaks some systems' header files.
2174 # AIX                   -qlanglvl=ansi
2175 # Ultrix and OSF/1      -std1
2176 # HP-UX 10.20 and later -Ae
2177 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2178 # SVR4                  -Xc -D__EXTENSIONS__
2179 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2180 do
2181   CC="$ac_save_CC $ac_arg"
2182   rm -f conftest.$ac_objext
2183 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2184   (eval $ac_compile) 2>&5
2185   ac_status=$?
2186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2187   (exit $ac_status); } &&
2188          { ac_try='test -s conftest.$ac_objext'
2189   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2190   (eval $ac_try) 2>&5
2191   ac_status=$?
2192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2193   (exit $ac_status); }; }; then
2194   ac_cv_prog_cc_stdc=$ac_arg
2195 break
2196 else
2197   echo "$as_me: failed program was:" >&5
2198 sed 's/^/| /' conftest.$ac_ext >&5
2199
2200 fi
2201 rm -f conftest.$ac_objext
2202 done
2203 rm -f conftest.$ac_ext conftest.$ac_objext
2204 CC=$ac_save_CC
2205
2206 fi
2207
2208 case "x$ac_cv_prog_cc_stdc" in
2209   x|xno)
2210     echo "$as_me:$LINENO: result: none needed" >&5
2211 echo "${ECHO_T}none needed" >&6 ;;
2212   *)
2213     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2214 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2215     CC="$CC $ac_cv_prog_cc_stdc" ;;
2216 esac
2217
2218 # Some people use a C++ compiler to compile C.  Since we use `exit',
2219 # in C++ we need to declare it.  In case someone uses the same compiler
2220 # for both compiling C and C++ we need to have the C++ compiler decide
2221 # the declaration of exit, since it's the most demanding environment.
2222 cat >conftest.$ac_ext <<_ACEOF
2223 #ifndef __cplusplus
2224   choke me
2225 #endif
2226 _ACEOF
2227 rm -f conftest.$ac_objext
2228 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2229   (eval $ac_compile) 2>&5
2230   ac_status=$?
2231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2232   (exit $ac_status); } &&
2233          { ac_try='test -s conftest.$ac_objext'
2234   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2235   (eval $ac_try) 2>&5
2236   ac_status=$?
2237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2238   (exit $ac_status); }; }; then
2239   for ac_declaration in \
2240    ''\
2241    '#include <stdlib.h>' \
2242    'extern "C" void std::exit (int) throw (); using std::exit;' \
2243    'extern "C" void std::exit (int); using std::exit;' \
2244    'extern "C" void exit (int) throw ();' \
2245    'extern "C" void exit (int);' \
2246    'void exit (int);'
2247 do
2248   cat >conftest.$ac_ext <<_ACEOF
2249 #line $LINENO "configure"
2250 /* confdefs.h.  */
2251 _ACEOF
2252 cat confdefs.h >>conftest.$ac_ext
2253 cat >>conftest.$ac_ext <<_ACEOF
2254 /* end confdefs.h.  */
2255 #include <stdlib.h>
2256 $ac_declaration
2257 int
2258 main ()
2259 {
2260 exit (42);
2261   ;
2262   return 0;
2263 }
2264 _ACEOF
2265 rm -f conftest.$ac_objext
2266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2267   (eval $ac_compile) 2>&5
2268   ac_status=$?
2269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2270   (exit $ac_status); } &&
2271          { ac_try='test -s conftest.$ac_objext'
2272   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2273   (eval $ac_try) 2>&5
2274   ac_status=$?
2275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2276   (exit $ac_status); }; }; then
2277   :
2278 else
2279   echo "$as_me: failed program was:" >&5
2280 sed 's/^/| /' conftest.$ac_ext >&5
2281
2282 continue
2283 fi
2284 rm -f conftest.$ac_objext conftest.$ac_ext
2285   cat >conftest.$ac_ext <<_ACEOF
2286 #line $LINENO "configure"
2287 /* confdefs.h.  */
2288 _ACEOF
2289 cat confdefs.h >>conftest.$ac_ext
2290 cat >>conftest.$ac_ext <<_ACEOF
2291 /* end confdefs.h.  */
2292 $ac_declaration
2293 int
2294 main ()
2295 {
2296 exit (42);
2297   ;
2298   return 0;
2299 }
2300 _ACEOF
2301 rm -f conftest.$ac_objext
2302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2303   (eval $ac_compile) 2>&5
2304   ac_status=$?
2305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2306   (exit $ac_status); } &&
2307          { ac_try='test -s conftest.$ac_objext'
2308   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2309   (eval $ac_try) 2>&5
2310   ac_status=$?
2311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2312   (exit $ac_status); }; }; then
2313   break
2314 else
2315   echo "$as_me: failed program was:" >&5
2316 sed 's/^/| /' conftest.$ac_ext >&5
2317
2318 fi
2319 rm -f conftest.$ac_objext conftest.$ac_ext
2320 done
2321 rm -f conftest*
2322 if test -n "$ac_declaration"; then
2323   echo '#ifdef __cplusplus' >>confdefs.h
2324   echo $ac_declaration      >>confdefs.h
2325   echo '#endif'             >>confdefs.h
2326 fi
2327
2328 else
2329   echo "$as_me: failed program was:" >&5
2330 sed 's/^/| /' conftest.$ac_ext >&5
2331
2332 fi
2333 rm -f conftest.$ac_objext conftest.$ac_ext
2334 ac_ext=c
2335 ac_cpp='$CPP $CPPFLAGS'
2336 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2337 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2338 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2339
2340 ac_ext=cc
2341 ac_cpp='$CXXCPP $CPPFLAGS'
2342 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2343 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2344 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2345 if test -n "$ac_tool_prefix"; then
2346   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2347   do
2348     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2349 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2350 echo "$as_me:$LINENO: checking for $ac_word" >&5
2351 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2352 if test "${ac_cv_prog_CXX+set}" = set; then
2353   echo $ECHO_N "(cached) $ECHO_C" >&6
2354 else
2355   if test -n "$CXX"; then
2356   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2357 else
2358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2359 for as_dir in $PATH
2360 do
2361   IFS=$as_save_IFS
2362   test -z "$as_dir" && as_dir=.
2363   for ac_exec_ext in '' $ac_executable_extensions; do
2364   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2365     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2366     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2367     break 2
2368   fi
2369 done
2370 done
2371
2372 fi
2373 fi
2374 CXX=$ac_cv_prog_CXX
2375 if test -n "$CXX"; then
2376   echo "$as_me:$LINENO: result: $CXX" >&5
2377 echo "${ECHO_T}$CXX" >&6
2378 else
2379   echo "$as_me:$LINENO: result: no" >&5
2380 echo "${ECHO_T}no" >&6
2381 fi
2382
2383     test -n "$CXX" && break
2384   done
2385 fi
2386 if test -z "$CXX"; then
2387   ac_ct_CXX=$CXX
2388   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2389 do
2390   # Extract the first word of "$ac_prog", so it can be a program name with args.
2391 set dummy $ac_prog; ac_word=$2
2392 echo "$as_me:$LINENO: checking for $ac_word" >&5
2393 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2394 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2395   echo $ECHO_N "(cached) $ECHO_C" >&6
2396 else
2397   if test -n "$ac_ct_CXX"; then
2398   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2399 else
2400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2401 for as_dir in $PATH
2402 do
2403   IFS=$as_save_IFS
2404   test -z "$as_dir" && as_dir=.
2405   for ac_exec_ext in '' $ac_executable_extensions; do
2406   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2407     ac_cv_prog_ac_ct_CXX="$ac_prog"
2408     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2409     break 2
2410   fi
2411 done
2412 done
2413
2414 fi
2415 fi
2416 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2417 if test -n "$ac_ct_CXX"; then
2418   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2419 echo "${ECHO_T}$ac_ct_CXX" >&6
2420 else
2421   echo "$as_me:$LINENO: result: no" >&5
2422 echo "${ECHO_T}no" >&6
2423 fi
2424
2425   test -n "$ac_ct_CXX" && break
2426 done
2427 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2428
2429   CXX=$ac_ct_CXX
2430 fi
2431
2432
2433 # Provide some information about the compiler.
2434 echo "$as_me:$LINENO:" \
2435      "checking for C++ compiler version" >&5
2436 ac_compiler=`set X $ac_compile; echo $2`
2437 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2438   (eval $ac_compiler --version </dev/null >&5) 2>&5
2439   ac_status=$?
2440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2441   (exit $ac_status); }
2442 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2443   (eval $ac_compiler -v </dev/null >&5) 2>&5
2444   ac_status=$?
2445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2446   (exit $ac_status); }
2447 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2448   (eval $ac_compiler -V </dev/null >&5) 2>&5
2449   ac_status=$?
2450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2451   (exit $ac_status); }
2452
2453 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2454 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2455 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2456   echo $ECHO_N "(cached) $ECHO_C" >&6
2457 else
2458   cat >conftest.$ac_ext <<_ACEOF
2459 #line $LINENO "configure"
2460 /* confdefs.h.  */
2461 _ACEOF
2462 cat confdefs.h >>conftest.$ac_ext
2463 cat >>conftest.$ac_ext <<_ACEOF
2464 /* end confdefs.h.  */
2465
2466 int
2467 main ()
2468 {
2469 #ifndef __GNUC__
2470        choke me
2471 #endif
2472
2473   ;
2474   return 0;
2475 }
2476 _ACEOF
2477 rm -f conftest.$ac_objext
2478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2479   (eval $ac_compile) 2>&5
2480   ac_status=$?
2481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2482   (exit $ac_status); } &&
2483          { ac_try='test -s conftest.$ac_objext'
2484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2485   (eval $ac_try) 2>&5
2486   ac_status=$?
2487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2488   (exit $ac_status); }; }; then
2489   ac_compiler_gnu=yes
2490 else
2491   echo "$as_me: failed program was:" >&5
2492 sed 's/^/| /' conftest.$ac_ext >&5
2493
2494 ac_compiler_gnu=no
2495 fi
2496 rm -f conftest.$ac_objext conftest.$ac_ext
2497 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2498
2499 fi
2500 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2501 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2502 GXX=`test $ac_compiler_gnu = yes && echo yes`
2503 ac_test_CXXFLAGS=${CXXFLAGS+set}
2504 ac_save_CXXFLAGS=$CXXFLAGS
2505 CXXFLAGS="-g"
2506 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2507 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2508 if test "${ac_cv_prog_cxx_g+set}" = set; then
2509   echo $ECHO_N "(cached) $ECHO_C" >&6
2510 else
2511   cat >conftest.$ac_ext <<_ACEOF
2512 #line $LINENO "configure"
2513 /* confdefs.h.  */
2514 _ACEOF
2515 cat confdefs.h >>conftest.$ac_ext
2516 cat >>conftest.$ac_ext <<_ACEOF
2517 /* end confdefs.h.  */
2518
2519 int
2520 main ()
2521 {
2522
2523   ;
2524   return 0;
2525 }
2526 _ACEOF
2527 rm -f conftest.$ac_objext
2528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2529   (eval $ac_compile) 2>&5
2530   ac_status=$?
2531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2532   (exit $ac_status); } &&
2533          { ac_try='test -s conftest.$ac_objext'
2534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2535   (eval $ac_try) 2>&5
2536   ac_status=$?
2537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2538   (exit $ac_status); }; }; then
2539   ac_cv_prog_cxx_g=yes
2540 else
2541   echo "$as_me: failed program was:" >&5
2542 sed 's/^/| /' conftest.$ac_ext >&5
2543
2544 ac_cv_prog_cxx_g=no
2545 fi
2546 rm -f conftest.$ac_objext conftest.$ac_ext
2547 fi
2548 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2549 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2550 if test "$ac_test_CXXFLAGS" = set; then
2551   CXXFLAGS=$ac_save_CXXFLAGS
2552 elif test $ac_cv_prog_cxx_g = yes; then
2553   if test "$GXX" = yes; then
2554     CXXFLAGS="-g -O2"
2555   else
2556     CXXFLAGS="-g"
2557   fi
2558 else
2559   if test "$GXX" = yes; then
2560     CXXFLAGS="-O2"
2561   else
2562     CXXFLAGS=
2563   fi
2564 fi
2565 for ac_declaration in \
2566    ''\
2567    '#include <stdlib.h>' \
2568    'extern "C" void std::exit (int) throw (); using std::exit;' \
2569    'extern "C" void std::exit (int); using std::exit;' \
2570    'extern "C" void exit (int) throw ();' \
2571    'extern "C" void exit (int);' \
2572    'void exit (int);'
2573 do
2574   cat >conftest.$ac_ext <<_ACEOF
2575 #line $LINENO "configure"
2576 /* confdefs.h.  */
2577 _ACEOF
2578 cat confdefs.h >>conftest.$ac_ext
2579 cat >>conftest.$ac_ext <<_ACEOF
2580 /* end confdefs.h.  */
2581 #include <stdlib.h>
2582 $ac_declaration
2583 int
2584 main ()
2585 {
2586 exit (42);
2587   ;
2588   return 0;
2589 }
2590 _ACEOF
2591 rm -f conftest.$ac_objext
2592 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2593   (eval $ac_compile) 2>&5
2594   ac_status=$?
2595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2596   (exit $ac_status); } &&
2597          { ac_try='test -s conftest.$ac_objext'
2598   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2599   (eval $ac_try) 2>&5
2600   ac_status=$?
2601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2602   (exit $ac_status); }; }; then
2603   :
2604 else
2605   echo "$as_me: failed program was:" >&5
2606 sed 's/^/| /' conftest.$ac_ext >&5
2607
2608 continue
2609 fi
2610 rm -f conftest.$ac_objext conftest.$ac_ext
2611   cat >conftest.$ac_ext <<_ACEOF
2612 #line $LINENO "configure"
2613 /* confdefs.h.  */
2614 _ACEOF
2615 cat confdefs.h >>conftest.$ac_ext
2616 cat >>conftest.$ac_ext <<_ACEOF
2617 /* end confdefs.h.  */
2618 $ac_declaration
2619 int
2620 main ()
2621 {
2622 exit (42);
2623   ;
2624   return 0;
2625 }
2626 _ACEOF
2627 rm -f conftest.$ac_objext
2628 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2629   (eval $ac_compile) 2>&5
2630   ac_status=$?
2631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2632   (exit $ac_status); } &&
2633          { ac_try='test -s conftest.$ac_objext'
2634   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2635   (eval $ac_try) 2>&5
2636   ac_status=$?
2637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2638   (exit $ac_status); }; }; then
2639   break
2640 else
2641   echo "$as_me: failed program was:" >&5
2642 sed 's/^/| /' conftest.$ac_ext >&5
2643
2644 fi
2645 rm -f conftest.$ac_objext conftest.$ac_ext
2646 done
2647 rm -f conftest*
2648 if test -n "$ac_declaration"; then
2649   echo '#ifdef __cplusplus' >>confdefs.h
2650   echo $ac_declaration      >>confdefs.h
2651   echo '#endif'             >>confdefs.h
2652 fi
2653
2654 ac_ext=c
2655 ac_cpp='$CPP $CPPFLAGS'
2656 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2657 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2658 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2659
2660 if test "x$CC" != xcc; then
2661   echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2662 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2663 else
2664   echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2665 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2666 fi
2667 set dummy $CC; ac_cc=`echo $2 |
2668                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2669 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2670   echo $ECHO_N "(cached) $ECHO_C" >&6
2671 else
2672   cat >conftest.$ac_ext <<_ACEOF
2673 #line $LINENO "configure"
2674 /* confdefs.h.  */
2675 _ACEOF
2676 cat confdefs.h >>conftest.$ac_ext
2677 cat >>conftest.$ac_ext <<_ACEOF
2678 /* end confdefs.h.  */
2679
2680 int
2681 main ()
2682 {
2683
2684   ;
2685   return 0;
2686 }
2687 _ACEOF
2688 # Make sure it works both with $CC and with simple cc.
2689 # We do the test twice because some compilers refuse to overwrite an
2690 # existing .o file with -o, though they will create one.
2691 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2692 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2693   (eval $ac_try) 2>&5
2694   ac_status=$?
2695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2696   (exit $ac_status); } &&
2697    test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2698   (eval $ac_try) 2>&5
2699   ac_status=$?
2700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2701   (exit $ac_status); };
2702 then
2703   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2704   if test "x$CC" != xcc; then
2705     # Test first that cc exists at all.
2706     if { ac_try='cc -c conftest.$ac_ext >&5'
2707   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2708   (eval $ac_try) 2>&5
2709   ac_status=$?
2710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2711   (exit $ac_status); }; }; then
2712       ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2713       if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2714   (eval $ac_try) 2>&5
2715   ac_status=$?
2716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2717   (exit $ac_status); } &&
2718          test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2719   (eval $ac_try) 2>&5
2720   ac_status=$?
2721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2722   (exit $ac_status); };
2723       then
2724         # cc works too.
2725         :
2726       else
2727         # cc exists but doesn't like -o.
2728         eval ac_cv_prog_cc_${ac_cc}_c_o=no
2729       fi
2730     fi
2731   fi
2732 else
2733   eval ac_cv_prog_cc_${ac_cc}_c_o=no
2734 fi
2735 rm -f conftest*
2736
2737 fi
2738 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2739   echo "$as_me:$LINENO: result: yes" >&5
2740 echo "${ECHO_T}yes" >&6
2741 else
2742   echo "$as_me:$LINENO: result: no" >&5
2743 echo "${ECHO_T}no" >&6
2744
2745 cat >>confdefs.h <<\_ACEOF
2746 #define NO_MINUS_C_MINUS_O 1
2747 _ACEOF
2748
2749 fi
2750
2751 ac_ext=c
2752 ac_cpp='$CPP $CPPFLAGS'
2753 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2754 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2755 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2756 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2757 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2758 # On Suns, sometimes $CPP names a directory.
2759 if test -n "$CPP" && test -d "$CPP"; then
2760   CPP=
2761 fi
2762 if test -z "$CPP"; then
2763   if test "${ac_cv_prog_CPP+set}" = set; then
2764   echo $ECHO_N "(cached) $ECHO_C" >&6
2765 else
2766       # Double quotes because CPP needs to be expanded
2767     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2768     do
2769       ac_preproc_ok=false
2770 for ac_c_preproc_warn_flag in '' yes
2771 do
2772   # Use a header file that comes with gcc, so configuring glibc
2773   # with a fresh cross-compiler works.
2774   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2775   # <limits.h> exists even on freestanding compilers.
2776   # On the NeXT, cc -E runs the code through the compiler's parser,
2777   # not just through cpp. "Syntax error" is here to catch this case.
2778   cat >conftest.$ac_ext <<_ACEOF
2779 #line $LINENO "configure"
2780 /* confdefs.h.  */
2781 _ACEOF
2782 cat confdefs.h >>conftest.$ac_ext
2783 cat >>conftest.$ac_ext <<_ACEOF
2784 /* end confdefs.h.  */
2785 #ifdef __STDC__
2786 # include <limits.h>
2787 #else
2788 # include <assert.h>
2789 #endif
2790                      Syntax error
2791 _ACEOF
2792 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2793   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2794   ac_status=$?
2795   grep -v '^ *+' conftest.er1 >conftest.err
2796   rm -f conftest.er1
2797   cat conftest.err >&5
2798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2799   (exit $ac_status); } >/dev/null; then
2800   if test -s conftest.err; then
2801     ac_cpp_err=$ac_c_preproc_warn_flag
2802   else
2803     ac_cpp_err=
2804   fi
2805 else
2806   ac_cpp_err=yes
2807 fi
2808 if test -z "$ac_cpp_err"; then
2809   :
2810 else
2811   echo "$as_me: failed program was:" >&5
2812 sed 's/^/| /' conftest.$ac_ext >&5
2813
2814   # Broken: fails on valid input.
2815 continue
2816 fi
2817 rm -f conftest.err conftest.$ac_ext
2818
2819   # OK, works on sane cases.  Now check whether non-existent headers
2820   # can be detected and how.
2821   cat >conftest.$ac_ext <<_ACEOF
2822 #line $LINENO "configure"
2823 /* confdefs.h.  */
2824 _ACEOF
2825 cat confdefs.h >>conftest.$ac_ext
2826 cat >>conftest.$ac_ext <<_ACEOF
2827 /* end confdefs.h.  */
2828 #include <ac_nonexistent.h>
2829 _ACEOF
2830 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2831   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2832   ac_status=$?
2833   grep -v '^ *+' conftest.er1 >conftest.err
2834   rm -f conftest.er1
2835   cat conftest.err >&5
2836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2837   (exit $ac_status); } >/dev/null; then
2838   if test -s conftest.err; then
2839     ac_cpp_err=$ac_c_preproc_warn_flag
2840   else
2841     ac_cpp_err=
2842   fi
2843 else
2844   ac_cpp_err=yes
2845 fi
2846 if test -z "$ac_cpp_err"; then
2847   # Broken: success on invalid input.
2848 continue
2849 else
2850   echo "$as_me: failed program was:" >&5
2851 sed 's/^/| /' conftest.$ac_ext >&5
2852
2853   # Passes both tests.
2854 ac_preproc_ok=:
2855 break
2856 fi
2857 rm -f conftest.err conftest.$ac_ext
2858
2859 done
2860 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2861 rm -f conftest.err conftest.$ac_ext
2862 if $ac_preproc_ok; then
2863   break
2864 fi
2865
2866     done
2867     ac_cv_prog_CPP=$CPP
2868
2869 fi
2870   CPP=$ac_cv_prog_CPP
2871 else
2872   ac_cv_prog_CPP=$CPP
2873 fi
2874 echo "$as_me:$LINENO: result: $CPP" >&5
2875 echo "${ECHO_T}$CPP" >&6
2876 ac_preproc_ok=false
2877 for ac_c_preproc_warn_flag in '' yes
2878 do
2879   # Use a header file that comes with gcc, so configuring glibc
2880   # with a fresh cross-compiler works.
2881   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2882   # <limits.h> exists even on freestanding compilers.
2883   # On the NeXT, cc -E runs the code through the compiler's parser,
2884   # not just through cpp. "Syntax error" is here to catch this case.
2885   cat >conftest.$ac_ext <<_ACEOF
2886 #line $LINENO "configure"
2887 /* confdefs.h.  */
2888 _ACEOF
2889 cat confdefs.h >>conftest.$ac_ext
2890 cat >>conftest.$ac_ext <<_ACEOF
2891 /* end confdefs.h.  */
2892 #ifdef __STDC__
2893 # include <limits.h>
2894 #else
2895 # include <assert.h>
2896 #endif
2897                      Syntax error
2898 _ACEOF
2899 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2900   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2901   ac_status=$?
2902   grep -v '^ *+' conftest.er1 >conftest.err
2903   rm -f conftest.er1
2904   cat conftest.err >&5
2905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2906   (exit $ac_status); } >/dev/null; then
2907   if test -s conftest.err; then
2908     ac_cpp_err=$ac_c_preproc_warn_flag
2909   else
2910     ac_cpp_err=
2911   fi
2912 else
2913   ac_cpp_err=yes
2914 fi
2915 if test -z "$ac_cpp_err"; then
2916   :
2917 else
2918   echo "$as_me: failed program was:" >&5
2919 sed 's/^/| /' conftest.$ac_ext >&5
2920
2921   # Broken: fails on valid input.
2922 continue
2923 fi
2924 rm -f conftest.err conftest.$ac_ext
2925
2926   # OK, works on sane cases.  Now check whether non-existent headers
2927   # can be detected and how.
2928   cat >conftest.$ac_ext <<_ACEOF
2929 #line $LINENO "configure"
2930 /* confdefs.h.  */
2931 _ACEOF
2932 cat confdefs.h >>conftest.$ac_ext
2933 cat >>conftest.$ac_ext <<_ACEOF
2934 /* end confdefs.h.  */
2935 #include <ac_nonexistent.h>
2936 _ACEOF
2937 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2938   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2939   ac_status=$?
2940   grep -v '^ *+' conftest.er1 >conftest.err
2941   rm -f conftest.er1
2942   cat conftest.err >&5
2943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2944   (exit $ac_status); } >/dev/null; then
2945   if test -s conftest.err; then
2946     ac_cpp_err=$ac_c_preproc_warn_flag
2947   else
2948     ac_cpp_err=
2949   fi
2950 else
2951   ac_cpp_err=yes
2952 fi
2953 if test -z "$ac_cpp_err"; then
2954   # Broken: success on invalid input.
2955 continue
2956 else
2957   echo "$as_me: failed program was:" >&5
2958 sed 's/^/| /' conftest.$ac_ext >&5
2959
2960   # Passes both tests.
2961 ac_preproc_ok=:
2962 break
2963 fi
2964 rm -f conftest.err conftest.$ac_ext
2965
2966 done
2967 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2968 rm -f conftest.err conftest.$ac_ext
2969 if $ac_preproc_ok; then
2970   :
2971 else
2972   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2973 See \`config.log' for more details." >&5
2974 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2975 See \`config.log' for more details." >&2;}
2976    { (exit 1); exit 1; }; }
2977 fi
2978
2979 ac_ext=c
2980 ac_cpp='$CPP $CPPFLAGS'
2981 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2982 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2983 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2984
2985
2986 echo "$as_me:$LINENO: checking for egrep" >&5
2987 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2988 if test "${ac_cv_prog_egrep+set}" = set; then
2989   echo $ECHO_N "(cached) $ECHO_C" >&6
2990 else
2991   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2992     then ac_cv_prog_egrep='grep -E'
2993     else ac_cv_prog_egrep='egrep'
2994     fi
2995 fi
2996 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2997 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2998  EGREP=$ac_cv_prog_egrep
2999
3000
3001 if test $ac_cv_c_compiler_gnu = yes; then
3002     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3003 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3004 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3005   echo $ECHO_N "(cached) $ECHO_C" >&6
3006 else
3007     ac_pattern="Autoconf.*'x'"
3008   cat >conftest.$ac_ext <<_ACEOF
3009 #line $LINENO "configure"
3010 /* confdefs.h.  */
3011 _ACEOF
3012 cat confdefs.h >>conftest.$ac_ext
3013 cat >>conftest.$ac_ext <<_ACEOF
3014 /* end confdefs.h.  */
3015 #include <sgtty.h>
3016 Autoconf TIOCGETP
3017 _ACEOF
3018 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3019   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3020   ac_cv_prog_gcc_traditional=yes
3021 else
3022   ac_cv_prog_gcc_traditional=no
3023 fi
3024 rm -f conftest*
3025
3026
3027   if test $ac_cv_prog_gcc_traditional = no; then
3028     cat >conftest.$ac_ext <<_ACEOF
3029 #line $LINENO "configure"
3030 /* confdefs.h.  */
3031 _ACEOF
3032 cat confdefs.h >>conftest.$ac_ext
3033 cat >>conftest.$ac_ext <<_ACEOF
3034 /* end confdefs.h.  */
3035 #include <termio.h>
3036 Autoconf TCGETA
3037 _ACEOF
3038 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3039   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3040   ac_cv_prog_gcc_traditional=yes
3041 fi
3042 rm -f conftest*
3043
3044   fi
3045 fi
3046 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3047 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3048   if test $ac_cv_prog_gcc_traditional = yes; then
3049     CC="$CC -traditional"
3050   fi
3051 fi
3052
3053 if test "x$CC" = xgcc
3054 then
3055    cat >>confdefs.h <<\_ACEOF
3056 #define HAVE_GCC 1
3057 _ACEOF
3058
3059 fi
3060
3061 # Find a good install program.  We prefer a C program (faster),
3062 # so one script is as good as another.  But avoid the broken or
3063 # incompatible versions:
3064 # SysV /etc/install, /usr/sbin/install
3065 # SunOS /usr/etc/install
3066 # IRIX /sbin/install
3067 # AIX /bin/install
3068 # AmigaOS /C/install, which installs bootblocks on floppy discs
3069 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3070 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3071 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3072 # ./install, which can be erroneously created by make from ./install.sh.
3073 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3074 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3075 if test -z "$INSTALL"; then
3076 if test "${ac_cv_path_install+set}" = set; then
3077   echo $ECHO_N "(cached) $ECHO_C" >&6
3078 else
3079   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3080 for as_dir in $PATH
3081 do
3082   IFS=$as_save_IFS
3083   test -z "$as_dir" && as_dir=.
3084   # Account for people who put trailing slashes in PATH elements.
3085 case $as_dir/ in
3086   ./ | .// | /cC/* | \
3087   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3088   /usr/ucb/* ) ;;
3089   *)
3090     # OSF1 and SCO ODT 3.0 have their own names for install.
3091     # Don't use installbsd from OSF since it installs stuff as root
3092     # by default.
3093     for ac_prog in ginstall scoinst install; do
3094       for ac_exec_ext in '' $ac_executable_extensions; do
3095         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3096           if test $ac_prog = install &&
3097             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3098             # AIX install.  It has an incompatible calling convention.
3099             :
3100           elif test $ac_prog = install &&
3101             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3102             # program-specific install script used by HP pwplus--don't use.
3103             :
3104           else
3105             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3106             break 3
3107           fi
3108         fi
3109       done
3110     done
3111     ;;
3112 esac
3113 done
3114
3115
3116 fi
3117   if test "${ac_cv_path_install+set}" = set; then
3118     INSTALL=$ac_cv_path_install
3119   else
3120     # As a last resort, use the slow shell script.  We don't cache a
3121     # path for INSTALL within a source directory, because that will
3122     # break other packages using the cache if that directory is
3123     # removed, or if the path is relative.
3124     INSTALL=$ac_install_sh
3125   fi
3126 fi
3127 echo "$as_me:$LINENO: result: $INSTALL" >&5
3128 echo "${ECHO_T}$INSTALL" >&6
3129
3130 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3131 # It thinks the first close brace ends the variable substitution.
3132 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3133
3134 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3135
3136 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3137
3138 if test -n "$ac_tool_prefix"; then
3139   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3140 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3141 echo "$as_me:$LINENO: checking for $ac_word" >&5
3142 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3143 if test "${ac_cv_prog_RANLIB+set}" = set; then
3144   echo $ECHO_N "(cached) $ECHO_C" >&6
3145 else
3146   if test -n "$RANLIB"; then
3147   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3148 else
3149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3150 for as_dir in $PATH
3151 do
3152   IFS=$as_save_IFS
3153   test -z "$as_dir" && as_dir=.
3154   for ac_exec_ext in '' $ac_executable_extensions; do
3155   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3156     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3157     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3158     break 2
3159   fi
3160 done
3161 done
3162
3163 fi
3164 fi
3165 RANLIB=$ac_cv_prog_RANLIB
3166 if test -n "$RANLIB"; then
3167   echo "$as_me:$LINENO: result: $RANLIB" >&5
3168 echo "${ECHO_T}$RANLIB" >&6
3169 else
3170   echo "$as_me:$LINENO: result: no" >&5
3171 echo "${ECHO_T}no" >&6
3172 fi
3173
3174 fi
3175 if test -z "$ac_cv_prog_RANLIB"; then
3176   ac_ct_RANLIB=$RANLIB
3177   # Extract the first word of "ranlib", so it can be a program name with args.
3178 set dummy ranlib; ac_word=$2
3179 echo "$as_me:$LINENO: checking for $ac_word" >&5
3180 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3181 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3182   echo $ECHO_N "(cached) $ECHO_C" >&6
3183 else
3184   if test -n "$ac_ct_RANLIB"; then
3185   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3186 else
3187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3188 for as_dir in $PATH
3189 do
3190   IFS=$as_save_IFS
3191   test -z "$as_dir" && as_dir=.
3192   for ac_exec_ext in '' $ac_executable_extensions; do
3193   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3194     ac_cv_prog_ac_ct_RANLIB="ranlib"
3195     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3196     break 2
3197   fi
3198 done
3199 done
3200
3201   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3202 fi
3203 fi
3204 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3205 if test -n "$ac_ct_RANLIB"; then
3206   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3207 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3208 else
3209   echo "$as_me:$LINENO: result: no" >&5
3210 echo "${ECHO_T}no" >&6
3211 fi
3212
3213   RANLIB=$ac_ct_RANLIB
3214 else
3215   RANLIB="$ac_cv_prog_RANLIB"
3216 fi
3217
3218 # Extract the first word of "mv", so it can be a program name with args.
3219 set dummy mv; ac_word=$2
3220 echo "$as_me:$LINENO: checking for $ac_word" >&5
3221 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3222 if test "${ac_cv_path_MV+set}" = set; then
3223   echo $ECHO_N "(cached) $ECHO_C" >&6
3224 else
3225   case $MV in
3226   [\\/]* | ?:[\\/]*)
3227   ac_cv_path_MV="$MV" # Let the user override the test with a path.
3228   ;;
3229   *)
3230   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3231 for as_dir in $PATH
3232 do
3233   IFS=$as_save_IFS
3234   test -z "$as_dir" && as_dir=.
3235   for ac_exec_ext in '' $ac_executable_extensions; do
3236   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3237     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
3238     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3239     break 2
3240   fi
3241 done
3242 done
3243
3244   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
3245   ;;
3246 esac
3247 fi
3248 MV=$ac_cv_path_MV
3249
3250 if test -n "$MV"; then
3251   echo "$as_me:$LINENO: result: $MV" >&5
3252 echo "${ECHO_T}$MV" >&6
3253 else
3254   echo "$as_me:$LINENO: result: no" >&5
3255 echo "${ECHO_T}no" >&6
3256 fi
3257
3258 # Extract the first word of "rm", so it can be a program name with args.
3259 set dummy rm; ac_word=$2
3260 echo "$as_me:$LINENO: checking for $ac_word" >&5
3261 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3262 if test "${ac_cv_path_RM+set}" = set; then
3263   echo $ECHO_N "(cached) $ECHO_C" >&6
3264 else
3265   case $RM in
3266   [\\/]* | ?:[\\/]*)
3267   ac_cv_path_RM="$RM" # Let the user override the test with a path.
3268   ;;
3269   *)
3270   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3271 for as_dir in $PATH
3272 do
3273   IFS=$as_save_IFS
3274   test -z "$as_dir" && as_dir=.
3275   for ac_exec_ext in '' $ac_executable_extensions; do
3276   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3277     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
3278     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3279     break 2
3280   fi
3281 done
3282 done
3283
3284   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
3285   ;;
3286 esac
3287 fi
3288 RM=$ac_cv_path_RM
3289
3290 if test -n "$RM"; then
3291   echo "$as_me:$LINENO: result: $RM" >&5
3292 echo "${ECHO_T}$RM" >&6
3293 else
3294   echo "$as_me:$LINENO: result: no" >&5
3295 echo "${ECHO_T}no" >&6
3296 fi
3297
3298 # Extract the first word of "cp", so it can be a program name with args.
3299 set dummy cp; ac_word=$2
3300 echo "$as_me:$LINENO: checking for $ac_word" >&5
3301 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3302 if test "${ac_cv_path_CP+set}" = set; then
3303   echo $ECHO_N "(cached) $ECHO_C" >&6
3304 else
3305   case $CP in
3306   [\\/]* | ?:[\\/]*)
3307   ac_cv_path_CP="$CP" # Let the user override the test with a path.
3308   ;;
3309   *)
3310   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3311 for as_dir in $PATH
3312 do
3313   IFS=$as_save_IFS
3314   test -z "$as_dir" && as_dir=.
3315   for ac_exec_ext in '' $ac_executable_extensions; do
3316   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3317     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
3318     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3319     break 2
3320   fi
3321 done
3322 done
3323
3324   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
3325   ;;
3326 esac
3327 fi
3328 CP=$ac_cv_path_CP
3329
3330 if test -n "$CP"; then
3331   echo "$as_me:$LINENO: result: $CP" >&5
3332 echo "${ECHO_T}$CP" >&6
3333 else
3334   echo "$as_me:$LINENO: result: no" >&5
3335 echo "${ECHO_T}no" >&6
3336 fi
3337
3338 # Extract the first word of "sed", so it can be a program name with args.
3339 set dummy sed; ac_word=$2
3340 echo "$as_me:$LINENO: checking for $ac_word" >&5
3341 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3342 if test "${ac_cv_path_SED+set}" = set; then
3343   echo $ECHO_N "(cached) $ECHO_C" >&6
3344 else
3345   case $SED in
3346   [\\/]* | ?:[\\/]*)
3347   ac_cv_path_SED="$SED" # Let the user override the test with a path.
3348   ;;
3349   *)
3350   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3351 for as_dir in $PATH
3352 do
3353   IFS=$as_save_IFS
3354   test -z "$as_dir" && as_dir=.
3355   for ac_exec_ext in '' $ac_executable_extensions; do
3356   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3357     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
3358     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3359     break 2
3360   fi
3361 done
3362 done
3363
3364   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
3365   ;;
3366 esac
3367 fi
3368 SED=$ac_cv_path_SED
3369
3370 if test -n "$SED"; then
3371   echo "$as_me:$LINENO: result: $SED" >&5
3372 echo "${ECHO_T}$SED" >&6
3373 else
3374   echo "$as_me:$LINENO: result: no" >&5
3375 echo "${ECHO_T}no" >&6
3376 fi
3377
3378 # Extract the first word of "awk", so it can be a program name with args.
3379 set dummy awk; ac_word=$2
3380 echo "$as_me:$LINENO: checking for $ac_word" >&5
3381 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3382 if test "${ac_cv_path_AWK+set}" = set; then
3383   echo $ECHO_N "(cached) $ECHO_C" >&6
3384 else
3385   case $AWK in
3386   [\\/]* | ?:[\\/]*)
3387   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
3388   ;;
3389   *)
3390   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3391 for as_dir in $PATH
3392 do
3393   IFS=$as_save_IFS
3394   test -z "$as_dir" && as_dir=.
3395   for ac_exec_ext in '' $ac_executable_extensions; do
3396   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3397     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
3398     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3399     break 2
3400   fi
3401 done
3402 done
3403
3404   test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="awk"
3405   ;;
3406 esac
3407 fi
3408 AWK=$ac_cv_path_AWK
3409
3410 if test -n "$AWK"; then
3411   echo "$as_me:$LINENO: result: $AWK" >&5
3412 echo "${ECHO_T}$AWK" >&6
3413 else
3414   echo "$as_me:$LINENO: result: no" >&5
3415 echo "${ECHO_T}no" >&6
3416 fi
3417
3418 # Extract the first word of "echo", so it can be a program name with args.
3419 set dummy echo; ac_word=$2
3420 echo "$as_me:$LINENO: checking for $ac_word" >&5
3421 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3422 if test "${ac_cv_path_ECHO+set}" = set; then
3423   echo $ECHO_N "(cached) $ECHO_C" >&6
3424 else
3425   case $ECHO in
3426   [\\/]* | ?:[\\/]*)
3427   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
3428   ;;
3429   *)
3430   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3431 for as_dir in $PATH
3432 do
3433   IFS=$as_save_IFS
3434   test -z "$as_dir" && as_dir=.
3435   for ac_exec_ext in '' $ac_executable_extensions; do
3436   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3437     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
3438     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3439     break 2
3440   fi
3441 done
3442 done
3443
3444   test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
3445   ;;
3446 esac
3447 fi
3448 ECHO=$ac_cv_path_ECHO
3449
3450 if test -n "$ECHO"; then
3451   echo "$as_me:$LINENO: result: $ECHO" >&5
3452 echo "${ECHO_T}$ECHO" >&6
3453 else
3454   echo "$as_me:$LINENO: result: no" >&5
3455 echo "${ECHO_T}no" >&6
3456 fi
3457
3458 # Extract the first word of "cmp", so it can be a program name with args.
3459 set dummy cmp; ac_word=$2
3460 echo "$as_me:$LINENO: checking for $ac_word" >&5
3461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3462 if test "${ac_cv_path_CMP+set}" = set; then
3463   echo $ECHO_N "(cached) $ECHO_C" >&6
3464 else
3465   case $CMP in
3466   [\\/]* | ?:[\\/]*)
3467   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
3468   ;;
3469   *)
3470   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3471 for as_dir in $PATH
3472 do
3473   IFS=$as_save_IFS
3474   test -z "$as_dir" && as_dir=.
3475   for ac_exec_ext in '' $ac_executable_extensions; do
3476   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3477     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
3478     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3479     break 2
3480   fi
3481 done
3482 done
3483
3484   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
3485   ;;
3486 esac
3487 fi
3488 CMP=$ac_cv_path_CMP
3489
3490 if test -n "$CMP"; then
3491   echo "$as_me:$LINENO: result: $CMP" >&5
3492 echo "${ECHO_T}$CMP" >&6
3493 else
3494   echo "$as_me:$LINENO: result: no" >&5
3495 echo "${ECHO_T}no" >&6
3496 fi
3497
3498 # Extract the first word of "tbl", so it can be a program name with args.
3499 set dummy tbl; ac_word=$2
3500 echo "$as_me:$LINENO: checking for $ac_word" >&5
3501 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3502 if test "${ac_cv_path_TBL+set}" = set; then
3503   echo $ECHO_N "(cached) $ECHO_C" >&6
3504 else
3505   case $TBL in
3506   [\\/]* | ?:[\\/]*)
3507   ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
3508   ;;
3509   *)
3510   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3511 for as_dir in $PATH
3512 do
3513   IFS=$as_save_IFS
3514   test -z "$as_dir" && as_dir=.
3515   for ac_exec_ext in '' $ac_executable_extensions; do
3516   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3517     ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
3518     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3519     break 2
3520   fi
3521 done
3522 done
3523
3524   test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
3525   ;;
3526 esac
3527 fi
3528 TBL=$ac_cv_path_TBL
3529
3530 if test -n "$TBL"; then
3531   echo "$as_me:$LINENO: result: $TBL" >&5
3532 echo "${ECHO_T}$TBL" >&6
3533 else
3534   echo "$as_me:$LINENO: result: no" >&5
3535 echo "${ECHO_T}no" >&6
3536 fi
3537
3538 # Extract the first word of "ar", so it can be a program name with args.
3539 set dummy ar; ac_word=$2
3540 echo "$as_me:$LINENO: checking for $ac_word" >&5
3541 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3542 if test "${ac_cv_path_AR+set}" = set; then
3543   echo $ECHO_N "(cached) $ECHO_C" >&6
3544 else
3545   case $AR in
3546   [\\/]* | ?:[\\/]*)
3547   ac_cv_path_AR="$AR" # Let the user override the test with a path.
3548   ;;
3549   *)
3550   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3551 for as_dir in $PATH
3552 do
3553   IFS=$as_save_IFS
3554   test -z "$as_dir" && as_dir=.
3555   for ac_exec_ext in '' $ac_executable_extensions; do
3556   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3557     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3558     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3559     break 2
3560   fi
3561 done
3562 done
3563
3564   test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
3565   ;;
3566 esac
3567 fi
3568 AR=$ac_cv_path_AR
3569
3570 if test -n "$AR"; then
3571   echo "$as_me:$LINENO: result: $AR" >&5
3572 echo "${ECHO_T}$AR" >&6
3573 else
3574   echo "$as_me:$LINENO: result: no" >&5
3575 echo "${ECHO_T}no" >&6
3576 fi
3577
3578 # Extract the first word of "openssl", so it can be a program name with args.
3579 set dummy openssl; ac_word=$2
3580 echo "$as_me:$LINENO: checking for $ac_word" >&5
3581 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3582 if test "${ac_cv_path_OPENSSL+set}" = set; then
3583   echo $ECHO_N "(cached) $ECHO_C" >&6
3584 else
3585   case $OPENSSL in
3586   [\\/]* | ?:[\\/]*)
3587   ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
3588   ;;
3589   *)
3590   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3591 for as_dir in $PATH
3592 do
3593   IFS=$as_save_IFS
3594   test -z "$as_dir" && as_dir=.
3595   for ac_exec_ext in '' $ac_executable_extensions; do
3596   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3597     ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
3598     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3599     break 2
3600   fi
3601 done
3602 done
3603
3604   test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
3605   ;;
3606 esac
3607 fi
3608 OPENSSL=$ac_cv_path_OPENSSL
3609
3610 if test -n "$OPENSSL"; then
3611   echo "$as_me:$LINENO: result: $OPENSSL" >&5
3612 echo "${ECHO_T}$OPENSSL" >&6
3613 else
3614   echo "$as_me:$LINENO: result: no" >&5
3615 echo "${ECHO_T}no" >&6
3616 fi
3617
3618 # Extract the first word of "mtx", so it can be a program name with args.
3619 set dummy mtx; ac_word=$2
3620 echo "$as_me:$LINENO: checking for $ac_word" >&5
3621 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3622 if test "${ac_cv_path_MTX+set}" = set; then
3623   echo $ECHO_N "(cached) $ECHO_C" >&6
3624 else
3625   case $MTX in
3626   [\\/]* | ?:[\\/]*)
3627   ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
3628   ;;
3629   *)
3630   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3631 for as_dir in $PATH
3632 do
3633   IFS=$as_save_IFS
3634   test -z "$as_dir" && as_dir=.
3635   for ac_exec_ext in '' $ac_executable_extensions; do
3636   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3637     ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
3638     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3639     break 2
3640   fi
3641 done
3642 done
3643
3644   test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
3645   ;;
3646 esac
3647 fi
3648 MTX=$ac_cv_path_MTX
3649
3650 if test -n "$MTX"; then
3651   echo "$as_me:$LINENO: result: $MTX" >&5
3652 echo "${ECHO_T}$MTX" >&6
3653 else
3654   echo "$as_me:$LINENO: result: no" >&5
3655 echo "${ECHO_T}no" >&6
3656 fi
3657
3658 # Extract the first word of "pkg-config", so it can be a program name with args.
3659 set dummy pkg-config; ac_word=$2
3660 echo "$as_me:$LINENO: checking for $ac_word" >&5
3661 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3662 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
3663   echo $ECHO_N "(cached) $ECHO_C" >&6
3664 else
3665   case $PKGCONFIG in
3666   [\\/]* | ?:[\\/]*)
3667   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
3668   ;;
3669   *)
3670   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3671 for as_dir in $PATH
3672 do
3673   IFS=$as_save_IFS
3674   test -z "$as_dir" && as_dir=.
3675   for ac_exec_ext in '' $ac_executable_extensions; do
3676   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3677     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
3678     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3679     break 2
3680   fi
3681 done
3682 done
3683
3684   test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
3685   ;;
3686 esac
3687 fi
3688 PKGCONFIG=$ac_cv_path_PKGCONFIG
3689
3690 if test -n "$PKGCONFIG"; then
3691   echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
3692 echo "${ECHO_T}$PKGCONFIG" >&6
3693 else
3694   echo "$as_me:$LINENO: result: no" >&5
3695 echo "${ECHO_T}no" >&6
3696 fi
3697
3698 # Extract the first word of "wx-config", so it can be a program name with args.
3699 set dummy wx-config; ac_word=$2
3700 echo "$as_me:$LINENO: checking for $ac_word" >&5
3701 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3702 if test "${ac_cv_path_WXCONFIG+set}" = set; then
3703   echo $ECHO_N "(cached) $ECHO_C" >&6
3704 else
3705   case $WXCONFIG in
3706   [\\/]* | ?:[\\/]*)
3707   ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
3708   ;;
3709   *)
3710   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3711 for as_dir in $PATH
3712 do
3713   IFS=$as_save_IFS
3714   test -z "$as_dir" && as_dir=.
3715   for ac_exec_ext in '' $ac_executable_extensions; do
3716   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3717     ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
3718     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3719     break 2
3720   fi
3721 done
3722 done
3723
3724   test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="wx-config"
3725   ;;
3726 esac
3727 fi
3728 WXCONFIG=$ac_cv_path_WXCONFIG
3729
3730 if test -n "$WXCONFIG"; then
3731   echo "$as_me:$LINENO: result: $WXCONFIG" >&5
3732 echo "${ECHO_T}$WXCONFIG" >&6
3733 else
3734   echo "$as_me:$LINENO: result: no" >&5
3735 echo "${ECHO_T}no" >&6
3736 fi
3737
3738 # Extract the first word of "cdrecord", so it can be a program name with args.
3739 set dummy cdrecord; ac_word=$2
3740 echo "$as_me:$LINENO: checking for $ac_word" >&5
3741 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3742 if test "${ac_cv_path_CDRECORD+set}" = set; then
3743   echo $ECHO_N "(cached) $ECHO_C" >&6
3744 else
3745   case $CDRECORD in
3746   [\\/]* | ?:[\\/]*)
3747   ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
3748   ;;
3749   *)
3750   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3751 for as_dir in $PATH
3752 do
3753   IFS=$as_save_IFS
3754   test -z "$as_dir" && as_dir=.
3755   for ac_exec_ext in '' $ac_executable_extensions; do
3756   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3757     ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
3758     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3759     break 2
3760   fi
3761 done
3762 done
3763
3764   ;;
3765 esac
3766 fi
3767 CDRECORD=$ac_cv_path_CDRECORD
3768
3769 if test -n "$CDRECORD"; then
3770   echo "$as_me:$LINENO: result: $CDRECORD" >&5
3771 echo "${ECHO_T}$CDRECORD" >&6
3772 else
3773   echo "$as_me:$LINENO: result: no" >&5
3774 echo "${ECHO_T}no" >&6
3775 fi
3776
3777
3778 test -n "$ARFLAG" || ARFLAGS="cr"
3779
3780
3781 MAKE_SHELL=/bin/sh
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791 # Make sure we can run config.sub.
3792 $ac_config_sub sun4 >/dev/null 2>&1 ||
3793   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3794 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3795    { (exit 1); exit 1; }; }
3796
3797 echo "$as_me:$LINENO: checking build system type" >&5
3798 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3799 if test "${ac_cv_build+set}" = set; then
3800   echo $ECHO_N "(cached) $ECHO_C" >&6
3801 else
3802   ac_cv_build_alias=$build_alias
3803 test -z "$ac_cv_build_alias" &&
3804   ac_cv_build_alias=`$ac_config_guess`
3805 test -z "$ac_cv_build_alias" &&
3806   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3807 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3808    { (exit 1); exit 1; }; }
3809 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3810   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3811 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3812    { (exit 1); exit 1; }; }
3813
3814 fi
3815 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3816 echo "${ECHO_T}$ac_cv_build" >&6
3817 build=$ac_cv_build
3818 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3819 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3820 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3821
3822
3823
3824 echo "$as_me:$LINENO: checking host system type" >&5
3825 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3826 if test "${ac_cv_host+set}" = set; then
3827   echo $ECHO_N "(cached) $ECHO_C" >&6
3828 else
3829   ac_cv_host_alias=$host_alias
3830 test -z "$ac_cv_host_alias" &&
3831   ac_cv_host_alias=$ac_cv_build_alias
3832 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3833   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3834 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3835    { (exit 1); exit 1; }; }
3836
3837 fi
3838 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3839 echo "${ECHO_T}$ac_cv_host" >&6
3840 host=$ac_cv_host
3841 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3842 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3843 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3844
3845
3846 case $host_os in
3847   *cygwin* ) CYGWIN=yes;;
3848          * ) CYGWIN=no;;
3849 esac
3850
3851 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
3852 then
3853
3854
3855 if $TRUEPRG; then
3856   HAVE_SUN_OS_TRUE=
3857   HAVE_SUN_OS_FALSE='#'
3858 else
3859   HAVE_SUN_OS_TRUE='#'
3860   HAVE_SUN_OS_FALSE=
3861 fi
3862         cat >>confdefs.h <<\_ACEOF
3863 #define HAVE_SUN_OS 1
3864 _ACEOF
3865
3866 else
3867
3868
3869 if $FALSEPRG; then
3870   HAVE_SUN_OS_TRUE=
3871   HAVE_SUN_OS_FALSE='#'
3872 else
3873   HAVE_SUN_OS_TRUE='#'
3874   HAVE_SUN_OS_FALSE=
3875 fi
3876 fi
3877
3878 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
3879 then
3880
3881
3882 if $TRUEPRG; then
3883   HAVE_OSF1_OS_TRUE=
3884   HAVE_OSF1_OS_FALSE='#'
3885 else
3886   HAVE_OSF1_OS_TRUE='#'
3887   HAVE_OSF1_OS_FALSE=
3888 fi
3889         cat >>confdefs.h <<\_ACEOF
3890 #define HAVE_OSF1_OS 1
3891 _ACEOF
3892
3893 else
3894
3895
3896 if $FALSEPRG; then
3897   HAVE_OSF1_OS_TRUE=
3898   HAVE_OSF1_OS_FALSE='#'
3899 else
3900   HAVE_OSF1_OS_TRUE='#'
3901   HAVE_OSF1_OS_FALSE=
3902 fi
3903 fi
3904
3905 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
3906 then
3907
3908
3909 if $TRUEPRG; then
3910   HAVE_AIX_OS_TRUE=
3911   HAVE_AIX_OS_FALSE='#'
3912 else
3913   HAVE_AIX_OS_TRUE='#'
3914   HAVE_AIX_OS_FALSE=
3915 fi
3916         cat >>confdefs.h <<\_ACEOF
3917 #define HAVE_AIX_OS 1
3918 _ACEOF
3919
3920 else
3921
3922
3923 if $FALSEPRG; then
3924   HAVE_AIX_OS_TRUE=
3925   HAVE_AIX_OS_FALSE='#'
3926 else
3927   HAVE_AIX_OS_TRUE='#'
3928   HAVE_AIX_OS_FALSE=
3929 fi
3930 fi
3931
3932 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
3933 then
3934
3935
3936 if $TRUEPRG; then
3937   HAVE_HPUX_OS_TRUE=
3938   HAVE_HPUX_OS_FALSE='#'
3939 else
3940   HAVE_HPUX_OS_TRUE='#'
3941   HAVE_HPUX_OS_FALSE=
3942 fi
3943         cat >>confdefs.h <<\_ACEOF
3944 #define HAVE_HPUX_OS 1
3945 _ACEOF
3946
3947 else
3948
3949
3950 if $FALSEPRG; then
3951   HAVE_HPUX_OS_TRUE=
3952   HAVE_HPUX_OS_FALSE='#'
3953 else
3954   HAVE_HPUX_OS_TRUE='#'
3955   HAVE_HPUX_OS_FALSE=
3956 fi
3957 fi
3958
3959 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
3960 then
3961
3962
3963 if $TRUEPRG; then
3964   HAVE_LINUX_OS_TRUE=
3965   HAVE_LINUX_OS_FALSE='#'
3966 else
3967   HAVE_LINUX_OS_TRUE='#'
3968   HAVE_LINUX_OS_FALSE=
3969 fi
3970         cat >>confdefs.h <<\_ACEOF
3971 #define HAVE_LINUX_OS 1
3972 _ACEOF
3973
3974 else
3975
3976
3977 if $FALSEPRG; then
3978   HAVE_LINUX_OS_TRUE=
3979   HAVE_LINUX_OS_FALSE='#'
3980 else
3981   HAVE_LINUX_OS_TRUE='#'
3982   HAVE_LINUX_OS_FALSE=
3983 fi
3984 fi
3985
3986 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
3987 then
3988
3989
3990 if $TRUEPRG; then
3991   HAVE_FREEBSD_OS_TRUE=
3992   HAVE_FREEBSD_OS_FALSE='#'
3993 else
3994   HAVE_FREEBSD_OS_TRUE='#'
3995   HAVE_FREEBSD_OS_FALSE=
3996 fi
3997         cat >>confdefs.h <<\_ACEOF
3998 #define HAVE_FREEBSD_OS 1
3999 _ACEOF
4000
4001 else
4002
4003
4004 if $FALSEPRG; then
4005   HAVE_FREEBSD_OS_TRUE=
4006   HAVE_FREEBSD_OS_FALSE='#'
4007 else
4008   HAVE_FREEBSD_OS_TRUE='#'
4009   HAVE_FREEBSD_OS_FALSE=
4010 fi
4011 fi
4012
4013 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4014 then
4015
4016
4017 if $TRUEPRG; then
4018   HAVE_NETBSD_OS_TRUE=
4019   HAVE_NETBSD_OS_FALSE='#'
4020 else
4021   HAVE_NETBSD_OS_TRUE='#'
4022   HAVE_NETBSD_OS_FALSE=
4023 fi
4024         cat >>confdefs.h <<\_ACEOF
4025 #define HAVE_NETBSD_OS 1
4026 _ACEOF
4027
4028 else
4029
4030
4031 if $FALSEPRG; then
4032   HAVE_NETBSD_OS_TRUE=
4033   HAVE_NETBSD_OS_FALSE='#'
4034 else
4035   HAVE_NETBSD_OS_TRUE='#'
4036   HAVE_NETBSD_OS_FALSE=
4037 fi
4038 fi
4039
4040 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4041 then
4042
4043
4044 if $TRUEPRG; then
4045   HAVE_OPENBSD_OS_TRUE=
4046   HAVE_OPENBSD_OS_FALSE='#'
4047 else
4048   HAVE_OPENBSD_OS_TRUE='#'
4049   HAVE_OPENBSD_OS_FALSE=
4050 fi
4051         cat >>confdefs.h <<\_ACEOF
4052 #define HAVE_OPENBSD_OS 1
4053 _ACEOF
4054
4055 else
4056
4057
4058 if $FALSEPRG; then
4059   HAVE_OPENBSD_OS_TRUE=
4060   HAVE_OPENBSD_OS_FALSE='#'
4061 else
4062   HAVE_OPENBSD_OS_TRUE='#'
4063   HAVE_OPENBSD_OS_FALSE=
4064 fi
4065 fi
4066
4067 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4068 then
4069
4070
4071 if $TRUEPRG; then
4072   HAVE_BSDI_OS_TRUE=
4073   HAVE_BSDI_OS_FALSE='#'
4074 else
4075   HAVE_BSDI_OS_TRUE='#'
4076   HAVE_BSDI_OS_FALSE=
4077 fi
4078         cat >>confdefs.h <<\_ACEOF
4079 #define HAVE_BSDI_OS 1
4080 _ACEOF
4081
4082 else
4083
4084
4085 if $FALSEPRG; then
4086   HAVE_BSDI_OS_TRUE=
4087   HAVE_BSDI_OS_FALSE='#'
4088 else
4089   HAVE_BSDI_OS_TRUE='#'
4090   HAVE_BSDI_OS_FALSE=
4091 fi
4092 fi
4093
4094 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
4095 then
4096
4097
4098 if $TRUEPRG; then
4099   HAVE_SGI_OS_TRUE=
4100   HAVE_SGI_OS_FALSE='#'
4101 else
4102   HAVE_SGI_OS_TRUE='#'
4103   HAVE_SGI_OS_FALSE=
4104 fi
4105         cat >>confdefs.h <<\_ACEOF
4106 #define HAVE_SGI_OS 1
4107 _ACEOF
4108
4109 else
4110
4111
4112 if $FALSEPRG; then
4113   HAVE_SGI_OS_TRUE=
4114   HAVE_SGI_OS_FALSE='#'
4115 else
4116   HAVE_SGI_OS_TRUE='#'
4117   HAVE_SGI_OS_FALSE=
4118 fi
4119 fi
4120
4121 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4122 then
4123
4124
4125 if $TRUEPRG; then
4126   HAVE_IRIX_OS_TRUE=
4127   HAVE_IRIX_OS_FALSE='#'
4128 else
4129   HAVE_IRIX_OS_TRUE='#'
4130   HAVE_IRIX_OS_FALSE=
4131 fi
4132         cat >>confdefs.h <<\_ACEOF
4133 #define HAVE_IRIX_OS 1
4134 _ACEOF
4135
4136 else
4137
4138
4139 if $FALSEPRG; then
4140   HAVE_IRIX_OS_TRUE=
4141   HAVE_IRIX_OS_FALSE='#'
4142 else
4143   HAVE_IRIX_OS_TRUE='#'
4144   HAVE_IRIX_OS_FALSE=
4145 fi
4146 fi
4147
4148 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4149 then
4150
4151
4152 if $TRUEPRG; then
4153   HAVE_DARWIN_OS_TRUE=
4154   HAVE_DARWIN_OS_FALSE='#'
4155 else
4156   HAVE_DARWIN_OS_TRUE='#'
4157   HAVE_DARWIN_OS_FALSE=
4158 fi
4159     cat >>confdefs.h <<\_ACEOF
4160 #define HAVE_DARWIN_OS 1
4161 _ACEOF
4162
4163 else
4164
4165
4166 if $FALSEPRG; then
4167   HAVE_DARWIN_OS_TRUE=
4168   HAVE_DARWIN_OS_FALSE='#'
4169 else
4170   HAVE_DARWIN_OS_TRUE='#'
4171   HAVE_DARWIN_OS_FALSE=
4172 fi
4173 fi
4174
4175
4176 # -----------------------------------------------------------
4177 # ----------------------------------------------------------
4178 echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
4179 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6
4180 if test "x$DISTNAME" != "x"
4181 then
4182         echo "distname set to $DISTNAME"
4183 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4184 then
4185         DISTNAME=alpha
4186 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4187 then
4188         DISTNAME=aix
4189 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4190 then
4191         DISTNAME=hpux
4192 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4193 then
4194         DISTNAME=solaris
4195 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4196 then
4197         DISTNAME=freebsd
4198 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4199 then
4200         DISTNAME=netbsd
4201 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4202 then
4203         DISTNAME=openbsd
4204 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4205 then
4206         DISTNAME=irix
4207 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4208 then
4209         DISTNAME=bsdi
4210 elif test -f /etc/SuSE-release
4211 then
4212         DISTNAME=suse
4213 elif test -d /etc/SuSEconfig
4214 then
4215         DISTNAME=suse5
4216 elif test -f /etc/mandrake-release
4217 then
4218         DISTNAME=mandrake
4219 elif test -f /etc/whitebox-release
4220 then
4221        DISTNAME=redhat
4222 elif test -f /etc/redhat-release
4223 then
4224         DISTNAME=redhat
4225 elif test -f /etc/gentoo-release
4226 then
4227         DISTNAME=gentoo
4228 elif test -f /etc/debian_version
4229 then
4230         DISTNAME=debian
4231 elif test -f /etc/slackware-version
4232 then
4233         DISTNAME=slackware
4234 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4235 then
4236     DISTNAME=darwin
4237 elif test -f /etc/engarde-version
4238 then
4239         DISTNAME=engarde
4240 elif test "$CYGWIN" = yes
4241 then
4242         DISTNAME=cygwin
4243         cat >>confdefs.h <<\_ACEOF
4244 #define HAVE_CYGWIN 1
4245 _ACEOF
4246
4247 else
4248         DISTNAME=unknown
4249 fi
4250 echo "$as_me:$LINENO: result: done" >&5
4251 echo "${ECHO_T}done" >&6
4252
4253
4254 # -----------------------------------------------------------
4255 # ----------------------------------------------------------
4256
4257
4258
4259 if false; then
4260   INSIDE_GNOME_COMMON_TRUE=
4261   INSIDE_GNOME_COMMON_FALSE='#'
4262 else
4263   INSIDE_GNOME_COMMON_TRUE='#'
4264   INSIDE_GNOME_COMMON_FALSE=
4265 fi
4266
4267         test -n "$ACLOCAL_FLAGS" && ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
4268
4269         for k in gnome-macros ; do ACLOCAL="$ACLOCAL -I $k" ; done
4270
4271
4272 # ------------------------------------------------------------------
4273 #  If the user has not set --prefix, we set our default to nothing.
4274 #  In this case, if the user has not set --sysconfdir, we set it
4275 #  to the package default of /etc/bacula.  If either --prefix or
4276 #  --sysconfdir is set, we leave sysconfdir alone except to eval it.
4277 # ------------------------------------------------------------------
4278 if test x${prefix} = xNONE ; then
4279     if test `eval echo ${sysconfdir}` = NONE/etc ; then
4280         sysconfdir=/etc/bacula
4281     fi
4282     prefix=
4283 fi
4284 sysconfdir=`eval echo ${sysconfdir}`
4285
4286 # -------------------------------------------------------------------------
4287 #  If the user has not set --exec-prefix, we default to ${prefix}
4288 # -------------------------------------------------------------------------
4289 if test x${exec_prefix} = xNONE ; then
4290     exec_prefix=${prefix}
4291 fi
4292
4293 # ------------------------------------------------------------------
4294 # If the user has not set --sbindir, we set our default as /sbin
4295 # ------------------------------------------------------------------
4296 if test x$sbindir = x'${exec_prefix}/sbin' ; then
4297     sbindir=${exec_prefix}/sbin
4298 fi
4299 sbindir=`eval echo ${sbindir}`
4300
4301 # ------------------------------------------------------------------
4302 # All list of languages for which a translation exist. Each
4303 #  language is separated by a space.
4304 # ------------------------------------------------------------------
4305 ALL_LINGUAS=""
4306
4307 for ac_prog in msgfmt
4308 do
4309   # Extract the first word of "$ac_prog", so it can be a program name with args.
4310 set dummy $ac_prog; ac_word=$2
4311 echo "$as_me:$LINENO: checking for $ac_word" >&5
4312 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4313 if test "${ac_cv_path_MSGFMT+set}" = set; then
4314   echo $ECHO_N "(cached) $ECHO_C" >&6
4315 else
4316   case $MSGFMT in
4317   [\\/]* | ?:[\\/]*)
4318   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4319   ;;
4320   *)
4321   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4322 for as_dir in $PATH
4323 do
4324   IFS=$as_save_IFS
4325   test -z "$as_dir" && as_dir=.
4326   for ac_exec_ext in '' $ac_executable_extensions; do
4327   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4328     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
4329     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4330     break 2
4331   fi
4332 done
4333 done
4334
4335   ;;
4336 esac
4337 fi
4338 MSGFMT=$ac_cv_path_MSGFMT
4339
4340 if test -n "$MSGFMT"; then
4341   echo "$as_me:$LINENO: result: $MSGFMT" >&5
4342 echo "${ECHO_T}$MSGFMT" >&6
4343 else
4344   echo "$as_me:$LINENO: result: no" >&5
4345 echo "${ECHO_T}no" >&6
4346 fi
4347
4348   test -n "$MSGFMT" && break
4349 done
4350 test -n "$MSGFMT" || MSGFMT="no"
4351
4352 if test "$MSGFMT" = "no"
4353 then
4354    echo 'msgfmt program not found, disabling NLS !'
4355    USE_NLS=no
4356    USE_INCLUDED_LIBINTL=no
4357 #else
4358 #   AM_GNU_GETTEXT
4359 fi
4360
4361
4362 support_mysql=no
4363 support_sqlite=no
4364 support_postgresql=no
4365 support_smartalloc=yes
4366 support_readline=yes
4367 support_conio=yes
4368 support_gnome=no
4369 support_wx_console=no
4370 gnome_version=
4371 support_static_tools=no
4372 support_static_fd=no
4373 support_static_sd=no
4374 support_static_dir=no
4375 support_static_cons=no
4376 build_client_only=no
4377 cats=
4378 db_name=Internal
4379 DB_NAME=bdb
4380
4381
4382 # -------------------------------------------
4383 # gnome (default off)
4384 # -------------------------------------------
4385 # Check whether --enable-gnome or --disable-gnome was given.
4386 if test "${enable_gnome+set}" = set; then
4387   enableval="$enable_gnome"
4388   if test x$enableval = xyes; then
4389     support_gnome=yes
4390   fi
4391 fi;
4392
4393 GNOME_DIR=
4394 if test x$support_gnome = xyes; then
4395   abc=`$PKGCONFIG --exists libgnomeui-2.0`
4396   pkg=$?
4397   if test $pkg = 0; then
4398      GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
4399      GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
4400      GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
4401      GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
4402
4403
4404
4405
4406      GNOME_DIR=src/gnome2-console
4407      gnome_version="Version 2.x"
4408   else
4409
4410
4411
4412
4413
4414
4415
4416
4417
4418
4419
4420 # Check whether --with-gnome-includes or --without-gnome-includes was given.
4421 if test "${with_gnome_includes+set}" = set; then
4422   withval="$with_gnome_includes"
4423
4424         CFLAGS="$CFLAGS -I$withval"
4425
4426 fi;
4427
4428
4429 # Check whether --with-gnome-libs or --without-gnome-libs was given.
4430 if test "${with_gnome_libs+set}" = set; then
4431   withval="$with_gnome_libs"
4432
4433         LDFLAGS="$LDFLAGS -L$withval"
4434         gnome_prefix=$withval
4435
4436 fi;
4437
4438
4439 # Check whether --with-gnome or --without-gnome was given.
4440 if test "${with_gnome+set}" = set; then
4441   withval="$with_gnome"
4442   if test x$withval = xyes; then
4443                         want_gnome=yes
4444                                                                         :
4445                 else
4446                         if test "x$withval" = xno; then
4447                                 want_gnome=no
4448                         else
4449                                 want_gnome=yes
4450                                 LDFLAGS="$LDFLAGS -L$withval/lib"
4451                                 CFLAGS="$CFLAGS -I$withval/include"
4452                                 gnome_prefix=$withval/lib
4453                         fi
4454                 fi
4455 else
4456   want_gnome=yes
4457 fi;
4458
4459         if test "x$want_gnome" = xyes; then
4460
4461             # Extract the first word of "gnome-config", so it can be a program name with args.
4462 set dummy gnome-config; ac_word=$2
4463 echo "$as_me:$LINENO: checking for $ac_word" >&5
4464 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4465 if test "${ac_cv_path_GNOME_CONFIG+set}" = set; then
4466   echo $ECHO_N "(cached) $ECHO_C" >&6
4467 else
4468   case $GNOME_CONFIG in
4469   [\\/]* | ?:[\\/]*)
4470   ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
4471   ;;
4472   *)
4473   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4474 for as_dir in $PATH
4475 do
4476   IFS=$as_save_IFS
4477   test -z "$as_dir" && as_dir=.
4478   for ac_exec_ext in '' $ac_executable_extensions; do
4479   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4480     ac_cv_path_GNOME_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4481     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4482     break 2
4483   fi
4484 done
4485 done
4486
4487   test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
4488   ;;
4489 esac
4490 fi
4491 GNOME_CONFIG=$ac_cv_path_GNOME_CONFIG
4492
4493 if test -n "$GNOME_CONFIG"; then
4494   echo "$as_me:$LINENO: result: $GNOME_CONFIG" >&5
4495 echo "${ECHO_T}$GNOME_CONFIG" >&6
4496 else
4497   echo "$as_me:$LINENO: result: no" >&5
4498 echo "${ECHO_T}no" >&6
4499 fi
4500
4501             if test "$GNOME_CONFIG" = "no"; then
4502               no_gnome_config="yes"
4503             else
4504               echo "$as_me:$LINENO: checking if $GNOME_CONFIG works" >&5
4505 echo $ECHO_N "checking if $GNOME_CONFIG works... $ECHO_C" >&6
4506               if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then
4507                 echo "$as_me:$LINENO: result: yes" >&5
4508 echo "${ECHO_T}yes" >&6
4509
4510
4511         # Extract the first word of "orbit-config", so it can be a program name with args.
4512 set dummy orbit-config; ac_word=$2
4513 echo "$as_me:$LINENO: checking for $ac_word" >&5
4514 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4515 if test "${ac_cv_path_ORBIT_CONFIG+set}" = set; then
4516   echo $ECHO_N "(cached) $ECHO_C" >&6
4517 else
4518   case $ORBIT_CONFIG in
4519   [\\/]* | ?:[\\/]*)
4520   ac_cv_path_ORBIT_CONFIG="$ORBIT_CONFIG" # Let the user override the test with a path.
4521   ;;
4522   *)
4523   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4524 for as_dir in $PATH
4525 do
4526   IFS=$as_save_IFS
4527   test -z "$as_dir" && as_dir=.
4528   for ac_exec_ext in '' $ac_executable_extensions; do
4529   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4530     ac_cv_path_ORBIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4531     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4532     break 2
4533   fi
4534 done
4535 done
4536
4537   test -z "$ac_cv_path_ORBIT_CONFIG" && ac_cv_path_ORBIT_CONFIG="no"
4538   ;;
4539 esac
4540 fi
4541 ORBIT_CONFIG=$ac_cv_path_ORBIT_CONFIG
4542
4543 if test -n "$ORBIT_CONFIG"; then
4544   echo "$as_me:$LINENO: result: $ORBIT_CONFIG" >&5
4545 echo "${ECHO_T}$ORBIT_CONFIG" >&6
4546 else
4547   echo "$as_me:$LINENO: result: no" >&5
4548 echo "${ECHO_T}no" >&6
4549 fi
4550
4551         # Extract the first word of "orbit-idl", so it can be a program name with args.
4552 set dummy orbit-idl; ac_word=$2
4553 echo "$as_me:$LINENO: checking for $ac_word" >&5
4554 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4555 if test "${ac_cv_path_ORBIT_IDL+set}" = set; then
4556   echo $ECHO_N "(cached) $ECHO_C" >&6
4557 else
4558   case $ORBIT_IDL in
4559   [\\/]* | ?:[\\/]*)
4560   ac_cv_path_ORBIT_IDL="$ORBIT_IDL" # Let the user override the test with a path.
4561   ;;
4562   *)
4563   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4564 for as_dir in $PATH
4565 do
4566   IFS=$as_save_IFS
4567   test -z "$as_dir" && as_dir=.
4568   for ac_exec_ext in '' $ac_executable_extensions; do
4569   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4570     ac_cv_path_ORBIT_IDL="$as_dir/$ac_word$ac_exec_ext"
4571     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4572     break 2
4573   fi
4574 done
4575 done
4576
4577   test -z "$ac_cv_path_ORBIT_IDL" && ac_cv_path_ORBIT_IDL="no"
4578   ;;
4579 esac
4580 fi
4581 ORBIT_IDL=$ac_cv_path_ORBIT_IDL
4582
4583 if test -n "$ORBIT_IDL"; then
4584   echo "$as_me:$LINENO: result: $ORBIT_IDL" >&5
4585 echo "${ECHO_T}$ORBIT_IDL" >&6
4586 else
4587   echo "$as_me:$LINENO: result: no" >&5
4588 echo "${ECHO_T}no" >&6
4589 fi
4590
4591         echo "$as_me:$LINENO: checking for working ORBit environment" >&5
4592 echo $ECHO_N "checking for working ORBit environment... $ECHO_C" >&6
4593 if test "${gnome_cv_orbit_found+set}" = set; then
4594   echo $ECHO_N "(cached) $ECHO_C" >&6
4595 else
4596
4597                 if test x$ORBIT_CONFIG = xno -o x$ORBIT_IDL = xno; then
4598                         gnome_cv_orbit_found=no
4599                 else
4600                         gnome_cv_orbit_found=yes
4601                 fi
4602
4603 fi
4604 echo "$as_me:$LINENO: result: $gnome_cv_orbit_found" >&5
4605 echo "${ECHO_T}$gnome_cv_orbit_found" >&6
4606
4607
4608 if test x$gnome_cv_orbit_found = xyes; then
4609   HAVE_ORBIT_TRUE=
4610   HAVE_ORBIT_FALSE='#'
4611 else
4612   HAVE_ORBIT_TRUE='#'
4613   HAVE_ORBIT_FALSE=
4614 fi
4615         if test x$gnome_cv_orbit_found = xyes; then
4616
4617                 ORBIT_CFLAGS=`orbit-config --cflags client server`
4618                 ORBIT_LIBS=`orbit-config --use-service=name --libs client server`
4619
4620
4621         else
4622                 if test xfail = xfailure; then
4623                         { { echo "$as_me:$LINENO: error: ORBit not installed or installation problem" >&5
4624 echo "$as_me: error: ORBit not installed or installation problem" >&2;}
4625    { (exit 1); exit 1; }; }
4626                 fi
4627         fi
4628
4629         echo "$as_me:$LINENO: checking for gnorba libraries" >&5
4630 echo $ECHO_N "checking for gnorba libraries... $ECHO_C" >&6
4631 if test "${gnome_cv_gnorba_found+set}" = set; then
4632   echo $ECHO_N "(cached) $ECHO_C" >&6
4633 else
4634
4635                 gnome_cv_gnorba_found=no
4636                 if test x$gnome_cv_orbit_found = xyes; then
4637                         GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
4638                         GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
4639                         if test -n "$GNORBA_LIBS"; then
4640                                 gnome_cv_gnorba_found=yes
4641                         fi
4642                 fi
4643
4644 fi
4645 echo "$as_me:$LINENO: result: $gnome_cv_gnorba_found" >&5
4646 echo "${ECHO_T}$gnome_cv_gnorba_found" >&6
4647
4648
4649 if test x$gnome_cv_gnorba_found = xyes; then
4650   HAVE_GNORBA_TRUE=
4651   HAVE_GNORBA_FALSE='#'
4652 else
4653   HAVE_GNORBA_TRUE='#'
4654   HAVE_GNORBA_FALSE=
4655 fi
4656         if test x$gnome_cv_orbit_found = xyes; then
4657
4658                 GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
4659                 GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
4660
4661
4662         else
4663                 if test xfail = xfailure; then
4664                         { { echo "$as_me:$LINENO: error: gnorba library not installed or installation problem" >&5
4665 echo "$as_me: error: gnorba library not installed or installation problem" >&2;}
4666    { (exit 1); exit 1; }; }
4667                 fi
4668         fi
4669
4670                 GNOME_LIBS="`$GNOME_CONFIG --libs-only-l gnome`"
4671                 GNOMEUI_LIBS="`$GNOME_CONFIG --libs-only-l gnomeui`"
4672                 GNOMEGNORBA_LIBS="`$GNOME_CONFIG --libs-only-l gnorba gnomeui`"
4673                 GTKXMHTML_LIBS="`$GNOME_CONFIG --libs-only-l gtkxmhtml`"
4674                 ZVT_LIBS="`$GNOME_CONFIG --libs-only-l zvt`"
4675                 GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui`"
4676                 GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui`"
4677
4678               else
4679                 echo "$as_me:$LINENO: result: no" >&5
4680 echo "${ECHO_T}no" >&6
4681                 no_gnome_config="yes"
4682               fi
4683             fi
4684
4685             if test x$exec_prefix = xNONE; then
4686                 if test x$prefix = xNONE; then
4687                     gnome_prefix=$ac_default_prefix/lib
4688                 else
4689                     gnome_prefix=$prefix/lib
4690                 fi
4691             else
4692                 gnome_prefix=`eval echo \`echo $libdir\``
4693             fi
4694
4695             if test "$no_gnome_config" = "yes"; then
4696               echo "$as_me:$LINENO: checking for gnomeConf.sh file in $gnome_prefix" >&5
4697 echo $ECHO_N "checking for gnomeConf.sh file in $gnome_prefix... $ECHO_C" >&6
4698               if test -f $gnome_prefix/gnomeConf.sh; then
4699                 echo "$as_me:$LINENO: result: found" >&5
4700 echo "${ECHO_T}found" >&6
4701                 echo "loading gnome configuration from" \
4702                      "$gnome_prefix/gnomeConf.sh"
4703                 . $gnome_prefix/gnomeConf.sh
4704
4705               else
4706                 echo "$as_me:$LINENO: result: not found" >&5
4707 echo "${ECHO_T}not found" >&6
4708                 if test xfail = xfail; then
4709                   { { echo "$as_me:$LINENO: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&5
4710 echo "$as_me: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&2;}
4711    { (exit 1); exit 1; }; }
4712                 fi
4713               fi
4714             fi
4715         fi
4716
4717         if test -n ""; then
4718           n=""
4719           for i in $n; do
4720             echo "$as_me:$LINENO: checking extra library \"$i\"" >&5
4721 echo $ECHO_N "checking extra library \"$i\"... $ECHO_C" >&6
4722             case $i in
4723               applets)
4724
4725                 GNOME_APPLETS_LIBS=`$GNOME_CONFIG --libs-only-l applets`
4726                 echo "$as_me:$LINENO: result: $GNOME_APPLETS_LIBS" >&5
4727 echo "${ECHO_T}$GNOME_APPLETS_LIBS" >&6;;
4728               docklets)
4729
4730                 GNOME_DOCKLETS_LIBS=`$GNOME_CONFIG --libs-only-l docklets`
4731                 echo "$as_me:$LINENO: result: $GNOME_DOCKLETS_LIBS" >&5
4732 echo "${ECHO_T}$GNOME_DOCKLETS_LIBS" >&6;;
4733               capplet)
4734
4735                 GNOME_CAPPLET_LIBS=`$GNOME_CONFIG --libs-only-l capplet`
4736                 echo "$as_me:$LINENO: result: $GNOME_CAPPLET_LIBS" >&5
4737 echo "${ECHO_T}$GNOME_CAPPLET_LIBS" >&6;;
4738               *)
4739                 echo "$as_me:$LINENO: result: unknown library" >&5
4740 echo "${ECHO_T}unknown library" >&6
4741             esac
4742             EXTRA_INCLUDEDIR=`$GNOME_CONFIG --cflags $i`
4743             GNOME_INCLUDEDIR="$GNOME_INCLUDEDIR $EXTRA_INCLUDEDIR"
4744           done
4745         fi
4746
4747
4748      GNOME_DIR=src/gnome-console
4749      gnome_version="Version 1.4"
4750   fi
4751 fi
4752
4753
4754
4755 # -------------------------------------------
4756 # wx-console (default off)
4757 # -------------------------------------------
4758 # Check whether --enable-wx-console or --disable-wx-console was given.
4759 if test "${enable_wx_console+set}" = set; then
4760   enableval="$enable_wx_console"
4761   if test x$enableval = xyes; then
4762     support_wx_console=yes
4763   fi
4764 fi;
4765
4766 WX_DIR=
4767 if test x$support_wx_console = xyes; then
4768   abc=`$WXCONFIG --cppflags`
4769   pkg=$?
4770   if test $pkg = 0; then
4771      WXCONS_CPPFLAGS=`$WXCONFIG --cppflags`
4772      WXCONS_LDFLAGS=`$WXCONFIG --libs`
4773
4774
4775      WX_DIR=src/wx-console
4776   else
4777      echo " "
4778      echo "wx-config program not found. wx-console disabled."
4779      echo " "
4780      support_wx_console=no
4781   fi
4782 fi
4783
4784
4785
4786 # -------------------------------------------
4787 # tray-monitor (default off)
4788 # -------------------------------------------
4789 # Check whether --enable-tray-monitor or --disable-tray-monitor was given.
4790 if test "${enable_tray_monitor+set}" = set; then
4791   enableval="$enable_tray_monitor"
4792   if test x$enableval = xyes; then
4793     support_tray_monitor=yes
4794   fi
4795 fi;
4796
4797 TRAY_MONITOR_DIR=
4798 if test x$support_tray_monitor = xyes; then
4799   abc=`$PKGCONFIG --exists gtk+-2.0`
4800   pkg=$?
4801   if test $pkg = 0; then
4802      TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
4803      TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
4804
4805
4806      TRAY_MONITOR_DIR=src/tray-monitor
4807      abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
4808      pkg=$?
4809      if test $pkg = 0; then
4810         cat >>confdefs.h <<\_ACEOF
4811 #define HAVE_GTK_2_4 1
4812 _ACEOF
4813
4814      fi
4815   fi
4816 fi
4817
4818
4819 # -------------------------------------------
4820 # smartalloc (default off)
4821 # -------------------------------------------
4822 # Check whether --enable-smartalloc or --disable-smartalloc was given.
4823 if test "${enable_smartalloc+set}" = set; then
4824   enableval="$enable_smartalloc"
4825   if test x$enableval = xno; then
4826     support_smartalloc=no
4827   fi
4828 fi;
4829
4830 if test x$support_smartalloc = xyes; then
4831    cat >>confdefs.h <<\_ACEOF
4832 #define SMARTALLOC 1
4833 _ACEOF
4834
4835 fi
4836
4837 # -------------------------------------------
4838 # static-tools (default off)
4839 # -------------------------------------------
4840 # Check whether --enable-static-tools or --disable-static-tools was given.
4841 if test "${enable_static_tools+set}" = set; then
4842   enableval="$enable_static_tools"
4843   if test x$enableval = xyes; then
4844      support_static_tools=yes
4845    fi
4846 fi;
4847
4848 TTOOL_LDFLAGS=
4849 if test x$support_static_tools = xyes; then
4850    TTOOL_LDFLAGS="-static"
4851 fi
4852
4853
4854 # -------------------------------------------
4855 # static-fd    (default off)
4856 # -------------------------------------------
4857 # Check whether --enable-static-fd or --disable-static-fd was given.
4858 if test "${enable_static_fd+set}" = set; then
4859   enableval="$enable_static_fd"
4860   if test x$enableval = xyes; then
4861      support_static_fd=yes
4862    fi
4863 fi;
4864
4865 STATIC_FD=
4866 if test x$support_static_fd = xyes; then
4867    STATIC_FD="static-bacula-fd"
4868 fi
4869
4870
4871 # -------------------------------------------
4872 # static-sd    (default off)
4873 # -------------------------------------------
4874 # Check whether --enable-static-sd or --disable-static-sd was given.
4875 if test "${enable_static_sd+set}" = set; then
4876   enableval="$enable_static_sd"
4877   if test x$enableval = xyes; then
4878      support_static_sd=yes
4879    fi
4880 fi;
4881
4882 STATIC_SD=
4883 if test x$support_static_sd = xyes; then
4884    STATIC_SD="static-bacula-sd"
4885 fi
4886
4887
4888 # -------------------------------------------
4889 # static-dir   (default off)
4890 # -------------------------------------------
4891 # Check whether --enable-static-dir or --disable-static-dir was given.
4892 if test "${enable_static_dir+set}" = set; then
4893   enableval="$enable_static_dir"
4894   if test x$enableval = xyes; then
4895      support_static_dir=yes
4896    fi
4897 fi;
4898
4899 STATIC_DIR=
4900 if test x$support_static_dir = xyes; then
4901    STATIC_DIR="static-bacula-dir"
4902 fi
4903
4904
4905 # -------------------------------------------
4906 # static-cons  (default off)
4907 # -------------------------------------------
4908 # Check whether --enable-static-cons or --disable-static-cons was given.
4909 if test "${enable_static_cons+set}" = set; then
4910   enableval="$enable_static_cons"
4911   if test x$enableval = xyes; then
4912      support_static_cons=yes
4913    fi
4914 fi;
4915
4916 STATIC_CONS=
4917 STATIC_GNOME_CONS=
4918 STATIC_WX_CONS=
4919 if test x$support_static_cons = xyes; then
4920    STATIC_CONS="static-bconsole"
4921    STATIC_GNOME_CONS="static-gnome-console"
4922    STATIC_WX_CONS="static-wx-console"
4923 fi
4924
4925
4926
4927
4928 # -------------------------------------------
4929 # client_only  (default off)
4930 # -------------------------------------------
4931 # Check whether --enable-client-only or --disable-client-only was given.
4932 if test "${enable_client_only+set}" = set; then
4933   enableval="$enable_client_only"
4934   if test x$enableval = xyes; then
4935      build_client_only=yes
4936     db_name=None
4937     DB_NAME=none
4938    fi
4939 fi;
4940 if test x$build_client_only = xno; then
4941    ALL_DIRS="subdirs"
4942 else
4943    ALL_DIRS=""
4944 fi
4945
4946
4947 # ---------------------------------------------------
4948 # Check for conio (Bacula readline substitute)(
4949 # ---------------------------------------------------
4950 # this allows you to turn it completely off
4951 # Check whether --enable-conio or --disable-conio was given.
4952 if test "${enable_conio+set}" = set; then
4953   enableval="$enable_conio"
4954   if test x$enableval = xno; then
4955     support_conio=no
4956   fi
4957 fi;
4958
4959 got_conio="no"
4960 if test x$support_conio = xyes; then
4961    echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4962 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4963 if test "${ac_cv_header_stdc+set}" = set; then
4964   echo $ECHO_N "(cached) $ECHO_C" >&6
4965 else
4966   cat >conftest.$ac_ext <<_ACEOF
4967 #line $LINENO "configure"
4968 /* confdefs.h.  */
4969 _ACEOF
4970 cat confdefs.h >>conftest.$ac_ext
4971 cat >>conftest.$ac_ext <<_ACEOF
4972 /* end confdefs.h.  */
4973 #include <stdlib.h>
4974 #include <stdarg.h>
4975 #include <string.h>
4976 #include <float.h>
4977
4978 int
4979 main ()
4980 {
4981
4982   ;
4983   return 0;
4984 }
4985 _ACEOF
4986 rm -f conftest.$ac_objext
4987 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4988   (eval $ac_compile) 2>&5
4989   ac_status=$?
4990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4991   (exit $ac_status); } &&
4992          { ac_try='test -s conftest.$ac_objext'
4993   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4994   (eval $ac_try) 2>&5
4995   ac_status=$?
4996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4997   (exit $ac_status); }; }; then
4998   ac_cv_header_stdc=yes
4999 else
5000   echo "$as_me: failed program was:" >&5
5001 sed 's/^/| /' conftest.$ac_ext >&5
5002
5003 ac_cv_header_stdc=no
5004 fi
5005 rm -f conftest.$ac_objext conftest.$ac_ext
5006
5007 if test $ac_cv_header_stdc = yes; then
5008   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5009   cat >conftest.$ac_ext <<_ACEOF
5010 #line $LINENO "configure"
5011 /* confdefs.h.  */
5012 _ACEOF
5013 cat confdefs.h >>conftest.$ac_ext
5014 cat >>conftest.$ac_ext <<_ACEOF
5015 /* end confdefs.h.  */
5016 #include <string.h>
5017
5018 _ACEOF
5019 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5020   $EGREP "memchr" >/dev/null 2>&1; then
5021   :
5022 else
5023   ac_cv_header_stdc=no
5024 fi
5025 rm -f conftest*
5026
5027 fi
5028
5029 if test $ac_cv_header_stdc = yes; then
5030   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5031   cat >conftest.$ac_ext <<_ACEOF
5032 #line $LINENO "configure"
5033 /* confdefs.h.  */
5034 _ACEOF
5035 cat confdefs.h >>conftest.$ac_ext
5036 cat >>conftest.$ac_ext <<_ACEOF
5037 /* end confdefs.h.  */
5038 #include <stdlib.h>
5039
5040 _ACEOF
5041 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5042   $EGREP "free" >/dev/null 2>&1; then
5043   :
5044 else
5045   ac_cv_header_stdc=no
5046 fi
5047 rm -f conftest*
5048
5049 fi
5050
5051 if test $ac_cv_header_stdc = yes; then
5052   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5053   if test "$cross_compiling" = yes; then
5054   :
5055 else
5056   cat >conftest.$ac_ext <<_ACEOF
5057 #line $LINENO "configure"
5058 /* confdefs.h.  */
5059 _ACEOF
5060 cat confdefs.h >>conftest.$ac_ext
5061 cat >>conftest.$ac_ext <<_ACEOF
5062 /* end confdefs.h.  */
5063 #include <ctype.h>
5064 #if ((' ' & 0x0FF) == 0x020)
5065 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5066 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5067 #else
5068 # define ISLOWER(c) \
5069                    (('a' <= (c) && (c) <= 'i') \
5070                      || ('j' <= (c) && (c) <= 'r') \
5071                      || ('s' <= (c) && (c) <= 'z'))
5072 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5073 #endif
5074
5075 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5076 int
5077 main ()
5078 {
5079   int i;
5080   for (i = 0; i < 256; i++)
5081     if (XOR (islower (i), ISLOWER (i))
5082         || toupper (i) != TOUPPER (i))
5083       exit(2);
5084   exit (0);
5085 }
5086 _ACEOF
5087 rm -f conftest$ac_exeext
5088 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5089   (eval $ac_link) 2>&5
5090   ac_status=$?
5091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5092   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5093   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5094   (eval $ac_try) 2>&5
5095   ac_status=$?
5096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5097   (exit $ac_status); }; }; then
5098   :
5099 else
5100   echo "$as_me: program exited with status $ac_status" >&5
5101 echo "$as_me: failed program was:" >&5
5102 sed 's/^/| /' conftest.$ac_ext >&5
5103
5104 ( exit $ac_status )
5105 ac_cv_header_stdc=no
5106 fi
5107 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5108 fi
5109 fi
5110 fi
5111 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5112 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5113 if test $ac_cv_header_stdc = yes; then
5114
5115 cat >>confdefs.h <<\_ACEOF
5116 #define STDC_HEADERS 1
5117 _ACEOF
5118
5119 fi
5120
5121 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5132                   inttypes.h stdint.h unistd.h
5133 do
5134 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5135 echo "$as_me:$LINENO: checking for $ac_header" >&5
5136 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5137 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5138   echo $ECHO_N "(cached) $ECHO_C" >&6
5139 else
5140   cat >conftest.$ac_ext <<_ACEOF
5141 #line $LINENO "configure"
5142 /* confdefs.h.  */
5143 _ACEOF
5144 cat confdefs.h >>conftest.$ac_ext
5145 cat >>conftest.$ac_ext <<_ACEOF
5146 /* end confdefs.h.  */
5147 $ac_includes_default
5148
5149 #include <$ac_header>
5150 _ACEOF
5151 rm -f conftest.$ac_objext
5152 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5153   (eval $ac_compile) 2>&5
5154   ac_status=$?
5155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5156   (exit $ac_status); } &&
5157          { ac_try='test -s conftest.$ac_objext'
5158   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5159   (eval $ac_try) 2>&5
5160   ac_status=$?
5161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5162   (exit $ac_status); }; }; then
5163   eval "$as_ac_Header=yes"
5164 else
5165   echo "$as_me: failed program was:" >&5
5166 sed 's/^/| /' conftest.$ac_ext >&5
5167
5168 eval "$as_ac_Header=no"
5169 fi
5170 rm -f conftest.$ac_objext conftest.$ac_ext
5171 fi
5172 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5173 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5174 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5175   cat >>confdefs.h <<_ACEOF
5176 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5177 _ACEOF
5178
5179 fi
5180
5181 done
5182
5183
5184 if test "${ac_cv_header_termcap_h+set}" = set; then
5185   echo "$as_me:$LINENO: checking for termcap.h" >&5
5186 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
5187 if test "${ac_cv_header_termcap_h+set}" = set; then
5188   echo $ECHO_N "(cached) $ECHO_C" >&6
5189 fi
5190 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
5191 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
5192 else
5193   # Is the header compilable?
5194 echo "$as_me:$LINENO: checking termcap.h usability" >&5
5195 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6
5196 cat >conftest.$ac_ext <<_ACEOF
5197 #line $LINENO "configure"
5198 /* confdefs.h.  */
5199 _ACEOF
5200 cat confdefs.h >>conftest.$ac_ext
5201 cat >>conftest.$ac_ext <<_ACEOF
5202 /* end confdefs.h.  */
5203 $ac_includes_default
5204 #include <termcap.h>
5205 _ACEOF
5206 rm -f conftest.$ac_objext
5207 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5208   (eval $ac_compile) 2>&5
5209   ac_status=$?
5210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5211   (exit $ac_status); } &&
5212          { ac_try='test -s conftest.$ac_objext'
5213   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5214   (eval $ac_try) 2>&5
5215   ac_status=$?
5216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5217   (exit $ac_status); }; }; then
5218   ac_header_compiler=yes
5219 else
5220   echo "$as_me: failed program was:" >&5
5221 sed 's/^/| /' conftest.$ac_ext >&5
5222
5223 ac_header_compiler=no
5224 fi
5225 rm -f conftest.$ac_objext conftest.$ac_ext
5226 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5227 echo "${ECHO_T}$ac_header_compiler" >&6
5228
5229 # Is the header present?
5230 echo "$as_me:$LINENO: checking termcap.h presence" >&5
5231 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6
5232 cat >conftest.$ac_ext <<_ACEOF
5233 #line $LINENO "configure"
5234 /* confdefs.h.  */
5235 _ACEOF
5236 cat confdefs.h >>conftest.$ac_ext
5237 cat >>conftest.$ac_ext <<_ACEOF
5238 /* end confdefs.h.  */
5239 #include <termcap.h>
5240 _ACEOF
5241 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5242   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5243   ac_status=$?
5244   grep -v '^ *+' conftest.er1 >conftest.err
5245   rm -f conftest.er1
5246   cat conftest.err >&5
5247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5248   (exit $ac_status); } >/dev/null; then
5249   if test -s conftest.err; then
5250     ac_cpp_err=$ac_c_preproc_warn_flag
5251   else
5252     ac_cpp_err=
5253   fi
5254 else
5255   ac_cpp_err=yes
5256 fi
5257 if test -z "$ac_cpp_err"; then
5258   ac_header_preproc=yes
5259 else
5260   echo "$as_me: failed program was:" >&5
5261 sed 's/^/| /' conftest.$ac_ext >&5
5262
5263   ac_header_preproc=no
5264 fi
5265 rm -f conftest.err conftest.$ac_ext
5266 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5267 echo "${ECHO_T}$ac_header_preproc" >&6
5268
5269 # So?  What about this header?
5270 case $ac_header_compiler:$ac_header_preproc in
5271   yes:no )
5272     { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
5273 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5274     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
5275 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
5276     (
5277       cat <<\_ASBOX
5278 ## ------------------------------------ ##
5279 ## Report this to bug-autoconf@gnu.org. ##
5280 ## ------------------------------------ ##
5281 _ASBOX
5282     ) |
5283       sed "s/^/$as_me: WARNING:     /" >&2
5284     ;;
5285   no:yes )
5286     { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
5287 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
5288     { echo "$as_me:$LINENO: WARNING: termcap.h: check for missing prerequisite headers?" >&5
5289 echo "$as_me: WARNING: termcap.h: check for missing prerequisite headers?" >&2;}
5290     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
5291 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
5292     (
5293       cat <<\_ASBOX
5294 ## ------------------------------------ ##
5295 ## Report this to bug-autoconf@gnu.org. ##
5296 ## ------------------------------------ ##
5297 _ASBOX
5298     ) |
5299       sed "s/^/$as_me: WARNING:     /" >&2
5300     ;;
5301 esac
5302 echo "$as_me:$LINENO: checking for termcap.h" >&5
5303 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
5304 if test "${ac_cv_header_termcap_h+set}" = set; then
5305   echo $ECHO_N "(cached) $ECHO_C" >&6
5306 else
5307   ac_cv_header_termcap_h=$ac_header_preproc
5308 fi
5309 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
5310 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
5311
5312 fi
5313 if test $ac_cv_header_termcap_h = yes; then
5314    echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
5315 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
5316 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
5317   echo $ECHO_N "(cached) $ECHO_C" >&6
5318 else
5319   ac_check_lib_save_LIBS=$LIBS
5320 LIBS="-ltermcap  $LIBS"
5321 cat >conftest.$ac_ext <<_ACEOF
5322 #line $LINENO "configure"
5323 /* confdefs.h.  */
5324 _ACEOF
5325 cat confdefs.h >>conftest.$ac_ext
5326 cat >>conftest.$ac_ext <<_ACEOF
5327 /* end confdefs.h.  */
5328
5329 /* Override any gcc2 internal prototype to avoid an error.  */
5330 #ifdef __cplusplus
5331 extern "C"
5332 #endif
5333 /* We use char because int might match the return type of a gcc2
5334    builtin and then its argument prototype would still apply.  */
5335 char tgetent ();
5336 int
5337 main ()
5338 {
5339 tgetent ();
5340   ;
5341   return 0;
5342 }
5343 _ACEOF
5344 rm -f conftest.$ac_objext conftest$ac_exeext
5345 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5346   (eval $ac_link) 2>&5
5347   ac_status=$?
5348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5349   (exit $ac_status); } &&
5350          { ac_try='test -s conftest$ac_exeext'
5351   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5352   (eval $ac_try) 2>&5
5353   ac_status=$?
5354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5355   (exit $ac_status); }; }; then
5356   ac_cv_lib_termcap_tgetent=yes
5357 else
5358   echo "$as_me: failed program was:" >&5
5359 sed 's/^/| /' conftest.$ac_ext >&5
5360
5361 ac_cv_lib_termcap_tgetent=no
5362 fi
5363 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5364 LIBS=$ac_check_lib_save_LIBS
5365 fi
5366 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
5367 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
5368 if test $ac_cv_lib_termcap_tgetent = yes; then
5369    CONS_LIBS="-ltermcap"
5370          CONS_OBJ="conio.o"
5371          CONS_SRC="conio.c"
5372          got_conio="yes"
5373          support_readline=no
5374
5375 cat >>confdefs.h <<\_ACEOF
5376 #define HAVE_CONIO 1
5377 _ACEOF
5378
5379
5380 else
5381    echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
5382 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6
5383 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
5384   echo $ECHO_N "(cached) $ECHO_C" >&6
5385 else
5386   ac_check_lib_save_LIBS=$LIBS
5387 LIBS="-lncurses  $LIBS"
5388 cat >conftest.$ac_ext <<_ACEOF
5389 #line $LINENO "configure"
5390 /* confdefs.h.  */
5391 _ACEOF
5392 cat confdefs.h >>conftest.$ac_ext
5393 cat >>conftest.$ac_ext <<_ACEOF
5394 /* end confdefs.h.  */
5395
5396 /* Override any gcc2 internal prototype to avoid an error.  */
5397 #ifdef __cplusplus
5398 extern "C"
5399 #endif
5400 /* We use char because int might match the return type of a gcc2
5401    builtin and then its argument prototype would still apply.  */
5402 char tgetent ();
5403 int
5404 main ()
5405 {
5406 tgetent ();
5407   ;
5408   return 0;
5409 }
5410 _ACEOF
5411 rm -f conftest.$ac_objext conftest$ac_exeext
5412 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5413   (eval $ac_link) 2>&5
5414   ac_status=$?
5415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5416   (exit $ac_status); } &&
5417          { ac_try='test -s conftest$ac_exeext'
5418   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5419   (eval $ac_try) 2>&5
5420   ac_status=$?
5421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5422   (exit $ac_status); }; }; then
5423   ac_cv_lib_ncurses_tgetent=yes
5424 else
5425   echo "$as_me: failed program was:" >&5
5426 sed 's/^/| /' conftest.$ac_ext >&5
5427
5428 ac_cv_lib_ncurses_tgetent=no
5429 fi
5430 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5431 LIBS=$ac_check_lib_save_LIBS
5432 fi
5433 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
5434 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6
5435 if test $ac_cv_lib_ncurses_tgetent = yes; then
5436    CONS_LIBS="-lncurses"
5437            CONS_OBJ="conio.o"
5438            CONS_SRC="conio.c"
5439            got_conio="yes"
5440            support_readline=no
5441
5442 cat >>confdefs.h <<\_ACEOF
5443 #define HAVE_CONIO 1
5444 _ACEOF
5445
5446
5447 fi
5448
5449
5450 fi
5451
5452
5453 else
5454
5455
5456 for ac_header in curses.h
5457 do
5458 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5459 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5460   echo "$as_me:$LINENO: checking for $ac_header" >&5
5461 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5462 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5463   echo $ECHO_N "(cached) $ECHO_C" >&6
5464 fi
5465 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5466 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5467 else
5468   # Is the header compilable?
5469 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5470 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5471 cat >conftest.$ac_ext <<_ACEOF
5472 #line $LINENO "configure"
5473 /* confdefs.h.  */
5474 _ACEOF
5475 cat confdefs.h >>conftest.$ac_ext
5476 cat >>conftest.$ac_ext <<_ACEOF
5477 /* end confdefs.h.  */
5478 $ac_includes_default
5479 #include <$ac_header>
5480 _ACEOF
5481 rm -f conftest.$ac_objext
5482 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5483   (eval $ac_compile) 2>&5
5484   ac_status=$?
5485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5486   (exit $ac_status); } &&
5487          { ac_try='test -s conftest.$ac_objext'
5488   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5489   (eval $ac_try) 2>&5
5490   ac_status=$?
5491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5492   (exit $ac_status); }; }; then
5493   ac_header_compiler=yes
5494 else
5495   echo "$as_me: failed program was:" >&5
5496 sed 's/^/| /' conftest.$ac_ext >&5
5497
5498 ac_header_compiler=no
5499 fi
5500 rm -f conftest.$ac_objext conftest.$ac_ext
5501 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5502 echo "${ECHO_T}$ac_header_compiler" >&6
5503
5504 # Is the header present?
5505 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5506 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5507 cat >conftest.$ac_ext <<_ACEOF
5508 #line $LINENO "configure"
5509 /* confdefs.h.  */
5510 _ACEOF
5511 cat confdefs.h >>conftest.$ac_ext
5512 cat >>conftest.$ac_ext <<_ACEOF
5513 /* end confdefs.h.  */
5514 #include <$ac_header>
5515 _ACEOF
5516 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5517   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5518   ac_status=$?
5519   grep -v '^ *+' conftest.er1 >conftest.err
5520   rm -f conftest.er1
5521   cat conftest.err >&5
5522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5523   (exit $ac_status); } >/dev/null; then
5524   if test -s conftest.err; then
5525     ac_cpp_err=$ac_c_preproc_warn_flag
5526   else
5527     ac_cpp_err=
5528   fi
5529 else
5530   ac_cpp_err=yes
5531 fi
5532 if test -z "$ac_cpp_err"; then
5533   ac_header_preproc=yes
5534 else
5535   echo "$as_me: failed program was:" >&5
5536 sed 's/^/| /' conftest.$ac_ext >&5
5537
5538   ac_header_preproc=no
5539 fi
5540 rm -f conftest.err conftest.$ac_ext
5541 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5542 echo "${ECHO_T}$ac_header_preproc" >&6
5543
5544 # So?  What about this header?
5545 case $ac_header_compiler:$ac_header_preproc in
5546   yes:no )
5547     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5548 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5549     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5550 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5551     (
5552       cat <<\_ASBOX
5553 ## ------------------------------------ ##
5554 ## Report this to bug-autoconf@gnu.org. ##
5555 ## ------------------------------------ ##
5556 _ASBOX
5557     ) |
5558       sed "s/^/$as_me: WARNING:     /" >&2
5559     ;;
5560   no:yes )
5561     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5562 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5563     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5564 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5565     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5566 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5567     (
5568       cat <<\_ASBOX
5569 ## ------------------------------------ ##
5570 ## Report this to bug-autoconf@gnu.org. ##
5571 ## ------------------------------------ ##
5572 _ASBOX
5573     ) |
5574       sed "s/^/$as_me: WARNING:     /" >&2
5575     ;;
5576 esac
5577 echo "$as_me:$LINENO: checking for $ac_header" >&5
5578 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5579 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5580   echo $ECHO_N "(cached) $ECHO_C" >&6
5581 else
5582   eval "$as_ac_Header=$ac_header_preproc"
5583 fi
5584 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5585 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5586
5587 fi
5588 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5589   cat >>confdefs.h <<_ACEOF
5590 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5591 _ACEOF
5592
5593 fi
5594
5595 done
5596
5597          echo "$as_me:$LINENO: checking for term.h" >&5
5598 echo $ECHO_N "checking for term.h... $ECHO_C" >&6
5599 if test "${ac_cv_header_term_h+set}" = set; then
5600   echo $ECHO_N "(cached) $ECHO_C" >&6
5601 else
5602   cat >conftest.$ac_ext <<_ACEOF
5603 #line $LINENO "configure"
5604 /* confdefs.h.  */
5605 _ACEOF
5606 cat confdefs.h >>conftest.$ac_ext
5607 cat >>conftest.$ac_ext <<_ACEOF
5608 /* end confdefs.h.  */
5609 #if HAVE_CURSES_H
5610 #include <curses.h>
5611 #endif
5612
5613
5614 #include <term.h>
5615 _ACEOF
5616 rm -f conftest.$ac_objext
5617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5618   (eval $ac_compile) 2>&5
5619   ac_status=$?
5620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5621   (exit $ac_status); } &&
5622          { ac_try='test -s conftest.$ac_objext'
5623   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5624   (eval $ac_try) 2>&5
5625   ac_status=$?
5626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5627   (exit $ac_status); }; }; then
5628   ac_cv_header_term_h=yes
5629 else
5630   echo "$as_me: failed program was:" >&5
5631 sed 's/^/| /' conftest.$ac_ext >&5
5632
5633 ac_cv_header_term_h=no
5634 fi
5635 rm -f conftest.$ac_objext conftest.$ac_ext
5636 fi
5637 echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
5638 echo "${ECHO_T}$ac_cv_header_term_h" >&6
5639 if test $ac_cv_header_term_h = yes; then
5640    echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
5641 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6
5642 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
5643   echo $ECHO_N "(cached) $ECHO_C" >&6
5644 else
5645   ac_check_lib_save_LIBS=$LIBS
5646 LIBS="-lcurses  $LIBS"
5647 cat >conftest.$ac_ext <<_ACEOF
5648 #line $LINENO "configure"
5649 /* confdefs.h.  */
5650 _ACEOF
5651 cat confdefs.h >>conftest.$ac_ext
5652 cat >>conftest.$ac_ext <<_ACEOF
5653 /* end confdefs.h.  */
5654
5655 /* Override any gcc2 internal prototype to avoid an error.  */
5656 #ifdef __cplusplus
5657 extern "C"
5658 #endif
5659 /* We use char because int might match the return type of a gcc2
5660    builtin and then its argument prototype would still apply.  */
5661 char tgetent ();
5662 int
5663 main ()
5664 {
5665 tgetent ();
5666   ;
5667   return 0;
5668 }
5669 _ACEOF
5670 rm -f conftest.$ac_objext conftest$ac_exeext
5671 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5672   (eval $ac_link) 2>&5
5673   ac_status=$?
5674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5675   (exit $ac_status); } &&
5676          { ac_try='test -s conftest$ac_exeext'
5677   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5678   (eval $ac_try) 2>&5
5679   ac_status=$?
5680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5681   (exit $ac_status); }; }; then
5682   ac_cv_lib_curses_tgetent=yes
5683 else
5684   echo "$as_me: failed program was:" >&5
5685 sed 's/^/| /' conftest.$ac_ext >&5
5686
5687 ac_cv_lib_curses_tgetent=no
5688 fi
5689 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5690 LIBS=$ac_check_lib_save_LIBS
5691 fi
5692 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
5693 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6
5694 if test $ac_cv_lib_curses_tgetent = yes; then
5695    CONS_LIBS="-lcurses"
5696                    CONS_OBJ="conio.o"
5697                    CONS_SRC="conio.c"
5698                    got_conio="yes"
5699                    support_readline=no
5700
5701 cat >>confdefs.h <<\_ACEOF
5702 #define HAVE_CONIO 1
5703 _ACEOF
5704
5705
5706 fi
5707
5708
5709 else
5710    echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
5711 fi
5712
5713
5714
5715 fi
5716
5717
5718 fi
5719
5720
5721 # ---------------------------------------------------
5722 # Check for readline support/directory (default off)
5723 # ---------------------------------------------------
5724 # this allows you to turn it completely off
5725 # Check whether --enable-readline or --disable-readline was given.
5726 if test "${enable_readline+set}" = set; then
5727   enableval="$enable_readline"
5728   if test x$enableval = xno; then
5729     support_readline=no
5730   fi
5731 fi;
5732
5733 got_readline="no"
5734 READLINE_SRC=
5735 if test x$support_readline = xyes; then
5736
5737 # Check whether --with-readline or --without-readline was given.
5738 if test "${with_readline+set}" = set; then
5739   withval="$with_readline"
5740
5741         case "$with_readline" in
5742         no) : ;;
5743         yes|*)
5744           if test "$with_readline" != "yes"; then
5745             CONS_INC="-I${with_readline}"
5746             CONS_LDFLAGS="-L$with_readline"
5747           else
5748              with_readline="/usr/include/readline"
5749           fi
5750           as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
5751 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5752   echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
5753 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
5754 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5755   echo $ECHO_N "(cached) $ECHO_C" >&6
5756 fi
5757 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5758 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5759 else
5760   # Is the header compilable?
5761 echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
5762 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6
5763 cat >conftest.$ac_ext <<_ACEOF
5764 #line $LINENO "configure"
5765 /* confdefs.h.  */
5766 _ACEOF
5767 cat confdefs.h >>conftest.$ac_ext
5768 cat >>conftest.$ac_ext <<_ACEOF
5769 /* end confdefs.h.  */
5770 $ac_includes_default
5771 #include <${with_readline}/readline.h>
5772 _ACEOF
5773 rm -f conftest.$ac_objext
5774 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5775   (eval $ac_compile) 2>&5
5776   ac_status=$?
5777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5778   (exit $ac_status); } &&
5779          { ac_try='test -s conftest.$ac_objext'
5780   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5781   (eval $ac_try) 2>&5
5782   ac_status=$?
5783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5784   (exit $ac_status); }; }; then
5785   ac_header_compiler=yes
5786 else
5787   echo "$as_me: failed program was:" >&5
5788 sed 's/^/| /' conftest.$ac_ext >&5
5789
5790 ac_header_compiler=no
5791 fi
5792 rm -f conftest.$ac_objext conftest.$ac_ext
5793 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5794 echo "${ECHO_T}$ac_header_compiler" >&6
5795
5796 # Is the header present?
5797 echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
5798 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6
5799 cat >conftest.$ac_ext <<_ACEOF
5800 #line $LINENO "configure"
5801 /* confdefs.h.  */
5802 _ACEOF
5803 cat confdefs.h >>conftest.$ac_ext
5804 cat >>conftest.$ac_ext <<_ACEOF
5805 /* end confdefs.h.  */
5806 #include <${with_readline}/readline.h>
5807 _ACEOF
5808 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5809   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5810   ac_status=$?
5811   grep -v '^ *+' conftest.er1 >conftest.err
5812   rm -f conftest.er1
5813   cat conftest.err >&5
5814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5815   (exit $ac_status); } >/dev/null; then
5816   if test -s conftest.err; then
5817     ac_cpp_err=$ac_c_preproc_warn_flag
5818   else
5819     ac_cpp_err=
5820   fi
5821 else
5822   ac_cpp_err=yes
5823 fi
5824 if test -z "$ac_cpp_err"; then
5825   ac_header_preproc=yes
5826 else
5827   echo "$as_me: failed program was:" >&5
5828 sed 's/^/| /' conftest.$ac_ext >&5
5829
5830   ac_header_preproc=no
5831 fi
5832 rm -f conftest.err conftest.$ac_ext
5833 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5834 echo "${ECHO_T}$ac_header_preproc" >&6
5835
5836 # So?  What about this header?
5837 case $ac_header_compiler:$ac_header_preproc in
5838   yes:no )
5839     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5840 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5841     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
5842 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
5843     (
5844       cat <<\_ASBOX
5845 ## ------------------------------------ ##
5846 ## Report this to bug-autoconf@gnu.org. ##
5847 ## ------------------------------------ ##
5848 _ASBOX
5849     ) |
5850       sed "s/^/$as_me: WARNING:     /" >&2
5851     ;;
5852   no:yes )
5853     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
5854 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
5855     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&5
5856 echo "$as_me: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&2;}
5857     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
5858 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
5859     (
5860       cat <<\_ASBOX
5861 ## ------------------------------------ ##
5862 ## Report this to bug-autoconf@gnu.org. ##
5863 ## ------------------------------------ ##
5864 _ASBOX
5865     ) |
5866       sed "s/^/$as_me: WARNING:     /" >&2
5867     ;;
5868 esac
5869 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
5870 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
5871 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5872   echo $ECHO_N "(cached) $ECHO_C" >&6
5873 else
5874   eval "$as_ac_Header=$ac_header_preproc"
5875 fi
5876 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5877 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5878
5879 fi
5880 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5881    cat >>confdefs.h <<\_ACEOF
5882 #define HAVE_READLINE 1
5883 _ACEOF
5884
5885                CONS_LIBS="-lreadline -ltermcap"
5886                got_readline="yes"
5887
5888 else
5889    echo " "
5890                echo "readline.h not found. readline turned off ..."
5891                echo " "
5892
5893
5894 fi
5895
5896
5897           ;;
5898         esac
5899
5900 else
5901
5902        # check for standard readline library
5903        if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5904   echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
5905 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
5906 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5907   echo $ECHO_N "(cached) $ECHO_C" >&6
5908 fi
5909 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
5910 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
5911 else
5912   # Is the header compilable?
5913 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
5914 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6
5915 cat >conftest.$ac_ext <<_ACEOF
5916 #line $LINENO "configure"
5917 /* confdefs.h.  */
5918 _ACEOF
5919 cat confdefs.h >>conftest.$ac_ext
5920 cat >>conftest.$ac_ext <<_ACEOF
5921 /* end confdefs.h.  */
5922 $ac_includes_default
5923 #include </usr/include/readline/readline.h>
5924 _ACEOF
5925 rm -f conftest.$ac_objext
5926 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5927   (eval $ac_compile) 2>&5
5928   ac_status=$?
5929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5930   (exit $ac_status); } &&
5931          { ac_try='test -s conftest.$ac_objext'
5932   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5933   (eval $ac_try) 2>&5
5934   ac_status=$?
5935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5936   (exit $ac_status); }; }; then
5937   ac_header_compiler=yes
5938 else
5939   echo "$as_me: failed program was:" >&5
5940 sed 's/^/| /' conftest.$ac_ext >&5
5941
5942 ac_header_compiler=no
5943 fi
5944 rm -f conftest.$ac_objext conftest.$ac_ext
5945 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5946 echo "${ECHO_T}$ac_header_compiler" >&6
5947
5948 # Is the header present?
5949 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
5950 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6
5951 cat >conftest.$ac_ext <<_ACEOF
5952 #line $LINENO "configure"
5953 /* confdefs.h.  */
5954 _ACEOF
5955 cat confdefs.h >>conftest.$ac_ext
5956 cat >>conftest.$ac_ext <<_ACEOF
5957 /* end confdefs.h.  */
5958 #include </usr/include/readline/readline.h>
5959 _ACEOF
5960 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5961   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5962   ac_status=$?
5963   grep -v '^ *+' conftest.er1 >conftest.err
5964   rm -f conftest.er1
5965   cat conftest.err >&5
5966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5967   (exit $ac_status); } >/dev/null; then
5968   if test -s conftest.err; then
5969     ac_cpp_err=$ac_c_preproc_warn_flag
5970   else
5971     ac_cpp_err=
5972   fi
5973 else
5974   ac_cpp_err=yes
5975 fi
5976 if test -z "$ac_cpp_err"; then
5977   ac_header_preproc=yes
5978 else
5979   echo "$as_me: failed program was:" >&5
5980 sed 's/^/| /' conftest.$ac_ext >&5
5981
5982   ac_header_preproc=no
5983 fi
5984 rm -f conftest.err conftest.$ac_ext
5985 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5986 echo "${ECHO_T}$ac_header_preproc" >&6
5987
5988 # So?  What about this header?
5989 case $ac_header_compiler:$ac_header_preproc in
5990   yes:no )
5991     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5992 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5993     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
5994 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5995     (
5996       cat <<\_ASBOX
5997 ## ------------------------------------ ##
5998 ## Report this to bug-autoconf@gnu.org. ##
5999 ## ------------------------------------ ##
6000 _ASBOX
6001     ) |
6002       sed "s/^/$as_me: WARNING:     /" >&2
6003     ;;
6004   no:yes )
6005     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
6006 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
6007     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&5
6008 echo "$as_me: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&2;}
6009     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
6010 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
6011     (
6012       cat <<\_ASBOX
6013 ## ------------------------------------ ##
6014 ## Report this to bug-autoconf@gnu.org. ##
6015 ## ------------------------------------ ##
6016 _ASBOX
6017     ) |
6018       sed "s/^/$as_me: WARNING:     /" >&2
6019     ;;
6020 esac
6021 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
6022 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
6023 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
6024   echo $ECHO_N "(cached) $ECHO_C" >&6
6025 else
6026   ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
6027 fi
6028 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
6029 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
6030
6031 fi
6032 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
6033    cat >>confdefs.h <<\_ACEOF
6034 #define HAVE_READLINE 1
6035 _ACEOF
6036
6037            got_readline="yes"
6038            CONS_INC="-I/usr/include/readline"
6039            CONS_LIBS="-lreadline -ltermcap"
6040
6041 else
6042
6043            # Did not find standard library, so try Bacula's default
6044             as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
6045 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6046   echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
6047 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
6048 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6049   echo $ECHO_N "(cached) $ECHO_C" >&6
6050 fi
6051 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6052 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6053 else
6054   # Is the header compilable?
6055 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
6056 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6
6057 cat >conftest.$ac_ext <<_ACEOF
6058 #line $LINENO "configure"
6059 /* confdefs.h.  */
6060 _ACEOF
6061 cat confdefs.h >>conftest.$ac_ext
6062 cat >>conftest.$ac_ext <<_ACEOF
6063 /* end confdefs.h.  */
6064 $ac_includes_default
6065 #include <${TOP_DIR}/depkgs/readline/readline.h>
6066 _ACEOF
6067 rm -f conftest.$ac_objext
6068 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6069   (eval $ac_compile) 2>&5
6070   ac_status=$?
6071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6072   (exit $ac_status); } &&
6073          { ac_try='test -s conftest.$ac_objext'
6074   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6075   (eval $ac_try) 2>&5
6076   ac_status=$?
6077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6078   (exit $ac_status); }; }; then
6079   ac_header_compiler=yes
6080 else
6081   echo "$as_me: failed program was:" >&5
6082 sed 's/^/| /' conftest.$ac_ext >&5
6083
6084 ac_header_compiler=no
6085 fi
6086 rm -f conftest.$ac_objext conftest.$ac_ext
6087 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6088 echo "${ECHO_T}$ac_header_compiler" >&6
6089
6090 # Is the header present?
6091 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
6092 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6
6093 cat >conftest.$ac_ext <<_ACEOF
6094 #line $LINENO "configure"
6095 /* confdefs.h.  */
6096 _ACEOF
6097 cat confdefs.h >>conftest.$ac_ext
6098 cat >>conftest.$ac_ext <<_ACEOF
6099 /* end confdefs.h.  */
6100 #include <${TOP_DIR}/depkgs/readline/readline.h>
6101 _ACEOF
6102 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6103   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6104   ac_status=$?
6105   grep -v '^ *+' conftest.er1 >conftest.err
6106   rm -f conftest.er1
6107   cat conftest.err >&5
6108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6109   (exit $ac_status); } >/dev/null; then
6110   if test -s conftest.err; then
6111     ac_cpp_err=$ac_c_preproc_warn_flag
6112   else
6113     ac_cpp_err=
6114   fi
6115 else
6116   ac_cpp_err=yes
6117 fi
6118 if test -z "$ac_cpp_err"; then
6119   ac_header_preproc=yes
6120 else
6121   echo "$as_me: failed program was:" >&5
6122 sed 's/^/| /' conftest.$ac_ext >&5
6123
6124   ac_header_preproc=no
6125 fi
6126 rm -f conftest.err conftest.$ac_ext
6127 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6128 echo "${ECHO_T}$ac_header_preproc" >&6
6129
6130 # So?  What about this header?
6131 case $ac_header_compiler:$ac_header_preproc in
6132   yes:no )
6133     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
6134 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6135     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
6136 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
6137     (
6138       cat <<\_ASBOX
6139 ## ------------------------------------ ##
6140 ## Report this to bug-autoconf@gnu.org. ##
6141 ## ------------------------------------ ##
6142 _ASBOX
6143     ) |
6144       sed "s/^/$as_me: WARNING:     /" >&2
6145     ;;
6146   no:yes )
6147     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
6148 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
6149     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&5
6150 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&2;}
6151     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
6152 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
6153     (
6154       cat <<\_ASBOX
6155 ## ------------------------------------ ##
6156 ## Report this to bug-autoconf@gnu.org. ##
6157 ## ------------------------------------ ##
6158 _ASBOX
6159     ) |
6160       sed "s/^/$as_me: WARNING:     /" >&2
6161     ;;
6162 esac
6163 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
6164 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
6165 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6166   echo $ECHO_N "(cached) $ECHO_C" >&6
6167 else
6168   eval "$as_ac_Header=$ac_header_preproc"
6169 fi
6170 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6171 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6172
6173 fi
6174 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6175    cat >>confdefs.h <<\_ACEOF
6176 #define HAVE_READLINE 1
6177 _ACEOF
6178
6179                  got_readline="yes"
6180                  CONS_INC="-I${TOP_DIR}/depkgs/readline"
6181                  CONS_LIBS="-lreadline -lhistory -ltermcap"
6182                  CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
6183                  PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
6184
6185 else
6186    echo " "
6187                 echo "readline.h not found. readline turned off ..."
6188                 echo " "
6189
6190
6191 fi
6192
6193
6194
6195
6196 fi
6197
6198
6199
6200
6201 fi;
6202 fi
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213 # Minimal stuff for readline Makefile configuration
6214 MAKE_SHELL=/bin/sh
6215
6216 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
6217 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
6218 if test "${ac_cv_header_stat_broken+set}" = set; then
6219   echo $ECHO_N "(cached) $ECHO_C" >&6
6220 else
6221   cat >conftest.$ac_ext <<_ACEOF
6222 #line $LINENO "configure"
6223 /* confdefs.h.  */
6224 _ACEOF
6225 cat confdefs.h >>conftest.$ac_ext
6226 cat >>conftest.$ac_ext <<_ACEOF
6227 /* end confdefs.h.  */
6228 #include <sys/types.h>
6229 #include <sys/stat.h>
6230
6231 #if defined(S_ISBLK) && defined(S_IFDIR)
6232 # if S_ISBLK (S_IFDIR)
6233 You lose.
6234 # endif
6235 #endif
6236
6237 #if defined(S_ISBLK) && defined(S_IFCHR)
6238 # if S_ISBLK (S_IFCHR)
6239 You lose.
6240 # endif
6241 #endif
6242
6243 #if defined(S_ISLNK) && defined(S_IFREG)
6244 # if S_ISLNK (S_IFREG)
6245 You lose.
6246 # endif
6247 #endif
6248
6249 #if defined(S_ISSOCK) && defined(S_IFREG)
6250 # if S_ISSOCK (S_IFREG)
6251 You lose.
6252 # endif
6253 #endif
6254
6255 _ACEOF
6256 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6257   $EGREP "You lose" >/dev/null 2>&1; then
6258   ac_cv_header_stat_broken=yes
6259 else
6260   ac_cv_header_stat_broken=no
6261 fi
6262 rm -f conftest*
6263
6264 fi
6265 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
6266 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
6267 if test $ac_cv_header_stat_broken = yes; then
6268
6269 cat >>confdefs.h <<\_ACEOF
6270 #define STAT_MACROS_BROKEN 1
6271 _ACEOF
6272
6273 fi
6274
6275
6276
6277
6278
6279
6280 ac_header_dirent=no
6281 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6282   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6283 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6284 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
6285 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6286   echo $ECHO_N "(cached) $ECHO_C" >&6
6287 else
6288   cat >conftest.$ac_ext <<_ACEOF
6289 #line $LINENO "configure"
6290 /* confdefs.h.  */
6291 _ACEOF
6292 cat confdefs.h >>conftest.$ac_ext
6293 cat >>conftest.$ac_ext <<_ACEOF
6294 /* end confdefs.h.  */
6295 #include <sys/types.h>
6296 #include <$ac_hdr>
6297
6298 int
6299 main ()
6300 {
6301 if ((DIR *) 0)
6302 return 0;
6303   ;
6304   return 0;
6305 }
6306 _ACEOF
6307 rm -f conftest.$ac_objext
6308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6309   (eval $ac_compile) 2>&5
6310   ac_status=$?
6311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6312   (exit $ac_status); } &&
6313          { ac_try='test -s conftest.$ac_objext'
6314   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6315   (eval $ac_try) 2>&5
6316   ac_status=$?
6317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6318   (exit $ac_status); }; }; then
6319   eval "$as_ac_Header=yes"
6320 else
6321   echo "$as_me: failed program was:" >&5
6322 sed 's/^/| /' conftest.$ac_ext >&5
6323
6324 eval "$as_ac_Header=no"
6325 fi
6326 rm -f conftest.$ac_objext conftest.$ac_ext
6327 fi
6328 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6329 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6330 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6331   cat >>confdefs.h <<_ACEOF
6332 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6333 _ACEOF
6334
6335 ac_header_dirent=$ac_hdr; break
6336 fi
6337
6338 done
6339 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6340 if test $ac_header_dirent = dirent.h; then
6341   echo "$as_me:$LINENO: checking for library containing opendir" >&5
6342 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6343 if test "${ac_cv_search_opendir+set}" = set; then
6344   echo $ECHO_N "(cached) $ECHO_C" >&6
6345 else
6346   ac_func_search_save_LIBS=$LIBS
6347 ac_cv_search_opendir=no
6348 cat >conftest.$ac_ext <<_ACEOF
6349 #line $LINENO "configure"
6350 /* confdefs.h.  */
6351 _ACEOF
6352 cat confdefs.h >>conftest.$ac_ext
6353 cat >>conftest.$ac_ext <<_ACEOF
6354 /* end confdefs.h.  */
6355
6356 /* Override any gcc2 internal prototype to avoid an error.  */
6357 #ifdef __cplusplus
6358 extern "C"
6359 #endif
6360 /* We use char because int might match the return type of a gcc2
6361    builtin and then its argument prototype would still apply.  */
6362 char opendir ();
6363 int
6364 main ()
6365 {
6366 opendir ();
6367   ;
6368   return 0;
6369 }
6370 _ACEOF
6371 rm -f conftest.$ac_objext conftest$ac_exeext
6372 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6373   (eval $ac_link) 2>&5
6374   ac_status=$?
6375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6376   (exit $ac_status); } &&
6377          { ac_try='test -s conftest$ac_exeext'
6378   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6379   (eval $ac_try) 2>&5
6380   ac_status=$?
6381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6382   (exit $ac_status); }; }; then
6383   ac_cv_search_opendir="none required"
6384 else
6385   echo "$as_me: failed program was:" >&5
6386 sed 's/^/| /' conftest.$ac_ext >&5
6387
6388 fi
6389 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6390 if test "$ac_cv_search_opendir" = no; then
6391   for ac_lib in dir; do
6392     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6393     cat >conftest.$ac_ext <<_ACEOF
6394 #line $LINENO "configure"
6395 /* confdefs.h.  */
6396 _ACEOF
6397 cat confdefs.h >>conftest.$ac_ext
6398 cat >>conftest.$ac_ext <<_ACEOF
6399 /* end confdefs.h.  */
6400
6401 /* Override any gcc2 internal prototype to avoid an error.  */
6402 #ifdef __cplusplus
6403 extern "C"
6404 #endif
6405 /* We use char because int might match the return type of a gcc2
6406    builtin and then its argument prototype would still apply.  */
6407 char opendir ();
6408 int
6409 main ()
6410 {
6411 opendir ();
6412   ;
6413   return 0;
6414 }
6415 _ACEOF
6416 rm -f conftest.$ac_objext conftest$ac_exeext
6417 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6418   (eval $ac_link) 2>&5
6419   ac_status=$?
6420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6421   (exit $ac_status); } &&
6422          { ac_try='test -s conftest$ac_exeext'
6423   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6424   (eval $ac_try) 2>&5
6425   ac_status=$?
6426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6427   (exit $ac_status); }; }; then
6428   ac_cv_search_opendir="-l$ac_lib"
6429 break
6430 else
6431   echo "$as_me: failed program was:" >&5
6432 sed 's/^/| /' conftest.$ac_ext >&5
6433
6434 fi
6435 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6436   done
6437 fi
6438 LIBS=$ac_func_search_save_LIBS
6439 fi
6440 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6441 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6442 if test "$ac_cv_search_opendir" != no; then
6443   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6444
6445 fi
6446
6447 else
6448   echo "$as_me:$LINENO: checking for library containing opendir" >&5
6449 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6450 if test "${ac_cv_search_opendir+set}" = set; then
6451   echo $ECHO_N "(cached) $ECHO_C" >&6
6452 else
6453   ac_func_search_save_LIBS=$LIBS
6454 ac_cv_search_opendir=no
6455 cat >conftest.$ac_ext <<_ACEOF
6456 #line $LINENO "configure"
6457 /* confdefs.h.  */
6458 _ACEOF
6459 cat confdefs.h >>conftest.$ac_ext
6460 cat >>conftest.$ac_ext <<_ACEOF
6461 /* end confdefs.h.  */
6462
6463 /* Override any gcc2 internal prototype to avoid an error.  */
6464 #ifdef __cplusplus
6465 extern "C"
6466 #endif
6467 /* We use char because int might match the return type of a gcc2
6468    builtin and then its argument prototype would still apply.  */
6469 char opendir ();
6470 int
6471 main ()
6472 {
6473 opendir ();
6474   ;
6475   return 0;
6476 }
6477 _ACEOF
6478 rm -f conftest.$ac_objext conftest$ac_exeext
6479 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6480   (eval $ac_link) 2>&5
6481   ac_status=$?
6482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6483   (exit $ac_status); } &&
6484          { ac_try='test -s conftest$ac_exeext'
6485   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6486   (eval $ac_try) 2>&5
6487   ac_status=$?
6488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6489   (exit $ac_status); }; }; then
6490   ac_cv_search_opendir="none required"
6491 else
6492   echo "$as_me: failed program was:" >&5
6493 sed 's/^/| /' conftest.$ac_ext >&5
6494
6495 fi
6496 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6497 if test "$ac_cv_search_opendir" = no; then
6498   for ac_lib in x; do
6499     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6500     cat >conftest.$ac_ext <<_ACEOF
6501 #line $LINENO "configure"
6502 /* confdefs.h.  */
6503 _ACEOF
6504 cat confdefs.h >>conftest.$ac_ext
6505 cat >>conftest.$ac_ext <<_ACEOF
6506 /* end confdefs.h.  */
6507
6508 /* Override any gcc2 internal prototype to avoid an error.  */
6509 #ifdef __cplusplus
6510 extern "C"
6511 #endif
6512 /* We use char because int might match the return type of a gcc2
6513    builtin and then its argument prototype would still apply.  */
6514 char opendir ();
6515 int
6516 main ()
6517 {
6518 opendir ();
6519   ;
6520   return 0;
6521 }
6522 _ACEOF
6523 rm -f conftest.$ac_objext conftest$ac_exeext
6524 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6525   (eval $ac_link) 2>&5
6526   ac_status=$?
6527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6528   (exit $ac_status); } &&
6529          { ac_try='test -s conftest$ac_exeext'
6530   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6531   (eval $ac_try) 2>&5
6532   ac_status=$?
6533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6534   (exit $ac_status); }; }; then
6535   ac_cv_search_opendir="-l$ac_lib"
6536 break
6537 else
6538   echo "$as_me: failed program was:" >&5
6539 sed 's/^/| /' conftest.$ac_ext >&5
6540
6541 fi
6542 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6543   done
6544 fi
6545 LIBS=$ac_func_search_save_LIBS
6546 fi
6547 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6548 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6549 if test "$ac_cv_search_opendir" != no; then
6550   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6551
6552 fi
6553
6554 fi
6555
6556
6557
6558
6559
6560
6561
6562
6563
6564 for ac_func in strcasecmp select setenv putenv tcgetattr setlocale lstat lchown
6565 do
6566 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6567 echo "$as_me:$LINENO: checking for $ac_func" >&5
6568 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6569 if eval "test \"\${$as_ac_var+set}\" = set"; then
6570   echo $ECHO_N "(cached) $ECHO_C" >&6
6571 else
6572   cat >conftest.$ac_ext <<_ACEOF
6573 #line $LINENO "configure"
6574 /* confdefs.h.  */
6575 _ACEOF
6576 cat confdefs.h >>conftest.$ac_ext
6577 cat >>conftest.$ac_ext <<_ACEOF
6578 /* end confdefs.h.  */
6579 /* System header to define __stub macros and hopefully few prototypes,
6580     which can conflict with char $ac_func (); below.
6581     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6582     <limits.h> exists even on freestanding compilers.  */
6583 #ifdef __STDC__
6584 # include <limits.h>
6585 #else
6586 # include <assert.h>
6587 #endif
6588 /* Override any gcc2 internal prototype to avoid an error.  */
6589 #ifdef __cplusplus
6590 extern "C"
6591 {
6592 #endif
6593 /* We use char because int might match the return type of a gcc2
6594    builtin and then its argument prototype would still apply.  */
6595 char $ac_func ();
6596 /* The GNU C library defines this for functions which it implements
6597     to always fail with ENOSYS.  Some functions are actually named
6598     something starting with __ and the normal name is an alias.  */
6599 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6600 choke me
6601 #else
6602 char (*f) () = $ac_func;
6603 #endif
6604 #ifdef __cplusplus
6605 }
6606 #endif
6607
6608 int
6609 main ()
6610 {
6611 return f != $ac_func;
6612   ;
6613   return 0;
6614 }
6615 _ACEOF
6616 rm -f conftest.$ac_objext conftest$ac_exeext
6617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6618   (eval $ac_link) 2>&5
6619   ac_status=$?
6620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6621   (exit $ac_status); } &&
6622          { ac_try='test -s conftest$ac_exeext'
6623   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6624   (eval $ac_try) 2>&5
6625   ac_status=$?
6626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6627   (exit $ac_status); }; }; then
6628   eval "$as_ac_var=yes"
6629 else
6630   echo "$as_me: failed program was:" >&5
6631 sed 's/^/| /' conftest.$ac_ext >&5
6632
6633 eval "$as_ac_var=no"
6634 fi
6635 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6636 fi
6637 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6638 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6639 if test `eval echo '${'$as_ac_var'}'` = yes; then
6640   cat >>confdefs.h <<_ACEOF
6641 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6642 _ACEOF
6643
6644 fi
6645 done
6646
6647
6648
6649 for ac_func in nanosleep nl_langinfo
6650 do
6651 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6652 echo "$as_me:$LINENO: checking for $ac_func" >&5
6653 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6654 if eval "test \"\${$as_ac_var+set}\" = set"; then
6655   echo $ECHO_N "(cached) $ECHO_C" >&6
6656 else
6657   cat >conftest.$ac_ext <<_ACEOF
6658 #line $LINENO "configure"
6659 /* confdefs.h.  */
6660 _ACEOF
6661 cat confdefs.h >>conftest.$ac_ext
6662 cat >>conftest.$ac_ext <<_ACEOF
6663 /* end confdefs.h.  */
6664 /* System header to define __stub macros and hopefully few prototypes,
6665     which can conflict with char $ac_func (); below.
6666     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6667     <limits.h> exists even on freestanding compilers.  */
6668 #ifdef __STDC__
6669 # include <limits.h>
6670 #else
6671 # include <assert.h>
6672 #endif
6673 /* Override any gcc2 internal prototype to avoid an error.  */
6674 #ifdef __cplusplus
6675 extern "C"
6676 {
6677 #endif
6678 /* We use char because int might match the return type of a gcc2
6679    builtin and then its argument prototype would still apply.  */
6680 char $ac_func ();
6681 /* The GNU C library defines this for functions which it implements
6682     to always fail with ENOSYS.  Some functions are actually named
6683     something starting with __ and the normal name is an alias.  */
6684 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6685 choke me
6686 #else
6687 char (*f) () = $ac_func;
6688 #endif
6689 #ifdef __cplusplus
6690 }
6691 #endif
6692
6693 int
6694 main ()
6695 {
6696 return f != $ac_func;
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   eval "$as_ac_var=yes"
6714 else
6715   echo "$as_me: failed program was:" >&5
6716 sed 's/^/| /' conftest.$ac_ext >&5
6717
6718 eval "$as_ac_var=no"
6719 fi
6720 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6721 fi
6722 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6723 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6724 if test `eval echo '${'$as_ac_var'}'` = yes; then
6725   cat >>confdefs.h <<_ACEOF
6726 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6727 _ACEOF
6728
6729 fi
6730 done
6731
6732
6733 for ac_header in varargs.h
6734 do
6735 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6736 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6737   echo "$as_me:$LINENO: checking for $ac_header" >&5
6738 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6739 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6740   echo $ECHO_N "(cached) $ECHO_C" >&6
6741 fi
6742 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6743 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6744 else
6745   # Is the header compilable?
6746 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6747 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6748 cat >conftest.$ac_ext <<_ACEOF
6749 #line $LINENO "configure"
6750 /* confdefs.h.  */
6751 _ACEOF
6752 cat confdefs.h >>conftest.$ac_ext
6753 cat >>conftest.$ac_ext <<_ACEOF
6754 /* end confdefs.h.  */
6755 $ac_includes_default
6756 #include <$ac_header>
6757 _ACEOF
6758 rm -f conftest.$ac_objext
6759 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6760   (eval $ac_compile) 2>&5
6761   ac_status=$?
6762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6763   (exit $ac_status); } &&
6764          { ac_try='test -s conftest.$ac_objext'
6765   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6766   (eval $ac_try) 2>&5
6767   ac_status=$?
6768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6769   (exit $ac_status); }; }; then
6770   ac_header_compiler=yes
6771 else
6772   echo "$as_me: failed program was:" >&5
6773 sed 's/^/| /' conftest.$ac_ext >&5
6774
6775 ac_header_compiler=no
6776 fi
6777 rm -f conftest.$ac_objext conftest.$ac_ext
6778 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6779 echo "${ECHO_T}$ac_header_compiler" >&6
6780
6781 # Is the header present?
6782 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6783 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6784 cat >conftest.$ac_ext <<_ACEOF
6785 #line $LINENO "configure"
6786 /* confdefs.h.  */
6787 _ACEOF
6788 cat confdefs.h >>conftest.$ac_ext
6789 cat >>conftest.$ac_ext <<_ACEOF
6790 /* end confdefs.h.  */
6791 #include <$ac_header>
6792 _ACEOF
6793 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6794   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6795   ac_status=$?
6796   grep -v '^ *+' conftest.er1 >conftest.err
6797   rm -f conftest.er1
6798   cat conftest.err >&5
6799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6800   (exit $ac_status); } >/dev/null; then
6801   if test -s conftest.err; then
6802     ac_cpp_err=$ac_c_preproc_warn_flag
6803   else
6804     ac_cpp_err=
6805   fi
6806 else
6807   ac_cpp_err=yes
6808 fi
6809 if test -z "$ac_cpp_err"; then
6810   ac_header_preproc=yes
6811 else
6812   echo "$as_me: failed program was:" >&5
6813 sed 's/^/| /' conftest.$ac_ext >&5
6814
6815   ac_header_preproc=no
6816 fi
6817 rm -f conftest.err conftest.$ac_ext
6818 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6819 echo "${ECHO_T}$ac_header_preproc" >&6
6820
6821 # So?  What about this header?
6822 case $ac_header_compiler:$ac_header_preproc in
6823   yes:no )
6824     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6825 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6826     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6827 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6828     (
6829       cat <<\_ASBOX
6830 ## ------------------------------------ ##
6831 ## Report this to bug-autoconf@gnu.org. ##
6832 ## ------------------------------------ ##
6833 _ASBOX
6834     ) |
6835       sed "s/^/$as_me: WARNING:     /" >&2
6836     ;;
6837   no:yes )
6838     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6839 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6840     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6841 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6842     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6843 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6844     (
6845       cat <<\_ASBOX
6846 ## ------------------------------------ ##
6847 ## Report this to bug-autoconf@gnu.org. ##
6848 ## ------------------------------------ ##
6849 _ASBOX
6850     ) |
6851       sed "s/^/$as_me: WARNING:     /" >&2
6852     ;;
6853 esac
6854 echo "$as_me:$LINENO: checking for $ac_header" >&5
6855 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6856 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6857   echo $ECHO_N "(cached) $ECHO_C" >&6
6858 else
6859   eval "$as_ac_Header=$ac_header_preproc"
6860 fi
6861 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6862 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6863
6864 fi
6865 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6866   cat >>confdefs.h <<_ACEOF
6867 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6868 _ACEOF
6869
6870 fi
6871
6872 done
6873
6874
6875 # End of readline/conio stuff
6876 # -----------------------------------------------------------------------
6877
6878 # -------------------------------------------
6879 # check for cdrecord writer location
6880 # get scsibus,target,lun
6881 # -------------------------------------------
6882 CDSTL="3,0,0"
6883 if test ! x$CDRECORD = x ; then
6884    CDSTL=`${CDRECORD} -scanbus 2>/dev/null | grep CD-RW | ${AWK} '{print $1}'`
6885    if test x${CDSTL} = x ; then
6886       CDSTL=`${CDRECORD} -scanbus 2>/dev/null | grep CD+RW | ${AWK} '{print $1}'`
6887    fi
6888    if test x${CDSTL} = x ; then
6889       CDSTL="3,0,0"
6890    fi
6891 fi
6892
6893
6894
6895 # ---------------------------------------------------
6896 # Check for GMP support/directory
6897 # ---------------------------------------------------
6898 #GMP_SRC=
6899 #local_gmp="no"
6900 #AC_ARG_WITH(gmp,
6901 #  [  --with-gmp[=DIR]   Specify gmp library directory],
6902 #  [
6903 #     case "$with_gmp" in
6904 #     no) : ;;
6905 #     yes|*)
6906 #       if test "$with_gmp" != "yes"; then
6907 #         GMP_INC="-I$with_gmp"
6908 #         GMP_LIBS="-lgmp"
6909 #         GMP_LDFLAGS="-L$with_gmp"
6910 #       else
6911 #          with_gmp="/usr/include"
6912 #       fi
6913 #       AC_CHECK_HEADER($with_gmp/gmp.h,
6914 #          [ AC_MSG_RESULT(yes)
6915 #            AC_DEFINE(HAVE_GMP)
6916 #            GMP_LIBS="-lgmp"
6917 #            got_gmp="yes"
6918 #          ],
6919 #          [ AC_MSG_ERROR([*** gmp library missing])
6920 #          ]
6921 #       )
6922 #       ;;
6923 #     esac
6924 #  ],[
6925 #    # check for standard gmp library
6926 #    AC_CHECK_HEADER(/usr/include/gmp.h,
6927 #    [ AC_MSG_RESULT(yes)
6928 #      AC_DEFINE(HAVE_GMP)
6929 #      got_gmp="yes"
6930 #      GMP_INC=
6931 #      GMP_LIBS="-lgmp"
6932 #    ], [
6933 #      # Did not find standard library, so use our own
6934 #      AC_MSG_RESULT(yes)
6935 #      AC_DEFINE(HAVE_GMP)
6936 #      got_gmp="yes"
6937 #      local_gmp="yes"
6938 #      GMP_INC="-I${TOP_DIR}/depkgs/gmp"
6939 #      GMP_LIBS="-lgmp"
6940 #      GMP_LDFLAGS="-L${TOP_DIR}/depkgs/gmp"
6941 #      GMP_SRC="${TOP_DIR}/depkgs/gmp"
6942 #    ])
6943 #  ]
6944 #)
6945 #AC_SUBST(GMP_INC)
6946 #AC_SUBST(GMP_LIBS)
6947 #AC_SUBST(GMP_LDFLAGS)
6948 #AC_SUBST(GMP_SRC)
6949
6950 # End of GMP stuff
6951 # -----------------------------------------------------------------------
6952
6953
6954 # ---------------------------------------------------
6955 # Check for CWEB support/directory
6956 # ---------------------------------------------------
6957 #CWEB_SRC=
6958 #CWEB=/bin
6959 #local_cweb="no"
6960 #AC_ARG_WITH(cweb,
6961 #  [  --with-cweb[=DIR]   Specify cweb library directory],
6962 #  [
6963 #     case "$with_cweb" in
6964 #     no) : ;;
6965 #     yes|*)
6966 #       if test "$with_cweb" != "yes"; then
6967 #         CWEB_INC="-I$with_cweb"
6968 #         CWEB_LIBS="-lcweb"
6969 #         CWEB_LDFLAGS="-L$with_cweb"
6970 #       else
6971 #          with_cweb="/usr/include"
6972 #       fi
6973 #       AC_CHECK_HEADER($with_cweb/cweb.h,
6974 #          [ AC_MSG_RESULT(yes)
6975 #            AC_DEFINE(HAVE_CWEB)
6976 #            CWEB_LIBS="-lcweb"
6977 #            got_cweb="yes"
6978 #          ],
6979 #          [ AC_MSG_ERROR([*** cweb library missing])
6980 #          ]
6981 #       )
6982 #       ;;
6983 #     esac
6984 #  ],[
6985 #    # check for standard cweb library
6986 #    AC_CHECK_HEADER(/usr/include/cweb.h,
6987 #    [ AC_MSG_RESULT(yes)
6988 #      AC_DEFINE(HAVE_CWEB)
6989 #      got_cweb="yes"
6990 #      CWEB_INC=
6991 #      CWEB_LIBS="-lcweb"
6992 #    ], [
6993 #      # Did not find starndard library, so use our own
6994 #      AC_MSG_RESULT(yes)
6995 #      AC_DEFINE(HAVE_CWEB)
6996 #      got_cweb="yes"
6997 #      local_cweb="yes"
6998 #      CWEB=${TOP_DIR}/depkgs/cweb
6999 #      CWEB_INC="-I${TOP_DIR}/depkgs/cweb"
7000 #      CWEB_LIBS="-lcweb"
7001 #      CWEB_LDFLAGS="-L${TOP_DIR}/depkgs/cweb"
7002 #      CWEB_SRC="${TOP_DIR}/depkgs/cweb"
7003 #    ])
7004 #  ]
7005 #)
7006 #AC_SUBST(CWEB)
7007 #AC_SUBST(CWEB_INC)
7008 #AC_SUBST(CWEB_LIBS)
7009 #AC_SUBST(CWEB_LDFLAGS)
7010 #AC_SUBST(CWEB_SRC)
7011
7012 # End of CWEB stuff
7013 # -----------------------------------------------------------------------
7014
7015
7016
7017 # -----------------------------------------------------------
7018 # Check whether user wants TCP wrappers support (default off)
7019 # -----------------------------------------------------------
7020 TCPW_MSG="no"
7021
7022 # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
7023 if test "${with_tcp_wrappers+set}" = set; then
7024   withval="$with_tcp_wrappers"
7025
7026     if test "x$withval" != "xno" ; then
7027        saved_LIBS="$LIBS"
7028        LIBS="$saved_LIBS -lwrap"
7029        echo "$as_me:$LINENO: checking for libwrap" >&5
7030 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6
7031        cat >conftest.$ac_ext <<_ACEOF
7032 #line $LINENO "configure"
7033 /* confdefs.h.  */
7034 _ACEOF
7035 cat confdefs.h >>conftest.$ac_ext
7036 cat >>conftest.$ac_ext <<_ACEOF
7037 /* end confdefs.h.  */
7038  #include <tcpd.h>
7039              int deny_severity = 0;
7040              int allow_severity = 0;
7041              struct request_info *req;
7042 int
7043 main ()
7044 {
7045  hosts_access(req);
7046   ;
7047   return 0;
7048 }
7049 _ACEOF
7050 rm -f conftest.$ac_objext conftest$ac_exeext
7051 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7052   (eval $ac_link) 2>&5
7053   ac_status=$?
7054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7055   (exit $ac_status); } &&
7056          { ac_try='test -s conftest$ac_exeext'
7057   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7058   (eval $ac_try) 2>&5
7059   ac_status=$?
7060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7061   (exit $ac_status); }; }; then
7062
7063             echo "$as_me:$LINENO: result: yes" >&5
7064 echo "${ECHO_T}yes" >&6
7065             cat >>confdefs.h <<\_ACEOF
7066 #define HAVE_LIBWRAP 1
7067 _ACEOF
7068
7069             TCPW_MSG="yes"
7070
7071 else
7072   echo "$as_me: failed program was:" >&5
7073 sed 's/^/| /' conftest.$ac_ext >&5
7074
7075
7076             LIBS="$saved_LIBS -lwrap -lnsl"
7077             cat >conftest.$ac_ext <<_ACEOF
7078 #line $LINENO "configure"
7079 /* confdefs.h.  */
7080 _ACEOF
7081 cat confdefs.h >>conftest.$ac_ext
7082 cat >>conftest.$ac_ext <<_ACEOF
7083 /* end confdefs.h.  */
7084  #include <tcpd.h>
7085                  int deny_severity = 0;
7086                  int allow_severity = 0;
7087                  struct request_info *req;
7088 int
7089 main ()
7090 {
7091  hosts_access(req);
7092   ;
7093   return 0;
7094 }
7095 _ACEOF
7096 rm -f conftest.$ac_objext conftest$ac_exeext
7097 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7098   (eval $ac_link) 2>&5
7099   ac_status=$?
7100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7101   (exit $ac_status); } &&
7102          { ac_try='test -s conftest$ac_exeext'
7103   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7104   (eval $ac_try) 2>&5
7105   ac_status=$?
7106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7107   (exit $ac_status); }; }; then
7108
7109                  echo "$as_me:$LINENO: result: yes" >&5
7110 echo "${ECHO_T}yes" >&6
7111                  cat >>confdefs.h <<\_ACEOF
7112 #define HAVE_LIBWRAP 1
7113 _ACEOF
7114
7115                  TCPW_MSG="yes"
7116
7117 else
7118   echo "$as_me: failed program was:" >&5
7119 sed 's/^/| /' conftest.$ac_ext >&5
7120
7121 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
7122 echo "$as_me: error: *** libwrap missing" >&2;}
7123    { (exit 1); exit 1; }; }
7124
7125 fi
7126 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7127
7128 fi
7129 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7130     fi
7131
7132
7133 fi;
7134
7135 # ------------------------------------------
7136 # Where to place working dir
7137 # ------------------------------------------
7138 working_dir=`eval echo ${prefix}/var/bacula/working`
7139
7140 # Check whether --with-working-dir or --without-working-dir was given.
7141 if test "${with_working_dir+set}" = set; then
7142   withval="$with_working_dir"
7143
7144        if test "x$withval" != "xno" ; then
7145               working_dir=$withval
7146        fi
7147
7148
7149 fi;
7150
7151
7152
7153
7154 # ------------------------------------------
7155 # Where to place scriptdir (script files)
7156 # ------------------------------------------
7157 scriptdir=`eval echo ${sysconfdir}`
7158
7159 # Check whether --with-scriptdir or --without-scriptdir was given.
7160 if test "${with_scriptdir+set}" = set; then
7161   withval="$with_scriptdir"
7162
7163        if test "x$withval" != "xno" ; then
7164               scriptdir=$withval
7165        fi
7166
7167
7168 fi;
7169
7170
7171
7172
7173 # ------------------------------------------
7174 # Where to send dump email
7175 # ------------------------------------------
7176 dump_email=root@localhost
7177
7178 # Check whether --with-dump-email or --without-dump-email was given.
7179 if test "${with_dump_email+set}" = set; then
7180   withval="$with_dump_email"
7181
7182        if test "x$withval" != "xno" ; then
7183               dump_email=$withval
7184        fi
7185
7186
7187 fi;
7188
7189
7190
7191 # ------------------------------------------
7192 # Where to send job email
7193 # ------------------------------------------
7194 job_email=root@localhost
7195
7196 # Check whether --with-job-email or --without-job-email was given.
7197 if test "${with_job_email+set}" = set; then
7198   withval="$with_job_email"
7199
7200        if test "x$withval" != "xno" ; then
7201               job_email=$withval
7202        fi
7203
7204
7205 fi;
7206
7207
7208
7209 # ------------------------------------------
7210 # Where to find smtp host
7211 # ------------------------------------------
7212 smtp_host=localhost
7213
7214 # Check whether --with-smtp_host or --without-smtp_host was given.
7215 if test "${with_smtp_host+set}" = set; then
7216   withval="$with_smtp_host"
7217
7218        if test "x$withval" != "xno" ; then
7219               smtp_host=$withval
7220        fi
7221
7222
7223 fi;
7224
7225
7226
7227
7228 # ------------------------------------
7229 # Where to place pid files
7230 # ------------------------------------
7231 piddir=/var/run
7232
7233 # Check whether --with-pid-dir or --without-pid-dir was given.
7234 if test "${with_pid_dir+set}" = set; then
7235   withval="$with_pid_dir"
7236
7237         if test "x$withval" != "xno" ; then
7238             piddir=$withval
7239         fi
7240
7241
7242 fi;
7243
7244 cat >>confdefs.h <<_ACEOF
7245 #define _PATH_BACULA_PIDDIR "$piddir"
7246 _ACEOF
7247
7248
7249
7250
7251 # ------------------------------------
7252 # Where to place subsys "lock file"
7253 # ------------------------------------
7254 subsysdir=/var/run/subsys
7255
7256 # Check whether --with-subsys-dir or --without-subsys-dir was given.
7257 if test "${with_subsys_dir+set}" = set; then
7258   withval="$with_subsys_dir"
7259
7260         if test "x$withval" != "xno" ; then
7261             subsysdir=$withval
7262         fi
7263
7264
7265 fi;
7266
7267
7268
7269
7270
7271 # ------------------------------------
7272 # Where to start assigning ports
7273 # ------------------------------------
7274 baseport=9101
7275
7276 # Check whether --with-baseport or --without-baseport was given.
7277 if test "${with_baseport+set}" = set; then
7278   withval="$with_baseport"
7279
7280         if test "x$withval" != "xno" ; then
7281              baseport=$withval
7282         fi
7283
7284
7285 fi;
7286
7287
7288 dir_port=`expr $baseport`
7289 fd_port=`expr $baseport + 1`
7290 sd_port=`expr $fd_port + 1`
7291
7292
7293
7294
7295
7296
7297 # ------------------------------------------
7298 # Generate passwords
7299 # ------------------------------------------
7300 dir_password=
7301
7302 # Check whether --with-dir-password or --without-dir-password was given.
7303 if test "${with_dir_password+set}" = set; then
7304   withval="$with_dir_password"
7305
7306        if test "x$withval" != "xno" ; then
7307            dir_password=$withval
7308        fi
7309
7310
7311 fi;
7312
7313 if test "x$dir_password" = "x" ; then
7314    if test "x$OPENSSL" = "xnone" ; then
7315 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" abcdefghijklmnopqrst | awk '{getline} {print} {exit}'`
7316       key=`autoconf/randpass 33`
7317    else
7318       key=`openssl rand -base64 33`
7319    fi
7320    dir_password=$key
7321 fi
7322
7323 fd_password=
7324
7325 # Check whether --with-fd-password or --without-fd-password was given.
7326 if test "${with_fd_password+set}" = set; then
7327   withval="$with_fd_password"
7328
7329        if test "x$withval" != "xno" ; then
7330            fd_password=$withval
7331        fi
7332
7333
7334 fi;
7335
7336 if test "x$fd_password" = "x" ; then
7337    if test "x$OPENSSL" = "xnone" ; then
7338 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" tsrqponmlkjihgfedcba | awk '{getline} {print} {exit}'`
7339       key=`autoconf/randpass 37`
7340    else
7341       key=`openssl rand -base64 33`
7342    fi
7343    fd_password=$key
7344 fi
7345
7346 sd_password=
7347
7348 # Check whether --with-sd-password or --without-sd-password was given.
7349 if test "${with_sd_password+set}" = set; then
7350   withval="$with_sd_password"
7351
7352        if test "x$withval" != "xno" ; then
7353            sd_password=$withval
7354        fi
7355
7356
7357 fi;
7358
7359 if test "x$sd_password" = "x" ; then
7360    if test "x$OPENSSL" = "xnone" ; then
7361 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" 123456789uvwxyzabcdef | awk '{getline} {print} {exit}'`
7362       key=`autoconf/randpass 41`
7363    else
7364       key=`openssl rand -base64 33`
7365    fi
7366    sd_password=$key
7367 fi
7368
7369 mon_dir_password=
7370
7371 # Check whether --with-mon-dir-password or --without-mon-dir-password was given.
7372 if test "${with_mon_dir_password+set}" = set; then
7373   withval="$with_mon_dir_password"
7374
7375        if test "x$withval" != "xno" ; then
7376            mon_dir_password=$withval
7377        fi
7378
7379
7380 fi;
7381
7382 if test "x$mon_dir_password" = "x" ; then
7383    if test "x$OPENSSL" = "xnone" ; then
7384 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" abcdefghijklmnopqrst | awk '{getline} {print} {exit}'`
7385       key=`autoconf/randpass 33`
7386    else
7387       key=`openssl rand -base64 33`
7388    fi
7389    mon_dir_password=$key
7390 fi
7391
7392 mon_fd_password=
7393
7394 # Check whether --with-mon-fd-password or --without-mon-fd-password was given.
7395 if test "${with_mon_fd_password+set}" = set; then
7396   withval="$with_mon_fd_password"
7397
7398        if test "x$withval" != "xno" ; then
7399            mon_fd_password=$withval
7400        fi
7401
7402
7403 fi;
7404
7405 if test "x$mon_fd_password" = "x" ; then
7406    if test "x$OPENSSL" = "xnone" ; then
7407 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" tsrqponmlkjihgfedcba | awk '{getline} {print} {exit}'`
7408       key=`autoconf/randpass 37`
7409    else
7410       key=`openssl rand -base64 33`
7411    fi
7412    mon_fd_password=$key
7413 fi
7414
7415 mon_sd_password=
7416
7417 # Check whether --with-mon-sd-password or --without-mon-sd-password was given.
7418 if test "${with_mon_sd_password+set}" = set; then
7419   withval="$with_mon_sd_password"
7420
7421        if test "x$withval" != "xno" ; then
7422            mon_sd_password=$withval
7423        fi
7424
7425
7426 fi;
7427
7428 if test "x$mon_sd_password" = "x" ; then
7429    if test "x$OPENSSL" = "xnone" ; then
7430 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" 123456789uvwxyzabcdef | awk '{getline} {print} {exit}'`
7431       key=`autoconf/randpass 41`
7432    else
7433       key=`openssl rand -base64 33`
7434    fi
7435    mon_sd_password=$key
7436 fi
7437
7438
7439
7440
7441
7442
7443
7444
7445 #
7446 # Handle users and groups for each daemon
7447 #
7448 dir_user=
7449
7450 # Check whether --with-dir_user or --without-dir_user was given.
7451 if test "${with_dir_user+set}" = set; then
7452   withval="$with_dir_user"
7453
7454         if test "x$withval" != "x" ; then
7455              dir_user=$withval
7456         fi
7457
7458
7459 fi;
7460
7461 dir_group=
7462
7463 # Check whether --with-dir_group or --without-dir_group was given.
7464 if test "${with_dir_group+set}" = set; then
7465   withval="$with_dir_group"
7466
7467         if test "x$withval" != "x" ; then
7468              dir_group=$withval
7469         fi
7470
7471
7472 fi;
7473
7474 sd_user=
7475
7476 # Check whether --with-sd_user or --without-sd_user was given.
7477 if test "${with_sd_user+set}" = set; then
7478   withval="$with_sd_user"
7479
7480         if test "x$withval" != "x" ; then
7481              sd_user=$withval
7482         fi
7483
7484
7485 fi;
7486
7487 sd_group=
7488
7489 # Check whether --with-sd_group or --without-sd_group was given.
7490 if test "${with_sd_group+set}" = set; then
7491   withval="$with_sd_group"
7492
7493         if test "x$withval" != "x" ; then
7494              sd_group=$withval
7495         fi
7496
7497
7498 fi;
7499
7500 fd_user=
7501
7502 # Check whether --with-fd_user or --without-fd_user was given.
7503 if test "${with_fd_user+set}" = set; then
7504   withval="$with_fd_user"
7505
7506         if test "x$withval" != "x" ; then
7507              fd_user=$withval
7508         fi
7509
7510
7511 fi;
7512
7513 fd_group=
7514
7515 # Check whether --with-fd_group or --without-fd_group was given.
7516 if test "${with_fd_group+set}" = set; then
7517   withval="$with_fd_group"
7518
7519         if test "x$withval" != "x" ; then
7520              fd_group=$withval
7521         fi
7522
7523
7524 fi;
7525
7526
7527
7528
7529
7530
7531
7532
7533
7534
7535
7536 #
7537 # allow setting default executable permissions
7538 #
7539 SBINPERM=0754
7540
7541 # Check whether --with-sbin-perm or --without-sbin-perm was given.
7542 if test "${with_sbin_perm+set}" = set; then
7543   withval="$with_sbin_perm"
7544
7545         if test "x$withval" != "x" ; then
7546             SBINPERM=$withval
7547         fi
7548
7549
7550 fi;
7551
7552
7553
7554 # ------------------------------------------------
7555 # Bacula check for various SQL database engines
7556 # ------------------------------------------------
7557
7558 db_found=no
7559 echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
7560 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6
7561
7562 # Check whether --with-postgresql or --without-postgresql was given.
7563 if test "${with_postgresql+set}" = set; then
7564   withval="$with_postgresql"
7565
7566   if test "$withval" != "no"; then
7567       if test "$db_found" = "yes"; then
7568           echo "$as_me:$LINENO: result: error" >&5
7569 echo "${ECHO_T}error" >&6
7570           { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
7571 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
7572    { (exit 1); exit 1; }; };
7573       fi
7574       if test "$withval" = "yes"; then
7575           if test -f /usr/local/include/libpq-fe.h; then
7576               POSTGRESQL_INCDIR=/usr/local/include
7577               POSTGRESQL_LIBDIR=/usr/local/lib
7578               POSTGRESQL_BINDIR=/usr/local/bin
7579           elif test -f /usr/include/libpq-fe.h; then
7580               POSTGRESQL_INCDIR=/usr/include
7581               POSTGRESQL_LIBDIR=/usr/lib
7582               POSTGRESQL_BINDIR=/usr/bin
7583           elif test -f /usr/include/pgsql/libpq-fe.h; then
7584               POSTGRESQL_INCDIR=/usr/include/pgsql
7585               POSTGRESQL_LIBDIR=/usr/lib/pgsql
7586               POSTGRESQL_BINDIR=/usr/bin
7587           elif test -f /usr/include/postgresql/libpq-fe.h; then
7588               POSTGRESQL_INCDIR=/usr/include/postgresql
7589               POSTGRESQL_LIBDIR=/usr/lib/postgresql
7590               POSTGRESQL_BINDIR=/usr/bin
7591           else
7592               echo "$as_me:$LINENO: result: no" >&5
7593 echo "${ECHO_T}no" >&6
7594               { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
7595 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
7596    { (exit 1); exit 1; }; }
7597           fi
7598       elif test -f $withval/include/libpq-fe.h; then
7599           POSTGRESQL_INCDIR=$withval/include
7600           POSTGRESQL_LIBDIR=$withval/lib
7601           POSTGRESQL_BINDIR=$withval/bin
7602       elif test -f $withval/include/postgresql/libpq-fe.h; then
7603           POSTGRESQL_INCDIR=$withval/include/postgresql
7604           POSTGRESQL_LIBDIR=$withval/lib
7605           POSTGRESQL_BINDIR=$withval/bin
7606       else
7607           echo "$as_me:$LINENO: result: no" >&5
7608 echo "${ECHO_T}no" >&6
7609           { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
7610 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
7611    { (exit 1); exit 1; }; }
7612       fi
7613       POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
7614       echo "$as_me:$LINENO: checking for crypt" >&5
7615 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
7616 if test "${ac_cv_func_crypt+set}" = set; then
7617   echo $ECHO_N "(cached) $ECHO_C" >&6
7618 else
7619   cat >conftest.$ac_ext <<_ACEOF
7620 #line $LINENO "configure"
7621 /* confdefs.h.  */
7622 _ACEOF
7623 cat confdefs.h >>conftest.$ac_ext
7624 cat >>conftest.$ac_ext <<_ACEOF
7625 /* end confdefs.h.  */
7626 /* System header to define __stub macros and hopefully few prototypes,
7627     which can conflict with char crypt (); below.
7628     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7629     <limits.h> exists even on freestanding compilers.  */
7630 #ifdef __STDC__
7631 # include <limits.h>
7632 #else
7633 # include <assert.h>
7634 #endif
7635 /* Override any gcc2 internal prototype to avoid an error.  */
7636 #ifdef __cplusplus
7637 extern "C"
7638 {
7639 #endif
7640 /* We use char because int might match the return type of a gcc2
7641    builtin and then its argument prototype would still apply.  */
7642 char crypt ();
7643 /* The GNU C library defines this for functions which it implements
7644     to always fail with ENOSYS.  Some functions are actually named
7645     something starting with __ and the normal name is an alias.  */
7646 #if defined (__stub_crypt) || defined (__stub___crypt)
7647 choke me
7648 #else
7649 char (*f) () = crypt;
7650 #endif
7651 #ifdef __cplusplus
7652 }
7653 #endif
7654
7655 int
7656 main ()
7657 {
7658 return f != crypt;
7659   ;
7660   return 0;
7661 }
7662 _ACEOF
7663 rm -f conftest.$ac_objext conftest$ac_exeext
7664 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7665   (eval $ac_link) 2>&5
7666   ac_status=$?
7667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7668   (exit $ac_status); } &&
7669          { ac_try='test -s conftest$ac_exeext'
7670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7671   (eval $ac_try) 2>&5
7672   ac_status=$?
7673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7674   (exit $ac_status); }; }; then
7675   ac_cv_func_crypt=yes
7676 else
7677   echo "$as_me: failed program was:" >&5
7678 sed 's/^/| /' conftest.$ac_ext >&5
7679
7680 ac_cv_func_crypt=no
7681 fi
7682 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7683 fi
7684 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
7685 echo "${ECHO_T}$ac_cv_func_crypt" >&6
7686 if test $ac_cv_func_crypt = yes; then
7687   :
7688 else
7689   echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
7690 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
7691 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
7692   echo $ECHO_N "(cached) $ECHO_C" >&6
7693 else
7694   ac_check_lib_save_LIBS=$LIBS
7695 LIBS="-lcrypt  $LIBS"
7696 cat >conftest.$ac_ext <<_ACEOF
7697 #line $LINENO "configure"
7698 /* confdefs.h.  */
7699 _ACEOF
7700 cat confdefs.h >>conftest.$ac_ext
7701 cat >>conftest.$ac_ext <<_ACEOF
7702 /* end confdefs.h.  */
7703
7704 /* Override any gcc2 internal prototype to avoid an error.  */
7705 #ifdef __cplusplus
7706 extern "C"
7707 #endif
7708 /* We use char because int might match the return type of a gcc2
7709    builtin and then its argument prototype would still apply.  */
7710 char crypt ();
7711 int
7712 main ()
7713 {
7714 crypt ();
7715   ;
7716   return 0;
7717 }
7718 _ACEOF
7719 rm -f conftest.$ac_objext conftest$ac_exeext
7720 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7721   (eval $ac_link) 2>&5
7722   ac_status=$?
7723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7724   (exit $ac_status); } &&
7725          { ac_try='test -s conftest$ac_exeext'
7726   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7727   (eval $ac_try) 2>&5
7728   ac_status=$?
7729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7730   (exit $ac_status); }; }; then
7731   ac_cv_lib_crypt_crypt=yes
7732 else
7733   echo "$as_me: failed program was:" >&5
7734 sed 's/^/| /' conftest.$ac_ext >&5
7735
7736 ac_cv_lib_crypt_crypt=no
7737 fi
7738 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7739 LIBS=$ac_check_lib_save_LIBS
7740 fi
7741 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
7742 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
7743 if test $ac_cv_lib_crypt_crypt = yes; then
7744   POSTGRESQL_LFLAGS="-lcrypt $POSTGRESQL_LFLAGS"
7745 fi
7746
7747 fi
7748
7749       SQL_INCLUDE=-I$POSTGRESQL_INCDIR
7750       SQL_LFLAGS=$POSTGRESQL_LFLAGS
7751       SQL_BINDIR=$POSTGRESQL_BINDIR
7752       cat >>confdefs.h <<\_ACEOF
7753 #define HAVE_POSTGRESQL 1
7754 _ACEOF
7755
7756       echo "$as_me:$LINENO: result: yes" >&5
7757 echo "${ECHO_T}yes" >&6
7758       db_found=yes
7759       support_postgresql=yes
7760       db_name=PostgreSQL
7761       DB_NAME=postgresql
7762   else
7763       echo "$as_me:$LINENO: result: no" >&5
7764 echo "${ECHO_T}no" >&6
7765   fi
7766
7767 else
7768
7769   echo "$as_me:$LINENO: result: no" >&5
7770 echo "${ECHO_T}no" >&6
7771
7772 fi;
7773
7774
7775
7776
7777
7778
7779
7780 db_found=no
7781 echo "$as_me:$LINENO: checking for MySQL support" >&5
7782 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6
7783
7784 # Check whether --with-mysql or --without-mysql was given.
7785 if test "${with_mysql+set}" = set; then
7786   withval="$with_mysql"
7787
7788   if test "$withval" != "no"; then
7789         if test "$withval" = "yes"; then
7790                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
7791                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
7792                         MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
7793                         MYSQL_BINDIR=/usr/local/mysql/bin
7794                 elif test -f /usr/include/mysql/mysql.h; then
7795                         MYSQL_INCDIR=/usr/include/mysql
7796                         MYSQL_LIBDIR=/usr/lib/mysql
7797                         MYSQL_BINDIR=/usr/bin
7798                 elif test -f /usr/include/mysql.h; then
7799                         MYSQL_INCDIR=/usr/include
7800                         MYSQL_LIBDIR=/usr/lib
7801                         MYSQL_BINDIR=/usr/bin
7802                 elif test -f /usr/local/include/mysql/mysql.h; then
7803                         MYSQL_INCDIR=/usr/local/include/mysql
7804                         MYSQL_LIBDIR=/usr/local/lib/mysql
7805                         MYSQL_BINDIR=/usr/local/bin
7806                 elif test -f /usr/local/include/mysql.h; then
7807                         MYSQL_INCDIR=/usr/local/include
7808                         MYSQL_LIBDIR=/usr/local/lib
7809                         MYSQL_BINDIR=/usr/local/bin
7810                 else
7811                    echo "$as_me:$LINENO: result: no" >&5
7812 echo "${ECHO_T}no" >&6
7813                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
7814 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
7815    { (exit 1); exit 1; }; }
7816                 fi
7817         else
7818                 if test -f $withval/include/mysql/mysql.h; then
7819                         MYSQL_INCDIR=$withval/include/mysql
7820                         MYSQL_LIBDIR=$withval/lib/mysql
7821                         MYSQL_BINDIR=$withval/bin
7822                 elif test -f $withval/include/mysql.h; then
7823                         MYSQL_INCDIR=$withval/include
7824                         MYSQL_LIBDIR=$withval/lib
7825                         MYSQL_BINDIR=$withval/bin
7826                 else
7827                    echo "$as_me:$LINENO: result: no" >&5
7828 echo "${ECHO_T}no" >&6
7829                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
7830 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
7831    { (exit 1); exit 1; }; }
7832                 fi
7833         fi
7834     SQL_INCLUDE=-I$MYSQL_INCDIR
7835     if test -f $MYSQL_LIBDIR/libmysqlclient_r.a; then
7836        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
7837        cat >>confdefs.h <<\_ACEOF
7838 #define HAVE_THREAD_SAFE_MYSQL 1
7839 _ACEOF
7840
7841     else
7842        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient -lz"
7843     fi
7844     SQL_BINDIR=$MYSQL_BINDIR
7845
7846     cat >>confdefs.h <<\_ACEOF
7847 #define HAVE_MYSQL 1
7848 _ACEOF
7849
7850     echo "$as_me:$LINENO: result: yes" >&5
7851 echo "${ECHO_T}yes" >&6
7852     db_found=yes
7853     support_mysql=yes
7854     db_name=MySQL
7855     DB_NAME=mysql
7856
7857   else
7858         echo "$as_me:$LINENO: result: no" >&5
7859 echo "${ECHO_T}no" >&6
7860   fi
7861
7862
7863 fi;
7864
7865
7866 # Check whether --with-embedded-mysql or --without-embedded-mysql was given.
7867 if test "${with_embedded_mysql+set}" = set; then
7868   withval="$with_embedded_mysql"
7869
7870   if test "$withval" != "no"; then
7871         if test "$withval" = "yes"; then
7872                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
7873                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
7874                         MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
7875                         MYSQL_BINDIR=/usr/local/mysql/bin
7876                 elif test -f /usr/include/mysql/mysql.h; then
7877                         MYSQL_INCDIR=/usr/include/mysql
7878                         MYSQL_LIBDIR=/usr/lib/mysql
7879                         MYSQL_BINDIR=/usr/bin
7880                 elif test -f /usr/include/mysql.h; then
7881                         MYSQL_INCDIR=/usr/include
7882                         MYSQL_LIBDIR=/usr/lib
7883                         MYSQL_BINDIR=/usr/bin
7884                 elif test -f /usr/local/include/mysql/mysql.h; then
7885                         MYSQL_INCDIR=/usr/local/include/mysql
7886                         MYSQL_LIBDIR=/usr/local/lib/mysql
7887                         MYSQL_BINDIR=/usr/local/bin
7888                 elif test -f /usr/local/include/mysql.h; then
7889                         MYSQL_INCDIR=/usr/local/include
7890                         MYSQL_LIBDIR=/usr/local/lib
7891                         MYSQL_BINDIR=/usr/local/bin
7892                 else
7893                    echo "$as_me:$LINENO: result: no" >&5
7894 echo "${ECHO_T}no" >&6
7895                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
7896 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
7897    { (exit 1); exit 1; }; }
7898                 fi
7899         else
7900                 if test -f $withval/include/mysql/mysql.h; then
7901                         MYSQL_INCDIR=$withval/include/mysql
7902                         MYSQL_LIBDIR=$withval/lib/mysql
7903                         MYSQL_BINDIR=$withval/bin
7904                 elif test -f $withval/include/mysql.h; then
7905                         MYSQL_INCDIR=$withval/include
7906                         MYSQL_LIBDIR=$withval/lib
7907                         MYSQL_BINDIR=$withval/bin
7908                 else
7909                    echo "$as_me:$LINENO: result: no" >&5
7910 echo "${ECHO_T}no" >&6
7911                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
7912 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
7913    { (exit 1); exit 1; }; }
7914                 fi
7915         fi
7916     SQL_INCLUDE=-I$MYSQL_INCDIR
7917     SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
7918     SQL_BINDIR=$MYSQL_BINDIR
7919
7920     cat >>confdefs.h <<\_ACEOF
7921 #define HAVE_MYSQL 1
7922 _ACEOF
7923
7924     cat >>confdefs.h <<\_ACEOF
7925 #define HAVE_EMBEDDED_MYSQL 1
7926 _ACEOF
7927
7928     echo "$as_me:$LINENO: result: yes" >&5
7929 echo "${ECHO_T}yes" >&6
7930     db_found=yes
7931     support_mysql=yes
7932     db_name=MySQL
7933     DB_NAME=mysql
7934
7935   else
7936         echo "$as_me:$LINENO: result: no" >&5
7937 echo "${ECHO_T}no" >&6
7938   fi
7939
7940
7941 fi;
7942
7943
7944
7945
7946
7947
7948
7949
7950
7951 db_found=no
7952 echo "$as_me:$LINENO: checking for SQLite support" >&5
7953 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6
7954
7955 # Check whether --with-sqlite or --without-sqlite was given.
7956 if test "${with_sqlite+set}" = set; then
7957   withval="$with_sqlite"
7958
7959   if test "$withval" != "no"; then
7960      if test "$withval" = "yes"; then
7961         if test -f /usr/local/include/sqlite.h; then
7962            SQLITE_INCDIR=/usr/local/include
7963            SQLITE_LIBDIR=/usr/local/lib
7964            SQLITE_BINDIR=/usr/local/bin
7965         elif test -f /usr/include/sqlite.h; then
7966            SQLITE_INCDIR=/usr/include
7967            SQLITE_LIBDIR=/usr/lib
7968            SQLITE_BINDIR=/usr/bin
7969         elif test -f $prefix/include/sqlite.h; then
7970            SQLITE_INCDIR=$prefix/include
7971            SQLITE_LIBDIR=$prefix/lib
7972            SQLITE_BINDIR=$prefix/bin
7973         else
7974            echo "$as_me:$LINENO: result: no" >&5
7975 echo "${ECHO_T}no" >&6
7976            { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
7977 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
7978    { (exit 1); exit 1; }; }
7979         fi
7980      else
7981         if test -f $withval/sqlite.h; then
7982            SQLITE_INCDIR=$withval
7983            SQLITE_LIBDIR=$withval
7984            SQLITE_BINDIR=$withval
7985         elif test -f $withval/include/sqlite.h; then
7986            SQLITE_INCDIR=$withval/include
7987            SQLITE_LIBDIR=$withval/lib
7988            SQLITE_BINDIR=$withval/bin
7989         else
7990            echo "$as_me:$LINENO: result: no" >&5
7991 echo "${ECHO_T}no" >&6
7992            { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
7993 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
7994    { (exit 1); exit 1; }; }
7995         fi
7996      fi
7997      SQL_INCLUDE=-I$SQLITE_INCDIR
7998      SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
7999      SQL_BINDIR=$SQLITE_BINDIR
8000
8001      cat >>confdefs.h <<\_ACEOF
8002 #define HAVE_SQLITE 1
8003 _ACEOF
8004
8005      echo "$as_me:$LINENO: result: yes" >&5
8006 echo "${ECHO_T}yes" >&6
8007      db_found=yes
8008      support_sqlite=yes
8009      db_name=SQLite
8010      DB_NAME=sqlite
8011
8012   else
8013      echo "$as_me:$LINENO: result: no" >&5
8014 echo "${ECHO_T}no" >&6
8015   fi
8016
8017 else
8018
8019   echo "$as_me:$LINENO: result: no" >&5
8020 echo "${ECHO_T}no" >&6
8021
8022 fi;
8023
8024
8025
8026
8027
8028
8029
8030
8031
8032 cat >>confdefs.h <<\_ACEOF
8033 #define PROTOTYPES 1
8034 _ACEOF
8035
8036
8037 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
8038     if test -z "$CCOPTS"; then
8039         CCOPTS='-g -O2 -Wall'
8040     fi
8041     CFLAGS="$CCOPTS"
8042 fi
8043
8044
8045
8046
8047 largefile_support="no"
8048
8049    # Check whether --enable-largefile or --disable-largefile was given.
8050 if test "${enable_largefile+set}" = set; then
8051   enableval="$enable_largefile"
8052
8053 fi;
8054    if test "$enable_largefile" != no; then
8055      if test -n "$ac_tool_prefix"; then
8056   # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
8057 set dummy ${ac_tool_prefix}getconf; ac_word=$2
8058 echo "$as_me:$LINENO: checking for $ac_word" >&5
8059 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8060 if test "${ac_cv_prog_GETCONF+set}" = set; then
8061   echo $ECHO_N "(cached) $ECHO_C" >&6
8062 else
8063   if test -n "$GETCONF"; then
8064   ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
8065 else
8066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8067 for as_dir in $PATH
8068 do
8069   IFS=$as_save_IFS
8070   test -z "$as_dir" && as_dir=.
8071   for ac_exec_ext in '' $ac_executable_extensions; do
8072   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8073     ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
8074     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8075     break 2
8076   fi
8077 done
8078 done
8079
8080 fi
8081 fi
8082 GETCONF=$ac_cv_prog_GETCONF
8083 if test -n "$GETCONF"; then
8084   echo "$as_me:$LINENO: result: $GETCONF" >&5
8085 echo "${ECHO_T}$GETCONF" >&6
8086 else
8087   echo "$as_me:$LINENO: result: no" >&5
8088 echo "${ECHO_T}no" >&6
8089 fi
8090
8091 fi
8092 if test -z "$ac_cv_prog_GETCONF"; then
8093   ac_ct_GETCONF=$GETCONF
8094   # Extract the first word of "getconf", so it can be a program name with args.
8095 set dummy getconf; ac_word=$2
8096 echo "$as_me:$LINENO: checking for $ac_word" >&5
8097 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8098 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
8099   echo $ECHO_N "(cached) $ECHO_C" >&6
8100 else
8101   if test -n "$ac_ct_GETCONF"; then
8102   ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
8103 else
8104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8105 for as_dir in $PATH
8106 do
8107   IFS=$as_save_IFS
8108   test -z "$as_dir" && as_dir=.
8109   for ac_exec_ext in '' $ac_executable_extensions; do
8110   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8111     ac_cv_prog_ac_ct_GETCONF="getconf"
8112     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8113     break 2
8114   fi
8115 done
8116 done
8117
8118 fi
8119 fi
8120 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
8121 if test -n "$ac_ct_GETCONF"; then
8122   echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
8123 echo "${ECHO_T}$ac_ct_GETCONF" >&6
8124 else
8125   echo "$as_me:$LINENO: result: no" >&5
8126 echo "${ECHO_T}no" >&6
8127 fi
8128
8129   GETCONF=$ac_ct_GETCONF
8130 else
8131   GETCONF="$ac_cv_prog_GETCONF"
8132 fi
8133
8134      echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
8135 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6
8136 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
8137   echo $ECHO_N "(cached) $ECHO_C" >&6
8138 else
8139   ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
8140         ac_cv_sys_largefile_CFLAGS=no
8141         case "$host_os" in
8142            # IRIX 6.2 and later require cc -n32.
8143            irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
8144              if test "$GCC" != yes; then
8145                ac_cv_sys_largefile_CFLAGS=-n32
8146              fi
8147              ac_save_CC="$CC"
8148              CC="$CC $ac_cv_sys_largefile_CFLAGS"
8149              cat >conftest.$ac_ext <<_ACEOF
8150 #line $LINENO "configure"
8151 /* confdefs.h.  */
8152 _ACEOF
8153 cat confdefs.h >>conftest.$ac_ext
8154 cat >>conftest.$ac_ext <<_ACEOF
8155 /* end confdefs.h.  */
8156
8157 int
8158 main ()
8159 {
8160
8161   ;
8162   return 0;
8163 }
8164 _ACEOF
8165 rm -f conftest.$ac_objext conftest$ac_exeext
8166 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8167   (eval $ac_link) 2>&5
8168   ac_status=$?
8169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8170   (exit $ac_status); } &&
8171          { ac_try='test -s conftest$ac_exeext'
8172   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8173   (eval $ac_try) 2>&5
8174   ac_status=$?
8175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8176   (exit $ac_status); }; }; then
8177   :
8178 else
8179   echo "$as_me: failed program was:" >&5
8180 sed 's/^/| /' conftest.$ac_ext >&5
8181
8182 ac_cv_sys_largefile_CFLAGS=no
8183 fi
8184 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8185              CC="$ac_save_CC"
8186            esac
8187       }
8188 fi
8189 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
8190 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6
8191      echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
8192 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6
8193 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
8194   echo $ECHO_N "(cached) $ECHO_C" >&6
8195 else
8196   ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
8197         ac_cv_sys_largefile_LDFLAGS=no
8198
8199       }
8200 fi
8201 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
8202 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6
8203      echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
8204 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6
8205 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
8206   echo $ECHO_N "(cached) $ECHO_C" >&6
8207 else
8208   ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
8209         ac_cv_sys_largefile_LIBS=no
8210
8211       }
8212 fi
8213 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
8214 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6
8215
8216      for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
8217        case "$ac_flag" in
8218        no) ;;
8219        -D_FILE_OFFSET_BITS=*) ;;
8220        -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
8221        -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
8222        -D?* | -I?*)
8223          case "$ac_flag" in
8224    no) ;;
8225    ?*)
8226      case "$CPPFLAGS" in
8227      '') CPPFLAGS="$ac_flag" ;;
8228      *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
8229      esac ;;
8230    esac ;;
8231        *)
8232          case "$ac_flag" in
8233    no) ;;
8234    ?*)
8235      case "$CFLAGS" in
8236      '') CFLAGS="$ac_flag" ;;
8237      *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
8238      esac ;;
8239    esac ;;
8240        esac
8241      done
8242      case "$ac_cv_sys_largefile_LDFLAGS" in
8243    no) ;;
8244    ?*)
8245      case "$LDFLAGS" in
8246      '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
8247      *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
8248      esac ;;
8249    esac
8250      case "$ac_cv_sys_largefile_LIBS" in
8251    no) ;;
8252    ?*)
8253      case "$LIBS" in
8254      '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
8255      *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
8256      esac ;;
8257    esac
8258      echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
8259 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6
8260 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
8261   echo $ECHO_N "(cached) $ECHO_C" >&6
8262 else
8263   ac_cv_sys_file_offset_bits=no
8264       case "$host_os" in
8265         # HP-UX 10.20 and later
8266         hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
8267           ac_cv_sys_file_offset_bits=64 ;;
8268         esac
8269       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
8270         case "$ac_flag" in
8271         -D_FILE_OFFSET_BITS)
8272           ac_cv_sys_file_offset_bits=1 ;;
8273         -D_FILE_OFFSET_BITS=*)
8274           ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
8275         esac
8276       done
8277
8278 fi
8279 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
8280 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
8281    if test "$ac_cv_sys_file_offset_bits" != no; then
8282
8283 cat >>confdefs.h <<_ACEOF
8284 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
8285 _ACEOF
8286
8287    fi
8288      echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
8289 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6
8290 if test "${ac_cv_sys_largefile_source+set}" = set; then
8291   echo $ECHO_N "(cached) $ECHO_C" >&6
8292 else
8293   ac_cv_sys_largefile_source=no
8294       case "$host_os" in
8295         # HP-UX 10.20 and later
8296         hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
8297           ac_cv_sys_largefile_source=1 ;;
8298         esac
8299       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
8300         case "$ac_flag" in
8301         -D_LARGEFILE_SOURCE)
8302           ac_cv_sys_largefile_source=1 ;;
8303         -D_LARGEFILE_SOURCE=*)
8304           ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
8305         esac
8306       done
8307
8308 fi
8309 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
8310 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
8311    if test "$ac_cv_sys_largefile_source" != no; then
8312
8313 cat >>confdefs.h <<_ACEOF
8314 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
8315 _ACEOF
8316
8317    fi
8318      echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
8319 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6
8320 if test "${ac_cv_sys_large_files+set}" = set; then
8321   echo $ECHO_N "(cached) $ECHO_C" >&6
8322 else
8323   ac_cv_sys_large_files=no
8324       case "$host_os" in
8325         # AIX 4.2 and later
8326         aix4.[2-9]* | aix4.1[0-9]* | aix[5-9].* | aix[1-9][0-9]*)
8327           ac_cv_sys_large_files=1 ;;
8328         esac
8329       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
8330         case "$ac_flag" in
8331         -D_LARGE_FILES)
8332           ac_cv_sys_large_files=1 ;;
8333         -D_LARGE_FILES=*)
8334           ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
8335         esac
8336       done
8337
8338 fi
8339 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
8340 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
8341    if test "$ac_cv_sys_large_files" != no; then
8342
8343 cat >>confdefs.h <<_ACEOF
8344 #define _LARGE_FILES $ac_cv_sys_large_files
8345 _ACEOF
8346
8347    fi
8348    fi
8349
8350
8351
8352 echo "$as_me:$LINENO: checking for X" >&5
8353 echo $ECHO_N "checking for X... $ECHO_C" >&6
8354
8355
8356 # Check whether --with-x or --without-x was given.
8357 if test "${with_x+set}" = set; then
8358   withval="$with_x"
8359
8360 fi;
8361 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8362 if test "x$with_x" = xno; then
8363   # The user explicitly disabled X.
8364   have_x=disabled
8365 else
8366   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
8367     # Both variables are already set.
8368     have_x=yes
8369   else
8370     if test "${ac_cv_have_x+set}" = set; then
8371   echo $ECHO_N "(cached) $ECHO_C" >&6
8372 else
8373   # One or both of the vars are not set, and there is no cached value.
8374 ac_x_includes=no ac_x_libraries=no
8375 rm -fr conftest.dir
8376 if mkdir conftest.dir; then
8377   cd conftest.dir
8378   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
8379   cat >Imakefile <<'_ACEOF'
8380 acfindx:
8381         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
8382 _ACEOF
8383   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
8384     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8385     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
8386     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8387     for ac_extension in a so sl; do
8388       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
8389          test -f $ac_im_libdir/libX11.$ac_extension; then
8390         ac_im_usrlibdir=$ac_im_libdir; break
8391       fi
8392     done
8393     # Screen out bogus values from the imake configuration.  They are
8394     # bogus both because they are the default anyway, and because
8395     # using them would break gcc on systems where it needs fixed includes.
8396     case $ac_im_incroot in
8397         /usr/include) ;;
8398         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8399     esac
8400     case $ac_im_usrlibdir in
8401         /usr/lib | /lib) ;;
8402         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8403     esac
8404   fi
8405   cd ..
8406   rm -fr conftest.dir
8407 fi
8408
8409 # Standard set of common directories for X headers.
8410 # Check X11 before X11Rn because it is often a symlink to the current release.
8411 ac_x_header_dirs='
8412 /usr/X11/include
8413 /usr/X11R6/include
8414 /usr/X11R5/include
8415 /usr/X11R4/include
8416
8417 /usr/include/X11
8418 /usr/include/X11R6
8419 /usr/include/X11R5
8420 /usr/include/X11R4
8421
8422 /usr/local/X11/include
8423 /usr/local/X11R6/include
8424 /usr/local/X11R5/include
8425 /usr/local/X11R4/include
8426
8427 /usr/local/include/X11
8428 /usr/local/include/X11R6
8429 /usr/local/include/X11R5
8430 /usr/local/include/X11R4
8431
8432 /usr/X386/include
8433 /usr/x386/include
8434 /usr/XFree86/include/X11
8435
8436 /usr/include
8437 /usr/local/include
8438 /usr/unsupported/include
8439 /usr/athena/include
8440 /usr/local/x11r5/include
8441 /usr/lpp/Xamples/include
8442
8443 /usr/openwin/include
8444 /usr/openwin/share/include'
8445
8446 if test "$ac_x_includes" = no; then
8447   # Guess where to find include files, by looking for Intrinsic.h.
8448   # First, try using that file with no special directory specified.
8449   cat >conftest.$ac_ext <<_ACEOF
8450 #line $LINENO "configure"
8451 /* confdefs.h.  */
8452 _ACEOF
8453 cat confdefs.h >>conftest.$ac_ext
8454 cat >>conftest.$ac_ext <<_ACEOF
8455 /* end confdefs.h.  */
8456 #include <X11/Intrinsic.h>
8457 _ACEOF
8458 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8459   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8460   ac_status=$?
8461   grep -v '^ *+' conftest.er1 >conftest.err
8462   rm -f conftest.er1
8463   cat conftest.err >&5
8464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8465   (exit $ac_status); } >/dev/null; then
8466   if test -s conftest.err; then
8467     ac_cpp_err=$ac_c_preproc_warn_flag
8468   else
8469     ac_cpp_err=
8470   fi
8471 else
8472   ac_cpp_err=yes
8473 fi
8474 if test -z "$ac_cpp_err"; then
8475   # We can compile using X headers with no special include directory.
8476 ac_x_includes=
8477 else
8478   echo "$as_me: failed program was:" >&5
8479 sed 's/^/| /' conftest.$ac_ext >&5
8480
8481   for ac_dir in $ac_x_header_dirs; do
8482   if test -r "$ac_dir/X11/Intrinsic.h"; then
8483     ac_x_includes=$ac_dir
8484     break
8485   fi
8486 done
8487 fi
8488 rm -f conftest.err conftest.$ac_ext
8489 fi # $ac_x_includes = no
8490
8491 if test "$ac_x_libraries" = no; then
8492   # Check for the libraries.
8493   # See if we find them without any special options.
8494   # Don't add to $LIBS permanently.
8495   ac_save_LIBS=$LIBS
8496   LIBS="-lXt $LIBS"
8497   cat >conftest.$ac_ext <<_ACEOF
8498 #line $LINENO "configure"
8499 /* confdefs.h.  */
8500 _ACEOF
8501 cat confdefs.h >>conftest.$ac_ext
8502 cat >>conftest.$ac_ext <<_ACEOF
8503 /* end confdefs.h.  */
8504 #include <X11/Intrinsic.h>
8505 int
8506 main ()
8507 {
8508 XtMalloc (0)
8509   ;
8510   return 0;
8511 }
8512 _ACEOF
8513 rm -f conftest.$ac_objext conftest$ac_exeext
8514 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8515   (eval $ac_link) 2>&5
8516   ac_status=$?
8517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8518   (exit $ac_status); } &&
8519          { ac_try='test -s conftest$ac_exeext'
8520   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8521   (eval $ac_try) 2>&5
8522   ac_status=$?
8523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8524   (exit $ac_status); }; }; then
8525   LIBS=$ac_save_LIBS
8526 # We can link X programs with no special library path.
8527 ac_x_libraries=
8528 else
8529   echo "$as_me: failed program was:" >&5
8530 sed 's/^/| /' conftest.$ac_ext >&5
8531
8532 LIBS=$ac_save_LIBS
8533 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8534 do
8535   # Don't even attempt the hair of trying to link an X program!
8536   for ac_extension in a so sl; do
8537     if test -r $ac_dir/libXt.$ac_extension; then
8538       ac_x_libraries=$ac_dir
8539       break 2
8540     fi
8541   done
8542 done
8543 fi
8544 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8545 fi # $ac_x_libraries = no
8546
8547 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
8548   # Didn't find X anywhere.  Cache the known absence of X.
8549   ac_cv_have_x="have_x=no"
8550 else
8551   # Record where we found X for the cache.
8552   ac_cv_have_x="have_x=yes \
8553                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8554 fi
8555 fi
8556
8557   fi
8558   eval "$ac_cv_have_x"
8559 fi # $with_x != no
8560
8561 if test "$have_x" != yes; then
8562   echo "$as_me:$LINENO: result: $have_x" >&5
8563 echo "${ECHO_T}$have_x" >&6
8564   no_x=yes
8565 else
8566   # If each of the values was on the command line, it overrides each guess.
8567   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8568   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8569   # Update the cache value to reflect the command line values.
8570   ac_cv_have_x="have_x=yes \
8571                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8572   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
8573 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
8574 fi
8575
8576 if test "$no_x" = yes; then
8577   # Not all programs may use this symbol, but it does not hurt to define it.
8578
8579 cat >>confdefs.h <<\_ACEOF
8580 #define X_DISPLAY_MISSING 1
8581 _ACEOF
8582
8583   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
8584 else
8585   if test -n "$x_includes"; then
8586     X_CFLAGS="$X_CFLAGS -I$x_includes"
8587   fi
8588
8589   # It would also be nice to do this for all -L options, not just this one.
8590   if test -n "$x_libraries"; then
8591     X_LIBS="$X_LIBS -L$x_libraries"
8592     # For Solaris; some versions of Sun CC require a space after -R and
8593     # others require no space.  Words are not sufficient . . . .
8594     case `(uname -sr) 2>/dev/null` in
8595     "SunOS 5"*)
8596       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
8597 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
8598       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
8599       cat >conftest.$ac_ext <<_ACEOF
8600 #line $LINENO "configure"
8601 /* confdefs.h.  */
8602 _ACEOF
8603 cat confdefs.h >>conftest.$ac_ext
8604 cat >>conftest.$ac_ext <<_ACEOF
8605 /* end confdefs.h.  */
8606
8607 int
8608 main ()
8609 {
8610
8611   ;
8612   return 0;
8613 }
8614 _ACEOF
8615 rm -f conftest.$ac_objext conftest$ac_exeext
8616 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8617   (eval $ac_link) 2>&5
8618   ac_status=$?
8619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8620   (exit $ac_status); } &&
8621          { ac_try='test -s conftest$ac_exeext'
8622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8623   (eval $ac_try) 2>&5
8624   ac_status=$?
8625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8626   (exit $ac_status); }; }; then
8627   ac_R_nospace=yes
8628 else
8629   echo "$as_me: failed program was:" >&5
8630 sed 's/^/| /' conftest.$ac_ext >&5
8631
8632 ac_R_nospace=no
8633 fi
8634 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8635       if test $ac_R_nospace = yes; then
8636         echo "$as_me:$LINENO: result: no" >&5
8637 echo "${ECHO_T}no" >&6
8638         X_LIBS="$X_LIBS -R$x_libraries"
8639       else
8640         LIBS="$ac_xsave_LIBS -R $x_libraries"
8641         cat >conftest.$ac_ext <<_ACEOF
8642 #line $LINENO "configure"
8643 /* confdefs.h.  */
8644 _ACEOF
8645 cat confdefs.h >>conftest.$ac_ext
8646 cat >>conftest.$ac_ext <<_ACEOF
8647 /* end confdefs.h.  */
8648
8649 int
8650 main ()
8651 {
8652
8653   ;
8654   return 0;
8655 }
8656 _ACEOF
8657 rm -f conftest.$ac_objext conftest$ac_exeext
8658 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8659   (eval $ac_link) 2>&5
8660   ac_status=$?
8661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8662   (exit $ac_status); } &&
8663          { ac_try='test -s conftest$ac_exeext'
8664   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8665   (eval $ac_try) 2>&5
8666   ac_status=$?
8667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8668   (exit $ac_status); }; }; then
8669   ac_R_space=yes
8670 else
8671   echo "$as_me: failed program was:" >&5
8672 sed 's/^/| /' conftest.$ac_ext >&5
8673
8674 ac_R_space=no
8675 fi
8676 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8677         if test $ac_R_space = yes; then
8678           echo "$as_me:$LINENO: result: yes" >&5
8679 echo "${ECHO_T}yes" >&6
8680           X_LIBS="$X_LIBS -R $x_libraries"
8681         else
8682           echo "$as_me:$LINENO: result: neither works" >&5
8683 echo "${ECHO_T}neither works" >&6
8684         fi
8685       fi
8686       LIBS=$ac_xsave_LIBS
8687     esac
8688   fi
8689
8690   # Check for system-dependent libraries X programs must link with.
8691   # Do this before checking for the system-independent R6 libraries
8692   # (-lICE), since we may need -lsocket or whatever for X linking.
8693
8694   if test "$ISC" = yes; then
8695     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
8696   else
8697     # Martyn Johnson says this is needed for Ultrix, if the X
8698     # libraries were built with DECnet support.  And Karl Berry says
8699     # the Alpha needs dnet_stub (dnet does not exist).
8700     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
8701     cat >conftest.$ac_ext <<_ACEOF
8702 #line $LINENO "configure"
8703 /* confdefs.h.  */
8704 _ACEOF
8705 cat confdefs.h >>conftest.$ac_ext
8706 cat >>conftest.$ac_ext <<_ACEOF
8707 /* end confdefs.h.  */
8708
8709 /* Override any gcc2 internal prototype to avoid an error.  */
8710 #ifdef __cplusplus
8711 extern "C"
8712 #endif
8713 /* We use char because int might match the return type of a gcc2
8714    builtin and then its argument prototype would still apply.  */
8715 char XOpenDisplay ();
8716 int
8717 main ()
8718 {
8719 XOpenDisplay ();
8720   ;
8721   return 0;
8722 }
8723 _ACEOF
8724 rm -f conftest.$ac_objext conftest$ac_exeext
8725 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8726   (eval $ac_link) 2>&5
8727   ac_status=$?
8728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8729   (exit $ac_status); } &&
8730          { ac_try='test -s conftest$ac_exeext'
8731   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8732   (eval $ac_try) 2>&5
8733   ac_status=$?
8734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8735   (exit $ac_status); }; }; then
8736   :
8737 else
8738   echo "$as_me: failed program was:" >&5
8739 sed 's/^/| /' conftest.$ac_ext >&5
8740
8741 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
8742 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
8743 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
8744   echo $ECHO_N "(cached) $ECHO_C" >&6
8745 else
8746   ac_check_lib_save_LIBS=$LIBS
8747 LIBS="-ldnet  $LIBS"
8748 cat >conftest.$ac_ext <<_ACEOF
8749 #line $LINENO "configure"
8750 /* confdefs.h.  */
8751 _ACEOF
8752 cat confdefs.h >>conftest.$ac_ext
8753 cat >>conftest.$ac_ext <<_ACEOF
8754 /* end confdefs.h.  */
8755
8756 /* Override any gcc2 internal prototype to avoid an error.  */
8757 #ifdef __cplusplus
8758 extern "C"
8759 #endif
8760 /* We use char because int might match the return type of a gcc2
8761    builtin and then its argument prototype would still apply.  */
8762 char dnet_ntoa ();
8763 int
8764 main ()
8765 {
8766 dnet_ntoa ();
8767   ;
8768   return 0;
8769 }
8770 _ACEOF
8771 rm -f conftest.$ac_objext conftest$ac_exeext
8772 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8773   (eval $ac_link) 2>&5
8774   ac_status=$?
8775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8776   (exit $ac_status); } &&
8777          { ac_try='test -s conftest$ac_exeext'
8778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8779   (eval $ac_try) 2>&5
8780   ac_status=$?
8781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8782   (exit $ac_status); }; }; then
8783   ac_cv_lib_dnet_dnet_ntoa=yes
8784 else
8785   echo "$as_me: failed program was:" >&5
8786 sed 's/^/| /' conftest.$ac_ext >&5
8787
8788 ac_cv_lib_dnet_dnet_ntoa=no
8789 fi
8790 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8791 LIBS=$ac_check_lib_save_LIBS
8792 fi
8793 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8794 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
8795 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
8796   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
8797 fi
8798
8799     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
8800       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
8801 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
8802 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
8803   echo $ECHO_N "(cached) $ECHO_C" >&6
8804 else
8805   ac_check_lib_save_LIBS=$LIBS
8806 LIBS="-ldnet_stub  $LIBS"
8807 cat >conftest.$ac_ext <<_ACEOF
8808 #line $LINENO "configure"
8809 /* confdefs.h.  */
8810 _ACEOF
8811 cat confdefs.h >>conftest.$ac_ext
8812 cat >>conftest.$ac_ext <<_ACEOF
8813 /* end confdefs.h.  */
8814
8815 /* Override any gcc2 internal prototype to avoid an error.  */
8816 #ifdef __cplusplus
8817 extern "C"
8818 #endif
8819 /* We use char because int might match the return type of a gcc2
8820    builtin and then its argument prototype would still apply.  */
8821 char dnet_ntoa ();
8822 int
8823 main ()
8824 {
8825 dnet_ntoa ();
8826   ;
8827   return 0;
8828 }
8829 _ACEOF
8830 rm -f conftest.$ac_objext conftest$ac_exeext
8831 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8832   (eval $ac_link) 2>&5
8833   ac_status=$?
8834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8835   (exit $ac_status); } &&
8836          { ac_try='test -s conftest$ac_exeext'
8837   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8838   (eval $ac_try) 2>&5
8839   ac_status=$?
8840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8841   (exit $ac_status); }; }; then
8842   ac_cv_lib_dnet_stub_dnet_ntoa=yes
8843 else
8844   echo "$as_me: failed program was:" >&5
8845 sed 's/^/| /' conftest.$ac_ext >&5
8846
8847 ac_cv_lib_dnet_stub_dnet_ntoa=no
8848 fi
8849 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8850 LIBS=$ac_check_lib_save_LIBS
8851 fi
8852 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
8853 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
8854 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
8855   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
8856 fi
8857
8858     fi
8859 fi
8860 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8861     LIBS="$ac_xsave_LIBS"
8862
8863     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
8864     # to get the SysV transport functions.
8865     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
8866     # needs -lnsl.
8867     # The nsl library prevents programs from opening the X display
8868     # on Irix 5.2, according to T.E. Dickey.
8869     # The functions gethostbyname, getservbyname, and inet_addr are
8870     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
8871     echo "$as_me:$LINENO: checking for gethostbyname" >&5
8872 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
8873 if test "${ac_cv_func_gethostbyname+set}" = set; then
8874   echo $ECHO_N "(cached) $ECHO_C" >&6
8875 else
8876   cat >conftest.$ac_ext <<_ACEOF
8877 #line $LINENO "configure"
8878 /* confdefs.h.  */
8879 _ACEOF
8880 cat confdefs.h >>conftest.$ac_ext
8881 cat >>conftest.$ac_ext <<_ACEOF
8882 /* end confdefs.h.  */
8883 /* System header to define __stub macros and hopefully few prototypes,
8884     which can conflict with char gethostbyname (); below.
8885     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8886     <limits.h> exists even on freestanding compilers.  */
8887 #ifdef __STDC__
8888 # include <limits.h>
8889 #else
8890 # include <assert.h>
8891 #endif
8892 /* Override any gcc2 internal prototype to avoid an error.  */
8893 #ifdef __cplusplus
8894 extern "C"
8895 {
8896 #endif
8897 /* We use char because int might match the return type of a gcc2
8898    builtin and then its argument prototype would still apply.  */
8899 char gethostbyname ();
8900 /* The GNU C library defines this for functions which it implements
8901     to always fail with ENOSYS.  Some functions are actually named
8902     something starting with __ and the normal name is an alias.  */
8903 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
8904 choke me
8905 #else
8906 char (*f) () = gethostbyname;
8907 #endif
8908 #ifdef __cplusplus
8909 }
8910 #endif
8911
8912 int
8913 main ()
8914 {
8915 return f != gethostbyname;
8916   ;
8917   return 0;
8918 }
8919 _ACEOF
8920 rm -f conftest.$ac_objext conftest$ac_exeext
8921 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8922   (eval $ac_link) 2>&5
8923   ac_status=$?
8924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8925   (exit $ac_status); } &&
8926          { ac_try='test -s conftest$ac_exeext'
8927   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8928   (eval $ac_try) 2>&5
8929   ac_status=$?
8930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8931   (exit $ac_status); }; }; then
8932   ac_cv_func_gethostbyname=yes
8933 else
8934   echo "$as_me: failed program was:" >&5
8935 sed 's/^/| /' conftest.$ac_ext >&5
8936
8937 ac_cv_func_gethostbyname=no
8938 fi
8939 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8940 fi
8941 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
8942 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
8943
8944     if test $ac_cv_func_gethostbyname = no; then
8945       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
8946 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
8947 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
8948   echo $ECHO_N "(cached) $ECHO_C" >&6
8949 else
8950   ac_check_lib_save_LIBS=$LIBS
8951 LIBS="-lnsl  $LIBS"
8952 cat >conftest.$ac_ext <<_ACEOF
8953 #line $LINENO "configure"
8954 /* confdefs.h.  */
8955 _ACEOF
8956 cat confdefs.h >>conftest.$ac_ext
8957 cat >>conftest.$ac_ext <<_ACEOF
8958 /* end confdefs.h.  */
8959
8960 /* Override any gcc2 internal prototype to avoid an error.  */
8961 #ifdef __cplusplus
8962 extern "C"
8963 #endif
8964 /* We use char because int might match the return type of a gcc2
8965    builtin and then its argument prototype would still apply.  */
8966 char gethostbyname ();
8967 int
8968 main ()
8969 {
8970 gethostbyname ();
8971   ;
8972   return 0;
8973 }
8974 _ACEOF
8975 rm -f conftest.$ac_objext conftest$ac_exeext
8976 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8977   (eval $ac_link) 2>&5
8978   ac_status=$?
8979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8980   (exit $ac_status); } &&
8981          { ac_try='test -s conftest$ac_exeext'
8982   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8983   (eval $ac_try) 2>&5
8984   ac_status=$?
8985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8986   (exit $ac_status); }; }; then
8987   ac_cv_lib_nsl_gethostbyname=yes
8988 else
8989   echo "$as_me: failed program was:" >&5
8990 sed 's/^/| /' conftest.$ac_ext >&5
8991
8992 ac_cv_lib_nsl_gethostbyname=no
8993 fi
8994 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8995 LIBS=$ac_check_lib_save_LIBS
8996 fi
8997 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
8998 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
8999 if test $ac_cv_lib_nsl_gethostbyname = yes; then
9000   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
9001 fi
9002
9003       if test $ac_cv_lib_nsl_gethostbyname = no; then
9004         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
9005 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
9006 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
9007   echo $ECHO_N "(cached) $ECHO_C" >&6
9008 else
9009   ac_check_lib_save_LIBS=$LIBS
9010 LIBS="-lbsd  $LIBS"
9011 cat >conftest.$ac_ext <<_ACEOF
9012 #line $LINENO "configure"
9013 /* confdefs.h.  */
9014 _ACEOF
9015 cat confdefs.h >>conftest.$ac_ext
9016 cat >>conftest.$ac_ext <<_ACEOF
9017 /* end confdefs.h.  */
9018
9019 /* Override any gcc2 internal prototype to avoid an error.  */
9020 #ifdef __cplusplus
9021 extern "C"
9022 #endif
9023 /* We use char because int might match the return type of a gcc2
9024    builtin and then its argument prototype would still apply.  */
9025 char gethostbyname ();
9026 int
9027 main ()
9028 {
9029 gethostbyname ();
9030   ;
9031   return 0;
9032 }
9033 _ACEOF
9034 rm -f conftest.$ac_objext conftest$ac_exeext
9035 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9036   (eval $ac_link) 2>&5
9037   ac_status=$?
9038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9039   (exit $ac_status); } &&
9040          { ac_try='test -s conftest$ac_exeext'
9041   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9042   (eval $ac_try) 2>&5
9043   ac_status=$?
9044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9045   (exit $ac_status); }; }; then
9046   ac_cv_lib_bsd_gethostbyname=yes
9047 else
9048   echo "$as_me: failed program was:" >&5
9049 sed 's/^/| /' conftest.$ac_ext >&5
9050
9051 ac_cv_lib_bsd_gethostbyname=no
9052 fi
9053 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9054 LIBS=$ac_check_lib_save_LIBS
9055 fi
9056 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
9057 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
9058 if test $ac_cv_lib_bsd_gethostbyname = yes; then
9059   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
9060 fi
9061
9062       fi
9063     fi
9064
9065     # lieder@skyler.mavd.honeywell.com says without -lsocket,
9066     # socket/setsockopt and other routines are undefined under SCO ODT
9067     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
9068     # on later versions), says Simon Leinen: it contains gethostby*
9069     # variants that don't use the name server (or something).  -lsocket
9070     # must be given before -lnsl if both are needed.  We assume that
9071     # if connect needs -lnsl, so does gethostbyname.
9072     echo "$as_me:$LINENO: checking for connect" >&5
9073 echo $ECHO_N "checking for connect... $ECHO_C" >&6
9074 if test "${ac_cv_func_connect+set}" = set; then
9075   echo $ECHO_N "(cached) $ECHO_C" >&6
9076 else
9077   cat >conftest.$ac_ext <<_ACEOF
9078 #line $LINENO "configure"
9079 /* confdefs.h.  */
9080 _ACEOF
9081 cat confdefs.h >>conftest.$ac_ext
9082 cat >>conftest.$ac_ext <<_ACEOF
9083 /* end confdefs.h.  */
9084 /* System header to define __stub macros and hopefully few prototypes,
9085     which can conflict with char connect (); below.
9086     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9087     <limits.h> exists even on freestanding compilers.  */
9088 #ifdef __STDC__
9089 # include <limits.h>
9090 #else
9091 # include <assert.h>
9092 #endif
9093 /* Override any gcc2 internal prototype to avoid an error.  */
9094 #ifdef __cplusplus
9095 extern "C"
9096 {
9097 #endif
9098 /* We use char because int might match the return type of a gcc2
9099    builtin and then its argument prototype would still apply.  */
9100 char connect ();
9101 /* The GNU C library defines this for functions which it implements
9102     to always fail with ENOSYS.  Some functions are actually named
9103     something starting with __ and the normal name is an alias.  */
9104 #if defined (__stub_connect) || defined (__stub___connect)
9105 choke me
9106 #else
9107 char (*f) () = connect;
9108 #endif
9109 #ifdef __cplusplus
9110 }
9111 #endif
9112
9113 int
9114 main ()
9115 {
9116 return f != connect;
9117   ;
9118   return 0;
9119 }
9120 _ACEOF
9121 rm -f conftest.$ac_objext conftest$ac_exeext
9122 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9123   (eval $ac_link) 2>&5
9124   ac_status=$?
9125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9126   (exit $ac_status); } &&
9127          { ac_try='test -s conftest$ac_exeext'
9128   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9129   (eval $ac_try) 2>&5
9130   ac_status=$?
9131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9132   (exit $ac_status); }; }; then
9133   ac_cv_func_connect=yes
9134 else
9135   echo "$as_me: failed program was:" >&5
9136 sed 's/^/| /' conftest.$ac_ext >&5
9137
9138 ac_cv_func_connect=no
9139 fi
9140 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9141 fi
9142 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
9143 echo "${ECHO_T}$ac_cv_func_connect" >&6
9144
9145     if test $ac_cv_func_connect = no; then
9146       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
9147 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
9148 if test "${ac_cv_lib_socket_connect+set}" = set; then
9149   echo $ECHO_N "(cached) $ECHO_C" >&6
9150 else
9151   ac_check_lib_save_LIBS=$LIBS
9152 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
9153 cat >conftest.$ac_ext <<_ACEOF
9154 #line $LINENO "configure"
9155 /* confdefs.h.  */
9156 _ACEOF
9157 cat confdefs.h >>conftest.$ac_ext
9158 cat >>conftest.$ac_ext <<_ACEOF
9159 /* end confdefs.h.  */
9160
9161 /* Override any gcc2 internal prototype to avoid an error.  */
9162 #ifdef __cplusplus
9163 extern "C"
9164 #endif
9165 /* We use char because int might match the return type of a gcc2
9166    builtin and then its argument prototype would still apply.  */
9167 char connect ();
9168 int
9169 main ()
9170 {
9171 connect ();
9172   ;
9173   return 0;
9174 }
9175 _ACEOF
9176 rm -f conftest.$ac_objext conftest$ac_exeext
9177 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9178   (eval $ac_link) 2>&5
9179   ac_status=$?
9180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9181   (exit $ac_status); } &&
9182          { ac_try='test -s conftest$ac_exeext'
9183   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9184   (eval $ac_try) 2>&5
9185   ac_status=$?
9186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9187   (exit $ac_status); }; }; then
9188   ac_cv_lib_socket_connect=yes
9189 else
9190   echo "$as_me: failed program was:" >&5
9191 sed 's/^/| /' conftest.$ac_ext >&5
9192
9193 ac_cv_lib_socket_connect=no
9194 fi
9195 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9196 LIBS=$ac_check_lib_save_LIBS
9197 fi
9198 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
9199 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
9200 if test $ac_cv_lib_socket_connect = yes; then
9201   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
9202 fi
9203
9204     fi
9205
9206     # Guillermo Gomez says -lposix is necessary on A/UX.
9207     echo "$as_me:$LINENO: checking for remove" >&5
9208 echo $ECHO_N "checking for remove... $ECHO_C" >&6
9209 if test "${ac_cv_func_remove+set}" = set; then
9210   echo $ECHO_N "(cached) $ECHO_C" >&6
9211 else
9212   cat >conftest.$ac_ext <<_ACEOF
9213 #line $LINENO "configure"
9214 /* confdefs.h.  */
9215 _ACEOF
9216 cat confdefs.h >>conftest.$ac_ext
9217 cat >>conftest.$ac_ext <<_ACEOF
9218 /* end confdefs.h.  */
9219 /* System header to define __stub macros and hopefully few prototypes,
9220     which can conflict with char remove (); below.
9221     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9222     <limits.h> exists even on freestanding compilers.  */
9223 #ifdef __STDC__
9224 # include <limits.h>
9225 #else
9226 # include <assert.h>
9227 #endif
9228 /* Override any gcc2 internal prototype to avoid an error.  */
9229 #ifdef __cplusplus
9230 extern "C"
9231 {
9232 #endif
9233 /* We use char because int might match the return type of a gcc2
9234    builtin and then its argument prototype would still apply.  */
9235 char remove ();
9236 /* The GNU C library defines this for functions which it implements
9237     to always fail with ENOSYS.  Some functions are actually named
9238     something starting with __ and the normal name is an alias.  */
9239 #if defined (__stub_remove) || defined (__stub___remove)
9240 choke me
9241 #else
9242 char (*f) () = remove;
9243 #endif
9244 #ifdef __cplusplus
9245 }
9246 #endif
9247
9248 int
9249 main ()
9250 {
9251 return f != remove;
9252   ;
9253   return 0;
9254 }
9255 _ACEOF
9256 rm -f conftest.$ac_objext conftest$ac_exeext
9257 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9258   (eval $ac_link) 2>&5
9259   ac_status=$?
9260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9261   (exit $ac_status); } &&
9262          { ac_try='test -s conftest$ac_exeext'
9263   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9264   (eval $ac_try) 2>&5
9265   ac_status=$?
9266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9267   (exit $ac_status); }; }; then
9268   ac_cv_func_remove=yes
9269 else
9270   echo "$as_me: failed program was:" >&5
9271 sed 's/^/| /' conftest.$ac_ext >&5
9272
9273 ac_cv_func_remove=no
9274 fi
9275 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9276 fi
9277 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
9278 echo "${ECHO_T}$ac_cv_func_remove" >&6
9279
9280     if test $ac_cv_func_remove = no; then
9281       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
9282 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
9283 if test "${ac_cv_lib_posix_remove+set}" = set; then
9284   echo $ECHO_N "(cached) $ECHO_C" >&6
9285 else
9286   ac_check_lib_save_LIBS=$LIBS
9287 LIBS="-lposix  $LIBS"
9288 cat >conftest.$ac_ext <<_ACEOF
9289 #line $LINENO "configure"
9290 /* confdefs.h.  */
9291 _ACEOF
9292 cat confdefs.h >>conftest.$ac_ext
9293 cat >>conftest.$ac_ext <<_ACEOF
9294 /* end confdefs.h.  */
9295
9296 /* Override any gcc2 internal prototype to avoid an error.  */
9297 #ifdef __cplusplus
9298 extern "C"
9299 #endif
9300 /* We use char because int might match the return type of a gcc2
9301    builtin and then its argument prototype would still apply.  */
9302 char remove ();
9303 int
9304 main ()
9305 {
9306 remove ();
9307   ;
9308   return 0;
9309 }
9310 _ACEOF
9311 rm -f conftest.$ac_objext conftest$ac_exeext
9312 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9313   (eval $ac_link) 2>&5
9314   ac_status=$?
9315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9316   (exit $ac_status); } &&
9317          { ac_try='test -s conftest$ac_exeext'
9318   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9319   (eval $ac_try) 2>&5
9320   ac_status=$?
9321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9322   (exit $ac_status); }; }; then
9323   ac_cv_lib_posix_remove=yes
9324 else
9325   echo "$as_me: failed program was:" >&5
9326 sed 's/^/| /' conftest.$ac_ext >&5
9327
9328 ac_cv_lib_posix_remove=no
9329 fi
9330 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9331 LIBS=$ac_check_lib_save_LIBS
9332 fi
9333 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
9334 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
9335 if test $ac_cv_lib_posix_remove = yes; then
9336   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
9337 fi
9338
9339     fi
9340
9341     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
9342     echo "$as_me:$LINENO: checking for shmat" >&5
9343 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
9344 if test "${ac_cv_func_shmat+set}" = set; then
9345   echo $ECHO_N "(cached) $ECHO_C" >&6
9346 else
9347   cat >conftest.$ac_ext <<_ACEOF
9348 #line $LINENO "configure"
9349 /* confdefs.h.  */
9350 _ACEOF
9351 cat confdefs.h >>conftest.$ac_ext
9352 cat >>conftest.$ac_ext <<_ACEOF
9353 /* end confdefs.h.  */
9354 /* System header to define __stub macros and hopefully few prototypes,
9355     which can conflict with char shmat (); below.
9356     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9357     <limits.h> exists even on freestanding compilers.  */
9358 #ifdef __STDC__
9359 # include <limits.h>
9360 #else
9361 # include <assert.h>
9362 #endif
9363 /* Override any gcc2 internal prototype to avoid an error.  */
9364 #ifdef __cplusplus
9365 extern "C"
9366 {
9367 #endif
9368 /* We use char because int might match the return type of a gcc2
9369    builtin and then its argument prototype would still apply.  */
9370 char shmat ();
9371 /* The GNU C library defines this for functions which it implements
9372     to always fail with ENOSYS.  Some functions are actually named
9373     something starting with __ and the normal name is an alias.  */
9374 #if defined (__stub_shmat) || defined (__stub___shmat)
9375 choke me
9376 #else
9377 char (*f) () = shmat;
9378 #endif
9379 #ifdef __cplusplus
9380 }
9381 #endif
9382
9383 int
9384 main ()
9385 {
9386 return f != shmat;
9387   ;
9388   return 0;
9389 }
9390 _ACEOF
9391 rm -f conftest.$ac_objext conftest$ac_exeext
9392 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9393   (eval $ac_link) 2>&5
9394   ac_status=$?
9395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9396   (exit $ac_status); } &&
9397          { ac_try='test -s conftest$ac_exeext'
9398   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9399   (eval $ac_try) 2>&5
9400   ac_status=$?
9401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9402   (exit $ac_status); }; }; then
9403   ac_cv_func_shmat=yes
9404 else
9405   echo "$as_me: failed program was:" >&5
9406 sed 's/^/| /' conftest.$ac_ext >&5
9407
9408 ac_cv_func_shmat=no
9409 fi
9410 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9411 fi
9412 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
9413 echo "${ECHO_T}$ac_cv_func_shmat" >&6
9414
9415     if test $ac_cv_func_shmat = no; then
9416       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
9417 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
9418 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
9419   echo $ECHO_N "(cached) $ECHO_C" >&6
9420 else
9421   ac_check_lib_save_LIBS=$LIBS
9422 LIBS="-lipc  $LIBS"
9423 cat >conftest.$ac_ext <<_ACEOF
9424 #line $LINENO "configure"
9425 /* confdefs.h.  */
9426 _ACEOF
9427 cat confdefs.h >>conftest.$ac_ext
9428 cat >>conftest.$ac_ext <<_ACEOF
9429 /* end confdefs.h.  */
9430
9431 /* Override any gcc2 internal prototype to avoid an error.  */
9432 #ifdef __cplusplus
9433 extern "C"
9434 #endif
9435 /* We use char because int might match the return type of a gcc2
9436    builtin and then its argument prototype would still apply.  */
9437 char shmat ();
9438 int
9439 main ()
9440 {
9441 shmat ();
9442   ;
9443   return 0;
9444 }
9445 _ACEOF
9446 rm -f conftest.$ac_objext conftest$ac_exeext
9447 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9448   (eval $ac_link) 2>&5
9449   ac_status=$?
9450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9451   (exit $ac_status); } &&
9452          { ac_try='test -s conftest$ac_exeext'
9453   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9454   (eval $ac_try) 2>&5
9455   ac_status=$?
9456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9457   (exit $ac_status); }; }; then
9458   ac_cv_lib_ipc_shmat=yes
9459 else
9460   echo "$as_me: failed program was:" >&5
9461 sed 's/^/| /' conftest.$ac_ext >&5
9462
9463 ac_cv_lib_ipc_shmat=no
9464 fi
9465 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9466 LIBS=$ac_check_lib_save_LIBS
9467 fi
9468 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
9469 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
9470 if test $ac_cv_lib_ipc_shmat = yes; then
9471   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
9472 fi
9473
9474     fi
9475   fi
9476
9477   # Check for libraries that X11R6 Xt/Xaw programs need.
9478   ac_save_LDFLAGS=$LDFLAGS
9479   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
9480   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
9481   # check for ICE first), but we must link in the order -lSM -lICE or
9482   # we get undefined symbols.  So assume we have SM if we have ICE.
9483   # These have to be linked with before -lX11, unlike the other
9484   # libraries we check for below, so use a different variable.
9485   # John Interrante, Karl Berry
9486   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
9487 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
9488 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
9489   echo $ECHO_N "(cached) $ECHO_C" >&6
9490 else
9491   ac_check_lib_save_LIBS=$LIBS
9492 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
9493 cat >conftest.$ac_ext <<_ACEOF
9494 #line $LINENO "configure"
9495 /* confdefs.h.  */
9496 _ACEOF
9497 cat confdefs.h >>conftest.$ac_ext
9498 cat >>conftest.$ac_ext <<_ACEOF
9499 /* end confdefs.h.  */
9500
9501 /* Override any gcc2 internal prototype to avoid an error.  */
9502 #ifdef __cplusplus
9503 extern "C"
9504 #endif
9505 /* We use char because int might match the return type of a gcc2
9506    builtin and then its argument prototype would still apply.  */
9507 char IceConnectionNumber ();
9508 int
9509 main ()
9510 {
9511 IceConnectionNumber ();
9512   ;
9513   return 0;
9514 }
9515 _ACEOF
9516 rm -f conftest.$ac_objext conftest$ac_exeext
9517 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9518   (eval $ac_link) 2>&5
9519   ac_status=$?
9520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9521   (exit $ac_status); } &&
9522          { ac_try='test -s conftest$ac_exeext'
9523   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9524   (eval $ac_try) 2>&5
9525   ac_status=$?
9526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9527   (exit $ac_status); }; }; then
9528   ac_cv_lib_ICE_IceConnectionNumber=yes
9529 else
9530   echo "$as_me: failed program was:" >&5
9531 sed 's/^/| /' conftest.$ac_ext >&5
9532
9533 ac_cv_lib_ICE_IceConnectionNumber=no
9534 fi
9535 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9536 LIBS=$ac_check_lib_save_LIBS
9537 fi
9538 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
9539 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
9540 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
9541   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
9542 fi
9543
9544   LDFLAGS=$ac_save_LDFLAGS
9545
9546 fi
9547
9548
9549
9550
9551
9552
9553
9554
9555
9556
9557
9558
9559
9560
9561
9562
9563
9564
9565
9566
9567
9568
9569
9570
9571
9572
9573
9574
9575
9576 for ac_header in \
9577         assert.h \
9578         fcntl.h \
9579         grp.h \
9580         pwd.h \
9581         libc.h \
9582         limits.h \
9583         stdarg.h \
9584         stdlib.h \
9585         stdint.h \
9586         string.h \
9587         termios.h \
9588         termcap.h \
9589         term.h \
9590         unistd.h \
9591         sys/bitypes.h \
9592         sys/byteorder.h \
9593         sys/ioctl.h \
9594         sys/select.h \
9595         sys/sockio.h \
9596         sys/time.h \
9597         sys/socket.h \
9598         arpa/nameser.h \
9599         resolv.h \
9600         mtio.h \
9601         sys/mtio.h \
9602         sys/tape.h \
9603         regex.h \
9604
9605 do
9606 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9607 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9608   echo "$as_me:$LINENO: checking for $ac_header" >&5
9609 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9610 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9611   echo $ECHO_N "(cached) $ECHO_C" >&6
9612 fi
9613 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9614 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9615 else
9616   # Is the header compilable?
9617 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9618 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9619 cat >conftest.$ac_ext <<_ACEOF
9620 #line $LINENO "configure"
9621 /* confdefs.h.  */
9622 _ACEOF
9623 cat confdefs.h >>conftest.$ac_ext
9624 cat >>conftest.$ac_ext <<_ACEOF
9625 /* end confdefs.h.  */
9626 $ac_includes_default
9627 #include <$ac_header>
9628 _ACEOF
9629 rm -f conftest.$ac_objext
9630 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9631   (eval $ac_compile) 2>&5
9632   ac_status=$?
9633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9634   (exit $ac_status); } &&
9635          { ac_try='test -s conftest.$ac_objext'
9636   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9637   (eval $ac_try) 2>&5
9638   ac_status=$?
9639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9640   (exit $ac_status); }; }; then
9641   ac_header_compiler=yes
9642 else
9643   echo "$as_me: failed program was:" >&5
9644 sed 's/^/| /' conftest.$ac_ext >&5
9645
9646 ac_header_compiler=no
9647 fi
9648 rm -f conftest.$ac_objext conftest.$ac_ext
9649 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9650 echo "${ECHO_T}$ac_header_compiler" >&6
9651
9652 # Is the header present?
9653 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9654 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9655 cat >conftest.$ac_ext <<_ACEOF
9656 #line $LINENO "configure"
9657 /* confdefs.h.  */
9658 _ACEOF
9659 cat confdefs.h >>conftest.$ac_ext
9660 cat >>conftest.$ac_ext <<_ACEOF
9661 /* end confdefs.h.  */
9662 #include <$ac_header>
9663 _ACEOF
9664 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9665   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9666   ac_status=$?
9667   grep -v '^ *+' conftest.er1 >conftest.err
9668   rm -f conftest.er1
9669   cat conftest.err >&5
9670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9671   (exit $ac_status); } >/dev/null; then
9672   if test -s conftest.err; then
9673     ac_cpp_err=$ac_c_preproc_warn_flag
9674   else
9675     ac_cpp_err=
9676   fi
9677 else
9678   ac_cpp_err=yes
9679 fi
9680 if test -z "$ac_cpp_err"; then
9681   ac_header_preproc=yes
9682 else
9683   echo "$as_me: failed program was:" >&5
9684 sed 's/^/| /' conftest.$ac_ext >&5
9685
9686   ac_header_preproc=no
9687 fi
9688 rm -f conftest.err conftest.$ac_ext
9689 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9690 echo "${ECHO_T}$ac_header_preproc" >&6
9691
9692 # So?  What about this header?
9693 case $ac_header_compiler:$ac_header_preproc in
9694   yes:no )
9695     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9696 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9697     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9698 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9699     (
9700       cat <<\_ASBOX
9701 ## ------------------------------------ ##
9702 ## Report this to bug-autoconf@gnu.org. ##
9703 ## ------------------------------------ ##
9704 _ASBOX
9705     ) |
9706       sed "s/^/$as_me: WARNING:     /" >&2
9707     ;;
9708   no:yes )
9709     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9710 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9711     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9712 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9713     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9714 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9715     (
9716       cat <<\_ASBOX
9717 ## ------------------------------------ ##
9718 ## Report this to bug-autoconf@gnu.org. ##
9719 ## ------------------------------------ ##
9720 _ASBOX
9721     ) |
9722       sed "s/^/$as_me: WARNING:     /" >&2
9723     ;;
9724 esac
9725 echo "$as_me:$LINENO: checking for $ac_header" >&5
9726 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9727 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9728   echo $ECHO_N "(cached) $ECHO_C" >&6
9729 else
9730   eval "$as_ac_Header=$ac_header_preproc"
9731 fi
9732 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9733 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9734
9735 fi
9736 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9737   cat >>confdefs.h <<_ACEOF
9738 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9739 _ACEOF
9740
9741 fi
9742
9743 done
9744
9745 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9746 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9747 if test "${ac_cv_header_stdc+set}" = set; then
9748   echo $ECHO_N "(cached) $ECHO_C" >&6
9749 else
9750   cat >conftest.$ac_ext <<_ACEOF
9751 #line $LINENO "configure"
9752 /* confdefs.h.  */
9753 _ACEOF
9754 cat confdefs.h >>conftest.$ac_ext
9755 cat >>conftest.$ac_ext <<_ACEOF
9756 /* end confdefs.h.  */
9757 #include <stdlib.h>
9758 #include <stdarg.h>
9759 #include <string.h>
9760 #include <float.h>
9761
9762 int
9763 main ()
9764 {
9765
9766   ;
9767   return 0;
9768 }
9769 _ACEOF
9770 rm -f conftest.$ac_objext
9771 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9772   (eval $ac_compile) 2>&5
9773   ac_status=$?
9774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9775   (exit $ac_status); } &&
9776          { ac_try='test -s conftest.$ac_objext'
9777   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9778   (eval $ac_try) 2>&5
9779   ac_status=$?
9780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9781   (exit $ac_status); }; }; then
9782   ac_cv_header_stdc=yes
9783 else
9784   echo "$as_me: failed program was:" >&5
9785 sed 's/^/| /' conftest.$ac_ext >&5
9786
9787 ac_cv_header_stdc=no
9788 fi
9789 rm -f conftest.$ac_objext conftest.$ac_ext
9790
9791 if test $ac_cv_header_stdc = yes; then
9792   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9793   cat >conftest.$ac_ext <<_ACEOF
9794 #line $LINENO "configure"
9795 /* confdefs.h.  */
9796 _ACEOF
9797 cat confdefs.h >>conftest.$ac_ext
9798 cat >>conftest.$ac_ext <<_ACEOF
9799 /* end confdefs.h.  */
9800 #include <string.h>
9801
9802 _ACEOF
9803 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9804   $EGREP "memchr" >/dev/null 2>&1; then
9805   :
9806 else
9807   ac_cv_header_stdc=no
9808 fi
9809 rm -f conftest*
9810
9811 fi
9812
9813 if test $ac_cv_header_stdc = yes; then
9814   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9815   cat >conftest.$ac_ext <<_ACEOF
9816 #line $LINENO "configure"
9817 /* confdefs.h.  */
9818 _ACEOF
9819 cat confdefs.h >>conftest.$ac_ext
9820 cat >>conftest.$ac_ext <<_ACEOF
9821 /* end confdefs.h.  */
9822 #include <stdlib.h>
9823
9824 _ACEOF
9825 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9826   $EGREP "free" >/dev/null 2>&1; then
9827   :
9828 else
9829   ac_cv_header_stdc=no
9830 fi
9831 rm -f conftest*
9832
9833 fi
9834
9835 if test $ac_cv_header_stdc = yes; then
9836   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9837   if test "$cross_compiling" = yes; then
9838   :
9839 else
9840   cat >conftest.$ac_ext <<_ACEOF
9841 #line $LINENO "configure"
9842 /* confdefs.h.  */
9843 _ACEOF
9844 cat confdefs.h >>conftest.$ac_ext
9845 cat >>conftest.$ac_ext <<_ACEOF
9846 /* end confdefs.h.  */
9847 #include <ctype.h>
9848 #if ((' ' & 0x0FF) == 0x020)
9849 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9850 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9851 #else
9852 # define ISLOWER(c) \
9853                    (('a' <= (c) && (c) <= 'i') \
9854                      || ('j' <= (c) && (c) <= 'r') \
9855                      || ('s' <= (c) && (c) <= 'z'))
9856 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9857 #endif
9858
9859 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9860 int
9861 main ()
9862 {
9863   int i;
9864   for (i = 0; i < 256; i++)
9865     if (XOR (islower (i), ISLOWER (i))
9866         || toupper (i) != TOUPPER (i))
9867       exit(2);
9868   exit (0);
9869 }
9870 _ACEOF
9871 rm -f conftest$ac_exeext
9872 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9873   (eval $ac_link) 2>&5
9874   ac_status=$?
9875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9876   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9877   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9878   (eval $ac_try) 2>&5
9879   ac_status=$?
9880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9881   (exit $ac_status); }; }; then
9882   :
9883 else
9884   echo "$as_me: program exited with status $ac_status" >&5
9885 echo "$as_me: failed program was:" >&5
9886 sed 's/^/| /' conftest.$ac_ext >&5
9887
9888 ( exit $ac_status )
9889 ac_cv_header_stdc=no
9890 fi
9891 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9892 fi
9893 fi
9894 fi
9895 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9896 echo "${ECHO_T}$ac_cv_header_stdc" >&6
9897 if test $ac_cv_header_stdc = yes; then
9898
9899 cat >>confdefs.h <<\_ACEOF
9900 #define STDC_HEADERS 1
9901 _ACEOF
9902
9903 fi
9904
9905 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
9906 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
9907 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
9908   echo $ECHO_N "(cached) $ECHO_C" >&6
9909 else
9910   cat >conftest.$ac_ext <<_ACEOF
9911 #line $LINENO "configure"
9912 /* confdefs.h.  */
9913 _ACEOF
9914 cat confdefs.h >>conftest.$ac_ext
9915 cat >>conftest.$ac_ext <<_ACEOF
9916 /* end confdefs.h.  */
9917 #include <sys/types.h>
9918 int
9919 main ()
9920 {
9921 return makedev(0, 0);
9922   ;
9923   return 0;
9924 }
9925 _ACEOF
9926 rm -f conftest.$ac_objext conftest$ac_exeext
9927 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9928   (eval $ac_link) 2>&5
9929   ac_status=$?
9930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9931   (exit $ac_status); } &&
9932          { ac_try='test -s conftest$ac_exeext'
9933   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9934   (eval $ac_try) 2>&5
9935   ac_status=$?
9936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9937   (exit $ac_status); }; }; then
9938   ac_cv_header_sys_types_h_makedev=yes
9939 else
9940   echo "$as_me: failed program was:" >&5
9941 sed 's/^/| /' conftest.$ac_ext >&5
9942
9943 ac_cv_header_sys_types_h_makedev=no
9944 fi
9945 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9946
9947 fi
9948 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
9949 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
9950
9951 if test $ac_cv_header_sys_types_h_makedev = no; then
9952 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
9953   echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
9954 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
9955 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
9956   echo $ECHO_N "(cached) $ECHO_C" >&6
9957 fi
9958 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
9959 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
9960 else
9961   # Is the header compilable?
9962 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
9963 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
9964 cat >conftest.$ac_ext <<_ACEOF
9965 #line $LINENO "configure"
9966 /* confdefs.h.  */
9967 _ACEOF
9968 cat confdefs.h >>conftest.$ac_ext
9969 cat >>conftest.$ac_ext <<_ACEOF
9970 /* end confdefs.h.  */
9971 $ac_includes_default
9972 #include <sys/mkdev.h>
9973 _ACEOF
9974 rm -f conftest.$ac_objext
9975 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9976   (eval $ac_compile) 2>&5
9977   ac_status=$?
9978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9979   (exit $ac_status); } &&
9980          { ac_try='test -s conftest.$ac_objext'
9981   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9982   (eval $ac_try) 2>&5
9983   ac_status=$?
9984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9985   (exit $ac_status); }; }; then
9986   ac_header_compiler=yes
9987 else
9988   echo "$as_me: failed program was:" >&5
9989 sed 's/^/| /' conftest.$ac_ext >&5
9990
9991 ac_header_compiler=no
9992 fi
9993 rm -f conftest.$ac_objext conftest.$ac_ext
9994 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9995 echo "${ECHO_T}$ac_header_compiler" >&6
9996
9997 # Is the header present?
9998 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
9999 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
10000 cat >conftest.$ac_ext <<_ACEOF
10001 #line $LINENO "configure"
10002 /* confdefs.h.  */
10003 _ACEOF
10004 cat confdefs.h >>conftest.$ac_ext
10005 cat >>conftest.$ac_ext <<_ACEOF
10006 /* end confdefs.h.  */
10007 #include <sys/mkdev.h>
10008 _ACEOF
10009 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10010   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10011   ac_status=$?
10012   grep -v '^ *+' conftest.er1 >conftest.err
10013   rm -f conftest.er1
10014   cat conftest.err >&5
10015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10016   (exit $ac_status); } >/dev/null; then
10017   if test -s conftest.err; then
10018     ac_cpp_err=$ac_c_preproc_warn_flag
10019   else
10020     ac_cpp_err=
10021   fi
10022 else
10023   ac_cpp_err=yes
10024 fi
10025 if test -z "$ac_cpp_err"; then
10026   ac_header_preproc=yes
10027 else
10028   echo "$as_me: failed program was:" >&5
10029 sed 's/^/| /' conftest.$ac_ext >&5
10030
10031   ac_header_preproc=no
10032 fi
10033 rm -f conftest.err conftest.$ac_ext
10034 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10035 echo "${ECHO_T}$ac_header_preproc" >&6
10036
10037 # So?  What about this header?
10038 case $ac_header_compiler:$ac_header_preproc in
10039   yes:no )
10040     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
10041 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10042     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
10043 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
10044     (
10045       cat <<\_ASBOX
10046 ## ------------------------------------ ##
10047 ## Report this to bug-autoconf@gnu.org. ##
10048 ## ------------------------------------ ##
10049 _ASBOX
10050     ) |
10051       sed "s/^/$as_me: WARNING:     /" >&2
10052     ;;
10053   no:yes )
10054     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
10055 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
10056     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
10057 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
10058     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
10059 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
10060     (
10061       cat <<\_ASBOX
10062 ## ------------------------------------ ##
10063 ## Report this to bug-autoconf@gnu.org. ##
10064 ## ------------------------------------ ##
10065 _ASBOX
10066     ) |
10067       sed "s/^/$as_me: WARNING:     /" >&2
10068     ;;
10069 esac
10070 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
10071 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
10072 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
10073   echo $ECHO_N "(cached) $ECHO_C" >&6
10074 else
10075   ac_cv_header_sys_mkdev_h=$ac_header_preproc
10076 fi
10077 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
10078 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
10079
10080 fi
10081 if test $ac_cv_header_sys_mkdev_h = yes; then
10082
10083 cat >>confdefs.h <<\_ACEOF
10084 #define MAJOR_IN_MKDEV 1
10085 _ACEOF
10086
10087 fi
10088
10089
10090
10091   if test $ac_cv_header_sys_mkdev_h = no; then
10092     if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
10093   echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
10094 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
10095 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
10096   echo $ECHO_N "(cached) $ECHO_C" >&6
10097 fi
10098 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
10099 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
10100 else
10101   # Is the header compilable?
10102 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
10103 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
10104 cat >conftest.$ac_ext <<_ACEOF
10105 #line $LINENO "configure"
10106 /* confdefs.h.  */
10107 _ACEOF
10108 cat confdefs.h >>conftest.$ac_ext
10109 cat >>conftest.$ac_ext <<_ACEOF
10110 /* end confdefs.h.  */
10111 $ac_includes_default
10112 #include <sys/sysmacros.h>
10113 _ACEOF
10114 rm -f conftest.$ac_objext
10115 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10116   (eval $ac_compile) 2>&5
10117   ac_status=$?
10118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10119   (exit $ac_status); } &&
10120          { ac_try='test -s conftest.$ac_objext'
10121   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10122   (eval $ac_try) 2>&5
10123   ac_status=$?
10124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10125   (exit $ac_status); }; }; then
10126   ac_header_compiler=yes
10127 else
10128   echo "$as_me: failed program was:" >&5
10129 sed 's/^/| /' conftest.$ac_ext >&5
10130
10131 ac_header_compiler=no
10132 fi
10133 rm -f conftest.$ac_objext conftest.$ac_ext
10134 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10135 echo "${ECHO_T}$ac_header_compiler" >&6
10136
10137 # Is the header present?
10138 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
10139 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
10140 cat >conftest.$ac_ext <<_ACEOF
10141 #line $LINENO "configure"
10142 /* confdefs.h.  */
10143 _ACEOF
10144 cat confdefs.h >>conftest.$ac_ext
10145 cat >>conftest.$ac_ext <<_ACEOF
10146 /* end confdefs.h.  */
10147 #include <sys/sysmacros.h>
10148 _ACEOF
10149 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10150   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10151   ac_status=$?
10152   grep -v '^ *+' conftest.er1 >conftest.err
10153   rm -f conftest.er1
10154   cat conftest.err >&5
10155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10156   (exit $ac_status); } >/dev/null; then
10157   if test -s conftest.err; then
10158     ac_cpp_err=$ac_c_preproc_warn_flag
10159   else
10160     ac_cpp_err=
10161   fi
10162 else
10163   ac_cpp_err=yes
10164 fi
10165 if test -z "$ac_cpp_err"; then
10166   ac_header_preproc=yes
10167 else
10168   echo "$as_me: failed program was:" >&5
10169 sed 's/^/| /' conftest.$ac_ext >&5
10170
10171   ac_header_preproc=no
10172 fi
10173 rm -f conftest.err conftest.$ac_ext
10174 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10175 echo "${ECHO_T}$ac_header_preproc" >&6
10176
10177 # So?  What about this header?
10178 case $ac_header_compiler:$ac_header_preproc in
10179   yes:no )
10180     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
10181 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10182     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
10183 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
10184     (
10185       cat <<\_ASBOX
10186 ## ------------------------------------ ##
10187 ## Report this to bug-autoconf@gnu.org. ##
10188 ## ------------------------------------ ##
10189 _ASBOX
10190     ) |
10191       sed "s/^/$as_me: WARNING:     /" >&2
10192     ;;
10193   no:yes )
10194     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
10195 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
10196     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
10197 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
10198     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
10199 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
10200     (
10201       cat <<\_ASBOX
10202 ## ------------------------------------ ##
10203 ## Report this to bug-autoconf@gnu.org. ##
10204 ## ------------------------------------ ##
10205 _ASBOX
10206     ) |
10207       sed "s/^/$as_me: WARNING:     /" >&2
10208     ;;
10209 esac
10210 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
10211 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
10212 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
10213   echo $ECHO_N "(cached) $ECHO_C" >&6
10214 else
10215   ac_cv_header_sys_sysmacros_h=$ac_header_preproc
10216 fi
10217 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
10218 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
10219
10220 fi
10221 if test $ac_cv_header_sys_sysmacros_h = yes; then
10222
10223 cat >>confdefs.h <<\_ACEOF
10224 #define MAJOR_IN_SYSMACROS 1
10225 _ACEOF
10226
10227 fi
10228
10229
10230   fi
10231 fi
10232
10233
10234
10235
10236
10237
10238 ac_header_dirent=no
10239 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
10240   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
10241 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
10242 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
10243 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10244   echo $ECHO_N "(cached) $ECHO_C" >&6
10245 else
10246   cat >conftest.$ac_ext <<_ACEOF
10247 #line $LINENO "configure"
10248 /* confdefs.h.  */
10249 _ACEOF
10250 cat confdefs.h >>conftest.$ac_ext
10251 cat >>conftest.$ac_ext <<_ACEOF
10252 /* end confdefs.h.  */
10253 #include <sys/types.h>
10254 #include <$ac_hdr>
10255
10256 int
10257 main ()
10258 {
10259 if ((DIR *) 0)
10260 return 0;
10261   ;
10262   return 0;
10263 }
10264 _ACEOF
10265 rm -f conftest.$ac_objext
10266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10267   (eval $ac_compile) 2>&5
10268   ac_status=$?
10269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10270   (exit $ac_status); } &&
10271          { ac_try='test -s conftest.$ac_objext'
10272   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10273   (eval $ac_try) 2>&5
10274   ac_status=$?
10275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10276   (exit $ac_status); }; }; then
10277   eval "$as_ac_Header=yes"
10278 else
10279   echo "$as_me: failed program was:" >&5
10280 sed 's/^/| /' conftest.$ac_ext >&5
10281
10282 eval "$as_ac_Header=no"
10283 fi
10284 rm -f conftest.$ac_objext conftest.$ac_ext
10285 fi
10286 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10287 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10288 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10289   cat >>confdefs.h <<_ACEOF
10290 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
10291 _ACEOF
10292
10293 ac_header_dirent=$ac_hdr; break
10294 fi
10295
10296 done
10297 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
10298 if test $ac_header_dirent = dirent.h; then
10299   echo "$as_me:$LINENO: checking for library containing opendir" >&5
10300 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
10301 if test "${ac_cv_search_opendir+set}" = set; then
10302   echo $ECHO_N "(cached) $ECHO_C" >&6
10303 else
10304   ac_func_search_save_LIBS=$LIBS
10305 ac_cv_search_opendir=no
10306 cat >conftest.$ac_ext <<_ACEOF
10307 #line $LINENO "configure"
10308 /* confdefs.h.  */
10309 _ACEOF
10310 cat confdefs.h >>conftest.$ac_ext
10311 cat >>conftest.$ac_ext <<_ACEOF
10312 /* end confdefs.h.  */
10313
10314 /* Override any gcc2 internal prototype to avoid an error.  */
10315 #ifdef __cplusplus
10316 extern "C"
10317 #endif
10318 /* We use char because int might match the return type of a gcc2
10319    builtin and then its argument prototype would still apply.  */
10320 char opendir ();
10321 int
10322 main ()
10323 {
10324 opendir ();
10325   ;
10326   return 0;
10327 }
10328 _ACEOF
10329 rm -f conftest.$ac_objext conftest$ac_exeext
10330 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10331   (eval $ac_link) 2>&5
10332   ac_status=$?
10333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10334   (exit $ac_status); } &&
10335          { ac_try='test -s conftest$ac_exeext'
10336   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10337   (eval $ac_try) 2>&5
10338   ac_status=$?
10339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10340   (exit $ac_status); }; }; then
10341   ac_cv_search_opendir="none required"
10342 else
10343   echo "$as_me: failed program was:" >&5
10344 sed 's/^/| /' conftest.$ac_ext >&5
10345
10346 fi
10347 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10348 if test "$ac_cv_search_opendir" = no; then
10349   for ac_lib in dir; do
10350     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10351     cat >conftest.$ac_ext <<_ACEOF
10352 #line $LINENO "configure"
10353 /* confdefs.h.  */
10354 _ACEOF
10355 cat confdefs.h >>conftest.$ac_ext
10356 cat >>conftest.$ac_ext <<_ACEOF
10357 /* end confdefs.h.  */
10358
10359 /* Override any gcc2 internal prototype to avoid an error.  */
10360 #ifdef __cplusplus
10361 extern "C"
10362 #endif
10363 /* We use char because int might match the return type of a gcc2
10364    builtin and then its argument prototype would still apply.  */
10365 char opendir ();
10366 int
10367 main ()
10368 {
10369 opendir ();
10370   ;
10371   return 0;
10372 }
10373 _ACEOF
10374 rm -f conftest.$ac_objext conftest$ac_exeext
10375 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10376   (eval $ac_link) 2>&5
10377   ac_status=$?
10378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10379   (exit $ac_status); } &&
10380          { ac_try='test -s conftest$ac_exeext'
10381   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10382   (eval $ac_try) 2>&5
10383   ac_status=$?
10384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10385   (exit $ac_status); }; }; then
10386   ac_cv_search_opendir="-l$ac_lib"
10387 break
10388 else
10389   echo "$as_me: failed program was:" >&5
10390 sed 's/^/| /' conftest.$ac_ext >&5
10391
10392 fi
10393 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10394   done
10395 fi
10396 LIBS=$ac_func_search_save_LIBS
10397 fi
10398 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10399 echo "${ECHO_T}$ac_cv_search_opendir" >&6
10400 if test "$ac_cv_search_opendir" != no; then
10401   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
10402
10403 fi
10404
10405 else
10406   echo "$as_me:$LINENO: checking for library containing opendir" >&5
10407 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
10408 if test "${ac_cv_search_opendir+set}" = set; then
10409   echo $ECHO_N "(cached) $ECHO_C" >&6
10410 else
10411   ac_func_search_save_LIBS=$LIBS
10412 ac_cv_search_opendir=no
10413 cat >conftest.$ac_ext <<_ACEOF
10414 #line $LINENO "configure"
10415 /* confdefs.h.  */
10416 _ACEOF
10417 cat confdefs.h >>conftest.$ac_ext
10418 cat >>conftest.$ac_ext <<_ACEOF
10419 /* end confdefs.h.  */
10420
10421 /* Override any gcc2 internal prototype to avoid an error.  */
10422 #ifdef __cplusplus
10423 extern "C"
10424 #endif
10425 /* We use char because int might match the return type of a gcc2
10426    builtin and then its argument prototype would still apply.  */
10427 char opendir ();
10428 int
10429 main ()
10430 {
10431 opendir ();
10432   ;
10433   return 0;
10434 }
10435 _ACEOF
10436 rm -f conftest.$ac_objext conftest$ac_exeext
10437 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10438   (eval $ac_link) 2>&5
10439   ac_status=$?
10440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10441   (exit $ac_status); } &&
10442          { ac_try='test -s conftest$ac_exeext'
10443   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10444   (eval $ac_try) 2>&5
10445   ac_status=$?
10446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10447   (exit $ac_status); }; }; then
10448   ac_cv_search_opendir="none required"
10449 else
10450   echo "$as_me: failed program was:" >&5
10451 sed 's/^/| /' conftest.$ac_ext >&5
10452
10453 fi
10454 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10455 if test "$ac_cv_search_opendir" = no; then
10456   for ac_lib in x; do
10457     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10458     cat >conftest.$ac_ext <<_ACEOF
10459 #line $LINENO "configure"
10460 /* confdefs.h.  */
10461 _ACEOF
10462 cat confdefs.h >>conftest.$ac_ext
10463 cat >>conftest.$ac_ext <<_ACEOF
10464 /* end confdefs.h.  */
10465
10466 /* Override any gcc2 internal prototype to avoid an error.  */
10467 #ifdef __cplusplus
10468 extern "C"
10469 #endif
10470 /* We use char because int might match the return type of a gcc2
10471    builtin and then its argument prototype would still apply.  */
10472 char opendir ();
10473 int
10474 main ()
10475 {
10476 opendir ();
10477   ;
10478   return 0;
10479 }
10480 _ACEOF
10481 rm -f conftest.$ac_objext conftest$ac_exeext
10482 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10483   (eval $ac_link) 2>&5
10484   ac_status=$?
10485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10486   (exit $ac_status); } &&
10487          { ac_try='test -s conftest$ac_exeext'
10488   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10489   (eval $ac_try) 2>&5
10490   ac_status=$?
10491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10492   (exit $ac_status); }; }; then
10493   ac_cv_search_opendir="-l$ac_lib"
10494 break
10495 else
10496   echo "$as_me: failed program was:" >&5
10497 sed 's/^/| /' conftest.$ac_ext >&5
10498
10499 fi
10500 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10501   done
10502 fi
10503 LIBS=$ac_func_search_save_LIBS
10504 fi
10505 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10506 echo "${ECHO_T}$ac_cv_search_opendir" >&6
10507 if test "$ac_cv_search_opendir" != no; then
10508   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
10509
10510 fi
10511
10512 fi
10513
10514 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
10515 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
10516 if test "${ac_cv_header_stat_broken+set}" = set; then
10517   echo $ECHO_N "(cached) $ECHO_C" >&6
10518 else
10519   cat >conftest.$ac_ext <<_ACEOF
10520 #line $LINENO "configure"
10521 /* confdefs.h.  */
10522 _ACEOF
10523 cat confdefs.h >>conftest.$ac_ext
10524 cat >>conftest.$ac_ext <<_ACEOF
10525 /* end confdefs.h.  */
10526 #include <sys/types.h>
10527 #include <sys/stat.h>
10528
10529 #if defined(S_ISBLK) && defined(S_IFDIR)
10530 # if S_ISBLK (S_IFDIR)
10531 You lose.
10532 # endif
10533 #endif
10534
10535 #if defined(S_ISBLK) && defined(S_IFCHR)
10536 # if S_ISBLK (S_IFCHR)
10537 You lose.
10538 # endif
10539 #endif
10540
10541 #if defined(S_ISLNK) && defined(S_IFREG)
10542 # if S_ISLNK (S_IFREG)
10543 You lose.
10544 # endif
10545 #endif
10546
10547 #if defined(S_ISSOCK) && defined(S_IFREG)
10548 # if S_ISSOCK (S_IFREG)
10549 You lose.
10550 # endif
10551 #endif
10552
10553 _ACEOF
10554 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10555   $EGREP "You lose" >/dev/null 2>&1; then
10556   ac_cv_header_stat_broken=yes
10557 else
10558   ac_cv_header_stat_broken=no
10559 fi
10560 rm -f conftest*
10561
10562 fi
10563 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
10564 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
10565 if test $ac_cv_header_stat_broken = yes; then
10566
10567 cat >>confdefs.h <<\_ACEOF
10568 #define STAT_MACROS_BROKEN 1
10569 _ACEOF
10570
10571 fi
10572
10573 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
10574 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
10575 if test "${ac_cv_header_sys_wait_h+set}" = set; then
10576   echo $ECHO_N "(cached) $ECHO_C" >&6
10577 else
10578   cat >conftest.$ac_ext <<_ACEOF
10579 #line $LINENO "configure"
10580 /* confdefs.h.  */
10581 _ACEOF
10582 cat confdefs.h >>conftest.$ac_ext
10583 cat >>conftest.$ac_ext <<_ACEOF
10584 /* end confdefs.h.  */
10585 #include <sys/types.h>
10586 #include <sys/wait.h>
10587 #ifndef WEXITSTATUS
10588 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
10589 #endif
10590 #ifndef WIFEXITED
10591 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
10592 #endif
10593
10594 int
10595 main ()
10596 {
10597   int s;
10598   wait (&s);
10599   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
10600   ;
10601   return 0;
10602 }
10603 _ACEOF
10604 rm -f conftest.$ac_objext
10605 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10606   (eval $ac_compile) 2>&5
10607   ac_status=$?
10608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10609   (exit $ac_status); } &&
10610          { ac_try='test -s conftest.$ac_objext'
10611   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10612   (eval $ac_try) 2>&5
10613   ac_status=$?
10614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10615   (exit $ac_status); }; }; then
10616   ac_cv_header_sys_wait_h=yes
10617 else
10618   echo "$as_me: failed program was:" >&5
10619 sed 's/^/| /' conftest.$ac_ext >&5
10620
10621 ac_cv_header_sys_wait_h=no
10622 fi
10623 rm -f conftest.$ac_objext conftest.$ac_ext
10624 fi
10625 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
10626 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
10627 if test $ac_cv_header_sys_wait_h = yes; then
10628
10629 cat >>confdefs.h <<\_ACEOF
10630 #define HAVE_SYS_WAIT_H 1
10631 _ACEOF
10632
10633 fi
10634
10635 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
10636 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
10637 if test "${ac_cv_header_time+set}" = set; then
10638   echo $ECHO_N "(cached) $ECHO_C" >&6
10639 else
10640   cat >conftest.$ac_ext <<_ACEOF
10641 #line $LINENO "configure"
10642 /* confdefs.h.  */
10643 _ACEOF
10644 cat confdefs.h >>conftest.$ac_ext
10645 cat >>conftest.$ac_ext <<_ACEOF
10646 /* end confdefs.h.  */
10647 #include <sys/types.h>
10648 #include <sys/time.h>
10649 #include <time.h>
10650
10651 int
10652 main ()
10653 {
10654 if ((struct tm *) 0)
10655 return 0;
10656   ;
10657   return 0;
10658 }
10659 _ACEOF
10660 rm -f conftest.$ac_objext
10661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10662   (eval $ac_compile) 2>&5
10663   ac_status=$?
10664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10665   (exit $ac_status); } &&
10666          { ac_try='test -s conftest.$ac_objext'
10667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10668   (eval $ac_try) 2>&5
10669   ac_status=$?
10670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10671   (exit $ac_status); }; }; then
10672   ac_cv_header_time=yes
10673 else
10674   echo "$as_me: failed program was:" >&5
10675 sed 's/^/| /' conftest.$ac_ext >&5
10676
10677 ac_cv_header_time=no
10678 fi
10679 rm -f conftest.$ac_objext conftest.$ac_ext
10680 fi
10681 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
10682 echo "${ECHO_T}$ac_cv_header_time" >&6
10683 if test $ac_cv_header_time = yes; then
10684
10685 cat >>confdefs.h <<\_ACEOF
10686 #define TIME_WITH_SYS_TIME 1
10687 _ACEOF
10688
10689 fi
10690
10691
10692 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
10693 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
10694 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
10695   echo $ECHO_N "(cached) $ECHO_C" >&6
10696 else
10697   cat >conftest.$ac_ext <<_ACEOF
10698 #line $LINENO "configure"
10699 /* confdefs.h.  */
10700 _ACEOF
10701 cat confdefs.h >>conftest.$ac_ext
10702 cat >>conftest.$ac_ext <<_ACEOF
10703 /* end confdefs.h.  */
10704 $ac_includes_default
10705 int
10706 main ()
10707 {
10708 static struct stat ac_aggr;
10709 if (ac_aggr.st_blksize)
10710 return 0;
10711   ;
10712   return 0;
10713 }
10714 _ACEOF
10715 rm -f conftest.$ac_objext
10716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10717   (eval $ac_compile) 2>&5
10718   ac_status=$?
10719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10720   (exit $ac_status); } &&
10721          { ac_try='test -s conftest.$ac_objext'
10722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10723   (eval $ac_try) 2>&5
10724   ac_status=$?
10725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10726   (exit $ac_status); }; }; then
10727   ac_cv_member_struct_stat_st_blksize=yes
10728 else
10729   echo "$as_me: failed program was:" >&5
10730 sed 's/^/| /' conftest.$ac_ext >&5
10731
10732 cat >conftest.$ac_ext <<_ACEOF
10733 #line $LINENO "configure"
10734 /* confdefs.h.  */
10735 _ACEOF
10736 cat confdefs.h >>conftest.$ac_ext
10737 cat >>conftest.$ac_ext <<_ACEOF
10738 /* end confdefs.h.  */
10739 $ac_includes_default
10740 int
10741 main ()
10742 {
10743 static struct stat ac_aggr;
10744 if (sizeof ac_aggr.st_blksize)
10745 return 0;
10746   ;
10747   return 0;
10748 }
10749 _ACEOF
10750 rm -f conftest.$ac_objext
10751 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10752   (eval $ac_compile) 2>&5
10753   ac_status=$?
10754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10755   (exit $ac_status); } &&
10756          { ac_try='test -s conftest.$ac_objext'
10757   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10758   (eval $ac_try) 2>&5
10759   ac_status=$?
10760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10761   (exit $ac_status); }; }; then
10762   ac_cv_member_struct_stat_st_blksize=yes
10763 else
10764   echo "$as_me: failed program was:" >&5
10765 sed 's/^/| /' conftest.$ac_ext >&5
10766
10767 ac_cv_member_struct_stat_st_blksize=no
10768 fi
10769 rm -f conftest.$ac_objext conftest.$ac_ext
10770 fi
10771 rm -f conftest.$ac_objext conftest.$ac_ext
10772 fi
10773 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
10774 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
10775 if test $ac_cv_member_struct_stat_st_blksize = yes; then
10776
10777 cat >>confdefs.h <<_ACEOF
10778 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
10779 _ACEOF
10780
10781
10782 cat >>confdefs.h <<\_ACEOF
10783 #define HAVE_ST_BLKSIZE 1
10784 _ACEOF
10785
10786 fi
10787
10788
10789 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
10790 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
10791 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
10792   echo $ECHO_N "(cached) $ECHO_C" >&6
10793 else
10794   cat >conftest.$ac_ext <<_ACEOF
10795 #line $LINENO "configure"
10796 /* confdefs.h.  */
10797 _ACEOF
10798 cat confdefs.h >>conftest.$ac_ext
10799 cat >>conftest.$ac_ext <<_ACEOF
10800 /* end confdefs.h.  */
10801 $ac_includes_default
10802 int
10803 main ()
10804 {
10805 static struct stat ac_aggr;
10806 if (ac_aggr.st_blocks)
10807 return 0;
10808   ;
10809   return 0;
10810 }
10811 _ACEOF
10812 rm -f conftest.$ac_objext
10813 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10814   (eval $ac_compile) 2>&5
10815   ac_status=$?
10816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10817   (exit $ac_status); } &&
10818          { ac_try='test -s conftest.$ac_objext'
10819   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10820   (eval $ac_try) 2>&5
10821   ac_status=$?
10822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10823   (exit $ac_status); }; }; then
10824   ac_cv_member_struct_stat_st_blocks=yes
10825 else
10826   echo "$as_me: failed program was:" >&5
10827 sed 's/^/| /' conftest.$ac_ext >&5
10828
10829 cat >conftest.$ac_ext <<_ACEOF
10830 #line $LINENO "configure"
10831 /* confdefs.h.  */
10832 _ACEOF
10833 cat confdefs.h >>conftest.$ac_ext
10834 cat >>conftest.$ac_ext <<_ACEOF
10835 /* end confdefs.h.  */
10836 $ac_includes_default
10837 int
10838 main ()
10839 {
10840 static struct stat ac_aggr;
10841 if (sizeof ac_aggr.st_blocks)
10842 return 0;
10843   ;
10844   return 0;
10845 }
10846 _ACEOF
10847 rm -f conftest.$ac_objext
10848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10849   (eval $ac_compile) 2>&5
10850   ac_status=$?
10851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10852   (exit $ac_status); } &&
10853          { ac_try='test -s conftest.$ac_objext'
10854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10855   (eval $ac_try) 2>&5
10856   ac_status=$?
10857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10858   (exit $ac_status); }; }; then
10859   ac_cv_member_struct_stat_st_blocks=yes
10860 else
10861   echo "$as_me: failed program was:" >&5
10862 sed 's/^/| /' conftest.$ac_ext >&5
10863
10864 ac_cv_member_struct_stat_st_blocks=no
10865 fi
10866 rm -f conftest.$ac_objext conftest.$ac_ext
10867 fi
10868 rm -f conftest.$ac_objext conftest.$ac_ext
10869 fi
10870 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
10871 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
10872 if test $ac_cv_member_struct_stat_st_blocks = yes; then
10873
10874 cat >>confdefs.h <<_ACEOF
10875 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
10876 _ACEOF
10877
10878
10879 cat >>confdefs.h <<\_ACEOF
10880 #define HAVE_ST_BLOCKS 1
10881 _ACEOF
10882
10883 else
10884   LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
10885 fi
10886
10887
10888 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
10889 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
10890 if test "${ac_cv_struct_tm+set}" = set; then
10891   echo $ECHO_N "(cached) $ECHO_C" >&6
10892 else
10893   cat >conftest.$ac_ext <<_ACEOF
10894 #line $LINENO "configure"
10895 /* confdefs.h.  */
10896 _ACEOF
10897 cat confdefs.h >>conftest.$ac_ext
10898 cat >>conftest.$ac_ext <<_ACEOF
10899 /* end confdefs.h.  */
10900 #include <sys/types.h>
10901 #include <time.h>
10902
10903 int
10904 main ()
10905 {
10906 struct tm *tp; tp->tm_sec;
10907   ;
10908   return 0;
10909 }
10910 _ACEOF
10911 rm -f conftest.$ac_objext
10912 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10913   (eval $ac_compile) 2>&5
10914   ac_status=$?
10915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10916   (exit $ac_status); } &&
10917          { ac_try='test -s conftest.$ac_objext'
10918   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10919   (eval $ac_try) 2>&5
10920   ac_status=$?
10921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10922   (exit $ac_status); }; }; then
10923   ac_cv_struct_tm=time.h
10924 else
10925   echo "$as_me: failed program was:" >&5
10926 sed 's/^/| /' conftest.$ac_ext >&5
10927
10928 ac_cv_struct_tm=sys/time.h
10929 fi
10930 rm -f conftest.$ac_objext conftest.$ac_ext
10931 fi
10932 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
10933 echo "${ECHO_T}$ac_cv_struct_tm" >&6
10934 if test $ac_cv_struct_tm = sys/time.h; then
10935
10936 cat >>confdefs.h <<\_ACEOF
10937 #define TM_IN_SYS_TIME 1
10938 _ACEOF
10939
10940 fi
10941
10942 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
10943 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
10944 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
10945   echo $ECHO_N "(cached) $ECHO_C" >&6
10946 else
10947   cat >conftest.$ac_ext <<_ACEOF
10948 #line $LINENO "configure"
10949 /* confdefs.h.  */
10950 _ACEOF
10951 cat confdefs.h >>conftest.$ac_ext
10952 cat >>conftest.$ac_ext <<_ACEOF
10953 /* end confdefs.h.  */
10954 #include <sys/types.h>
10955 #include <$ac_cv_struct_tm>
10956
10957
10958 int
10959 main ()
10960 {
10961 static struct tm ac_aggr;
10962 if (ac_aggr.tm_zone)
10963 return 0;
10964   ;
10965   return 0;
10966 }
10967 _ACEOF
10968 rm -f conftest.$ac_objext
10969 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10970   (eval $ac_compile) 2>&5
10971   ac_status=$?
10972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10973   (exit $ac_status); } &&
10974          { ac_try='test -s conftest.$ac_objext'
10975   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10976   (eval $ac_try) 2>&5
10977   ac_status=$?
10978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10979   (exit $ac_status); }; }; then
10980   ac_cv_member_struct_tm_tm_zone=yes
10981 else
10982   echo "$as_me: failed program was:" >&5
10983 sed 's/^/| /' conftest.$ac_ext >&5
10984
10985 cat >conftest.$ac_ext <<_ACEOF
10986 #line $LINENO "configure"
10987 /* confdefs.h.  */
10988 _ACEOF
10989 cat confdefs.h >>conftest.$ac_ext
10990 cat >>conftest.$ac_ext <<_ACEOF
10991 /* end confdefs.h.  */
10992 #include <sys/types.h>
10993 #include <$ac_cv_struct_tm>
10994
10995
10996 int
10997 main ()
10998 {
10999 static struct tm ac_aggr;
11000 if (sizeof ac_aggr.tm_zone)
11001 return 0;
11002   ;
11003   return 0;
11004 }
11005 _ACEOF
11006 rm -f conftest.$ac_objext
11007 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11008   (eval $ac_compile) 2>&5
11009   ac_status=$?
11010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11011   (exit $ac_status); } &&
11012          { ac_try='test -s conftest.$ac_objext'
11013   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11014   (eval $ac_try) 2>&5
11015   ac_status=$?
11016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11017   (exit $ac_status); }; }; then
11018   ac_cv_member_struct_tm_tm_zone=yes
11019 else
11020   echo "$as_me: failed program was:" >&5
11021 sed 's/^/| /' conftest.$ac_ext >&5
11022
11023 ac_cv_member_struct_tm_tm_zone=no
11024 fi
11025 rm -f conftest.$ac_objext conftest.$ac_ext
11026 fi
11027 rm -f conftest.$ac_objext conftest.$ac_ext
11028 fi
11029 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
11030 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
11031 if test $ac_cv_member_struct_tm_tm_zone = yes; then
11032
11033 cat >>confdefs.h <<_ACEOF
11034 #define HAVE_STRUCT_TM_TM_ZONE 1
11035 _ACEOF
11036
11037
11038 fi
11039
11040 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
11041
11042 cat >>confdefs.h <<\_ACEOF
11043 #define HAVE_TM_ZONE 1
11044 _ACEOF
11045
11046 else
11047   echo "$as_me:$LINENO: checking for tzname" >&5
11048 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
11049 if test "${ac_cv_var_tzname+set}" = set; then
11050   echo $ECHO_N "(cached) $ECHO_C" >&6
11051 else
11052   cat >conftest.$ac_ext <<_ACEOF
11053 #line $LINENO "configure"
11054 /* confdefs.h.  */
11055 _ACEOF
11056 cat confdefs.h >>conftest.$ac_ext
11057 cat >>conftest.$ac_ext <<_ACEOF
11058 /* end confdefs.h.  */
11059 #include <time.h>
11060 #ifndef tzname /* For SGI.  */
11061 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
11062 #endif
11063
11064 int
11065 main ()
11066 {
11067 atoi(*tzname);
11068   ;
11069   return 0;
11070 }
11071 _ACEOF
11072 rm -f conftest.$ac_objext conftest$ac_exeext
11073 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11074   (eval $ac_link) 2>&5
11075   ac_status=$?
11076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11077   (exit $ac_status); } &&
11078          { ac_try='test -s conftest$ac_exeext'
11079   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11080   (eval $ac_try) 2>&5
11081   ac_status=$?
11082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11083   (exit $ac_status); }; }; then
11084   ac_cv_var_tzname=yes
11085 else
11086   echo "$as_me: failed program was:" >&5
11087 sed 's/^/| /' conftest.$ac_ext >&5
11088
11089 ac_cv_var_tzname=no
11090 fi
11091 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11092 fi
11093 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
11094 echo "${ECHO_T}$ac_cv_var_tzname" >&6
11095   if test $ac_cv_var_tzname = yes; then
11096
11097 cat >>confdefs.h <<\_ACEOF
11098 #define HAVE_TZNAME 1
11099 _ACEOF
11100
11101   fi
11102 fi
11103
11104
11105 echo "$as_me:$LINENO: checking for utime.h" >&5
11106 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6
11107 if test "${ba_cv_header_utime_h+set}" = set; then
11108   echo $ECHO_N "(cached) $ECHO_C" >&6
11109 else
11110   cat >conftest.$ac_ext <<_ACEOF
11111 #line $LINENO "configure"
11112 /* confdefs.h.  */
11113 _ACEOF
11114 cat confdefs.h >>conftest.$ac_ext
11115 cat >>conftest.$ac_ext <<_ACEOF
11116 /* end confdefs.h.  */
11117
11118 #include <sys/types.h>
11119 #include <utime.h>
11120 int
11121 main ()
11122 {
11123 struct utimbuf foo
11124   ;
11125   return 0;
11126 }
11127 _ACEOF
11128 rm -f conftest.$ac_objext
11129 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11130   (eval $ac_compile) 2>&5
11131   ac_status=$?
11132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11133   (exit $ac_status); } &&
11134          { ac_try='test -s conftest.$ac_objext'
11135   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11136   (eval $ac_try) 2>&5
11137   ac_status=$?
11138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11139   (exit $ac_status); }; }; then
11140   ba_cv_header_utime_h=yes
11141 else
11142   echo "$as_me: failed program was:" >&5
11143 sed 's/^/| /' conftest.$ac_ext >&5
11144
11145 ba_cv_header_utime_h=no
11146 fi
11147 rm -f conftest.$ac_objext conftest.$ac_ext
11148 fi
11149 echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
11150 echo "${ECHO_T}$ba_cv_header_utime_h" >&6
11151 test $ba_cv_header_utime_h = yes && cat >>confdefs.h <<\_ACEOF
11152 #define HAVE_UTIME_H 1
11153 _ACEOF
11154
11155
11156 echo "$as_me:$LINENO: checking for socklen_t" >&5
11157 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
11158 if test "${ba_cv_header_socklen_t+set}" = set; then
11159   echo $ECHO_N "(cached) $ECHO_C" >&6
11160 else
11161   cat >conftest.$ac_ext <<_ACEOF
11162 #line $LINENO "configure"
11163 /* confdefs.h.  */
11164 _ACEOF
11165 cat confdefs.h >>conftest.$ac_ext
11166 cat >>conftest.$ac_ext <<_ACEOF
11167 /* end confdefs.h.  */
11168
11169 #include <sys/types.h>
11170 #include <sys/socket.h>
11171 int
11172 main ()
11173 {
11174 socklen_t x
11175   ;
11176   return 0;
11177 }
11178 _ACEOF
11179 rm -f conftest.$ac_objext
11180 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11181   (eval $ac_compile) 2>&5
11182   ac_status=$?
11183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11184   (exit $ac_status); } &&
11185          { ac_try='test -s conftest.$ac_objext'
11186   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11187   (eval $ac_try) 2>&5
11188   ac_status=$?
11189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11190   (exit $ac_status); }; }; then
11191   ba_cv_header_socklen_t=yes
11192 else
11193   echo "$as_me: failed program was:" >&5
11194 sed 's/^/| /' conftest.$ac_ext >&5
11195
11196 ba_cv_header_socklen_t=no
11197 fi
11198 rm -f conftest.$ac_objext conftest.$ac_ext
11199 fi
11200 echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
11201 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6
11202 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
11203 #define HAVE_SOCKLEN_T 1
11204 _ACEOF
11205
11206
11207 echo "$as_me:$LINENO: checking for bigendian" >&5
11208 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6
11209 if test "${ba_cv_bigendian+set}" = set; then
11210   echo $ECHO_N "(cached) $ECHO_C" >&6
11211 else
11212   if test "$cross_compiling" = yes; then
11213   ba_cv_bigendian=no
11214 else
11215   cat >conftest.$ac_ext <<_ACEOF
11216 #line $LINENO "configure"
11217 /* confdefs.h.  */
11218 _ACEOF
11219 cat confdefs.h >>conftest.$ac_ext
11220 cat >>conftest.$ac_ext <<_ACEOF
11221 /* end confdefs.h.  */
11222 main(){long a=1L; char *p=(char *)&a; exit(*p);}
11223 _ACEOF
11224 rm -f conftest$ac_exeext
11225 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11226   (eval $ac_link) 2>&5
11227   ac_status=$?
11228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11229   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11230   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11231   (eval $ac_try) 2>&5
11232   ac_status=$?
11233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11234   (exit $ac_status); }; }; then
11235   ba_cv_bigendian=yes
11236 else
11237   echo "$as_me: program exited with status $ac_status" >&5
11238 echo "$as_me: failed program was:" >&5
11239 sed 's/^/| /' conftest.$ac_ext >&5
11240
11241 ( exit $ac_status )
11242 ba_cv_bigendian=no
11243 fi
11244 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11245 fi
11246 fi
11247 echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
11248 echo "${ECHO_T}$ba_cv_bigendian" >&6
11249 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
11250 #define HAVE_BIGENDIAN 1
11251 _ACEOF
11252
11253
11254
11255 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
11256 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
11257 if test "${ac_cv_c_const+set}" = set; then
11258   echo $ECHO_N "(cached) $ECHO_C" >&6
11259 else
11260   cat >conftest.$ac_ext <<_ACEOF
11261 #line $LINENO "configure"
11262 /* confdefs.h.  */
11263 _ACEOF
11264 cat confdefs.h >>conftest.$ac_ext
11265 cat >>conftest.$ac_ext <<_ACEOF
11266 /* end confdefs.h.  */
11267
11268 int
11269 main ()
11270 {
11271 /* FIXME: Include the comments suggested by Paul. */
11272 #ifndef __cplusplus
11273   /* Ultrix mips cc rejects this.  */
11274   typedef int charset[2];
11275   const charset x;
11276   /* SunOS 4.1.1 cc rejects this.  */
11277   char const *const *ccp;
11278   char **p;
11279   /* NEC SVR4.0.2 mips cc rejects this.  */
11280   struct point {int x, y;};
11281   static struct point const zero = {0,0};
11282   /* AIX XL C 1.02.0.0 rejects this.
11283      It does not let you subtract one const X* pointer from another in
11284      an arm of an if-expression whose if-part is not a constant
11285      expression */
11286   const char *g = "string";
11287   ccp = &g + (g ? g-g : 0);
11288   /* HPUX 7.0 cc rejects these. */
11289   ++ccp;
11290   p = (char**) ccp;
11291   ccp = (char const *const *) p;
11292   { /* SCO 3.2v4 cc rejects this.  */
11293     char *t;
11294     char const *s = 0 ? (char *) 0 : (char const *) 0;
11295
11296     *t++ = 0;
11297   }
11298   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
11299     int x[] = {25, 17};
11300     const int *foo = &x[0];
11301     ++foo;
11302   }
11303   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11304     typedef const int *iptr;
11305     iptr p = 0;
11306     ++p;
11307   }
11308   { /* AIX XL C 1.02.0.0 rejects this saying
11309        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11310     struct s { int j; const int *ap[3]; };
11311     struct s *b; b->j = 5;
11312   }
11313   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11314     const int foo = 10;
11315   }
11316 #endif
11317
11318   ;
11319   return 0;
11320 }
11321 _ACEOF
11322 rm -f conftest.$ac_objext
11323 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11324   (eval $ac_compile) 2>&5
11325   ac_status=$?
11326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11327   (exit $ac_status); } &&
11328          { ac_try='test -s conftest.$ac_objext'
11329   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11330   (eval $ac_try) 2>&5
11331   ac_status=$?
11332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11333   (exit $ac_status); }; }; then
11334   ac_cv_c_const=yes
11335 else
11336   echo "$as_me: failed program was:" >&5
11337 sed 's/^/| /' conftest.$ac_ext >&5
11338
11339 ac_cv_c_const=no
11340 fi
11341 rm -f conftest.$ac_objext conftest.$ac_ext
11342 fi
11343 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
11344 echo "${ECHO_T}$ac_cv_c_const" >&6
11345 if test $ac_cv_c_const = no; then
11346
11347 cat >>confdefs.h <<\_ACEOF
11348 #define const
11349 _ACEOF
11350
11351 fi
11352
11353
11354
11355 echo "$as_me:$LINENO: checking how to get filesystem type" >&5
11356 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6
11357 fstype=no
11358 # The order of these tests is important.
11359 cat >conftest.$ac_ext <<_ACEOF
11360 #line $LINENO "configure"
11361 /* confdefs.h.  */
11362 _ACEOF
11363 cat confdefs.h >>conftest.$ac_ext
11364 cat >>conftest.$ac_ext <<_ACEOF
11365 /* end confdefs.h.  */
11366 #include <sys/statvfs.h>
11367 #include <sys/fstyp.h>
11368 _ACEOF
11369 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11370   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11371   ac_status=$?
11372   grep -v '^ *+' conftest.er1 >conftest.err
11373   rm -f conftest.er1
11374   cat conftest.err >&5
11375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11376   (exit $ac_status); } >/dev/null; then
11377   if test -s conftest.err; then
11378     ac_cpp_err=$ac_c_preproc_warn_flag
11379   else
11380     ac_cpp_err=
11381   fi
11382 else
11383   ac_cpp_err=yes
11384 fi
11385 if test -z "$ac_cpp_err"; then
11386   cat >>confdefs.h <<\_ACEOF
11387 #define FSTYPE_STATVFS 1
11388 _ACEOF
11389  fstype=SVR4
11390 else
11391   echo "$as_me: failed program was:" >&5
11392 sed 's/^/| /' conftest.$ac_ext >&5
11393
11394
11395 fi
11396 rm -f conftest.err conftest.$ac_ext
11397 if test $fstype = no; then
11398 cat >conftest.$ac_ext <<_ACEOF
11399 #line $LINENO "configure"
11400 /* confdefs.h.  */
11401 _ACEOF
11402 cat confdefs.h >>conftest.$ac_ext
11403 cat >>conftest.$ac_ext <<_ACEOF
11404 /* end confdefs.h.  */
11405 #include <sys/statfs.h>
11406 #include <sys/fstyp.h>
11407 _ACEOF
11408 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11409   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11410   ac_status=$?
11411   grep -v '^ *+' conftest.er1 >conftest.err
11412   rm -f conftest.er1
11413   cat conftest.err >&5
11414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11415   (exit $ac_status); } >/dev/null; then
11416   if test -s conftest.err; then
11417     ac_cpp_err=$ac_c_preproc_warn_flag
11418   else
11419     ac_cpp_err=
11420   fi
11421 else
11422   ac_cpp_err=yes
11423 fi
11424 if test -z "$ac_cpp_err"; then
11425   cat >>confdefs.h <<\_ACEOF
11426 #define FSTYPE_USG_STATFS 1
11427 _ACEOF
11428  fstype=SVR3
11429 else
11430   echo "$as_me: failed program was:" >&5
11431 sed 's/^/| /' conftest.$ac_ext >&5
11432
11433
11434 fi
11435 rm -f conftest.err conftest.$ac_ext
11436 fi
11437 if test $fstype = no; then
11438 cat >conftest.$ac_ext <<_ACEOF
11439 #line $LINENO "configure"
11440 /* confdefs.h.  */
11441 _ACEOF
11442 cat confdefs.h >>conftest.$ac_ext
11443 cat >>conftest.$ac_ext <<_ACEOF
11444 /* end confdefs.h.  */
11445 #include <sys/statfs.h>
11446 #include <sys/vmount.h>
11447 _ACEOF
11448 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11449   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11450   ac_status=$?
11451   grep -v '^ *+' conftest.er1 >conftest.err
11452   rm -f conftest.er1
11453   cat conftest.err >&5
11454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11455   (exit $ac_status); } >/dev/null; then
11456   if test -s conftest.err; then
11457     ac_cpp_err=$ac_c_preproc_warn_flag
11458   else
11459     ac_cpp_err=
11460   fi
11461 else
11462   ac_cpp_err=yes
11463 fi
11464 if test -z "$ac_cpp_err"; then
11465   cat >>confdefs.h <<\_ACEOF
11466 #define FSTYPE_AIX_STATFS 1
11467 _ACEOF
11468  fstype=AIX
11469 else
11470   echo "$as_me: failed program was:" >&5
11471 sed 's/^/| /' conftest.$ac_ext >&5
11472
11473
11474 fi
11475 rm -f conftest.err conftest.$ac_ext
11476 fi
11477 if test $fstype = no; then
11478 cat >conftest.$ac_ext <<_ACEOF
11479 #line $LINENO "configure"
11480 /* confdefs.h.  */
11481 _ACEOF
11482 cat confdefs.h >>conftest.$ac_ext
11483 cat >>conftest.$ac_ext <<_ACEOF
11484 /* end confdefs.h.  */
11485 #include <mntent.h>
11486 _ACEOF
11487 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11488   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11489   ac_status=$?
11490   grep -v '^ *+' conftest.er1 >conftest.err
11491   rm -f conftest.er1
11492   cat conftest.err >&5
11493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11494   (exit $ac_status); } >/dev/null; then
11495   if test -s conftest.err; then
11496     ac_cpp_err=$ac_c_preproc_warn_flag
11497   else
11498     ac_cpp_err=
11499   fi
11500 else
11501   ac_cpp_err=yes
11502 fi
11503 if test -z "$ac_cpp_err"; then
11504   cat >>confdefs.h <<\_ACEOF
11505 #define FSTYPE_MNTENT 1
11506 _ACEOF
11507  fstype=4.3BSD
11508 else
11509   echo "$as_me: failed program was:" >&5
11510 sed 's/^/| /' conftest.$ac_ext >&5
11511
11512
11513 fi
11514 rm -f conftest.err conftest.$ac_ext
11515 fi
11516 if test $fstype = no; then
11517 cat >conftest.$ac_ext <<_ACEOF
11518 #line $LINENO "configure"
11519 /* confdefs.h.  */
11520 _ACEOF
11521 cat confdefs.h >>conftest.$ac_ext
11522 cat >>conftest.$ac_ext <<_ACEOF
11523 /* end confdefs.h.  */
11524 #include <sys/mount.h>
11525
11526 _ACEOF
11527 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11528   $EGREP "f_type;" >/dev/null 2>&1; then
11529   cat >>confdefs.h <<\_ACEOF
11530 #define FSTYPE_STATFS 1
11531 _ACEOF
11532  fstype=4.4BSD/OSF1
11533 fi
11534 rm -f conftest*
11535
11536 fi
11537 if test $fstype = no; then
11538 cat >conftest.$ac_ext <<_ACEOF
11539 #line $LINENO "configure"
11540 /* confdefs.h.  */
11541 _ACEOF
11542 cat confdefs.h >>conftest.$ac_ext
11543 cat >>conftest.$ac_ext <<_ACEOF
11544 /* end confdefs.h.  */
11545 #include <sys/mount.h>
11546 #include <sys/fs_types.h>
11547 _ACEOF
11548 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11549   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11550   ac_status=$?
11551   grep -v '^ *+' conftest.er1 >conftest.err
11552   rm -f conftest.er1
11553   cat conftest.err >&5
11554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11555   (exit $ac_status); } >/dev/null; then
11556   if test -s conftest.err; then
11557     ac_cpp_err=$ac_c_preproc_warn_flag
11558   else
11559     ac_cpp_err=
11560   fi
11561 else
11562   ac_cpp_err=yes
11563 fi
11564 if test -z "$ac_cpp_err"; then
11565   cat >>confdefs.h <<\_ACEOF
11566 #define FSTYPE_GETMNT 1
11567 _ACEOF
11568  fstype=Ultrix
11569 else
11570   echo "$as_me: failed program was:" >&5
11571 sed 's/^/| /' conftest.$ac_ext >&5
11572
11573
11574 fi
11575 rm -f conftest.err conftest.$ac_ext
11576 fi
11577 echo "$as_me:$LINENO: result: $fstype" >&5
11578 echo "${ECHO_T}$fstype" >&6
11579
11580 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
11581 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
11582 if test "${ac_cv_type_signal+set}" = set; then
11583   echo $ECHO_N "(cached) $ECHO_C" >&6
11584 else
11585   cat >conftest.$ac_ext <<_ACEOF
11586 #line $LINENO "configure"
11587 /* confdefs.h.  */
11588 _ACEOF
11589 cat confdefs.h >>conftest.$ac_ext
11590 cat >>conftest.$ac_ext <<_ACEOF
11591 /* end confdefs.h.  */
11592 #include <sys/types.h>
11593 #include <signal.h>
11594 #ifdef signal
11595 # undef signal
11596 #endif
11597 #ifdef __cplusplus
11598 extern "C" void (*signal (int, void (*)(int)))(int);
11599 #else
11600 void (*signal ()) ();
11601 #endif
11602
11603 int
11604 main ()
11605 {
11606 int i;
11607   ;
11608   return 0;
11609 }
11610 _ACEOF
11611 rm -f conftest.$ac_objext
11612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11613   (eval $ac_compile) 2>&5
11614   ac_status=$?
11615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11616   (exit $ac_status); } &&
11617          { ac_try='test -s conftest.$ac_objext'
11618   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11619   (eval $ac_try) 2>&5
11620   ac_status=$?
11621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11622   (exit $ac_status); }; }; then
11623   ac_cv_type_signal=void
11624 else
11625   echo "$as_me: failed program was:" >&5
11626 sed 's/^/| /' conftest.$ac_ext >&5
11627
11628 ac_cv_type_signal=int
11629 fi
11630 rm -f conftest.$ac_objext conftest.$ac_ext
11631 fi
11632 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
11633 echo "${ECHO_T}$ac_cv_type_signal" >&6
11634
11635 cat >>confdefs.h <<_ACEOF
11636 #define RETSIGTYPE $ac_cv_type_signal
11637 _ACEOF
11638
11639
11640
11641 echo "$as_me:$LINENO: checking for type of signal functions" >&5
11642 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6
11643 if test "${bash_cv_signal_vintage+set}" = set; then
11644   echo $ECHO_N "(cached) $ECHO_C" >&6
11645 else
11646
11647   cat >conftest.$ac_ext <<_ACEOF
11648 #line $LINENO "configure"
11649 /* confdefs.h.  */
11650 _ACEOF
11651 cat confdefs.h >>conftest.$ac_ext
11652 cat >>conftest.$ac_ext <<_ACEOF
11653 /* end confdefs.h.  */
11654 #include <signal.h>
11655 int
11656 main ()
11657 {
11658
11659     sigset_t ss;
11660     struct sigaction sa;
11661     sigemptyset(&ss); sigsuspend(&ss);
11662     sigaction(SIGINT, &sa, (struct sigaction *) 0);
11663     sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
11664
11665   ;
11666   return 0;
11667 }
11668 _ACEOF
11669 rm -f conftest.$ac_objext conftest$ac_exeext
11670 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11671   (eval $ac_link) 2>&5
11672   ac_status=$?
11673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11674   (exit $ac_status); } &&
11675          { ac_try='test -s conftest$ac_exeext'
11676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11677   (eval $ac_try) 2>&5
11678   ac_status=$?
11679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11680   (exit $ac_status); }; }; then
11681   bash_cv_signal_vintage=posix
11682 else
11683   echo "$as_me: failed program was:" >&5
11684 sed 's/^/| /' conftest.$ac_ext >&5
11685
11686
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 #include <signal.h>
11695 int
11696 main ()
11697 {
11698
11699         int mask = sigmask(SIGINT);
11700         sigsetmask(mask); sigblock(mask); sigpause(mask);
11701
11702   ;
11703   return 0;
11704 }
11705 _ACEOF
11706 rm -f conftest.$ac_objext conftest$ac_exeext
11707 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11708   (eval $ac_link) 2>&5
11709   ac_status=$?
11710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11711   (exit $ac_status); } &&
11712          { ac_try='test -s conftest$ac_exeext'
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   bash_cv_signal_vintage=4.2bsd
11719 else
11720   echo "$as_me: failed program was:" >&5
11721 sed 's/^/| /' conftest.$ac_ext >&5
11722
11723
11724       cat >conftest.$ac_ext <<_ACEOF
11725 #line $LINENO "configure"
11726 /* confdefs.h.  */
11727 _ACEOF
11728 cat confdefs.h >>conftest.$ac_ext
11729 cat >>conftest.$ac_ext <<_ACEOF
11730 /* end confdefs.h.  */
11731
11732         #include <signal.h>
11733         RETSIGTYPE foo() { }
11734 int
11735 main ()
11736 {
11737
11738                 int mask = sigmask(SIGINT);
11739                 sigset(SIGINT, foo); sigrelse(SIGINT);
11740                 sighold(SIGINT); sigpause(SIGINT);
11741
11742   ;
11743   return 0;
11744 }
11745 _ACEOF
11746 rm -f conftest.$ac_objext conftest$ac_exeext
11747 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11748   (eval $ac_link) 2>&5
11749   ac_status=$?
11750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11751   (exit $ac_status); } &&
11752          { ac_try='test -s conftest$ac_exeext'
11753   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11754   (eval $ac_try) 2>&5
11755   ac_status=$?
11756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11757   (exit $ac_status); }; }; then
11758   bash_cv_signal_vintage=svr3
11759 else
11760   echo "$as_me: failed program was:" >&5
11761 sed 's/^/| /' conftest.$ac_ext >&5
11762
11763 bash_cv_signal_vintage=v7
11764
11765 fi
11766 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11767
11768 fi
11769 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11770
11771 fi
11772 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11773
11774 fi
11775
11776 echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
11777 echo "${ECHO_T}$bash_cv_signal_vintage" >&6
11778 if test "$bash_cv_signal_vintage" = posix; then
11779 cat >>confdefs.h <<\_ACEOF
11780 #define HAVE_POSIX_SIGNALS 1
11781 _ACEOF
11782
11783 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
11784 cat >>confdefs.h <<\_ACEOF
11785 #define HAVE_BSD_SIGNALS 1
11786 _ACEOF
11787
11788 elif test "$bash_cv_signal_vintage" = svr3; then
11789 cat >>confdefs.h <<\_ACEOF
11790 #define HAVE_USG_SIGHOLD 1
11791 _ACEOF
11792
11793 fi
11794
11795 echo "$as_me:$LINENO: checking for mode_t" >&5
11796 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
11797 if test "${ac_cv_type_mode_t+set}" = set; then
11798   echo $ECHO_N "(cached) $ECHO_C" >&6
11799 else
11800   cat >conftest.$ac_ext <<_ACEOF
11801 #line $LINENO "configure"
11802 /* confdefs.h.  */
11803 _ACEOF
11804 cat confdefs.h >>conftest.$ac_ext
11805 cat >>conftest.$ac_ext <<_ACEOF
11806 /* end confdefs.h.  */
11807 $ac_includes_default
11808 int
11809 main ()
11810 {
11811 if ((mode_t *) 0)
11812   return 0;
11813 if (sizeof (mode_t))
11814   return 0;
11815   ;
11816   return 0;
11817 }
11818 _ACEOF
11819 rm -f conftest.$ac_objext
11820 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11821   (eval $ac_compile) 2>&5
11822   ac_status=$?
11823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11824   (exit $ac_status); } &&
11825          { ac_try='test -s conftest.$ac_objext'
11826   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11827   (eval $ac_try) 2>&5
11828   ac_status=$?
11829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11830   (exit $ac_status); }; }; then
11831   ac_cv_type_mode_t=yes
11832 else
11833   echo "$as_me: failed program was:" >&5
11834 sed 's/^/| /' conftest.$ac_ext >&5
11835
11836 ac_cv_type_mode_t=no
11837 fi
11838 rm -f conftest.$ac_objext conftest.$ac_ext
11839 fi
11840 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
11841 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
11842 if test $ac_cv_type_mode_t = yes; then
11843   :
11844 else
11845
11846 cat >>confdefs.h <<_ACEOF
11847 #define mode_t int
11848 _ACEOF
11849
11850 fi
11851
11852 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
11853 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
11854 if test "${ac_cv_type_uid_t+set}" = set; then
11855   echo $ECHO_N "(cached) $ECHO_C" >&6
11856 else
11857   cat >conftest.$ac_ext <<_ACEOF
11858 #line $LINENO "configure"
11859 /* confdefs.h.  */
11860 _ACEOF
11861 cat confdefs.h >>conftest.$ac_ext
11862 cat >>conftest.$ac_ext <<_ACEOF
11863 /* end confdefs.h.  */
11864 #include <sys/types.h>
11865
11866 _ACEOF
11867 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11868   $EGREP "uid_t" >/dev/null 2>&1; then
11869   ac_cv_type_uid_t=yes
11870 else
11871   ac_cv_type_uid_t=no
11872 fi
11873 rm -f conftest*
11874
11875 fi
11876 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
11877 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
11878 if test $ac_cv_type_uid_t = no; then
11879
11880 cat >>confdefs.h <<\_ACEOF
11881 #define uid_t int
11882 _ACEOF
11883
11884
11885 cat >>confdefs.h <<\_ACEOF
11886 #define gid_t int
11887 _ACEOF
11888
11889 fi
11890
11891 echo "$as_me:$LINENO: checking for size_t" >&5
11892 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
11893 if test "${ac_cv_type_size_t+set}" = set; then
11894   echo $ECHO_N "(cached) $ECHO_C" >&6
11895 else
11896   cat >conftest.$ac_ext <<_ACEOF
11897 #line $LINENO "configure"
11898 /* confdefs.h.  */
11899 _ACEOF
11900 cat confdefs.h >>conftest.$ac_ext
11901 cat >>conftest.$ac_ext <<_ACEOF
11902 /* end confdefs.h.  */
11903 $ac_includes_default
11904 int
11905 main ()
11906 {
11907 if ((size_t *) 0)
11908   return 0;
11909 if (sizeof (size_t))
11910   return 0;
11911   ;
11912   return 0;
11913 }
11914 _ACEOF
11915 rm -f conftest.$ac_objext
11916 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11917   (eval $ac_compile) 2>&5
11918   ac_status=$?
11919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11920   (exit $ac_status); } &&
11921          { ac_try='test -s conftest.$ac_objext'
11922   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11923   (eval $ac_try) 2>&5
11924   ac_status=$?
11925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11926   (exit $ac_status); }; }; then
11927   ac_cv_type_size_t=yes
11928 else
11929   echo "$as_me: failed program was:" >&5
11930 sed 's/^/| /' conftest.$ac_ext >&5
11931
11932 ac_cv_type_size_t=no
11933 fi
11934 rm -f conftest.$ac_objext conftest.$ac_ext
11935 fi
11936 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
11937 echo "${ECHO_T}$ac_cv_type_size_t" >&6
11938 if test $ac_cv_type_size_t = yes; then
11939   :
11940 else
11941
11942 cat >>confdefs.h <<_ACEOF
11943 #define size_t unsigned
11944 _ACEOF
11945
11946 fi
11947
11948 echo "$as_me:$LINENO: checking for pid_t" >&5
11949 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
11950 if test "${ac_cv_type_pid_t+set}" = set; then
11951   echo $ECHO_N "(cached) $ECHO_C" >&6
11952 else
11953   cat >conftest.$ac_ext <<_ACEOF
11954 #line $LINENO "configure"
11955 /* confdefs.h.  */
11956 _ACEOF
11957 cat confdefs.h >>conftest.$ac_ext
11958 cat >>conftest.$ac_ext <<_ACEOF
11959 /* end confdefs.h.  */
11960 $ac_includes_default
11961 int
11962 main ()
11963 {
11964 if ((pid_t *) 0)
11965   return 0;
11966 if (sizeof (pid_t))
11967   return 0;
11968   ;
11969   return 0;
11970 }
11971 _ACEOF
11972 rm -f conftest.$ac_objext
11973 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11974   (eval $ac_compile) 2>&5
11975   ac_status=$?
11976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11977   (exit $ac_status); } &&
11978          { ac_try='test -s conftest.$ac_objext'
11979   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11980   (eval $ac_try) 2>&5
11981   ac_status=$?
11982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11983   (exit $ac_status); }; }; then
11984   ac_cv_type_pid_t=yes
11985 else
11986   echo "$as_me: failed program was:" >&5
11987 sed 's/^/| /' conftest.$ac_ext >&5
11988
11989 ac_cv_type_pid_t=no
11990 fi
11991 rm -f conftest.$ac_objext conftest.$ac_ext
11992 fi
11993 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
11994 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
11995 if test $ac_cv_type_pid_t = yes; then
11996   :
11997 else
11998
11999 cat >>confdefs.h <<_ACEOF
12000 #define pid_t int
12001 _ACEOF
12002
12003 fi
12004
12005 echo "$as_me:$LINENO: checking for off_t" >&5
12006 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
12007 if test "${ac_cv_type_off_t+set}" = set; then
12008   echo $ECHO_N "(cached) $ECHO_C" >&6
12009 else
12010   cat >conftest.$ac_ext <<_ACEOF
12011 #line $LINENO "configure"
12012 /* confdefs.h.  */
12013 _ACEOF
12014 cat confdefs.h >>conftest.$ac_ext
12015 cat >>conftest.$ac_ext <<_ACEOF
12016 /* end confdefs.h.  */
12017 $ac_includes_default
12018 int
12019 main ()
12020 {
12021 if ((off_t *) 0)
12022   return 0;
12023 if (sizeof (off_t))
12024   return 0;
12025   ;
12026   return 0;
12027 }
12028 _ACEOF
12029 rm -f conftest.$ac_objext
12030 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12031   (eval $ac_compile) 2>&5
12032   ac_status=$?
12033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12034   (exit $ac_status); } &&
12035          { ac_try='test -s conftest.$ac_objext'
12036   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12037   (eval $ac_try) 2>&5
12038   ac_status=$?
12039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12040   (exit $ac_status); }; }; then
12041   ac_cv_type_off_t=yes
12042 else
12043   echo "$as_me: failed program was:" >&5
12044 sed 's/^/| /' conftest.$ac_ext >&5
12045
12046 ac_cv_type_off_t=no
12047 fi
12048 rm -f conftest.$ac_objext conftest.$ac_ext
12049 fi
12050 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
12051 echo "${ECHO_T}$ac_cv_type_off_t" >&6
12052 if test $ac_cv_type_off_t = yes; then
12053   :
12054 else
12055
12056 cat >>confdefs.h <<_ACEOF
12057 #define off_t long
12058 _ACEOF
12059
12060 fi
12061
12062 echo "$as_me:$LINENO: checking for ino_t" >&5
12063 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
12064 if test "${ac_cv_type_ino_t+set}" = set; then
12065   echo $ECHO_N "(cached) $ECHO_C" >&6
12066 else
12067   cat >conftest.$ac_ext <<_ACEOF
12068 #line $LINENO "configure"
12069 /* confdefs.h.  */
12070 _ACEOF
12071 cat confdefs.h >>conftest.$ac_ext
12072 cat >>conftest.$ac_ext <<_ACEOF
12073 /* end confdefs.h.  */
12074 $ac_includes_default
12075 int
12076 main ()
12077 {
12078 if ((ino_t *) 0)
12079   return 0;
12080 if (sizeof (ino_t))
12081   return 0;
12082   ;
12083   return 0;
12084 }
12085 _ACEOF
12086 rm -f conftest.$ac_objext
12087 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12088   (eval $ac_compile) 2>&5
12089   ac_status=$?
12090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12091   (exit $ac_status); } &&
12092          { ac_try='test -s conftest.$ac_objext'
12093   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12094   (eval $ac_try) 2>&5
12095   ac_status=$?
12096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12097   (exit $ac_status); }; }; then
12098   ac_cv_type_ino_t=yes
12099 else
12100   echo "$as_me: failed program was:" >&5
12101 sed 's/^/| /' conftest.$ac_ext >&5
12102
12103 ac_cv_type_ino_t=no
12104 fi
12105 rm -f conftest.$ac_objext conftest.$ac_ext
12106 fi
12107 echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
12108 echo "${ECHO_T}$ac_cv_type_ino_t" >&6
12109 if test $ac_cv_type_ino_t = yes; then
12110   :
12111 else
12112
12113 cat >>confdefs.h <<_ACEOF
12114 #define ino_t unsigned long
12115 _ACEOF
12116
12117 fi
12118
12119 echo "$as_me:$LINENO: checking for dev_t" >&5
12120 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6
12121 if test "${ac_cv_type_dev_t+set}" = set; then
12122   echo $ECHO_N "(cached) $ECHO_C" >&6
12123 else
12124   cat >conftest.$ac_ext <<_ACEOF
12125 #line $LINENO "configure"
12126 /* confdefs.h.  */
12127 _ACEOF
12128 cat confdefs.h >>conftest.$ac_ext
12129 cat >>conftest.$ac_ext <<_ACEOF
12130 /* end confdefs.h.  */
12131 $ac_includes_default
12132 int
12133 main ()
12134 {
12135 if ((dev_t *) 0)
12136   return 0;
12137 if (sizeof (dev_t))
12138   return 0;
12139   ;
12140   return 0;
12141 }
12142 _ACEOF
12143 rm -f conftest.$ac_objext
12144 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12145   (eval $ac_compile) 2>&5
12146   ac_status=$?
12147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12148   (exit $ac_status); } &&
12149          { ac_try='test -s conftest.$ac_objext'
12150   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12151   (eval $ac_try) 2>&5
12152   ac_status=$?
12153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12154   (exit $ac_status); }; }; then
12155   ac_cv_type_dev_t=yes
12156 else
12157   echo "$as_me: failed program was:" >&5
12158 sed 's/^/| /' conftest.$ac_ext >&5
12159
12160 ac_cv_type_dev_t=no
12161 fi
12162 rm -f conftest.$ac_objext conftest.$ac_ext
12163 fi
12164 echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
12165 echo "${ECHO_T}$ac_cv_type_dev_t" >&6
12166 if test $ac_cv_type_dev_t = yes; then
12167   :
12168 else
12169
12170 cat >>confdefs.h <<_ACEOF
12171 #define dev_t unsigned long
12172 _ACEOF
12173
12174 fi
12175
12176 echo "$as_me:$LINENO: checking for daddr_t" >&5
12177 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6
12178 if test "${ac_cv_type_daddr_t+set}" = set; then
12179   echo $ECHO_N "(cached) $ECHO_C" >&6
12180 else
12181   cat >conftest.$ac_ext <<_ACEOF
12182 #line $LINENO "configure"
12183 /* confdefs.h.  */
12184 _ACEOF
12185 cat confdefs.h >>conftest.$ac_ext
12186 cat >>conftest.$ac_ext <<_ACEOF
12187 /* end confdefs.h.  */
12188 $ac_includes_default
12189 int
12190 main ()
12191 {
12192 if ((daddr_t *) 0)
12193   return 0;
12194 if (sizeof (daddr_t))
12195   return 0;
12196   ;
12197   return 0;
12198 }
12199 _ACEOF
12200 rm -f conftest.$ac_objext
12201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12202   (eval $ac_compile) 2>&5
12203   ac_status=$?
12204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12205   (exit $ac_status); } &&
12206          { ac_try='test -s conftest.$ac_objext'
12207   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12208   (eval $ac_try) 2>&5
12209   ac_status=$?
12210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12211   (exit $ac_status); }; }; then
12212   ac_cv_type_daddr_t=yes
12213 else
12214   echo "$as_me: failed program was:" >&5
12215 sed 's/^/| /' conftest.$ac_ext >&5
12216
12217 ac_cv_type_daddr_t=no
12218 fi
12219 rm -f conftest.$ac_objext conftest.$ac_ext
12220 fi
12221 echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
12222 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6
12223 if test $ac_cv_type_daddr_t = yes; then
12224   :
12225 else
12226
12227 cat >>confdefs.h <<_ACEOF
12228 #define daddr_t long
12229 _ACEOF
12230
12231 fi
12232
12233 echo "$as_me:$LINENO: checking for major_t" >&5
12234 echo $ECHO_N "checking for major_t... $ECHO_C" >&6
12235 if test "${ac_cv_type_major_t+set}" = set; then
12236   echo $ECHO_N "(cached) $ECHO_C" >&6
12237 else
12238   cat >conftest.$ac_ext <<_ACEOF
12239 #line $LINENO "configure"
12240 /* confdefs.h.  */
12241 _ACEOF
12242 cat confdefs.h >>conftest.$ac_ext
12243 cat >>conftest.$ac_ext <<_ACEOF
12244 /* end confdefs.h.  */
12245 $ac_includes_default
12246 int
12247 main ()
12248 {
12249 if ((major_t *) 0)
12250   return 0;
12251 if (sizeof (major_t))
12252   return 0;
12253   ;
12254   return 0;
12255 }
12256 _ACEOF
12257 rm -f conftest.$ac_objext
12258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12259   (eval $ac_compile) 2>&5
12260   ac_status=$?
12261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12262   (exit $ac_status); } &&
12263          { ac_try='test -s conftest.$ac_objext'
12264   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12265   (eval $ac_try) 2>&5
12266   ac_status=$?
12267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12268   (exit $ac_status); }; }; then
12269   ac_cv_type_major_t=yes
12270 else
12271   echo "$as_me: failed program was:" >&5
12272 sed 's/^/| /' conftest.$ac_ext >&5
12273
12274 ac_cv_type_major_t=no
12275 fi
12276 rm -f conftest.$ac_objext conftest.$ac_ext
12277 fi
12278 echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
12279 echo "${ECHO_T}$ac_cv_type_major_t" >&6
12280 if test $ac_cv_type_major_t = yes; then
12281   :
12282 else
12283
12284 cat >>confdefs.h <<_ACEOF
12285 #define major_t int
12286 _ACEOF
12287
12288 fi
12289
12290 echo "$as_me:$LINENO: checking for minor_t" >&5
12291 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6
12292 if test "${ac_cv_type_minor_t+set}" = set; then
12293   echo $ECHO_N "(cached) $ECHO_C" >&6
12294 else
12295   cat >conftest.$ac_ext <<_ACEOF
12296 #line $LINENO "configure"
12297 /* confdefs.h.  */
12298 _ACEOF
12299 cat confdefs.h >>conftest.$ac_ext
12300 cat >>conftest.$ac_ext <<_ACEOF
12301 /* end confdefs.h.  */
12302 $ac_includes_default
12303 int
12304 main ()
12305 {
12306 if ((minor_t *) 0)
12307   return 0;
12308 if (sizeof (minor_t))
12309   return 0;
12310   ;
12311   return 0;
12312 }
12313 _ACEOF
12314 rm -f conftest.$ac_objext
12315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12316   (eval $ac_compile) 2>&5
12317   ac_status=$?
12318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12319   (exit $ac_status); } &&
12320          { ac_try='test -s conftest.$ac_objext'
12321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12322   (eval $ac_try) 2>&5
12323   ac_status=$?
12324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12325   (exit $ac_status); }; }; then
12326   ac_cv_type_minor_t=yes
12327 else
12328   echo "$as_me: failed program was:" >&5
12329 sed 's/^/| /' conftest.$ac_ext >&5
12330
12331 ac_cv_type_minor_t=no
12332 fi
12333 rm -f conftest.$ac_objext conftest.$ac_ext
12334 fi
12335 echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
12336 echo "${ECHO_T}$ac_cv_type_minor_t" >&6
12337 if test $ac_cv_type_minor_t = yes; then
12338   :
12339 else
12340
12341 cat >>confdefs.h <<_ACEOF
12342 #define minor_t int
12343 _ACEOF
12344
12345 fi
12346
12347 echo "$as_me:$LINENO: checking for ssize_t" >&5
12348 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
12349 if test "${ac_cv_type_ssize_t+set}" = set; then
12350   echo $ECHO_N "(cached) $ECHO_C" >&6
12351 else
12352   cat >conftest.$ac_ext <<_ACEOF
12353 #line $LINENO "configure"
12354 /* confdefs.h.  */
12355 _ACEOF
12356 cat confdefs.h >>conftest.$ac_ext
12357 cat >>conftest.$ac_ext <<_ACEOF
12358 /* end confdefs.h.  */
12359 $ac_includes_default
12360 int
12361 main ()
12362 {
12363 if ((ssize_t *) 0)
12364   return 0;
12365 if (sizeof (ssize_t))
12366   return 0;
12367   ;
12368   return 0;
12369 }
12370 _ACEOF
12371 rm -f conftest.$ac_objext
12372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12373   (eval $ac_compile) 2>&5
12374   ac_status=$?
12375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12376   (exit $ac_status); } &&
12377          { ac_try='test -s conftest.$ac_objext'
12378   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12379   (eval $ac_try) 2>&5
12380   ac_status=$?
12381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12382   (exit $ac_status); }; }; then
12383   ac_cv_type_ssize_t=yes
12384 else
12385   echo "$as_me: failed program was:" >&5
12386 sed 's/^/| /' conftest.$ac_ext >&5
12387
12388 ac_cv_type_ssize_t=no
12389 fi
12390 rm -f conftest.$ac_objext conftest.$ac_ext
12391 fi
12392 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
12393 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
12394 if test $ac_cv_type_ssize_t = yes; then
12395   :
12396 else
12397
12398 cat >>confdefs.h <<_ACEOF
12399 #define ssize_t int
12400 _ACEOF
12401
12402 fi
12403
12404 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
12405 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
12406 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
12407   echo $ECHO_N "(cached) $ECHO_C" >&6
12408 else
12409   cat >conftest.$ac_ext <<_ACEOF
12410 #line $LINENO "configure"
12411 /* confdefs.h.  */
12412 _ACEOF
12413 cat confdefs.h >>conftest.$ac_ext
12414 cat >>conftest.$ac_ext <<_ACEOF
12415 /* end confdefs.h.  */
12416 $ac_includes_default
12417 int
12418 main ()
12419 {
12420 static struct stat ac_aggr;
12421 if (ac_aggr.st_blocks)
12422 return 0;
12423   ;
12424   return 0;
12425 }
12426 _ACEOF
12427 rm -f conftest.$ac_objext
12428 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12429   (eval $ac_compile) 2>&5
12430   ac_status=$?
12431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12432   (exit $ac_status); } &&
12433          { ac_try='test -s conftest.$ac_objext'
12434   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12435   (eval $ac_try) 2>&5
12436   ac_status=$?
12437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12438   (exit $ac_status); }; }; then
12439   ac_cv_member_struct_stat_st_blocks=yes
12440 else
12441   echo "$as_me: failed program was:" >&5
12442 sed 's/^/| /' conftest.$ac_ext >&5
12443
12444 cat >conftest.$ac_ext <<_ACEOF
12445 #line $LINENO "configure"
12446 /* confdefs.h.  */
12447 _ACEOF
12448 cat confdefs.h >>conftest.$ac_ext
12449 cat >>conftest.$ac_ext <<_ACEOF
12450 /* end confdefs.h.  */
12451 $ac_includes_default
12452 int
12453 main ()
12454 {
12455 static struct stat ac_aggr;
12456 if (sizeof ac_aggr.st_blocks)
12457 return 0;
12458   ;
12459   return 0;
12460 }
12461 _ACEOF
12462 rm -f conftest.$ac_objext
12463 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12464   (eval $ac_compile) 2>&5
12465   ac_status=$?
12466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12467   (exit $ac_status); } &&
12468          { ac_try='test -s conftest.$ac_objext'
12469   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12470   (eval $ac_try) 2>&5
12471   ac_status=$?
12472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12473   (exit $ac_status); }; }; then
12474   ac_cv_member_struct_stat_st_blocks=yes
12475 else
12476   echo "$as_me: failed program was:" >&5
12477 sed 's/^/| /' conftest.$ac_ext >&5
12478
12479 ac_cv_member_struct_stat_st_blocks=no
12480 fi
12481 rm -f conftest.$ac_objext conftest.$ac_ext
12482 fi
12483 rm -f conftest.$ac_objext conftest.$ac_ext
12484 fi
12485 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
12486 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
12487 if test $ac_cv_member_struct_stat_st_blocks = yes; then
12488
12489 cat >>confdefs.h <<_ACEOF
12490 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
12491 _ACEOF
12492
12493
12494 cat >>confdefs.h <<\_ACEOF
12495 #define HAVE_ST_BLOCKS 1
12496 _ACEOF
12497
12498 else
12499   LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
12500 fi
12501
12502
12503
12504 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
12505 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
12506 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
12507   echo $ECHO_N "(cached) $ECHO_C" >&6
12508 else
12509   cat >conftest.$ac_ext <<_ACEOF
12510 #line $LINENO "configure"
12511 /* confdefs.h.  */
12512 _ACEOF
12513 cat confdefs.h >>conftest.$ac_ext
12514 cat >>conftest.$ac_ext <<_ACEOF
12515 /* end confdefs.h.  */
12516 $ac_includes_default
12517 int
12518 main ()
12519 {
12520 static struct stat ac_aggr;
12521 if (ac_aggr.st_rdev)
12522 return 0;
12523   ;
12524   return 0;
12525 }
12526 _ACEOF
12527 rm -f conftest.$ac_objext
12528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12529   (eval $ac_compile) 2>&5
12530   ac_status=$?
12531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12532   (exit $ac_status); } &&
12533          { ac_try='test -s conftest.$ac_objext'
12534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12535   (eval $ac_try) 2>&5
12536   ac_status=$?
12537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12538   (exit $ac_status); }; }; then
12539   ac_cv_member_struct_stat_st_rdev=yes
12540 else
12541   echo "$as_me: failed program was:" >&5
12542 sed 's/^/| /' conftest.$ac_ext >&5
12543
12544 cat >conftest.$ac_ext <<_ACEOF
12545 #line $LINENO "configure"
12546 /* confdefs.h.  */
12547 _ACEOF
12548 cat confdefs.h >>conftest.$ac_ext
12549 cat >>conftest.$ac_ext <<_ACEOF
12550 /* end confdefs.h.  */
12551 $ac_includes_default
12552 int
12553 main ()
12554 {
12555 static struct stat ac_aggr;
12556 if (sizeof ac_aggr.st_rdev)
12557 return 0;
12558   ;
12559   return 0;
12560 }
12561 _ACEOF
12562 rm -f conftest.$ac_objext
12563 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12564   (eval $ac_compile) 2>&5
12565   ac_status=$?
12566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12567   (exit $ac_status); } &&
12568          { ac_try='test -s conftest.$ac_objext'
12569   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12570   (eval $ac_try) 2>&5
12571   ac_status=$?
12572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12573   (exit $ac_status); }; }; then
12574   ac_cv_member_struct_stat_st_rdev=yes
12575 else
12576   echo "$as_me: failed program was:" >&5
12577 sed 's/^/| /' conftest.$ac_ext >&5
12578
12579 ac_cv_member_struct_stat_st_rdev=no
12580 fi
12581 rm -f conftest.$ac_objext conftest.$ac_ext
12582 fi
12583 rm -f conftest.$ac_objext conftest.$ac_ext
12584 fi
12585 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
12586 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
12587 if test $ac_cv_member_struct_stat_st_rdev = yes; then
12588
12589 cat >>confdefs.h <<_ACEOF
12590 #define HAVE_STRUCT_STAT_ST_RDEV 1
12591 _ACEOF
12592
12593
12594 cat >>confdefs.h <<\_ACEOF
12595 #define HAVE_ST_RDEV 1
12596 _ACEOF
12597
12598 fi
12599
12600
12601 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
12602 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
12603 if test "${ac_cv_struct_tm+set}" = set; then
12604   echo $ECHO_N "(cached) $ECHO_C" >&6
12605 else
12606   cat >conftest.$ac_ext <<_ACEOF
12607 #line $LINENO "configure"
12608 /* confdefs.h.  */
12609 _ACEOF
12610 cat confdefs.h >>conftest.$ac_ext
12611 cat >>conftest.$ac_ext <<_ACEOF
12612 /* end confdefs.h.  */
12613 #include <sys/types.h>
12614 #include <time.h>
12615
12616 int
12617 main ()
12618 {
12619 struct tm *tp; tp->tm_sec;
12620   ;
12621   return 0;
12622 }
12623 _ACEOF
12624 rm -f conftest.$ac_objext
12625 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12626   (eval $ac_compile) 2>&5
12627   ac_status=$?
12628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12629   (exit $ac_status); } &&
12630          { ac_try='test -s conftest.$ac_objext'
12631   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12632   (eval $ac_try) 2>&5
12633   ac_status=$?
12634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12635   (exit $ac_status); }; }; then
12636   ac_cv_struct_tm=time.h
12637 else
12638   echo "$as_me: failed program was:" >&5
12639 sed 's/^/| /' conftest.$ac_ext >&5
12640
12641 ac_cv_struct_tm=sys/time.h
12642 fi
12643 rm -f conftest.$ac_objext conftest.$ac_ext
12644 fi
12645 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
12646 echo "${ECHO_T}$ac_cv_struct_tm" >&6
12647 if test $ac_cv_struct_tm = sys/time.h; then
12648
12649 cat >>confdefs.h <<\_ACEOF
12650 #define TM_IN_SYS_TIME 1
12651 _ACEOF
12652
12653 fi
12654
12655 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
12656 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
12657 if test "${ac_cv_c_const+set}" = set; then
12658   echo $ECHO_N "(cached) $ECHO_C" >&6
12659 else
12660   cat >conftest.$ac_ext <<_ACEOF
12661 #line $LINENO "configure"
12662 /* confdefs.h.  */
12663 _ACEOF
12664 cat confdefs.h >>conftest.$ac_ext
12665 cat >>conftest.$ac_ext <<_ACEOF
12666 /* end confdefs.h.  */
12667
12668 int
12669 main ()
12670 {
12671 /* FIXME: Include the comments suggested by Paul. */
12672 #ifndef __cplusplus
12673   /* Ultrix mips cc rejects this.  */
12674   typedef int charset[2];
12675   const charset x;
12676   /* SunOS 4.1.1 cc rejects this.  */
12677   char const *const *ccp;
12678   char **p;
12679   /* NEC SVR4.0.2 mips cc rejects this.  */
12680   struct point {int x, y;};
12681   static struct point const zero = {0,0};
12682   /* AIX XL C 1.02.0.0 rejects this.
12683      It does not let you subtract one const X* pointer from another in
12684      an arm of an if-expression whose if-part is not a constant
12685      expression */
12686   const char *g = "string";
12687   ccp = &g + (g ? g-g : 0);
12688   /* HPUX 7.0 cc rejects these. */
12689   ++ccp;
12690   p = (char**) ccp;
12691   ccp = (char const *const *) p;
12692   { /* SCO 3.2v4 cc rejects this.  */
12693     char *t;
12694     char const *s = 0 ? (char *) 0 : (char const *) 0;
12695
12696     *t++ = 0;
12697   }
12698   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
12699     int x[] = {25, 17};
12700     const int *foo = &x[0];
12701     ++foo;
12702   }
12703   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12704     typedef const int *iptr;
12705     iptr p = 0;
12706     ++p;
12707   }
12708   { /* AIX XL C 1.02.0.0 rejects this saying
12709        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12710     struct s { int j; const int *ap[3]; };
12711     struct s *b; b->j = 5;
12712   }
12713   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12714     const int foo = 10;
12715   }
12716 #endif
12717
12718   ;
12719   return 0;
12720 }
12721 _ACEOF
12722 rm -f conftest.$ac_objext
12723 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12724   (eval $ac_compile) 2>&5
12725   ac_status=$?
12726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12727   (exit $ac_status); } &&
12728          { ac_try='test -s conftest.$ac_objext'
12729   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12730   (eval $ac_try) 2>&5
12731   ac_status=$?
12732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12733   (exit $ac_status); }; }; then
12734   ac_cv_c_const=yes
12735 else
12736   echo "$as_me: failed program was:" >&5
12737 sed 's/^/| /' conftest.$ac_ext >&5
12738
12739 ac_cv_c_const=no
12740 fi
12741 rm -f conftest.$ac_objext conftest.$ac_ext
12742 fi
12743 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
12744 echo "${ECHO_T}$ac_cv_c_const" >&6
12745 if test $ac_cv_c_const = no; then
12746
12747 cat >>confdefs.h <<\_ACEOF
12748 #define const
12749 _ACEOF
12750
12751 fi
12752
12753
12754
12755 echo "$as_me:$LINENO: checking for char" >&5
12756 echo $ECHO_N "checking for char... $ECHO_C" >&6
12757 if test "${ac_cv_type_char+set}" = set; then
12758   echo $ECHO_N "(cached) $ECHO_C" >&6
12759 else
12760   cat >conftest.$ac_ext <<_ACEOF
12761 #line $LINENO "configure"
12762 /* confdefs.h.  */
12763 _ACEOF
12764 cat confdefs.h >>conftest.$ac_ext
12765 cat >>conftest.$ac_ext <<_ACEOF
12766 /* end confdefs.h.  */
12767 $ac_includes_default
12768 int
12769 main ()
12770 {
12771 if ((char *) 0)
12772   return 0;
12773 if (sizeof (char))
12774   return 0;
12775   ;
12776   return 0;
12777 }
12778 _ACEOF
12779 rm -f conftest.$ac_objext
12780 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12781   (eval $ac_compile) 2>&5
12782   ac_status=$?
12783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12784   (exit $ac_status); } &&
12785          { ac_try='test -s conftest.$ac_objext'
12786   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12787   (eval $ac_try) 2>&5
12788   ac_status=$?
12789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12790   (exit $ac_status); }; }; then
12791   ac_cv_type_char=yes
12792 else
12793   echo "$as_me: failed program was:" >&5
12794 sed 's/^/| /' conftest.$ac_ext >&5
12795
12796 ac_cv_type_char=no
12797 fi
12798 rm -f conftest.$ac_objext conftest.$ac_ext
12799 fi
12800 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
12801 echo "${ECHO_T}$ac_cv_type_char" >&6
12802
12803 echo "$as_me:$LINENO: checking size of char" >&5
12804 echo $ECHO_N "checking size of char... $ECHO_C" >&6
12805 if test "${ac_cv_sizeof_char+set}" = set; then
12806   echo $ECHO_N "(cached) $ECHO_C" >&6
12807 else
12808   if test "$ac_cv_type_char" = yes; then
12809   # The cast to unsigned long works around a bug in the HP C Compiler
12810   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12811   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12812   # This bug is HP SR number 8606223364.
12813   if test "$cross_compiling" = yes; then
12814   # Depending upon the size, compute the lo and hi bounds.
12815 cat >conftest.$ac_ext <<_ACEOF
12816 #line $LINENO "configure"
12817 /* confdefs.h.  */
12818 _ACEOF
12819 cat confdefs.h >>conftest.$ac_ext
12820 cat >>conftest.$ac_ext <<_ACEOF
12821 /* end confdefs.h.  */
12822 $ac_includes_default
12823 int
12824 main ()
12825 {
12826 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
12827 test_array [0] = 0
12828
12829   ;
12830   return 0;
12831 }
12832 _ACEOF
12833 rm -f conftest.$ac_objext
12834 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12835   (eval $ac_compile) 2>&5
12836   ac_status=$?
12837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12838   (exit $ac_status); } &&
12839          { ac_try='test -s conftest.$ac_objext'
12840   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12841   (eval $ac_try) 2>&5
12842   ac_status=$?
12843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12844   (exit $ac_status); }; }; then
12845   ac_lo=0 ac_mid=0
12846   while :; do
12847     cat >conftest.$ac_ext <<_ACEOF
12848 #line $LINENO "configure"
12849 /* confdefs.h.  */
12850 _ACEOF
12851 cat confdefs.h >>conftest.$ac_ext
12852 cat >>conftest.$ac_ext <<_ACEOF
12853 /* end confdefs.h.  */
12854 $ac_includes_default
12855 int
12856 main ()
12857 {
12858 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
12859 test_array [0] = 0
12860
12861   ;
12862   return 0;
12863 }
12864 _ACEOF
12865 rm -f conftest.$ac_objext
12866 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12867   (eval $ac_compile) 2>&5
12868   ac_status=$?
12869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12870   (exit $ac_status); } &&
12871          { ac_try='test -s conftest.$ac_objext'
12872   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12873   (eval $ac_try) 2>&5
12874   ac_status=$?
12875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12876   (exit $ac_status); }; }; then
12877   ac_hi=$ac_mid; break
12878 else
12879   echo "$as_me: failed program was:" >&5
12880 sed 's/^/| /' conftest.$ac_ext >&5
12881
12882 ac_lo=`expr $ac_mid + 1`
12883                     if test $ac_lo -le $ac_mid; then
12884                       ac_lo= ac_hi=
12885                       break
12886                     fi
12887                     ac_mid=`expr 2 '*' $ac_mid + 1`
12888 fi
12889 rm -f conftest.$ac_objext conftest.$ac_ext
12890   done
12891 else
12892   echo "$as_me: failed program was:" >&5
12893 sed 's/^/| /' conftest.$ac_ext >&5
12894
12895 cat >conftest.$ac_ext <<_ACEOF
12896 #line $LINENO "configure"
12897 /* confdefs.h.  */
12898 _ACEOF
12899 cat confdefs.h >>conftest.$ac_ext
12900 cat >>conftest.$ac_ext <<_ACEOF
12901 /* end confdefs.h.  */
12902 $ac_includes_default
12903 int
12904 main ()
12905 {
12906 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
12907 test_array [0] = 0
12908
12909   ;
12910   return 0;
12911 }
12912 _ACEOF
12913 rm -f conftest.$ac_objext
12914 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12915   (eval $ac_compile) 2>&5
12916   ac_status=$?
12917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12918   (exit $ac_status); } &&
12919          { ac_try='test -s conftest.$ac_objext'
12920   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12921   (eval $ac_try) 2>&5
12922   ac_status=$?
12923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12924   (exit $ac_status); }; }; then
12925   ac_hi=-1 ac_mid=-1
12926   while :; do
12927     cat >conftest.$ac_ext <<_ACEOF
12928 #line $LINENO "configure"
12929 /* confdefs.h.  */
12930 _ACEOF
12931 cat confdefs.h >>conftest.$ac_ext
12932 cat >>conftest.$ac_ext <<_ACEOF
12933 /* end confdefs.h.  */
12934 $ac_includes_default
12935 int
12936 main ()
12937 {
12938 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
12939 test_array [0] = 0
12940
12941   ;
12942   return 0;
12943 }
12944 _ACEOF
12945 rm -f conftest.$ac_objext
12946 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12947   (eval $ac_compile) 2>&5
12948   ac_status=$?
12949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12950   (exit $ac_status); } &&
12951          { ac_try='test -s conftest.$ac_objext'
12952   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12953   (eval $ac_try) 2>&5
12954   ac_status=$?
12955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12956   (exit $ac_status); }; }; then
12957   ac_lo=$ac_mid; break
12958 else
12959   echo "$as_me: failed program was:" >&5
12960 sed 's/^/| /' conftest.$ac_ext >&5
12961
12962 ac_hi=`expr '(' $ac_mid ')' - 1`
12963                        if test $ac_mid -le $ac_hi; then
12964                          ac_lo= ac_hi=
12965                          break
12966                        fi
12967                        ac_mid=`expr 2 '*' $ac_mid`
12968 fi
12969 rm -f conftest.$ac_objext conftest.$ac_ext
12970   done
12971 else
12972   echo "$as_me: failed program was:" >&5
12973 sed 's/^/| /' conftest.$ac_ext >&5
12974
12975 ac_lo= ac_hi=
12976 fi
12977 rm -f conftest.$ac_objext conftest.$ac_ext
12978 fi
12979 rm -f conftest.$ac_objext conftest.$ac_ext
12980 # Binary search between lo and hi bounds.
12981 while test "x$ac_lo" != "x$ac_hi"; do
12982   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12983   cat >conftest.$ac_ext <<_ACEOF
12984 #line $LINENO "configure"
12985 /* confdefs.h.  */
12986 _ACEOF
12987 cat confdefs.h >>conftest.$ac_ext
12988 cat >>conftest.$ac_ext <<_ACEOF
12989 /* end confdefs.h.  */
12990 $ac_includes_default
12991 int
12992 main ()
12993 {
12994 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
12995 test_array [0] = 0
12996
12997   ;
12998   return 0;
12999 }
13000 _ACEOF
13001 rm -f conftest.$ac_objext
13002 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13003   (eval $ac_compile) 2>&5
13004   ac_status=$?
13005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13006   (exit $ac_status); } &&
13007          { ac_try='test -s conftest.$ac_objext'
13008   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13009   (eval $ac_try) 2>&5
13010   ac_status=$?
13011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13012   (exit $ac_status); }; }; then
13013   ac_hi=$ac_mid
13014 else
13015   echo "$as_me: failed program was:" >&5
13016 sed 's/^/| /' conftest.$ac_ext >&5
13017
13018 ac_lo=`expr '(' $ac_mid ')' + 1`
13019 fi
13020 rm -f conftest.$ac_objext conftest.$ac_ext
13021 done
13022 case $ac_lo in
13023 ?*) ac_cv_sizeof_char=$ac_lo;;
13024 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
13025 See \`config.log' for more details." >&5
13026 echo "$as_me: error: cannot compute sizeof (char), 77
13027 See \`config.log' for more details." >&2;}
13028    { (exit 1); exit 1; }; } ;;
13029 esac
13030 else
13031   if test "$cross_compiling" = yes; then
13032   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13033 See \`config.log' for more details." >&5
13034 echo "$as_me: error: cannot run test program while cross compiling
13035 See \`config.log' for more details." >&2;}
13036    { (exit 1); exit 1; }; }
13037 else
13038   cat >conftest.$ac_ext <<_ACEOF
13039 #line $LINENO "configure"
13040 /* confdefs.h.  */
13041 _ACEOF
13042 cat confdefs.h >>conftest.$ac_ext
13043 cat >>conftest.$ac_ext <<_ACEOF
13044 /* end confdefs.h.  */
13045 $ac_includes_default
13046 long longval () { return (long) (sizeof (char)); }
13047 unsigned long ulongval () { return (long) (sizeof (char)); }
13048 #include <stdio.h>
13049 #include <stdlib.h>
13050 int
13051 main ()
13052 {
13053
13054   FILE *f = fopen ("conftest.val", "w");
13055   if (! f)
13056     exit (1);
13057   if (((long) (sizeof (char))) < 0)
13058     {
13059       long i = longval ();
13060       if (i != ((long) (sizeof (char))))
13061         exit (1);
13062       fprintf (f, "%ld\n", i);
13063     }
13064   else
13065     {
13066       unsigned long i = ulongval ();
13067       if (i != ((long) (sizeof (char))))
13068         exit (1);
13069       fprintf (f, "%lu\n", i);
13070     }
13071   exit (ferror (f) || fclose (f) != 0);
13072
13073   ;
13074   return 0;
13075 }
13076 _ACEOF
13077 rm -f conftest$ac_exeext
13078 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13079   (eval $ac_link) 2>&5
13080   ac_status=$?
13081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13082   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13083   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13084   (eval $ac_try) 2>&5
13085   ac_status=$?
13086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13087   (exit $ac_status); }; }; then
13088   ac_cv_sizeof_char=`cat conftest.val`
13089 else
13090   echo "$as_me: program exited with status $ac_status" >&5
13091 echo "$as_me: failed program was:" >&5
13092 sed 's/^/| /' conftest.$ac_ext >&5
13093
13094 ( exit $ac_status )
13095 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
13096 See \`config.log' for more details." >&5
13097 echo "$as_me: error: cannot compute sizeof (char), 77
13098 See \`config.log' for more details." >&2;}
13099    { (exit 1); exit 1; }; }
13100 fi
13101 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13102 fi
13103 fi
13104 rm -f conftest.val
13105 else
13106   ac_cv_sizeof_char=0
13107 fi
13108 fi
13109 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
13110 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
13111 cat >>confdefs.h <<_ACEOF
13112 #define SIZEOF_CHAR $ac_cv_sizeof_char
13113 _ACEOF
13114
13115
13116 echo "$as_me:$LINENO: checking for short int" >&5
13117 echo $ECHO_N "checking for short int... $ECHO_C" >&6
13118 if test "${ac_cv_type_short_int+set}" = set; then
13119   echo $ECHO_N "(cached) $ECHO_C" >&6
13120 else
13121   cat >conftest.$ac_ext <<_ACEOF
13122 #line $LINENO "configure"
13123 /* confdefs.h.  */
13124 _ACEOF
13125 cat confdefs.h >>conftest.$ac_ext
13126 cat >>conftest.$ac_ext <<_ACEOF
13127 /* end confdefs.h.  */
13128 $ac_includes_default
13129 int
13130 main ()
13131 {
13132 if ((short int *) 0)
13133   return 0;
13134 if (sizeof (short int))
13135   return 0;
13136   ;
13137   return 0;
13138 }
13139 _ACEOF
13140 rm -f conftest.$ac_objext
13141 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13142   (eval $ac_compile) 2>&5
13143   ac_status=$?
13144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13145   (exit $ac_status); } &&
13146          { ac_try='test -s conftest.$ac_objext'
13147   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13148   (eval $ac_try) 2>&5
13149   ac_status=$?
13150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13151   (exit $ac_status); }; }; then
13152   ac_cv_type_short_int=yes
13153 else
13154   echo "$as_me: failed program was:" >&5
13155 sed 's/^/| /' conftest.$ac_ext >&5
13156
13157 ac_cv_type_short_int=no
13158 fi
13159 rm -f conftest.$ac_objext conftest.$ac_ext
13160 fi
13161 echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
13162 echo "${ECHO_T}$ac_cv_type_short_int" >&6
13163
13164 echo "$as_me:$LINENO: checking size of short int" >&5
13165 echo $ECHO_N "checking size of short int... $ECHO_C" >&6
13166 if test "${ac_cv_sizeof_short_int+set}" = set; then
13167   echo $ECHO_N "(cached) $ECHO_C" >&6
13168 else
13169   if test "$ac_cv_type_short_int" = yes; then
13170   # The cast to unsigned long works around a bug in the HP C Compiler
13171   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13172   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13173   # This bug is HP SR number 8606223364.
13174   if test "$cross_compiling" = yes; then
13175   # Depending upon the size, compute the lo and hi bounds.
13176 cat >conftest.$ac_ext <<_ACEOF
13177 #line $LINENO "configure"
13178 /* confdefs.h.  */
13179 _ACEOF
13180 cat confdefs.h >>conftest.$ac_ext
13181 cat >>conftest.$ac_ext <<_ACEOF
13182 /* end confdefs.h.  */
13183 $ac_includes_default
13184 int
13185 main ()
13186 {
13187 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= 0)];
13188 test_array [0] = 0
13189
13190   ;
13191   return 0;
13192 }
13193 _ACEOF
13194 rm -f conftest.$ac_objext
13195 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13196   (eval $ac_compile) 2>&5
13197   ac_status=$?
13198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13199   (exit $ac_status); } &&
13200          { ac_try='test -s conftest.$ac_objext'
13201   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13202   (eval $ac_try) 2>&5
13203   ac_status=$?
13204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13205   (exit $ac_status); }; }; then
13206   ac_lo=0 ac_mid=0
13207   while :; do
13208     cat >conftest.$ac_ext <<_ACEOF
13209 #line $LINENO "configure"
13210 /* confdefs.h.  */
13211 _ACEOF
13212 cat confdefs.h >>conftest.$ac_ext
13213 cat >>conftest.$ac_ext <<_ACEOF
13214 /* end confdefs.h.  */
13215 $ac_includes_default
13216 int
13217 main ()
13218 {
13219 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
13220 test_array [0] = 0
13221
13222   ;
13223   return 0;
13224 }
13225 _ACEOF
13226 rm -f conftest.$ac_objext
13227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13228   (eval $ac_compile) 2>&5
13229   ac_status=$?
13230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13231   (exit $ac_status); } &&
13232          { ac_try='test -s conftest.$ac_objext'
13233   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13234   (eval $ac_try) 2>&5
13235   ac_status=$?
13236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13237   (exit $ac_status); }; }; then
13238   ac_hi=$ac_mid; break
13239 else
13240   echo "$as_me: failed program was:" >&5
13241 sed 's/^/| /' conftest.$ac_ext >&5
13242
13243 ac_lo=`expr $ac_mid + 1`
13244                     if test $ac_lo -le $ac_mid; then
13245                       ac_lo= ac_hi=
13246                       break
13247                     fi
13248                     ac_mid=`expr 2 '*' $ac_mid + 1`
13249 fi
13250 rm -f conftest.$ac_objext conftest.$ac_ext
13251   done
13252 else
13253   echo "$as_me: failed program was:" >&5
13254 sed 's/^/| /' conftest.$ac_ext >&5
13255
13256 cat >conftest.$ac_ext <<_ACEOF
13257 #line $LINENO "configure"
13258 /* confdefs.h.  */
13259 _ACEOF
13260 cat confdefs.h >>conftest.$ac_ext
13261 cat >>conftest.$ac_ext <<_ACEOF
13262 /* end confdefs.h.  */
13263 $ac_includes_default
13264 int
13265 main ()
13266 {
13267 static int test_array [1 - 2 * !(((long) (sizeof (short int))) < 0)];
13268 test_array [0] = 0
13269
13270   ;
13271   return 0;
13272 }
13273 _ACEOF
13274 rm -f conftest.$ac_objext
13275 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13276   (eval $ac_compile) 2>&5
13277   ac_status=$?
13278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13279   (exit $ac_status); } &&
13280          { ac_try='test -s conftest.$ac_objext'
13281   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13282   (eval $ac_try) 2>&5
13283   ac_status=$?
13284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13285   (exit $ac_status); }; }; then
13286   ac_hi=-1 ac_mid=-1
13287   while :; do
13288     cat >conftest.$ac_ext <<_ACEOF
13289 #line $LINENO "configure"
13290 /* confdefs.h.  */
13291 _ACEOF
13292 cat confdefs.h >>conftest.$ac_ext
13293 cat >>conftest.$ac_ext <<_ACEOF
13294 /* end confdefs.h.  */
13295 $ac_includes_default
13296 int
13297 main ()
13298 {
13299 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= $ac_mid)];
13300 test_array [0] = 0
13301
13302   ;
13303   return 0;
13304 }
13305 _ACEOF
13306 rm -f conftest.$ac_objext
13307 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13308   (eval $ac_compile) 2>&5
13309   ac_status=$?
13310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13311   (exit $ac_status); } &&
13312          { ac_try='test -s conftest.$ac_objext'
13313   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13314   (eval $ac_try) 2>&5
13315   ac_status=$?
13316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13317   (exit $ac_status); }; }; then
13318   ac_lo=$ac_mid; break
13319 else
13320   echo "$as_me: failed program was:" >&5
13321 sed 's/^/| /' conftest.$ac_ext >&5
13322
13323 ac_hi=`expr '(' $ac_mid ')' - 1`
13324                        if test $ac_mid -le $ac_hi; then
13325                          ac_lo= ac_hi=
13326                          break
13327                        fi
13328                        ac_mid=`expr 2 '*' $ac_mid`
13329 fi
13330 rm -f conftest.$ac_objext conftest.$ac_ext
13331   done
13332 else
13333   echo "$as_me: failed program was:" >&5
13334 sed 's/^/| /' conftest.$ac_ext >&5
13335
13336 ac_lo= ac_hi=
13337 fi
13338 rm -f conftest.$ac_objext conftest.$ac_ext
13339 fi
13340 rm -f conftest.$ac_objext conftest.$ac_ext
13341 # Binary search between lo and hi bounds.
13342 while test "x$ac_lo" != "x$ac_hi"; do
13343   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13344   cat >conftest.$ac_ext <<_ACEOF
13345 #line $LINENO "configure"
13346 /* confdefs.h.  */
13347 _ACEOF
13348 cat confdefs.h >>conftest.$ac_ext
13349 cat >>conftest.$ac_ext <<_ACEOF
13350 /* end confdefs.h.  */
13351 $ac_includes_default
13352 int
13353 main ()
13354 {
13355 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
13356 test_array [0] = 0
13357
13358   ;
13359   return 0;
13360 }
13361 _ACEOF
13362 rm -f conftest.$ac_objext
13363 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13364   (eval $ac_compile) 2>&5
13365   ac_status=$?
13366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13367   (exit $ac_status); } &&
13368          { ac_try='test -s conftest.$ac_objext'
13369   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13370   (eval $ac_try) 2>&5
13371   ac_status=$?
13372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13373   (exit $ac_status); }; }; then
13374   ac_hi=$ac_mid
13375 else
13376   echo "$as_me: failed program was:" >&5
13377 sed 's/^/| /' conftest.$ac_ext >&5
13378
13379 ac_lo=`expr '(' $ac_mid ')' + 1`
13380 fi
13381 rm -f conftest.$ac_objext conftest.$ac_ext
13382 done
13383 case $ac_lo in
13384 ?*) ac_cv_sizeof_short_int=$ac_lo;;
13385 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
13386 See \`config.log' for more details." >&5
13387 echo "$as_me: error: cannot compute sizeof (short int), 77
13388 See \`config.log' for more details." >&2;}
13389    { (exit 1); exit 1; }; } ;;
13390 esac
13391 else
13392   if test "$cross_compiling" = yes; then
13393   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13394 See \`config.log' for more details." >&5
13395 echo "$as_me: error: cannot run test program while cross compiling
13396 See \`config.log' for more details." >&2;}
13397    { (exit 1); exit 1; }; }
13398 else
13399   cat >conftest.$ac_ext <<_ACEOF
13400 #line $LINENO "configure"
13401 /* confdefs.h.  */
13402 _ACEOF
13403 cat confdefs.h >>conftest.$ac_ext
13404 cat >>conftest.$ac_ext <<_ACEOF
13405 /* end confdefs.h.  */
13406 $ac_includes_default
13407 long longval () { return (long) (sizeof (short int)); }
13408 unsigned long ulongval () { return (long) (sizeof (short int)); }
13409 #include <stdio.h>
13410 #include <stdlib.h>
13411 int
13412 main ()
13413 {
13414
13415   FILE *f = fopen ("conftest.val", "w");
13416   if (! f)
13417     exit (1);
13418   if (((long) (sizeof (short int))) < 0)
13419     {
13420       long i = longval ();
13421       if (i != ((long) (sizeof (short int))))
13422         exit (1);
13423       fprintf (f, "%ld\n", i);
13424     }
13425   else
13426     {
13427       unsigned long i = ulongval ();
13428       if (i != ((long) (sizeof (short int))))
13429         exit (1);
13430       fprintf (f, "%lu\n", i);
13431     }
13432   exit (ferror (f) || fclose (f) != 0);
13433
13434   ;
13435   return 0;
13436 }
13437 _ACEOF
13438 rm -f conftest$ac_exeext
13439 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13440   (eval $ac_link) 2>&5
13441   ac_status=$?
13442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13443   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13444   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13445   (eval $ac_try) 2>&5
13446   ac_status=$?
13447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13448   (exit $ac_status); }; }; then
13449   ac_cv_sizeof_short_int=`cat conftest.val`
13450 else
13451   echo "$as_me: program exited with status $ac_status" >&5
13452 echo "$as_me: failed program was:" >&5
13453 sed 's/^/| /' conftest.$ac_ext >&5
13454
13455 ( exit $ac_status )
13456 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
13457 See \`config.log' for more details." >&5
13458 echo "$as_me: error: cannot compute sizeof (short int), 77
13459 See \`config.log' for more details." >&2;}
13460    { (exit 1); exit 1; }; }
13461 fi
13462 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13463 fi
13464 fi
13465 rm -f conftest.val
13466 else
13467   ac_cv_sizeof_short_int=0
13468 fi
13469 fi
13470 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
13471 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6
13472 cat >>confdefs.h <<_ACEOF
13473 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
13474 _ACEOF
13475
13476
13477 echo "$as_me:$LINENO: checking for int" >&5
13478 echo $ECHO_N "checking for int... $ECHO_C" >&6
13479 if test "${ac_cv_type_int+set}" = set; then
13480   echo $ECHO_N "(cached) $ECHO_C" >&6
13481 else
13482   cat >conftest.$ac_ext <<_ACEOF
13483 #line $LINENO "configure"
13484 /* confdefs.h.  */
13485 _ACEOF
13486 cat confdefs.h >>conftest.$ac_ext
13487 cat >>conftest.$ac_ext <<_ACEOF
13488 /* end confdefs.h.  */
13489 $ac_includes_default
13490 int
13491 main ()
13492 {
13493 if ((int *) 0)
13494   return 0;
13495 if (sizeof (int))
13496   return 0;
13497   ;
13498   return 0;
13499 }
13500 _ACEOF
13501 rm -f conftest.$ac_objext
13502 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13503   (eval $ac_compile) 2>&5
13504   ac_status=$?
13505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13506   (exit $ac_status); } &&
13507          { ac_try='test -s conftest.$ac_objext'
13508   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13509   (eval $ac_try) 2>&5
13510   ac_status=$?
13511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13512   (exit $ac_status); }; }; then
13513   ac_cv_type_int=yes
13514 else
13515   echo "$as_me: failed program was:" >&5
13516 sed 's/^/| /' conftest.$ac_ext >&5
13517
13518 ac_cv_type_int=no
13519 fi
13520 rm -f conftest.$ac_objext conftest.$ac_ext
13521 fi
13522 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
13523 echo "${ECHO_T}$ac_cv_type_int" >&6
13524
13525 echo "$as_me:$LINENO: checking size of int" >&5
13526 echo $ECHO_N "checking size of int... $ECHO_C" >&6
13527 if test "${ac_cv_sizeof_int+set}" = set; then
13528   echo $ECHO_N "(cached) $ECHO_C" >&6
13529 else
13530   if test "$ac_cv_type_int" = yes; then
13531   # The cast to unsigned long works around a bug in the HP C Compiler
13532   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13533   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13534   # This bug is HP SR number 8606223364.
13535   if test "$cross_compiling" = yes; then
13536   # Depending upon the size, compute the lo and hi bounds.
13537 cat >conftest.$ac_ext <<_ACEOF
13538 #line $LINENO "configure"
13539 /* confdefs.h.  */
13540 _ACEOF
13541 cat confdefs.h >>conftest.$ac_ext
13542 cat >>conftest.$ac_ext <<_ACEOF
13543 /* end confdefs.h.  */
13544 $ac_includes_default
13545 int
13546 main ()
13547 {
13548 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
13549 test_array [0] = 0
13550
13551   ;
13552   return 0;
13553 }
13554 _ACEOF
13555 rm -f conftest.$ac_objext
13556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13557   (eval $ac_compile) 2>&5
13558   ac_status=$?
13559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13560   (exit $ac_status); } &&
13561          { ac_try='test -s conftest.$ac_objext'
13562   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13563   (eval $ac_try) 2>&5
13564   ac_status=$?
13565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13566   (exit $ac_status); }; }; then
13567   ac_lo=0 ac_mid=0
13568   while :; do
13569     cat >conftest.$ac_ext <<_ACEOF
13570 #line $LINENO "configure"
13571 /* confdefs.h.  */
13572 _ACEOF
13573 cat confdefs.h >>conftest.$ac_ext
13574 cat >>conftest.$ac_ext <<_ACEOF
13575 /* end confdefs.h.  */
13576 $ac_includes_default
13577 int
13578 main ()
13579 {
13580 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
13581 test_array [0] = 0
13582
13583   ;
13584   return 0;
13585 }
13586 _ACEOF
13587 rm -f conftest.$ac_objext
13588 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13589   (eval $ac_compile) 2>&5
13590   ac_status=$?
13591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13592   (exit $ac_status); } &&
13593          { ac_try='test -s conftest.$ac_objext'
13594   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13595   (eval $ac_try) 2>&5
13596   ac_status=$?
13597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13598   (exit $ac_status); }; }; then
13599   ac_hi=$ac_mid; break
13600 else
13601   echo "$as_me: failed program was:" >&5
13602 sed 's/^/| /' conftest.$ac_ext >&5
13603
13604 ac_lo=`expr $ac_mid + 1`
13605                     if test $ac_lo -le $ac_mid; then
13606                       ac_lo= ac_hi=
13607                       break
13608                     fi
13609                     ac_mid=`expr 2 '*' $ac_mid + 1`
13610 fi
13611 rm -f conftest.$ac_objext conftest.$ac_ext
13612   done
13613 else
13614   echo "$as_me: failed program was:" >&5
13615 sed 's/^/| /' conftest.$ac_ext >&5
13616
13617 cat >conftest.$ac_ext <<_ACEOF
13618 #line $LINENO "configure"
13619 /* confdefs.h.  */
13620 _ACEOF
13621 cat confdefs.h >>conftest.$ac_ext
13622 cat >>conftest.$ac_ext <<_ACEOF
13623 /* end confdefs.h.  */
13624 $ac_includes_default
13625 int
13626 main ()
13627 {
13628 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
13629 test_array [0] = 0
13630
13631   ;
13632   return 0;
13633 }
13634 _ACEOF
13635 rm -f conftest.$ac_objext
13636 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13637   (eval $ac_compile) 2>&5
13638   ac_status=$?
13639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13640   (exit $ac_status); } &&
13641          { ac_try='test -s conftest.$ac_objext'
13642   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13643   (eval $ac_try) 2>&5
13644   ac_status=$?
13645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13646   (exit $ac_status); }; }; then
13647   ac_hi=-1 ac_mid=-1
13648   while :; do
13649     cat >conftest.$ac_ext <<_ACEOF
13650 #line $LINENO "configure"
13651 /* confdefs.h.  */
13652 _ACEOF
13653 cat confdefs.h >>conftest.$ac_ext
13654 cat >>conftest.$ac_ext <<_ACEOF
13655 /* end confdefs.h.  */
13656 $ac_includes_default
13657 int
13658 main ()
13659 {
13660 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
13661 test_array [0] = 0
13662
13663   ;
13664   return 0;
13665 }
13666 _ACEOF
13667 rm -f conftest.$ac_objext
13668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13669   (eval $ac_compile) 2>&5
13670   ac_status=$?
13671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13672   (exit $ac_status); } &&
13673          { ac_try='test -s conftest.$ac_objext'
13674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13675   (eval $ac_try) 2>&5
13676   ac_status=$?
13677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13678   (exit $ac_status); }; }; then
13679   ac_lo=$ac_mid; break
13680 else
13681   echo "$as_me: failed program was:" >&5
13682 sed 's/^/| /' conftest.$ac_ext >&5
13683
13684 ac_hi=`expr '(' $ac_mid ')' - 1`
13685                        if test $ac_mid -le $ac_hi; then
13686                          ac_lo= ac_hi=
13687                          break
13688                        fi
13689                        ac_mid=`expr 2 '*' $ac_mid`
13690 fi
13691 rm -f conftest.$ac_objext conftest.$ac_ext
13692   done
13693 else
13694   echo "$as_me: failed program was:" >&5
13695 sed 's/^/| /' conftest.$ac_ext >&5
13696
13697 ac_lo= ac_hi=
13698 fi
13699 rm -f conftest.$ac_objext conftest.$ac_ext
13700 fi
13701 rm -f conftest.$ac_objext conftest.$ac_ext
13702 # Binary search between lo and hi bounds.
13703 while test "x$ac_lo" != "x$ac_hi"; do
13704   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13705   cat >conftest.$ac_ext <<_ACEOF
13706 #line $LINENO "configure"
13707 /* confdefs.h.  */
13708 _ACEOF
13709 cat confdefs.h >>conftest.$ac_ext
13710 cat >>conftest.$ac_ext <<_ACEOF
13711 /* end confdefs.h.  */
13712 $ac_includes_default
13713 int
13714 main ()
13715 {
13716 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
13717 test_array [0] = 0
13718
13719   ;
13720   return 0;
13721 }
13722 _ACEOF
13723 rm -f conftest.$ac_objext
13724 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13725   (eval $ac_compile) 2>&5
13726   ac_status=$?
13727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13728   (exit $ac_status); } &&
13729          { ac_try='test -s conftest.$ac_objext'
13730   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13731   (eval $ac_try) 2>&5
13732   ac_status=$?
13733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13734   (exit $ac_status); }; }; then
13735   ac_hi=$ac_mid
13736 else
13737   echo "$as_me: failed program was:" >&5
13738 sed 's/^/| /' conftest.$ac_ext >&5
13739
13740 ac_lo=`expr '(' $ac_mid ')' + 1`
13741 fi
13742 rm -f conftest.$ac_objext conftest.$ac_ext
13743 done
13744 case $ac_lo in
13745 ?*) ac_cv_sizeof_int=$ac_lo;;
13746 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
13747 See \`config.log' for more details." >&5
13748 echo "$as_me: error: cannot compute sizeof (int), 77
13749 See \`config.log' for more details." >&2;}
13750    { (exit 1); exit 1; }; } ;;
13751 esac
13752 else
13753   if test "$cross_compiling" = yes; then
13754   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13755 See \`config.log' for more details." >&5
13756 echo "$as_me: error: cannot run test program while cross compiling
13757 See \`config.log' for more details." >&2;}
13758    { (exit 1); exit 1; }; }
13759 else
13760   cat >conftest.$ac_ext <<_ACEOF
13761 #line $LINENO "configure"
13762 /* confdefs.h.  */
13763 _ACEOF
13764 cat confdefs.h >>conftest.$ac_ext
13765 cat >>conftest.$ac_ext <<_ACEOF
13766 /* end confdefs.h.  */
13767 $ac_includes_default
13768 long longval () { return (long) (sizeof (int)); }
13769 unsigned long ulongval () { return (long) (sizeof (int)); }
13770 #include <stdio.h>
13771 #include <stdlib.h>
13772 int
13773 main ()
13774 {
13775
13776   FILE *f = fopen ("conftest.val", "w");
13777   if (! f)
13778     exit (1);
13779   if (((long) (sizeof (int))) < 0)
13780     {
13781       long i = longval ();
13782       if (i != ((long) (sizeof (int))))
13783         exit (1);
13784       fprintf (f, "%ld\n", i);
13785     }
13786   else
13787     {
13788       unsigned long i = ulongval ();
13789       if (i != ((long) (sizeof (int))))
13790         exit (1);
13791       fprintf (f, "%lu\n", i);
13792     }
13793   exit (ferror (f) || fclose (f) != 0);
13794
13795   ;
13796   return 0;
13797 }
13798 _ACEOF
13799 rm -f conftest$ac_exeext
13800 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13801   (eval $ac_link) 2>&5
13802   ac_status=$?
13803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13804   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13805   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13806   (eval $ac_try) 2>&5
13807   ac_status=$?
13808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13809   (exit $ac_status); }; }; then
13810   ac_cv_sizeof_int=`cat conftest.val`
13811 else
13812   echo "$as_me: program exited with status $ac_status" >&5
13813 echo "$as_me: failed program was:" >&5
13814 sed 's/^/| /' conftest.$ac_ext >&5
13815
13816 ( exit $ac_status )
13817 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
13818 See \`config.log' for more details." >&5
13819 echo "$as_me: error: cannot compute sizeof (int), 77
13820 See \`config.log' for more details." >&2;}
13821    { (exit 1); exit 1; }; }
13822 fi
13823 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13824 fi
13825 fi
13826 rm -f conftest.val
13827 else
13828   ac_cv_sizeof_int=0
13829 fi
13830 fi
13831 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
13832 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
13833 cat >>confdefs.h <<_ACEOF
13834 #define SIZEOF_INT $ac_cv_sizeof_int
13835 _ACEOF
13836
13837
13838 echo "$as_me:$LINENO: checking for long int" >&5
13839 echo $ECHO_N "checking for long int... $ECHO_C" >&6
13840 if test "${ac_cv_type_long_int+set}" = set; then
13841   echo $ECHO_N "(cached) $ECHO_C" >&6
13842 else
13843   cat >conftest.$ac_ext <<_ACEOF
13844 #line $LINENO "configure"
13845 /* confdefs.h.  */
13846 _ACEOF
13847 cat confdefs.h >>conftest.$ac_ext
13848 cat >>conftest.$ac_ext <<_ACEOF
13849 /* end confdefs.h.  */
13850 $ac_includes_default
13851 int
13852 main ()
13853 {
13854 if ((long int *) 0)
13855   return 0;
13856 if (sizeof (long int))
13857   return 0;
13858   ;
13859   return 0;
13860 }
13861 _ACEOF
13862 rm -f conftest.$ac_objext
13863 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13864   (eval $ac_compile) 2>&5
13865   ac_status=$?
13866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13867   (exit $ac_status); } &&
13868          { ac_try='test -s conftest.$ac_objext'
13869   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13870   (eval $ac_try) 2>&5
13871   ac_status=$?
13872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13873   (exit $ac_status); }; }; then
13874   ac_cv_type_long_int=yes
13875 else
13876   echo "$as_me: failed program was:" >&5
13877 sed 's/^/| /' conftest.$ac_ext >&5
13878
13879 ac_cv_type_long_int=no
13880 fi
13881 rm -f conftest.$ac_objext conftest.$ac_ext
13882 fi
13883 echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
13884 echo "${ECHO_T}$ac_cv_type_long_int" >&6
13885
13886 echo "$as_me:$LINENO: checking size of long int" >&5
13887 echo $ECHO_N "checking size of long int... $ECHO_C" >&6
13888 if test "${ac_cv_sizeof_long_int+set}" = set; then
13889   echo $ECHO_N "(cached) $ECHO_C" >&6
13890 else
13891   if test "$ac_cv_type_long_int" = yes; then
13892   # The cast to unsigned long works around a bug in the HP C Compiler
13893   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13894   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13895   # This bug is HP SR number 8606223364.
13896   if test "$cross_compiling" = yes; then
13897   # Depending upon the size, compute the lo and hi bounds.
13898 cat >conftest.$ac_ext <<_ACEOF
13899 #line $LINENO "configure"
13900 /* confdefs.h.  */
13901 _ACEOF
13902 cat confdefs.h >>conftest.$ac_ext
13903 cat >>conftest.$ac_ext <<_ACEOF
13904 /* end confdefs.h.  */
13905 $ac_includes_default
13906 int
13907 main ()
13908 {
13909 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= 0)];
13910 test_array [0] = 0
13911
13912   ;
13913   return 0;
13914 }
13915 _ACEOF
13916 rm -f conftest.$ac_objext
13917 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13918   (eval $ac_compile) 2>&5
13919   ac_status=$?
13920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13921   (exit $ac_status); } &&
13922          { ac_try='test -s conftest.$ac_objext'
13923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13924   (eval $ac_try) 2>&5
13925   ac_status=$?
13926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13927   (exit $ac_status); }; }; then
13928   ac_lo=0 ac_mid=0
13929   while :; do
13930     cat >conftest.$ac_ext <<_ACEOF
13931 #line $LINENO "configure"
13932 /* confdefs.h.  */
13933 _ACEOF
13934 cat confdefs.h >>conftest.$ac_ext
13935 cat >>conftest.$ac_ext <<_ACEOF
13936 /* end confdefs.h.  */
13937 $ac_includes_default
13938 int
13939 main ()
13940 {
13941 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
13942 test_array [0] = 0
13943
13944   ;
13945   return 0;
13946 }
13947 _ACEOF
13948 rm -f conftest.$ac_objext
13949 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13950   (eval $ac_compile) 2>&5
13951   ac_status=$?
13952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13953   (exit $ac_status); } &&
13954          { ac_try='test -s conftest.$ac_objext'
13955   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13956   (eval $ac_try) 2>&5
13957   ac_status=$?
13958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13959   (exit $ac_status); }; }; then
13960   ac_hi=$ac_mid; break
13961 else
13962   echo "$as_me: failed program was:" >&5
13963 sed 's/^/| /' conftest.$ac_ext >&5
13964
13965 ac_lo=`expr $ac_mid + 1`
13966                     if test $ac_lo -le $ac_mid; then
13967                       ac_lo= ac_hi=
13968                       break
13969                     fi
13970                     ac_mid=`expr 2 '*' $ac_mid + 1`
13971 fi
13972 rm -f conftest.$ac_objext conftest.$ac_ext
13973   done
13974 else
13975   echo "$as_me: failed program was:" >&5
13976 sed 's/^/| /' conftest.$ac_ext >&5
13977
13978 cat >conftest.$ac_ext <<_ACEOF
13979 #line $LINENO "configure"
13980 /* confdefs.h.  */
13981 _ACEOF
13982 cat confdefs.h >>conftest.$ac_ext
13983 cat >>conftest.$ac_ext <<_ACEOF
13984 /* end confdefs.h.  */
13985 $ac_includes_default
13986 int
13987 main ()
13988 {
13989 static int test_array [1 - 2 * !(((long) (sizeof (long int))) < 0)];
13990 test_array [0] = 0
13991
13992   ;
13993   return 0;
13994 }
13995 _ACEOF
13996 rm -f conftest.$ac_objext
13997 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13998   (eval $ac_compile) 2>&5
13999   ac_status=$?
14000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14001   (exit $ac_status); } &&
14002          { ac_try='test -s conftest.$ac_objext'
14003   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14004   (eval $ac_try) 2>&5
14005   ac_status=$?
14006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14007   (exit $ac_status); }; }; then
14008   ac_hi=-1 ac_mid=-1
14009   while :; do
14010     cat >conftest.$ac_ext <<_ACEOF
14011 #line $LINENO "configure"
14012 /* confdefs.h.  */
14013 _ACEOF
14014 cat confdefs.h >>conftest.$ac_ext
14015 cat >>conftest.$ac_ext <<_ACEOF
14016 /* end confdefs.h.  */
14017 $ac_includes_default
14018 int
14019 main ()
14020 {
14021 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= $ac_mid)];
14022 test_array [0] = 0
14023
14024   ;
14025   return 0;
14026 }
14027 _ACEOF
14028 rm -f conftest.$ac_objext
14029 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14030   (eval $ac_compile) 2>&5
14031   ac_status=$?
14032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14033   (exit $ac_status); } &&
14034          { ac_try='test -s conftest.$ac_objext'
14035   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14036   (eval $ac_try) 2>&5
14037   ac_status=$?
14038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14039   (exit $ac_status); }; }; then
14040   ac_lo=$ac_mid; break
14041 else
14042   echo "$as_me: failed program was:" >&5
14043 sed 's/^/| /' conftest.$ac_ext >&5
14044
14045 ac_hi=`expr '(' $ac_mid ')' - 1`
14046                        if test $ac_mid -le $ac_hi; then
14047                          ac_lo= ac_hi=
14048                          break
14049                        fi
14050                        ac_mid=`expr 2 '*' $ac_mid`
14051 fi
14052 rm -f conftest.$ac_objext conftest.$ac_ext
14053   done
14054 else
14055   echo "$as_me: failed program was:" >&5
14056 sed 's/^/| /' conftest.$ac_ext >&5
14057
14058 ac_lo= ac_hi=
14059 fi
14060 rm -f conftest.$ac_objext conftest.$ac_ext
14061 fi
14062 rm -f conftest.$ac_objext conftest.$ac_ext
14063 # Binary search between lo and hi bounds.
14064 while test "x$ac_lo" != "x$ac_hi"; do
14065   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14066   cat >conftest.$ac_ext <<_ACEOF
14067 #line $LINENO "configure"
14068 /* confdefs.h.  */
14069 _ACEOF
14070 cat confdefs.h >>conftest.$ac_ext
14071 cat >>conftest.$ac_ext <<_ACEOF
14072 /* end confdefs.h.  */
14073 $ac_includes_default
14074 int
14075 main ()
14076 {
14077 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
14078 test_array [0] = 0
14079
14080   ;
14081   return 0;
14082 }
14083 _ACEOF
14084 rm -f conftest.$ac_objext
14085 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14086   (eval $ac_compile) 2>&5
14087   ac_status=$?
14088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14089   (exit $ac_status); } &&
14090          { ac_try='test -s conftest.$ac_objext'
14091   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14092   (eval $ac_try) 2>&5
14093   ac_status=$?
14094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14095   (exit $ac_status); }; }; then
14096   ac_hi=$ac_mid
14097 else
14098   echo "$as_me: failed program was:" >&5
14099 sed 's/^/| /' conftest.$ac_ext >&5
14100
14101 ac_lo=`expr '(' $ac_mid ')' + 1`
14102 fi
14103 rm -f conftest.$ac_objext conftest.$ac_ext
14104 done
14105 case $ac_lo in
14106 ?*) ac_cv_sizeof_long_int=$ac_lo;;
14107 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
14108 See \`config.log' for more details." >&5
14109 echo "$as_me: error: cannot compute sizeof (long int), 77
14110 See \`config.log' for more details." >&2;}
14111    { (exit 1); exit 1; }; } ;;
14112 esac
14113 else
14114   if test "$cross_compiling" = yes; then
14115   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14116 See \`config.log' for more details." >&5
14117 echo "$as_me: error: cannot run test program while cross compiling
14118 See \`config.log' for more details." >&2;}
14119    { (exit 1); exit 1; }; }
14120 else
14121   cat >conftest.$ac_ext <<_ACEOF
14122 #line $LINENO "configure"
14123 /* confdefs.h.  */
14124 _ACEOF
14125 cat confdefs.h >>conftest.$ac_ext
14126 cat >>conftest.$ac_ext <<_ACEOF
14127 /* end confdefs.h.  */
14128 $ac_includes_default
14129 long longval () { return (long) (sizeof (long int)); }
14130 unsigned long ulongval () { return (long) (sizeof (long int)); }
14131 #include <stdio.h>
14132 #include <stdlib.h>
14133 int
14134 main ()
14135 {
14136
14137   FILE *f = fopen ("conftest.val", "w");
14138   if (! f)
14139     exit (1);
14140   if (((long) (sizeof (long int))) < 0)
14141     {
14142       long i = longval ();
14143       if (i != ((long) (sizeof (long int))))
14144         exit (1);
14145       fprintf (f, "%ld\n", i);
14146     }
14147   else
14148     {
14149       unsigned long i = ulongval ();
14150       if (i != ((long) (sizeof (long int))))
14151         exit (1);
14152       fprintf (f, "%lu\n", i);
14153     }
14154   exit (ferror (f) || fclose (f) != 0);
14155
14156   ;
14157   return 0;
14158 }
14159 _ACEOF
14160 rm -f conftest$ac_exeext
14161 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14162   (eval $ac_link) 2>&5
14163   ac_status=$?
14164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14165   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14166   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14167   (eval $ac_try) 2>&5
14168   ac_status=$?
14169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14170   (exit $ac_status); }; }; then
14171   ac_cv_sizeof_long_int=`cat conftest.val`
14172 else
14173   echo "$as_me: program exited with status $ac_status" >&5
14174 echo "$as_me: failed program was:" >&5
14175 sed 's/^/| /' conftest.$ac_ext >&5
14176
14177 ( exit $ac_status )
14178 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
14179 See \`config.log' for more details." >&5
14180 echo "$as_me: error: cannot compute sizeof (long int), 77
14181 See \`config.log' for more details." >&2;}
14182    { (exit 1); exit 1; }; }
14183 fi
14184 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14185 fi
14186 fi
14187 rm -f conftest.val
14188 else
14189   ac_cv_sizeof_long_int=0
14190 fi
14191 fi
14192 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
14193 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6
14194 cat >>confdefs.h <<_ACEOF
14195 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
14196 _ACEOF
14197
14198
14199 echo "$as_me:$LINENO: checking for long long int" >&5
14200 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
14201 if test "${ac_cv_type_long_long_int+set}" = set; then
14202   echo $ECHO_N "(cached) $ECHO_C" >&6
14203 else
14204   cat >conftest.$ac_ext <<_ACEOF
14205 #line $LINENO "configure"
14206 /* confdefs.h.  */
14207 _ACEOF
14208 cat confdefs.h >>conftest.$ac_ext
14209 cat >>conftest.$ac_ext <<_ACEOF
14210 /* end confdefs.h.  */
14211 $ac_includes_default
14212 int
14213 main ()
14214 {
14215 if ((long long int *) 0)
14216   return 0;
14217 if (sizeof (long long int))
14218   return 0;
14219   ;
14220   return 0;
14221 }
14222 _ACEOF
14223 rm -f conftest.$ac_objext
14224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14225   (eval $ac_compile) 2>&5
14226   ac_status=$?
14227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14228   (exit $ac_status); } &&
14229          { ac_try='test -s conftest.$ac_objext'
14230   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14231   (eval $ac_try) 2>&5
14232   ac_status=$?
14233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14234   (exit $ac_status); }; }; then
14235   ac_cv_type_long_long_int=yes
14236 else
14237   echo "$as_me: failed program was:" >&5
14238 sed 's/^/| /' conftest.$ac_ext >&5
14239
14240 ac_cv_type_long_long_int=no
14241 fi
14242 rm -f conftest.$ac_objext conftest.$ac_ext
14243 fi
14244 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
14245 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
14246
14247 echo "$as_me:$LINENO: checking size of long long int" >&5
14248 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6
14249 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
14250   echo $ECHO_N "(cached) $ECHO_C" >&6
14251 else
14252   if test "$ac_cv_type_long_long_int" = yes; then
14253   # The cast to unsigned long works around a bug in the HP C Compiler
14254   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14255   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14256   # This bug is HP SR number 8606223364.
14257   if test "$cross_compiling" = yes; then
14258   # Depending upon the size, compute the lo and hi bounds.
14259 cat >conftest.$ac_ext <<_ACEOF
14260 #line $LINENO "configure"
14261 /* confdefs.h.  */
14262 _ACEOF
14263 cat confdefs.h >>conftest.$ac_ext
14264 cat >>conftest.$ac_ext <<_ACEOF
14265 /* end confdefs.h.  */
14266 $ac_includes_default
14267 int
14268 main ()
14269 {
14270 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= 0)];
14271 test_array [0] = 0
14272
14273   ;
14274   return 0;
14275 }
14276 _ACEOF
14277 rm -f conftest.$ac_objext
14278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14279   (eval $ac_compile) 2>&5
14280   ac_status=$?
14281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14282   (exit $ac_status); } &&
14283          { ac_try='test -s conftest.$ac_objext'
14284   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14285   (eval $ac_try) 2>&5
14286   ac_status=$?
14287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14288   (exit $ac_status); }; }; then
14289   ac_lo=0 ac_mid=0
14290   while :; do
14291     cat >conftest.$ac_ext <<_ACEOF
14292 #line $LINENO "configure"
14293 /* confdefs.h.  */
14294 _ACEOF
14295 cat confdefs.h >>conftest.$ac_ext
14296 cat >>conftest.$ac_ext <<_ACEOF
14297 /* end confdefs.h.  */
14298 $ac_includes_default
14299 int
14300 main ()
14301 {
14302 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
14303 test_array [0] = 0
14304
14305   ;
14306   return 0;
14307 }
14308 _ACEOF
14309 rm -f conftest.$ac_objext
14310 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14311   (eval $ac_compile) 2>&5
14312   ac_status=$?
14313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14314   (exit $ac_status); } &&
14315          { ac_try='test -s conftest.$ac_objext'
14316   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14317   (eval $ac_try) 2>&5
14318   ac_status=$?
14319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14320   (exit $ac_status); }; }; then
14321   ac_hi=$ac_mid; break
14322 else
14323   echo "$as_me: failed program was:" >&5
14324 sed 's/^/| /' conftest.$ac_ext >&5
14325
14326 ac_lo=`expr $ac_mid + 1`
14327                     if test $ac_lo -le $ac_mid; then
14328                       ac_lo= ac_hi=
14329                       break
14330                     fi
14331                     ac_mid=`expr 2 '*' $ac_mid + 1`
14332 fi
14333 rm -f conftest.$ac_objext conftest.$ac_ext
14334   done
14335 else
14336   echo "$as_me: failed program was:" >&5
14337 sed 's/^/| /' conftest.$ac_ext >&5
14338
14339 cat >conftest.$ac_ext <<_ACEOF
14340 #line $LINENO "configure"
14341 /* confdefs.h.  */
14342 _ACEOF
14343 cat confdefs.h >>conftest.$ac_ext
14344 cat >>conftest.$ac_ext <<_ACEOF
14345 /* end confdefs.h.  */
14346 $ac_includes_default
14347 int
14348 main ()
14349 {
14350 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) < 0)];
14351 test_array [0] = 0
14352
14353   ;
14354   return 0;
14355 }
14356 _ACEOF
14357 rm -f conftest.$ac_objext
14358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14359   (eval $ac_compile) 2>&5
14360   ac_status=$?
14361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14362   (exit $ac_status); } &&
14363          { ac_try='test -s conftest.$ac_objext'
14364   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14365   (eval $ac_try) 2>&5
14366   ac_status=$?
14367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14368   (exit $ac_status); }; }; then
14369   ac_hi=-1 ac_mid=-1
14370   while :; do
14371     cat >conftest.$ac_ext <<_ACEOF
14372 #line $LINENO "configure"
14373 /* confdefs.h.  */
14374 _ACEOF
14375 cat confdefs.h >>conftest.$ac_ext
14376 cat >>conftest.$ac_ext <<_ACEOF
14377 /* end confdefs.h.  */
14378 $ac_includes_default
14379 int
14380 main ()
14381 {
14382 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= $ac_mid)];
14383 test_array [0] = 0
14384
14385   ;
14386   return 0;
14387 }
14388 _ACEOF
14389 rm -f conftest.$ac_objext
14390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14391   (eval $ac_compile) 2>&5
14392   ac_status=$?
14393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14394   (exit $ac_status); } &&
14395          { ac_try='test -s conftest.$ac_objext'
14396   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14397   (eval $ac_try) 2>&5
14398   ac_status=$?
14399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14400   (exit $ac_status); }; }; then
14401   ac_lo=$ac_mid; break
14402 else
14403   echo "$as_me: failed program was:" >&5
14404 sed 's/^/| /' conftest.$ac_ext >&5
14405
14406 ac_hi=`expr '(' $ac_mid ')' - 1`
14407                        if test $ac_mid -le $ac_hi; then
14408                          ac_lo= ac_hi=
14409                          break
14410                        fi
14411                        ac_mid=`expr 2 '*' $ac_mid`
14412 fi
14413 rm -f conftest.$ac_objext conftest.$ac_ext
14414   done
14415 else
14416   echo "$as_me: failed program was:" >&5
14417 sed 's/^/| /' conftest.$ac_ext >&5
14418
14419 ac_lo= ac_hi=
14420 fi
14421 rm -f conftest.$ac_objext conftest.$ac_ext
14422 fi
14423 rm -f conftest.$ac_objext conftest.$ac_ext
14424 # Binary search between lo and hi bounds.
14425 while test "x$ac_lo" != "x$ac_hi"; do
14426   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14427   cat >conftest.$ac_ext <<_ACEOF
14428 #line $LINENO "configure"
14429 /* confdefs.h.  */
14430 _ACEOF
14431 cat confdefs.h >>conftest.$ac_ext
14432 cat >>conftest.$ac_ext <<_ACEOF
14433 /* end confdefs.h.  */
14434 $ac_includes_default
14435 int
14436 main ()
14437 {
14438 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
14439 test_array [0] = 0
14440
14441   ;
14442   return 0;
14443 }
14444 _ACEOF
14445 rm -f conftest.$ac_objext
14446 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14447   (eval $ac_compile) 2>&5
14448   ac_status=$?
14449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14450   (exit $ac_status); } &&
14451          { ac_try='test -s conftest.$ac_objext'
14452   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14453   (eval $ac_try) 2>&5
14454   ac_status=$?
14455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14456   (exit $ac_status); }; }; then
14457   ac_hi=$ac_mid
14458 else
14459   echo "$as_me: failed program was:" >&5
14460 sed 's/^/| /' conftest.$ac_ext >&5
14461
14462 ac_lo=`expr '(' $ac_mid ')' + 1`
14463 fi
14464 rm -f conftest.$ac_objext conftest.$ac_ext
14465 done
14466 case $ac_lo in
14467 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
14468 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
14469 See \`config.log' for more details." >&5
14470 echo "$as_me: error: cannot compute sizeof (long long int), 77
14471 See \`config.log' for more details." >&2;}
14472    { (exit 1); exit 1; }; } ;;
14473 esac
14474 else
14475   if test "$cross_compiling" = yes; then
14476   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14477 See \`config.log' for more details." >&5
14478 echo "$as_me: error: cannot run test program while cross compiling
14479 See \`config.log' for more details." >&2;}
14480    { (exit 1); exit 1; }; }
14481 else
14482   cat >conftest.$ac_ext <<_ACEOF
14483 #line $LINENO "configure"
14484 /* confdefs.h.  */
14485 _ACEOF
14486 cat confdefs.h >>conftest.$ac_ext
14487 cat >>conftest.$ac_ext <<_ACEOF
14488 /* end confdefs.h.  */
14489 $ac_includes_default
14490 long longval () { return (long) (sizeof (long long int)); }
14491 unsigned long ulongval () { return (long) (sizeof (long long int)); }
14492 #include <stdio.h>
14493 #include <stdlib.h>
14494 int
14495 main ()
14496 {
14497
14498   FILE *f = fopen ("conftest.val", "w");
14499   if (! f)
14500     exit (1);
14501   if (((long) (sizeof (long long int))) < 0)
14502     {
14503       long i = longval ();
14504       if (i != ((long) (sizeof (long long int))))
14505         exit (1);
14506       fprintf (f, "%ld\n", i);
14507     }
14508   else
14509     {
14510       unsigned long i = ulongval ();
14511       if (i != ((long) (sizeof (long long int))))
14512         exit (1);
14513       fprintf (f, "%lu\n", i);
14514     }
14515   exit (ferror (f) || fclose (f) != 0);
14516
14517   ;
14518   return 0;
14519 }
14520 _ACEOF
14521 rm -f conftest$ac_exeext
14522 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14523   (eval $ac_link) 2>&5
14524   ac_status=$?
14525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14526   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14527   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14528   (eval $ac_try) 2>&5
14529   ac_status=$?
14530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14531   (exit $ac_status); }; }; then
14532   ac_cv_sizeof_long_long_int=`cat conftest.val`
14533 else
14534   echo "$as_me: program exited with status $ac_status" >&5
14535 echo "$as_me: failed program was:" >&5
14536 sed 's/^/| /' conftest.$ac_ext >&5
14537
14538 ( exit $ac_status )
14539 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
14540 See \`config.log' for more details." >&5
14541 echo "$as_me: error: cannot compute sizeof (long long int), 77
14542 See \`config.log' for more details." >&2;}
14543    { (exit 1); exit 1; }; }
14544 fi
14545 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14546 fi
14547 fi
14548 rm -f conftest.val
14549 else
14550   ac_cv_sizeof_long_long_int=0
14551 fi
14552 fi
14553 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
14554 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6
14555 cat >>confdefs.h <<_ACEOF
14556 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
14557 _ACEOF
14558
14559
14560 echo "$as_me:$LINENO: checking for int *" >&5
14561 echo $ECHO_N "checking for int *... $ECHO_C" >&6
14562 if test "${ac_cv_type_int_p+set}" = set; then
14563   echo $ECHO_N "(cached) $ECHO_C" >&6
14564 else
14565   cat >conftest.$ac_ext <<_ACEOF
14566 #line $LINENO "configure"
14567 /* confdefs.h.  */
14568 _ACEOF
14569 cat confdefs.h >>conftest.$ac_ext
14570 cat >>conftest.$ac_ext <<_ACEOF
14571 /* end confdefs.h.  */
14572 $ac_includes_default
14573 int
14574 main ()
14575 {
14576 if ((int * *) 0)
14577   return 0;
14578 if (sizeof (int *))
14579   return 0;
14580   ;
14581   return 0;
14582 }
14583 _ACEOF
14584 rm -f conftest.$ac_objext
14585 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14586   (eval $ac_compile) 2>&5
14587   ac_status=$?
14588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14589   (exit $ac_status); } &&
14590          { ac_try='test -s conftest.$ac_objext'
14591   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14592   (eval $ac_try) 2>&5
14593   ac_status=$?
14594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14595   (exit $ac_status); }; }; then
14596   ac_cv_type_int_p=yes
14597 else
14598   echo "$as_me: failed program was:" >&5
14599 sed 's/^/| /' conftest.$ac_ext >&5
14600
14601 ac_cv_type_int_p=no
14602 fi
14603 rm -f conftest.$ac_objext conftest.$ac_ext
14604 fi
14605 echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
14606 echo "${ECHO_T}$ac_cv_type_int_p" >&6
14607
14608 echo "$as_me:$LINENO: checking size of int *" >&5
14609 echo $ECHO_N "checking size of int *... $ECHO_C" >&6
14610 if test "${ac_cv_sizeof_int_p+set}" = set; then
14611   echo $ECHO_N "(cached) $ECHO_C" >&6
14612 else
14613   if test "$ac_cv_type_int_p" = yes; then
14614   # The cast to unsigned long works around a bug in the HP C Compiler
14615   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14616   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14617   # This bug is HP SR number 8606223364.
14618   if test "$cross_compiling" = yes; then
14619   # Depending upon the size, compute the lo and hi bounds.
14620 cat >conftest.$ac_ext <<_ACEOF
14621 #line $LINENO "configure"
14622 /* confdefs.h.  */
14623 _ACEOF
14624 cat confdefs.h >>conftest.$ac_ext
14625 cat >>conftest.$ac_ext <<_ACEOF
14626 /* end confdefs.h.  */
14627 $ac_includes_default
14628 int
14629 main ()
14630 {
14631 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= 0)];
14632 test_array [0] = 0
14633
14634   ;
14635   return 0;
14636 }
14637 _ACEOF
14638 rm -f conftest.$ac_objext
14639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14640   (eval $ac_compile) 2>&5
14641   ac_status=$?
14642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14643   (exit $ac_status); } &&
14644          { ac_try='test -s conftest.$ac_objext'
14645   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14646   (eval $ac_try) 2>&5
14647   ac_status=$?
14648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14649   (exit $ac_status); }; }; then
14650   ac_lo=0 ac_mid=0
14651   while :; do
14652     cat >conftest.$ac_ext <<_ACEOF
14653 #line $LINENO "configure"
14654 /* confdefs.h.  */
14655 _ACEOF
14656 cat confdefs.h >>conftest.$ac_ext
14657 cat >>conftest.$ac_ext <<_ACEOF
14658 /* end confdefs.h.  */
14659 $ac_includes_default
14660 int
14661 main ()
14662 {
14663 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
14664 test_array [0] = 0
14665
14666   ;
14667   return 0;
14668 }
14669 _ACEOF
14670 rm -f conftest.$ac_objext
14671 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14672   (eval $ac_compile) 2>&5
14673   ac_status=$?
14674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14675   (exit $ac_status); } &&
14676          { ac_try='test -s conftest.$ac_objext'
14677   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14678   (eval $ac_try) 2>&5
14679   ac_status=$?
14680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14681   (exit $ac_status); }; }; then
14682   ac_hi=$ac_mid; break
14683 else
14684   echo "$as_me: failed program was:" >&5
14685 sed 's/^/| /' conftest.$ac_ext >&5
14686
14687 ac_lo=`expr $ac_mid + 1`
14688                     if test $ac_lo -le $ac_mid; then
14689                       ac_lo= ac_hi=
14690                       break
14691                     fi
14692                     ac_mid=`expr 2 '*' $ac_mid + 1`
14693 fi
14694 rm -f conftest.$ac_objext conftest.$ac_ext
14695   done
14696 else
14697   echo "$as_me: failed program was:" >&5
14698 sed 's/^/| /' conftest.$ac_ext >&5
14699
14700 cat >conftest.$ac_ext <<_ACEOF
14701 #line $LINENO "configure"
14702 /* confdefs.h.  */
14703 _ACEOF
14704 cat confdefs.h >>conftest.$ac_ext
14705 cat >>conftest.$ac_ext <<_ACEOF
14706 /* end confdefs.h.  */
14707 $ac_includes_default
14708 int
14709 main ()
14710 {
14711 static int test_array [1 - 2 * !(((long) (sizeof (int *))) < 0)];
14712 test_array [0] = 0
14713
14714   ;
14715   return 0;
14716 }
14717 _ACEOF
14718 rm -f conftest.$ac_objext
14719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14720   (eval $ac_compile) 2>&5
14721   ac_status=$?
14722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14723   (exit $ac_status); } &&
14724          { ac_try='test -s conftest.$ac_objext'
14725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14726   (eval $ac_try) 2>&5
14727   ac_status=$?
14728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14729   (exit $ac_status); }; }; then
14730   ac_hi=-1 ac_mid=-1
14731   while :; do
14732     cat >conftest.$ac_ext <<_ACEOF
14733 #line $LINENO "configure"
14734 /* confdefs.h.  */
14735 _ACEOF
14736 cat confdefs.h >>conftest.$ac_ext
14737 cat >>conftest.$ac_ext <<_ACEOF
14738 /* end confdefs.h.  */
14739 $ac_includes_default
14740 int
14741 main ()
14742 {
14743 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= $ac_mid)];
14744 test_array [0] = 0
14745
14746   ;
14747   return 0;
14748 }
14749 _ACEOF
14750 rm -f conftest.$ac_objext
14751 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14752   (eval $ac_compile) 2>&5
14753   ac_status=$?
14754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14755   (exit $ac_status); } &&
14756          { ac_try='test -s conftest.$ac_objext'
14757   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14758   (eval $ac_try) 2>&5
14759   ac_status=$?
14760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14761   (exit $ac_status); }; }; then
14762   ac_lo=$ac_mid; break
14763 else
14764   echo "$as_me: failed program was:" >&5
14765 sed 's/^/| /' conftest.$ac_ext >&5
14766
14767 ac_hi=`expr '(' $ac_mid ')' - 1`
14768                        if test $ac_mid -le $ac_hi; then
14769                          ac_lo= ac_hi=
14770                          break
14771                        fi
14772                        ac_mid=`expr 2 '*' $ac_mid`
14773 fi
14774 rm -f conftest.$ac_objext conftest.$ac_ext
14775   done
14776 else
14777   echo "$as_me: failed program was:" >&5
14778 sed 's/^/| /' conftest.$ac_ext >&5
14779
14780 ac_lo= ac_hi=
14781 fi
14782 rm -f conftest.$ac_objext conftest.$ac_ext
14783 fi
14784 rm -f conftest.$ac_objext conftest.$ac_ext
14785 # Binary search between lo and hi bounds.
14786 while test "x$ac_lo" != "x$ac_hi"; do
14787   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14788   cat >conftest.$ac_ext <<_ACEOF
14789 #line $LINENO "configure"
14790 /* confdefs.h.  */
14791 _ACEOF
14792 cat confdefs.h >>conftest.$ac_ext
14793 cat >>conftest.$ac_ext <<_ACEOF
14794 /* end confdefs.h.  */
14795 $ac_includes_default
14796 int
14797 main ()
14798 {
14799 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
14800 test_array [0] = 0
14801
14802   ;
14803   return 0;
14804 }
14805 _ACEOF
14806 rm -f conftest.$ac_objext
14807 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14808   (eval $ac_compile) 2>&5
14809   ac_status=$?
14810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14811   (exit $ac_status); } &&
14812          { ac_try='test -s conftest.$ac_objext'
14813   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14814   (eval $ac_try) 2>&5
14815   ac_status=$?
14816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14817   (exit $ac_status); }; }; then
14818   ac_hi=$ac_mid
14819 else
14820   echo "$as_me: failed program was:" >&5
14821 sed 's/^/| /' conftest.$ac_ext >&5
14822
14823 ac_lo=`expr '(' $ac_mid ')' + 1`
14824 fi
14825 rm -f conftest.$ac_objext conftest.$ac_ext
14826 done
14827 case $ac_lo in
14828 ?*) ac_cv_sizeof_int_p=$ac_lo;;
14829 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
14830 See \`config.log' for more details." >&5
14831 echo "$as_me: error: cannot compute sizeof (int *), 77
14832 See \`config.log' for more details." >&2;}
14833    { (exit 1); exit 1; }; } ;;
14834 esac
14835 else
14836   if test "$cross_compiling" = yes; then
14837   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14838 See \`config.log' for more details." >&5
14839 echo "$as_me: error: cannot run test program while cross compiling
14840 See \`config.log' for more details." >&2;}
14841    { (exit 1); exit 1; }; }
14842 else
14843   cat >conftest.$ac_ext <<_ACEOF
14844 #line $LINENO "configure"
14845 /* confdefs.h.  */
14846 _ACEOF
14847 cat confdefs.h >>conftest.$ac_ext
14848 cat >>conftest.$ac_ext <<_ACEOF
14849 /* end confdefs.h.  */
14850 $ac_includes_default
14851 long longval () { return (long) (sizeof (int *)); }
14852 unsigned long ulongval () { return (long) (sizeof (int *)); }
14853 #include <stdio.h>
14854 #include <stdlib.h>
14855 int
14856 main ()
14857 {
14858
14859   FILE *f = fopen ("conftest.val", "w");
14860   if (! f)
14861     exit (1);
14862   if (((long) (sizeof (int *))) < 0)
14863     {
14864       long i = longval ();
14865       if (i != ((long) (sizeof (int *))))
14866         exit (1);
14867       fprintf (f, "%ld\n", i);
14868     }
14869   else
14870     {
14871       unsigned long i = ulongval ();
14872       if (i != ((long) (sizeof (int *))))
14873         exit (1);
14874       fprintf (f, "%lu\n", i);
14875     }
14876   exit (ferror (f) || fclose (f) != 0);
14877
14878   ;
14879   return 0;
14880 }
14881 _ACEOF
14882 rm -f conftest$ac_exeext
14883 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14884   (eval $ac_link) 2>&5
14885   ac_status=$?
14886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14887   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14888   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14889   (eval $ac_try) 2>&5
14890   ac_status=$?
14891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14892   (exit $ac_status); }; }; then
14893   ac_cv_sizeof_int_p=`cat conftest.val`
14894 else
14895   echo "$as_me: program exited with status $ac_status" >&5
14896 echo "$as_me: failed program was:" >&5
14897 sed 's/^/| /' conftest.$ac_ext >&5
14898
14899 ( exit $ac_status )
14900 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
14901 See \`config.log' for more details." >&5
14902 echo "$as_me: error: cannot compute sizeof (int *), 77
14903 See \`config.log' for more details." >&2;}
14904    { (exit 1); exit 1; }; }
14905 fi
14906 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14907 fi
14908 fi
14909 rm -f conftest.val
14910 else
14911   ac_cv_sizeof_int_p=0
14912 fi
14913 fi
14914 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
14915 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6
14916 cat >>confdefs.h <<_ACEOF
14917 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
14918 _ACEOF
14919
14920
14921
14922 # Check for sys/types.h types
14923 echo "$as_me:$LINENO: checking for u_int type" >&5
14924 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6
14925 if test "${ac_cv_have_u_int+set}" = set; then
14926   echo $ECHO_N "(cached) $ECHO_C" >&6
14927 else
14928
14929     cat >conftest.$ac_ext <<_ACEOF
14930 #line $LINENO "configure"
14931 /* confdefs.h.  */
14932 _ACEOF
14933 cat confdefs.h >>conftest.$ac_ext
14934 cat >>conftest.$ac_ext <<_ACEOF
14935 /* end confdefs.h.  */
14936  #include <sys/types.h>
14937 int
14938 main ()
14939 {
14940  u_int a; a = 1;
14941   ;
14942   return 0;
14943 }
14944 _ACEOF
14945 rm -f conftest.$ac_objext
14946 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14947   (eval $ac_compile) 2>&5
14948   ac_status=$?
14949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14950   (exit $ac_status); } &&
14951          { ac_try='test -s conftest.$ac_objext'
14952   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14953   (eval $ac_try) 2>&5
14954   ac_status=$?
14955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14956   (exit $ac_status); }; }; then
14957    ac_cv_have_u_int="yes"
14958 else
14959   echo "$as_me: failed program was:" >&5
14960 sed 's/^/| /' conftest.$ac_ext >&5
14961
14962  ac_cv_have_u_int="no"
14963
14964 fi
14965 rm -f conftest.$ac_objext conftest.$ac_ext
14966
14967 fi
14968 echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
14969 echo "${ECHO_T}$ac_cv_have_u_int" >&6
14970 if test "x$ac_cv_have_u_int" = "xyes" ; then
14971    cat >>confdefs.h <<\_ACEOF
14972 #define HAVE_U_INT 1
14973 _ACEOF
14974
14975    have_u_int=1
14976 fi
14977
14978 echo "$as_me:$LINENO: checking for intmax_t type" >&5
14979 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6
14980 if test "${ac_cv_have_intmax_t+set}" = set; then
14981   echo $ECHO_N "(cached) $ECHO_C" >&6
14982 else
14983
14984    cat >conftest.$ac_ext <<_ACEOF
14985 #line $LINENO "configure"
14986 /* confdefs.h.  */
14987 _ACEOF
14988 cat confdefs.h >>conftest.$ac_ext
14989 cat >>conftest.$ac_ext <<_ACEOF
14990 /* end confdefs.h.  */
14991  #include <sys/types.h>
14992 int
14993 main ()
14994 {
14995  intmax_t a; a = 1;
14996   ;
14997   return 0;
14998 }
14999 _ACEOF
15000 rm -f conftest.$ac_objext
15001 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15002   (eval $ac_compile) 2>&5
15003   ac_status=$?
15004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15005   (exit $ac_status); } &&
15006          { ac_try='test -s conftest.$ac_objext'
15007   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15008   (eval $ac_try) 2>&5
15009   ac_status=$?
15010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15011   (exit $ac_status); }; }; then
15012    ac_cv_have_intmax_t="yes"
15013 else
15014   echo "$as_me: failed program was:" >&5
15015 sed 's/^/| /' conftest.$ac_ext >&5
15016
15017
15018          cat >conftest.$ac_ext <<_ACEOF
15019 #line $LINENO "configure"
15020 /* confdefs.h.  */
15021 _ACEOF
15022 cat confdefs.h >>conftest.$ac_ext
15023 cat >>conftest.$ac_ext <<_ACEOF
15024 /* end confdefs.h.  */
15025  #include <stdint.h>
15026 int
15027 main ()
15028 {
15029  intmax_t a; a = 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_intmax_t="yes"
15047 else
15048   echo "$as_me: failed program was:" >&5
15049 sed 's/^/| /' conftest.$ac_ext >&5
15050
15051  ac_cv_have_intmax_t="no"
15052
15053 fi
15054 rm -f conftest.$ac_objext conftest.$ac_ext
15055
15056
15057 fi
15058 rm -f conftest.$ac_objext conftest.$ac_ext
15059
15060
15061 fi
15062 echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
15063 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6
15064 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
15065    cat >>confdefs.h <<\_ACEOF
15066 #define HAVE_INTMAX_T 1
15067 _ACEOF
15068
15069    have_intmax_t=1
15070 fi
15071
15072
15073 echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
15074 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6
15075 if test "${ac_cv_have_u_intmax_t+set}" = set; then
15076   echo $ECHO_N "(cached) $ECHO_C" >&6
15077 else
15078
15079    cat >conftest.$ac_ext <<_ACEOF
15080 #line $LINENO "configure"
15081 /* confdefs.h.  */
15082 _ACEOF
15083 cat confdefs.h >>conftest.$ac_ext
15084 cat >>conftest.$ac_ext <<_ACEOF
15085 /* end confdefs.h.  */
15086  #include <sys/types.h>
15087 int
15088 main ()
15089 {
15090  u_intmax_t a; a = 1;
15091   ;
15092   return 0;
15093 }
15094 _ACEOF
15095 rm -f conftest.$ac_objext
15096 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15097   (eval $ac_compile) 2>&5
15098   ac_status=$?
15099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15100   (exit $ac_status); } &&
15101          { ac_try='test -s conftest.$ac_objext'
15102   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15103   (eval $ac_try) 2>&5
15104   ac_status=$?
15105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15106   (exit $ac_status); }; }; then
15107    ac_cv_have_u_intmax_t="yes"
15108 else
15109   echo "$as_me: failed program was:" >&5
15110 sed 's/^/| /' conftest.$ac_ext >&5
15111
15112
15113          cat >conftest.$ac_ext <<_ACEOF
15114 #line $LINENO "configure"
15115 /* confdefs.h.  */
15116 _ACEOF
15117 cat confdefs.h >>conftest.$ac_ext
15118 cat >>conftest.$ac_ext <<_ACEOF
15119 /* end confdefs.h.  */
15120  #include <stdint.h>
15121 int
15122 main ()
15123 {
15124  u_intmax_t a; a = 1;
15125   ;
15126   return 0;
15127 }
15128 _ACEOF
15129 rm -f conftest.$ac_objext
15130 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15131   (eval $ac_compile) 2>&5
15132   ac_status=$?
15133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15134   (exit $ac_status); } &&
15135          { ac_try='test -s conftest.$ac_objext'
15136   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15137   (eval $ac_try) 2>&5
15138   ac_status=$?
15139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15140   (exit $ac_status); }; }; then
15141    ac_cv_have_u_intmax_t="yes"
15142 else
15143   echo "$as_me: failed program was:" >&5
15144 sed 's/^/| /' conftest.$ac_ext >&5
15145
15146  ac_cv_have_u_intmax_t="no"
15147
15148 fi
15149 rm -f conftest.$ac_objext conftest.$ac_ext
15150
15151
15152 fi
15153 rm -f conftest.$ac_objext conftest.$ac_ext
15154
15155 fi
15156 echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
15157 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6
15158 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
15159    cat >>confdefs.h <<\_ACEOF
15160 #define HAVE_U_INTMAX_T 1
15161 _ACEOF
15162
15163    have_u_intmax_t=1
15164 fi
15165
15166
15167 echo "$as_me:$LINENO: checking for intXX_t types" >&5
15168 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6
15169 if test "${ac_cv_have_intxx_t+set}" = set; then
15170   echo $ECHO_N "(cached) $ECHO_C" >&6
15171 else
15172
15173    cat >conftest.$ac_ext <<_ACEOF
15174 #line $LINENO "configure"
15175 /* confdefs.h.  */
15176 _ACEOF
15177 cat confdefs.h >>conftest.$ac_ext
15178 cat >>conftest.$ac_ext <<_ACEOF
15179 /* end confdefs.h.  */
15180  #include <sys/types.h>
15181 int
15182 main ()
15183 {
15184  int8_t a; int16_t b; int32_t c; a = b = c = 1;
15185   ;
15186   return 0;
15187 }
15188 _ACEOF
15189 rm -f conftest.$ac_objext
15190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15191   (eval $ac_compile) 2>&5
15192   ac_status=$?
15193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15194   (exit $ac_status); } &&
15195          { ac_try='test -s conftest.$ac_objext'
15196   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15197   (eval $ac_try) 2>&5
15198   ac_status=$?
15199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15200   (exit $ac_status); }; }; then
15201    ac_cv_have_intxx_t="yes"
15202 else
15203   echo "$as_me: failed program was:" >&5
15204 sed 's/^/| /' conftest.$ac_ext >&5
15205
15206  ac_cv_have_intxx_t="no"
15207
15208 fi
15209 rm -f conftest.$ac_objext conftest.$ac_ext
15210
15211 fi
15212 echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
15213 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6
15214 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
15215    cat >>confdefs.h <<\_ACEOF
15216 #define HAVE_INTXX_T 1
15217 _ACEOF
15218
15219    have_intxx_t=1
15220 fi
15221
15222 echo "$as_me:$LINENO: checking for int64_t type" >&5
15223 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6
15224 if test "${ac_cv_have_int64_t+set}" = set; then
15225   echo $ECHO_N "(cached) $ECHO_C" >&6
15226 else
15227
15228    cat >conftest.$ac_ext <<_ACEOF
15229 #line $LINENO "configure"
15230 /* confdefs.h.  */
15231 _ACEOF
15232 cat confdefs.h >>conftest.$ac_ext
15233 cat >>conftest.$ac_ext <<_ACEOF
15234 /* end confdefs.h.  */
15235  #include <sys/types.h>
15236 int
15237 main ()
15238 {
15239  int64_t a; a = 1;
15240   ;
15241   return 0;
15242 }
15243 _ACEOF
15244 rm -f conftest.$ac_objext
15245 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15246   (eval $ac_compile) 2>&5
15247   ac_status=$?
15248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15249   (exit $ac_status); } &&
15250          { ac_try='test -s conftest.$ac_objext'
15251   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15252   (eval $ac_try) 2>&5
15253   ac_status=$?
15254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15255   (exit $ac_status); }; }; then
15256    ac_cv_have_int64_t="yes"
15257 else
15258   echo "$as_me: failed program was:" >&5
15259 sed 's/^/| /' conftest.$ac_ext >&5
15260
15261  ac_cv_have_int64_t="no"
15262
15263 fi
15264 rm -f conftest.$ac_objext conftest.$ac_ext
15265
15266 fi
15267 echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
15268 echo "${ECHO_T}$ac_cv_have_int64_t" >&6
15269 if test "x$ac_cv_have_int64_t" = "xyes" ; then
15270    cat >>confdefs.h <<\_ACEOF
15271 #define HAVE_INT64_T 1
15272 _ACEOF
15273
15274    have_int64_t=1
15275 fi
15276
15277 echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
15278 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6
15279 if test "${ac_cv_have_u_intxx_t+set}" = set; then
15280   echo $ECHO_N "(cached) $ECHO_C" >&6
15281 else
15282
15283    cat >conftest.$ac_ext <<_ACEOF
15284 #line $LINENO "configure"
15285 /* confdefs.h.  */
15286 _ACEOF
15287 cat confdefs.h >>conftest.$ac_ext
15288 cat >>conftest.$ac_ext <<_ACEOF
15289 /* end confdefs.h.  */
15290  #include <sys/types.h>
15291 int
15292 main ()
15293 {
15294  u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
15295   ;
15296   return 0;
15297 }
15298 _ACEOF
15299 rm -f conftest.$ac_objext
15300 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15301   (eval $ac_compile) 2>&5
15302   ac_status=$?
15303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15304   (exit $ac_status); } &&
15305          { ac_try='test -s conftest.$ac_objext'
15306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15307   (eval $ac_try) 2>&5
15308   ac_status=$?
15309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15310   (exit $ac_status); }; }; then
15311    ac_cv_have_u_intxx_t="yes"
15312 else
15313   echo "$as_me: failed program was:" >&5
15314 sed 's/^/| /' conftest.$ac_ext >&5
15315
15316  ac_cv_have_u_intxx_t="no"
15317
15318 fi
15319 rm -f conftest.$ac_objext conftest.$ac_ext
15320
15321 fi
15322 echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
15323 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6
15324 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
15325    cat >>confdefs.h <<\_ACEOF
15326 #define HAVE_U_INTXX_T 1
15327 _ACEOF
15328
15329    have_u_intxx_t=1
15330 fi
15331
15332 echo "$as_me:$LINENO: checking for u_int64_t types" >&5
15333 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6
15334 if test "${ac_cv_have_u_int64_t+set}" = set; then
15335   echo $ECHO_N "(cached) $ECHO_C" >&6
15336 else
15337
15338    cat >conftest.$ac_ext <<_ACEOF
15339 #line $LINENO "configure"
15340 /* confdefs.h.  */
15341 _ACEOF
15342 cat confdefs.h >>conftest.$ac_ext
15343 cat >>conftest.$ac_ext <<_ACEOF
15344 /* end confdefs.h.  */
15345  #include <sys/types.h>
15346 int
15347 main ()
15348 {
15349  u_int64_t a; a = 1;
15350   ;
15351   return 0;
15352 }
15353 _ACEOF
15354 rm -f conftest.$ac_objext
15355 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15356   (eval $ac_compile) 2>&5
15357   ac_status=$?
15358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15359   (exit $ac_status); } &&
15360          { ac_try='test -s conftest.$ac_objext'
15361   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15362   (eval $ac_try) 2>&5
15363   ac_status=$?
15364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15365   (exit $ac_status); }; }; then
15366    ac_cv_have_u_int64_t="yes"
15367 else
15368   echo "$as_me: failed program was:" >&5
15369 sed 's/^/| /' conftest.$ac_ext >&5
15370
15371  ac_cv_have_u_int64_t="no"
15372
15373 fi
15374 rm -f conftest.$ac_objext conftest.$ac_ext
15375
15376 fi
15377 echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
15378 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6
15379 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
15380    cat >>confdefs.h <<\_ACEOF
15381 #define HAVE_U_INT64_T 1
15382 _ACEOF
15383
15384    have_u_int64_t=1
15385 fi
15386
15387 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
15388            test "x$ac_cv_header_sys_bitypes_h" = "xyes")
15389 then
15390    echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
15391 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6
15392    cat >conftest.$ac_ext <<_ACEOF
15393 #line $LINENO "configure"
15394 /* confdefs.h.  */
15395 _ACEOF
15396 cat confdefs.h >>conftest.$ac_ext
15397 cat >>conftest.$ac_ext <<_ACEOF
15398 /* end confdefs.h.  */
15399  #include <sys/bitypes.h>
15400 int
15401 main ()
15402 {
15403  int8_t a; int16_t b; int32_t c;
15404         u_int8_t e; u_int16_t f; u_int32_t g;
15405         a = b = c = e = f = g = 1;
15406   ;
15407   return 0;
15408 }
15409 _ACEOF
15410 rm -f conftest.$ac_objext
15411 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15412   (eval $ac_compile) 2>&5
15413   ac_status=$?
15414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15415   (exit $ac_status); } &&
15416          { ac_try='test -s conftest.$ac_objext'
15417   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15418   (eval $ac_try) 2>&5
15419   ac_status=$?
15420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15421   (exit $ac_status); }; }; then
15422    cat >>confdefs.h <<\_ACEOF
15423 #define HAVE_U_INTXX_T 1
15424 _ACEOF
15425
15426         cat >>confdefs.h <<\_ACEOF
15427 #define HAVE_INTXX_T 1
15428 _ACEOF
15429
15430         cat >>confdefs.h <<\_ACEOF
15431 #define HAVE_SYS_BITYPES_H 1
15432 _ACEOF
15433
15434         echo "$as_me:$LINENO: result: yes" >&5
15435 echo "${ECHO_T}yes" >&6
15436 else
15437   echo "$as_me: failed program was:" >&5
15438 sed 's/^/| /' conftest.$ac_ext >&5
15439
15440  echo "$as_me:$LINENO: result: no" >&5
15441 echo "${ECHO_T}no" >&6
15442
15443 fi
15444 rm -f conftest.$ac_objext conftest.$ac_ext
15445 fi
15446
15447 if test -z "$have_u_intxx_t" ; then
15448    echo "$as_me:$LINENO: checking for uintXX_t types" >&5
15449 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6
15450 if test "${ac_cv_have_uintxx_t+set}" = set; then
15451   echo $ECHO_N "(cached) $ECHO_C" >&6
15452 else
15453
15454       cat >conftest.$ac_ext <<_ACEOF
15455 #line $LINENO "configure"
15456 /* confdefs.h.  */
15457 _ACEOF
15458 cat confdefs.h >>conftest.$ac_ext
15459 cat >>conftest.$ac_ext <<_ACEOF
15460 /* end confdefs.h.  */
15461  #include <sys/types.h>
15462 int
15463 main ()
15464 {
15465  uint8_t a; uint16_t b;
15466            uint32_t c; a = b = c = 1;
15467   ;
15468   return 0;
15469 }
15470 _ACEOF
15471 rm -f conftest.$ac_objext
15472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15473   (eval $ac_compile) 2>&5
15474   ac_status=$?
15475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15476   (exit $ac_status); } &&
15477          { ac_try='test -s conftest.$ac_objext'
15478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15479   (eval $ac_try) 2>&5
15480   ac_status=$?
15481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15482   (exit $ac_status); }; }; then
15483    ac_cv_have_uintxx_t="yes"
15484 else
15485   echo "$as_me: failed program was:" >&5
15486 sed 's/^/| /' conftest.$ac_ext >&5
15487
15488  ac_cv_have_uintxx_t="no"
15489
15490 fi
15491 rm -f conftest.$ac_objext conftest.$ac_ext
15492
15493 fi
15494 echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
15495 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6
15496    if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
15497       cat >>confdefs.h <<\_ACEOF
15498 #define HAVE_UINTXX_T 1
15499 _ACEOF
15500
15501    fi
15502 fi
15503
15504 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
15505           test "x$ac_cv_header_sys_bitypes_h" = "xyes")
15506 then
15507    echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
15508 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6
15509    cat >conftest.$ac_ext <<_ACEOF
15510 #line $LINENO "configure"
15511 /* confdefs.h.  */
15512 _ACEOF
15513 cat confdefs.h >>conftest.$ac_ext
15514 cat >>conftest.$ac_ext <<_ACEOF
15515 /* end confdefs.h.  */
15516  #include <sys/bitypes.h>
15517 int
15518 main ()
15519 {
15520  int64_t a; u_int64_t b;
15521        a = b = 1;
15522   ;
15523   return 0;
15524 }
15525 _ACEOF
15526 rm -f conftest.$ac_objext
15527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15528   (eval $ac_compile) 2>&5
15529   ac_status=$?
15530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15531   (exit $ac_status); } &&
15532          { ac_try='test -s conftest.$ac_objext'
15533   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15534   (eval $ac_try) 2>&5
15535   ac_status=$?
15536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15537   (exit $ac_status); }; }; then
15538    cat >>confdefs.h <<\_ACEOF
15539 #define HAVE_U_INT64_T 1
15540 _ACEOF
15541
15542        cat >>confdefs.h <<\_ACEOF
15543 #define HAVE_INT64_T 1
15544 _ACEOF
15545
15546        echo "$as_me:$LINENO: result: yes" >&5
15547 echo "${ECHO_T}yes" >&6
15548 else
15549   echo "$as_me: failed program was:" >&5
15550 sed 's/^/| /' conftest.$ac_ext >&5
15551
15552  echo "$as_me:$LINENO: result: no" >&5
15553 echo "${ECHO_T}no" >&6
15554
15555 fi
15556 rm -f conftest.$ac_objext conftest.$ac_ext
15557 fi
15558
15559 if (test -z "$have_uintxx_t" && \
15560           test "x$ac_cv_header_sys_bitypes_h" = "xyes")
15561 then
15562    echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
15563 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6
15564    cat >conftest.$ac_ext <<_ACEOF
15565 #line $LINENO "configure"
15566 /* confdefs.h.  */
15567 _ACEOF
15568 cat confdefs.h >>conftest.$ac_ext
15569 cat >>conftest.$ac_ext <<_ACEOF
15570 /* end confdefs.h.  */
15571  #include <sys/bitypes.h>
15572 int
15573 main ()
15574 {
15575  uint8_t a; uint16_t b;
15576           uint32_t c; a = b = c = 1;
15577   ;
15578   return 0;
15579 }
15580 _ACEOF
15581 rm -f conftest.$ac_objext
15582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15583   (eval $ac_compile) 2>&5
15584   ac_status=$?
15585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15586   (exit $ac_status); } &&
15587          { ac_try='test -s conftest.$ac_objext'
15588   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15589   (eval $ac_try) 2>&5
15590   ac_status=$?
15591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15592   (exit $ac_status); }; }; then
15593    cat >>confdefs.h <<\_ACEOF
15594 #define HAVE_UINTXX_T 1
15595 _ACEOF
15596
15597        echo "$as_me:$LINENO: result: yes" >&5
15598 echo "${ECHO_T}yes" >&6
15599 else
15600   echo "$as_me: failed program was:" >&5
15601 sed 's/^/| /' conftest.$ac_ext >&5
15602
15603  echo "$as_me:$LINENO: result: no" >&5
15604 echo "${ECHO_T}no" >&6
15605
15606 fi
15607 rm -f conftest.$ac_objext conftest.$ac_ext
15608
15609 fi
15610
15611
15612
15613
15614
15615
15616
15617
15618
15619
15620
15621
15622
15623
15624
15625
15626
15627 for ac_func in \
15628         fork \
15629         getcwd \
15630         gethostname \
15631         getpid \
15632         gettimeofday \
15633         setpgid \
15634         setpgrp \
15635         setsid \
15636         signal \
15637         strerror \
15638         strncmp \
15639         strncpy \
15640         vfprintf \
15641
15642 do
15643 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15644 echo "$as_me:$LINENO: checking for $ac_func" >&5
15645 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15646 if eval "test \"\${$as_ac_var+set}\" = set"; then
15647   echo $ECHO_N "(cached) $ECHO_C" >&6
15648 else
15649   cat >conftest.$ac_ext <<_ACEOF
15650 #line $LINENO "configure"
15651 /* confdefs.h.  */
15652 _ACEOF
15653 cat confdefs.h >>conftest.$ac_ext
15654 cat >>conftest.$ac_ext <<_ACEOF
15655 /* end confdefs.h.  */
15656 /* System header to define __stub macros and hopefully few prototypes,
15657     which can conflict with char $ac_func (); below.
15658     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15659     <limits.h> exists even on freestanding compilers.  */
15660 #ifdef __STDC__
15661 # include <limits.h>
15662 #else
15663 # include <assert.h>
15664 #endif
15665 /* Override any gcc2 internal prototype to avoid an error.  */
15666 #ifdef __cplusplus
15667 extern "C"
15668 {
15669 #endif
15670 /* We use char because int might match the return type of a gcc2
15671    builtin and then its argument prototype would still apply.  */
15672 char $ac_func ();
15673 /* The GNU C library defines this for functions which it implements
15674     to always fail with ENOSYS.  Some functions are actually named
15675     something starting with __ and the normal name is an alias.  */
15676 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15677 choke me
15678 #else
15679 char (*f) () = $ac_func;
15680 #endif
15681 #ifdef __cplusplus
15682 }
15683 #endif
15684
15685 int
15686 main ()
15687 {
15688 return f != $ac_func;
15689   ;
15690   return 0;
15691 }
15692 _ACEOF
15693 rm -f conftest.$ac_objext conftest$ac_exeext
15694 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15695   (eval $ac_link) 2>&5
15696   ac_status=$?
15697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15698   (exit $ac_status); } &&
15699          { ac_try='test -s conftest$ac_exeext'
15700   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15701   (eval $ac_try) 2>&5
15702   ac_status=$?
15703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15704   (exit $ac_status); }; }; then
15705   eval "$as_ac_var=yes"
15706 else
15707   echo "$as_me: failed program was:" >&5
15708 sed 's/^/| /' conftest.$ac_ext >&5
15709
15710 eval "$as_ac_var=no"
15711 fi
15712 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15713 fi
15714 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15715 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15716 if test `eval echo '${'$as_ac_var'}'` = yes; then
15717   cat >>confdefs.h <<_ACEOF
15718 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15719 _ACEOF
15720
15721 else
15722   echo 'configure: cannot find needed function.'; exit 1
15723
15724 fi
15725 done
15726
15727
15728
15729 for ac_func in fchdir
15730 do
15731 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15732 echo "$as_me:$LINENO: checking for $ac_func" >&5
15733 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15734 if eval "test \"\${$as_ac_var+set}\" = set"; then
15735   echo $ECHO_N "(cached) $ECHO_C" >&6
15736 else
15737   cat >conftest.$ac_ext <<_ACEOF
15738 #line $LINENO "configure"
15739 /* confdefs.h.  */
15740 _ACEOF
15741 cat confdefs.h >>conftest.$ac_ext
15742 cat >>conftest.$ac_ext <<_ACEOF
15743 /* end confdefs.h.  */
15744 /* System header to define __stub macros and hopefully few prototypes,
15745     which can conflict with char $ac_func (); below.
15746     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15747     <limits.h> exists even on freestanding compilers.  */
15748 #ifdef __STDC__
15749 # include <limits.h>
15750 #else
15751 # include <assert.h>
15752 #endif
15753 /* Override any gcc2 internal prototype to avoid an error.  */
15754 #ifdef __cplusplus
15755 extern "C"
15756 {
15757 #endif
15758 /* We use char because int might match the return type of a gcc2
15759    builtin and then its argument prototype would still apply.  */
15760 char $ac_func ();
15761 /* The GNU C library defines this for functions which it implements
15762     to always fail with ENOSYS.  Some functions are actually named
15763     something starting with __ and the normal name is an alias.  */
15764 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15765 choke me
15766 #else
15767 char (*f) () = $ac_func;
15768 #endif
15769 #ifdef __cplusplus
15770 }
15771 #endif
15772
15773 int
15774 main ()
15775 {
15776 return f != $ac_func;
15777   ;
15778   return 0;
15779 }
15780 _ACEOF
15781 rm -f conftest.$ac_objext conftest$ac_exeext
15782 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15783   (eval $ac_link) 2>&5
15784   ac_status=$?
15785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15786   (exit $ac_status); } &&
15787          { ac_try='test -s conftest$ac_exeext'
15788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15789   (eval $ac_try) 2>&5
15790   ac_status=$?
15791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15792   (exit $ac_status); }; }; then
15793   eval "$as_ac_var=yes"
15794 else
15795   echo "$as_me: failed program was:" >&5
15796 sed 's/^/| /' conftest.$ac_ext >&5
15797
15798 eval "$as_ac_var=no"
15799 fi
15800 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15801 fi
15802 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15803 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15804 if test `eval echo '${'$as_ac_var'}'` = yes; then
15805   cat >>confdefs.h <<_ACEOF
15806 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15807 _ACEOF
15808  cat >>confdefs.h <<\_ACEOF
15809 #define HAVE_FCHDIR 1
15810 _ACEOF
15811
15812 fi
15813 done
15814
15815
15816 for ac_func in strtoll
15817 do
15818 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15819 echo "$as_me:$LINENO: checking for $ac_func" >&5
15820 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15821 if eval "test \"\${$as_ac_var+set}\" = set"; then
15822   echo $ECHO_N "(cached) $ECHO_C" >&6
15823 else
15824   cat >conftest.$ac_ext <<_ACEOF
15825 #line $LINENO "configure"
15826 /* confdefs.h.  */
15827 _ACEOF
15828 cat confdefs.h >>conftest.$ac_ext
15829 cat >>conftest.$ac_ext <<_ACEOF
15830 /* end confdefs.h.  */
15831 /* System header to define __stub macros and hopefully few prototypes,
15832     which can conflict with char $ac_func (); below.
15833     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15834     <limits.h> exists even on freestanding compilers.  */
15835 #ifdef __STDC__
15836 # include <limits.h>
15837 #else
15838 # include <assert.h>
15839 #endif
15840 /* Override any gcc2 internal prototype to avoid an error.  */
15841 #ifdef __cplusplus
15842 extern "C"
15843 {
15844 #endif
15845 /* We use char because int might match the return type of a gcc2
15846    builtin and then its argument prototype would still apply.  */
15847 char $ac_func ();
15848 /* The GNU C library defines this for functions which it implements
15849     to always fail with ENOSYS.  Some functions are actually named
15850     something starting with __ and the normal name is an alias.  */
15851 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15852 choke me
15853 #else
15854 char (*f) () = $ac_func;
15855 #endif
15856 #ifdef __cplusplus
15857 }
15858 #endif
15859
15860 int
15861 main ()
15862 {
15863 return f != $ac_func;
15864   ;
15865   return 0;
15866 }
15867 _ACEOF
15868 rm -f conftest.$ac_objext conftest$ac_exeext
15869 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15870   (eval $ac_link) 2>&5
15871   ac_status=$?
15872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15873   (exit $ac_status); } &&
15874          { ac_try='test -s conftest$ac_exeext'
15875   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15876   (eval $ac_try) 2>&5
15877   ac_status=$?
15878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15879   (exit $ac_status); }; }; then
15880   eval "$as_ac_var=yes"
15881 else
15882   echo "$as_me: failed program was:" >&5
15883 sed 's/^/| /' conftest.$ac_ext >&5
15884
15885 eval "$as_ac_var=no"
15886 fi
15887 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15888 fi
15889 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15890 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15891 if test `eval echo '${'$as_ac_var'}'` = yes; then
15892   cat >>confdefs.h <<_ACEOF
15893 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15894 _ACEOF
15895  cat >>confdefs.h <<\_ACEOF
15896 #define HAVE_STRTOLL 1
15897 _ACEOF
15898
15899 fi
15900 done
15901
15902
15903
15904 for ac_func in chflags
15905 do
15906 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15907 echo "$as_me:$LINENO: checking for $ac_func" >&5
15908 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15909 if eval "test \"\${$as_ac_var+set}\" = set"; then
15910   echo $ECHO_N "(cached) $ECHO_C" >&6
15911 else
15912   cat >conftest.$ac_ext <<_ACEOF
15913 #line $LINENO "configure"
15914 /* confdefs.h.  */
15915 _ACEOF
15916 cat confdefs.h >>conftest.$ac_ext
15917 cat >>conftest.$ac_ext <<_ACEOF
15918 /* end confdefs.h.  */
15919 /* System header to define __stub macros and hopefully few prototypes,
15920     which can conflict with char $ac_func (); below.
15921     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15922     <limits.h> exists even on freestanding compilers.  */
15923 #ifdef __STDC__
15924 # include <limits.h>
15925 #else
15926 # include <assert.h>
15927 #endif
15928 /* Override any gcc2 internal prototype to avoid an error.  */
15929 #ifdef __cplusplus
15930 extern "C"
15931 {
15932 #endif
15933 /* We use char because int might match the return type of a gcc2
15934    builtin and then its argument prototype would still apply.  */
15935 char $ac_func ();
15936 /* The GNU C library defines this for functions which it implements
15937     to always fail with ENOSYS.  Some functions are actually named
15938     something starting with __ and the normal name is an alias.  */
15939 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15940 choke me
15941 #else
15942 char (*f) () = $ac_func;
15943 #endif
15944 #ifdef __cplusplus
15945 }
15946 #endif
15947
15948 int
15949 main ()
15950 {
15951 return f != $ac_func;
15952   ;
15953   return 0;
15954 }
15955 _ACEOF
15956 rm -f conftest.$ac_objext conftest$ac_exeext
15957 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15958   (eval $ac_link) 2>&5
15959   ac_status=$?
15960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15961   (exit $ac_status); } &&
15962          { ac_try='test -s conftest$ac_exeext'
15963   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15964   (eval $ac_try) 2>&5
15965   ac_status=$?
15966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15967   (exit $ac_status); }; }; then
15968   eval "$as_ac_var=yes"
15969 else
15970   echo "$as_me: failed program was:" >&5
15971 sed 's/^/| /' conftest.$ac_ext >&5
15972
15973 eval "$as_ac_var=no"
15974 fi
15975 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15976 fi
15977 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15978 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15979 if test `eval echo '${'$as_ac_var'}'` = yes; then
15980   cat >>confdefs.h <<_ACEOF
15981 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15982 _ACEOF
15983
15984 fi
15985 done
15986
15987
15988
15989
15990
15991
15992 for ac_func in snprintf vsnprintf gethostid getdomainname
15993 do
15994 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15995 echo "$as_me:$LINENO: checking for $ac_func" >&5
15996 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15997 if eval "test \"\${$as_ac_var+set}\" = set"; then
15998   echo $ECHO_N "(cached) $ECHO_C" >&6
15999 else
16000   cat >conftest.$ac_ext <<_ACEOF
16001 #line $LINENO "configure"
16002 /* confdefs.h.  */
16003 _ACEOF
16004 cat confdefs.h >>conftest.$ac_ext
16005 cat >>conftest.$ac_ext <<_ACEOF
16006 /* end confdefs.h.  */
16007 /* System header to define __stub macros and hopefully few prototypes,
16008     which can conflict with char $ac_func (); below.
16009     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16010     <limits.h> exists even on freestanding compilers.  */
16011 #ifdef __STDC__
16012 # include <limits.h>
16013 #else
16014 # include <assert.h>
16015 #endif
16016 /* Override any gcc2 internal prototype to avoid an error.  */
16017 #ifdef __cplusplus
16018 extern "C"
16019 {
16020 #endif
16021 /* We use char because int might match the return type of a gcc2
16022    builtin and then its argument prototype would still apply.  */
16023 char $ac_func ();
16024 /* The GNU C library defines this for functions which it implements
16025     to always fail with ENOSYS.  Some functions are actually named
16026     something starting with __ and the normal name is an alias.  */
16027 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16028 choke me
16029 #else
16030 char (*f) () = $ac_func;
16031 #endif
16032 #ifdef __cplusplus
16033 }
16034 #endif
16035
16036 int
16037 main ()
16038 {
16039 return f != $ac_func;
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   eval "$as_ac_var=yes"
16057 else
16058   echo "$as_me: failed program was:" >&5
16059 sed 's/^/| /' conftest.$ac_ext >&5
16060
16061 eval "$as_ac_var=no"
16062 fi
16063 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16064 fi
16065 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16066 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16067 if test `eval echo '${'$as_ac_var'}'` = yes; then
16068   cat >>confdefs.h <<_ACEOF
16069 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16070 _ACEOF
16071
16072 fi
16073 done
16074
16075
16076
16077
16078
16079
16080 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
16081 do
16082 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16083 echo "$as_me:$LINENO: checking for $ac_func" >&5
16084 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16085 if eval "test \"\${$as_ac_var+set}\" = set"; then
16086   echo $ECHO_N "(cached) $ECHO_C" >&6
16087 else
16088   cat >conftest.$ac_ext <<_ACEOF
16089 #line $LINENO "configure"
16090 /* confdefs.h.  */
16091 _ACEOF
16092 cat confdefs.h >>conftest.$ac_ext
16093 cat >>conftest.$ac_ext <<_ACEOF
16094 /* end confdefs.h.  */
16095 /* System header to define __stub macros and hopefully few prototypes,
16096     which can conflict with char $ac_func (); below.
16097     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16098     <limits.h> exists even on freestanding compilers.  */
16099 #ifdef __STDC__
16100 # include <limits.h>
16101 #else
16102 # include <assert.h>
16103 #endif
16104 /* Override any gcc2 internal prototype to avoid an error.  */
16105 #ifdef __cplusplus
16106 extern "C"
16107 {
16108 #endif
16109 /* We use char because int might match the return type of a gcc2
16110    builtin and then its argument prototype would still apply.  */
16111 char $ac_func ();
16112 /* The GNU C library defines this for functions which it implements
16113     to always fail with ENOSYS.  Some functions are actually named
16114     something starting with __ and the normal name is an alias.  */
16115 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16116 choke me
16117 #else
16118 char (*f) () = $ac_func;
16119 #endif
16120 #ifdef __cplusplus
16121 }
16122 #endif
16123
16124 int
16125 main ()
16126 {
16127 return f != $ac_func;
16128   ;
16129   return 0;
16130 }
16131 _ACEOF
16132 rm -f conftest.$ac_objext conftest$ac_exeext
16133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16134   (eval $ac_link) 2>&5
16135   ac_status=$?
16136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16137   (exit $ac_status); } &&
16138          { ac_try='test -s conftest$ac_exeext'
16139   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16140   (eval $ac_try) 2>&5
16141   ac_status=$?
16142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16143   (exit $ac_status); }; }; then
16144   eval "$as_ac_var=yes"
16145 else
16146   echo "$as_me: failed program was:" >&5
16147 sed 's/^/| /' conftest.$ac_ext >&5
16148
16149 eval "$as_ac_var=no"
16150 fi
16151 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16152 fi
16153 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16154 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16155 if test `eval echo '${'$as_ac_var'}'` = yes; then
16156   cat >>confdefs.h <<_ACEOF
16157 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16158 _ACEOF
16159
16160 fi
16161 done
16162
16163
16164 # If resolver functions are not in libc check for -lnsl or -lresolv.
16165 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
16166 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
16167 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
16168   echo $ECHO_N "(cached) $ECHO_C" >&6
16169 else
16170   cat >conftest.$ac_ext <<_ACEOF
16171 #line $LINENO "configure"
16172 /* confdefs.h.  */
16173 _ACEOF
16174 cat confdefs.h >>conftest.$ac_ext
16175 cat >>conftest.$ac_ext <<_ACEOF
16176 /* end confdefs.h.  */
16177 /* System header to define __stub macros and hopefully few prototypes,
16178     which can conflict with char gethostbyname_r (); below.
16179     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16180     <limits.h> exists even on freestanding compilers.  */
16181 #ifdef __STDC__
16182 # include <limits.h>
16183 #else
16184 # include <assert.h>
16185 #endif
16186 /* Override any gcc2 internal prototype to avoid an error.  */
16187 #ifdef __cplusplus
16188 extern "C"
16189 {
16190 #endif
16191 /* We use char because int might match the return type of a gcc2
16192    builtin and then its argument prototype would still apply.  */
16193 char gethostbyname_r ();
16194 /* The GNU C library defines this for functions which it implements
16195     to always fail with ENOSYS.  Some functions are actually named
16196     something starting with __ and the normal name is an alias.  */
16197 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
16198 choke me
16199 #else
16200 char (*f) () = gethostbyname_r;
16201 #endif
16202 #ifdef __cplusplus
16203 }
16204 #endif
16205
16206 int
16207 main ()
16208 {
16209 return f != gethostbyname_r;
16210   ;
16211   return 0;
16212 }
16213 _ACEOF
16214 rm -f conftest.$ac_objext conftest$ac_exeext
16215 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16216   (eval $ac_link) 2>&5
16217   ac_status=$?
16218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16219   (exit $ac_status); } &&
16220          { ac_try='test -s conftest$ac_exeext'
16221   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16222   (eval $ac_try) 2>&5
16223   ac_status=$?
16224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16225   (exit $ac_status); }; }; then
16226   ac_cv_func_gethostbyname_r=yes
16227 else
16228   echo "$as_me: failed program was:" >&5
16229 sed 's/^/| /' conftest.$ac_ext >&5
16230
16231 ac_cv_func_gethostbyname_r=no
16232 fi
16233 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16234 fi
16235 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
16236 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
16237 if test $ac_cv_func_gethostbyname_r = yes; then
16238   echo "$as_me:$LINENO: result: using libc's resolver" >&5
16239 echo "${ECHO_T}using libc's resolver" >&6
16240 else
16241
16242 echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
16243 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6
16244 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
16245   echo $ECHO_N "(cached) $ECHO_C" >&6
16246 else
16247   ac_check_lib_save_LIBS=$LIBS
16248 LIBS="-lnsl  $LIBS"
16249 cat >conftest.$ac_ext <<_ACEOF
16250 #line $LINENO "configure"
16251 /* confdefs.h.  */
16252 _ACEOF
16253 cat confdefs.h >>conftest.$ac_ext
16254 cat >>conftest.$ac_ext <<_ACEOF
16255 /* end confdefs.h.  */
16256
16257 /* Override any gcc2 internal prototype to avoid an error.  */
16258 #ifdef __cplusplus
16259 extern "C"
16260 #endif
16261 /* We use char because int might match the return type of a gcc2
16262    builtin and then its argument prototype would still apply.  */
16263 char gethostbyname_r ();
16264 int
16265 main ()
16266 {
16267 gethostbyname_r ();
16268   ;
16269   return 0;
16270 }
16271 _ACEOF
16272 rm -f conftest.$ac_objext conftest$ac_exeext
16273 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16274   (eval $ac_link) 2>&5
16275   ac_status=$?
16276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16277   (exit $ac_status); } &&
16278          { ac_try='test -s conftest$ac_exeext'
16279   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16280   (eval $ac_try) 2>&5
16281   ac_status=$?
16282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16283   (exit $ac_status); }; }; then
16284   ac_cv_lib_nsl_gethostbyname_r=yes
16285 else
16286   echo "$as_me: failed program was:" >&5
16287 sed 's/^/| /' conftest.$ac_ext >&5
16288
16289 ac_cv_lib_nsl_gethostbyname_r=no
16290 fi
16291 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16292 LIBS=$ac_check_lib_save_LIBS
16293 fi
16294 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
16295 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6
16296 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
16297   cat >>confdefs.h <<_ACEOF
16298 #define HAVE_LIBNSL 1
16299 _ACEOF
16300
16301   LIBS="-lnsl $LIBS"
16302
16303 fi
16304
16305
16306 echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
16307 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6
16308 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
16309   echo $ECHO_N "(cached) $ECHO_C" >&6
16310 else
16311   ac_check_lib_save_LIBS=$LIBS
16312 LIBS="-lresolv  $LIBS"
16313 cat >conftest.$ac_ext <<_ACEOF
16314 #line $LINENO "configure"
16315 /* confdefs.h.  */
16316 _ACEOF
16317 cat confdefs.h >>conftest.$ac_ext
16318 cat >>conftest.$ac_ext <<_ACEOF
16319 /* end confdefs.h.  */
16320
16321 /* Override any gcc2 internal prototype to avoid an error.  */
16322 #ifdef __cplusplus
16323 extern "C"
16324 #endif
16325 /* We use char because int might match the return type of a gcc2
16326    builtin and then its argument prototype would still apply.  */
16327 char gethostbyname_r ();
16328 int
16329 main ()
16330 {
16331 gethostbyname_r ();
16332   ;
16333   return 0;
16334 }
16335 _ACEOF
16336 rm -f conftest.$ac_objext conftest$ac_exeext
16337 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16338   (eval $ac_link) 2>&5
16339   ac_status=$?
16340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16341   (exit $ac_status); } &&
16342          { ac_try='test -s conftest$ac_exeext'
16343   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16344   (eval $ac_try) 2>&5
16345   ac_status=$?
16346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16347   (exit $ac_status); }; }; then
16348   ac_cv_lib_resolv_gethostbyname_r=yes
16349 else
16350   echo "$as_me: failed program was:" >&5
16351 sed 's/^/| /' conftest.$ac_ext >&5
16352
16353 ac_cv_lib_resolv_gethostbyname_r=no
16354 fi
16355 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16356 LIBS=$ac_check_lib_save_LIBS
16357 fi
16358 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
16359 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6
16360 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
16361   cat >>confdefs.h <<_ACEOF
16362 #define HAVE_LIBRESOLV 1
16363 _ACEOF
16364
16365   LIBS="-lresolv $LIBS"
16366
16367 fi
16368
16369 fi
16370
16371
16372
16373 # Find where sockets are (especially for Solaris)
16374 echo "$as_me:$LINENO: checking for socket" >&5
16375 echo $ECHO_N "checking for socket... $ECHO_C" >&6
16376 if test "${ac_cv_func_socket+set}" = set; then
16377   echo $ECHO_N "(cached) $ECHO_C" >&6
16378 else
16379   cat >conftest.$ac_ext <<_ACEOF
16380 #line $LINENO "configure"
16381 /* confdefs.h.  */
16382 _ACEOF
16383 cat confdefs.h >>conftest.$ac_ext
16384 cat >>conftest.$ac_ext <<_ACEOF
16385 /* end confdefs.h.  */
16386 /* System header to define __stub macros and hopefully few prototypes,
16387     which can conflict with char socket (); below.
16388     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16389     <limits.h> exists even on freestanding compilers.  */
16390 #ifdef __STDC__
16391 # include <limits.h>
16392 #else
16393 # include <assert.h>
16394 #endif
16395 /* Override any gcc2 internal prototype to avoid an error.  */
16396 #ifdef __cplusplus
16397 extern "C"
16398 {
16399 #endif
16400 /* We use char because int might match the return type of a gcc2
16401    builtin and then its argument prototype would still apply.  */
16402 char socket ();
16403 /* The GNU C library defines this for functions which it implements
16404     to always fail with ENOSYS.  Some functions are actually named
16405     something starting with __ and the normal name is an alias.  */
16406 #if defined (__stub_socket) || defined (__stub___socket)
16407 choke me
16408 #else
16409 char (*f) () = socket;
16410 #endif
16411 #ifdef __cplusplus
16412 }
16413 #endif
16414
16415 int
16416 main ()
16417 {
16418 return f != socket;
16419   ;
16420   return 0;
16421 }
16422 _ACEOF
16423 rm -f conftest.$ac_objext conftest$ac_exeext
16424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16425   (eval $ac_link) 2>&5
16426   ac_status=$?
16427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16428   (exit $ac_status); } &&
16429          { ac_try='test -s conftest$ac_exeext'
16430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16431   (eval $ac_try) 2>&5
16432   ac_status=$?
16433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16434   (exit $ac_status); }; }; then
16435   ac_cv_func_socket=yes
16436 else
16437   echo "$as_me: failed program was:" >&5
16438 sed 's/^/| /' conftest.$ac_ext >&5
16439
16440 ac_cv_func_socket=no
16441 fi
16442 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16443 fi
16444 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
16445 echo "${ECHO_T}$ac_cv_func_socket" >&6
16446 if test $ac_cv_func_socket = yes; then
16447   echo "$as_me:$LINENO: result: using libc's socket" >&5
16448 echo "${ECHO_T}using libc's socket" >&6
16449 else
16450
16451 echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
16452 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6
16453 if test "${ac_cv_lib_xnet_socket+set}" = set; then
16454   echo $ECHO_N "(cached) $ECHO_C" >&6
16455 else
16456   ac_check_lib_save_LIBS=$LIBS
16457 LIBS="-lxnet  $LIBS"
16458 cat >conftest.$ac_ext <<_ACEOF
16459 #line $LINENO "configure"
16460 /* confdefs.h.  */
16461 _ACEOF
16462 cat confdefs.h >>conftest.$ac_ext
16463 cat >>conftest.$ac_ext <<_ACEOF
16464 /* end confdefs.h.  */
16465
16466 /* Override any gcc2 internal prototype to avoid an error.  */
16467 #ifdef __cplusplus
16468 extern "C"
16469 #endif
16470 /* We use char because int might match the return type of a gcc2
16471    builtin and then its argument prototype would still apply.  */
16472 char socket ();
16473 int
16474 main ()
16475 {
16476 socket ();
16477   ;
16478   return 0;
16479 }
16480 _ACEOF
16481 rm -f conftest.$ac_objext conftest$ac_exeext
16482 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16483   (eval $ac_link) 2>&5
16484   ac_status=$?
16485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16486   (exit $ac_status); } &&
16487          { ac_try='test -s conftest$ac_exeext'
16488   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16489   (eval $ac_try) 2>&5
16490   ac_status=$?
16491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16492   (exit $ac_status); }; }; then
16493   ac_cv_lib_xnet_socket=yes
16494 else
16495   echo "$as_me: failed program was:" >&5
16496 sed 's/^/| /' conftest.$ac_ext >&5
16497
16498 ac_cv_lib_xnet_socket=no
16499 fi
16500 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16501 LIBS=$ac_check_lib_save_LIBS
16502 fi
16503 echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
16504 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6
16505 if test $ac_cv_lib_xnet_socket = yes; then
16506   cat >>confdefs.h <<_ACEOF
16507 #define HAVE_LIBXNET 1
16508 _ACEOF
16509
16510   LIBS="-lxnet $LIBS"
16511
16512 fi
16513
16514
16515 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
16516 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
16517 if test "${ac_cv_lib_socket_socket+set}" = set; then
16518   echo $ECHO_N "(cached) $ECHO_C" >&6
16519 else
16520   ac_check_lib_save_LIBS=$LIBS
16521 LIBS="-lsocket  $LIBS"
16522 cat >conftest.$ac_ext <<_ACEOF
16523 #line $LINENO "configure"
16524 /* confdefs.h.  */
16525 _ACEOF
16526 cat confdefs.h >>conftest.$ac_ext
16527 cat >>conftest.$ac_ext <<_ACEOF
16528 /* end confdefs.h.  */
16529
16530 /* Override any gcc2 internal prototype to avoid an error.  */
16531 #ifdef __cplusplus
16532 extern "C"
16533 #endif
16534 /* We use char because int might match the return type of a gcc2
16535    builtin and then its argument prototype would still apply.  */
16536 char socket ();
16537 int
16538 main ()
16539 {
16540 socket ();
16541   ;
16542   return 0;
16543 }
16544 _ACEOF
16545 rm -f conftest.$ac_objext conftest$ac_exeext
16546 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16547   (eval $ac_link) 2>&5
16548   ac_status=$?
16549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16550   (exit $ac_status); } &&
16551          { ac_try='test -s conftest$ac_exeext'
16552   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16553   (eval $ac_try) 2>&5
16554   ac_status=$?
16555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16556   (exit $ac_status); }; }; then
16557   ac_cv_lib_socket_socket=yes
16558 else
16559   echo "$as_me: failed program was:" >&5
16560 sed 's/^/| /' conftest.$ac_ext >&5
16561
16562 ac_cv_lib_socket_socket=no
16563 fi
16564 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16565 LIBS=$ac_check_lib_save_LIBS
16566 fi
16567 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
16568 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
16569 if test $ac_cv_lib_socket_socket = yes; then
16570   cat >>confdefs.h <<_ACEOF
16571 #define HAVE_LIBSOCKET 1
16572 _ACEOF
16573
16574   LIBS="-lsocket $LIBS"
16575
16576 fi
16577
16578
16579 echo "$as_me:$LINENO: checking for socket in -linet" >&5
16580 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
16581 if test "${ac_cv_lib_inet_socket+set}" = set; then
16582   echo $ECHO_N "(cached) $ECHO_C" >&6
16583 else
16584   ac_check_lib_save_LIBS=$LIBS
16585 LIBS="-linet  $LIBS"
16586 cat >conftest.$ac_ext <<_ACEOF
16587 #line $LINENO "configure"
16588 /* confdefs.h.  */
16589 _ACEOF
16590 cat confdefs.h >>conftest.$ac_ext
16591 cat >>conftest.$ac_ext <<_ACEOF
16592 /* end confdefs.h.  */
16593
16594 /* Override any gcc2 internal prototype to avoid an error.  */
16595 #ifdef __cplusplus
16596 extern "C"
16597 #endif
16598 /* We use char because int might match the return type of a gcc2
16599    builtin and then its argument prototype would still apply.  */
16600 char socket ();
16601 int
16602 main ()
16603 {
16604 socket ();
16605   ;
16606   return 0;
16607 }
16608 _ACEOF
16609 rm -f conftest.$ac_objext conftest$ac_exeext
16610 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16611   (eval $ac_link) 2>&5
16612   ac_status=$?
16613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16614   (exit $ac_status); } &&
16615          { ac_try='test -s conftest$ac_exeext'
16616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16617   (eval $ac_try) 2>&5
16618   ac_status=$?
16619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16620   (exit $ac_status); }; }; then
16621   ac_cv_lib_inet_socket=yes
16622 else
16623   echo "$as_me: failed program was:" >&5
16624 sed 's/^/| /' conftest.$ac_ext >&5
16625
16626 ac_cv_lib_inet_socket=no
16627 fi
16628 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16629 LIBS=$ac_check_lib_save_LIBS
16630 fi
16631 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
16632 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
16633 if test $ac_cv_lib_inet_socket = yes; then
16634   cat >>confdefs.h <<_ACEOF
16635 #define HAVE_LIBINET 1
16636 _ACEOF
16637
16638   LIBS="-linet $LIBS"
16639
16640 fi
16641
16642 fi
16643
16644
16645
16646 for ac_func in inet_pton
16647 do
16648 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16649 echo "$as_me:$LINENO: checking for $ac_func" >&5
16650 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16651 if eval "test \"\${$as_ac_var+set}\" = set"; then
16652   echo $ECHO_N "(cached) $ECHO_C" >&6
16653 else
16654   cat >conftest.$ac_ext <<_ACEOF
16655 #line $LINENO "configure"
16656 /* confdefs.h.  */
16657 _ACEOF
16658 cat confdefs.h >>conftest.$ac_ext
16659 cat >>conftest.$ac_ext <<_ACEOF
16660 /* end confdefs.h.  */
16661 /* System header to define __stub macros and hopefully few prototypes,
16662     which can conflict with char $ac_func (); below.
16663     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16664     <limits.h> exists even on freestanding compilers.  */
16665 #ifdef __STDC__
16666 # include <limits.h>
16667 #else
16668 # include <assert.h>
16669 #endif
16670 /* Override any gcc2 internal prototype to avoid an error.  */
16671 #ifdef __cplusplus
16672 extern "C"
16673 {
16674 #endif
16675 /* We use char because int might match the return type of a gcc2
16676    builtin and then its argument prototype would still apply.  */
16677 char $ac_func ();
16678 /* The GNU C library defines this for functions which it implements
16679     to always fail with ENOSYS.  Some functions are actually named
16680     something starting with __ and the normal name is an alias.  */
16681 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16682 choke me
16683 #else
16684 char (*f) () = $ac_func;
16685 #endif
16686 #ifdef __cplusplus
16687 }
16688 #endif
16689
16690 int
16691 main ()
16692 {
16693 return f != $ac_func;
16694   ;
16695   return 0;
16696 }
16697 _ACEOF
16698 rm -f conftest.$ac_objext conftest$ac_exeext
16699 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16700   (eval $ac_link) 2>&5
16701   ac_status=$?
16702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16703   (exit $ac_status); } &&
16704          { ac_try='test -s conftest$ac_exeext'
16705   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16706   (eval $ac_try) 2>&5
16707   ac_status=$?
16708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16709   (exit $ac_status); }; }; then
16710   eval "$as_ac_var=yes"
16711 else
16712   echo "$as_me: failed program was:" >&5
16713 sed 's/^/| /' conftest.$ac_ext >&5
16714
16715 eval "$as_ac_var=no"
16716 fi
16717 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16718 fi
16719 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16720 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16721 if test `eval echo '${'$as_ac_var'}'` = yes; then
16722   cat >>confdefs.h <<_ACEOF
16723 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16724 _ACEOF
16725  cat >>confdefs.h <<\_ACEOF
16726 #define HAVE_INET_PTON 1
16727 _ACEOF
16728
16729 fi
16730 done
16731
16732
16733 for ac_func in inet_ntop
16734 do
16735 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16736 echo "$as_me:$LINENO: checking for $ac_func" >&5
16737 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16738 if eval "test \"\${$as_ac_var+set}\" = set"; then
16739   echo $ECHO_N "(cached) $ECHO_C" >&6
16740 else
16741   cat >conftest.$ac_ext <<_ACEOF
16742 #line $LINENO "configure"
16743 /* confdefs.h.  */
16744 _ACEOF
16745 cat confdefs.h >>conftest.$ac_ext
16746 cat >>conftest.$ac_ext <<_ACEOF
16747 /* end confdefs.h.  */
16748 /* System header to define __stub macros and hopefully few prototypes,
16749     which can conflict with char $ac_func (); below.
16750     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16751     <limits.h> exists even on freestanding compilers.  */
16752 #ifdef __STDC__
16753 # include <limits.h>
16754 #else
16755 # include <assert.h>
16756 #endif
16757 /* Override any gcc2 internal prototype to avoid an error.  */
16758 #ifdef __cplusplus
16759 extern "C"
16760 {
16761 #endif
16762 /* We use char because int might match the return type of a gcc2
16763    builtin and then its argument prototype would still apply.  */
16764 char $ac_func ();
16765 /* The GNU C library defines this for functions which it implements
16766     to always fail with ENOSYS.  Some functions are actually named
16767     something starting with __ and the normal name is an alias.  */
16768 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16769 choke me
16770 #else
16771 char (*f) () = $ac_func;
16772 #endif
16773 #ifdef __cplusplus
16774 }
16775 #endif
16776
16777 int
16778 main ()
16779 {
16780 return f != $ac_func;
16781   ;
16782   return 0;
16783 }
16784 _ACEOF
16785 rm -f conftest.$ac_objext conftest$ac_exeext
16786 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16787   (eval $ac_link) 2>&5
16788   ac_status=$?
16789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16790   (exit $ac_status); } &&
16791          { ac_try='test -s conftest$ac_exeext'
16792   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16793   (eval $ac_try) 2>&5
16794   ac_status=$?
16795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16796   (exit $ac_status); }; }; then
16797   eval "$as_ac_var=yes"
16798 else
16799   echo "$as_me: failed program was:" >&5
16800 sed 's/^/| /' conftest.$ac_ext >&5
16801
16802 eval "$as_ac_var=no"
16803 fi
16804 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16805 fi
16806 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16807 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16808 if test `eval echo '${'$as_ac_var'}'` = yes; then
16809   cat >>confdefs.h <<_ACEOF
16810 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16811 _ACEOF
16812  cat >>confdefs.h <<\_ACEOF
16813 #define HAVE_INET_NTOP 1
16814 _ACEOF
16815
16816 fi
16817 done
16818
16819
16820 for ac_func in gethostbyname2
16821 do
16822 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16823 echo "$as_me:$LINENO: checking for $ac_func" >&5
16824 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16825 if eval "test \"\${$as_ac_var+set}\" = set"; then
16826   echo $ECHO_N "(cached) $ECHO_C" >&6
16827 else
16828   cat >conftest.$ac_ext <<_ACEOF
16829 #line $LINENO "configure"
16830 /* confdefs.h.  */
16831 _ACEOF
16832 cat confdefs.h >>conftest.$ac_ext
16833 cat >>conftest.$ac_ext <<_ACEOF
16834 /* end confdefs.h.  */
16835 /* System header to define __stub macros and hopefully few prototypes,
16836     which can conflict with char $ac_func (); below.
16837     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16838     <limits.h> exists even on freestanding compilers.  */
16839 #ifdef __STDC__
16840 # include <limits.h>
16841 #else
16842 # include <assert.h>
16843 #endif
16844 /* Override any gcc2 internal prototype to avoid an error.  */
16845 #ifdef __cplusplus
16846 extern "C"
16847 {
16848 #endif
16849 /* We use char because int might match the return type of a gcc2
16850    builtin and then its argument prototype would still apply.  */
16851 char $ac_func ();
16852 /* The GNU C library defines this for functions which it implements
16853     to always fail with ENOSYS.  Some functions are actually named
16854     something starting with __ and the normal name is an alias.  */
16855 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16856 choke me
16857 #else
16858 char (*f) () = $ac_func;
16859 #endif
16860 #ifdef __cplusplus
16861 }
16862 #endif
16863
16864 int
16865 main ()
16866 {
16867 return f != $ac_func;
16868   ;
16869   return 0;
16870 }
16871 _ACEOF
16872 rm -f conftest.$ac_objext conftest$ac_exeext
16873 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16874   (eval $ac_link) 2>&5
16875   ac_status=$?
16876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16877   (exit $ac_status); } &&
16878          { ac_try='test -s conftest$ac_exeext'
16879   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16880   (eval $ac_try) 2>&5
16881   ac_status=$?
16882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16883   (exit $ac_status); }; }; then
16884   eval "$as_ac_var=yes"
16885 else
16886   echo "$as_me: failed program was:" >&5
16887 sed 's/^/| /' conftest.$ac_ext >&5
16888
16889 eval "$as_ac_var=no"
16890 fi
16891 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16892 fi
16893 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16894 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16895 if test `eval echo '${'$as_ac_var'}'` = yes; then
16896   cat >>confdefs.h <<_ACEOF
16897 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16898 _ACEOF
16899  cat >>confdefs.h <<\_ACEOF
16900 #define HAVE_GETHOSTBYNAME2 1
16901 _ACEOF
16902
16903 fi
16904 done
16905
16906
16907 echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
16908 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6
16909 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
16910   echo $ECHO_N "(cached) $ECHO_C" >&6
16911 else
16912   cat >conftest.$ac_ext <<_ACEOF
16913 #line $LINENO "configure"
16914 /* confdefs.h.  */
16915 _ACEOF
16916 cat confdefs.h >>conftest.$ac_ext
16917 cat >>conftest.$ac_ext <<_ACEOF
16918 /* end confdefs.h.  */
16919 #include <sys/socket.h>
16920 int
16921 main ()
16922 {
16923 struct sockaddr s; s.sa_len;
16924   ;
16925   return 0;
16926 }
16927 _ACEOF
16928 rm -f conftest.$ac_objext
16929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16930   (eval $ac_compile) 2>&5
16931   ac_status=$?
16932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16933   (exit $ac_status); } &&
16934          { ac_try='test -s conftest.$ac_objext'
16935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16936   (eval $ac_try) 2>&5
16937   ac_status=$?
16938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16939   (exit $ac_status); }; }; then
16940   ac_cv_struct_sockaddr_sa_len=yes
16941 else
16942   echo "$as_me: failed program was:" >&5
16943 sed 's/^/| /' conftest.$ac_ext >&5
16944
16945 ac_cv_struct_sockaddr_sa_len=no
16946 fi
16947 rm -f conftest.$ac_objext conftest.$ac_ext
16948 fi
16949 echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
16950 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6
16951
16952  if test $ac_cv_struct_sockaddr_sa_len = yes; then
16953
16954 cat >>confdefs.h <<\_ACEOF
16955 #define HAVE_SA_LEN 1
16956 _ACEOF
16957
16958  fi
16959
16960
16961 echo "$as_me:$LINENO: checking for IPv6 support" >&5
16962 echo $ECHO_N "checking for IPv6 support... $ECHO_C" >&6
16963 if test "${ac_cv_ipv6_support+set}" = set; then
16964   echo $ECHO_N "(cached) $ECHO_C" >&6
16965 else
16966   cat >conftest.$ac_ext <<_ACEOF
16967 #line $LINENO "configure"
16968 /* confdefs.h.  */
16969 _ACEOF
16970 cat confdefs.h >>conftest.$ac_ext
16971 cat >>conftest.$ac_ext <<_ACEOF
16972 /* end confdefs.h.  */
16973  #include <sys/types.h>
16974 #include <sys/socket.h>
16975 #include <netinet/in.h>
16976 int
16977 main ()
16978 {
16979 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] =
16980  0;
16981   ;
16982   return 0;
16983 }
16984 _ACEOF
16985 rm -f conftest.$ac_objext conftest$ac_exeext
16986 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16987   (eval $ac_link) 2>&5
16988   ac_status=$?
16989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16990   (exit $ac_status); } &&
16991          { ac_try='test -s conftest$ac_exeext'
16992   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16993   (eval $ac_try) 2>&5
16994   ac_status=$?
16995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16996   (exit $ac_status); }; }; then
16997   ac_cv_ipv6_support=yes
16998 else
16999   echo "$as_me: failed program was:" >&5
17000 sed 's/^/| /' conftest.$ac_ext >&5
17001
17002 ac_cv_ipv6_support=no
17003 fi
17004 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17005 fi
17006 echo "$as_me:$LINENO: result: $ac_cv_ipv6_support" >&5
17007 echo "${ECHO_T}$ac_cv_ipv6_support" >&6
17008
17009 if test "$ac_cv_ipv6_support" = yes; then
17010
17011 cat >>confdefs.h <<\_ACEOF
17012 #define HAVE_IPV6 1
17013 _ACEOF
17014
17015 fi
17016
17017
17018
17019
17020 for ac_func in strftime
17021 do
17022 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17023 echo "$as_me:$LINENO: checking for $ac_func" >&5
17024 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17025 if eval "test \"\${$as_ac_var+set}\" = set"; then
17026   echo $ECHO_N "(cached) $ECHO_C" >&6
17027 else
17028   cat >conftest.$ac_ext <<_ACEOF
17029 #line $LINENO "configure"
17030 /* confdefs.h.  */
17031 _ACEOF
17032 cat confdefs.h >>conftest.$ac_ext
17033 cat >>conftest.$ac_ext <<_ACEOF
17034 /* end confdefs.h.  */
17035 /* System header to define __stub macros and hopefully few prototypes,
17036     which can conflict with char $ac_func (); below.
17037     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17038     <limits.h> exists even on freestanding compilers.  */
17039 #ifdef __STDC__
17040 # include <limits.h>
17041 #else
17042 # include <assert.h>
17043 #endif
17044 /* Override any gcc2 internal prototype to avoid an error.  */
17045 #ifdef __cplusplus
17046 extern "C"
17047 {
17048 #endif
17049 /* We use char because int might match the return type of a gcc2
17050    builtin and then its argument prototype would still apply.  */
17051 char $ac_func ();
17052 /* The GNU C library defines this for functions which it implements
17053     to always fail with ENOSYS.  Some functions are actually named
17054     something starting with __ and the normal name is an alias.  */
17055 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17056 choke me
17057 #else
17058 char (*f) () = $ac_func;
17059 #endif
17060 #ifdef __cplusplus
17061 }
17062 #endif
17063
17064 int
17065 main ()
17066 {
17067 return f != $ac_func;
17068   ;
17069   return 0;
17070 }
17071 _ACEOF
17072 rm -f conftest.$ac_objext conftest$ac_exeext
17073 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17074   (eval $ac_link) 2>&5
17075   ac_status=$?
17076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17077   (exit $ac_status); } &&
17078          { ac_try='test -s conftest$ac_exeext'
17079   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17080   (eval $ac_try) 2>&5
17081   ac_status=$?
17082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17083   (exit $ac_status); }; }; then
17084   eval "$as_ac_var=yes"
17085 else
17086   echo "$as_me: failed program was:" >&5
17087 sed 's/^/| /' conftest.$ac_ext >&5
17088
17089 eval "$as_ac_var=no"
17090 fi
17091 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17092 fi
17093 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17094 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17095 if test `eval echo '${'$as_ac_var'}'` = yes; then
17096   cat >>confdefs.h <<_ACEOF
17097 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17098 _ACEOF
17099
17100 else
17101   # strftime is in -lintl on SCO UNIX.
17102 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
17103 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
17104 if test "${ac_cv_lib_intl_strftime+set}" = set; then
17105   echo $ECHO_N "(cached) $ECHO_C" >&6
17106 else
17107   ac_check_lib_save_LIBS=$LIBS
17108 LIBS="-lintl  $LIBS"
17109 cat >conftest.$ac_ext <<_ACEOF
17110 #line $LINENO "configure"
17111 /* confdefs.h.  */
17112 _ACEOF
17113 cat confdefs.h >>conftest.$ac_ext
17114 cat >>conftest.$ac_ext <<_ACEOF
17115 /* end confdefs.h.  */
17116
17117 /* Override any gcc2 internal prototype to avoid an error.  */
17118 #ifdef __cplusplus
17119 extern "C"
17120 #endif
17121 /* We use char because int might match the return type of a gcc2
17122    builtin and then its argument prototype would still apply.  */
17123 char strftime ();
17124 int
17125 main ()
17126 {
17127 strftime ();
17128   ;
17129   return 0;
17130 }
17131 _ACEOF
17132 rm -f conftest.$ac_objext conftest$ac_exeext
17133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17134   (eval $ac_link) 2>&5
17135   ac_status=$?
17136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17137   (exit $ac_status); } &&
17138          { ac_try='test -s conftest$ac_exeext'
17139   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17140   (eval $ac_try) 2>&5
17141   ac_status=$?
17142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17143   (exit $ac_status); }; }; then
17144   ac_cv_lib_intl_strftime=yes
17145 else
17146   echo "$as_me: failed program was:" >&5
17147 sed 's/^/| /' conftest.$ac_ext >&5
17148
17149 ac_cv_lib_intl_strftime=no
17150 fi
17151 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17152 LIBS=$ac_check_lib_save_LIBS
17153 fi
17154 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
17155 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
17156 if test $ac_cv_lib_intl_strftime = yes; then
17157   cat >>confdefs.h <<\_ACEOF
17158 #define HAVE_STRFTIME 1
17159 _ACEOF
17160
17161 LIBS="-lintl $LIBS"
17162 fi
17163
17164 fi
17165 done
17166
17167
17168 for ac_func in vprintf
17169 do
17170 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17171 echo "$as_me:$LINENO: checking for $ac_func" >&5
17172 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17173 if eval "test \"\${$as_ac_var+set}\" = set"; then
17174   echo $ECHO_N "(cached) $ECHO_C" >&6
17175 else
17176   cat >conftest.$ac_ext <<_ACEOF
17177 #line $LINENO "configure"
17178 /* confdefs.h.  */
17179 _ACEOF
17180 cat confdefs.h >>conftest.$ac_ext
17181 cat >>conftest.$ac_ext <<_ACEOF
17182 /* end confdefs.h.  */
17183 /* System header to define __stub macros and hopefully few prototypes,
17184     which can conflict with char $ac_func (); below.
17185     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17186     <limits.h> exists even on freestanding compilers.  */
17187 #ifdef __STDC__
17188 # include <limits.h>
17189 #else
17190 # include <assert.h>
17191 #endif
17192 /* Override any gcc2 internal prototype to avoid an error.  */
17193 #ifdef __cplusplus
17194 extern "C"
17195 {
17196 #endif
17197 /* We use char because int might match the return type of a gcc2
17198    builtin and then its argument prototype would still apply.  */
17199 char $ac_func ();
17200 /* The GNU C library defines this for functions which it implements
17201     to always fail with ENOSYS.  Some functions are actually named
17202     something starting with __ and the normal name is an alias.  */
17203 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17204 choke me
17205 #else
17206 char (*f) () = $ac_func;
17207 #endif
17208 #ifdef __cplusplus
17209 }
17210 #endif
17211
17212 int
17213 main ()
17214 {
17215 return f != $ac_func;
17216   ;
17217   return 0;
17218 }
17219 _ACEOF
17220 rm -f conftest.$ac_objext conftest$ac_exeext
17221 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17222   (eval $ac_link) 2>&5
17223   ac_status=$?
17224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17225   (exit $ac_status); } &&
17226          { ac_try='test -s conftest$ac_exeext'
17227   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17228   (eval $ac_try) 2>&5
17229   ac_status=$?
17230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17231   (exit $ac_status); }; }; then
17232   eval "$as_ac_var=yes"
17233 else
17234   echo "$as_me: failed program was:" >&5
17235 sed 's/^/| /' conftest.$ac_ext >&5
17236
17237 eval "$as_ac_var=no"
17238 fi
17239 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17240 fi
17241 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17242 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17243 if test `eval echo '${'$as_ac_var'}'` = yes; then
17244   cat >>confdefs.h <<_ACEOF
17245 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17246 _ACEOF
17247
17248 echo "$as_me:$LINENO: checking for _doprnt" >&5
17249 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
17250 if test "${ac_cv_func__doprnt+set}" = set; then
17251   echo $ECHO_N "(cached) $ECHO_C" >&6
17252 else
17253   cat >conftest.$ac_ext <<_ACEOF
17254 #line $LINENO "configure"
17255 /* confdefs.h.  */
17256 _ACEOF
17257 cat confdefs.h >>conftest.$ac_ext
17258 cat >>conftest.$ac_ext <<_ACEOF
17259 /* end confdefs.h.  */
17260 /* System header to define __stub macros and hopefully few prototypes,
17261     which can conflict with char _doprnt (); below.
17262     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17263     <limits.h> exists even on freestanding compilers.  */
17264 #ifdef __STDC__
17265 # include <limits.h>
17266 #else
17267 # include <assert.h>
17268 #endif
17269 /* Override any gcc2 internal prototype to avoid an error.  */
17270 #ifdef __cplusplus
17271 extern "C"
17272 {
17273 #endif
17274 /* We use char because int might match the return type of a gcc2
17275    builtin and then its argument prototype would still apply.  */
17276 char _doprnt ();
17277 /* The GNU C library defines this for functions which it implements
17278     to always fail with ENOSYS.  Some functions are actually named
17279     something starting with __ and the normal name is an alias.  */
17280 #if defined (__stub__doprnt) || defined (__stub____doprnt)
17281 choke me
17282 #else
17283 char (*f) () = _doprnt;
17284 #endif
17285 #ifdef __cplusplus
17286 }
17287 #endif
17288
17289 int
17290 main ()
17291 {
17292 return f != _doprnt;
17293   ;
17294   return 0;
17295 }
17296 _ACEOF
17297 rm -f conftest.$ac_objext conftest$ac_exeext
17298 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17299   (eval $ac_link) 2>&5
17300   ac_status=$?
17301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17302   (exit $ac_status); } &&
17303          { ac_try='test -s conftest$ac_exeext'
17304   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17305   (eval $ac_try) 2>&5
17306   ac_status=$?
17307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17308   (exit $ac_status); }; }; then
17309   ac_cv_func__doprnt=yes
17310 else
17311   echo "$as_me: failed program was:" >&5
17312 sed 's/^/| /' conftest.$ac_ext >&5
17313
17314 ac_cv_func__doprnt=no
17315 fi
17316 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17317 fi
17318 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
17319 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
17320 if test $ac_cv_func__doprnt = yes; then
17321
17322 cat >>confdefs.h <<\_ACEOF
17323 #define HAVE_DOPRNT 1
17324 _ACEOF
17325
17326 fi
17327
17328 fi
17329 done
17330
17331
17332 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
17333 # for constant arguments.  Useless!
17334 echo "$as_me:$LINENO: checking for working alloca.h" >&5
17335 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
17336 if test "${ac_cv_working_alloca_h+set}" = set; then
17337   echo $ECHO_N "(cached) $ECHO_C" >&6
17338 else
17339   cat >conftest.$ac_ext <<_ACEOF
17340 #line $LINENO "configure"
17341 /* confdefs.h.  */
17342 _ACEOF
17343 cat confdefs.h >>conftest.$ac_ext
17344 cat >>conftest.$ac_ext <<_ACEOF
17345 /* end confdefs.h.  */
17346 #include <alloca.h>
17347 int
17348 main ()
17349 {
17350 char *p = (char *) alloca (2 * sizeof (int));
17351   ;
17352   return 0;
17353 }
17354 _ACEOF
17355 rm -f conftest.$ac_objext conftest$ac_exeext
17356 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17357   (eval $ac_link) 2>&5
17358   ac_status=$?
17359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17360   (exit $ac_status); } &&
17361          { ac_try='test -s conftest$ac_exeext'
17362   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17363   (eval $ac_try) 2>&5
17364   ac_status=$?
17365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17366   (exit $ac_status); }; }; then
17367   ac_cv_working_alloca_h=yes
17368 else
17369   echo "$as_me: failed program was:" >&5
17370 sed 's/^/| /' conftest.$ac_ext >&5
17371
17372 ac_cv_working_alloca_h=no
17373 fi
17374 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17375 fi
17376 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
17377 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
17378 if test $ac_cv_working_alloca_h = yes; then
17379
17380 cat >>confdefs.h <<\_ACEOF
17381 #define HAVE_ALLOCA_H 1
17382 _ACEOF
17383
17384 fi
17385
17386 echo "$as_me:$LINENO: checking for alloca" >&5
17387 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
17388 if test "${ac_cv_func_alloca_works+set}" = set; then
17389   echo $ECHO_N "(cached) $ECHO_C" >&6
17390 else
17391   cat >conftest.$ac_ext <<_ACEOF
17392 #line $LINENO "configure"
17393 /* confdefs.h.  */
17394 _ACEOF
17395 cat confdefs.h >>conftest.$ac_ext
17396 cat >>conftest.$ac_ext <<_ACEOF
17397 /* end confdefs.h.  */
17398 #ifdef __GNUC__
17399 # define alloca __builtin_alloca
17400 #else
17401 # ifdef _MSC_VER
17402 #  include <malloc.h>
17403 #  define alloca _alloca
17404 # else
17405 #  if HAVE_ALLOCA_H
17406 #   include <alloca.h>
17407 #  else
17408 #   ifdef _AIX
17409  #pragma alloca
17410 #   else
17411 #    ifndef alloca /* predefined by HP cc +Olibcalls */
17412 char *alloca ();
17413 #    endif
17414 #   endif
17415 #  endif
17416 # endif
17417 #endif
17418
17419 int
17420 main ()
17421 {
17422 char *p = (char *) alloca (1);
17423   ;
17424   return 0;
17425 }
17426 _ACEOF
17427 rm -f conftest.$ac_objext conftest$ac_exeext
17428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17429   (eval $ac_link) 2>&5
17430   ac_status=$?
17431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17432   (exit $ac_status); } &&
17433          { ac_try='test -s conftest$ac_exeext'
17434   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17435   (eval $ac_try) 2>&5
17436   ac_status=$?
17437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17438   (exit $ac_status); }; }; then
17439   ac_cv_func_alloca_works=yes
17440 else
17441   echo "$as_me: failed program was:" >&5
17442 sed 's/^/| /' conftest.$ac_ext >&5
17443
17444 ac_cv_func_alloca_works=no
17445 fi
17446 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17447 fi
17448 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
17449 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
17450
17451 if test $ac_cv_func_alloca_works = yes; then
17452
17453 cat >>confdefs.h <<\_ACEOF
17454 #define HAVE_ALLOCA 1
17455 _ACEOF
17456
17457 else
17458   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
17459 # that cause trouble.  Some versions do not even contain alloca or
17460 # contain a buggy version.  If you still want to use their alloca,
17461 # use ar to extract alloca.o from them instead of compiling alloca.c.
17462
17463 ALLOCA=alloca.$ac_objext
17464
17465 cat >>confdefs.h <<\_ACEOF
17466 #define C_ALLOCA 1
17467 _ACEOF
17468
17469
17470 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
17471 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
17472 if test "${ac_cv_os_cray+set}" = set; then
17473   echo $ECHO_N "(cached) $ECHO_C" >&6
17474 else
17475   cat >conftest.$ac_ext <<_ACEOF
17476 #line $LINENO "configure"
17477 /* confdefs.h.  */
17478 _ACEOF
17479 cat confdefs.h >>conftest.$ac_ext
17480 cat >>conftest.$ac_ext <<_ACEOF
17481 /* end confdefs.h.  */
17482 #if defined(CRAY) && ! defined(CRAY2)
17483 webecray
17484 #else
17485 wenotbecray
17486 #endif
17487
17488 _ACEOF
17489 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17490   $EGREP "webecray" >/dev/null 2>&1; then
17491   ac_cv_os_cray=yes
17492 else
17493   ac_cv_os_cray=no
17494 fi
17495 rm -f conftest*
17496
17497 fi
17498 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
17499 echo "${ECHO_T}$ac_cv_os_cray" >&6
17500 if test $ac_cv_os_cray = yes; then
17501   for ac_func in _getb67 GETB67 getb67; do
17502     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17503 echo "$as_me:$LINENO: checking for $ac_func" >&5
17504 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17505 if eval "test \"\${$as_ac_var+set}\" = set"; then
17506   echo $ECHO_N "(cached) $ECHO_C" >&6
17507 else
17508   cat >conftest.$ac_ext <<_ACEOF
17509 #line $LINENO "configure"
17510 /* confdefs.h.  */
17511 _ACEOF
17512 cat confdefs.h >>conftest.$ac_ext
17513 cat >>conftest.$ac_ext <<_ACEOF
17514 /* end confdefs.h.  */
17515 /* System header to define __stub macros and hopefully few prototypes,
17516     which can conflict with char $ac_func (); below.
17517     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17518     <limits.h> exists even on freestanding compilers.  */
17519 #ifdef __STDC__
17520 # include <limits.h>
17521 #else
17522 # include <assert.h>
17523 #endif
17524 /* Override any gcc2 internal prototype to avoid an error.  */
17525 #ifdef __cplusplus
17526 extern "C"
17527 {
17528 #endif
17529 /* We use char because int might match the return type of a gcc2
17530    builtin and then its argument prototype would still apply.  */
17531 char $ac_func ();
17532 /* The GNU C library defines this for functions which it implements
17533     to always fail with ENOSYS.  Some functions are actually named
17534     something starting with __ and the normal name is an alias.  */
17535 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17536 choke me
17537 #else
17538 char (*f) () = $ac_func;
17539 #endif
17540 #ifdef __cplusplus
17541 }
17542 #endif
17543
17544 int
17545 main ()
17546 {
17547 return f != $ac_func;
17548   ;
17549   return 0;
17550 }
17551 _ACEOF
17552 rm -f conftest.$ac_objext conftest$ac_exeext
17553 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17554   (eval $ac_link) 2>&5
17555   ac_status=$?
17556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17557   (exit $ac_status); } &&
17558          { ac_try='test -s conftest$ac_exeext'
17559   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17560   (eval $ac_try) 2>&5
17561   ac_status=$?
17562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17563   (exit $ac_status); }; }; then
17564   eval "$as_ac_var=yes"
17565 else
17566   echo "$as_me: failed program was:" >&5
17567 sed 's/^/| /' conftest.$ac_ext >&5
17568
17569 eval "$as_ac_var=no"
17570 fi
17571 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17572 fi
17573 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17574 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17575 if test `eval echo '${'$as_ac_var'}'` = yes; then
17576
17577 cat >>confdefs.h <<_ACEOF
17578 #define CRAY_STACKSEG_END $ac_func
17579 _ACEOF
17580
17581     break
17582 fi
17583
17584   done
17585 fi
17586
17587 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
17588 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
17589 if test "${ac_cv_c_stack_direction+set}" = set; then
17590   echo $ECHO_N "(cached) $ECHO_C" >&6
17591 else
17592   if test "$cross_compiling" = yes; then
17593   ac_cv_c_stack_direction=0
17594 else
17595   cat >conftest.$ac_ext <<_ACEOF
17596 #line $LINENO "configure"
17597 /* confdefs.h.  */
17598 _ACEOF
17599 cat confdefs.h >>conftest.$ac_ext
17600 cat >>conftest.$ac_ext <<_ACEOF
17601 /* end confdefs.h.  */
17602 int
17603 find_stack_direction ()
17604 {
17605   static char *addr = 0;
17606   auto char dummy;
17607   if (addr == 0)
17608     {
17609       addr = &dummy;
17610       return find_stack_direction ();
17611     }
17612   else
17613     return (&dummy > addr) ? 1 : -1;
17614 }
17615
17616 int
17617 main ()
17618 {
17619   exit (find_stack_direction () < 0);
17620 }
17621 _ACEOF
17622 rm -f conftest$ac_exeext
17623 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17624   (eval $ac_link) 2>&5
17625   ac_status=$?
17626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17627   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17629   (eval $ac_try) 2>&5
17630   ac_status=$?
17631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17632   (exit $ac_status); }; }; then
17633   ac_cv_c_stack_direction=1
17634 else
17635   echo "$as_me: program exited with status $ac_status" >&5
17636 echo "$as_me: failed program was:" >&5
17637 sed 's/^/| /' conftest.$ac_ext >&5
17638
17639 ( exit $ac_status )
17640 ac_cv_c_stack_direction=-1
17641 fi
17642 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17643 fi
17644 fi
17645 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
17646 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
17647
17648 cat >>confdefs.h <<_ACEOF
17649 #define STACK_DIRECTION $ac_cv_c_stack_direction
17650 _ACEOF
17651
17652
17653 fi
17654
17655 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
17656 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
17657 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
17658 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
17659   echo $ECHO_N "(cached) $ECHO_C" >&6
17660 else
17661   ac_check_lib_save_LIBS=$LIBS
17662 LIBS="-lsun  $LIBS"
17663 cat >conftest.$ac_ext <<_ACEOF
17664 #line $LINENO "configure"
17665 /* confdefs.h.  */
17666 _ACEOF
17667 cat confdefs.h >>conftest.$ac_ext
17668 cat >>conftest.$ac_ext <<_ACEOF
17669 /* end confdefs.h.  */
17670
17671 /* Override any gcc2 internal prototype to avoid an error.  */
17672 #ifdef __cplusplus
17673 extern "C"
17674 #endif
17675 /* We use char because int might match the return type of a gcc2
17676    builtin and then its argument prototype would still apply.  */
17677 char getmntent ();
17678 int
17679 main ()
17680 {
17681 getmntent ();
17682   ;
17683   return 0;
17684 }
17685 _ACEOF
17686 rm -f conftest.$ac_objext conftest$ac_exeext
17687 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17688   (eval $ac_link) 2>&5
17689   ac_status=$?
17690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17691   (exit $ac_status); } &&
17692          { ac_try='test -s conftest$ac_exeext'
17693   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17694   (eval $ac_try) 2>&5
17695   ac_status=$?
17696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17697   (exit $ac_status); }; }; then
17698   ac_cv_lib_sun_getmntent=yes
17699 else
17700   echo "$as_me: failed program was:" >&5
17701 sed 's/^/| /' conftest.$ac_ext >&5
17702
17703 ac_cv_lib_sun_getmntent=no
17704 fi
17705 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17706 LIBS=$ac_check_lib_save_LIBS
17707 fi
17708 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
17709 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
17710 if test $ac_cv_lib_sun_getmntent = yes; then
17711   LIBS="-lsun $LIBS"
17712 else
17713   echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
17714 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
17715 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
17716   echo $ECHO_N "(cached) $ECHO_C" >&6
17717 else
17718   ac_check_lib_save_LIBS=$LIBS
17719 LIBS="-lseq  $LIBS"
17720 cat >conftest.$ac_ext <<_ACEOF
17721 #line $LINENO "configure"
17722 /* confdefs.h.  */
17723 _ACEOF
17724 cat confdefs.h >>conftest.$ac_ext
17725 cat >>conftest.$ac_ext <<_ACEOF
17726 /* end confdefs.h.  */
17727
17728 /* Override any gcc2 internal prototype to avoid an error.  */
17729 #ifdef __cplusplus
17730 extern "C"
17731 #endif
17732 /* We use char because int might match the return type of a gcc2
17733    builtin and then its argument prototype would still apply.  */
17734 char getmntent ();
17735 int
17736 main ()
17737 {
17738 getmntent ();
17739   ;
17740   return 0;
17741 }
17742 _ACEOF
17743 rm -f conftest.$ac_objext conftest$ac_exeext
17744 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17745   (eval $ac_link) 2>&5
17746   ac_status=$?
17747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17748   (exit $ac_status); } &&
17749          { ac_try='test -s conftest$ac_exeext'
17750   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17751   (eval $ac_try) 2>&5
17752   ac_status=$?
17753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17754   (exit $ac_status); }; }; then
17755   ac_cv_lib_seq_getmntent=yes
17756 else
17757   echo "$as_me: failed program was:" >&5
17758 sed 's/^/| /' conftest.$ac_ext >&5
17759
17760 ac_cv_lib_seq_getmntent=no
17761 fi
17762 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17763 LIBS=$ac_check_lib_save_LIBS
17764 fi
17765 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
17766 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
17767 if test $ac_cv_lib_seq_getmntent = yes; then
17768   LIBS="-lseq $LIBS"
17769 else
17770   echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
17771 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
17772 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
17773   echo $ECHO_N "(cached) $ECHO_C" >&6
17774 else
17775   ac_check_lib_save_LIBS=$LIBS
17776 LIBS="-lgen  $LIBS"
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
17785 /* Override any gcc2 internal prototype to avoid an error.  */
17786 #ifdef __cplusplus
17787 extern "C"
17788 #endif
17789 /* We use char because int might match the return type of a gcc2
17790    builtin and then its argument prototype would still apply.  */
17791 char getmntent ();
17792 int
17793 main ()
17794 {
17795 getmntent ();
17796   ;
17797   return 0;
17798 }
17799 _ACEOF
17800 rm -f conftest.$ac_objext conftest$ac_exeext
17801 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17802   (eval $ac_link) 2>&5
17803   ac_status=$?
17804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17805   (exit $ac_status); } &&
17806          { ac_try='test -s conftest$ac_exeext'
17807   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17808   (eval $ac_try) 2>&5
17809   ac_status=$?
17810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17811   (exit $ac_status); }; }; then
17812   ac_cv_lib_gen_getmntent=yes
17813 else
17814   echo "$as_me: failed program was:" >&5
17815 sed 's/^/| /' conftest.$ac_ext >&5
17816
17817 ac_cv_lib_gen_getmntent=no
17818 fi
17819 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17820 LIBS=$ac_check_lib_save_LIBS
17821 fi
17822 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
17823 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
17824 if test $ac_cv_lib_gen_getmntent = yes; then
17825   LIBS="-lgen $LIBS"
17826 fi
17827
17828 fi
17829
17830 fi
17831
17832
17833 for ac_func in getmntent
17834 do
17835 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17836 echo "$as_me:$LINENO: checking for $ac_func" >&5
17837 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17838 if eval "test \"\${$as_ac_var+set}\" = set"; then
17839   echo $ECHO_N "(cached) $ECHO_C" >&6
17840 else
17841   cat >conftest.$ac_ext <<_ACEOF
17842 #line $LINENO "configure"
17843 /* confdefs.h.  */
17844 _ACEOF
17845 cat confdefs.h >>conftest.$ac_ext
17846 cat >>conftest.$ac_ext <<_ACEOF
17847 /* end confdefs.h.  */
17848 /* System header to define __stub macros and hopefully few prototypes,
17849     which can conflict with char $ac_func (); below.
17850     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17851     <limits.h> exists even on freestanding compilers.  */
17852 #ifdef __STDC__
17853 # include <limits.h>
17854 #else
17855 # include <assert.h>
17856 #endif
17857 /* Override any gcc2 internal prototype to avoid an error.  */
17858 #ifdef __cplusplus
17859 extern "C"
17860 {
17861 #endif
17862 /* We use char because int might match the return type of a gcc2
17863    builtin and then its argument prototype would still apply.  */
17864 char $ac_func ();
17865 /* The GNU C library defines this for functions which it implements
17866     to always fail with ENOSYS.  Some functions are actually named
17867     something starting with __ and the normal name is an alias.  */
17868 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17869 choke me
17870 #else
17871 char (*f) () = $ac_func;
17872 #endif
17873 #ifdef __cplusplus
17874 }
17875 #endif
17876
17877 int
17878 main ()
17879 {
17880 return f != $ac_func;
17881   ;
17882   return 0;
17883 }
17884 _ACEOF
17885 rm -f conftest.$ac_objext conftest$ac_exeext
17886 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17887   (eval $ac_link) 2>&5
17888   ac_status=$?
17889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17890   (exit $ac_status); } &&
17891          { ac_try='test -s conftest$ac_exeext'
17892   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17893   (eval $ac_try) 2>&5
17894   ac_status=$?
17895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17896   (exit $ac_status); }; }; then
17897   eval "$as_ac_var=yes"
17898 else
17899   echo "$as_me: failed program was:" >&5
17900 sed 's/^/| /' conftest.$ac_ext >&5
17901
17902 eval "$as_ac_var=no"
17903 fi
17904 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17905 fi
17906 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17907 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17908 if test `eval echo '${'$as_ac_var'}'` = yes; then
17909   cat >>confdefs.h <<_ACEOF
17910 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17911 _ACEOF
17912
17913 fi
17914 done
17915
17916
17917 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
17918 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
17919 if test "${ac_cv_func_closedir_void+set}" = set; then
17920   echo $ECHO_N "(cached) $ECHO_C" >&6
17921 else
17922   if test "$cross_compiling" = yes; then
17923   ac_cv_func_closedir_void=yes
17924 else
17925   cat >conftest.$ac_ext <<_ACEOF
17926 #line $LINENO "configure"
17927 /* confdefs.h.  */
17928 _ACEOF
17929 cat confdefs.h >>conftest.$ac_ext
17930 cat >>conftest.$ac_ext <<_ACEOF
17931 /* end confdefs.h.  */
17932 $ac_includes_default
17933 #include <$ac_header_dirent>
17934 #ifndef __cplusplus
17935 int closedir ();
17936 #endif
17937
17938 int
17939 main ()
17940 {
17941 exit (closedir (opendir (".")) != 0);
17942   ;
17943   return 0;
17944 }
17945 _ACEOF
17946 rm -f conftest$ac_exeext
17947 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17948   (eval $ac_link) 2>&5
17949   ac_status=$?
17950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17951   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17952   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17953   (eval $ac_try) 2>&5
17954   ac_status=$?
17955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17956   (exit $ac_status); }; }; then
17957   ac_cv_func_closedir_void=no
17958 else
17959   echo "$as_me: program exited with status $ac_status" >&5
17960 echo "$as_me: failed program was:" >&5
17961 sed 's/^/| /' conftest.$ac_ext >&5
17962
17963 ( exit $ac_status )
17964 ac_cv_func_closedir_void=yes
17965 fi
17966 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17967 fi
17968 fi
17969 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
17970 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
17971 if test $ac_cv_func_closedir_void = yes; then
17972
17973 cat >>confdefs.h <<\_ACEOF
17974 #define CLOSEDIR_VOID 1
17975 _ACEOF
17976
17977 fi
17978
17979 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
17980 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
17981 if test "${ac_cv_func_setpgrp_void+set}" = set; then
17982   echo $ECHO_N "(cached) $ECHO_C" >&6
17983 else
17984   if test "$cross_compiling" = yes; then
17985   { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
17986 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
17987    { (exit 1); exit 1; }; }
17988 else
17989   cat >conftest.$ac_ext <<_ACEOF
17990 #line $LINENO "configure"
17991 /* confdefs.h.  */
17992 _ACEOF
17993 cat confdefs.h >>conftest.$ac_ext
17994 cat >>conftest.$ac_ext <<_ACEOF
17995 /* end confdefs.h.  */
17996 #if HAVE_UNISTD_H
17997 # include <unistd.h>
17998 #endif
17999
18000 int
18001 main ()
18002 {
18003 /* If this system has a BSD-style setpgrp which takes arguments,
18004   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
18005   exit successfully. */
18006   exit (setpgrp (1,1) == -1 ? 0 : 1);
18007   ;
18008   return 0;
18009 }
18010 _ACEOF
18011 rm -f conftest$ac_exeext
18012 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18013   (eval $ac_link) 2>&5
18014   ac_status=$?
18015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18016   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18017   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18018   (eval $ac_try) 2>&5
18019   ac_status=$?
18020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18021   (exit $ac_status); }; }; then
18022   ac_cv_func_setpgrp_void=no
18023 else
18024   echo "$as_me: program exited with status $ac_status" >&5
18025 echo "$as_me: failed program was:" >&5
18026 sed 's/^/| /' conftest.$ac_ext >&5
18027
18028 ( exit $ac_status )
18029 ac_cv_func_setpgrp_void=yes
18030 fi
18031 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18032 fi
18033 fi
18034 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
18035 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
18036 if test $ac_cv_func_setpgrp_void = yes; then
18037
18038 cat >>confdefs.h <<\_ACEOF
18039 #define SETPGRP_VOID 1
18040 _ACEOF
18041
18042 fi
18043                       echo "$as_me:$LINENO: checking for working POSIX fnmatch" >&5
18044 echo $ECHO_N "checking for working POSIX fnmatch... $ECHO_C" >&6
18045 if test "${ac_cv_func_fnmatch_works+set}" = set; then
18046   echo $ECHO_N "(cached) $ECHO_C" >&6
18047 else
18048   # Some versions of Solaris, SCO, and the GNU C Library
18049    # have a broken or incompatible fnmatch.
18050    # So we run a test program.  If we are cross-compiling, take no chance.
18051    # Thanks to John Oleynick, Franc,ois Pinard, and Paul Eggert for this test.
18052    if test "$cross_compiling" = yes; then
18053   ac_cv_func_fnmatch_works=cross
18054 else
18055   cat >conftest.$ac_ext <<_ACEOF
18056 #line $LINENO "configure"
18057 /* confdefs.h.  */
18058 _ACEOF
18059 cat confdefs.h >>conftest.$ac_ext
18060 cat >>conftest.$ac_ext <<_ACEOF
18061 /* end confdefs.h.  */
18062 #include <fnmatch.h>
18063 #          define y(a, b, c) (fnmatch (a, b, c) == 0)
18064 #          define n(a, b, c) (fnmatch (a, b, c) == FNM_NOMATCH)
18065
18066 int
18067 main ()
18068 {
18069 exit
18070            (!(y ("a*", "abc", 0)
18071               && n ("d*/*1", "d/s/1", FNM_PATHNAME)
18072               && y ("a\\\\bc", "abc", 0)
18073               && n ("a\\\\bc", "abc", FNM_NOESCAPE)
18074               && y ("*x", ".x", 0)
18075               && n ("*x", ".x", FNM_PERIOD)
18076               && 1));
18077   ;
18078   return 0;
18079 }
18080 _ACEOF
18081 rm -f conftest$ac_exeext
18082 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18083   (eval $ac_link) 2>&5
18084   ac_status=$?
18085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18086   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18087   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18088   (eval $ac_try) 2>&5
18089   ac_status=$?
18090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18091   (exit $ac_status); }; }; then
18092   ac_cv_func_fnmatch_works=yes
18093 else
18094   echo "$as_me: program exited with status $ac_status" >&5
18095 echo "$as_me: failed program was:" >&5
18096 sed 's/^/| /' conftest.$ac_ext >&5
18097
18098 ( exit $ac_status )
18099 ac_cv_func_fnmatch_works=no
18100 fi
18101 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18102 fi
18103 fi
18104 echo "$as_me:$LINENO: result: $ac_cv_func_fnmatch_works" >&5
18105 echo "${ECHO_T}$ac_cv_func_fnmatch_works" >&6
18106 if test $ac_cv_func_fnmatch_works = yes; then
18107
18108 cat >>confdefs.h <<\_ACEOF
18109 #define HAVE_FNMATCH 1
18110 _ACEOF
18111
18112 fi
18113
18114
18115
18116
18117
18118 echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
18119 echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
18120 if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
18121   echo $ECHO_N "(cached) $ECHO_C" >&6
18122 else
18123   ac_check_lib_save_LIBS=$LIBS
18124 LIBS="-lxpg4  $LIBS"
18125 cat >conftest.$ac_ext <<_ACEOF
18126 #line $LINENO "configure"
18127 /* confdefs.h.  */
18128 _ACEOF
18129 cat confdefs.h >>conftest.$ac_ext
18130 cat >>conftest.$ac_ext <<_ACEOF
18131 /* end confdefs.h.  */
18132
18133 /* Override any gcc2 internal prototype to avoid an error.  */
18134 #ifdef __cplusplus
18135 extern "C"
18136 #endif
18137 /* We use char because int might match the return type of a gcc2
18138    builtin and then its argument prototype would still apply.  */
18139 char setlocale ();
18140 int
18141 main ()
18142 {
18143 setlocale ();
18144   ;
18145   return 0;
18146 }
18147 _ACEOF
18148 rm -f conftest.$ac_objext conftest$ac_exeext
18149 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18150   (eval $ac_link) 2>&5
18151   ac_status=$?
18152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18153   (exit $ac_status); } &&
18154          { ac_try='test -s conftest$ac_exeext'
18155   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18156   (eval $ac_try) 2>&5
18157   ac_status=$?
18158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18159   (exit $ac_status); }; }; then
18160   ac_cv_lib_xpg4_setlocale=yes
18161 else
18162   echo "$as_me: failed program was:" >&5
18163 sed 's/^/| /' conftest.$ac_ext >&5
18164
18165 ac_cv_lib_xpg4_setlocale=no
18166 fi
18167 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18168 LIBS=$ac_check_lib_save_LIBS
18169 fi
18170 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
18171 echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
18172 if test $ac_cv_lib_xpg4_setlocale = yes; then
18173   LIBS="$LIBS -lxpg4"
18174 fi
18175
18176
18177
18178
18179 echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
18180 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6
18181 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
18182   echo $ECHO_N "(cached) $ECHO_C" >&6
18183 else
18184   ac_check_lib_save_LIBS=$LIBS
18185 LIBS="-lsun  $LIBS"
18186 cat >conftest.$ac_ext <<_ACEOF
18187 #line $LINENO "configure"
18188 /* confdefs.h.  */
18189 _ACEOF
18190 cat confdefs.h >>conftest.$ac_ext
18191 cat >>conftest.$ac_ext <<_ACEOF
18192 /* end confdefs.h.  */
18193
18194 /* Override any gcc2 internal prototype to avoid an error.  */
18195 #ifdef __cplusplus
18196 extern "C"
18197 #endif
18198 /* We use char because int might match the return type of a gcc2
18199    builtin and then its argument prototype would still apply.  */
18200 char getpwnam ();
18201 int
18202 main ()
18203 {
18204 getpwnam ();
18205   ;
18206   return 0;
18207 }
18208 _ACEOF
18209 rm -f conftest.$ac_objext conftest$ac_exeext
18210 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18211   (eval $ac_link) 2>&5
18212   ac_status=$?
18213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18214   (exit $ac_status); } &&
18215          { ac_try='test -s conftest$ac_exeext'
18216   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18217   (eval $ac_try) 2>&5
18218   ac_status=$?
18219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18220   (exit $ac_status); }; }; then
18221   ac_cv_lib_sun_getpwnam=yes
18222 else
18223   echo "$as_me: failed program was:" >&5
18224 sed 's/^/| /' conftest.$ac_ext >&5
18225
18226 ac_cv_lib_sun_getpwnam=no
18227 fi
18228 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18229 LIBS=$ac_check_lib_save_LIBS
18230 fi
18231 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
18232 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6
18233 if test $ac_cv_lib_sun_getpwnam = yes; then
18234   cat >>confdefs.h <<_ACEOF
18235 #define HAVE_LIBSUN 1
18236 _ACEOF
18237
18238   LIBS="-lsun $LIBS"
18239
18240 fi
18241
18242
18243
18244 for ac_header in zlib.h
18245 do
18246 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18247 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18248   echo "$as_me:$LINENO: checking for $ac_header" >&5
18249 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18250 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18251   echo $ECHO_N "(cached) $ECHO_C" >&6
18252 fi
18253 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18254 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18255 else
18256   # Is the header compilable?
18257 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18258 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18259 cat >conftest.$ac_ext <<_ACEOF
18260 #line $LINENO "configure"
18261 /* confdefs.h.  */
18262 _ACEOF
18263 cat confdefs.h >>conftest.$ac_ext
18264 cat >>conftest.$ac_ext <<_ACEOF
18265 /* end confdefs.h.  */
18266 $ac_includes_default
18267 #include <$ac_header>
18268 _ACEOF
18269 rm -f conftest.$ac_objext
18270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18271   (eval $ac_compile) 2>&5
18272   ac_status=$?
18273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18274   (exit $ac_status); } &&
18275          { ac_try='test -s conftest.$ac_objext'
18276   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18277   (eval $ac_try) 2>&5
18278   ac_status=$?
18279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18280   (exit $ac_status); }; }; then
18281   ac_header_compiler=yes
18282 else
18283   echo "$as_me: failed program was:" >&5
18284 sed 's/^/| /' conftest.$ac_ext >&5
18285
18286 ac_header_compiler=no
18287 fi
18288 rm -f conftest.$ac_objext conftest.$ac_ext
18289 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18290 echo "${ECHO_T}$ac_header_compiler" >&6
18291
18292 # Is the header present?
18293 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18294 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18295 cat >conftest.$ac_ext <<_ACEOF
18296 #line $LINENO "configure"
18297 /* confdefs.h.  */
18298 _ACEOF
18299 cat confdefs.h >>conftest.$ac_ext
18300 cat >>conftest.$ac_ext <<_ACEOF
18301 /* end confdefs.h.  */
18302 #include <$ac_header>
18303 _ACEOF
18304 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18305   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18306   ac_status=$?
18307   grep -v '^ *+' conftest.er1 >conftest.err
18308   rm -f conftest.er1
18309   cat conftest.err >&5
18310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18311   (exit $ac_status); } >/dev/null; then
18312   if test -s conftest.err; then
18313     ac_cpp_err=$ac_c_preproc_warn_flag
18314   else
18315     ac_cpp_err=
18316   fi
18317 else
18318   ac_cpp_err=yes
18319 fi
18320 if test -z "$ac_cpp_err"; then
18321   ac_header_preproc=yes
18322 else
18323   echo "$as_me: failed program was:" >&5
18324 sed 's/^/| /' conftest.$ac_ext >&5
18325
18326   ac_header_preproc=no
18327 fi
18328 rm -f conftest.err conftest.$ac_ext
18329 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18330 echo "${ECHO_T}$ac_header_preproc" >&6
18331
18332 # So?  What about this header?
18333 case $ac_header_compiler:$ac_header_preproc in
18334   yes:no )
18335     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18336 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18337     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18338 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18339     (
18340       cat <<\_ASBOX
18341 ## ------------------------------------ ##
18342 ## Report this to bug-autoconf@gnu.org. ##
18343 ## ------------------------------------ ##
18344 _ASBOX
18345     ) |
18346       sed "s/^/$as_me: WARNING:     /" >&2
18347     ;;
18348   no:yes )
18349     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18350 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18351     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18352 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18353     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18354 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18355     (
18356       cat <<\_ASBOX
18357 ## ------------------------------------ ##
18358 ## Report this to bug-autoconf@gnu.org. ##
18359 ## ------------------------------------ ##
18360 _ASBOX
18361     ) |
18362       sed "s/^/$as_me: WARNING:     /" >&2
18363     ;;
18364 esac
18365 echo "$as_me:$LINENO: checking for $ac_header" >&5
18366 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18367 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18368   echo $ECHO_N "(cached) $ECHO_C" >&6
18369 else
18370   eval "$as_ac_Header=$ac_header_preproc"
18371 fi
18372 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18373 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18374
18375 fi
18376 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18377   cat >>confdefs.h <<_ACEOF
18378 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18379 _ACEOF
18380
18381 fi
18382
18383 done
18384
18385 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
18386 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
18387 if test "${ac_cv_lib_z_deflate+set}" = set; then
18388   echo $ECHO_N "(cached) $ECHO_C" >&6
18389 else
18390   ac_check_lib_save_LIBS=$LIBS
18391 LIBS="-lz  $LIBS"
18392 cat >conftest.$ac_ext <<_ACEOF
18393 #line $LINENO "configure"
18394 /* confdefs.h.  */
18395 _ACEOF
18396 cat confdefs.h >>conftest.$ac_ext
18397 cat >>conftest.$ac_ext <<_ACEOF
18398 /* end confdefs.h.  */
18399
18400 /* Override any gcc2 internal prototype to avoid an error.  */
18401 #ifdef __cplusplus
18402 extern "C"
18403 #endif
18404 /* We use char because int might match the return type of a gcc2
18405    builtin and then its argument prototype would still apply.  */
18406 char deflate ();
18407 int
18408 main ()
18409 {
18410 deflate ();
18411   ;
18412   return 0;
18413 }
18414 _ACEOF
18415 rm -f conftest.$ac_objext conftest$ac_exeext
18416 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18417   (eval $ac_link) 2>&5
18418   ac_status=$?
18419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18420   (exit $ac_status); } &&
18421          { ac_try='test -s conftest$ac_exeext'
18422   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18423   (eval $ac_try) 2>&5
18424   ac_status=$?
18425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18426   (exit $ac_status); }; }; then
18427   ac_cv_lib_z_deflate=yes
18428 else
18429   echo "$as_me: failed program was:" >&5
18430 sed 's/^/| /' conftest.$ac_ext >&5
18431
18432 ac_cv_lib_z_deflate=no
18433 fi
18434 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18435 LIBS=$ac_check_lib_save_LIBS
18436 fi
18437 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
18438 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
18439 if test $ac_cv_lib_z_deflate = yes; then
18440   FDLIBS="-lz"
18441 fi
18442
18443 have_zlib=no
18444 if test x$FDLIBS = x-lz; then
18445   cat >>confdefs.h <<\_ACEOF
18446 #define HAVE_LIBZ 1
18447 _ACEOF
18448
18449   have_zlib=yes
18450 fi
18451
18452 if test "${ac_cv_header_sys_acl_h+set}" = set; then
18453   echo "$as_me:$LINENO: checking for sys/acl.h" >&5
18454 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
18455 if test "${ac_cv_header_sys_acl_h+set}" = set; then
18456   echo $ECHO_N "(cached) $ECHO_C" >&6
18457 fi
18458 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
18459 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
18460 else
18461   # Is the header compilable?
18462 echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
18463 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6
18464 cat >conftest.$ac_ext <<_ACEOF
18465 #line $LINENO "configure"
18466 /* confdefs.h.  */
18467 _ACEOF
18468 cat confdefs.h >>conftest.$ac_ext
18469 cat >>conftest.$ac_ext <<_ACEOF
18470 /* end confdefs.h.  */
18471 $ac_includes_default
18472 #include <sys/acl.h>
18473 _ACEOF
18474 rm -f conftest.$ac_objext
18475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18476   (eval $ac_compile) 2>&5
18477   ac_status=$?
18478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18479   (exit $ac_status); } &&
18480          { ac_try='test -s conftest.$ac_objext'
18481   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18482   (eval $ac_try) 2>&5
18483   ac_status=$?
18484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18485   (exit $ac_status); }; }; then
18486   ac_header_compiler=yes
18487 else
18488   echo "$as_me: failed program was:" >&5
18489 sed 's/^/| /' conftest.$ac_ext >&5
18490
18491 ac_header_compiler=no
18492 fi
18493 rm -f conftest.$ac_objext conftest.$ac_ext
18494 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18495 echo "${ECHO_T}$ac_header_compiler" >&6
18496
18497 # Is the header present?
18498 echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
18499 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6
18500 cat >conftest.$ac_ext <<_ACEOF
18501 #line $LINENO "configure"
18502 /* confdefs.h.  */
18503 _ACEOF
18504 cat confdefs.h >>conftest.$ac_ext
18505 cat >>conftest.$ac_ext <<_ACEOF
18506 /* end confdefs.h.  */
18507 #include <sys/acl.h>
18508 _ACEOF
18509 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18510   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18511   ac_status=$?
18512   grep -v '^ *+' conftest.er1 >conftest.err
18513   rm -f conftest.er1
18514   cat conftest.err >&5
18515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18516   (exit $ac_status); } >/dev/null; then
18517   if test -s conftest.err; then
18518     ac_cpp_err=$ac_c_preproc_warn_flag
18519   else
18520     ac_cpp_err=
18521   fi
18522 else
18523   ac_cpp_err=yes
18524 fi
18525 if test -z "$ac_cpp_err"; then
18526   ac_header_preproc=yes
18527 else
18528   echo "$as_me: failed program was:" >&5
18529 sed 's/^/| /' conftest.$ac_ext >&5
18530
18531   ac_header_preproc=no
18532 fi
18533 rm -f conftest.err conftest.$ac_ext
18534 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18535 echo "${ECHO_T}$ac_header_preproc" >&6
18536
18537 # So?  What about this header?
18538 case $ac_header_compiler:$ac_header_preproc in
18539   yes:no )
18540     { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
18541 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18542     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
18543 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
18544     (
18545       cat <<\_ASBOX
18546 ## ------------------------------------ ##
18547 ## Report this to bug-autoconf@gnu.org. ##
18548 ## ------------------------------------ ##
18549 _ASBOX
18550     ) |
18551       sed "s/^/$as_me: WARNING:     /" >&2
18552     ;;
18553   no:yes )
18554     { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
18555 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
18556     { echo "$as_me:$LINENO: WARNING: sys/acl.h: check for missing prerequisite headers?" >&5
18557 echo "$as_me: WARNING: sys/acl.h: check for missing prerequisite headers?" >&2;}
18558     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
18559 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
18560     (
18561       cat <<\_ASBOX
18562 ## ------------------------------------ ##
18563 ## Report this to bug-autoconf@gnu.org. ##
18564 ## ------------------------------------ ##
18565 _ASBOX
18566     ) |
18567       sed "s/^/$as_me: WARNING:     /" >&2
18568     ;;
18569 esac
18570 echo "$as_me:$LINENO: checking for sys/acl.h" >&5
18571 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
18572 if test "${ac_cv_header_sys_acl_h+set}" = set; then
18573   echo $ECHO_N "(cached) $ECHO_C" >&6
18574 else
18575   ac_cv_header_sys_acl_h=$ac_header_preproc
18576 fi
18577 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
18578 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
18579
18580 fi
18581
18582
18583 echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
18584 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6
18585 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
18586   echo $ECHO_N "(cached) $ECHO_C" >&6
18587 else
18588   ac_check_lib_save_LIBS=$LIBS
18589 LIBS="-lacl  $LIBS"
18590 cat >conftest.$ac_ext <<_ACEOF
18591 #line $LINENO "configure"
18592 /* confdefs.h.  */
18593 _ACEOF
18594 cat confdefs.h >>conftest.$ac_ext
18595 cat >>conftest.$ac_ext <<_ACEOF
18596 /* end confdefs.h.  */
18597
18598 /* Override any gcc2 internal prototype to avoid an error.  */
18599 #ifdef __cplusplus
18600 extern "C"
18601 #endif
18602 /* We use char because int might match the return type of a gcc2
18603    builtin and then its argument prototype would still apply.  */
18604 char acl_get_file ();
18605 int
18606 main ()
18607 {
18608 acl_get_file ();
18609   ;
18610   return 0;
18611 }
18612 _ACEOF
18613 rm -f conftest.$ac_objext conftest$ac_exeext
18614 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18615   (eval $ac_link) 2>&5
18616   ac_status=$?
18617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18618   (exit $ac_status); } &&
18619          { ac_try='test -s conftest$ac_exeext'
18620   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18621   (eval $ac_try) 2>&5
18622   ac_status=$?
18623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18624   (exit $ac_status); }; }; then
18625   ac_cv_lib_acl_acl_get_file=yes
18626 else
18627   echo "$as_me: failed program was:" >&5
18628 sed 's/^/| /' conftest.$ac_ext >&5
18629
18630 ac_cv_lib_acl_acl_get_file=no
18631 fi
18632 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18633 LIBS=$ac_check_lib_save_LIBS
18634 fi
18635 echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
18636 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6
18637 if test $ac_cv_lib_acl_acl_get_file = yes; then
18638   FDLIBS="-lacl $FDLIBS"
18639 fi
18640
18641 have_acl=no
18642 if test $ac_cv_lib_acl_acl_get_file = yes; then
18643    cat >>confdefs.h <<\_ACEOF
18644 #define HAVE_ACL 1
18645 _ACEOF
18646
18647    have_acl=yes
18648 fi
18649
18650 PTHREAD_LIB=""
18651 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
18652 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
18653 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
18654   echo $ECHO_N "(cached) $ECHO_C" >&6
18655 else
18656   ac_check_lib_save_LIBS=$LIBS
18657 LIBS="-lpthread  $LIBS"
18658 cat >conftest.$ac_ext <<_ACEOF
18659 #line $LINENO "configure"
18660 /* confdefs.h.  */
18661 _ACEOF
18662 cat confdefs.h >>conftest.$ac_ext
18663 cat >>conftest.$ac_ext <<_ACEOF
18664 /* end confdefs.h.  */
18665
18666 /* Override any gcc2 internal prototype to avoid an error.  */
18667 #ifdef __cplusplus
18668 extern "C"
18669 #endif
18670 /* We use char because int might match the return type of a gcc2
18671    builtin and then its argument prototype would still apply.  */
18672 char pthread_create ();
18673 int
18674 main ()
18675 {
18676 pthread_create ();
18677   ;
18678   return 0;
18679 }
18680 _ACEOF
18681 rm -f conftest.$ac_objext conftest$ac_exeext
18682 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18683   (eval $ac_link) 2>&5
18684   ac_status=$?
18685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18686   (exit $ac_status); } &&
18687          { ac_try='test -s conftest$ac_exeext'
18688   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18689   (eval $ac_try) 2>&5
18690   ac_status=$?
18691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18692   (exit $ac_status); }; }; then
18693   ac_cv_lib_pthread_pthread_create=yes
18694 else
18695   echo "$as_me: failed program was:" >&5
18696 sed 's/^/| /' conftest.$ac_ext >&5
18697
18698 ac_cv_lib_pthread_pthread_create=no
18699 fi
18700 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18701 LIBS=$ac_check_lib_save_LIBS
18702 fi
18703 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
18704 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
18705 if test $ac_cv_lib_pthread_pthread_create = yes; then
18706   PTHREAD_LIB="-lpthread"
18707 else
18708   echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
18709 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
18710 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
18711   echo $ECHO_N "(cached) $ECHO_C" >&6
18712 else
18713   ac_check_lib_save_LIBS=$LIBS
18714 LIBS="-lpthreads  $LIBS"
18715 cat >conftest.$ac_ext <<_ACEOF
18716 #line $LINENO "configure"
18717 /* confdefs.h.  */
18718 _ACEOF
18719 cat confdefs.h >>conftest.$ac_ext
18720 cat >>conftest.$ac_ext <<_ACEOF
18721 /* end confdefs.h.  */
18722
18723 /* Override any gcc2 internal prototype to avoid an error.  */
18724 #ifdef __cplusplus
18725 extern "C"
18726 #endif
18727 /* We use char because int might match the return type of a gcc2
18728    builtin and then its argument prototype would still apply.  */
18729 char pthread_create ();
18730 int
18731 main ()
18732 {
18733 pthread_create ();
18734   ;
18735   return 0;
18736 }
18737 _ACEOF
18738 rm -f conftest.$ac_objext conftest$ac_exeext
18739 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18740   (eval $ac_link) 2>&5
18741   ac_status=$?
18742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18743   (exit $ac_status); } &&
18744          { ac_try='test -s conftest$ac_exeext'
18745   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18746   (eval $ac_try) 2>&5
18747   ac_status=$?
18748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18749   (exit $ac_status); }; }; then
18750   ac_cv_lib_pthreads_pthread_create=yes
18751 else
18752   echo "$as_me: failed program was:" >&5
18753 sed 's/^/| /' conftest.$ac_ext >&5
18754
18755 ac_cv_lib_pthreads_pthread_create=no
18756 fi
18757 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18758 LIBS=$ac_check_lib_save_LIBS
18759 fi
18760 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
18761 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
18762 if test $ac_cv_lib_pthreads_pthread_create = yes; then
18763   PTHREAD_LIB="-lpthreads"
18764 else
18765   echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
18766 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
18767 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
18768   echo $ECHO_N "(cached) $ECHO_C" >&6
18769 else
18770   ac_check_lib_save_LIBS=$LIBS
18771 LIBS="-lc_r  $LIBS"
18772 cat >conftest.$ac_ext <<_ACEOF
18773 #line $LINENO "configure"
18774 /* confdefs.h.  */
18775 _ACEOF
18776 cat confdefs.h >>conftest.$ac_ext
18777 cat >>conftest.$ac_ext <<_ACEOF
18778 /* end confdefs.h.  */
18779
18780 /* Override any gcc2 internal prototype to avoid an error.  */
18781 #ifdef __cplusplus
18782 extern "C"
18783 #endif
18784 /* We use char because int might match the return type of a gcc2
18785    builtin and then its argument prototype would still apply.  */
18786 char pthread_create ();
18787 int
18788 main ()
18789 {
18790 pthread_create ();
18791   ;
18792   return 0;
18793 }
18794 _ACEOF
18795 rm -f conftest.$ac_objext conftest$ac_exeext
18796 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18797   (eval $ac_link) 2>&5
18798   ac_status=$?
18799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18800   (exit $ac_status); } &&
18801          { ac_try='test -s conftest$ac_exeext'
18802   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18803   (eval $ac_try) 2>&5
18804   ac_status=$?
18805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18806   (exit $ac_status); }; }; then
18807   ac_cv_lib_c_r_pthread_create=yes
18808 else
18809   echo "$as_me: failed program was:" >&5
18810 sed 's/^/| /' conftest.$ac_ext >&5
18811
18812 ac_cv_lib_c_r_pthread_create=no
18813 fi
18814 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18815 LIBS=$ac_check_lib_save_LIBS
18816 fi
18817 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
18818 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
18819 if test $ac_cv_lib_c_r_pthread_create = yes; then
18820   PTHREAD_LIB="-lc_r"
18821 else
18822   echo "$as_me:$LINENO: checking for pthread_create" >&5
18823 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6
18824 if test "${ac_cv_func_pthread_create+set}" = set; then
18825   echo $ECHO_N "(cached) $ECHO_C" >&6
18826 else
18827   cat >conftest.$ac_ext <<_ACEOF
18828 #line $LINENO "configure"
18829 /* confdefs.h.  */
18830 _ACEOF
18831 cat confdefs.h >>conftest.$ac_ext
18832 cat >>conftest.$ac_ext <<_ACEOF
18833 /* end confdefs.h.  */
18834 /* System header to define __stub macros and hopefully few prototypes,
18835     which can conflict with char pthread_create (); below.
18836     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18837     <limits.h> exists even on freestanding compilers.  */
18838 #ifdef __STDC__
18839 # include <limits.h>
18840 #else
18841 # include <assert.h>
18842 #endif
18843 /* Override any gcc2 internal prototype to avoid an error.  */
18844 #ifdef __cplusplus
18845 extern "C"
18846 {
18847 #endif
18848 /* We use char because int might match the return type of a gcc2
18849    builtin and then its argument prototype would still apply.  */
18850 char pthread_create ();
18851 /* The GNU C library defines this for functions which it implements
18852     to always fail with ENOSYS.  Some functions are actually named
18853     something starting with __ and the normal name is an alias.  */
18854 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
18855 choke me
18856 #else
18857 char (*f) () = pthread_create;
18858 #endif
18859 #ifdef __cplusplus
18860 }
18861 #endif
18862
18863 int
18864 main ()
18865 {
18866 return f != pthread_create;
18867   ;
18868   return 0;
18869 }
18870 _ACEOF
18871 rm -f conftest.$ac_objext conftest$ac_exeext
18872 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18873   (eval $ac_link) 2>&5
18874   ac_status=$?
18875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18876   (exit $ac_status); } &&
18877          { ac_try='test -s conftest$ac_exeext'
18878   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18879   (eval $ac_try) 2>&5
18880   ac_status=$?
18881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18882   (exit $ac_status); }; }; then
18883   ac_cv_func_pthread_create=yes
18884 else
18885   echo "$as_me: failed program was:" >&5
18886 sed 's/^/| /' conftest.$ac_ext >&5
18887
18888 ac_cv_func_pthread_create=no
18889 fi
18890 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18891 fi
18892 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
18893 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6
18894
18895
18896 fi
18897
18898
18899 fi
18900
18901
18902 fi
18903
18904
18905
18906 cat >>confdefs.h <<\_ACEOF
18907 #define FDLIBS 1
18908 _ACEOF
18909
18910
18911
18912 CFLAGS=${CFLAGS--O}
18913 LDFLAGS=${LDFLAGS--O}
18914 DB_LIBS="${SQL_LFLAGS}"
18915
18916 CPPFLAGS="$CPPFLAGS"
18917
18918
18919
18920
18921
18922
18923
18924
18925
18926
18927
18928
18929
18930
18931 OBJLIST=
18932
18933
18934 lld="lld"
18935 llu="llu"
18936
18937 WCFLAGS=
18938 WLDFLAGS=
18939
18940 #
18941 # Finally we set appropriate distribution specific
18942 #  variables and defaults
18943 #
18944 # PFILES are platform specific files
18945 PFILES="platforms/Makefile"
18946 PSCMD="ps -e"
18947 WIN32=
18948 MACOSX=
18949 hostname=`uname -n | cut -d '.' -f 1`
18950 case "$DISTNAME" in
18951 aix)
18952         DISTVER=`uname -r`
18953         PSCMD="ps -e -o pid,comm"
18954         PFILES="${PFILES} \
18955            platforms/aix/Makefile"
18956         TAPEDRIVE="/dev/rmt0.1"
18957   ;;
18958 alpha)
18959         DISTVER=`uname -r`
18960         PTHREAD_LIB="-lpthread -lexc"
18961         if test "${CC}" = "gcc" ; then
18962            lld="lld"
18963            llu="llu"
18964         else
18965            lld="ld"
18966            llu="lu"
18967         fi
18968         TAPEDRIVE="/dev/nrmt0"
18969   ;;
18970 bsdi)
18971         DISTVER=`uname -a |awk '{print $3}'`
18972         TAPEDRIVE="/dev/nrmt0"
18973         PTHREAD_LIB="-pthread"
18974         CFLAGS="${CFLAGS} -pthread"
18975         PSCMD="ps -x -o pid,command"
18976         lld="qd"
18977         llu="qu"
18978         PFILES="${PFILES} \
18979             platforms/bsdi/Makefile \
18980             platforms/bsdi/bacula-fd \
18981             platforms/bsdi/bacula-sd \
18982             platforms/bsdi/bacula-dir"
18983         largefile_support="yes"
18984   ;;
18985 cygwin)
18986         DISTVER=`uname -a |awk '{print $3}'`
18987         TAPEDRIVE="/dev/nrst0"
18988         WIN32=win32
18989         WCFLAGS="-mwindows"
18990         WLDFLAGS="-mwindows"
18991   ;;
18992 darwin)
18993         DISTVER=`uname -r`
18994         TAPEDRIVE="/dev/nst0"
18995         PSCMD="ps -e -o pid,command"
18996         MACOSX=macosx
18997         PFILES="${PFILES} \
18998            platforms/darwin/Makefile"
18999   ;;
19000 debian)
19001         DISTVER=`cat /etc/debian_version`
19002         TAPEDRIVE="/dev/nrst0"
19003         PSCMD="ps -e -o pid,command"
19004   ;;
19005 freebsd)
19006         DISTVER=`uname -a |awk '{print $3}'`
19007         VER=`echo $DISTVER | cut -c 1`
19008         if test x$VER = x4 ; then
19009            PTHREAD_LIB="-pthread"
19010            CFLAGS="${CFLAGS} -pthread"
19011         fi
19012         lld="qd"
19013         llu="qu"
19014         TAPEDRIVE="/dev/nrsa0"
19015         PSCMD="ps -x -o pid,command"
19016         PFILES="${PFILES} \
19017             platforms/freebsd/Makefile \
19018             platforms/freebsd/bacula-fd \
19019             platforms/freebsd/bacula-sd \
19020             platforms/freebsd/bacula-dir"
19021         largefile_support="yes"
19022   ;;
19023 hpux)
19024         PSCMD="UNIX95=1 ps -e -o pid,comm"
19025         CFLAGS="$(CFLAGS) -D_XOPEN_SOURCE_EXTENDED=1"
19026         DISTVER=`uname -r`
19027         TAPEDRIVE="/dev/rmt/0hnb"
19028   ;;
19029 irix)
19030         DISTVER=`uname -r`
19031         TAPEDRIVE="/dev/rmt/0cbn"
19032         PSCMD="ps -e -o pid,comm"
19033         PFILES="${PFILES} \
19034             platforms/irix/Makefile \
19035             platforms/irix/bacula-fd \
19036             platforms/irix/bacula-sd \
19037             platforms/irix/bacula-dir"
19038   ;;
19039 netbsd)
19040         DISTVER=`uname -a |awk '{print $3}'`
19041         lld="qd"
19042         llu="qu"
19043         TAPEDRIVE="/dev/nrst0"
19044         PSCMD="ps -a -o pid,command"
19045         PTHREAD_LIB="-pthread"
19046         CFLAGS="${CFLAGS} -pthread"
19047   ;;
19048 openbsd)
19049         DISTVER=`uname -a |awk '{print $3}'`
19050         lld="qd"
19051         llu="qu"
19052         TAPEDRIVE="/dev/nrst0"
19053         PSCMD="ps -a -o pid,command"
19054         PTHREAD_LIB="-pthread"
19055         CFLAGS="${CFLAGS} -pthread"
19056         PFILES="${PFILES} \
19057             platforms/openbsd/Makefile \
19058             platforms/openbsd/bacula-fd \
19059             platforms/openbsd/bacula-sd \
19060             platforms/openbsd/bacula-dir"
19061   ;;
19062 redhat)
19063         if test -f /etc/whitebox-release ; then
19064            f=/etc/whitebox-release
19065         else
19066            f=/etc/redhat-release
19067         fi
19068         if test `cat $f | grep release |\
19069                    cut -f 3 -d ' '`x = "Enterprise"x ; then
19070            DISTVER="Enterprise "`cat $f | grep release |\
19071                     cut -f 6 -d ' '`
19072         else
19073             DISTVER=`cat /etc/redhat-release | grep release |\
19074                      cut -f 5 -d ' '`
19075         fi
19076         TAPEDRIVE="/dev/nst0"
19077         PSCMD="ps -e -o pid,command"
19078         PFILES="${PFILES} \
19079             platforms/redhat/Makefile \
19080             platforms/redhat/bacula-fd \
19081             platforms/redhat/bacula-sd \
19082             platforms/redhat/bacula-dir \
19083             platforms/redhat/bacula.spec \
19084             "
19085         hostname=`hostname -s`
19086   ;;
19087 mandrake)
19088         DISTVER=`cat /etc/mandrake-release | grep release |\
19089            cut -f 5 -d ' '`
19090         TAPEDRIVE="/dev/nst0"
19091         PSCMD="ps -e -o pid,command"
19092         PFILES="${PFILES} \
19093             platforms/mandrake/Makefile \
19094             platforms/mandrake/bacula-fd \
19095             platforms/mandrake/bacula-sd \
19096             platforms/mandrake/bacula-dir \
19097             platforms/mandrake/bacula.spec \
19098             "
19099   ;;
19100 gentoo)
19101         DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
19102         TAPEDRIVE="/dev/nst0"
19103         PSCMD="ps -e -o pid,command"
19104         PFILES="${PFILES} \
19105             platforms/gentoo/Makefile \
19106             platforms/gentoo/bacula-fd \
19107             platforms/gentoo/bacula-sd \
19108             platforms/gentoo/bacula-dir"
19109   ;;
19110 slackware)
19111         DISTVER=`cat /etc/slackware-version`
19112         TAPEDRIVE="/dev/nst0"
19113         PSCMD="ps -e -o pid,command"
19114         PFILES="${PFILES} \
19115             platforms/slackware/Makefile \
19116             platforms/slackware/rc.bacula-fd \
19117             platforms/slackware/rc.bacula-sd \
19118             platforms/slackware/rc.bacula-dir\
19119             platforms/slackware/functions.bacula"
19120   ;;
19121 solaris)
19122         DISTVER=`uname -r`
19123         TAPEDRIVE="/dev/rmt/0cbn"
19124         PSCMD="ps -e -o pid,comm"
19125         PFILES="${PFILES} \
19126             platforms/solaris/Makefile \
19127             platforms/solaris/bacula-fd \
19128             platforms/solaris/bacula-sd \
19129             platforms/solaris/bacula-dir"
19130         if test x$DISTVER = x5.6 ; then
19131             cat >>confdefs.h <<\_ACEOF
19132 #define HAVE_OLD_SOCKOPT 1
19133 _ACEOF
19134
19135         fi
19136   ;;
19137 suse)
19138         DISTVER=`cat /etc/SuSE-release |grep VERSION|\
19139             cut -f 3 -d ' '`
19140         TAPEDRIVE="/dev/nst0"
19141         PSCMD="ps -e -o pid,command"
19142         PFILES="${PFILES} \
19143             platforms/suse/Makefile \
19144             platforms/suse/bacula-fd \
19145             platforms/suse/bacula-sd \
19146             platforms/suse/bacula-dir \
19147             platforms/suse/bacula \
19148             platforms/suse/bacula.spec"
19149   ;;
19150 suse5)
19151         DISTNAME=suse
19152         DISTVER=5.x
19153         TAPEDRIVE="/dev/nst0"
19154         PSCMD="ps -e -o pid,command"
19155         PFILES="${PFILES} \
19156             platforms/suse/Makefile \
19157             platforms/suse/bacula-fd \
19158             platforms/suse/bacula-sd \
19159             platforms/suse/bacula-dir"
19160   ;;
19161 unknown)
19162         DISTVER=unknown
19163         TAPEDRIVE="/dev/nst0"
19164   ;;
19165 *)
19166   echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
19167   ;;
19168 esac
19169
19170
19171
19172 LIBS="$PTHREAD_LIB $LIBS"
19173
19174 cat >>confdefs.h <<_ACEOF
19175 #define lld "$lld"
19176 _ACEOF
19177
19178 cat >>confdefs.h <<_ACEOF
19179 #define llu "$llu"
19180 _ACEOF
19181
19182
19183
19184
19185
19186
19187
19188
19189 MCOMMON=./autoconf/Make.common
19190
19191
19192 if test "x${subsysdir}" = "x${sbindir}" ; then
19193    echo " "
19194    echo " "
19195    echo "You have set both --sbindir and --with-subsys-dir"
19196    echo "  equal to: ${subsysdir} "
19197    echo "This is not permitted. Please reconfigure."
19198    echo " "
19199    echo "Aborting configuration ..."
19200    echo " "
19201    echo " "
19202    exit 1
19203 fi
19204
19205                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               ac_config_files="$ac_config_files autoconf/Make.common Makefile rescue/Makefile rescue/linux/Makefile rescue/linux/floppy/Makefile rescue/linux/cdrom/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/tray-monitor/Makefile src/tray-monitor/tray-monitor.conf src/dird/Makefile src/dird/bacula-dir.conf src/lib/Makefile src/stored/Makefile src/stored/bacula-sd.conf src/filed/Makefile src/filed/bacula-fd.conf src/filed/win32/Makefile src/cats/Makefile src/cats/make_catalog_backup src/cats/delete_catalog_backup src/cats/create_postgresql_database src/cats/update_postgresql_tables src/cats/make_postgresql_tables src/cats/grant_postgresql_privileges src/cats/drop_postgresql_tables src/cats/drop_postgresql_database src/cats/create_mysql_database src/cats/update_mysql_tables src/cats/make_mysql_tables src/cats/grant_mysql_privileges src/cats/drop_mysql_tables src/cats/drop_mysql_database src/cats/create_sqlite_database src/cats/update_sqlite_tables src/cats/make_sqlite_tables src/cats/grant_sqlite_privileges src/cats/drop_sqlite_tables src/cats/drop_sqlite_database src/cats/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"
19206           ac_config_commands="$ac_config_commands default"
19207 cat >confcache <<\_ACEOF
19208 # This file is a shell script that caches the results of configure
19209 # tests run on this system so they can be shared between configure
19210 # scripts and configure runs, see configure's option --config-cache.
19211 # It is not useful on other systems.  If it contains results you don't
19212 # want to keep, you may remove or edit it.
19213 #
19214 # config.status only pays attention to the cache file if you give it
19215 # the --recheck option to rerun configure.
19216 #
19217 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19218 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19219 # following values.
19220
19221 _ACEOF
19222
19223 # The following way of writing the cache mishandles newlines in values,
19224 # but we know of no workaround that is simple, portable, and efficient.
19225 # So, don't put newlines in cache variables' values.
19226 # Ultrix sh set writes to stderr and can't be redirected directly,
19227 # and sets the high bit in the cache file unless we assign to the vars.
19228 {
19229   (set) 2>&1 |
19230     case `(ac_space=' '; set | grep ac_space) 2>&1` in
19231     *ac_space=\ *)
19232       # `set' does not quote correctly, so add quotes (double-quote
19233       # substitution turns \\\\ into \\, and sed turns \\ into \).
19234       sed -n \
19235         "s/'/'\\\\''/g;
19236           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19237       ;;
19238     *)
19239       # `set' quotes correctly as required by POSIX, so do not add quotes.
19240       sed -n \
19241         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
19242       ;;
19243     esac;
19244 } |
19245   sed '
19246      t clear
19247      : clear
19248      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19249      t end
19250      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19251      : end' >>confcache
19252 if diff $cache_file confcache >/dev/null 2>&1; then :; else
19253   if test -w $cache_file; then
19254     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19255     cat confcache >$cache_file
19256   else
19257     echo "not updating unwritable cache $cache_file"
19258   fi
19259 fi
19260 rm -f confcache
19261
19262 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19263 # Let make expand exec_prefix.
19264 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19265
19266 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19267 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19268 # trailing colons and then remove the whole line if VPATH becomes empty
19269 # (actually we leave an empty line to preserve line numbers).
19270 if test "x$srcdir" = x.; then
19271   ac_vpsub='/^[         ]*VPATH[        ]*=/{
19272 s/:*\$(srcdir):*/:/;
19273 s/:*\${srcdir}:*/:/;
19274 s/:*@srcdir@:*/:/;
19275 s/^\([^=]*=[    ]*\):*/\1/;
19276 s/:*$//;
19277 s/^[^=]*=[      ]*$//;
19278 }'
19279 fi
19280
19281 DEFS=-DHAVE_CONFIG_H
19282
19283 ac_libobjs=
19284 ac_ltlibobjs=
19285 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19286   # 1. Remove the extension, and $U if already installed.
19287   ac_i=`echo "$ac_i" |
19288          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
19289   # 2. Add them.
19290   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
19291   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
19292 done
19293 LIBOBJS=$ac_libobjs
19294
19295 LTLIBOBJS=$ac_ltlibobjs
19296
19297
19298
19299 : ${CONFIG_STATUS=./config.status}
19300 ac_clean_files_save=$ac_clean_files
19301 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19302 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19303 echo "$as_me: creating $CONFIG_STATUS" >&6;}
19304 cat >$CONFIG_STATUS <<_ACEOF
19305 #! $SHELL
19306 # Generated by $as_me.
19307 # Run this file to recreate the current configuration.
19308 # Compiler output produced by configure, useful for debugging
19309 # configure, is in config.log if it exists.
19310
19311 debug=false
19312 ac_cs_recheck=false
19313 ac_cs_silent=false
19314 SHELL=\${CONFIG_SHELL-$SHELL}
19315 _ACEOF
19316
19317 cat >>$CONFIG_STATUS <<\_ACEOF
19318 ## --------------------- ##
19319 ## M4sh Initialization.  ##
19320 ## --------------------- ##
19321
19322 # Be Bourne compatible
19323 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19324   emulate sh
19325   NULLCMD=:
19326   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19327   # is contrary to our usage.  Disable this feature.
19328   alias -g '${1+"$@"}'='"$@"'
19329 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
19330   set -o posix
19331 fi
19332
19333 # Support unset when possible.
19334 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
19335   as_unset=unset
19336 else
19337   as_unset=false
19338 fi
19339
19340
19341 # Work around bugs in pre-3.0 UWIN ksh.
19342 $as_unset ENV MAIL MAILPATH
19343 PS1='$ '
19344 PS2='> '
19345 PS4='+ '
19346
19347 # NLS nuisances.
19348 for as_var in \
19349   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
19350   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
19351   LC_TELEPHONE LC_TIME
19352 do
19353   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
19354     eval $as_var=C; export $as_var
19355   else
19356     $as_unset $as_var
19357   fi
19358 done
19359
19360 # Required to use basename.
19361 if expr a : '\(a\)' >/dev/null 2>&1; then
19362   as_expr=expr
19363 else
19364   as_expr=false
19365 fi
19366
19367 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
19368   as_basename=basename
19369 else
19370   as_basename=false
19371 fi
19372
19373
19374 # Name of the executable.
19375 as_me=`$as_basename "$0" ||
19376 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19377          X"$0" : 'X\(//\)$' \| \
19378          X"$0" : 'X\(/\)$' \| \
19379          .     : '\(.\)' 2>/dev/null ||
19380 echo X/"$0" |
19381     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
19382           /^X\/\(\/\/\)$/{ s//\1/; q; }
19383           /^X\/\(\/\).*/{ s//\1/; q; }
19384           s/.*/./; q'`
19385
19386
19387 # PATH needs CR, and LINENO needs CR and PATH.
19388 # Avoid depending upon Character Ranges.
19389 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19390 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19391 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19392 as_cr_digits='0123456789'
19393 as_cr_alnum=$as_cr_Letters$as_cr_digits
19394
19395 # The user is always right.
19396 if test "${PATH_SEPARATOR+set}" != set; then
19397   echo "#! /bin/sh" >conf$$.sh
19398   echo  "exit 0"   >>conf$$.sh
19399   chmod +x conf$$.sh
19400   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
19401     PATH_SEPARATOR=';'
19402   else
19403     PATH_SEPARATOR=:
19404   fi
19405   rm -f conf$$.sh
19406 fi
19407
19408
19409   as_lineno_1=$LINENO
19410   as_lineno_2=$LINENO
19411   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19412   test "x$as_lineno_1" != "x$as_lineno_2" &&
19413   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
19414   # Find who we are.  Look in the path if we contain no path at all
19415   # relative or not.
19416   case $0 in
19417     *[\\/]* ) as_myself=$0 ;;
19418     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19419 for as_dir in $PATH
19420 do
19421   IFS=$as_save_IFS
19422   test -z "$as_dir" && as_dir=.
19423   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19424 done
19425
19426        ;;
19427   esac
19428   # We did not find ourselves, most probably we were run as `sh COMMAND'
19429   # in which case we are not to be found in the path.
19430   if test "x$as_myself" = x; then
19431     as_myself=$0
19432   fi
19433   if test ! -f "$as_myself"; then
19434     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
19435 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
19436    { (exit 1); exit 1; }; }
19437   fi
19438   case $CONFIG_SHELL in
19439   '')
19440     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19441 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
19442 do
19443   IFS=$as_save_IFS
19444   test -z "$as_dir" && as_dir=.
19445   for as_base in sh bash ksh sh5; do
19446          case $as_dir in
19447          /*)
19448            if ("$as_dir/$as_base" -c '
19449   as_lineno_1=$LINENO
19450   as_lineno_2=$LINENO
19451   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19452   test "x$as_lineno_1" != "x$as_lineno_2" &&
19453   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
19454              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
19455              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
19456              CONFIG_SHELL=$as_dir/$as_base
19457              export CONFIG_SHELL
19458              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
19459            fi;;
19460          esac
19461        done
19462 done
19463 ;;
19464   esac
19465
19466   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19467   # uniformly replaced by the line number.  The first 'sed' inserts a
19468   # line-number line before each line; the second 'sed' does the real
19469   # work.  The second script uses 'N' to pair each line-number line
19470   # with the numbered line, and appends trailing '-' during
19471   # substitution so that $LINENO is not a special case at line end.
19472   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
19473   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
19474   sed '=' <$as_myself |
19475     sed '
19476       N
19477       s,$,-,
19478       : loop
19479       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
19480       t loop
19481       s,-$,,
19482       s,^['$as_cr_digits']*\n,,
19483     ' >$as_me.lineno &&
19484   chmod +x $as_me.lineno ||
19485     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
19486 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
19487    { (exit 1); exit 1; }; }
19488
19489   # Don't try to exec as it changes $[0], causing all sort of problems
19490   # (the dirname of $[0] is not the place where we might find the
19491   # original and so on.  Autoconf is especially sensible to this).
19492   . ./$as_me.lineno
19493   # Exit status is that of the last command.
19494   exit
19495 }
19496
19497
19498 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
19499   *c*,-n*) ECHO_N= ECHO_C='
19500 ' ECHO_T='      ' ;;
19501   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
19502   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
19503 esac
19504
19505 if expr a : '\(a\)' >/dev/null 2>&1; then
19506   as_expr=expr
19507 else
19508   as_expr=false
19509 fi
19510
19511 rm -f conf$$ conf$$.exe conf$$.file
19512 echo >conf$$.file
19513 if ln -s conf$$.file conf$$ 2>/dev/null; then
19514   # We could just check for DJGPP; but this test a) works b) is more generic
19515   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
19516   if test -f conf$$.exe; then
19517     # Don't use ln at all; we don't have any links
19518     as_ln_s='cp -p'
19519   else
19520     as_ln_s='ln -s'
19521   fi
19522 elif ln conf$$.file conf$$ 2>/dev/null; then
19523   as_ln_s=ln
19524 else
19525   as_ln_s='cp -p'
19526 fi
19527 rm -f conf$$ conf$$.exe conf$$.file
19528
19529 if mkdir -p . 2>/dev/null; then
19530   as_mkdir_p=:
19531 else
19532   as_mkdir_p=false
19533 fi
19534
19535 as_executable_p="test -f"
19536
19537 # Sed expression to map a string onto a valid CPP name.
19538 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
19539
19540 # Sed expression to map a string onto a valid variable name.
19541 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
19542
19543
19544 # IFS
19545 # We need space, tab and new line, in precisely that order.
19546 as_nl='
19547 '
19548 IFS="   $as_nl"
19549
19550 # CDPATH.
19551 $as_unset CDPATH
19552
19553 exec 6>&1
19554
19555 # Open the log real soon, to keep \$[0] and so on meaningful, and to
19556 # report actual input values of CONFIG_FILES etc. instead of their
19557 # values after options handling.  Logging --version etc. is OK.
19558 exec 5>>config.log
19559 {
19560   echo
19561   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19562 ## Running $as_me. ##
19563 _ASBOX
19564 } >&5
19565 cat >&5 <<_CSEOF
19566
19567 This file was extended by $as_me, which was
19568 generated by GNU Autoconf 2.57.  Invocation command line was
19569
19570   CONFIG_FILES    = $CONFIG_FILES
19571   CONFIG_HEADERS  = $CONFIG_HEADERS
19572   CONFIG_LINKS    = $CONFIG_LINKS
19573   CONFIG_COMMANDS = $CONFIG_COMMANDS
19574   $ $0 $@
19575
19576 _CSEOF
19577 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
19578 echo >&5
19579 _ACEOF
19580
19581 # Files that config.status was made for.
19582 if test -n "$ac_config_files"; then
19583   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
19584 fi
19585
19586 if test -n "$ac_config_headers"; then
19587   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
19588 fi
19589
19590 if test -n "$ac_config_links"; then
19591   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
19592 fi
19593
19594 if test -n "$ac_config_commands"; then
19595   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
19596 fi
19597
19598 cat >>$CONFIG_STATUS <<\_ACEOF
19599
19600 ac_cs_usage="\
19601 \`$as_me' instantiates files from templates according to the
19602 current configuration.
19603
19604 Usage: $0 [OPTIONS] [FILE]...
19605
19606   -h, --help       print this help, then exit
19607   -V, --version    print version number, then exit
19608   -q, --quiet      do not print progress messages
19609   -d, --debug      don't remove temporary files
19610       --recheck    update $as_me by reconfiguring in the same conditions
19611   --file=FILE[:TEMPLATE]
19612                    instantiate the configuration file FILE
19613   --header=FILE[:TEMPLATE]
19614                    instantiate the configuration header FILE
19615
19616 Configuration files:
19617 $config_files
19618
19619 Configuration headers:
19620 $config_headers
19621
19622 Configuration commands:
19623 $config_commands
19624
19625 Report bugs to <bug-autoconf@gnu.org>."
19626 _ACEOF
19627
19628 cat >>$CONFIG_STATUS <<_ACEOF
19629 ac_cs_version="\\
19630 config.status
19631 configured by $0, generated by GNU Autoconf 2.57,
19632   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
19633
19634 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
19635 Free Software Foundation, Inc.
19636 This config.status script is free software; the Free Software Foundation
19637 gives unlimited permission to copy, distribute and modify it."
19638 srcdir=$srcdir
19639 INSTALL="$INSTALL"
19640 _ACEOF
19641
19642 cat >>$CONFIG_STATUS <<\_ACEOF
19643 # If no file are specified by the user, then we need to provide default
19644 # value.  By we need to know if files were specified by the user.
19645 ac_need_defaults=:
19646 while test $# != 0
19647 do
19648   case $1 in
19649   --*=*)
19650     ac_option=`expr "x$1" : 'x\([^=]*\)='`
19651     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
19652     ac_shift=:
19653     ;;
19654   -*)
19655     ac_option=$1
19656     ac_optarg=$2
19657     ac_shift=shift
19658     ;;
19659   *) # This is not an option, so the user has probably given explicit
19660      # arguments.
19661      ac_option=$1
19662      ac_need_defaults=false;;
19663   esac
19664
19665   case $ac_option in
19666   # Handling of the options.
19667 _ACEOF
19668 cat >>$CONFIG_STATUS <<\_ACEOF
19669   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19670     ac_cs_recheck=: ;;
19671   --version | --vers* | -V )
19672     echo "$ac_cs_version"; exit 0 ;;
19673   --he | --h)
19674     # Conflict between --help and --header
19675     { { echo "$as_me:$LINENO: error: ambiguous option: $1
19676 Try \`$0 --help' for more information." >&5
19677 echo "$as_me: error: ambiguous option: $1
19678 Try \`$0 --help' for more information." >&2;}
19679    { (exit 1); exit 1; }; };;
19680   --help | --hel | -h )
19681     echo "$ac_cs_usage"; exit 0 ;;
19682   --debug | --d* | -d )
19683     debug=: ;;
19684   --file | --fil | --fi | --f )
19685     $ac_shift
19686     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
19687     ac_need_defaults=false;;
19688   --header | --heade | --head | --hea )
19689     $ac_shift
19690     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
19691     ac_need_defaults=false;;
19692   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19693   | -silent | --silent | --silen | --sile | --sil | --si | --s)
19694     ac_cs_silent=: ;;
19695
19696   # This is an error.
19697   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
19698 Try \`$0 --help' for more information." >&5
19699 echo "$as_me: error: unrecognized option: $1
19700 Try \`$0 --help' for more information." >&2;}
19701    { (exit 1); exit 1; }; } ;;
19702
19703   *) ac_config_targets="$ac_config_targets $1" ;;
19704
19705   esac
19706   shift
19707 done
19708
19709 ac_configure_extra_args=
19710
19711 if $ac_cs_silent; then
19712   exec 6>/dev/null
19713   ac_configure_extra_args="$ac_configure_extra_args --silent"
19714 fi
19715
19716 _ACEOF
19717 cat >>$CONFIG_STATUS <<_ACEOF
19718 if \$ac_cs_recheck; then
19719   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
19720   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19721 fi
19722
19723 _ACEOF
19724
19725
19726
19727
19728
19729 cat >>$CONFIG_STATUS <<\_ACEOF
19730 for ac_config_target in $ac_config_targets
19731 do
19732   case "$ac_config_target" in
19733   # Handling of arguments.
19734   "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
19735   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19736   "rescue/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/Makefile" ;;
19737   "rescue/linux/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/linux/Makefile" ;;
19738   "rescue/linux/floppy/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/linux/floppy/Makefile" ;;
19739   "rescue/linux/cdrom/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/linux/cdrom/Makefile" ;;
19740   "rescue/freebsd/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/freebsd/Makefile" ;;
19741   "rescue/solaris/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/solaris/Makefile" ;;
19742   "scripts/startmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
19743   "scripts/stopmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
19744   "scripts/btraceback" ) CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
19745   "scripts/startit" ) CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
19746   "scripts/stopit" ) CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
19747   "scripts/bconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
19748   "scripts/gconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
19749   "scripts/bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
19750   "scripts/devel_bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
19751   "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
19752   "scripts/logrotate" ) CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
19753   "scripts/bacula.desktop.gnome1" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
19754   "scripts/bacula.desktop.gnome2" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
19755   "scripts/bacula.desktop.gnome1.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
19756   "scripts/bacula.desktop.gnome2.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
19757   "scripts/bacula.desktop.gnome1.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
19758   "scripts/bacula.desktop.gnome2.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
19759   "scripts/gnome-console.console_apps" ) CONFIG_FILES="$CONFIG_FILES scripts/gnome-console.console_apps" ;;
19760   "scripts/mtx-changer" ) CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
19761   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
19762   "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
19763   "src/host.h" ) CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
19764   "src/console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
19765   "src/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
19766   "src/gnome-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/Makefile" ;;
19767   "src/gnome-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/gnome-console.conf" ;;
19768   "src/gnome2-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
19769   "src/gnome2-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/gnome-console.conf" ;;
19770   "src/wx-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
19771   "src/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/wx-console.conf" ;;
19772   "src/tray-monitor/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
19773   "src/tray-monitor/tray-monitor.conf" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
19774   "src/dird/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
19775   "src/dird/bacula-dir.conf" ) CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
19776   "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
19777   "src/stored/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
19778   "src/stored/bacula-sd.conf" ) CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
19779   "src/filed/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
19780   "src/filed/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
19781   "src/filed/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/win32/Makefile" ;;
19782   "src/cats/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
19783   "src/cats/make_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
19784   "src/cats/delete_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
19785   "src/cats/create_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
19786   "src/cats/update_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
19787   "src/cats/make_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
19788   "src/cats/grant_postgresql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
19789   "src/cats/drop_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
19790   "src/cats/drop_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
19791   "src/cats/create_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
19792   "src/cats/update_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
19793   "src/cats/make_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
19794   "src/cats/grant_mysql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
19795   "src/cats/drop_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
19796   "src/cats/drop_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
19797   "src/cats/create_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
19798   "src/cats/update_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
19799   "src/cats/make_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
19800   "src/cats/grant_sqlite_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
19801   "src/cats/drop_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
19802   "src/cats/drop_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
19803   "src/cats/sqlite" ) CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
19804   "src/cats/mysql" ) CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
19805   "src/cats/create_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
19806   "src/cats/update_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
19807   "src/cats/make_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
19808   "src/cats/grant_bdb_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
19809   "src/cats/drop_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
19810   "src/cats/drop_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
19811   "src/cats/create_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
19812   "src/cats/update_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
19813   "src/cats/grant_bacula_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
19814   "src/cats/make_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
19815   "src/cats/drop_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
19816   "src/cats/drop_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
19817   "src/findlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
19818   "src/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
19819   "src/win32/winbacula.nsi" ) CONFIG_FILES="$CONFIG_FILES src/win32/winbacula.nsi" ;;
19820   "src/win32/baculafd/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/baculafd/bacula-fd.conf" ;;
19821   "src/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/win32/Makefile" ;;
19822   "src/win32/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/console/bconsole.conf" ;;
19823   "src/win32/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/wx-console/wx-console.conf" ;;
19824   "$PFILES" ) CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
19825   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
19826   "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
19827   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
19828 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
19829    { (exit 1); exit 1; }; };;
19830   esac
19831 done
19832
19833 # If the user did not use the arguments to specify the items to instantiate,
19834 # then the envvar interface is used.  Set only those that are not.
19835 # We use the long form for the default assignment because of an extremely
19836 # bizarre bug on SunOS 4.1.3.
19837 if $ac_need_defaults; then
19838   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19839   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19840   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19841 fi
19842
19843 # Have a temporary directory for convenience.  Make it in the build tree
19844 # simply because there is no reason to put it here, and in addition,
19845 # creating and moving files from /tmp can sometimes cause problems.
19846 # Create a temporary directory, and hook for its removal unless debugging.
19847 $debug ||
19848 {
19849   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
19850   trap '{ (exit 1); exit 1; }' 1 2 13 15
19851 }
19852
19853 # Create a (secure) tmp directory for tmp files.
19854
19855 {
19856   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
19857   test -n "$tmp" && test -d "$tmp"
19858 }  ||
19859 {
19860   tmp=./confstat$$-$RANDOM
19861   (umask 077 && mkdir $tmp)
19862 } ||
19863 {
19864    echo "$me: cannot create a temporary directory in ." >&2
19865    { (exit 1); exit 1; }
19866 }
19867
19868 _ACEOF
19869
19870 cat >>$CONFIG_STATUS <<_ACEOF
19871
19872 #
19873 # CONFIG_FILES section.
19874 #
19875
19876 # No need to generate the scripts if there are no CONFIG_FILES.
19877 # This happens for instance when ./config.status config.h
19878 if test -n "\$CONFIG_FILES"; then
19879   # Protect against being on the right side of a sed subst in config.status.
19880   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
19881    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
19882 s,@SHELL@,$SHELL,;t t
19883 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
19884 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
19885 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
19886 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
19887 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
19888 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
19889 s,@exec_prefix@,$exec_prefix,;t t
19890 s,@prefix@,$prefix,;t t
19891 s,@program_transform_name@,$program_transform_name,;t t
19892 s,@bindir@,$bindir,;t t
19893 s,@sbindir@,$sbindir,;t t
19894 s,@libexecdir@,$libexecdir,;t t
19895 s,@datadir@,$datadir,;t t
19896 s,@sysconfdir@,$sysconfdir,;t t
19897 s,@sharedstatedir@,$sharedstatedir,;t t
19898 s,@localstatedir@,$localstatedir,;t t
19899 s,@libdir@,$libdir,;t t
19900 s,@includedir@,$includedir,;t t
19901 s,@oldincludedir@,$oldincludedir,;t t
19902 s,@infodir@,$infodir,;t t
19903 s,@mandir@,$mandir,;t t
19904 s,@build_alias@,$build_alias,;t t
19905 s,@host_alias@,$host_alias,;t t
19906 s,@target_alias@,$target_alias,;t t
19907 s,@DEFS@,$DEFS,;t t
19908 s,@ECHO_C@,$ECHO_C,;t t
19909 s,@ECHO_N@,$ECHO_N,;t t
19910 s,@ECHO_T@,$ECHO_T,;t t
19911 s,@LIBS@,$LIBS,;t t
19912 s,@BUILD_DIR@,$BUILD_DIR,;t t
19913 s,@TRUEPRG@,$TRUEPRG,;t t
19914 s,@FALSEPRG@,$FALSEPRG,;t t
19915 s,@VERSION@,$VERSION,;t t
19916 s,@DATE@,$DATE,;t t
19917 s,@LSMDATE@,$LSMDATE,;t t
19918 s,@CC@,$CC,;t t
19919 s,@CFLAGS@,$CFLAGS,;t t
19920 s,@LDFLAGS@,$LDFLAGS,;t t
19921 s,@CPPFLAGS@,$CPPFLAGS,;t t
19922 s,@ac_ct_CC@,$ac_ct_CC,;t t
19923 s,@EXEEXT@,$EXEEXT,;t t
19924 s,@OBJEXT@,$OBJEXT,;t t
19925 s,@CXX@,$CXX,;t t
19926 s,@CXXFLAGS@,$CXXFLAGS,;t t
19927 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
19928 s,@CPP@,$CPP,;t t
19929 s,@EGREP@,$EGREP,;t t
19930 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
19931 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
19932 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
19933 s,@RANLIB@,$RANLIB,;t t
19934 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
19935 s,@MV@,$MV,;t t
19936 s,@RM@,$RM,;t t
19937 s,@CP@,$CP,;t t
19938 s,@SED@,$SED,;t t
19939 s,@AWK@,$AWK,;t t
19940 s,@ECHO@,$ECHO,;t t
19941 s,@CMP@,$CMP,;t t
19942 s,@TBL@,$TBL,;t t
19943 s,@AR@,$AR,;t t
19944 s,@OPENSSL@,$OPENSSL,;t t
19945 s,@MTX@,$MTX,;t t
19946 s,@PKGCONFIG@,$PKGCONFIG,;t t
19947 s,@WXCONFIG@,$WXCONFIG,;t t
19948 s,@CDRECORD@,$CDRECORD,;t t
19949 s,@ARFLAGS@,$ARFLAGS,;t t
19950 s,@MAKE_SHELL@,$MAKE_SHELL,;t t
19951 s,@LOCAL_LIBS@,$LOCAL_LIBS,;t t
19952 s,@LOCAL_CFLAGS@,$LOCAL_CFLAGS,;t t
19953 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
19954 s,@LOCAL_DEFS@,$LOCAL_DEFS,;t t
19955 s,@build@,$build,;t t
19956 s,@build_cpu@,$build_cpu,;t t
19957 s,@build_vendor@,$build_vendor,;t t
19958 s,@build_os@,$build_os,;t t
19959 s,@host@,$host,;t t
19960 s,@host_cpu@,$host_cpu,;t t
19961 s,@host_vendor@,$host_vendor,;t t
19962 s,@host_os@,$host_os,;t t
19963 s,@HAVE_SUN_OS_TRUE@,$HAVE_SUN_OS_TRUE,;t t
19964 s,@HAVE_SUN_OS_FALSE@,$HAVE_SUN_OS_FALSE,;t t
19965 s,@HAVE_OSF1_OS_TRUE@,$HAVE_OSF1_OS_TRUE,;t t
19966 s,@HAVE_OSF1_OS_FALSE@,$HAVE_OSF1_OS_FALSE,;t t
19967 s,@HAVE_AIX_OS_TRUE@,$HAVE_AIX_OS_TRUE,;t t
19968 s,@HAVE_AIX_OS_FALSE@,$HAVE_AIX_OS_FALSE,;t t
19969 s,@HAVE_HPUX_OS_TRUE@,$HAVE_HPUX_OS_TRUE,;t t
19970 s,@HAVE_HPUX_OS_FALSE@,$HAVE_HPUX_OS_FALSE,;t t
19971 s,@HAVE_LINUX_OS_TRUE@,$HAVE_LINUX_OS_TRUE,;t t
19972 s,@HAVE_LINUX_OS_FALSE@,$HAVE_LINUX_OS_FALSE,;t t
19973 s,@HAVE_FREEBSD_OS_TRUE@,$HAVE_FREEBSD_OS_TRUE,;t t
19974 s,@HAVE_FREEBSD_OS_FALSE@,$HAVE_FREEBSD_OS_FALSE,;t t
19975 s,@HAVE_NETBSD_OS_TRUE@,$HAVE_NETBSD_OS_TRUE,;t t
19976 s,@HAVE_NETBSD_OS_FALSE@,$HAVE_NETBSD_OS_FALSE,;t t
19977 s,@HAVE_OPENBSD_OS_TRUE@,$HAVE_OPENBSD_OS_TRUE,;t t
19978 s,@HAVE_OPENBSD_OS_FALSE@,$HAVE_OPENBSD_OS_FALSE,;t t
19979 s,@HAVE_BSDI_OS_TRUE@,$HAVE_BSDI_OS_TRUE,;t t
19980 s,@HAVE_BSDI_OS_FALSE@,$HAVE_BSDI_OS_FALSE,;t t
19981 s,@HAVE_SGI_OS_TRUE@,$HAVE_SGI_OS_TRUE,;t t
19982 s,@HAVE_SGI_OS_FALSE@,$HAVE_SGI_OS_FALSE,;t t
19983 s,@HAVE_IRIX_OS_TRUE@,$HAVE_IRIX_OS_TRUE,;t t
19984 s,@HAVE_IRIX_OS_FALSE@,$HAVE_IRIX_OS_FALSE,;t t
19985 s,@HAVE_DARWIN_OS_TRUE@,$HAVE_DARWIN_OS_TRUE,;t t
19986 s,@HAVE_DARWIN_OS_FALSE@,$HAVE_DARWIN_OS_FALSE,;t t
19987 s,@INSIDE_GNOME_COMMON_TRUE@,$INSIDE_GNOME_COMMON_TRUE,;t t
19988 s,@INSIDE_GNOME_COMMON_FALSE@,$INSIDE_GNOME_COMMON_FALSE,;t t
19989 s,@MSGFMT@,$MSGFMT,;t t
19990 s,@GNOME_INCLUDEDIR@,$GNOME_INCLUDEDIR,;t t
19991 s,@GNOMEUI_LIBS@,$GNOMEUI_LIBS,;t t
19992 s,@GNOME_LIBDIR@,$GNOME_LIBDIR,;t t
19993 s,@GNOME_LIBS@,$GNOME_LIBS,;t t
19994 s,@GNOMEGNORBA_LIBS@,$GNOMEGNORBA_LIBS,;t t
19995 s,@GTKXMHTML_LIBS@,$GTKXMHTML_LIBS,;t t
19996 s,@ZVT_LIBS@,$ZVT_LIBS,;t t
19997 s,@GNOME_CONFIG@,$GNOME_CONFIG,;t t
19998 s,@ORBIT_CONFIG@,$ORBIT_CONFIG,;t t
19999 s,@ORBIT_IDL@,$ORBIT_IDL,;t t
20000 s,@HAVE_ORBIT_TRUE@,$HAVE_ORBIT_TRUE,;t t
20001 s,@HAVE_ORBIT_FALSE@,$HAVE_ORBIT_FALSE,;t t
20002 s,@ORBIT_CFLAGS@,$ORBIT_CFLAGS,;t t
20003 s,@ORBIT_LIBS@,$ORBIT_LIBS,;t t
20004 s,@HAVE_GNORBA_TRUE@,$HAVE_GNORBA_TRUE,;t t
20005 s,@HAVE_GNORBA_FALSE@,$HAVE_GNORBA_FALSE,;t t
20006 s,@GNORBA_CFLAGS@,$GNORBA_CFLAGS,;t t
20007 s,@GNORBA_LIBS@,$GNORBA_LIBS,;t t
20008 s,@GNOME_APPLETS_LIBS@,$GNOME_APPLETS_LIBS,;t t
20009 s,@GNOME_DOCKLETS_LIBS@,$GNOME_DOCKLETS_LIBS,;t t
20010 s,@GNOME_CAPPLET_LIBS@,$GNOME_CAPPLET_LIBS,;t t
20011 s,@GNOME_DIR@,$GNOME_DIR,;t t
20012 s,@WXCONS_CPPFLAGS@,$WXCONS_CPPFLAGS,;t t
20013 s,@WXCONS_LDFLAGS@,$WXCONS_LDFLAGS,;t t
20014 s,@WX_DIR@,$WX_DIR,;t t
20015 s,@TRAY_MONITOR_CPPFLAGS@,$TRAY_MONITOR_CPPFLAGS,;t t
20016 s,@TRAY_MONITOR_LDFLAGS@,$TRAY_MONITOR_LDFLAGS,;t t
20017 s,@TRAY_MONITOR_DIR@,$TRAY_MONITOR_DIR,;t t
20018 s,@TTOOL_LDFLAGS@,$TTOOL_LDFLAGS,;t t
20019 s,@STATIC_FD@,$STATIC_FD,;t t
20020 s,@STATIC_SD@,$STATIC_SD,;t t
20021 s,@STATIC_DIR@,$STATIC_DIR,;t t
20022 s,@STATIC_CONS@,$STATIC_CONS,;t t
20023 s,@STATIC_GNOME_CONS@,$STATIC_GNOME_CONS,;t t
20024 s,@STATIC_WX_CONS@,$STATIC_WX_CONS,;t t
20025 s,@ALL_DIRS@,$ALL_DIRS,;t t
20026 s,@CONS_INC@,$CONS_INC,;t t
20027 s,@CONS_OBJ@,$CONS_OBJ,;t t
20028 s,@CONS_SRC@,$CONS_SRC,;t t
20029 s,@CONS_LIBS@,$CONS_LIBS,;t t
20030 s,@CONS_LDFLAGS@,$CONS_LDFLAGS,;t t
20031 s,@READLINE_SRC@,$READLINE_SRC,;t t
20032 s,@CDSTL@,$CDSTL,;t t
20033 s,@working_dir@,$working_dir,;t t
20034 s,@scriptdir@,$scriptdir,;t t
20035 s,@dump_email@,$dump_email,;t t
20036 s,@job_email@,$job_email,;t t
20037 s,@smtp_host@,$smtp_host,;t t
20038 s,@piddir@,$piddir,;t t
20039 s,@subsysdir@,$subsysdir,;t t
20040 s,@baseport@,$baseport,;t t
20041 s,@dir_port@,$dir_port,;t t
20042 s,@fd_port@,$fd_port,;t t
20043 s,@sd_port@,$sd_port,;t t
20044 s,@dir_password@,$dir_password,;t t
20045 s,@fd_password@,$fd_password,;t t
20046 s,@sd_password@,$sd_password,;t t
20047 s,@mon_dir_password@,$mon_dir_password,;t t
20048 s,@mon_fd_password@,$mon_fd_password,;t t
20049 s,@mon_sd_password@,$mon_sd_password,;t t
20050 s,@dir_user@,$dir_user,;t t
20051 s,@dir_group@,$dir_group,;t t
20052 s,@sd_user@,$sd_user,;t t
20053 s,@sd_group@,$sd_group,;t t
20054 s,@fd_user@,$fd_user,;t t
20055 s,@fd_group@,$fd_group,;t t
20056 s,@SBINPERM@,$SBINPERM,;t t
20057 s,@SQL_LFLAGS@,$SQL_LFLAGS,;t t
20058 s,@SQL_INCLUDE@,$SQL_INCLUDE,;t t
20059 s,@SQL_BINDIR@,$SQL_BINDIR,;t t
20060 s,@cats@,$cats,;t t
20061 s,@DB_NAME@,$DB_NAME,;t t
20062 s,@GETCONF@,$GETCONF,;t t
20063 s,@ac_ct_GETCONF@,$ac_ct_GETCONF,;t t
20064 s,@X_CFLAGS@,$X_CFLAGS,;t t
20065 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
20066 s,@X_LIBS@,$X_LIBS,;t t
20067 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
20068 s,@LIBOBJS@,$LIBOBJS,;t t
20069 s,@ALLOCA@,$ALLOCA,;t t
20070 s,@FDLIBS@,$FDLIBS,;t t
20071 s,@DEBUG@,$DEBUG,;t t
20072 s,@DINCLUDE@,$DINCLUDE,;t t
20073 s,@DLIB@,$DLIB,;t t
20074 s,@DB_LIBS@,$DB_LIBS,;t t
20075 s,@WCFLAGS@,$WCFLAGS,;t t
20076 s,@WLDFLAGS@,$WLDFLAGS,;t t
20077 s,@OBJLIST@,$OBJLIST,;t t
20078 s,@hostname@,$hostname,;t t
20079 s,@TAPEDRIVE@,$TAPEDRIVE,;t t
20080 s,@PSCMD@,$PSCMD,;t t
20081 s,@WIN32@,$WIN32,;t t
20082 s,@MACOSX@,$MACOSX,;t t
20083 s,@DISTNAME@,$DISTNAME,;t t
20084 s,@DISTVER@,$DISTVER,;t t
20085 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
20086 /@MCOMMON@/r $MCOMMON
20087 s,@MCOMMON@,,;t t
20088 CEOF
20089
20090 _ACEOF
20091
20092   cat >>$CONFIG_STATUS <<\_ACEOF
20093   # Split the substitutions into bite-sized pieces for seds with
20094   # small command number limits, like on Digital OSF/1 and HP-UX.
20095   ac_max_sed_lines=48
20096   ac_sed_frag=1 # Number of current file.
20097   ac_beg=1 # First line for current file.
20098   ac_end=$ac_max_sed_lines # Line after last line for current file.
20099   ac_more_lines=:
20100   ac_sed_cmds=
20101   while $ac_more_lines; do
20102     if test $ac_beg -gt 1; then
20103       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20104     else
20105       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20106     fi
20107     if test ! -s $tmp/subs.frag; then
20108       ac_more_lines=false
20109     else
20110       # The purpose of the label and of the branching condition is to
20111       # speed up the sed processing (if there are no `@' at all, there
20112       # is no need to browse any of the substitutions).
20113       # These are the two extra sed commands mentioned above.
20114       (echo ':t
20115   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
20116       if test -z "$ac_sed_cmds"; then
20117         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
20118       else
20119         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
20120       fi
20121       ac_sed_frag=`expr $ac_sed_frag + 1`
20122       ac_beg=$ac_end
20123       ac_end=`expr $ac_end + $ac_max_sed_lines`
20124     fi
20125   done
20126   if test -z "$ac_sed_cmds"; then
20127     ac_sed_cmds=cat
20128   fi
20129 fi # test -n "$CONFIG_FILES"
20130
20131 _ACEOF
20132 cat >>$CONFIG_STATUS <<\_ACEOF
20133 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
20134   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20135   case $ac_file in
20136   - | *:- | *:-:* ) # input from stdin
20137         cat >$tmp/stdin
20138         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20139         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20140   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20141         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20142   * )   ac_file_in=$ac_file.in ;;
20143   esac
20144
20145   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
20146   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20147 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20148          X"$ac_file" : 'X\(//\)[^/]' \| \
20149          X"$ac_file" : 'X\(//\)$' \| \
20150          X"$ac_file" : 'X\(/\)' \| \
20151          .     : '\(.\)' 2>/dev/null ||
20152 echo X"$ac_file" |
20153     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20154           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20155           /^X\(\/\/\)$/{ s//\1/; q; }
20156           /^X\(\/\).*/{ s//\1/; q; }
20157           s/.*/./; q'`
20158   { if $as_mkdir_p; then
20159     mkdir -p "$ac_dir"
20160   else
20161     as_dir="$ac_dir"
20162     as_dirs=
20163     while test ! -d "$as_dir"; do
20164       as_dirs="$as_dir $as_dirs"
20165       as_dir=`(dirname "$as_dir") 2>/dev/null ||
20166 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20167          X"$as_dir" : 'X\(//\)[^/]' \| \
20168          X"$as_dir" : 'X\(//\)$' \| \
20169          X"$as_dir" : 'X\(/\)' \| \
20170          .     : '\(.\)' 2>/dev/null ||
20171 echo X"$as_dir" |
20172     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20173           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20174           /^X\(\/\/\)$/{ s//\1/; q; }
20175           /^X\(\/\).*/{ s//\1/; q; }
20176           s/.*/./; q'`
20177     done
20178     test ! -n "$as_dirs" || mkdir $as_dirs
20179   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20180 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20181    { (exit 1); exit 1; }; }; }
20182
20183   ac_builddir=.
20184
20185 if test "$ac_dir" != .; then
20186   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20187   # A "../" for each directory in $ac_dir_suffix.
20188   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20189 else
20190   ac_dir_suffix= ac_top_builddir=
20191 fi
20192
20193 case $srcdir in
20194   .)  # No --srcdir option.  We are building in place.
20195     ac_srcdir=.
20196     if test -z "$ac_top_builddir"; then
20197        ac_top_srcdir=.
20198     else
20199        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20200     fi ;;
20201   [\\/]* | ?:[\\/]* )  # Absolute path.
20202     ac_srcdir=$srcdir$ac_dir_suffix;
20203     ac_top_srcdir=$srcdir ;;
20204   *) # Relative path.
20205     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20206     ac_top_srcdir=$ac_top_builddir$srcdir ;;
20207 esac
20208 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
20209 # absolute.
20210 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
20211 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
20212 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
20213 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
20214
20215
20216   case $INSTALL in
20217   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20218   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
20219   esac
20220
20221   if test x"$ac_file" != x-; then
20222     { echo "$as_me:$LINENO: creating $ac_file" >&5
20223 echo "$as_me: creating $ac_file" >&6;}
20224     rm -f "$ac_file"
20225   fi
20226   # Let's still pretend it is `configure' which instantiates (i.e., don't
20227   # use $as_me), people would be surprised to read:
20228   #    /* config.h.  Generated by config.status.  */
20229   if test x"$ac_file" = x-; then
20230     configure_input=
20231   else
20232     configure_input="$ac_file.  "
20233   fi
20234   configure_input=$configure_input"Generated from `echo $ac_file_in |
20235                                      sed 's,.*/,,'` by configure."
20236
20237   # First look for the input files in the build tree, otherwise in the
20238   # src tree.
20239   ac_file_inputs=`IFS=:
20240     for f in $ac_file_in; do
20241       case $f in
20242       -) echo $tmp/stdin ;;
20243       [\\/$]*)
20244          # Absolute (can't be DOS-style, as IFS=:)
20245          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20246 echo "$as_me: error: cannot find input file: $f" >&2;}
20247    { (exit 1); exit 1; }; }
20248          echo $f;;
20249       *) # Relative
20250          if test -f "$f"; then
20251            # Build tree
20252            echo $f
20253          elif test -f "$srcdir/$f"; then
20254            # Source tree
20255            echo $srcdir/$f
20256          else
20257            # /dev/null tree
20258            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20259 echo "$as_me: error: cannot find input file: $f" >&2;}
20260    { (exit 1); exit 1; }; }
20261          fi;;
20262       esac
20263     done` || { (exit 1); exit 1; }
20264 _ACEOF
20265 cat >>$CONFIG_STATUS <<_ACEOF
20266   sed "$ac_vpsub
20267 $extrasub
20268 _ACEOF
20269 cat >>$CONFIG_STATUS <<\_ACEOF
20270 :t
20271 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20272 s,@configure_input@,$configure_input,;t t
20273 s,@srcdir@,$ac_srcdir,;t t
20274 s,@abs_srcdir@,$ac_abs_srcdir,;t t
20275 s,@top_srcdir@,$ac_top_srcdir,;t t
20276 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
20277 s,@builddir@,$ac_builddir,;t t
20278 s,@abs_builddir@,$ac_abs_builddir,;t t
20279 s,@top_builddir@,$ac_top_builddir,;t t
20280 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
20281 s,@INSTALL@,$ac_INSTALL,;t t
20282 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
20283   rm -f $tmp/stdin
20284   if test x"$ac_file" != x-; then
20285     mv $tmp/out $ac_file
20286   else
20287     cat $tmp/out
20288     rm -f $tmp/out
20289   fi
20290
20291 done
20292 _ACEOF
20293 cat >>$CONFIG_STATUS <<\_ACEOF
20294
20295 #
20296 # CONFIG_HEADER section.
20297 #
20298
20299 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
20300 # NAME is the cpp macro being defined and VALUE is the value it is being given.
20301 #
20302 # ac_d sets the value in "#define NAME VALUE" lines.
20303 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
20304 ac_dB='[        ].*$,\1#\2'
20305 ac_dC=' '
20306 ac_dD=',;t'
20307 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
20308 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
20309 ac_uB='$,\1#\2define\3'
20310 ac_uC=' '
20311 ac_uD=',;t'
20312
20313 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
20314   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20315   case $ac_file in
20316   - | *:- | *:-:* ) # input from stdin
20317         cat >$tmp/stdin
20318         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20319         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20320   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20321         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20322   * )   ac_file_in=$ac_file.in ;;
20323   esac
20324
20325   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
20326 echo "$as_me: creating $ac_file" >&6;}
20327
20328   # First look for the input files in the build tree, otherwise in the
20329   # src tree.
20330   ac_file_inputs=`IFS=:
20331     for f in $ac_file_in; do
20332       case $f in
20333       -) echo $tmp/stdin ;;
20334       [\\/$]*)
20335          # Absolute (can't be DOS-style, as IFS=:)
20336          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20337 echo "$as_me: error: cannot find input file: $f" >&2;}
20338    { (exit 1); exit 1; }; }
20339          echo $f;;
20340       *) # Relative
20341          if test -f "$f"; then
20342            # Build tree
20343            echo $f
20344          elif test -f "$srcdir/$f"; then
20345            # Source tree
20346            echo $srcdir/$f
20347          else
20348            # /dev/null tree
20349            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20350 echo "$as_me: error: cannot find input file: $f" >&2;}
20351    { (exit 1); exit 1; }; }
20352          fi;;
20353       esac
20354     done` || { (exit 1); exit 1; }
20355   # Remove the trailing spaces.
20356   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
20357
20358 _ACEOF
20359
20360 # Transform confdefs.h into two sed scripts, `conftest.defines' and
20361 # `conftest.undefs', that substitutes the proper values into
20362 # config.h.in to produce config.h.  The first handles `#define'
20363 # templates, and the second `#undef' templates.
20364 # And first: Protect against being on the right side of a sed subst in
20365 # config.status.  Protect against being in an unquoted here document
20366 # in config.status.
20367 rm -f conftest.defines conftest.undefs
20368 # Using a here document instead of a string reduces the quoting nightmare.
20369 # Putting comments in sed scripts is not portable.
20370 #
20371 # `end' is used to avoid that the second main sed command (meant for
20372 # 0-ary CPP macros) applies to n-ary macro definitions.
20373 # See the Autoconf documentation for `clear'.
20374 cat >confdef2sed.sed <<\_ACEOF
20375 s/[\\&,]/\\&/g
20376 s,[\\$`],\\&,g
20377 t clear
20378 : clear
20379 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
20380 t end
20381 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
20382 : end
20383 _ACEOF
20384 # If some macros were called several times there might be several times
20385 # the same #defines, which is useless.  Nevertheless, we may not want to
20386 # sort them, since we want the *last* AC-DEFINE to be honored.
20387 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
20388 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
20389 rm -f confdef2sed.sed
20390
20391 # This sed command replaces #undef with comments.  This is necessary, for
20392 # example, in the case of _POSIX_SOURCE, which is predefined and required
20393 # on some systems where configure will not decide to define it.
20394 cat >>conftest.undefs <<\_ACEOF
20395 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
20396 _ACEOF
20397
20398 # Break up conftest.defines because some shells have a limit on the size
20399 # of here documents, and old seds have small limits too (100 cmds).
20400 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
20401 echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
20402 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
20403 echo '  :' >>$CONFIG_STATUS
20404 rm -f conftest.tail
20405 while grep . conftest.defines >/dev/null
20406 do
20407   # Write a limited-size here document to $tmp/defines.sed.
20408   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
20409   # Speed up: don't consider the non `#define' lines.
20410   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
20411   # Work around the forget-to-reset-the-flag bug.
20412   echo 't clr' >>$CONFIG_STATUS
20413   echo ': clr' >>$CONFIG_STATUS
20414   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
20415   echo 'CEOF
20416   sed -f $tmp/defines.sed $tmp/in >$tmp/out
20417   rm -f $tmp/in
20418   mv $tmp/out $tmp/in
20419 ' >>$CONFIG_STATUS
20420   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
20421   rm -f conftest.defines
20422   mv conftest.tail conftest.defines
20423 done
20424 rm -f conftest.defines
20425 echo '  fi # grep' >>$CONFIG_STATUS
20426 echo >>$CONFIG_STATUS
20427
20428 # Break up conftest.undefs because some shells have a limit on the size
20429 # of here documents, and old seds have small limits too (100 cmds).
20430 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
20431 rm -f conftest.tail
20432 while grep . conftest.undefs >/dev/null
20433 do
20434   # Write a limited-size here document to $tmp/undefs.sed.
20435   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
20436   # Speed up: don't consider the non `#undef'
20437   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
20438   # Work around the forget-to-reset-the-flag bug.
20439   echo 't clr' >>$CONFIG_STATUS
20440   echo ': clr' >>$CONFIG_STATUS
20441   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
20442   echo 'CEOF
20443   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
20444   rm -f $tmp/in
20445   mv $tmp/out $tmp/in
20446 ' >>$CONFIG_STATUS
20447   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
20448   rm -f conftest.undefs
20449   mv conftest.tail conftest.undefs
20450 done
20451 rm -f conftest.undefs
20452
20453 cat >>$CONFIG_STATUS <<\_ACEOF
20454   # Let's still pretend it is `configure' which instantiates (i.e., don't
20455   # use $as_me), people would be surprised to read:
20456   #    /* config.h.  Generated by config.status.  */
20457   if test x"$ac_file" = x-; then
20458     echo "/* Generated by configure.  */" >$tmp/config.h
20459   else
20460     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
20461   fi
20462   cat $tmp/in >>$tmp/config.h
20463   rm -f $tmp/in
20464   if test x"$ac_file" != x-; then
20465     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
20466       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20467 echo "$as_me: $ac_file is unchanged" >&6;}
20468     else
20469       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20470 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20471          X"$ac_file" : 'X\(//\)[^/]' \| \
20472          X"$ac_file" : 'X\(//\)$' \| \
20473          X"$ac_file" : 'X\(/\)' \| \
20474          .     : '\(.\)' 2>/dev/null ||
20475 echo X"$ac_file" |
20476     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20477           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20478           /^X\(\/\/\)$/{ s//\1/; q; }
20479           /^X\(\/\).*/{ s//\1/; q; }
20480           s/.*/./; q'`
20481       { if $as_mkdir_p; then
20482     mkdir -p "$ac_dir"
20483   else
20484     as_dir="$ac_dir"
20485     as_dirs=
20486     while test ! -d "$as_dir"; do
20487       as_dirs="$as_dir $as_dirs"
20488       as_dir=`(dirname "$as_dir") 2>/dev/null ||
20489 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20490          X"$as_dir" : 'X\(//\)[^/]' \| \
20491          X"$as_dir" : 'X\(//\)$' \| \
20492          X"$as_dir" : 'X\(/\)' \| \
20493          .     : '\(.\)' 2>/dev/null ||
20494 echo X"$as_dir" |
20495     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20496           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20497           /^X\(\/\/\)$/{ s//\1/; q; }
20498           /^X\(\/\).*/{ s//\1/; q; }
20499           s/.*/./; q'`
20500     done
20501     test ! -n "$as_dirs" || mkdir $as_dirs
20502   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20503 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20504    { (exit 1); exit 1; }; }; }
20505
20506       rm -f $ac_file
20507       mv $tmp/config.h $ac_file
20508     fi
20509   else
20510     cat $tmp/config.h
20511     rm -f $tmp/config.h
20512   fi
20513 done
20514 _ACEOF
20515 cat >>$CONFIG_STATUS <<\_ACEOF
20516
20517 #
20518 # CONFIG_COMMANDS section.
20519 #
20520 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
20521   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
20522   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
20523   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
20524 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20525          X"$ac_dest" : 'X\(//\)[^/]' \| \
20526          X"$ac_dest" : 'X\(//\)$' \| \
20527          X"$ac_dest" : 'X\(/\)' \| \
20528          .     : '\(.\)' 2>/dev/null ||
20529 echo X"$ac_dest" |
20530     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20531           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20532           /^X\(\/\/\)$/{ s//\1/; q; }
20533           /^X\(\/\).*/{ s//\1/; q; }
20534           s/.*/./; q'`
20535   ac_builddir=.
20536
20537 if test "$ac_dir" != .; then
20538   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20539   # A "../" for each directory in $ac_dir_suffix.
20540   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20541 else
20542   ac_dir_suffix= ac_top_builddir=
20543 fi
20544
20545 case $srcdir in
20546   .)  # No --srcdir option.  We are building in place.
20547     ac_srcdir=.
20548     if test -z "$ac_top_builddir"; then
20549        ac_top_srcdir=.
20550     else
20551        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20552     fi ;;
20553   [\\/]* | ?:[\\/]* )  # Absolute path.
20554     ac_srcdir=$srcdir$ac_dir_suffix;
20555     ac_top_srcdir=$srcdir ;;
20556   *) # Relative path.
20557     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20558     ac_top_srcdir=$ac_top_builddir$srcdir ;;
20559 esac
20560 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
20561 # absolute.
20562 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
20563 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
20564 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
20565 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
20566
20567
20568   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
20569 echo "$as_me: executing $ac_dest commands" >&6;}
20570   case $ac_dest in
20571     default ) (echo "Doing make of dependencies"; ${MAKE:-make} depend;)
20572  ;;
20573   esac
20574 done
20575 _ACEOF
20576
20577 cat >>$CONFIG_STATUS <<\_ACEOF
20578
20579 { (exit 0); exit 0; }
20580 _ACEOF
20581 chmod +x $CONFIG_STATUS
20582 ac_clean_files=$ac_clean_files_save
20583
20584
20585 # configure is writing to config.log, and then calls config.status.
20586 # config.status does its own redirection, appending to config.log.
20587 # Unfortunately, on DOS this fails, as config.log is still kept open
20588 # by configure, so config.status won't be able to write to it; its
20589 # output is simply discarded.  So we exec the FD to /dev/null,
20590 # effectively closing config.log, so it can be properly (re)opened and
20591 # appended to by config.status.  When coming back to configure, we
20592 # need to make the FD available again.
20593 if test "$no_create" != yes; then
20594   ac_cs_success=:
20595   ac_config_status_args=
20596   test "$silent" = yes &&
20597     ac_config_status_args="$ac_config_status_args --quiet"
20598   exec 5>/dev/null
20599   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20600   exec 5>>config.log
20601   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20602   # would make configure fail if this is the last instruction.
20603   $ac_cs_success || { (exit 1); exit 1; }
20604 fi
20605
20606
20607 cd scripts
20608 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
20609 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
20610 cd ..
20611
20612 c=src/cats
20613
20614 chmod 755 $c/create_bacula_database   $c/update_bacula_tables  $c/make_bacula_tables
20615 chmod 755 $c/grant_bacula_privileges  $c/drop_bacula_tables    $c/drop_bacula_database
20616
20617 chmod 755 $c/create_bdb_database      $c/update_bdb_tables     $c/make_bdb_tables
20618 chmod 755 $c/grant_bdb_privileges     $c/drop_bdb_tables       $c/drop_bdb_database
20619
20620 chmod 755 $c/create_mysql_database    $c/update_mysql_tables   $c/make_mysql_tables
20621 chmod 755 $c/grant_mysql_privileges   $c/drop_mysql_tables     $c/drop_mysql_database
20622
20623 chmod 755 $c/create_sqlite_database   $c/update_sqlite_tables  $c/make_sqlite_tables
20624 chmod 755 $c/grant_sqlite_privileges  $c/drop_sqlite_tables    $c/drop_sqlite_database
20625
20626 chmod 755 $c/create_postgresql_database  $c/update_postgresql_tables $c/make_postgresql_tables
20627 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables   $c/drop_postgresql_database
20628
20629 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
20630 chmod 755 $c/sqlite
20631 chmod 755 $c/mysql
20632
20633 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
20634    largefile_support="yes"
20635 fi
20636
20637 #
20638 # A whole lot of hand springs to get the compiler version.
20639 #  This is because gcc changed the output in version 3.0
20640 #
20641 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
20642 if test "x${CCVERSION}" = "x" ; then
20643   CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
20644 fi
20645 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
20646 if test x"${CXXVERSION}" = x ; then
20647   CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
20648 fi
20649
20650 if test "x${subsysdir}" = "x${sbindir}" ; then
20651    echo " "
20652    echo " "
20653    echo "You have set --sbindir and --with-subsys-dir"
20654    echo "  both equal to: ${subsysdir} "
20655    echo "  This is not permitted. Please reconfigure."
20656    echo " "
20657    echo "Aborting configuration ..."
20658    echo " "
20659    echo " "
20660    exit 1
20661 fi
20662
20663 if test "x${db_name}" = "xInternal" ; then
20664    echo " "
20665    echo " "
20666    echo "You have not specified either --enable-client-only or one of the"
20667    echo "  supported databases: MySQL, PostgreSQL, or SQLite".
20668    echo "  This is not permitted. Please reconfigure."
20669    echo " "
20670    echo "Aborting the configuration ..."
20671    echo " "
20672    echo " "
20673    exit 1
20674 fi
20675
20676 echo "
20677 Configuration on `date`:
20678
20679   Host:                       $host -- ${DISTNAME} ${DISTVER}
20680   Bacula version:             ${VERSION} (${DATE})
20681   Source code location:       ${srcdir}
20682   Install binaries:           ${sbindir}
20683   Install config files:       ${sysconfdir}
20684   Scripts directory:          ${scriptdir}
20685   Working directory:          ${working_dir}
20686   PID directory:              ${piddir}
20687   Subsys directory:           ${subsysdir}
20688   C Compiler:                 ${CC} ${CCVERSION}
20689   C++ Compiler:               ${CXX} ${CXXVERSION}
20690   Compiler flags:             ${WCFLAGS} ${CFLAGS}
20691   Linker flags:               ${WLDFLAGS} ${LDFLAGS}
20692   Libraries:                  ${LIBS}
20693   Statically Linked Tools:    ${support_static_tools}
20694   Statically Linked FD:       ${support_static_fd}
20695   Statically Linked SD:       ${support_static_sd}
20696   Statically Linked DIR:      ${support_static_dir}
20697   Statically Linked CONS:     ${support_static_cons}
20698   Database type:              ${db_name}
20699   Database lib:               ${DB_LIBS}
20700
20701   Job Output Email:           ${job_email}
20702   Traceback Email:            ${dump_email}
20703   SMTP Host Address:          ${smtp_host}
20704
20705   Director Port:              ${dir_port}
20706   File daemon Port:           ${fd_port}
20707   Storage daemon Port:        ${sd_port}
20708
20709   Director User:              ${dir_user}
20710   Director Group:             ${dir_group}
20711   Storage Daemon User:        ${sd_user}
20712   Storage DaemonGroup:        ${sd_group}
20713   File Daemon User:           ${fd_user}
20714   File Daemon Group:          ${fd_group}
20715
20716   SQL binaries Directory      ${SQL_BINDIR}
20717
20718   Large file support:         $largefile_support
20719   Bacula conio support:       ${got_conio} ${CONS_LIBS}
20720   readline support:           ${got_readline} ${PRTREADLINE_SRC}
20721   TCP Wrappers support:       ${TCPW_MSG}
20722   ZLIB support:               ${have_zlib}
20723   enable-smartalloc:          ${support_smartalloc}
20724   enable-gnome:               ${support_gnome} ${gnome_version}
20725   enable-wx-console:          ${support_wx_console}
20726   enable-tray-monitor:        ${support_tray_monitor}
20727   client-only:                ${build_client_only}
20728   ACL support:                ${have_acl}
20729
20730   " > config.out
20731
20732 cat config.out
20733
20734 # old stuff
20735 # cweb support:               ${got_cweb} ${CWEB_SRC}
20736   # gmp support:                      ${got_gmp} ${GMP_SRC}