]> git.sur5r.net Git - bacula/bacula/blob - bacula/configure
- Add make copy-static-fd to makefile in CDROM file to
[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       ac_cv_sys_file_offset_bits=64
8265       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
8266         case "$ac_flag" in
8267         -D_FILE_OFFSET_BITS)
8268           ac_cv_sys_file_offset_bits=1 ;;
8269         -D_FILE_OFFSET_BITS=*)
8270           ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
8271         esac
8272       done
8273
8274 fi
8275 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
8276 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
8277    if test "$ac_cv_sys_file_offset_bits" != no; then
8278
8279 cat >>confdefs.h <<_ACEOF
8280 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
8281 _ACEOF
8282
8283    fi
8284      echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
8285 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6
8286 if test "${ac_cv_sys_largefile_source+set}" = set; then
8287   echo $ECHO_N "(cached) $ECHO_C" >&6
8288 else
8289   ac_cv_sys_largefile_source=no
8290       ac_cv_sys_largefile_source=1
8291       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
8292         case "$ac_flag" in
8293         -D_LARGEFILE_SOURCE)
8294           ac_cv_sys_largefile_source=1 ;;
8295         -D_LARGEFILE_SOURCE=*)
8296           ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
8297         esac
8298       done
8299
8300 fi
8301 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
8302 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
8303    if test "$ac_cv_sys_largefile_source" != no; then
8304
8305 cat >>confdefs.h <<_ACEOF
8306 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
8307 _ACEOF
8308
8309    fi
8310      echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
8311 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6
8312 if test "${ac_cv_sys_large_files+set}" = set; then
8313   echo $ECHO_N "(cached) $ECHO_C" >&6
8314 else
8315   ac_cv_sys_large_files=no
8316       ac_cv_sys_large_files=1
8317       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
8318         case "$ac_flag" in
8319         -D_LARGE_FILES)
8320           ac_cv_sys_large_files=1 ;;
8321         -D_LARGE_FILES=*)
8322           ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
8323         esac
8324       done
8325
8326 fi
8327 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
8328 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
8329    if test "$ac_cv_sys_large_files" != no; then
8330
8331 cat >>confdefs.h <<_ACEOF
8332 #define _LARGE_FILES $ac_cv_sys_large_files
8333 _ACEOF
8334
8335    fi
8336    fi
8337
8338
8339
8340 echo "$as_me:$LINENO: checking for X" >&5
8341 echo $ECHO_N "checking for X... $ECHO_C" >&6
8342
8343
8344 # Check whether --with-x or --without-x was given.
8345 if test "${with_x+set}" = set; then
8346   withval="$with_x"
8347
8348 fi;
8349 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8350 if test "x$with_x" = xno; then
8351   # The user explicitly disabled X.
8352   have_x=disabled
8353 else
8354   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
8355     # Both variables are already set.
8356     have_x=yes
8357   else
8358     if test "${ac_cv_have_x+set}" = set; then
8359   echo $ECHO_N "(cached) $ECHO_C" >&6
8360 else
8361   # One or both of the vars are not set, and there is no cached value.
8362 ac_x_includes=no ac_x_libraries=no
8363 rm -fr conftest.dir
8364 if mkdir conftest.dir; then
8365   cd conftest.dir
8366   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
8367   cat >Imakefile <<'_ACEOF'
8368 acfindx:
8369         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
8370 _ACEOF
8371   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
8372     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8373     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
8374     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8375     for ac_extension in a so sl; do
8376       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
8377          test -f $ac_im_libdir/libX11.$ac_extension; then
8378         ac_im_usrlibdir=$ac_im_libdir; break
8379       fi
8380     done
8381     # Screen out bogus values from the imake configuration.  They are
8382     # bogus both because they are the default anyway, and because
8383     # using them would break gcc on systems where it needs fixed includes.
8384     case $ac_im_incroot in
8385         /usr/include) ;;
8386         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8387     esac
8388     case $ac_im_usrlibdir in
8389         /usr/lib | /lib) ;;
8390         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8391     esac
8392   fi
8393   cd ..
8394   rm -fr conftest.dir
8395 fi
8396
8397 # Standard set of common directories for X headers.
8398 # Check X11 before X11Rn because it is often a symlink to the current release.
8399 ac_x_header_dirs='
8400 /usr/X11/include
8401 /usr/X11R6/include
8402 /usr/X11R5/include
8403 /usr/X11R4/include
8404
8405 /usr/include/X11
8406 /usr/include/X11R6
8407 /usr/include/X11R5
8408 /usr/include/X11R4
8409
8410 /usr/local/X11/include
8411 /usr/local/X11R6/include
8412 /usr/local/X11R5/include
8413 /usr/local/X11R4/include
8414
8415 /usr/local/include/X11
8416 /usr/local/include/X11R6
8417 /usr/local/include/X11R5
8418 /usr/local/include/X11R4
8419
8420 /usr/X386/include
8421 /usr/x386/include
8422 /usr/XFree86/include/X11
8423
8424 /usr/include
8425 /usr/local/include
8426 /usr/unsupported/include
8427 /usr/athena/include
8428 /usr/local/x11r5/include
8429 /usr/lpp/Xamples/include
8430
8431 /usr/openwin/include
8432 /usr/openwin/share/include'
8433
8434 if test "$ac_x_includes" = no; then
8435   # Guess where to find include files, by looking for Intrinsic.h.
8436   # First, try using that file with no special directory specified.
8437   cat >conftest.$ac_ext <<_ACEOF
8438 #line $LINENO "configure"
8439 /* confdefs.h.  */
8440 _ACEOF
8441 cat confdefs.h >>conftest.$ac_ext
8442 cat >>conftest.$ac_ext <<_ACEOF
8443 /* end confdefs.h.  */
8444 #include <X11/Intrinsic.h>
8445 _ACEOF
8446 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8447   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8448   ac_status=$?
8449   grep -v '^ *+' conftest.er1 >conftest.err
8450   rm -f conftest.er1
8451   cat conftest.err >&5
8452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8453   (exit $ac_status); } >/dev/null; then
8454   if test -s conftest.err; then
8455     ac_cpp_err=$ac_c_preproc_warn_flag
8456   else
8457     ac_cpp_err=
8458   fi
8459 else
8460   ac_cpp_err=yes
8461 fi
8462 if test -z "$ac_cpp_err"; then
8463   # We can compile using X headers with no special include directory.
8464 ac_x_includes=
8465 else
8466   echo "$as_me: failed program was:" >&5
8467 sed 's/^/| /' conftest.$ac_ext >&5
8468
8469   for ac_dir in $ac_x_header_dirs; do
8470   if test -r "$ac_dir/X11/Intrinsic.h"; then
8471     ac_x_includes=$ac_dir
8472     break
8473   fi
8474 done
8475 fi
8476 rm -f conftest.err conftest.$ac_ext
8477 fi # $ac_x_includes = no
8478
8479 if test "$ac_x_libraries" = no; then
8480   # Check for the libraries.
8481   # See if we find them without any special options.
8482   # Don't add to $LIBS permanently.
8483   ac_save_LIBS=$LIBS
8484   LIBS="-lXt $LIBS"
8485   cat >conftest.$ac_ext <<_ACEOF
8486 #line $LINENO "configure"
8487 /* confdefs.h.  */
8488 _ACEOF
8489 cat confdefs.h >>conftest.$ac_ext
8490 cat >>conftest.$ac_ext <<_ACEOF
8491 /* end confdefs.h.  */
8492 #include <X11/Intrinsic.h>
8493 int
8494 main ()
8495 {
8496 XtMalloc (0)
8497   ;
8498   return 0;
8499 }
8500 _ACEOF
8501 rm -f conftest.$ac_objext conftest$ac_exeext
8502 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8503   (eval $ac_link) 2>&5
8504   ac_status=$?
8505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8506   (exit $ac_status); } &&
8507          { ac_try='test -s conftest$ac_exeext'
8508   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8509   (eval $ac_try) 2>&5
8510   ac_status=$?
8511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8512   (exit $ac_status); }; }; then
8513   LIBS=$ac_save_LIBS
8514 # We can link X programs with no special library path.
8515 ac_x_libraries=
8516 else
8517   echo "$as_me: failed program was:" >&5
8518 sed 's/^/| /' conftest.$ac_ext >&5
8519
8520 LIBS=$ac_save_LIBS
8521 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8522 do
8523   # Don't even attempt the hair of trying to link an X program!
8524   for ac_extension in a so sl; do
8525     if test -r $ac_dir/libXt.$ac_extension; then
8526       ac_x_libraries=$ac_dir
8527       break 2
8528     fi
8529   done
8530 done
8531 fi
8532 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8533 fi # $ac_x_libraries = no
8534
8535 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
8536   # Didn't find X anywhere.  Cache the known absence of X.
8537   ac_cv_have_x="have_x=no"
8538 else
8539   # Record where we found X for the cache.
8540   ac_cv_have_x="have_x=yes \
8541                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8542 fi
8543 fi
8544
8545   fi
8546   eval "$ac_cv_have_x"
8547 fi # $with_x != no
8548
8549 if test "$have_x" != yes; then
8550   echo "$as_me:$LINENO: result: $have_x" >&5
8551 echo "${ECHO_T}$have_x" >&6
8552   no_x=yes
8553 else
8554   # If each of the values was on the command line, it overrides each guess.
8555   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8556   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8557   # Update the cache value to reflect the command line values.
8558   ac_cv_have_x="have_x=yes \
8559                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8560   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
8561 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
8562 fi
8563
8564 if test "$no_x" = yes; then
8565   # Not all programs may use this symbol, but it does not hurt to define it.
8566
8567 cat >>confdefs.h <<\_ACEOF
8568 #define X_DISPLAY_MISSING 1
8569 _ACEOF
8570
8571   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
8572 else
8573   if test -n "$x_includes"; then
8574     X_CFLAGS="$X_CFLAGS -I$x_includes"
8575   fi
8576
8577   # It would also be nice to do this for all -L options, not just this one.
8578   if test -n "$x_libraries"; then
8579     X_LIBS="$X_LIBS -L$x_libraries"
8580     # For Solaris; some versions of Sun CC require a space after -R and
8581     # others require no space.  Words are not sufficient . . . .
8582     case `(uname -sr) 2>/dev/null` in
8583     "SunOS 5"*)
8584       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
8585 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
8586       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
8587       cat >conftest.$ac_ext <<_ACEOF
8588 #line $LINENO "configure"
8589 /* confdefs.h.  */
8590 _ACEOF
8591 cat confdefs.h >>conftest.$ac_ext
8592 cat >>conftest.$ac_ext <<_ACEOF
8593 /* end confdefs.h.  */
8594
8595 int
8596 main ()
8597 {
8598
8599   ;
8600   return 0;
8601 }
8602 _ACEOF
8603 rm -f conftest.$ac_objext conftest$ac_exeext
8604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8605   (eval $ac_link) 2>&5
8606   ac_status=$?
8607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8608   (exit $ac_status); } &&
8609          { ac_try='test -s conftest$ac_exeext'
8610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8611   (eval $ac_try) 2>&5
8612   ac_status=$?
8613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8614   (exit $ac_status); }; }; then
8615   ac_R_nospace=yes
8616 else
8617   echo "$as_me: failed program was:" >&5
8618 sed 's/^/| /' conftest.$ac_ext >&5
8619
8620 ac_R_nospace=no
8621 fi
8622 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8623       if test $ac_R_nospace = yes; then
8624         echo "$as_me:$LINENO: result: no" >&5
8625 echo "${ECHO_T}no" >&6
8626         X_LIBS="$X_LIBS -R$x_libraries"
8627       else
8628         LIBS="$ac_xsave_LIBS -R $x_libraries"
8629         cat >conftest.$ac_ext <<_ACEOF
8630 #line $LINENO "configure"
8631 /* confdefs.h.  */
8632 _ACEOF
8633 cat confdefs.h >>conftest.$ac_ext
8634 cat >>conftest.$ac_ext <<_ACEOF
8635 /* end confdefs.h.  */
8636
8637 int
8638 main ()
8639 {
8640
8641   ;
8642   return 0;
8643 }
8644 _ACEOF
8645 rm -f conftest.$ac_objext conftest$ac_exeext
8646 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8647   (eval $ac_link) 2>&5
8648   ac_status=$?
8649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8650   (exit $ac_status); } &&
8651          { ac_try='test -s conftest$ac_exeext'
8652   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8653   (eval $ac_try) 2>&5
8654   ac_status=$?
8655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8656   (exit $ac_status); }; }; then
8657   ac_R_space=yes
8658 else
8659   echo "$as_me: failed program was:" >&5
8660 sed 's/^/| /' conftest.$ac_ext >&5
8661
8662 ac_R_space=no
8663 fi
8664 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8665         if test $ac_R_space = yes; then
8666           echo "$as_me:$LINENO: result: yes" >&5
8667 echo "${ECHO_T}yes" >&6
8668           X_LIBS="$X_LIBS -R $x_libraries"
8669         else
8670           echo "$as_me:$LINENO: result: neither works" >&5
8671 echo "${ECHO_T}neither works" >&6
8672         fi
8673       fi
8674       LIBS=$ac_xsave_LIBS
8675     esac
8676   fi
8677
8678   # Check for system-dependent libraries X programs must link with.
8679   # Do this before checking for the system-independent R6 libraries
8680   # (-lICE), since we may need -lsocket or whatever for X linking.
8681
8682   if test "$ISC" = yes; then
8683     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
8684   else
8685     # Martyn Johnson says this is needed for Ultrix, if the X
8686     # libraries were built with DECnet support.  And Karl Berry says
8687     # the Alpha needs dnet_stub (dnet does not exist).
8688     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
8689     cat >conftest.$ac_ext <<_ACEOF
8690 #line $LINENO "configure"
8691 /* confdefs.h.  */
8692 _ACEOF
8693 cat confdefs.h >>conftest.$ac_ext
8694 cat >>conftest.$ac_ext <<_ACEOF
8695 /* end confdefs.h.  */
8696
8697 /* Override any gcc2 internal prototype to avoid an error.  */
8698 #ifdef __cplusplus
8699 extern "C"
8700 #endif
8701 /* We use char because int might match the return type of a gcc2
8702    builtin and then its argument prototype would still apply.  */
8703 char XOpenDisplay ();
8704 int
8705 main ()
8706 {
8707 XOpenDisplay ();
8708   ;
8709   return 0;
8710 }
8711 _ACEOF
8712 rm -f conftest.$ac_objext conftest$ac_exeext
8713 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8714   (eval $ac_link) 2>&5
8715   ac_status=$?
8716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8717   (exit $ac_status); } &&
8718          { ac_try='test -s conftest$ac_exeext'
8719   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8720   (eval $ac_try) 2>&5
8721   ac_status=$?
8722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8723   (exit $ac_status); }; }; then
8724   :
8725 else
8726   echo "$as_me: failed program was:" >&5
8727 sed 's/^/| /' conftest.$ac_ext >&5
8728
8729 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
8730 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
8731 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
8732   echo $ECHO_N "(cached) $ECHO_C" >&6
8733 else
8734   ac_check_lib_save_LIBS=$LIBS
8735 LIBS="-ldnet  $LIBS"
8736 cat >conftest.$ac_ext <<_ACEOF
8737 #line $LINENO "configure"
8738 /* confdefs.h.  */
8739 _ACEOF
8740 cat confdefs.h >>conftest.$ac_ext
8741 cat >>conftest.$ac_ext <<_ACEOF
8742 /* end confdefs.h.  */
8743
8744 /* Override any gcc2 internal prototype to avoid an error.  */
8745 #ifdef __cplusplus
8746 extern "C"
8747 #endif
8748 /* We use char because int might match the return type of a gcc2
8749    builtin and then its argument prototype would still apply.  */
8750 char dnet_ntoa ();
8751 int
8752 main ()
8753 {
8754 dnet_ntoa ();
8755   ;
8756   return 0;
8757 }
8758 _ACEOF
8759 rm -f conftest.$ac_objext conftest$ac_exeext
8760 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8761   (eval $ac_link) 2>&5
8762   ac_status=$?
8763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8764   (exit $ac_status); } &&
8765          { ac_try='test -s conftest$ac_exeext'
8766   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8767   (eval $ac_try) 2>&5
8768   ac_status=$?
8769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8770   (exit $ac_status); }; }; then
8771   ac_cv_lib_dnet_dnet_ntoa=yes
8772 else
8773   echo "$as_me: failed program was:" >&5
8774 sed 's/^/| /' conftest.$ac_ext >&5
8775
8776 ac_cv_lib_dnet_dnet_ntoa=no
8777 fi
8778 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8779 LIBS=$ac_check_lib_save_LIBS
8780 fi
8781 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8782 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
8783 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
8784   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
8785 fi
8786
8787     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
8788       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
8789 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
8790 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
8791   echo $ECHO_N "(cached) $ECHO_C" >&6
8792 else
8793   ac_check_lib_save_LIBS=$LIBS
8794 LIBS="-ldnet_stub  $LIBS"
8795 cat >conftest.$ac_ext <<_ACEOF
8796 #line $LINENO "configure"
8797 /* confdefs.h.  */
8798 _ACEOF
8799 cat confdefs.h >>conftest.$ac_ext
8800 cat >>conftest.$ac_ext <<_ACEOF
8801 /* end confdefs.h.  */
8802
8803 /* Override any gcc2 internal prototype to avoid an error.  */
8804 #ifdef __cplusplus
8805 extern "C"
8806 #endif
8807 /* We use char because int might match the return type of a gcc2
8808    builtin and then its argument prototype would still apply.  */
8809 char dnet_ntoa ();
8810 int
8811 main ()
8812 {
8813 dnet_ntoa ();
8814   ;
8815   return 0;
8816 }
8817 _ACEOF
8818 rm -f conftest.$ac_objext conftest$ac_exeext
8819 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8820   (eval $ac_link) 2>&5
8821   ac_status=$?
8822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8823   (exit $ac_status); } &&
8824          { ac_try='test -s conftest$ac_exeext'
8825   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8826   (eval $ac_try) 2>&5
8827   ac_status=$?
8828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8829   (exit $ac_status); }; }; then
8830   ac_cv_lib_dnet_stub_dnet_ntoa=yes
8831 else
8832   echo "$as_me: failed program was:" >&5
8833 sed 's/^/| /' conftest.$ac_ext >&5
8834
8835 ac_cv_lib_dnet_stub_dnet_ntoa=no
8836 fi
8837 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8838 LIBS=$ac_check_lib_save_LIBS
8839 fi
8840 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
8841 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
8842 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
8843   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
8844 fi
8845
8846     fi
8847 fi
8848 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8849     LIBS="$ac_xsave_LIBS"
8850
8851     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
8852     # to get the SysV transport functions.
8853     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
8854     # needs -lnsl.
8855     # The nsl library prevents programs from opening the X display
8856     # on Irix 5.2, according to T.E. Dickey.
8857     # The functions gethostbyname, getservbyname, and inet_addr are
8858     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
8859     echo "$as_me:$LINENO: checking for gethostbyname" >&5
8860 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
8861 if test "${ac_cv_func_gethostbyname+set}" = set; then
8862   echo $ECHO_N "(cached) $ECHO_C" >&6
8863 else
8864   cat >conftest.$ac_ext <<_ACEOF
8865 #line $LINENO "configure"
8866 /* confdefs.h.  */
8867 _ACEOF
8868 cat confdefs.h >>conftest.$ac_ext
8869 cat >>conftest.$ac_ext <<_ACEOF
8870 /* end confdefs.h.  */
8871 /* System header to define __stub macros and hopefully few prototypes,
8872     which can conflict with char gethostbyname (); below.
8873     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8874     <limits.h> exists even on freestanding compilers.  */
8875 #ifdef __STDC__
8876 # include <limits.h>
8877 #else
8878 # include <assert.h>
8879 #endif
8880 /* Override any gcc2 internal prototype to avoid an error.  */
8881 #ifdef __cplusplus
8882 extern "C"
8883 {
8884 #endif
8885 /* We use char because int might match the return type of a gcc2
8886    builtin and then its argument prototype would still apply.  */
8887 char gethostbyname ();
8888 /* The GNU C library defines this for functions which it implements
8889     to always fail with ENOSYS.  Some functions are actually named
8890     something starting with __ and the normal name is an alias.  */
8891 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
8892 choke me
8893 #else
8894 char (*f) () = gethostbyname;
8895 #endif
8896 #ifdef __cplusplus
8897 }
8898 #endif
8899
8900 int
8901 main ()
8902 {
8903 return f != gethostbyname;
8904   ;
8905   return 0;
8906 }
8907 _ACEOF
8908 rm -f conftest.$ac_objext conftest$ac_exeext
8909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8910   (eval $ac_link) 2>&5
8911   ac_status=$?
8912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8913   (exit $ac_status); } &&
8914          { ac_try='test -s conftest$ac_exeext'
8915   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8916   (eval $ac_try) 2>&5
8917   ac_status=$?
8918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8919   (exit $ac_status); }; }; then
8920   ac_cv_func_gethostbyname=yes
8921 else
8922   echo "$as_me: failed program was:" >&5
8923 sed 's/^/| /' conftest.$ac_ext >&5
8924
8925 ac_cv_func_gethostbyname=no
8926 fi
8927 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8928 fi
8929 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
8930 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
8931
8932     if test $ac_cv_func_gethostbyname = no; then
8933       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
8934 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
8935 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
8936   echo $ECHO_N "(cached) $ECHO_C" >&6
8937 else
8938   ac_check_lib_save_LIBS=$LIBS
8939 LIBS="-lnsl  $LIBS"
8940 cat >conftest.$ac_ext <<_ACEOF
8941 #line $LINENO "configure"
8942 /* confdefs.h.  */
8943 _ACEOF
8944 cat confdefs.h >>conftest.$ac_ext
8945 cat >>conftest.$ac_ext <<_ACEOF
8946 /* end confdefs.h.  */
8947
8948 /* Override any gcc2 internal prototype to avoid an error.  */
8949 #ifdef __cplusplus
8950 extern "C"
8951 #endif
8952 /* We use char because int might match the return type of a gcc2
8953    builtin and then its argument prototype would still apply.  */
8954 char gethostbyname ();
8955 int
8956 main ()
8957 {
8958 gethostbyname ();
8959   ;
8960   return 0;
8961 }
8962 _ACEOF
8963 rm -f conftest.$ac_objext conftest$ac_exeext
8964 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8965   (eval $ac_link) 2>&5
8966   ac_status=$?
8967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8968   (exit $ac_status); } &&
8969          { ac_try='test -s conftest$ac_exeext'
8970   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8971   (eval $ac_try) 2>&5
8972   ac_status=$?
8973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8974   (exit $ac_status); }; }; then
8975   ac_cv_lib_nsl_gethostbyname=yes
8976 else
8977   echo "$as_me: failed program was:" >&5
8978 sed 's/^/| /' conftest.$ac_ext >&5
8979
8980 ac_cv_lib_nsl_gethostbyname=no
8981 fi
8982 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8983 LIBS=$ac_check_lib_save_LIBS
8984 fi
8985 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
8986 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
8987 if test $ac_cv_lib_nsl_gethostbyname = yes; then
8988   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
8989 fi
8990
8991       if test $ac_cv_lib_nsl_gethostbyname = no; then
8992         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
8993 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
8994 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
8995   echo $ECHO_N "(cached) $ECHO_C" >&6
8996 else
8997   ac_check_lib_save_LIBS=$LIBS
8998 LIBS="-lbsd  $LIBS"
8999 cat >conftest.$ac_ext <<_ACEOF
9000 #line $LINENO "configure"
9001 /* confdefs.h.  */
9002 _ACEOF
9003 cat confdefs.h >>conftest.$ac_ext
9004 cat >>conftest.$ac_ext <<_ACEOF
9005 /* end confdefs.h.  */
9006
9007 /* Override any gcc2 internal prototype to avoid an error.  */
9008 #ifdef __cplusplus
9009 extern "C"
9010 #endif
9011 /* We use char because int might match the return type of a gcc2
9012    builtin and then its argument prototype would still apply.  */
9013 char gethostbyname ();
9014 int
9015 main ()
9016 {
9017 gethostbyname ();
9018   ;
9019   return 0;
9020 }
9021 _ACEOF
9022 rm -f conftest.$ac_objext conftest$ac_exeext
9023 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9024   (eval $ac_link) 2>&5
9025   ac_status=$?
9026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9027   (exit $ac_status); } &&
9028          { ac_try='test -s conftest$ac_exeext'
9029   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9030   (eval $ac_try) 2>&5
9031   ac_status=$?
9032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9033   (exit $ac_status); }; }; then
9034   ac_cv_lib_bsd_gethostbyname=yes
9035 else
9036   echo "$as_me: failed program was:" >&5
9037 sed 's/^/| /' conftest.$ac_ext >&5
9038
9039 ac_cv_lib_bsd_gethostbyname=no
9040 fi
9041 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9042 LIBS=$ac_check_lib_save_LIBS
9043 fi
9044 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
9045 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
9046 if test $ac_cv_lib_bsd_gethostbyname = yes; then
9047   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
9048 fi
9049
9050       fi
9051     fi
9052
9053     # lieder@skyler.mavd.honeywell.com says without -lsocket,
9054     # socket/setsockopt and other routines are undefined under SCO ODT
9055     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
9056     # on later versions), says Simon Leinen: it contains gethostby*
9057     # variants that don't use the name server (or something).  -lsocket
9058     # must be given before -lnsl if both are needed.  We assume that
9059     # if connect needs -lnsl, so does gethostbyname.
9060     echo "$as_me:$LINENO: checking for connect" >&5
9061 echo $ECHO_N "checking for connect... $ECHO_C" >&6
9062 if test "${ac_cv_func_connect+set}" = set; then
9063   echo $ECHO_N "(cached) $ECHO_C" >&6
9064 else
9065   cat >conftest.$ac_ext <<_ACEOF
9066 #line $LINENO "configure"
9067 /* confdefs.h.  */
9068 _ACEOF
9069 cat confdefs.h >>conftest.$ac_ext
9070 cat >>conftest.$ac_ext <<_ACEOF
9071 /* end confdefs.h.  */
9072 /* System header to define __stub macros and hopefully few prototypes,
9073     which can conflict with char connect (); below.
9074     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9075     <limits.h> exists even on freestanding compilers.  */
9076 #ifdef __STDC__
9077 # include <limits.h>
9078 #else
9079 # include <assert.h>
9080 #endif
9081 /* Override any gcc2 internal prototype to avoid an error.  */
9082 #ifdef __cplusplus
9083 extern "C"
9084 {
9085 #endif
9086 /* We use char because int might match the return type of a gcc2
9087    builtin and then its argument prototype would still apply.  */
9088 char connect ();
9089 /* The GNU C library defines this for functions which it implements
9090     to always fail with ENOSYS.  Some functions are actually named
9091     something starting with __ and the normal name is an alias.  */
9092 #if defined (__stub_connect) || defined (__stub___connect)
9093 choke me
9094 #else
9095 char (*f) () = connect;
9096 #endif
9097 #ifdef __cplusplus
9098 }
9099 #endif
9100
9101 int
9102 main ()
9103 {
9104 return f != connect;
9105   ;
9106   return 0;
9107 }
9108 _ACEOF
9109 rm -f conftest.$ac_objext conftest$ac_exeext
9110 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9111   (eval $ac_link) 2>&5
9112   ac_status=$?
9113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9114   (exit $ac_status); } &&
9115          { ac_try='test -s conftest$ac_exeext'
9116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9117   (eval $ac_try) 2>&5
9118   ac_status=$?
9119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9120   (exit $ac_status); }; }; then
9121   ac_cv_func_connect=yes
9122 else
9123   echo "$as_me: failed program was:" >&5
9124 sed 's/^/| /' conftest.$ac_ext >&5
9125
9126 ac_cv_func_connect=no
9127 fi
9128 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9129 fi
9130 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
9131 echo "${ECHO_T}$ac_cv_func_connect" >&6
9132
9133     if test $ac_cv_func_connect = no; then
9134       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
9135 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
9136 if test "${ac_cv_lib_socket_connect+set}" = set; then
9137   echo $ECHO_N "(cached) $ECHO_C" >&6
9138 else
9139   ac_check_lib_save_LIBS=$LIBS
9140 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
9141 cat >conftest.$ac_ext <<_ACEOF
9142 #line $LINENO "configure"
9143 /* confdefs.h.  */
9144 _ACEOF
9145 cat confdefs.h >>conftest.$ac_ext
9146 cat >>conftest.$ac_ext <<_ACEOF
9147 /* end confdefs.h.  */
9148
9149 /* Override any gcc2 internal prototype to avoid an error.  */
9150 #ifdef __cplusplus
9151 extern "C"
9152 #endif
9153 /* We use char because int might match the return type of a gcc2
9154    builtin and then its argument prototype would still apply.  */
9155 char connect ();
9156 int
9157 main ()
9158 {
9159 connect ();
9160   ;
9161   return 0;
9162 }
9163 _ACEOF
9164 rm -f conftest.$ac_objext conftest$ac_exeext
9165 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9166   (eval $ac_link) 2>&5
9167   ac_status=$?
9168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9169   (exit $ac_status); } &&
9170          { ac_try='test -s conftest$ac_exeext'
9171   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9172   (eval $ac_try) 2>&5
9173   ac_status=$?
9174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9175   (exit $ac_status); }; }; then
9176   ac_cv_lib_socket_connect=yes
9177 else
9178   echo "$as_me: failed program was:" >&5
9179 sed 's/^/| /' conftest.$ac_ext >&5
9180
9181 ac_cv_lib_socket_connect=no
9182 fi
9183 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9184 LIBS=$ac_check_lib_save_LIBS
9185 fi
9186 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
9187 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
9188 if test $ac_cv_lib_socket_connect = yes; then
9189   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
9190 fi
9191
9192     fi
9193
9194     # Guillermo Gomez says -lposix is necessary on A/UX.
9195     echo "$as_me:$LINENO: checking for remove" >&5
9196 echo $ECHO_N "checking for remove... $ECHO_C" >&6
9197 if test "${ac_cv_func_remove+set}" = set; then
9198   echo $ECHO_N "(cached) $ECHO_C" >&6
9199 else
9200   cat >conftest.$ac_ext <<_ACEOF
9201 #line $LINENO "configure"
9202 /* confdefs.h.  */
9203 _ACEOF
9204 cat confdefs.h >>conftest.$ac_ext
9205 cat >>conftest.$ac_ext <<_ACEOF
9206 /* end confdefs.h.  */
9207 /* System header to define __stub macros and hopefully few prototypes,
9208     which can conflict with char remove (); below.
9209     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9210     <limits.h> exists even on freestanding compilers.  */
9211 #ifdef __STDC__
9212 # include <limits.h>
9213 #else
9214 # include <assert.h>
9215 #endif
9216 /* Override any gcc2 internal prototype to avoid an error.  */
9217 #ifdef __cplusplus
9218 extern "C"
9219 {
9220 #endif
9221 /* We use char because int might match the return type of a gcc2
9222    builtin and then its argument prototype would still apply.  */
9223 char remove ();
9224 /* The GNU C library defines this for functions which it implements
9225     to always fail with ENOSYS.  Some functions are actually named
9226     something starting with __ and the normal name is an alias.  */
9227 #if defined (__stub_remove) || defined (__stub___remove)
9228 choke me
9229 #else
9230 char (*f) () = remove;
9231 #endif
9232 #ifdef __cplusplus
9233 }
9234 #endif
9235
9236 int
9237 main ()
9238 {
9239 return f != remove;
9240   ;
9241   return 0;
9242 }
9243 _ACEOF
9244 rm -f conftest.$ac_objext conftest$ac_exeext
9245 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9246   (eval $ac_link) 2>&5
9247   ac_status=$?
9248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9249   (exit $ac_status); } &&
9250          { ac_try='test -s conftest$ac_exeext'
9251   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9252   (eval $ac_try) 2>&5
9253   ac_status=$?
9254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9255   (exit $ac_status); }; }; then
9256   ac_cv_func_remove=yes
9257 else
9258   echo "$as_me: failed program was:" >&5
9259 sed 's/^/| /' conftest.$ac_ext >&5
9260
9261 ac_cv_func_remove=no
9262 fi
9263 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9264 fi
9265 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
9266 echo "${ECHO_T}$ac_cv_func_remove" >&6
9267
9268     if test $ac_cv_func_remove = no; then
9269       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
9270 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
9271 if test "${ac_cv_lib_posix_remove+set}" = set; then
9272   echo $ECHO_N "(cached) $ECHO_C" >&6
9273 else
9274   ac_check_lib_save_LIBS=$LIBS
9275 LIBS="-lposix  $LIBS"
9276 cat >conftest.$ac_ext <<_ACEOF
9277 #line $LINENO "configure"
9278 /* confdefs.h.  */
9279 _ACEOF
9280 cat confdefs.h >>conftest.$ac_ext
9281 cat >>conftest.$ac_ext <<_ACEOF
9282 /* end confdefs.h.  */
9283
9284 /* Override any gcc2 internal prototype to avoid an error.  */
9285 #ifdef __cplusplus
9286 extern "C"
9287 #endif
9288 /* We use char because int might match the return type of a gcc2
9289    builtin and then its argument prototype would still apply.  */
9290 char remove ();
9291 int
9292 main ()
9293 {
9294 remove ();
9295   ;
9296   return 0;
9297 }
9298 _ACEOF
9299 rm -f conftest.$ac_objext conftest$ac_exeext
9300 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9301   (eval $ac_link) 2>&5
9302   ac_status=$?
9303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9304   (exit $ac_status); } &&
9305          { ac_try='test -s conftest$ac_exeext'
9306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9307   (eval $ac_try) 2>&5
9308   ac_status=$?
9309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9310   (exit $ac_status); }; }; then
9311   ac_cv_lib_posix_remove=yes
9312 else
9313   echo "$as_me: failed program was:" >&5
9314 sed 's/^/| /' conftest.$ac_ext >&5
9315
9316 ac_cv_lib_posix_remove=no
9317 fi
9318 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9319 LIBS=$ac_check_lib_save_LIBS
9320 fi
9321 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
9322 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
9323 if test $ac_cv_lib_posix_remove = yes; then
9324   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
9325 fi
9326
9327     fi
9328
9329     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
9330     echo "$as_me:$LINENO: checking for shmat" >&5
9331 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
9332 if test "${ac_cv_func_shmat+set}" = set; then
9333   echo $ECHO_N "(cached) $ECHO_C" >&6
9334 else
9335   cat >conftest.$ac_ext <<_ACEOF
9336 #line $LINENO "configure"
9337 /* confdefs.h.  */
9338 _ACEOF
9339 cat confdefs.h >>conftest.$ac_ext
9340 cat >>conftest.$ac_ext <<_ACEOF
9341 /* end confdefs.h.  */
9342 /* System header to define __stub macros and hopefully few prototypes,
9343     which can conflict with char shmat (); below.
9344     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9345     <limits.h> exists even on freestanding compilers.  */
9346 #ifdef __STDC__
9347 # include <limits.h>
9348 #else
9349 # include <assert.h>
9350 #endif
9351 /* Override any gcc2 internal prototype to avoid an error.  */
9352 #ifdef __cplusplus
9353 extern "C"
9354 {
9355 #endif
9356 /* We use char because int might match the return type of a gcc2
9357    builtin and then its argument prototype would still apply.  */
9358 char shmat ();
9359 /* The GNU C library defines this for functions which it implements
9360     to always fail with ENOSYS.  Some functions are actually named
9361     something starting with __ and the normal name is an alias.  */
9362 #if defined (__stub_shmat) || defined (__stub___shmat)
9363 choke me
9364 #else
9365 char (*f) () = shmat;
9366 #endif
9367 #ifdef __cplusplus
9368 }
9369 #endif
9370
9371 int
9372 main ()
9373 {
9374 return f != shmat;
9375   ;
9376   return 0;
9377 }
9378 _ACEOF
9379 rm -f conftest.$ac_objext conftest$ac_exeext
9380 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9381   (eval $ac_link) 2>&5
9382   ac_status=$?
9383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9384   (exit $ac_status); } &&
9385          { ac_try='test -s conftest$ac_exeext'
9386   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9387   (eval $ac_try) 2>&5
9388   ac_status=$?
9389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9390   (exit $ac_status); }; }; then
9391   ac_cv_func_shmat=yes
9392 else
9393   echo "$as_me: failed program was:" >&5
9394 sed 's/^/| /' conftest.$ac_ext >&5
9395
9396 ac_cv_func_shmat=no
9397 fi
9398 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9399 fi
9400 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
9401 echo "${ECHO_T}$ac_cv_func_shmat" >&6
9402
9403     if test $ac_cv_func_shmat = no; then
9404       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
9405 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
9406 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
9407   echo $ECHO_N "(cached) $ECHO_C" >&6
9408 else
9409   ac_check_lib_save_LIBS=$LIBS
9410 LIBS="-lipc  $LIBS"
9411 cat >conftest.$ac_ext <<_ACEOF
9412 #line $LINENO "configure"
9413 /* confdefs.h.  */
9414 _ACEOF
9415 cat confdefs.h >>conftest.$ac_ext
9416 cat >>conftest.$ac_ext <<_ACEOF
9417 /* end confdefs.h.  */
9418
9419 /* Override any gcc2 internal prototype to avoid an error.  */
9420 #ifdef __cplusplus
9421 extern "C"
9422 #endif
9423 /* We use char because int might match the return type of a gcc2
9424    builtin and then its argument prototype would still apply.  */
9425 char shmat ();
9426 int
9427 main ()
9428 {
9429 shmat ();
9430   ;
9431   return 0;
9432 }
9433 _ACEOF
9434 rm -f conftest.$ac_objext conftest$ac_exeext
9435 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9436   (eval $ac_link) 2>&5
9437   ac_status=$?
9438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9439   (exit $ac_status); } &&
9440          { ac_try='test -s conftest$ac_exeext'
9441   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9442   (eval $ac_try) 2>&5
9443   ac_status=$?
9444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9445   (exit $ac_status); }; }; then
9446   ac_cv_lib_ipc_shmat=yes
9447 else
9448   echo "$as_me: failed program was:" >&5
9449 sed 's/^/| /' conftest.$ac_ext >&5
9450
9451 ac_cv_lib_ipc_shmat=no
9452 fi
9453 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9454 LIBS=$ac_check_lib_save_LIBS
9455 fi
9456 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
9457 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
9458 if test $ac_cv_lib_ipc_shmat = yes; then
9459   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
9460 fi
9461
9462     fi
9463   fi
9464
9465   # Check for libraries that X11R6 Xt/Xaw programs need.
9466   ac_save_LDFLAGS=$LDFLAGS
9467   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
9468   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
9469   # check for ICE first), but we must link in the order -lSM -lICE or
9470   # we get undefined symbols.  So assume we have SM if we have ICE.
9471   # These have to be linked with before -lX11, unlike the other
9472   # libraries we check for below, so use a different variable.
9473   # John Interrante, Karl Berry
9474   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
9475 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
9476 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
9477   echo $ECHO_N "(cached) $ECHO_C" >&6
9478 else
9479   ac_check_lib_save_LIBS=$LIBS
9480 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
9481 cat >conftest.$ac_ext <<_ACEOF
9482 #line $LINENO "configure"
9483 /* confdefs.h.  */
9484 _ACEOF
9485 cat confdefs.h >>conftest.$ac_ext
9486 cat >>conftest.$ac_ext <<_ACEOF
9487 /* end confdefs.h.  */
9488
9489 /* Override any gcc2 internal prototype to avoid an error.  */
9490 #ifdef __cplusplus
9491 extern "C"
9492 #endif
9493 /* We use char because int might match the return type of a gcc2
9494    builtin and then its argument prototype would still apply.  */
9495 char IceConnectionNumber ();
9496 int
9497 main ()
9498 {
9499 IceConnectionNumber ();
9500   ;
9501   return 0;
9502 }
9503 _ACEOF
9504 rm -f conftest.$ac_objext conftest$ac_exeext
9505 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9506   (eval $ac_link) 2>&5
9507   ac_status=$?
9508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9509   (exit $ac_status); } &&
9510          { ac_try='test -s conftest$ac_exeext'
9511   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9512   (eval $ac_try) 2>&5
9513   ac_status=$?
9514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9515   (exit $ac_status); }; }; then
9516   ac_cv_lib_ICE_IceConnectionNumber=yes
9517 else
9518   echo "$as_me: failed program was:" >&5
9519 sed 's/^/| /' conftest.$ac_ext >&5
9520
9521 ac_cv_lib_ICE_IceConnectionNumber=no
9522 fi
9523 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9524 LIBS=$ac_check_lib_save_LIBS
9525 fi
9526 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
9527 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
9528 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
9529   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
9530 fi
9531
9532   LDFLAGS=$ac_save_LDFLAGS
9533
9534 fi
9535
9536
9537
9538
9539
9540
9541
9542
9543
9544
9545
9546
9547
9548
9549
9550
9551
9552
9553
9554
9555
9556
9557
9558
9559
9560
9561
9562
9563
9564 for ac_header in \
9565         assert.h \
9566         fcntl.h \
9567         grp.h \
9568         pwd.h \
9569         libc.h \
9570         limits.h \
9571         stdarg.h \
9572         stdlib.h \
9573         stdint.h \
9574         string.h \
9575         termios.h \
9576         termcap.h \
9577         term.h \
9578         unistd.h \
9579         sys/bitypes.h \
9580         sys/byteorder.h \
9581         sys/ioctl.h \
9582         sys/select.h \
9583         sys/sockio.h \
9584         sys/time.h \
9585         sys/socket.h \
9586         arpa/nameser.h \
9587         resolv.h \
9588         mtio.h \
9589         sys/mtio.h \
9590         sys/tape.h \
9591         regex.h \
9592
9593 do
9594 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9595 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9596   echo "$as_me:$LINENO: checking for $ac_header" >&5
9597 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9598 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9599   echo $ECHO_N "(cached) $ECHO_C" >&6
9600 fi
9601 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9602 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9603 else
9604   # Is the header compilable?
9605 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9606 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9607 cat >conftest.$ac_ext <<_ACEOF
9608 #line $LINENO "configure"
9609 /* confdefs.h.  */
9610 _ACEOF
9611 cat confdefs.h >>conftest.$ac_ext
9612 cat >>conftest.$ac_ext <<_ACEOF
9613 /* end confdefs.h.  */
9614 $ac_includes_default
9615 #include <$ac_header>
9616 _ACEOF
9617 rm -f conftest.$ac_objext
9618 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9619   (eval $ac_compile) 2>&5
9620   ac_status=$?
9621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9622   (exit $ac_status); } &&
9623          { ac_try='test -s conftest.$ac_objext'
9624   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9625   (eval $ac_try) 2>&5
9626   ac_status=$?
9627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9628   (exit $ac_status); }; }; then
9629   ac_header_compiler=yes
9630 else
9631   echo "$as_me: failed program was:" >&5
9632 sed 's/^/| /' conftest.$ac_ext >&5
9633
9634 ac_header_compiler=no
9635 fi
9636 rm -f conftest.$ac_objext conftest.$ac_ext
9637 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9638 echo "${ECHO_T}$ac_header_compiler" >&6
9639
9640 # Is the header present?
9641 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9642 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9643 cat >conftest.$ac_ext <<_ACEOF
9644 #line $LINENO "configure"
9645 /* confdefs.h.  */
9646 _ACEOF
9647 cat confdefs.h >>conftest.$ac_ext
9648 cat >>conftest.$ac_ext <<_ACEOF
9649 /* end confdefs.h.  */
9650 #include <$ac_header>
9651 _ACEOF
9652 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9653   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9654   ac_status=$?
9655   grep -v '^ *+' conftest.er1 >conftest.err
9656   rm -f conftest.er1
9657   cat conftest.err >&5
9658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9659   (exit $ac_status); } >/dev/null; then
9660   if test -s conftest.err; then
9661     ac_cpp_err=$ac_c_preproc_warn_flag
9662   else
9663     ac_cpp_err=
9664   fi
9665 else
9666   ac_cpp_err=yes
9667 fi
9668 if test -z "$ac_cpp_err"; then
9669   ac_header_preproc=yes
9670 else
9671   echo "$as_me: failed program was:" >&5
9672 sed 's/^/| /' conftest.$ac_ext >&5
9673
9674   ac_header_preproc=no
9675 fi
9676 rm -f conftest.err conftest.$ac_ext
9677 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9678 echo "${ECHO_T}$ac_header_preproc" >&6
9679
9680 # So?  What about this header?
9681 case $ac_header_compiler:$ac_header_preproc in
9682   yes:no )
9683     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9684 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9685     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9686 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9687     (
9688       cat <<\_ASBOX
9689 ## ------------------------------------ ##
9690 ## Report this to bug-autoconf@gnu.org. ##
9691 ## ------------------------------------ ##
9692 _ASBOX
9693     ) |
9694       sed "s/^/$as_me: WARNING:     /" >&2
9695     ;;
9696   no:yes )
9697     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9698 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9699     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9700 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9701     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9702 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9703     (
9704       cat <<\_ASBOX
9705 ## ------------------------------------ ##
9706 ## Report this to bug-autoconf@gnu.org. ##
9707 ## ------------------------------------ ##
9708 _ASBOX
9709     ) |
9710       sed "s/^/$as_me: WARNING:     /" >&2
9711     ;;
9712 esac
9713 echo "$as_me:$LINENO: checking for $ac_header" >&5
9714 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9715 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9716   echo $ECHO_N "(cached) $ECHO_C" >&6
9717 else
9718   eval "$as_ac_Header=$ac_header_preproc"
9719 fi
9720 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9721 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9722
9723 fi
9724 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9725   cat >>confdefs.h <<_ACEOF
9726 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9727 _ACEOF
9728
9729 fi
9730
9731 done
9732
9733 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9734 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9735 if test "${ac_cv_header_stdc+set}" = set; then
9736   echo $ECHO_N "(cached) $ECHO_C" >&6
9737 else
9738   cat >conftest.$ac_ext <<_ACEOF
9739 #line $LINENO "configure"
9740 /* confdefs.h.  */
9741 _ACEOF
9742 cat confdefs.h >>conftest.$ac_ext
9743 cat >>conftest.$ac_ext <<_ACEOF
9744 /* end confdefs.h.  */
9745 #include <stdlib.h>
9746 #include <stdarg.h>
9747 #include <string.h>
9748 #include <float.h>
9749
9750 int
9751 main ()
9752 {
9753
9754   ;
9755   return 0;
9756 }
9757 _ACEOF
9758 rm -f conftest.$ac_objext
9759 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9760   (eval $ac_compile) 2>&5
9761   ac_status=$?
9762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9763   (exit $ac_status); } &&
9764          { ac_try='test -s conftest.$ac_objext'
9765   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9766   (eval $ac_try) 2>&5
9767   ac_status=$?
9768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9769   (exit $ac_status); }; }; then
9770   ac_cv_header_stdc=yes
9771 else
9772   echo "$as_me: failed program was:" >&5
9773 sed 's/^/| /' conftest.$ac_ext >&5
9774
9775 ac_cv_header_stdc=no
9776 fi
9777 rm -f conftest.$ac_objext conftest.$ac_ext
9778
9779 if test $ac_cv_header_stdc = yes; then
9780   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9781   cat >conftest.$ac_ext <<_ACEOF
9782 #line $LINENO "configure"
9783 /* confdefs.h.  */
9784 _ACEOF
9785 cat confdefs.h >>conftest.$ac_ext
9786 cat >>conftest.$ac_ext <<_ACEOF
9787 /* end confdefs.h.  */
9788 #include <string.h>
9789
9790 _ACEOF
9791 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9792   $EGREP "memchr" >/dev/null 2>&1; then
9793   :
9794 else
9795   ac_cv_header_stdc=no
9796 fi
9797 rm -f conftest*
9798
9799 fi
9800
9801 if test $ac_cv_header_stdc = yes; then
9802   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9803   cat >conftest.$ac_ext <<_ACEOF
9804 #line $LINENO "configure"
9805 /* confdefs.h.  */
9806 _ACEOF
9807 cat confdefs.h >>conftest.$ac_ext
9808 cat >>conftest.$ac_ext <<_ACEOF
9809 /* end confdefs.h.  */
9810 #include <stdlib.h>
9811
9812 _ACEOF
9813 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9814   $EGREP "free" >/dev/null 2>&1; then
9815   :
9816 else
9817   ac_cv_header_stdc=no
9818 fi
9819 rm -f conftest*
9820
9821 fi
9822
9823 if test $ac_cv_header_stdc = yes; then
9824   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9825   if test "$cross_compiling" = yes; then
9826   :
9827 else
9828   cat >conftest.$ac_ext <<_ACEOF
9829 #line $LINENO "configure"
9830 /* confdefs.h.  */
9831 _ACEOF
9832 cat confdefs.h >>conftest.$ac_ext
9833 cat >>conftest.$ac_ext <<_ACEOF
9834 /* end confdefs.h.  */
9835 #include <ctype.h>
9836 #if ((' ' & 0x0FF) == 0x020)
9837 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9838 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9839 #else
9840 # define ISLOWER(c) \
9841                    (('a' <= (c) && (c) <= 'i') \
9842                      || ('j' <= (c) && (c) <= 'r') \
9843                      || ('s' <= (c) && (c) <= 'z'))
9844 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9845 #endif
9846
9847 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9848 int
9849 main ()
9850 {
9851   int i;
9852   for (i = 0; i < 256; i++)
9853     if (XOR (islower (i), ISLOWER (i))
9854         || toupper (i) != TOUPPER (i))
9855       exit(2);
9856   exit (0);
9857 }
9858 _ACEOF
9859 rm -f conftest$ac_exeext
9860 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9861   (eval $ac_link) 2>&5
9862   ac_status=$?
9863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9864   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9865   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9866   (eval $ac_try) 2>&5
9867   ac_status=$?
9868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9869   (exit $ac_status); }; }; then
9870   :
9871 else
9872   echo "$as_me: program exited with status $ac_status" >&5
9873 echo "$as_me: failed program was:" >&5
9874 sed 's/^/| /' conftest.$ac_ext >&5
9875
9876 ( exit $ac_status )
9877 ac_cv_header_stdc=no
9878 fi
9879 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9880 fi
9881 fi
9882 fi
9883 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9884 echo "${ECHO_T}$ac_cv_header_stdc" >&6
9885 if test $ac_cv_header_stdc = yes; then
9886
9887 cat >>confdefs.h <<\_ACEOF
9888 #define STDC_HEADERS 1
9889 _ACEOF
9890
9891 fi
9892
9893 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
9894 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
9895 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
9896   echo $ECHO_N "(cached) $ECHO_C" >&6
9897 else
9898   cat >conftest.$ac_ext <<_ACEOF
9899 #line $LINENO "configure"
9900 /* confdefs.h.  */
9901 _ACEOF
9902 cat confdefs.h >>conftest.$ac_ext
9903 cat >>conftest.$ac_ext <<_ACEOF
9904 /* end confdefs.h.  */
9905 #include <sys/types.h>
9906 int
9907 main ()
9908 {
9909 return makedev(0, 0);
9910   ;
9911   return 0;
9912 }
9913 _ACEOF
9914 rm -f conftest.$ac_objext conftest$ac_exeext
9915 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9916   (eval $ac_link) 2>&5
9917   ac_status=$?
9918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9919   (exit $ac_status); } &&
9920          { ac_try='test -s conftest$ac_exeext'
9921   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9922   (eval $ac_try) 2>&5
9923   ac_status=$?
9924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9925   (exit $ac_status); }; }; then
9926   ac_cv_header_sys_types_h_makedev=yes
9927 else
9928   echo "$as_me: failed program was:" >&5
9929 sed 's/^/| /' conftest.$ac_ext >&5
9930
9931 ac_cv_header_sys_types_h_makedev=no
9932 fi
9933 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9934
9935 fi
9936 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
9937 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
9938
9939 if test $ac_cv_header_sys_types_h_makedev = no; then
9940 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
9941   echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
9942 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
9943 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
9944   echo $ECHO_N "(cached) $ECHO_C" >&6
9945 fi
9946 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
9947 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
9948 else
9949   # Is the header compilable?
9950 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
9951 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
9952 cat >conftest.$ac_ext <<_ACEOF
9953 #line $LINENO "configure"
9954 /* confdefs.h.  */
9955 _ACEOF
9956 cat confdefs.h >>conftest.$ac_ext
9957 cat >>conftest.$ac_ext <<_ACEOF
9958 /* end confdefs.h.  */
9959 $ac_includes_default
9960 #include <sys/mkdev.h>
9961 _ACEOF
9962 rm -f conftest.$ac_objext
9963 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9964   (eval $ac_compile) 2>&5
9965   ac_status=$?
9966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9967   (exit $ac_status); } &&
9968          { ac_try='test -s conftest.$ac_objext'
9969   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9970   (eval $ac_try) 2>&5
9971   ac_status=$?
9972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9973   (exit $ac_status); }; }; then
9974   ac_header_compiler=yes
9975 else
9976   echo "$as_me: failed program was:" >&5
9977 sed 's/^/| /' conftest.$ac_ext >&5
9978
9979 ac_header_compiler=no
9980 fi
9981 rm -f conftest.$ac_objext conftest.$ac_ext
9982 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9983 echo "${ECHO_T}$ac_header_compiler" >&6
9984
9985 # Is the header present?
9986 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
9987 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
9988 cat >conftest.$ac_ext <<_ACEOF
9989 #line $LINENO "configure"
9990 /* confdefs.h.  */
9991 _ACEOF
9992 cat confdefs.h >>conftest.$ac_ext
9993 cat >>conftest.$ac_ext <<_ACEOF
9994 /* end confdefs.h.  */
9995 #include <sys/mkdev.h>
9996 _ACEOF
9997 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9998   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9999   ac_status=$?
10000   grep -v '^ *+' conftest.er1 >conftest.err
10001   rm -f conftest.er1
10002   cat conftest.err >&5
10003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10004   (exit $ac_status); } >/dev/null; then
10005   if test -s conftest.err; then
10006     ac_cpp_err=$ac_c_preproc_warn_flag
10007   else
10008     ac_cpp_err=
10009   fi
10010 else
10011   ac_cpp_err=yes
10012 fi
10013 if test -z "$ac_cpp_err"; then
10014   ac_header_preproc=yes
10015 else
10016   echo "$as_me: failed program was:" >&5
10017 sed 's/^/| /' conftest.$ac_ext >&5
10018
10019   ac_header_preproc=no
10020 fi
10021 rm -f conftest.err conftest.$ac_ext
10022 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10023 echo "${ECHO_T}$ac_header_preproc" >&6
10024
10025 # So?  What about this header?
10026 case $ac_header_compiler:$ac_header_preproc in
10027   yes:no )
10028     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
10029 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10030     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
10031 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
10032     (
10033       cat <<\_ASBOX
10034 ## ------------------------------------ ##
10035 ## Report this to bug-autoconf@gnu.org. ##
10036 ## ------------------------------------ ##
10037 _ASBOX
10038     ) |
10039       sed "s/^/$as_me: WARNING:     /" >&2
10040     ;;
10041   no:yes )
10042     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
10043 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
10044     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
10045 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
10046     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
10047 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
10048     (
10049       cat <<\_ASBOX
10050 ## ------------------------------------ ##
10051 ## Report this to bug-autoconf@gnu.org. ##
10052 ## ------------------------------------ ##
10053 _ASBOX
10054     ) |
10055       sed "s/^/$as_me: WARNING:     /" >&2
10056     ;;
10057 esac
10058 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
10059 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
10060 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
10061   echo $ECHO_N "(cached) $ECHO_C" >&6
10062 else
10063   ac_cv_header_sys_mkdev_h=$ac_header_preproc
10064 fi
10065 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
10066 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
10067
10068 fi
10069 if test $ac_cv_header_sys_mkdev_h = yes; then
10070
10071 cat >>confdefs.h <<\_ACEOF
10072 #define MAJOR_IN_MKDEV 1
10073 _ACEOF
10074
10075 fi
10076
10077
10078
10079   if test $ac_cv_header_sys_mkdev_h = no; then
10080     if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
10081   echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
10082 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
10083 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
10084   echo $ECHO_N "(cached) $ECHO_C" >&6
10085 fi
10086 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
10087 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
10088 else
10089   # Is the header compilable?
10090 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
10091 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
10092 cat >conftest.$ac_ext <<_ACEOF
10093 #line $LINENO "configure"
10094 /* confdefs.h.  */
10095 _ACEOF
10096 cat confdefs.h >>conftest.$ac_ext
10097 cat >>conftest.$ac_ext <<_ACEOF
10098 /* end confdefs.h.  */
10099 $ac_includes_default
10100 #include <sys/sysmacros.h>
10101 _ACEOF
10102 rm -f conftest.$ac_objext
10103 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10104   (eval $ac_compile) 2>&5
10105   ac_status=$?
10106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10107   (exit $ac_status); } &&
10108          { ac_try='test -s conftest.$ac_objext'
10109   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10110   (eval $ac_try) 2>&5
10111   ac_status=$?
10112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10113   (exit $ac_status); }; }; then
10114   ac_header_compiler=yes
10115 else
10116   echo "$as_me: failed program was:" >&5
10117 sed 's/^/| /' conftest.$ac_ext >&5
10118
10119 ac_header_compiler=no
10120 fi
10121 rm -f conftest.$ac_objext conftest.$ac_ext
10122 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10123 echo "${ECHO_T}$ac_header_compiler" >&6
10124
10125 # Is the header present?
10126 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
10127 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
10128 cat >conftest.$ac_ext <<_ACEOF
10129 #line $LINENO "configure"
10130 /* confdefs.h.  */
10131 _ACEOF
10132 cat confdefs.h >>conftest.$ac_ext
10133 cat >>conftest.$ac_ext <<_ACEOF
10134 /* end confdefs.h.  */
10135 #include <sys/sysmacros.h>
10136 _ACEOF
10137 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10138   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10139   ac_status=$?
10140   grep -v '^ *+' conftest.er1 >conftest.err
10141   rm -f conftest.er1
10142   cat conftest.err >&5
10143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10144   (exit $ac_status); } >/dev/null; then
10145   if test -s conftest.err; then
10146     ac_cpp_err=$ac_c_preproc_warn_flag
10147   else
10148     ac_cpp_err=
10149   fi
10150 else
10151   ac_cpp_err=yes
10152 fi
10153 if test -z "$ac_cpp_err"; then
10154   ac_header_preproc=yes
10155 else
10156   echo "$as_me: failed program was:" >&5
10157 sed 's/^/| /' conftest.$ac_ext >&5
10158
10159   ac_header_preproc=no
10160 fi
10161 rm -f conftest.err conftest.$ac_ext
10162 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10163 echo "${ECHO_T}$ac_header_preproc" >&6
10164
10165 # So?  What about this header?
10166 case $ac_header_compiler:$ac_header_preproc in
10167   yes:no )
10168     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
10169 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10170     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
10171 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
10172     (
10173       cat <<\_ASBOX
10174 ## ------------------------------------ ##
10175 ## Report this to bug-autoconf@gnu.org. ##
10176 ## ------------------------------------ ##
10177 _ASBOX
10178     ) |
10179       sed "s/^/$as_me: WARNING:     /" >&2
10180     ;;
10181   no:yes )
10182     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
10183 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
10184     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
10185 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
10186     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
10187 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
10188     (
10189       cat <<\_ASBOX
10190 ## ------------------------------------ ##
10191 ## Report this to bug-autoconf@gnu.org. ##
10192 ## ------------------------------------ ##
10193 _ASBOX
10194     ) |
10195       sed "s/^/$as_me: WARNING:     /" >&2
10196     ;;
10197 esac
10198 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
10199 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
10200 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
10201   echo $ECHO_N "(cached) $ECHO_C" >&6
10202 else
10203   ac_cv_header_sys_sysmacros_h=$ac_header_preproc
10204 fi
10205 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
10206 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
10207
10208 fi
10209 if test $ac_cv_header_sys_sysmacros_h = yes; then
10210
10211 cat >>confdefs.h <<\_ACEOF
10212 #define MAJOR_IN_SYSMACROS 1
10213 _ACEOF
10214
10215 fi
10216
10217
10218   fi
10219 fi
10220
10221
10222
10223
10224
10225
10226 ac_header_dirent=no
10227 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
10228   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
10229 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
10230 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
10231 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10232   echo $ECHO_N "(cached) $ECHO_C" >&6
10233 else
10234   cat >conftest.$ac_ext <<_ACEOF
10235 #line $LINENO "configure"
10236 /* confdefs.h.  */
10237 _ACEOF
10238 cat confdefs.h >>conftest.$ac_ext
10239 cat >>conftest.$ac_ext <<_ACEOF
10240 /* end confdefs.h.  */
10241 #include <sys/types.h>
10242 #include <$ac_hdr>
10243
10244 int
10245 main ()
10246 {
10247 if ((DIR *) 0)
10248 return 0;
10249   ;
10250   return 0;
10251 }
10252 _ACEOF
10253 rm -f conftest.$ac_objext
10254 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10255   (eval $ac_compile) 2>&5
10256   ac_status=$?
10257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10258   (exit $ac_status); } &&
10259          { ac_try='test -s conftest.$ac_objext'
10260   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10261   (eval $ac_try) 2>&5
10262   ac_status=$?
10263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10264   (exit $ac_status); }; }; then
10265   eval "$as_ac_Header=yes"
10266 else
10267   echo "$as_me: failed program was:" >&5
10268 sed 's/^/| /' conftest.$ac_ext >&5
10269
10270 eval "$as_ac_Header=no"
10271 fi
10272 rm -f conftest.$ac_objext conftest.$ac_ext
10273 fi
10274 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10275 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10276 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10277   cat >>confdefs.h <<_ACEOF
10278 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
10279 _ACEOF
10280
10281 ac_header_dirent=$ac_hdr; break
10282 fi
10283
10284 done
10285 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
10286 if test $ac_header_dirent = dirent.h; then
10287   echo "$as_me:$LINENO: checking for library containing opendir" >&5
10288 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
10289 if test "${ac_cv_search_opendir+set}" = set; then
10290   echo $ECHO_N "(cached) $ECHO_C" >&6
10291 else
10292   ac_func_search_save_LIBS=$LIBS
10293 ac_cv_search_opendir=no
10294 cat >conftest.$ac_ext <<_ACEOF
10295 #line $LINENO "configure"
10296 /* confdefs.h.  */
10297 _ACEOF
10298 cat confdefs.h >>conftest.$ac_ext
10299 cat >>conftest.$ac_ext <<_ACEOF
10300 /* end confdefs.h.  */
10301
10302 /* Override any gcc2 internal prototype to avoid an error.  */
10303 #ifdef __cplusplus
10304 extern "C"
10305 #endif
10306 /* We use char because int might match the return type of a gcc2
10307    builtin and then its argument prototype would still apply.  */
10308 char opendir ();
10309 int
10310 main ()
10311 {
10312 opendir ();
10313   ;
10314   return 0;
10315 }
10316 _ACEOF
10317 rm -f conftest.$ac_objext conftest$ac_exeext
10318 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10319   (eval $ac_link) 2>&5
10320   ac_status=$?
10321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10322   (exit $ac_status); } &&
10323          { ac_try='test -s conftest$ac_exeext'
10324   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10325   (eval $ac_try) 2>&5
10326   ac_status=$?
10327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10328   (exit $ac_status); }; }; then
10329   ac_cv_search_opendir="none required"
10330 else
10331   echo "$as_me: failed program was:" >&5
10332 sed 's/^/| /' conftest.$ac_ext >&5
10333
10334 fi
10335 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10336 if test "$ac_cv_search_opendir" = no; then
10337   for ac_lib in dir; do
10338     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10339     cat >conftest.$ac_ext <<_ACEOF
10340 #line $LINENO "configure"
10341 /* confdefs.h.  */
10342 _ACEOF
10343 cat confdefs.h >>conftest.$ac_ext
10344 cat >>conftest.$ac_ext <<_ACEOF
10345 /* end confdefs.h.  */
10346
10347 /* Override any gcc2 internal prototype to avoid an error.  */
10348 #ifdef __cplusplus
10349 extern "C"
10350 #endif
10351 /* We use char because int might match the return type of a gcc2
10352    builtin and then its argument prototype would still apply.  */
10353 char opendir ();
10354 int
10355 main ()
10356 {
10357 opendir ();
10358   ;
10359   return 0;
10360 }
10361 _ACEOF
10362 rm -f conftest.$ac_objext conftest$ac_exeext
10363 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10364   (eval $ac_link) 2>&5
10365   ac_status=$?
10366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10367   (exit $ac_status); } &&
10368          { ac_try='test -s conftest$ac_exeext'
10369   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10370   (eval $ac_try) 2>&5
10371   ac_status=$?
10372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10373   (exit $ac_status); }; }; then
10374   ac_cv_search_opendir="-l$ac_lib"
10375 break
10376 else
10377   echo "$as_me: failed program was:" >&5
10378 sed 's/^/| /' conftest.$ac_ext >&5
10379
10380 fi
10381 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10382   done
10383 fi
10384 LIBS=$ac_func_search_save_LIBS
10385 fi
10386 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10387 echo "${ECHO_T}$ac_cv_search_opendir" >&6
10388 if test "$ac_cv_search_opendir" != no; then
10389   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
10390
10391 fi
10392
10393 else
10394   echo "$as_me:$LINENO: checking for library containing opendir" >&5
10395 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
10396 if test "${ac_cv_search_opendir+set}" = set; then
10397   echo $ECHO_N "(cached) $ECHO_C" >&6
10398 else
10399   ac_func_search_save_LIBS=$LIBS
10400 ac_cv_search_opendir=no
10401 cat >conftest.$ac_ext <<_ACEOF
10402 #line $LINENO "configure"
10403 /* confdefs.h.  */
10404 _ACEOF
10405 cat confdefs.h >>conftest.$ac_ext
10406 cat >>conftest.$ac_ext <<_ACEOF
10407 /* end confdefs.h.  */
10408
10409 /* Override any gcc2 internal prototype to avoid an error.  */
10410 #ifdef __cplusplus
10411 extern "C"
10412 #endif
10413 /* We use char because int might match the return type of a gcc2
10414    builtin and then its argument prototype would still apply.  */
10415 char opendir ();
10416 int
10417 main ()
10418 {
10419 opendir ();
10420   ;
10421   return 0;
10422 }
10423 _ACEOF
10424 rm -f conftest.$ac_objext conftest$ac_exeext
10425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10426   (eval $ac_link) 2>&5
10427   ac_status=$?
10428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10429   (exit $ac_status); } &&
10430          { ac_try='test -s conftest$ac_exeext'
10431   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10432   (eval $ac_try) 2>&5
10433   ac_status=$?
10434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10435   (exit $ac_status); }; }; then
10436   ac_cv_search_opendir="none required"
10437 else
10438   echo "$as_me: failed program was:" >&5
10439 sed 's/^/| /' conftest.$ac_ext >&5
10440
10441 fi
10442 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10443 if test "$ac_cv_search_opendir" = no; then
10444   for ac_lib in x; do
10445     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10446     cat >conftest.$ac_ext <<_ACEOF
10447 #line $LINENO "configure"
10448 /* confdefs.h.  */
10449 _ACEOF
10450 cat confdefs.h >>conftest.$ac_ext
10451 cat >>conftest.$ac_ext <<_ACEOF
10452 /* end confdefs.h.  */
10453
10454 /* Override any gcc2 internal prototype to avoid an error.  */
10455 #ifdef __cplusplus
10456 extern "C"
10457 #endif
10458 /* We use char because int might match the return type of a gcc2
10459    builtin and then its argument prototype would still apply.  */
10460 char opendir ();
10461 int
10462 main ()
10463 {
10464 opendir ();
10465   ;
10466   return 0;
10467 }
10468 _ACEOF
10469 rm -f conftest.$ac_objext conftest$ac_exeext
10470 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10471   (eval $ac_link) 2>&5
10472   ac_status=$?
10473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10474   (exit $ac_status); } &&
10475          { ac_try='test -s conftest$ac_exeext'
10476   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10477   (eval $ac_try) 2>&5
10478   ac_status=$?
10479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10480   (exit $ac_status); }; }; then
10481   ac_cv_search_opendir="-l$ac_lib"
10482 break
10483 else
10484   echo "$as_me: failed program was:" >&5
10485 sed 's/^/| /' conftest.$ac_ext >&5
10486
10487 fi
10488 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10489   done
10490 fi
10491 LIBS=$ac_func_search_save_LIBS
10492 fi
10493 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10494 echo "${ECHO_T}$ac_cv_search_opendir" >&6
10495 if test "$ac_cv_search_opendir" != no; then
10496   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
10497
10498 fi
10499
10500 fi
10501
10502 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
10503 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
10504 if test "${ac_cv_header_stat_broken+set}" = set; then
10505   echo $ECHO_N "(cached) $ECHO_C" >&6
10506 else
10507   cat >conftest.$ac_ext <<_ACEOF
10508 #line $LINENO "configure"
10509 /* confdefs.h.  */
10510 _ACEOF
10511 cat confdefs.h >>conftest.$ac_ext
10512 cat >>conftest.$ac_ext <<_ACEOF
10513 /* end confdefs.h.  */
10514 #include <sys/types.h>
10515 #include <sys/stat.h>
10516
10517 #if defined(S_ISBLK) && defined(S_IFDIR)
10518 # if S_ISBLK (S_IFDIR)
10519 You lose.
10520 # endif
10521 #endif
10522
10523 #if defined(S_ISBLK) && defined(S_IFCHR)
10524 # if S_ISBLK (S_IFCHR)
10525 You lose.
10526 # endif
10527 #endif
10528
10529 #if defined(S_ISLNK) && defined(S_IFREG)
10530 # if S_ISLNK (S_IFREG)
10531 You lose.
10532 # endif
10533 #endif
10534
10535 #if defined(S_ISSOCK) && defined(S_IFREG)
10536 # if S_ISSOCK (S_IFREG)
10537 You lose.
10538 # endif
10539 #endif
10540
10541 _ACEOF
10542 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10543   $EGREP "You lose" >/dev/null 2>&1; then
10544   ac_cv_header_stat_broken=yes
10545 else
10546   ac_cv_header_stat_broken=no
10547 fi
10548 rm -f conftest*
10549
10550 fi
10551 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
10552 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
10553 if test $ac_cv_header_stat_broken = yes; then
10554
10555 cat >>confdefs.h <<\_ACEOF
10556 #define STAT_MACROS_BROKEN 1
10557 _ACEOF
10558
10559 fi
10560
10561 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
10562 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
10563 if test "${ac_cv_header_sys_wait_h+set}" = set; then
10564   echo $ECHO_N "(cached) $ECHO_C" >&6
10565 else
10566   cat >conftest.$ac_ext <<_ACEOF
10567 #line $LINENO "configure"
10568 /* confdefs.h.  */
10569 _ACEOF
10570 cat confdefs.h >>conftest.$ac_ext
10571 cat >>conftest.$ac_ext <<_ACEOF
10572 /* end confdefs.h.  */
10573 #include <sys/types.h>
10574 #include <sys/wait.h>
10575 #ifndef WEXITSTATUS
10576 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
10577 #endif
10578 #ifndef WIFEXITED
10579 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
10580 #endif
10581
10582 int
10583 main ()
10584 {
10585   int s;
10586   wait (&s);
10587   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
10588   ;
10589   return 0;
10590 }
10591 _ACEOF
10592 rm -f conftest.$ac_objext
10593 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10594   (eval $ac_compile) 2>&5
10595   ac_status=$?
10596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10597   (exit $ac_status); } &&
10598          { ac_try='test -s conftest.$ac_objext'
10599   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10600   (eval $ac_try) 2>&5
10601   ac_status=$?
10602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10603   (exit $ac_status); }; }; then
10604   ac_cv_header_sys_wait_h=yes
10605 else
10606   echo "$as_me: failed program was:" >&5
10607 sed 's/^/| /' conftest.$ac_ext >&5
10608
10609 ac_cv_header_sys_wait_h=no
10610 fi
10611 rm -f conftest.$ac_objext conftest.$ac_ext
10612 fi
10613 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
10614 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
10615 if test $ac_cv_header_sys_wait_h = yes; then
10616
10617 cat >>confdefs.h <<\_ACEOF
10618 #define HAVE_SYS_WAIT_H 1
10619 _ACEOF
10620
10621 fi
10622
10623 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
10624 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
10625 if test "${ac_cv_header_time+set}" = set; then
10626   echo $ECHO_N "(cached) $ECHO_C" >&6
10627 else
10628   cat >conftest.$ac_ext <<_ACEOF
10629 #line $LINENO "configure"
10630 /* confdefs.h.  */
10631 _ACEOF
10632 cat confdefs.h >>conftest.$ac_ext
10633 cat >>conftest.$ac_ext <<_ACEOF
10634 /* end confdefs.h.  */
10635 #include <sys/types.h>
10636 #include <sys/time.h>
10637 #include <time.h>
10638
10639 int
10640 main ()
10641 {
10642 if ((struct tm *) 0)
10643 return 0;
10644   ;
10645   return 0;
10646 }
10647 _ACEOF
10648 rm -f conftest.$ac_objext
10649 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10650   (eval $ac_compile) 2>&5
10651   ac_status=$?
10652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10653   (exit $ac_status); } &&
10654          { ac_try='test -s conftest.$ac_objext'
10655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10656   (eval $ac_try) 2>&5
10657   ac_status=$?
10658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10659   (exit $ac_status); }; }; then
10660   ac_cv_header_time=yes
10661 else
10662   echo "$as_me: failed program was:" >&5
10663 sed 's/^/| /' conftest.$ac_ext >&5
10664
10665 ac_cv_header_time=no
10666 fi
10667 rm -f conftest.$ac_objext conftest.$ac_ext
10668 fi
10669 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
10670 echo "${ECHO_T}$ac_cv_header_time" >&6
10671 if test $ac_cv_header_time = yes; then
10672
10673 cat >>confdefs.h <<\_ACEOF
10674 #define TIME_WITH_SYS_TIME 1
10675 _ACEOF
10676
10677 fi
10678
10679
10680 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
10681 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
10682 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
10683   echo $ECHO_N "(cached) $ECHO_C" >&6
10684 else
10685   cat >conftest.$ac_ext <<_ACEOF
10686 #line $LINENO "configure"
10687 /* confdefs.h.  */
10688 _ACEOF
10689 cat confdefs.h >>conftest.$ac_ext
10690 cat >>conftest.$ac_ext <<_ACEOF
10691 /* end confdefs.h.  */
10692 $ac_includes_default
10693 int
10694 main ()
10695 {
10696 static struct stat ac_aggr;
10697 if (ac_aggr.st_blksize)
10698 return 0;
10699   ;
10700   return 0;
10701 }
10702 _ACEOF
10703 rm -f conftest.$ac_objext
10704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10705   (eval $ac_compile) 2>&5
10706   ac_status=$?
10707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10708   (exit $ac_status); } &&
10709          { ac_try='test -s conftest.$ac_objext'
10710   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10711   (eval $ac_try) 2>&5
10712   ac_status=$?
10713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10714   (exit $ac_status); }; }; then
10715   ac_cv_member_struct_stat_st_blksize=yes
10716 else
10717   echo "$as_me: failed program was:" >&5
10718 sed 's/^/| /' conftest.$ac_ext >&5
10719
10720 cat >conftest.$ac_ext <<_ACEOF
10721 #line $LINENO "configure"
10722 /* confdefs.h.  */
10723 _ACEOF
10724 cat confdefs.h >>conftest.$ac_ext
10725 cat >>conftest.$ac_ext <<_ACEOF
10726 /* end confdefs.h.  */
10727 $ac_includes_default
10728 int
10729 main ()
10730 {
10731 static struct stat ac_aggr;
10732 if (sizeof ac_aggr.st_blksize)
10733 return 0;
10734   ;
10735   return 0;
10736 }
10737 _ACEOF
10738 rm -f conftest.$ac_objext
10739 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10740   (eval $ac_compile) 2>&5
10741   ac_status=$?
10742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10743   (exit $ac_status); } &&
10744          { ac_try='test -s conftest.$ac_objext'
10745   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10746   (eval $ac_try) 2>&5
10747   ac_status=$?
10748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10749   (exit $ac_status); }; }; then
10750   ac_cv_member_struct_stat_st_blksize=yes
10751 else
10752   echo "$as_me: failed program was:" >&5
10753 sed 's/^/| /' conftest.$ac_ext >&5
10754
10755 ac_cv_member_struct_stat_st_blksize=no
10756 fi
10757 rm -f conftest.$ac_objext conftest.$ac_ext
10758 fi
10759 rm -f conftest.$ac_objext conftest.$ac_ext
10760 fi
10761 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
10762 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
10763 if test $ac_cv_member_struct_stat_st_blksize = yes; then
10764
10765 cat >>confdefs.h <<_ACEOF
10766 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
10767 _ACEOF
10768
10769
10770 cat >>confdefs.h <<\_ACEOF
10771 #define HAVE_ST_BLKSIZE 1
10772 _ACEOF
10773
10774 fi
10775
10776
10777 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
10778 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
10779 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
10780   echo $ECHO_N "(cached) $ECHO_C" >&6
10781 else
10782   cat >conftest.$ac_ext <<_ACEOF
10783 #line $LINENO "configure"
10784 /* confdefs.h.  */
10785 _ACEOF
10786 cat confdefs.h >>conftest.$ac_ext
10787 cat >>conftest.$ac_ext <<_ACEOF
10788 /* end confdefs.h.  */
10789 $ac_includes_default
10790 int
10791 main ()
10792 {
10793 static struct stat ac_aggr;
10794 if (ac_aggr.st_blocks)
10795 return 0;
10796   ;
10797   return 0;
10798 }
10799 _ACEOF
10800 rm -f conftest.$ac_objext
10801 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10802   (eval $ac_compile) 2>&5
10803   ac_status=$?
10804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10805   (exit $ac_status); } &&
10806          { ac_try='test -s conftest.$ac_objext'
10807   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10808   (eval $ac_try) 2>&5
10809   ac_status=$?
10810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10811   (exit $ac_status); }; }; then
10812   ac_cv_member_struct_stat_st_blocks=yes
10813 else
10814   echo "$as_me: failed program was:" >&5
10815 sed 's/^/| /' conftest.$ac_ext >&5
10816
10817 cat >conftest.$ac_ext <<_ACEOF
10818 #line $LINENO "configure"
10819 /* confdefs.h.  */
10820 _ACEOF
10821 cat confdefs.h >>conftest.$ac_ext
10822 cat >>conftest.$ac_ext <<_ACEOF
10823 /* end confdefs.h.  */
10824 $ac_includes_default
10825 int
10826 main ()
10827 {
10828 static struct stat ac_aggr;
10829 if (sizeof ac_aggr.st_blocks)
10830 return 0;
10831   ;
10832   return 0;
10833 }
10834 _ACEOF
10835 rm -f conftest.$ac_objext
10836 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10837   (eval $ac_compile) 2>&5
10838   ac_status=$?
10839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10840   (exit $ac_status); } &&
10841          { ac_try='test -s conftest.$ac_objext'
10842   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10843   (eval $ac_try) 2>&5
10844   ac_status=$?
10845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10846   (exit $ac_status); }; }; then
10847   ac_cv_member_struct_stat_st_blocks=yes
10848 else
10849   echo "$as_me: failed program was:" >&5
10850 sed 's/^/| /' conftest.$ac_ext >&5
10851
10852 ac_cv_member_struct_stat_st_blocks=no
10853 fi
10854 rm -f conftest.$ac_objext conftest.$ac_ext
10855 fi
10856 rm -f conftest.$ac_objext conftest.$ac_ext
10857 fi
10858 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
10859 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
10860 if test $ac_cv_member_struct_stat_st_blocks = yes; then
10861
10862 cat >>confdefs.h <<_ACEOF
10863 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
10864 _ACEOF
10865
10866
10867 cat >>confdefs.h <<\_ACEOF
10868 #define HAVE_ST_BLOCKS 1
10869 _ACEOF
10870
10871 else
10872   LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
10873 fi
10874
10875
10876 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
10877 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
10878 if test "${ac_cv_struct_tm+set}" = set; then
10879   echo $ECHO_N "(cached) $ECHO_C" >&6
10880 else
10881   cat >conftest.$ac_ext <<_ACEOF
10882 #line $LINENO "configure"
10883 /* confdefs.h.  */
10884 _ACEOF
10885 cat confdefs.h >>conftest.$ac_ext
10886 cat >>conftest.$ac_ext <<_ACEOF
10887 /* end confdefs.h.  */
10888 #include <sys/types.h>
10889 #include <time.h>
10890
10891 int
10892 main ()
10893 {
10894 struct tm *tp; tp->tm_sec;
10895   ;
10896   return 0;
10897 }
10898 _ACEOF
10899 rm -f conftest.$ac_objext
10900 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10901   (eval $ac_compile) 2>&5
10902   ac_status=$?
10903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10904   (exit $ac_status); } &&
10905          { ac_try='test -s conftest.$ac_objext'
10906   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10907   (eval $ac_try) 2>&5
10908   ac_status=$?
10909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10910   (exit $ac_status); }; }; then
10911   ac_cv_struct_tm=time.h
10912 else
10913   echo "$as_me: failed program was:" >&5
10914 sed 's/^/| /' conftest.$ac_ext >&5
10915
10916 ac_cv_struct_tm=sys/time.h
10917 fi
10918 rm -f conftest.$ac_objext conftest.$ac_ext
10919 fi
10920 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
10921 echo "${ECHO_T}$ac_cv_struct_tm" >&6
10922 if test $ac_cv_struct_tm = sys/time.h; then
10923
10924 cat >>confdefs.h <<\_ACEOF
10925 #define TM_IN_SYS_TIME 1
10926 _ACEOF
10927
10928 fi
10929
10930 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
10931 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
10932 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
10933   echo $ECHO_N "(cached) $ECHO_C" >&6
10934 else
10935   cat >conftest.$ac_ext <<_ACEOF
10936 #line $LINENO "configure"
10937 /* confdefs.h.  */
10938 _ACEOF
10939 cat confdefs.h >>conftest.$ac_ext
10940 cat >>conftest.$ac_ext <<_ACEOF
10941 /* end confdefs.h.  */
10942 #include <sys/types.h>
10943 #include <$ac_cv_struct_tm>
10944
10945
10946 int
10947 main ()
10948 {
10949 static struct tm ac_aggr;
10950 if (ac_aggr.tm_zone)
10951 return 0;
10952   ;
10953   return 0;
10954 }
10955 _ACEOF
10956 rm -f conftest.$ac_objext
10957 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10958   (eval $ac_compile) 2>&5
10959   ac_status=$?
10960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10961   (exit $ac_status); } &&
10962          { ac_try='test -s conftest.$ac_objext'
10963   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10964   (eval $ac_try) 2>&5
10965   ac_status=$?
10966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10967   (exit $ac_status); }; }; then
10968   ac_cv_member_struct_tm_tm_zone=yes
10969 else
10970   echo "$as_me: failed program was:" >&5
10971 sed 's/^/| /' conftest.$ac_ext >&5
10972
10973 cat >conftest.$ac_ext <<_ACEOF
10974 #line $LINENO "configure"
10975 /* confdefs.h.  */
10976 _ACEOF
10977 cat confdefs.h >>conftest.$ac_ext
10978 cat >>conftest.$ac_ext <<_ACEOF
10979 /* end confdefs.h.  */
10980 #include <sys/types.h>
10981 #include <$ac_cv_struct_tm>
10982
10983
10984 int
10985 main ()
10986 {
10987 static struct tm ac_aggr;
10988 if (sizeof ac_aggr.tm_zone)
10989 return 0;
10990   ;
10991   return 0;
10992 }
10993 _ACEOF
10994 rm -f conftest.$ac_objext
10995 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10996   (eval $ac_compile) 2>&5
10997   ac_status=$?
10998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10999   (exit $ac_status); } &&
11000          { ac_try='test -s conftest.$ac_objext'
11001   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11002   (eval $ac_try) 2>&5
11003   ac_status=$?
11004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11005   (exit $ac_status); }; }; then
11006   ac_cv_member_struct_tm_tm_zone=yes
11007 else
11008   echo "$as_me: failed program was:" >&5
11009 sed 's/^/| /' conftest.$ac_ext >&5
11010
11011 ac_cv_member_struct_tm_tm_zone=no
11012 fi
11013 rm -f conftest.$ac_objext conftest.$ac_ext
11014 fi
11015 rm -f conftest.$ac_objext conftest.$ac_ext
11016 fi
11017 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
11018 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
11019 if test $ac_cv_member_struct_tm_tm_zone = yes; then
11020
11021 cat >>confdefs.h <<_ACEOF
11022 #define HAVE_STRUCT_TM_TM_ZONE 1
11023 _ACEOF
11024
11025
11026 fi
11027
11028 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
11029
11030 cat >>confdefs.h <<\_ACEOF
11031 #define HAVE_TM_ZONE 1
11032 _ACEOF
11033
11034 else
11035   echo "$as_me:$LINENO: checking for tzname" >&5
11036 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
11037 if test "${ac_cv_var_tzname+set}" = set; then
11038   echo $ECHO_N "(cached) $ECHO_C" >&6
11039 else
11040   cat >conftest.$ac_ext <<_ACEOF
11041 #line $LINENO "configure"
11042 /* confdefs.h.  */
11043 _ACEOF
11044 cat confdefs.h >>conftest.$ac_ext
11045 cat >>conftest.$ac_ext <<_ACEOF
11046 /* end confdefs.h.  */
11047 #include <time.h>
11048 #ifndef tzname /* For SGI.  */
11049 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
11050 #endif
11051
11052 int
11053 main ()
11054 {
11055 atoi(*tzname);
11056   ;
11057   return 0;
11058 }
11059 _ACEOF
11060 rm -f conftest.$ac_objext conftest$ac_exeext
11061 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11062   (eval $ac_link) 2>&5
11063   ac_status=$?
11064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11065   (exit $ac_status); } &&
11066          { ac_try='test -s conftest$ac_exeext'
11067   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11068   (eval $ac_try) 2>&5
11069   ac_status=$?
11070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11071   (exit $ac_status); }; }; then
11072   ac_cv_var_tzname=yes
11073 else
11074   echo "$as_me: failed program was:" >&5
11075 sed 's/^/| /' conftest.$ac_ext >&5
11076
11077 ac_cv_var_tzname=no
11078 fi
11079 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11080 fi
11081 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
11082 echo "${ECHO_T}$ac_cv_var_tzname" >&6
11083   if test $ac_cv_var_tzname = yes; then
11084
11085 cat >>confdefs.h <<\_ACEOF
11086 #define HAVE_TZNAME 1
11087 _ACEOF
11088
11089   fi
11090 fi
11091
11092
11093 echo "$as_me:$LINENO: checking for utime.h" >&5
11094 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6
11095 if test "${ba_cv_header_utime_h+set}" = set; then
11096   echo $ECHO_N "(cached) $ECHO_C" >&6
11097 else
11098   cat >conftest.$ac_ext <<_ACEOF
11099 #line $LINENO "configure"
11100 /* confdefs.h.  */
11101 _ACEOF
11102 cat confdefs.h >>conftest.$ac_ext
11103 cat >>conftest.$ac_ext <<_ACEOF
11104 /* end confdefs.h.  */
11105
11106 #include <sys/types.h>
11107 #include <utime.h>
11108 int
11109 main ()
11110 {
11111 struct utimbuf foo
11112   ;
11113   return 0;
11114 }
11115 _ACEOF
11116 rm -f conftest.$ac_objext
11117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11118   (eval $ac_compile) 2>&5
11119   ac_status=$?
11120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11121   (exit $ac_status); } &&
11122          { ac_try='test -s conftest.$ac_objext'
11123   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11124   (eval $ac_try) 2>&5
11125   ac_status=$?
11126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11127   (exit $ac_status); }; }; then
11128   ba_cv_header_utime_h=yes
11129 else
11130   echo "$as_me: failed program was:" >&5
11131 sed 's/^/| /' conftest.$ac_ext >&5
11132
11133 ba_cv_header_utime_h=no
11134 fi
11135 rm -f conftest.$ac_objext conftest.$ac_ext
11136 fi
11137 echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
11138 echo "${ECHO_T}$ba_cv_header_utime_h" >&6
11139 test $ba_cv_header_utime_h = yes && cat >>confdefs.h <<\_ACEOF
11140 #define HAVE_UTIME_H 1
11141 _ACEOF
11142
11143
11144 echo "$as_me:$LINENO: checking for socklen_t" >&5
11145 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
11146 if test "${ba_cv_header_socklen_t+set}" = set; then
11147   echo $ECHO_N "(cached) $ECHO_C" >&6
11148 else
11149   cat >conftest.$ac_ext <<_ACEOF
11150 #line $LINENO "configure"
11151 /* confdefs.h.  */
11152 _ACEOF
11153 cat confdefs.h >>conftest.$ac_ext
11154 cat >>conftest.$ac_ext <<_ACEOF
11155 /* end confdefs.h.  */
11156
11157 #include <sys/types.h>
11158 #include <sys/socket.h>
11159 int
11160 main ()
11161 {
11162 socklen_t x
11163   ;
11164   return 0;
11165 }
11166 _ACEOF
11167 rm -f conftest.$ac_objext
11168 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11169   (eval $ac_compile) 2>&5
11170   ac_status=$?
11171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11172   (exit $ac_status); } &&
11173          { ac_try='test -s conftest.$ac_objext'
11174   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11175   (eval $ac_try) 2>&5
11176   ac_status=$?
11177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11178   (exit $ac_status); }; }; then
11179   ba_cv_header_socklen_t=yes
11180 else
11181   echo "$as_me: failed program was:" >&5
11182 sed 's/^/| /' conftest.$ac_ext >&5
11183
11184 ba_cv_header_socklen_t=no
11185 fi
11186 rm -f conftest.$ac_objext conftest.$ac_ext
11187 fi
11188 echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
11189 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6
11190 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
11191 #define HAVE_SOCKLEN_T 1
11192 _ACEOF
11193
11194
11195 echo "$as_me:$LINENO: checking for bigendian" >&5
11196 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6
11197 if test "${ba_cv_bigendian+set}" = set; then
11198   echo $ECHO_N "(cached) $ECHO_C" >&6
11199 else
11200   if test "$cross_compiling" = yes; then
11201   ba_cv_bigendian=no
11202 else
11203   cat >conftest.$ac_ext <<_ACEOF
11204 #line $LINENO "configure"
11205 /* confdefs.h.  */
11206 _ACEOF
11207 cat confdefs.h >>conftest.$ac_ext
11208 cat >>conftest.$ac_ext <<_ACEOF
11209 /* end confdefs.h.  */
11210 main(){long a=1L; char *p=(char *)&a; exit(*p);}
11211 _ACEOF
11212 rm -f conftest$ac_exeext
11213 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11214   (eval $ac_link) 2>&5
11215   ac_status=$?
11216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11217   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11218   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11219   (eval $ac_try) 2>&5
11220   ac_status=$?
11221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11222   (exit $ac_status); }; }; then
11223   ba_cv_bigendian=yes
11224 else
11225   echo "$as_me: program exited with status $ac_status" >&5
11226 echo "$as_me: failed program was:" >&5
11227 sed 's/^/| /' conftest.$ac_ext >&5
11228
11229 ( exit $ac_status )
11230 ba_cv_bigendian=no
11231 fi
11232 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11233 fi
11234 fi
11235 echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
11236 echo "${ECHO_T}$ba_cv_bigendian" >&6
11237 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
11238 #define HAVE_BIGENDIAN 1
11239 _ACEOF
11240
11241
11242
11243 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
11244 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
11245 if test "${ac_cv_c_const+set}" = set; then
11246   echo $ECHO_N "(cached) $ECHO_C" >&6
11247 else
11248   cat >conftest.$ac_ext <<_ACEOF
11249 #line $LINENO "configure"
11250 /* confdefs.h.  */
11251 _ACEOF
11252 cat confdefs.h >>conftest.$ac_ext
11253 cat >>conftest.$ac_ext <<_ACEOF
11254 /* end confdefs.h.  */
11255
11256 int
11257 main ()
11258 {
11259 /* FIXME: Include the comments suggested by Paul. */
11260 #ifndef __cplusplus
11261   /* Ultrix mips cc rejects this.  */
11262   typedef int charset[2];
11263   const charset x;
11264   /* SunOS 4.1.1 cc rejects this.  */
11265   char const *const *ccp;
11266   char **p;
11267   /* NEC SVR4.0.2 mips cc rejects this.  */
11268   struct point {int x, y;};
11269   static struct point const zero = {0,0};
11270   /* AIX XL C 1.02.0.0 rejects this.
11271      It does not let you subtract one const X* pointer from another in
11272      an arm of an if-expression whose if-part is not a constant
11273      expression */
11274   const char *g = "string";
11275   ccp = &g + (g ? g-g : 0);
11276   /* HPUX 7.0 cc rejects these. */
11277   ++ccp;
11278   p = (char**) ccp;
11279   ccp = (char const *const *) p;
11280   { /* SCO 3.2v4 cc rejects this.  */
11281     char *t;
11282     char const *s = 0 ? (char *) 0 : (char const *) 0;
11283
11284     *t++ = 0;
11285   }
11286   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
11287     int x[] = {25, 17};
11288     const int *foo = &x[0];
11289     ++foo;
11290   }
11291   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11292     typedef const int *iptr;
11293     iptr p = 0;
11294     ++p;
11295   }
11296   { /* AIX XL C 1.02.0.0 rejects this saying
11297        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11298     struct s { int j; const int *ap[3]; };
11299     struct s *b; b->j = 5;
11300   }
11301   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11302     const int foo = 10;
11303   }
11304 #endif
11305
11306   ;
11307   return 0;
11308 }
11309 _ACEOF
11310 rm -f conftest.$ac_objext
11311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11312   (eval $ac_compile) 2>&5
11313   ac_status=$?
11314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11315   (exit $ac_status); } &&
11316          { ac_try='test -s conftest.$ac_objext'
11317   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11318   (eval $ac_try) 2>&5
11319   ac_status=$?
11320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11321   (exit $ac_status); }; }; then
11322   ac_cv_c_const=yes
11323 else
11324   echo "$as_me: failed program was:" >&5
11325 sed 's/^/| /' conftest.$ac_ext >&5
11326
11327 ac_cv_c_const=no
11328 fi
11329 rm -f conftest.$ac_objext conftest.$ac_ext
11330 fi
11331 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
11332 echo "${ECHO_T}$ac_cv_c_const" >&6
11333 if test $ac_cv_c_const = no; then
11334
11335 cat >>confdefs.h <<\_ACEOF
11336 #define const
11337 _ACEOF
11338
11339 fi
11340
11341
11342
11343 echo "$as_me:$LINENO: checking how to get filesystem type" >&5
11344 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6
11345 fstype=no
11346 # The order of these tests is important.
11347 cat >conftest.$ac_ext <<_ACEOF
11348 #line $LINENO "configure"
11349 /* confdefs.h.  */
11350 _ACEOF
11351 cat confdefs.h >>conftest.$ac_ext
11352 cat >>conftest.$ac_ext <<_ACEOF
11353 /* end confdefs.h.  */
11354 #include <sys/statvfs.h>
11355 #include <sys/fstyp.h>
11356 _ACEOF
11357 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11358   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11359   ac_status=$?
11360   grep -v '^ *+' conftest.er1 >conftest.err
11361   rm -f conftest.er1
11362   cat conftest.err >&5
11363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11364   (exit $ac_status); } >/dev/null; then
11365   if test -s conftest.err; then
11366     ac_cpp_err=$ac_c_preproc_warn_flag
11367   else
11368     ac_cpp_err=
11369   fi
11370 else
11371   ac_cpp_err=yes
11372 fi
11373 if test -z "$ac_cpp_err"; then
11374   cat >>confdefs.h <<\_ACEOF
11375 #define FSTYPE_STATVFS 1
11376 _ACEOF
11377  fstype=SVR4
11378 else
11379   echo "$as_me: failed program was:" >&5
11380 sed 's/^/| /' conftest.$ac_ext >&5
11381
11382
11383 fi
11384 rm -f conftest.err conftest.$ac_ext
11385 if test $fstype = no; then
11386 cat >conftest.$ac_ext <<_ACEOF
11387 #line $LINENO "configure"
11388 /* confdefs.h.  */
11389 _ACEOF
11390 cat confdefs.h >>conftest.$ac_ext
11391 cat >>conftest.$ac_ext <<_ACEOF
11392 /* end confdefs.h.  */
11393 #include <sys/statfs.h>
11394 #include <sys/fstyp.h>
11395 _ACEOF
11396 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11397   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11398   ac_status=$?
11399   grep -v '^ *+' conftest.er1 >conftest.err
11400   rm -f conftest.er1
11401   cat conftest.err >&5
11402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11403   (exit $ac_status); } >/dev/null; then
11404   if test -s conftest.err; then
11405     ac_cpp_err=$ac_c_preproc_warn_flag
11406   else
11407     ac_cpp_err=
11408   fi
11409 else
11410   ac_cpp_err=yes
11411 fi
11412 if test -z "$ac_cpp_err"; then
11413   cat >>confdefs.h <<\_ACEOF
11414 #define FSTYPE_USG_STATFS 1
11415 _ACEOF
11416  fstype=SVR3
11417 else
11418   echo "$as_me: failed program was:" >&5
11419 sed 's/^/| /' conftest.$ac_ext >&5
11420
11421
11422 fi
11423 rm -f conftest.err conftest.$ac_ext
11424 fi
11425 if test $fstype = no; then
11426 cat >conftest.$ac_ext <<_ACEOF
11427 #line $LINENO "configure"
11428 /* confdefs.h.  */
11429 _ACEOF
11430 cat confdefs.h >>conftest.$ac_ext
11431 cat >>conftest.$ac_ext <<_ACEOF
11432 /* end confdefs.h.  */
11433 #include <sys/statfs.h>
11434 #include <sys/vmount.h>
11435 _ACEOF
11436 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11437   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11438   ac_status=$?
11439   grep -v '^ *+' conftest.er1 >conftest.err
11440   rm -f conftest.er1
11441   cat conftest.err >&5
11442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11443   (exit $ac_status); } >/dev/null; then
11444   if test -s conftest.err; then
11445     ac_cpp_err=$ac_c_preproc_warn_flag
11446   else
11447     ac_cpp_err=
11448   fi
11449 else
11450   ac_cpp_err=yes
11451 fi
11452 if test -z "$ac_cpp_err"; then
11453   cat >>confdefs.h <<\_ACEOF
11454 #define FSTYPE_AIX_STATFS 1
11455 _ACEOF
11456  fstype=AIX
11457 else
11458   echo "$as_me: failed program was:" >&5
11459 sed 's/^/| /' conftest.$ac_ext >&5
11460
11461
11462 fi
11463 rm -f conftest.err conftest.$ac_ext
11464 fi
11465 if test $fstype = no; then
11466 cat >conftest.$ac_ext <<_ACEOF
11467 #line $LINENO "configure"
11468 /* confdefs.h.  */
11469 _ACEOF
11470 cat confdefs.h >>conftest.$ac_ext
11471 cat >>conftest.$ac_ext <<_ACEOF
11472 /* end confdefs.h.  */
11473 #include <mntent.h>
11474 _ACEOF
11475 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11476   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11477   ac_status=$?
11478   grep -v '^ *+' conftest.er1 >conftest.err
11479   rm -f conftest.er1
11480   cat conftest.err >&5
11481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11482   (exit $ac_status); } >/dev/null; then
11483   if test -s conftest.err; then
11484     ac_cpp_err=$ac_c_preproc_warn_flag
11485   else
11486     ac_cpp_err=
11487   fi
11488 else
11489   ac_cpp_err=yes
11490 fi
11491 if test -z "$ac_cpp_err"; then
11492   cat >>confdefs.h <<\_ACEOF
11493 #define FSTYPE_MNTENT 1
11494 _ACEOF
11495  fstype=4.3BSD
11496 else
11497   echo "$as_me: failed program was:" >&5
11498 sed 's/^/| /' conftest.$ac_ext >&5
11499
11500
11501 fi
11502 rm -f conftest.err conftest.$ac_ext
11503 fi
11504 if test $fstype = no; then
11505 cat >conftest.$ac_ext <<_ACEOF
11506 #line $LINENO "configure"
11507 /* confdefs.h.  */
11508 _ACEOF
11509 cat confdefs.h >>conftest.$ac_ext
11510 cat >>conftest.$ac_ext <<_ACEOF
11511 /* end confdefs.h.  */
11512 #include <sys/mount.h>
11513
11514 _ACEOF
11515 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11516   $EGREP "f_type;" >/dev/null 2>&1; then
11517   cat >>confdefs.h <<\_ACEOF
11518 #define FSTYPE_STATFS 1
11519 _ACEOF
11520  fstype=4.4BSD/OSF1
11521 fi
11522 rm -f conftest*
11523
11524 fi
11525 if test $fstype = no; then
11526 cat >conftest.$ac_ext <<_ACEOF
11527 #line $LINENO "configure"
11528 /* confdefs.h.  */
11529 _ACEOF
11530 cat confdefs.h >>conftest.$ac_ext
11531 cat >>conftest.$ac_ext <<_ACEOF
11532 /* end confdefs.h.  */
11533 #include <sys/mount.h>
11534 #include <sys/fs_types.h>
11535 _ACEOF
11536 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11537   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11538   ac_status=$?
11539   grep -v '^ *+' conftest.er1 >conftest.err
11540   rm -f conftest.er1
11541   cat conftest.err >&5
11542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11543   (exit $ac_status); } >/dev/null; then
11544   if test -s conftest.err; then
11545     ac_cpp_err=$ac_c_preproc_warn_flag
11546   else
11547     ac_cpp_err=
11548   fi
11549 else
11550   ac_cpp_err=yes
11551 fi
11552 if test -z "$ac_cpp_err"; then
11553   cat >>confdefs.h <<\_ACEOF
11554 #define FSTYPE_GETMNT 1
11555 _ACEOF
11556  fstype=Ultrix
11557 else
11558   echo "$as_me: failed program was:" >&5
11559 sed 's/^/| /' conftest.$ac_ext >&5
11560
11561
11562 fi
11563 rm -f conftest.err conftest.$ac_ext
11564 fi
11565 echo "$as_me:$LINENO: result: $fstype" >&5
11566 echo "${ECHO_T}$fstype" >&6
11567
11568 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
11569 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
11570 if test "${ac_cv_type_signal+set}" = set; then
11571   echo $ECHO_N "(cached) $ECHO_C" >&6
11572 else
11573   cat >conftest.$ac_ext <<_ACEOF
11574 #line $LINENO "configure"
11575 /* confdefs.h.  */
11576 _ACEOF
11577 cat confdefs.h >>conftest.$ac_ext
11578 cat >>conftest.$ac_ext <<_ACEOF
11579 /* end confdefs.h.  */
11580 #include <sys/types.h>
11581 #include <signal.h>
11582 #ifdef signal
11583 # undef signal
11584 #endif
11585 #ifdef __cplusplus
11586 extern "C" void (*signal (int, void (*)(int)))(int);
11587 #else
11588 void (*signal ()) ();
11589 #endif
11590
11591 int
11592 main ()
11593 {
11594 int i;
11595   ;
11596   return 0;
11597 }
11598 _ACEOF
11599 rm -f conftest.$ac_objext
11600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11601   (eval $ac_compile) 2>&5
11602   ac_status=$?
11603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11604   (exit $ac_status); } &&
11605          { ac_try='test -s conftest.$ac_objext'
11606   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11607   (eval $ac_try) 2>&5
11608   ac_status=$?
11609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11610   (exit $ac_status); }; }; then
11611   ac_cv_type_signal=void
11612 else
11613   echo "$as_me: failed program was:" >&5
11614 sed 's/^/| /' conftest.$ac_ext >&5
11615
11616 ac_cv_type_signal=int
11617 fi
11618 rm -f conftest.$ac_objext conftest.$ac_ext
11619 fi
11620 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
11621 echo "${ECHO_T}$ac_cv_type_signal" >&6
11622
11623 cat >>confdefs.h <<_ACEOF
11624 #define RETSIGTYPE $ac_cv_type_signal
11625 _ACEOF
11626
11627
11628
11629 echo "$as_me:$LINENO: checking for type of signal functions" >&5
11630 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6
11631 if test "${bash_cv_signal_vintage+set}" = set; then
11632   echo $ECHO_N "(cached) $ECHO_C" >&6
11633 else
11634
11635   cat >conftest.$ac_ext <<_ACEOF
11636 #line $LINENO "configure"
11637 /* confdefs.h.  */
11638 _ACEOF
11639 cat confdefs.h >>conftest.$ac_ext
11640 cat >>conftest.$ac_ext <<_ACEOF
11641 /* end confdefs.h.  */
11642 #include <signal.h>
11643 int
11644 main ()
11645 {
11646
11647     sigset_t ss;
11648     struct sigaction sa;
11649     sigemptyset(&ss); sigsuspend(&ss);
11650     sigaction(SIGINT, &sa, (struct sigaction *) 0);
11651     sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
11652
11653   ;
11654   return 0;
11655 }
11656 _ACEOF
11657 rm -f conftest.$ac_objext conftest$ac_exeext
11658 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11659   (eval $ac_link) 2>&5
11660   ac_status=$?
11661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11662   (exit $ac_status); } &&
11663          { ac_try='test -s conftest$ac_exeext'
11664   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11665   (eval $ac_try) 2>&5
11666   ac_status=$?
11667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11668   (exit $ac_status); }; }; then
11669   bash_cv_signal_vintage=posix
11670 else
11671   echo "$as_me: failed program was:" >&5
11672 sed 's/^/| /' conftest.$ac_ext >&5
11673
11674
11675     cat >conftest.$ac_ext <<_ACEOF
11676 #line $LINENO "configure"
11677 /* confdefs.h.  */
11678 _ACEOF
11679 cat confdefs.h >>conftest.$ac_ext
11680 cat >>conftest.$ac_ext <<_ACEOF
11681 /* end confdefs.h.  */
11682 #include <signal.h>
11683 int
11684 main ()
11685 {
11686
11687         int mask = sigmask(SIGINT);
11688         sigsetmask(mask); sigblock(mask); sigpause(mask);
11689
11690   ;
11691   return 0;
11692 }
11693 _ACEOF
11694 rm -f conftest.$ac_objext conftest$ac_exeext
11695 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11696   (eval $ac_link) 2>&5
11697   ac_status=$?
11698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11699   (exit $ac_status); } &&
11700          { ac_try='test -s conftest$ac_exeext'
11701   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11702   (eval $ac_try) 2>&5
11703   ac_status=$?
11704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11705   (exit $ac_status); }; }; then
11706   bash_cv_signal_vintage=4.2bsd
11707 else
11708   echo "$as_me: failed program was:" >&5
11709 sed 's/^/| /' conftest.$ac_ext >&5
11710
11711
11712       cat >conftest.$ac_ext <<_ACEOF
11713 #line $LINENO "configure"
11714 /* confdefs.h.  */
11715 _ACEOF
11716 cat confdefs.h >>conftest.$ac_ext
11717 cat >>conftest.$ac_ext <<_ACEOF
11718 /* end confdefs.h.  */
11719
11720         #include <signal.h>
11721         RETSIGTYPE foo() { }
11722 int
11723 main ()
11724 {
11725
11726                 int mask = sigmask(SIGINT);
11727                 sigset(SIGINT, foo); sigrelse(SIGINT);
11728                 sighold(SIGINT); sigpause(SIGINT);
11729
11730   ;
11731   return 0;
11732 }
11733 _ACEOF
11734 rm -f conftest.$ac_objext conftest$ac_exeext
11735 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11736   (eval $ac_link) 2>&5
11737   ac_status=$?
11738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11739   (exit $ac_status); } &&
11740          { ac_try='test -s conftest$ac_exeext'
11741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11742   (eval $ac_try) 2>&5
11743   ac_status=$?
11744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11745   (exit $ac_status); }; }; then
11746   bash_cv_signal_vintage=svr3
11747 else
11748   echo "$as_me: failed program was:" >&5
11749 sed 's/^/| /' conftest.$ac_ext >&5
11750
11751 bash_cv_signal_vintage=v7
11752
11753 fi
11754 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11755
11756 fi
11757 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11758
11759 fi
11760 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11761
11762 fi
11763
11764 echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
11765 echo "${ECHO_T}$bash_cv_signal_vintage" >&6
11766 if test "$bash_cv_signal_vintage" = posix; then
11767 cat >>confdefs.h <<\_ACEOF
11768 #define HAVE_POSIX_SIGNALS 1
11769 _ACEOF
11770
11771 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
11772 cat >>confdefs.h <<\_ACEOF
11773 #define HAVE_BSD_SIGNALS 1
11774 _ACEOF
11775
11776 elif test "$bash_cv_signal_vintage" = svr3; then
11777 cat >>confdefs.h <<\_ACEOF
11778 #define HAVE_USG_SIGHOLD 1
11779 _ACEOF
11780
11781 fi
11782
11783 echo "$as_me:$LINENO: checking for mode_t" >&5
11784 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
11785 if test "${ac_cv_type_mode_t+set}" = set; then
11786   echo $ECHO_N "(cached) $ECHO_C" >&6
11787 else
11788   cat >conftest.$ac_ext <<_ACEOF
11789 #line $LINENO "configure"
11790 /* confdefs.h.  */
11791 _ACEOF
11792 cat confdefs.h >>conftest.$ac_ext
11793 cat >>conftest.$ac_ext <<_ACEOF
11794 /* end confdefs.h.  */
11795 $ac_includes_default
11796 int
11797 main ()
11798 {
11799 if ((mode_t *) 0)
11800   return 0;
11801 if (sizeof (mode_t))
11802   return 0;
11803   ;
11804   return 0;
11805 }
11806 _ACEOF
11807 rm -f conftest.$ac_objext
11808 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11809   (eval $ac_compile) 2>&5
11810   ac_status=$?
11811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11812   (exit $ac_status); } &&
11813          { ac_try='test -s conftest.$ac_objext'
11814   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11815   (eval $ac_try) 2>&5
11816   ac_status=$?
11817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11818   (exit $ac_status); }; }; then
11819   ac_cv_type_mode_t=yes
11820 else
11821   echo "$as_me: failed program was:" >&5
11822 sed 's/^/| /' conftest.$ac_ext >&5
11823
11824 ac_cv_type_mode_t=no
11825 fi
11826 rm -f conftest.$ac_objext conftest.$ac_ext
11827 fi
11828 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
11829 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
11830 if test $ac_cv_type_mode_t = yes; then
11831   :
11832 else
11833
11834 cat >>confdefs.h <<_ACEOF
11835 #define mode_t int
11836 _ACEOF
11837
11838 fi
11839
11840 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
11841 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
11842 if test "${ac_cv_type_uid_t+set}" = set; then
11843   echo $ECHO_N "(cached) $ECHO_C" >&6
11844 else
11845   cat >conftest.$ac_ext <<_ACEOF
11846 #line $LINENO "configure"
11847 /* confdefs.h.  */
11848 _ACEOF
11849 cat confdefs.h >>conftest.$ac_ext
11850 cat >>conftest.$ac_ext <<_ACEOF
11851 /* end confdefs.h.  */
11852 #include <sys/types.h>
11853
11854 _ACEOF
11855 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11856   $EGREP "uid_t" >/dev/null 2>&1; then
11857   ac_cv_type_uid_t=yes
11858 else
11859   ac_cv_type_uid_t=no
11860 fi
11861 rm -f conftest*
11862
11863 fi
11864 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
11865 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
11866 if test $ac_cv_type_uid_t = no; then
11867
11868 cat >>confdefs.h <<\_ACEOF
11869 #define uid_t int
11870 _ACEOF
11871
11872
11873 cat >>confdefs.h <<\_ACEOF
11874 #define gid_t int
11875 _ACEOF
11876
11877 fi
11878
11879 echo "$as_me:$LINENO: checking for size_t" >&5
11880 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
11881 if test "${ac_cv_type_size_t+set}" = set; then
11882   echo $ECHO_N "(cached) $ECHO_C" >&6
11883 else
11884   cat >conftest.$ac_ext <<_ACEOF
11885 #line $LINENO "configure"
11886 /* confdefs.h.  */
11887 _ACEOF
11888 cat confdefs.h >>conftest.$ac_ext
11889 cat >>conftest.$ac_ext <<_ACEOF
11890 /* end confdefs.h.  */
11891 $ac_includes_default
11892 int
11893 main ()
11894 {
11895 if ((size_t *) 0)
11896   return 0;
11897 if (sizeof (size_t))
11898   return 0;
11899   ;
11900   return 0;
11901 }
11902 _ACEOF
11903 rm -f conftest.$ac_objext
11904 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11905   (eval $ac_compile) 2>&5
11906   ac_status=$?
11907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11908   (exit $ac_status); } &&
11909          { ac_try='test -s conftest.$ac_objext'
11910   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11911   (eval $ac_try) 2>&5
11912   ac_status=$?
11913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11914   (exit $ac_status); }; }; then
11915   ac_cv_type_size_t=yes
11916 else
11917   echo "$as_me: failed program was:" >&5
11918 sed 's/^/| /' conftest.$ac_ext >&5
11919
11920 ac_cv_type_size_t=no
11921 fi
11922 rm -f conftest.$ac_objext conftest.$ac_ext
11923 fi
11924 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
11925 echo "${ECHO_T}$ac_cv_type_size_t" >&6
11926 if test $ac_cv_type_size_t = yes; then
11927   :
11928 else
11929
11930 cat >>confdefs.h <<_ACEOF
11931 #define size_t unsigned
11932 _ACEOF
11933
11934 fi
11935
11936 echo "$as_me:$LINENO: checking for pid_t" >&5
11937 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
11938 if test "${ac_cv_type_pid_t+set}" = set; then
11939   echo $ECHO_N "(cached) $ECHO_C" >&6
11940 else
11941   cat >conftest.$ac_ext <<_ACEOF
11942 #line $LINENO "configure"
11943 /* confdefs.h.  */
11944 _ACEOF
11945 cat confdefs.h >>conftest.$ac_ext
11946 cat >>conftest.$ac_ext <<_ACEOF
11947 /* end confdefs.h.  */
11948 $ac_includes_default
11949 int
11950 main ()
11951 {
11952 if ((pid_t *) 0)
11953   return 0;
11954 if (sizeof (pid_t))
11955   return 0;
11956   ;
11957   return 0;
11958 }
11959 _ACEOF
11960 rm -f conftest.$ac_objext
11961 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11962   (eval $ac_compile) 2>&5
11963   ac_status=$?
11964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11965   (exit $ac_status); } &&
11966          { ac_try='test -s conftest.$ac_objext'
11967   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11968   (eval $ac_try) 2>&5
11969   ac_status=$?
11970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11971   (exit $ac_status); }; }; then
11972   ac_cv_type_pid_t=yes
11973 else
11974   echo "$as_me: failed program was:" >&5
11975 sed 's/^/| /' conftest.$ac_ext >&5
11976
11977 ac_cv_type_pid_t=no
11978 fi
11979 rm -f conftest.$ac_objext conftest.$ac_ext
11980 fi
11981 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
11982 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
11983 if test $ac_cv_type_pid_t = yes; then
11984   :
11985 else
11986
11987 cat >>confdefs.h <<_ACEOF
11988 #define pid_t int
11989 _ACEOF
11990
11991 fi
11992
11993 echo "$as_me:$LINENO: checking for off_t" >&5
11994 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
11995 if test "${ac_cv_type_off_t+set}" = set; then
11996   echo $ECHO_N "(cached) $ECHO_C" >&6
11997 else
11998   cat >conftest.$ac_ext <<_ACEOF
11999 #line $LINENO "configure"
12000 /* confdefs.h.  */
12001 _ACEOF
12002 cat confdefs.h >>conftest.$ac_ext
12003 cat >>conftest.$ac_ext <<_ACEOF
12004 /* end confdefs.h.  */
12005 $ac_includes_default
12006 int
12007 main ()
12008 {
12009 if ((off_t *) 0)
12010   return 0;
12011 if (sizeof (off_t))
12012   return 0;
12013   ;
12014   return 0;
12015 }
12016 _ACEOF
12017 rm -f conftest.$ac_objext
12018 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12019   (eval $ac_compile) 2>&5
12020   ac_status=$?
12021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12022   (exit $ac_status); } &&
12023          { ac_try='test -s conftest.$ac_objext'
12024   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12025   (eval $ac_try) 2>&5
12026   ac_status=$?
12027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12028   (exit $ac_status); }; }; then
12029   ac_cv_type_off_t=yes
12030 else
12031   echo "$as_me: failed program was:" >&5
12032 sed 's/^/| /' conftest.$ac_ext >&5
12033
12034 ac_cv_type_off_t=no
12035 fi
12036 rm -f conftest.$ac_objext conftest.$ac_ext
12037 fi
12038 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
12039 echo "${ECHO_T}$ac_cv_type_off_t" >&6
12040 if test $ac_cv_type_off_t = yes; then
12041   :
12042 else
12043
12044 cat >>confdefs.h <<_ACEOF
12045 #define off_t long
12046 _ACEOF
12047
12048 fi
12049
12050 echo "$as_me:$LINENO: checking for ino_t" >&5
12051 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
12052 if test "${ac_cv_type_ino_t+set}" = set; then
12053   echo $ECHO_N "(cached) $ECHO_C" >&6
12054 else
12055   cat >conftest.$ac_ext <<_ACEOF
12056 #line $LINENO "configure"
12057 /* confdefs.h.  */
12058 _ACEOF
12059 cat confdefs.h >>conftest.$ac_ext
12060 cat >>conftest.$ac_ext <<_ACEOF
12061 /* end confdefs.h.  */
12062 $ac_includes_default
12063 int
12064 main ()
12065 {
12066 if ((ino_t *) 0)
12067   return 0;
12068 if (sizeof (ino_t))
12069   return 0;
12070   ;
12071   return 0;
12072 }
12073 _ACEOF
12074 rm -f conftest.$ac_objext
12075 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12076   (eval $ac_compile) 2>&5
12077   ac_status=$?
12078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12079   (exit $ac_status); } &&
12080          { ac_try='test -s conftest.$ac_objext'
12081   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12082   (eval $ac_try) 2>&5
12083   ac_status=$?
12084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12085   (exit $ac_status); }; }; then
12086   ac_cv_type_ino_t=yes
12087 else
12088   echo "$as_me: failed program was:" >&5
12089 sed 's/^/| /' conftest.$ac_ext >&5
12090
12091 ac_cv_type_ino_t=no
12092 fi
12093 rm -f conftest.$ac_objext conftest.$ac_ext
12094 fi
12095 echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
12096 echo "${ECHO_T}$ac_cv_type_ino_t" >&6
12097 if test $ac_cv_type_ino_t = yes; then
12098   :
12099 else
12100
12101 cat >>confdefs.h <<_ACEOF
12102 #define ino_t unsigned long
12103 _ACEOF
12104
12105 fi
12106
12107 echo "$as_me:$LINENO: checking for dev_t" >&5
12108 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6
12109 if test "${ac_cv_type_dev_t+set}" = set; then
12110   echo $ECHO_N "(cached) $ECHO_C" >&6
12111 else
12112   cat >conftest.$ac_ext <<_ACEOF
12113 #line $LINENO "configure"
12114 /* confdefs.h.  */
12115 _ACEOF
12116 cat confdefs.h >>conftest.$ac_ext
12117 cat >>conftest.$ac_ext <<_ACEOF
12118 /* end confdefs.h.  */
12119 $ac_includes_default
12120 int
12121 main ()
12122 {
12123 if ((dev_t *) 0)
12124   return 0;
12125 if (sizeof (dev_t))
12126   return 0;
12127   ;
12128   return 0;
12129 }
12130 _ACEOF
12131 rm -f conftest.$ac_objext
12132 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12133   (eval $ac_compile) 2>&5
12134   ac_status=$?
12135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12136   (exit $ac_status); } &&
12137          { ac_try='test -s conftest.$ac_objext'
12138   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12139   (eval $ac_try) 2>&5
12140   ac_status=$?
12141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12142   (exit $ac_status); }; }; then
12143   ac_cv_type_dev_t=yes
12144 else
12145   echo "$as_me: failed program was:" >&5
12146 sed 's/^/| /' conftest.$ac_ext >&5
12147
12148 ac_cv_type_dev_t=no
12149 fi
12150 rm -f conftest.$ac_objext conftest.$ac_ext
12151 fi
12152 echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
12153 echo "${ECHO_T}$ac_cv_type_dev_t" >&6
12154 if test $ac_cv_type_dev_t = yes; then
12155   :
12156 else
12157
12158 cat >>confdefs.h <<_ACEOF
12159 #define dev_t unsigned long
12160 _ACEOF
12161
12162 fi
12163
12164 echo "$as_me:$LINENO: checking for daddr_t" >&5
12165 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6
12166 if test "${ac_cv_type_daddr_t+set}" = set; then
12167   echo $ECHO_N "(cached) $ECHO_C" >&6
12168 else
12169   cat >conftest.$ac_ext <<_ACEOF
12170 #line $LINENO "configure"
12171 /* confdefs.h.  */
12172 _ACEOF
12173 cat confdefs.h >>conftest.$ac_ext
12174 cat >>conftest.$ac_ext <<_ACEOF
12175 /* end confdefs.h.  */
12176 $ac_includes_default
12177 int
12178 main ()
12179 {
12180 if ((daddr_t *) 0)
12181   return 0;
12182 if (sizeof (daddr_t))
12183   return 0;
12184   ;
12185   return 0;
12186 }
12187 _ACEOF
12188 rm -f conftest.$ac_objext
12189 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12190   (eval $ac_compile) 2>&5
12191   ac_status=$?
12192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12193   (exit $ac_status); } &&
12194          { ac_try='test -s conftest.$ac_objext'
12195   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12196   (eval $ac_try) 2>&5
12197   ac_status=$?
12198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12199   (exit $ac_status); }; }; then
12200   ac_cv_type_daddr_t=yes
12201 else
12202   echo "$as_me: failed program was:" >&5
12203 sed 's/^/| /' conftest.$ac_ext >&5
12204
12205 ac_cv_type_daddr_t=no
12206 fi
12207 rm -f conftest.$ac_objext conftest.$ac_ext
12208 fi
12209 echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
12210 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6
12211 if test $ac_cv_type_daddr_t = yes; then
12212   :
12213 else
12214
12215 cat >>confdefs.h <<_ACEOF
12216 #define daddr_t long
12217 _ACEOF
12218
12219 fi
12220
12221 echo "$as_me:$LINENO: checking for major_t" >&5
12222 echo $ECHO_N "checking for major_t... $ECHO_C" >&6
12223 if test "${ac_cv_type_major_t+set}" = set; then
12224   echo $ECHO_N "(cached) $ECHO_C" >&6
12225 else
12226   cat >conftest.$ac_ext <<_ACEOF
12227 #line $LINENO "configure"
12228 /* confdefs.h.  */
12229 _ACEOF
12230 cat confdefs.h >>conftest.$ac_ext
12231 cat >>conftest.$ac_ext <<_ACEOF
12232 /* end confdefs.h.  */
12233 $ac_includes_default
12234 int
12235 main ()
12236 {
12237 if ((major_t *) 0)
12238   return 0;
12239 if (sizeof (major_t))
12240   return 0;
12241   ;
12242   return 0;
12243 }
12244 _ACEOF
12245 rm -f conftest.$ac_objext
12246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12247   (eval $ac_compile) 2>&5
12248   ac_status=$?
12249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12250   (exit $ac_status); } &&
12251          { ac_try='test -s conftest.$ac_objext'
12252   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12253   (eval $ac_try) 2>&5
12254   ac_status=$?
12255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12256   (exit $ac_status); }; }; then
12257   ac_cv_type_major_t=yes
12258 else
12259   echo "$as_me: failed program was:" >&5
12260 sed 's/^/| /' conftest.$ac_ext >&5
12261
12262 ac_cv_type_major_t=no
12263 fi
12264 rm -f conftest.$ac_objext conftest.$ac_ext
12265 fi
12266 echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
12267 echo "${ECHO_T}$ac_cv_type_major_t" >&6
12268 if test $ac_cv_type_major_t = yes; then
12269   :
12270 else
12271
12272 cat >>confdefs.h <<_ACEOF
12273 #define major_t int
12274 _ACEOF
12275
12276 fi
12277
12278 echo "$as_me:$LINENO: checking for minor_t" >&5
12279 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6
12280 if test "${ac_cv_type_minor_t+set}" = set; then
12281   echo $ECHO_N "(cached) $ECHO_C" >&6
12282 else
12283   cat >conftest.$ac_ext <<_ACEOF
12284 #line $LINENO "configure"
12285 /* confdefs.h.  */
12286 _ACEOF
12287 cat confdefs.h >>conftest.$ac_ext
12288 cat >>conftest.$ac_ext <<_ACEOF
12289 /* end confdefs.h.  */
12290 $ac_includes_default
12291 int
12292 main ()
12293 {
12294 if ((minor_t *) 0)
12295   return 0;
12296 if (sizeof (minor_t))
12297   return 0;
12298   ;
12299   return 0;
12300 }
12301 _ACEOF
12302 rm -f conftest.$ac_objext
12303 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12304   (eval $ac_compile) 2>&5
12305   ac_status=$?
12306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12307   (exit $ac_status); } &&
12308          { ac_try='test -s conftest.$ac_objext'
12309   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12310   (eval $ac_try) 2>&5
12311   ac_status=$?
12312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12313   (exit $ac_status); }; }; then
12314   ac_cv_type_minor_t=yes
12315 else
12316   echo "$as_me: failed program was:" >&5
12317 sed 's/^/| /' conftest.$ac_ext >&5
12318
12319 ac_cv_type_minor_t=no
12320 fi
12321 rm -f conftest.$ac_objext conftest.$ac_ext
12322 fi
12323 echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
12324 echo "${ECHO_T}$ac_cv_type_minor_t" >&6
12325 if test $ac_cv_type_minor_t = yes; then
12326   :
12327 else
12328
12329 cat >>confdefs.h <<_ACEOF
12330 #define minor_t int
12331 _ACEOF
12332
12333 fi
12334
12335 echo "$as_me:$LINENO: checking for ssize_t" >&5
12336 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
12337 if test "${ac_cv_type_ssize_t+set}" = set; then
12338   echo $ECHO_N "(cached) $ECHO_C" >&6
12339 else
12340   cat >conftest.$ac_ext <<_ACEOF
12341 #line $LINENO "configure"
12342 /* confdefs.h.  */
12343 _ACEOF
12344 cat confdefs.h >>conftest.$ac_ext
12345 cat >>conftest.$ac_ext <<_ACEOF
12346 /* end confdefs.h.  */
12347 $ac_includes_default
12348 int
12349 main ()
12350 {
12351 if ((ssize_t *) 0)
12352   return 0;
12353 if (sizeof (ssize_t))
12354   return 0;
12355   ;
12356   return 0;
12357 }
12358 _ACEOF
12359 rm -f conftest.$ac_objext
12360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12361   (eval $ac_compile) 2>&5
12362   ac_status=$?
12363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12364   (exit $ac_status); } &&
12365          { ac_try='test -s conftest.$ac_objext'
12366   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12367   (eval $ac_try) 2>&5
12368   ac_status=$?
12369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12370   (exit $ac_status); }; }; then
12371   ac_cv_type_ssize_t=yes
12372 else
12373   echo "$as_me: failed program was:" >&5
12374 sed 's/^/| /' conftest.$ac_ext >&5
12375
12376 ac_cv_type_ssize_t=no
12377 fi
12378 rm -f conftest.$ac_objext conftest.$ac_ext
12379 fi
12380 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
12381 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
12382 if test $ac_cv_type_ssize_t = yes; then
12383   :
12384 else
12385
12386 cat >>confdefs.h <<_ACEOF
12387 #define ssize_t int
12388 _ACEOF
12389
12390 fi
12391
12392 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
12393 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
12394 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
12395   echo $ECHO_N "(cached) $ECHO_C" >&6
12396 else
12397   cat >conftest.$ac_ext <<_ACEOF
12398 #line $LINENO "configure"
12399 /* confdefs.h.  */
12400 _ACEOF
12401 cat confdefs.h >>conftest.$ac_ext
12402 cat >>conftest.$ac_ext <<_ACEOF
12403 /* end confdefs.h.  */
12404 $ac_includes_default
12405 int
12406 main ()
12407 {
12408 static struct stat ac_aggr;
12409 if (ac_aggr.st_blocks)
12410 return 0;
12411   ;
12412   return 0;
12413 }
12414 _ACEOF
12415 rm -f conftest.$ac_objext
12416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12417   (eval $ac_compile) 2>&5
12418   ac_status=$?
12419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12420   (exit $ac_status); } &&
12421          { ac_try='test -s conftest.$ac_objext'
12422   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12423   (eval $ac_try) 2>&5
12424   ac_status=$?
12425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12426   (exit $ac_status); }; }; then
12427   ac_cv_member_struct_stat_st_blocks=yes
12428 else
12429   echo "$as_me: failed program was:" >&5
12430 sed 's/^/| /' conftest.$ac_ext >&5
12431
12432 cat >conftest.$ac_ext <<_ACEOF
12433 #line $LINENO "configure"
12434 /* confdefs.h.  */
12435 _ACEOF
12436 cat confdefs.h >>conftest.$ac_ext
12437 cat >>conftest.$ac_ext <<_ACEOF
12438 /* end confdefs.h.  */
12439 $ac_includes_default
12440 int
12441 main ()
12442 {
12443 static struct stat ac_aggr;
12444 if (sizeof ac_aggr.st_blocks)
12445 return 0;
12446   ;
12447   return 0;
12448 }
12449 _ACEOF
12450 rm -f conftest.$ac_objext
12451 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12452   (eval $ac_compile) 2>&5
12453   ac_status=$?
12454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12455   (exit $ac_status); } &&
12456          { ac_try='test -s conftest.$ac_objext'
12457   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12458   (eval $ac_try) 2>&5
12459   ac_status=$?
12460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12461   (exit $ac_status); }; }; then
12462   ac_cv_member_struct_stat_st_blocks=yes
12463 else
12464   echo "$as_me: failed program was:" >&5
12465 sed 's/^/| /' conftest.$ac_ext >&5
12466
12467 ac_cv_member_struct_stat_st_blocks=no
12468 fi
12469 rm -f conftest.$ac_objext conftest.$ac_ext
12470 fi
12471 rm -f conftest.$ac_objext conftest.$ac_ext
12472 fi
12473 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
12474 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
12475 if test $ac_cv_member_struct_stat_st_blocks = yes; then
12476
12477 cat >>confdefs.h <<_ACEOF
12478 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
12479 _ACEOF
12480
12481
12482 cat >>confdefs.h <<\_ACEOF
12483 #define HAVE_ST_BLOCKS 1
12484 _ACEOF
12485
12486 else
12487   LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
12488 fi
12489
12490
12491
12492 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
12493 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
12494 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
12495   echo $ECHO_N "(cached) $ECHO_C" >&6
12496 else
12497   cat >conftest.$ac_ext <<_ACEOF
12498 #line $LINENO "configure"
12499 /* confdefs.h.  */
12500 _ACEOF
12501 cat confdefs.h >>conftest.$ac_ext
12502 cat >>conftest.$ac_ext <<_ACEOF
12503 /* end confdefs.h.  */
12504 $ac_includes_default
12505 int
12506 main ()
12507 {
12508 static struct stat ac_aggr;
12509 if (ac_aggr.st_rdev)
12510 return 0;
12511   ;
12512   return 0;
12513 }
12514 _ACEOF
12515 rm -f conftest.$ac_objext
12516 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12517   (eval $ac_compile) 2>&5
12518   ac_status=$?
12519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12520   (exit $ac_status); } &&
12521          { ac_try='test -s conftest.$ac_objext'
12522   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12523   (eval $ac_try) 2>&5
12524   ac_status=$?
12525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12526   (exit $ac_status); }; }; then
12527   ac_cv_member_struct_stat_st_rdev=yes
12528 else
12529   echo "$as_me: failed program was:" >&5
12530 sed 's/^/| /' conftest.$ac_ext >&5
12531
12532 cat >conftest.$ac_ext <<_ACEOF
12533 #line $LINENO "configure"
12534 /* confdefs.h.  */
12535 _ACEOF
12536 cat confdefs.h >>conftest.$ac_ext
12537 cat >>conftest.$ac_ext <<_ACEOF
12538 /* end confdefs.h.  */
12539 $ac_includes_default
12540 int
12541 main ()
12542 {
12543 static struct stat ac_aggr;
12544 if (sizeof ac_aggr.st_rdev)
12545 return 0;
12546   ;
12547   return 0;
12548 }
12549 _ACEOF
12550 rm -f conftest.$ac_objext
12551 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12552   (eval $ac_compile) 2>&5
12553   ac_status=$?
12554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12555   (exit $ac_status); } &&
12556          { ac_try='test -s conftest.$ac_objext'
12557   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12558   (eval $ac_try) 2>&5
12559   ac_status=$?
12560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12561   (exit $ac_status); }; }; then
12562   ac_cv_member_struct_stat_st_rdev=yes
12563 else
12564   echo "$as_me: failed program was:" >&5
12565 sed 's/^/| /' conftest.$ac_ext >&5
12566
12567 ac_cv_member_struct_stat_st_rdev=no
12568 fi
12569 rm -f conftest.$ac_objext conftest.$ac_ext
12570 fi
12571 rm -f conftest.$ac_objext conftest.$ac_ext
12572 fi
12573 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
12574 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
12575 if test $ac_cv_member_struct_stat_st_rdev = yes; then
12576
12577 cat >>confdefs.h <<_ACEOF
12578 #define HAVE_STRUCT_STAT_ST_RDEV 1
12579 _ACEOF
12580
12581
12582 cat >>confdefs.h <<\_ACEOF
12583 #define HAVE_ST_RDEV 1
12584 _ACEOF
12585
12586 fi
12587
12588
12589 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
12590 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
12591 if test "${ac_cv_struct_tm+set}" = set; then
12592   echo $ECHO_N "(cached) $ECHO_C" >&6
12593 else
12594   cat >conftest.$ac_ext <<_ACEOF
12595 #line $LINENO "configure"
12596 /* confdefs.h.  */
12597 _ACEOF
12598 cat confdefs.h >>conftest.$ac_ext
12599 cat >>conftest.$ac_ext <<_ACEOF
12600 /* end confdefs.h.  */
12601 #include <sys/types.h>
12602 #include <time.h>
12603
12604 int
12605 main ()
12606 {
12607 struct tm *tp; tp->tm_sec;
12608   ;
12609   return 0;
12610 }
12611 _ACEOF
12612 rm -f conftest.$ac_objext
12613 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12614   (eval $ac_compile) 2>&5
12615   ac_status=$?
12616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12617   (exit $ac_status); } &&
12618          { ac_try='test -s conftest.$ac_objext'
12619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12620   (eval $ac_try) 2>&5
12621   ac_status=$?
12622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12623   (exit $ac_status); }; }; then
12624   ac_cv_struct_tm=time.h
12625 else
12626   echo "$as_me: failed program was:" >&5
12627 sed 's/^/| /' conftest.$ac_ext >&5
12628
12629 ac_cv_struct_tm=sys/time.h
12630 fi
12631 rm -f conftest.$ac_objext conftest.$ac_ext
12632 fi
12633 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
12634 echo "${ECHO_T}$ac_cv_struct_tm" >&6
12635 if test $ac_cv_struct_tm = sys/time.h; then
12636
12637 cat >>confdefs.h <<\_ACEOF
12638 #define TM_IN_SYS_TIME 1
12639 _ACEOF
12640
12641 fi
12642
12643 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
12644 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
12645 if test "${ac_cv_c_const+set}" = set; then
12646   echo $ECHO_N "(cached) $ECHO_C" >&6
12647 else
12648   cat >conftest.$ac_ext <<_ACEOF
12649 #line $LINENO "configure"
12650 /* confdefs.h.  */
12651 _ACEOF
12652 cat confdefs.h >>conftest.$ac_ext
12653 cat >>conftest.$ac_ext <<_ACEOF
12654 /* end confdefs.h.  */
12655
12656 int
12657 main ()
12658 {
12659 /* FIXME: Include the comments suggested by Paul. */
12660 #ifndef __cplusplus
12661   /* Ultrix mips cc rejects this.  */
12662   typedef int charset[2];
12663   const charset x;
12664   /* SunOS 4.1.1 cc rejects this.  */
12665   char const *const *ccp;
12666   char **p;
12667   /* NEC SVR4.0.2 mips cc rejects this.  */
12668   struct point {int x, y;};
12669   static struct point const zero = {0,0};
12670   /* AIX XL C 1.02.0.0 rejects this.
12671      It does not let you subtract one const X* pointer from another in
12672      an arm of an if-expression whose if-part is not a constant
12673      expression */
12674   const char *g = "string";
12675   ccp = &g + (g ? g-g : 0);
12676   /* HPUX 7.0 cc rejects these. */
12677   ++ccp;
12678   p = (char**) ccp;
12679   ccp = (char const *const *) p;
12680   { /* SCO 3.2v4 cc rejects this.  */
12681     char *t;
12682     char const *s = 0 ? (char *) 0 : (char const *) 0;
12683
12684     *t++ = 0;
12685   }
12686   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
12687     int x[] = {25, 17};
12688     const int *foo = &x[0];
12689     ++foo;
12690   }
12691   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12692     typedef const int *iptr;
12693     iptr p = 0;
12694     ++p;
12695   }
12696   { /* AIX XL C 1.02.0.0 rejects this saying
12697        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12698     struct s { int j; const int *ap[3]; };
12699     struct s *b; b->j = 5;
12700   }
12701   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12702     const int foo = 10;
12703   }
12704 #endif
12705
12706   ;
12707   return 0;
12708 }
12709 _ACEOF
12710 rm -f conftest.$ac_objext
12711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12712   (eval $ac_compile) 2>&5
12713   ac_status=$?
12714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12715   (exit $ac_status); } &&
12716          { ac_try='test -s conftest.$ac_objext'
12717   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12718   (eval $ac_try) 2>&5
12719   ac_status=$?
12720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12721   (exit $ac_status); }; }; then
12722   ac_cv_c_const=yes
12723 else
12724   echo "$as_me: failed program was:" >&5
12725 sed 's/^/| /' conftest.$ac_ext >&5
12726
12727 ac_cv_c_const=no
12728 fi
12729 rm -f conftest.$ac_objext conftest.$ac_ext
12730 fi
12731 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
12732 echo "${ECHO_T}$ac_cv_c_const" >&6
12733 if test $ac_cv_c_const = no; then
12734
12735 cat >>confdefs.h <<\_ACEOF
12736 #define const
12737 _ACEOF
12738
12739 fi
12740
12741
12742
12743 echo "$as_me:$LINENO: checking for char" >&5
12744 echo $ECHO_N "checking for char... $ECHO_C" >&6
12745 if test "${ac_cv_type_char+set}" = set; then
12746   echo $ECHO_N "(cached) $ECHO_C" >&6
12747 else
12748   cat >conftest.$ac_ext <<_ACEOF
12749 #line $LINENO "configure"
12750 /* confdefs.h.  */
12751 _ACEOF
12752 cat confdefs.h >>conftest.$ac_ext
12753 cat >>conftest.$ac_ext <<_ACEOF
12754 /* end confdefs.h.  */
12755 $ac_includes_default
12756 int
12757 main ()
12758 {
12759 if ((char *) 0)
12760   return 0;
12761 if (sizeof (char))
12762   return 0;
12763   ;
12764   return 0;
12765 }
12766 _ACEOF
12767 rm -f conftest.$ac_objext
12768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12769   (eval $ac_compile) 2>&5
12770   ac_status=$?
12771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12772   (exit $ac_status); } &&
12773          { ac_try='test -s conftest.$ac_objext'
12774   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12775   (eval $ac_try) 2>&5
12776   ac_status=$?
12777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12778   (exit $ac_status); }; }; then
12779   ac_cv_type_char=yes
12780 else
12781   echo "$as_me: failed program was:" >&5
12782 sed 's/^/| /' conftest.$ac_ext >&5
12783
12784 ac_cv_type_char=no
12785 fi
12786 rm -f conftest.$ac_objext conftest.$ac_ext
12787 fi
12788 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
12789 echo "${ECHO_T}$ac_cv_type_char" >&6
12790
12791 echo "$as_me:$LINENO: checking size of char" >&5
12792 echo $ECHO_N "checking size of char... $ECHO_C" >&6
12793 if test "${ac_cv_sizeof_char+set}" = set; then
12794   echo $ECHO_N "(cached) $ECHO_C" >&6
12795 else
12796   if test "$ac_cv_type_char" = yes; then
12797   # The cast to unsigned long works around a bug in the HP C Compiler
12798   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12799   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12800   # This bug is HP SR number 8606223364.
12801   if test "$cross_compiling" = yes; then
12802   # Depending upon the size, compute the lo and hi bounds.
12803 cat >conftest.$ac_ext <<_ACEOF
12804 #line $LINENO "configure"
12805 /* confdefs.h.  */
12806 _ACEOF
12807 cat confdefs.h >>conftest.$ac_ext
12808 cat >>conftest.$ac_ext <<_ACEOF
12809 /* end confdefs.h.  */
12810 $ac_includes_default
12811 int
12812 main ()
12813 {
12814 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
12815 test_array [0] = 0
12816
12817   ;
12818   return 0;
12819 }
12820 _ACEOF
12821 rm -f conftest.$ac_objext
12822 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12823   (eval $ac_compile) 2>&5
12824   ac_status=$?
12825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12826   (exit $ac_status); } &&
12827          { ac_try='test -s conftest.$ac_objext'
12828   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12829   (eval $ac_try) 2>&5
12830   ac_status=$?
12831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12832   (exit $ac_status); }; }; then
12833   ac_lo=0 ac_mid=0
12834   while :; do
12835     cat >conftest.$ac_ext <<_ACEOF
12836 #line $LINENO "configure"
12837 /* confdefs.h.  */
12838 _ACEOF
12839 cat confdefs.h >>conftest.$ac_ext
12840 cat >>conftest.$ac_ext <<_ACEOF
12841 /* end confdefs.h.  */
12842 $ac_includes_default
12843 int
12844 main ()
12845 {
12846 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
12847 test_array [0] = 0
12848
12849   ;
12850   return 0;
12851 }
12852 _ACEOF
12853 rm -f conftest.$ac_objext
12854 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12855   (eval $ac_compile) 2>&5
12856   ac_status=$?
12857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12858   (exit $ac_status); } &&
12859          { ac_try='test -s conftest.$ac_objext'
12860   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12861   (eval $ac_try) 2>&5
12862   ac_status=$?
12863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12864   (exit $ac_status); }; }; then
12865   ac_hi=$ac_mid; break
12866 else
12867   echo "$as_me: failed program was:" >&5
12868 sed 's/^/| /' conftest.$ac_ext >&5
12869
12870 ac_lo=`expr $ac_mid + 1`
12871                     if test $ac_lo -le $ac_mid; then
12872                       ac_lo= ac_hi=
12873                       break
12874                     fi
12875                     ac_mid=`expr 2 '*' $ac_mid + 1`
12876 fi
12877 rm -f conftest.$ac_objext conftest.$ac_ext
12878   done
12879 else
12880   echo "$as_me: failed program was:" >&5
12881 sed 's/^/| /' conftest.$ac_ext >&5
12882
12883 cat >conftest.$ac_ext <<_ACEOF
12884 #line $LINENO "configure"
12885 /* confdefs.h.  */
12886 _ACEOF
12887 cat confdefs.h >>conftest.$ac_ext
12888 cat >>conftest.$ac_ext <<_ACEOF
12889 /* end confdefs.h.  */
12890 $ac_includes_default
12891 int
12892 main ()
12893 {
12894 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
12895 test_array [0] = 0
12896
12897   ;
12898   return 0;
12899 }
12900 _ACEOF
12901 rm -f conftest.$ac_objext
12902 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12903   (eval $ac_compile) 2>&5
12904   ac_status=$?
12905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12906   (exit $ac_status); } &&
12907          { ac_try='test -s conftest.$ac_objext'
12908   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12909   (eval $ac_try) 2>&5
12910   ac_status=$?
12911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12912   (exit $ac_status); }; }; then
12913   ac_hi=-1 ac_mid=-1
12914   while :; do
12915     cat >conftest.$ac_ext <<_ACEOF
12916 #line $LINENO "configure"
12917 /* confdefs.h.  */
12918 _ACEOF
12919 cat confdefs.h >>conftest.$ac_ext
12920 cat >>conftest.$ac_ext <<_ACEOF
12921 /* end confdefs.h.  */
12922 $ac_includes_default
12923 int
12924 main ()
12925 {
12926 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
12927 test_array [0] = 0
12928
12929   ;
12930   return 0;
12931 }
12932 _ACEOF
12933 rm -f conftest.$ac_objext
12934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12935   (eval $ac_compile) 2>&5
12936   ac_status=$?
12937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12938   (exit $ac_status); } &&
12939          { ac_try='test -s conftest.$ac_objext'
12940   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12941   (eval $ac_try) 2>&5
12942   ac_status=$?
12943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12944   (exit $ac_status); }; }; then
12945   ac_lo=$ac_mid; break
12946 else
12947   echo "$as_me: failed program was:" >&5
12948 sed 's/^/| /' conftest.$ac_ext >&5
12949
12950 ac_hi=`expr '(' $ac_mid ')' - 1`
12951                        if test $ac_mid -le $ac_hi; then
12952                          ac_lo= ac_hi=
12953                          break
12954                        fi
12955                        ac_mid=`expr 2 '*' $ac_mid`
12956 fi
12957 rm -f conftest.$ac_objext conftest.$ac_ext
12958   done
12959 else
12960   echo "$as_me: failed program was:" >&5
12961 sed 's/^/| /' conftest.$ac_ext >&5
12962
12963 ac_lo= ac_hi=
12964 fi
12965 rm -f conftest.$ac_objext conftest.$ac_ext
12966 fi
12967 rm -f conftest.$ac_objext conftest.$ac_ext
12968 # Binary search between lo and hi bounds.
12969 while test "x$ac_lo" != "x$ac_hi"; do
12970   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12971   cat >conftest.$ac_ext <<_ACEOF
12972 #line $LINENO "configure"
12973 /* confdefs.h.  */
12974 _ACEOF
12975 cat confdefs.h >>conftest.$ac_ext
12976 cat >>conftest.$ac_ext <<_ACEOF
12977 /* end confdefs.h.  */
12978 $ac_includes_default
12979 int
12980 main ()
12981 {
12982 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
12983 test_array [0] = 0
12984
12985   ;
12986   return 0;
12987 }
12988 _ACEOF
12989 rm -f conftest.$ac_objext
12990 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12991   (eval $ac_compile) 2>&5
12992   ac_status=$?
12993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12994   (exit $ac_status); } &&
12995          { ac_try='test -s conftest.$ac_objext'
12996   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12997   (eval $ac_try) 2>&5
12998   ac_status=$?
12999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13000   (exit $ac_status); }; }; then
13001   ac_hi=$ac_mid
13002 else
13003   echo "$as_me: failed program was:" >&5
13004 sed 's/^/| /' conftest.$ac_ext >&5
13005
13006 ac_lo=`expr '(' $ac_mid ')' + 1`
13007 fi
13008 rm -f conftest.$ac_objext conftest.$ac_ext
13009 done
13010 case $ac_lo in
13011 ?*) ac_cv_sizeof_char=$ac_lo;;
13012 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
13013 See \`config.log' for more details." >&5
13014 echo "$as_me: error: cannot compute sizeof (char), 77
13015 See \`config.log' for more details." >&2;}
13016    { (exit 1); exit 1; }; } ;;
13017 esac
13018 else
13019   if test "$cross_compiling" = yes; then
13020   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13021 See \`config.log' for more details." >&5
13022 echo "$as_me: error: cannot run test program while cross compiling
13023 See \`config.log' for more details." >&2;}
13024    { (exit 1); exit 1; }; }
13025 else
13026   cat >conftest.$ac_ext <<_ACEOF
13027 #line $LINENO "configure"
13028 /* confdefs.h.  */
13029 _ACEOF
13030 cat confdefs.h >>conftest.$ac_ext
13031 cat >>conftest.$ac_ext <<_ACEOF
13032 /* end confdefs.h.  */
13033 $ac_includes_default
13034 long longval () { return (long) (sizeof (char)); }
13035 unsigned long ulongval () { return (long) (sizeof (char)); }
13036 #include <stdio.h>
13037 #include <stdlib.h>
13038 int
13039 main ()
13040 {
13041
13042   FILE *f = fopen ("conftest.val", "w");
13043   if (! f)
13044     exit (1);
13045   if (((long) (sizeof (char))) < 0)
13046     {
13047       long i = longval ();
13048       if (i != ((long) (sizeof (char))))
13049         exit (1);
13050       fprintf (f, "%ld\n", i);
13051     }
13052   else
13053     {
13054       unsigned long i = ulongval ();
13055       if (i != ((long) (sizeof (char))))
13056         exit (1);
13057       fprintf (f, "%lu\n", i);
13058     }
13059   exit (ferror (f) || fclose (f) != 0);
13060
13061   ;
13062   return 0;
13063 }
13064 _ACEOF
13065 rm -f conftest$ac_exeext
13066 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13067   (eval $ac_link) 2>&5
13068   ac_status=$?
13069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13070   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13071   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13072   (eval $ac_try) 2>&5
13073   ac_status=$?
13074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13075   (exit $ac_status); }; }; then
13076   ac_cv_sizeof_char=`cat conftest.val`
13077 else
13078   echo "$as_me: program exited with status $ac_status" >&5
13079 echo "$as_me: failed program was:" >&5
13080 sed 's/^/| /' conftest.$ac_ext >&5
13081
13082 ( exit $ac_status )
13083 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
13084 See \`config.log' for more details." >&5
13085 echo "$as_me: error: cannot compute sizeof (char), 77
13086 See \`config.log' for more details." >&2;}
13087    { (exit 1); exit 1; }; }
13088 fi
13089 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13090 fi
13091 fi
13092 rm -f conftest.val
13093 else
13094   ac_cv_sizeof_char=0
13095 fi
13096 fi
13097 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
13098 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
13099 cat >>confdefs.h <<_ACEOF
13100 #define SIZEOF_CHAR $ac_cv_sizeof_char
13101 _ACEOF
13102
13103
13104 echo "$as_me:$LINENO: checking for short int" >&5
13105 echo $ECHO_N "checking for short int... $ECHO_C" >&6
13106 if test "${ac_cv_type_short_int+set}" = set; then
13107   echo $ECHO_N "(cached) $ECHO_C" >&6
13108 else
13109   cat >conftest.$ac_ext <<_ACEOF
13110 #line $LINENO "configure"
13111 /* confdefs.h.  */
13112 _ACEOF
13113 cat confdefs.h >>conftest.$ac_ext
13114 cat >>conftest.$ac_ext <<_ACEOF
13115 /* end confdefs.h.  */
13116 $ac_includes_default
13117 int
13118 main ()
13119 {
13120 if ((short int *) 0)
13121   return 0;
13122 if (sizeof (short int))
13123   return 0;
13124   ;
13125   return 0;
13126 }
13127 _ACEOF
13128 rm -f conftest.$ac_objext
13129 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13130   (eval $ac_compile) 2>&5
13131   ac_status=$?
13132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13133   (exit $ac_status); } &&
13134          { ac_try='test -s conftest.$ac_objext'
13135   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13136   (eval $ac_try) 2>&5
13137   ac_status=$?
13138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13139   (exit $ac_status); }; }; then
13140   ac_cv_type_short_int=yes
13141 else
13142   echo "$as_me: failed program was:" >&5
13143 sed 's/^/| /' conftest.$ac_ext >&5
13144
13145 ac_cv_type_short_int=no
13146 fi
13147 rm -f conftest.$ac_objext conftest.$ac_ext
13148 fi
13149 echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
13150 echo "${ECHO_T}$ac_cv_type_short_int" >&6
13151
13152 echo "$as_me:$LINENO: checking size of short int" >&5
13153 echo $ECHO_N "checking size of short int... $ECHO_C" >&6
13154 if test "${ac_cv_sizeof_short_int+set}" = set; then
13155   echo $ECHO_N "(cached) $ECHO_C" >&6
13156 else
13157   if test "$ac_cv_type_short_int" = yes; then
13158   # The cast to unsigned long works around a bug in the HP C Compiler
13159   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13160   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13161   # This bug is HP SR number 8606223364.
13162   if test "$cross_compiling" = yes; then
13163   # Depending upon the size, compute the lo and hi bounds.
13164 cat >conftest.$ac_ext <<_ACEOF
13165 #line $LINENO "configure"
13166 /* confdefs.h.  */
13167 _ACEOF
13168 cat confdefs.h >>conftest.$ac_ext
13169 cat >>conftest.$ac_ext <<_ACEOF
13170 /* end confdefs.h.  */
13171 $ac_includes_default
13172 int
13173 main ()
13174 {
13175 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= 0)];
13176 test_array [0] = 0
13177
13178   ;
13179   return 0;
13180 }
13181 _ACEOF
13182 rm -f conftest.$ac_objext
13183 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13184   (eval $ac_compile) 2>&5
13185   ac_status=$?
13186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13187   (exit $ac_status); } &&
13188          { ac_try='test -s conftest.$ac_objext'
13189   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13190   (eval $ac_try) 2>&5
13191   ac_status=$?
13192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13193   (exit $ac_status); }; }; then
13194   ac_lo=0 ac_mid=0
13195   while :; do
13196     cat >conftest.$ac_ext <<_ACEOF
13197 #line $LINENO "configure"
13198 /* confdefs.h.  */
13199 _ACEOF
13200 cat confdefs.h >>conftest.$ac_ext
13201 cat >>conftest.$ac_ext <<_ACEOF
13202 /* end confdefs.h.  */
13203 $ac_includes_default
13204 int
13205 main ()
13206 {
13207 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
13208 test_array [0] = 0
13209
13210   ;
13211   return 0;
13212 }
13213 _ACEOF
13214 rm -f conftest.$ac_objext
13215 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13216   (eval $ac_compile) 2>&5
13217   ac_status=$?
13218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13219   (exit $ac_status); } &&
13220          { ac_try='test -s conftest.$ac_objext'
13221   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13222   (eval $ac_try) 2>&5
13223   ac_status=$?
13224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13225   (exit $ac_status); }; }; then
13226   ac_hi=$ac_mid; break
13227 else
13228   echo "$as_me: failed program was:" >&5
13229 sed 's/^/| /' conftest.$ac_ext >&5
13230
13231 ac_lo=`expr $ac_mid + 1`
13232                     if test $ac_lo -le $ac_mid; then
13233                       ac_lo= ac_hi=
13234                       break
13235                     fi
13236                     ac_mid=`expr 2 '*' $ac_mid + 1`
13237 fi
13238 rm -f conftest.$ac_objext conftest.$ac_ext
13239   done
13240 else
13241   echo "$as_me: failed program was:" >&5
13242 sed 's/^/| /' conftest.$ac_ext >&5
13243
13244 cat >conftest.$ac_ext <<_ACEOF
13245 #line $LINENO "configure"
13246 /* confdefs.h.  */
13247 _ACEOF
13248 cat confdefs.h >>conftest.$ac_ext
13249 cat >>conftest.$ac_ext <<_ACEOF
13250 /* end confdefs.h.  */
13251 $ac_includes_default
13252 int
13253 main ()
13254 {
13255 static int test_array [1 - 2 * !(((long) (sizeof (short int))) < 0)];
13256 test_array [0] = 0
13257
13258   ;
13259   return 0;
13260 }
13261 _ACEOF
13262 rm -f conftest.$ac_objext
13263 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13264   (eval $ac_compile) 2>&5
13265   ac_status=$?
13266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13267   (exit $ac_status); } &&
13268          { ac_try='test -s conftest.$ac_objext'
13269   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13270   (eval $ac_try) 2>&5
13271   ac_status=$?
13272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13273   (exit $ac_status); }; }; then
13274   ac_hi=-1 ac_mid=-1
13275   while :; do
13276     cat >conftest.$ac_ext <<_ACEOF
13277 #line $LINENO "configure"
13278 /* confdefs.h.  */
13279 _ACEOF
13280 cat confdefs.h >>conftest.$ac_ext
13281 cat >>conftest.$ac_ext <<_ACEOF
13282 /* end confdefs.h.  */
13283 $ac_includes_default
13284 int
13285 main ()
13286 {
13287 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= $ac_mid)];
13288 test_array [0] = 0
13289
13290   ;
13291   return 0;
13292 }
13293 _ACEOF
13294 rm -f conftest.$ac_objext
13295 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13296   (eval $ac_compile) 2>&5
13297   ac_status=$?
13298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13299   (exit $ac_status); } &&
13300          { ac_try='test -s conftest.$ac_objext'
13301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13302   (eval $ac_try) 2>&5
13303   ac_status=$?
13304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13305   (exit $ac_status); }; }; then
13306   ac_lo=$ac_mid; break
13307 else
13308   echo "$as_me: failed program was:" >&5
13309 sed 's/^/| /' conftest.$ac_ext >&5
13310
13311 ac_hi=`expr '(' $ac_mid ')' - 1`
13312                        if test $ac_mid -le $ac_hi; then
13313                          ac_lo= ac_hi=
13314                          break
13315                        fi
13316                        ac_mid=`expr 2 '*' $ac_mid`
13317 fi
13318 rm -f conftest.$ac_objext conftest.$ac_ext
13319   done
13320 else
13321   echo "$as_me: failed program was:" >&5
13322 sed 's/^/| /' conftest.$ac_ext >&5
13323
13324 ac_lo= ac_hi=
13325 fi
13326 rm -f conftest.$ac_objext conftest.$ac_ext
13327 fi
13328 rm -f conftest.$ac_objext conftest.$ac_ext
13329 # Binary search between lo and hi bounds.
13330 while test "x$ac_lo" != "x$ac_hi"; do
13331   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13332   cat >conftest.$ac_ext <<_ACEOF
13333 #line $LINENO "configure"
13334 /* confdefs.h.  */
13335 _ACEOF
13336 cat confdefs.h >>conftest.$ac_ext
13337 cat >>conftest.$ac_ext <<_ACEOF
13338 /* end confdefs.h.  */
13339 $ac_includes_default
13340 int
13341 main ()
13342 {
13343 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
13344 test_array [0] = 0
13345
13346   ;
13347   return 0;
13348 }
13349 _ACEOF
13350 rm -f conftest.$ac_objext
13351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13352   (eval $ac_compile) 2>&5
13353   ac_status=$?
13354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13355   (exit $ac_status); } &&
13356          { ac_try='test -s conftest.$ac_objext'
13357   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13358   (eval $ac_try) 2>&5
13359   ac_status=$?
13360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13361   (exit $ac_status); }; }; then
13362   ac_hi=$ac_mid
13363 else
13364   echo "$as_me: failed program was:" >&5
13365 sed 's/^/| /' conftest.$ac_ext >&5
13366
13367 ac_lo=`expr '(' $ac_mid ')' + 1`
13368 fi
13369 rm -f conftest.$ac_objext conftest.$ac_ext
13370 done
13371 case $ac_lo in
13372 ?*) ac_cv_sizeof_short_int=$ac_lo;;
13373 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
13374 See \`config.log' for more details." >&5
13375 echo "$as_me: error: cannot compute sizeof (short int), 77
13376 See \`config.log' for more details." >&2;}
13377    { (exit 1); exit 1; }; } ;;
13378 esac
13379 else
13380   if test "$cross_compiling" = yes; then
13381   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13382 See \`config.log' for more details." >&5
13383 echo "$as_me: error: cannot run test program while cross compiling
13384 See \`config.log' for more details." >&2;}
13385    { (exit 1); exit 1; }; }
13386 else
13387   cat >conftest.$ac_ext <<_ACEOF
13388 #line $LINENO "configure"
13389 /* confdefs.h.  */
13390 _ACEOF
13391 cat confdefs.h >>conftest.$ac_ext
13392 cat >>conftest.$ac_ext <<_ACEOF
13393 /* end confdefs.h.  */
13394 $ac_includes_default
13395 long longval () { return (long) (sizeof (short int)); }
13396 unsigned long ulongval () { return (long) (sizeof (short int)); }
13397 #include <stdio.h>
13398 #include <stdlib.h>
13399 int
13400 main ()
13401 {
13402
13403   FILE *f = fopen ("conftest.val", "w");
13404   if (! f)
13405     exit (1);
13406   if (((long) (sizeof (short int))) < 0)
13407     {
13408       long i = longval ();
13409       if (i != ((long) (sizeof (short int))))
13410         exit (1);
13411       fprintf (f, "%ld\n", i);
13412     }
13413   else
13414     {
13415       unsigned long i = ulongval ();
13416       if (i != ((long) (sizeof (short int))))
13417         exit (1);
13418       fprintf (f, "%lu\n", i);
13419     }
13420   exit (ferror (f) || fclose (f) != 0);
13421
13422   ;
13423   return 0;
13424 }
13425 _ACEOF
13426 rm -f conftest$ac_exeext
13427 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13428   (eval $ac_link) 2>&5
13429   ac_status=$?
13430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13431   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13432   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13433   (eval $ac_try) 2>&5
13434   ac_status=$?
13435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13436   (exit $ac_status); }; }; then
13437   ac_cv_sizeof_short_int=`cat conftest.val`
13438 else
13439   echo "$as_me: program exited with status $ac_status" >&5
13440 echo "$as_me: failed program was:" >&5
13441 sed 's/^/| /' conftest.$ac_ext >&5
13442
13443 ( exit $ac_status )
13444 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
13445 See \`config.log' for more details." >&5
13446 echo "$as_me: error: cannot compute sizeof (short int), 77
13447 See \`config.log' for more details." >&2;}
13448    { (exit 1); exit 1; }; }
13449 fi
13450 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13451 fi
13452 fi
13453 rm -f conftest.val
13454 else
13455   ac_cv_sizeof_short_int=0
13456 fi
13457 fi
13458 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
13459 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6
13460 cat >>confdefs.h <<_ACEOF
13461 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
13462 _ACEOF
13463
13464
13465 echo "$as_me:$LINENO: checking for int" >&5
13466 echo $ECHO_N "checking for int... $ECHO_C" >&6
13467 if test "${ac_cv_type_int+set}" = set; then
13468   echo $ECHO_N "(cached) $ECHO_C" >&6
13469 else
13470   cat >conftest.$ac_ext <<_ACEOF
13471 #line $LINENO "configure"
13472 /* confdefs.h.  */
13473 _ACEOF
13474 cat confdefs.h >>conftest.$ac_ext
13475 cat >>conftest.$ac_ext <<_ACEOF
13476 /* end confdefs.h.  */
13477 $ac_includes_default
13478 int
13479 main ()
13480 {
13481 if ((int *) 0)
13482   return 0;
13483 if (sizeof (int))
13484   return 0;
13485   ;
13486   return 0;
13487 }
13488 _ACEOF
13489 rm -f conftest.$ac_objext
13490 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13491   (eval $ac_compile) 2>&5
13492   ac_status=$?
13493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13494   (exit $ac_status); } &&
13495          { ac_try='test -s conftest.$ac_objext'
13496   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13497   (eval $ac_try) 2>&5
13498   ac_status=$?
13499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13500   (exit $ac_status); }; }; then
13501   ac_cv_type_int=yes
13502 else
13503   echo "$as_me: failed program was:" >&5
13504 sed 's/^/| /' conftest.$ac_ext >&5
13505
13506 ac_cv_type_int=no
13507 fi
13508 rm -f conftest.$ac_objext conftest.$ac_ext
13509 fi
13510 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
13511 echo "${ECHO_T}$ac_cv_type_int" >&6
13512
13513 echo "$as_me:$LINENO: checking size of int" >&5
13514 echo $ECHO_N "checking size of int... $ECHO_C" >&6
13515 if test "${ac_cv_sizeof_int+set}" = set; then
13516   echo $ECHO_N "(cached) $ECHO_C" >&6
13517 else
13518   if test "$ac_cv_type_int" = yes; then
13519   # The cast to unsigned long works around a bug in the HP C Compiler
13520   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13521   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13522   # This bug is HP SR number 8606223364.
13523   if test "$cross_compiling" = yes; then
13524   # Depending upon the size, compute the lo and hi bounds.
13525 cat >conftest.$ac_ext <<_ACEOF
13526 #line $LINENO "configure"
13527 /* confdefs.h.  */
13528 _ACEOF
13529 cat confdefs.h >>conftest.$ac_ext
13530 cat >>conftest.$ac_ext <<_ACEOF
13531 /* end confdefs.h.  */
13532 $ac_includes_default
13533 int
13534 main ()
13535 {
13536 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
13537 test_array [0] = 0
13538
13539   ;
13540   return 0;
13541 }
13542 _ACEOF
13543 rm -f conftest.$ac_objext
13544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13545   (eval $ac_compile) 2>&5
13546   ac_status=$?
13547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13548   (exit $ac_status); } &&
13549          { ac_try='test -s conftest.$ac_objext'
13550   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13551   (eval $ac_try) 2>&5
13552   ac_status=$?
13553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13554   (exit $ac_status); }; }; then
13555   ac_lo=0 ac_mid=0
13556   while :; do
13557     cat >conftest.$ac_ext <<_ACEOF
13558 #line $LINENO "configure"
13559 /* confdefs.h.  */
13560 _ACEOF
13561 cat confdefs.h >>conftest.$ac_ext
13562 cat >>conftest.$ac_ext <<_ACEOF
13563 /* end confdefs.h.  */
13564 $ac_includes_default
13565 int
13566 main ()
13567 {
13568 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
13569 test_array [0] = 0
13570
13571   ;
13572   return 0;
13573 }
13574 _ACEOF
13575 rm -f conftest.$ac_objext
13576 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13577   (eval $ac_compile) 2>&5
13578   ac_status=$?
13579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13580   (exit $ac_status); } &&
13581          { ac_try='test -s conftest.$ac_objext'
13582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13583   (eval $ac_try) 2>&5
13584   ac_status=$?
13585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13586   (exit $ac_status); }; }; then
13587   ac_hi=$ac_mid; break
13588 else
13589   echo "$as_me: failed program was:" >&5
13590 sed 's/^/| /' conftest.$ac_ext >&5
13591
13592 ac_lo=`expr $ac_mid + 1`
13593                     if test $ac_lo -le $ac_mid; then
13594                       ac_lo= ac_hi=
13595                       break
13596                     fi
13597                     ac_mid=`expr 2 '*' $ac_mid + 1`
13598 fi
13599 rm -f conftest.$ac_objext conftest.$ac_ext
13600   done
13601 else
13602   echo "$as_me: failed program was:" >&5
13603 sed 's/^/| /' conftest.$ac_ext >&5
13604
13605 cat >conftest.$ac_ext <<_ACEOF
13606 #line $LINENO "configure"
13607 /* confdefs.h.  */
13608 _ACEOF
13609 cat confdefs.h >>conftest.$ac_ext
13610 cat >>conftest.$ac_ext <<_ACEOF
13611 /* end confdefs.h.  */
13612 $ac_includes_default
13613 int
13614 main ()
13615 {
13616 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
13617 test_array [0] = 0
13618
13619   ;
13620   return 0;
13621 }
13622 _ACEOF
13623 rm -f conftest.$ac_objext
13624 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13625   (eval $ac_compile) 2>&5
13626   ac_status=$?
13627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13628   (exit $ac_status); } &&
13629          { ac_try='test -s conftest.$ac_objext'
13630   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13631   (eval $ac_try) 2>&5
13632   ac_status=$?
13633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13634   (exit $ac_status); }; }; then
13635   ac_hi=-1 ac_mid=-1
13636   while :; do
13637     cat >conftest.$ac_ext <<_ACEOF
13638 #line $LINENO "configure"
13639 /* confdefs.h.  */
13640 _ACEOF
13641 cat confdefs.h >>conftest.$ac_ext
13642 cat >>conftest.$ac_ext <<_ACEOF
13643 /* end confdefs.h.  */
13644 $ac_includes_default
13645 int
13646 main ()
13647 {
13648 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
13649 test_array [0] = 0
13650
13651   ;
13652   return 0;
13653 }
13654 _ACEOF
13655 rm -f conftest.$ac_objext
13656 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13657   (eval $ac_compile) 2>&5
13658   ac_status=$?
13659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13660   (exit $ac_status); } &&
13661          { ac_try='test -s conftest.$ac_objext'
13662   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13663   (eval $ac_try) 2>&5
13664   ac_status=$?
13665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13666   (exit $ac_status); }; }; then
13667   ac_lo=$ac_mid; break
13668 else
13669   echo "$as_me: failed program was:" >&5
13670 sed 's/^/| /' conftest.$ac_ext >&5
13671
13672 ac_hi=`expr '(' $ac_mid ')' - 1`
13673                        if test $ac_mid -le $ac_hi; then
13674                          ac_lo= ac_hi=
13675                          break
13676                        fi
13677                        ac_mid=`expr 2 '*' $ac_mid`
13678 fi
13679 rm -f conftest.$ac_objext conftest.$ac_ext
13680   done
13681 else
13682   echo "$as_me: failed program was:" >&5
13683 sed 's/^/| /' conftest.$ac_ext >&5
13684
13685 ac_lo= ac_hi=
13686 fi
13687 rm -f conftest.$ac_objext conftest.$ac_ext
13688 fi
13689 rm -f conftest.$ac_objext conftest.$ac_ext
13690 # Binary search between lo and hi bounds.
13691 while test "x$ac_lo" != "x$ac_hi"; do
13692   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13693   cat >conftest.$ac_ext <<_ACEOF
13694 #line $LINENO "configure"
13695 /* confdefs.h.  */
13696 _ACEOF
13697 cat confdefs.h >>conftest.$ac_ext
13698 cat >>conftest.$ac_ext <<_ACEOF
13699 /* end confdefs.h.  */
13700 $ac_includes_default
13701 int
13702 main ()
13703 {
13704 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
13705 test_array [0] = 0
13706
13707   ;
13708   return 0;
13709 }
13710 _ACEOF
13711 rm -f conftest.$ac_objext
13712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13713   (eval $ac_compile) 2>&5
13714   ac_status=$?
13715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13716   (exit $ac_status); } &&
13717          { ac_try='test -s conftest.$ac_objext'
13718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13719   (eval $ac_try) 2>&5
13720   ac_status=$?
13721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13722   (exit $ac_status); }; }; then
13723   ac_hi=$ac_mid
13724 else
13725   echo "$as_me: failed program was:" >&5
13726 sed 's/^/| /' conftest.$ac_ext >&5
13727
13728 ac_lo=`expr '(' $ac_mid ')' + 1`
13729 fi
13730 rm -f conftest.$ac_objext conftest.$ac_ext
13731 done
13732 case $ac_lo in
13733 ?*) ac_cv_sizeof_int=$ac_lo;;
13734 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
13735 See \`config.log' for more details." >&5
13736 echo "$as_me: error: cannot compute sizeof (int), 77
13737 See \`config.log' for more details." >&2;}
13738    { (exit 1); exit 1; }; } ;;
13739 esac
13740 else
13741   if test "$cross_compiling" = yes; then
13742   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13743 See \`config.log' for more details." >&5
13744 echo "$as_me: error: cannot run test program while cross compiling
13745 See \`config.log' for more details." >&2;}
13746    { (exit 1); exit 1; }; }
13747 else
13748   cat >conftest.$ac_ext <<_ACEOF
13749 #line $LINENO "configure"
13750 /* confdefs.h.  */
13751 _ACEOF
13752 cat confdefs.h >>conftest.$ac_ext
13753 cat >>conftest.$ac_ext <<_ACEOF
13754 /* end confdefs.h.  */
13755 $ac_includes_default
13756 long longval () { return (long) (sizeof (int)); }
13757 unsigned long ulongval () { return (long) (sizeof (int)); }
13758 #include <stdio.h>
13759 #include <stdlib.h>
13760 int
13761 main ()
13762 {
13763
13764   FILE *f = fopen ("conftest.val", "w");
13765   if (! f)
13766     exit (1);
13767   if (((long) (sizeof (int))) < 0)
13768     {
13769       long i = longval ();
13770       if (i != ((long) (sizeof (int))))
13771         exit (1);
13772       fprintf (f, "%ld\n", i);
13773     }
13774   else
13775     {
13776       unsigned long i = ulongval ();
13777       if (i != ((long) (sizeof (int))))
13778         exit (1);
13779       fprintf (f, "%lu\n", i);
13780     }
13781   exit (ferror (f) || fclose (f) != 0);
13782
13783   ;
13784   return 0;
13785 }
13786 _ACEOF
13787 rm -f conftest$ac_exeext
13788 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13789   (eval $ac_link) 2>&5
13790   ac_status=$?
13791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13792   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13793   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13794   (eval $ac_try) 2>&5
13795   ac_status=$?
13796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13797   (exit $ac_status); }; }; then
13798   ac_cv_sizeof_int=`cat conftest.val`
13799 else
13800   echo "$as_me: program exited with status $ac_status" >&5
13801 echo "$as_me: failed program was:" >&5
13802 sed 's/^/| /' conftest.$ac_ext >&5
13803
13804 ( exit $ac_status )
13805 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
13806 See \`config.log' for more details." >&5
13807 echo "$as_me: error: cannot compute sizeof (int), 77
13808 See \`config.log' for more details." >&2;}
13809    { (exit 1); exit 1; }; }
13810 fi
13811 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13812 fi
13813 fi
13814 rm -f conftest.val
13815 else
13816   ac_cv_sizeof_int=0
13817 fi
13818 fi
13819 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
13820 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
13821 cat >>confdefs.h <<_ACEOF
13822 #define SIZEOF_INT $ac_cv_sizeof_int
13823 _ACEOF
13824
13825
13826 echo "$as_me:$LINENO: checking for long int" >&5
13827 echo $ECHO_N "checking for long int... $ECHO_C" >&6
13828 if test "${ac_cv_type_long_int+set}" = set; then
13829   echo $ECHO_N "(cached) $ECHO_C" >&6
13830 else
13831   cat >conftest.$ac_ext <<_ACEOF
13832 #line $LINENO "configure"
13833 /* confdefs.h.  */
13834 _ACEOF
13835 cat confdefs.h >>conftest.$ac_ext
13836 cat >>conftest.$ac_ext <<_ACEOF
13837 /* end confdefs.h.  */
13838 $ac_includes_default
13839 int
13840 main ()
13841 {
13842 if ((long int *) 0)
13843   return 0;
13844 if (sizeof (long int))
13845   return 0;
13846   ;
13847   return 0;
13848 }
13849 _ACEOF
13850 rm -f conftest.$ac_objext
13851 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13852   (eval $ac_compile) 2>&5
13853   ac_status=$?
13854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13855   (exit $ac_status); } &&
13856          { ac_try='test -s conftest.$ac_objext'
13857   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13858   (eval $ac_try) 2>&5
13859   ac_status=$?
13860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13861   (exit $ac_status); }; }; then
13862   ac_cv_type_long_int=yes
13863 else
13864   echo "$as_me: failed program was:" >&5
13865 sed 's/^/| /' conftest.$ac_ext >&5
13866
13867 ac_cv_type_long_int=no
13868 fi
13869 rm -f conftest.$ac_objext conftest.$ac_ext
13870 fi
13871 echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
13872 echo "${ECHO_T}$ac_cv_type_long_int" >&6
13873
13874 echo "$as_me:$LINENO: checking size of long int" >&5
13875 echo $ECHO_N "checking size of long int... $ECHO_C" >&6
13876 if test "${ac_cv_sizeof_long_int+set}" = set; then
13877   echo $ECHO_N "(cached) $ECHO_C" >&6
13878 else
13879   if test "$ac_cv_type_long_int" = yes; then
13880   # The cast to unsigned long works around a bug in the HP C Compiler
13881   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13882   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13883   # This bug is HP SR number 8606223364.
13884   if test "$cross_compiling" = yes; then
13885   # Depending upon the size, compute the lo and hi bounds.
13886 cat >conftest.$ac_ext <<_ACEOF
13887 #line $LINENO "configure"
13888 /* confdefs.h.  */
13889 _ACEOF
13890 cat confdefs.h >>conftest.$ac_ext
13891 cat >>conftest.$ac_ext <<_ACEOF
13892 /* end confdefs.h.  */
13893 $ac_includes_default
13894 int
13895 main ()
13896 {
13897 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= 0)];
13898 test_array [0] = 0
13899
13900   ;
13901   return 0;
13902 }
13903 _ACEOF
13904 rm -f conftest.$ac_objext
13905 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13906   (eval $ac_compile) 2>&5
13907   ac_status=$?
13908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13909   (exit $ac_status); } &&
13910          { ac_try='test -s conftest.$ac_objext'
13911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13912   (eval $ac_try) 2>&5
13913   ac_status=$?
13914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13915   (exit $ac_status); }; }; then
13916   ac_lo=0 ac_mid=0
13917   while :; do
13918     cat >conftest.$ac_ext <<_ACEOF
13919 #line $LINENO "configure"
13920 /* confdefs.h.  */
13921 _ACEOF
13922 cat confdefs.h >>conftest.$ac_ext
13923 cat >>conftest.$ac_ext <<_ACEOF
13924 /* end confdefs.h.  */
13925 $ac_includes_default
13926 int
13927 main ()
13928 {
13929 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
13930 test_array [0] = 0
13931
13932   ;
13933   return 0;
13934 }
13935 _ACEOF
13936 rm -f conftest.$ac_objext
13937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13938   (eval $ac_compile) 2>&5
13939   ac_status=$?
13940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13941   (exit $ac_status); } &&
13942          { ac_try='test -s conftest.$ac_objext'
13943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13944   (eval $ac_try) 2>&5
13945   ac_status=$?
13946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13947   (exit $ac_status); }; }; then
13948   ac_hi=$ac_mid; break
13949 else
13950   echo "$as_me: failed program was:" >&5
13951 sed 's/^/| /' conftest.$ac_ext >&5
13952
13953 ac_lo=`expr $ac_mid + 1`
13954                     if test $ac_lo -le $ac_mid; then
13955                       ac_lo= ac_hi=
13956                       break
13957                     fi
13958                     ac_mid=`expr 2 '*' $ac_mid + 1`
13959 fi
13960 rm -f conftest.$ac_objext conftest.$ac_ext
13961   done
13962 else
13963   echo "$as_me: failed program was:" >&5
13964 sed 's/^/| /' conftest.$ac_ext >&5
13965
13966 cat >conftest.$ac_ext <<_ACEOF
13967 #line $LINENO "configure"
13968 /* confdefs.h.  */
13969 _ACEOF
13970 cat confdefs.h >>conftest.$ac_ext
13971 cat >>conftest.$ac_ext <<_ACEOF
13972 /* end confdefs.h.  */
13973 $ac_includes_default
13974 int
13975 main ()
13976 {
13977 static int test_array [1 - 2 * !(((long) (sizeof (long int))) < 0)];
13978 test_array [0] = 0
13979
13980   ;
13981   return 0;
13982 }
13983 _ACEOF
13984 rm -f conftest.$ac_objext
13985 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13986   (eval $ac_compile) 2>&5
13987   ac_status=$?
13988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13989   (exit $ac_status); } &&
13990          { ac_try='test -s conftest.$ac_objext'
13991   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13992   (eval $ac_try) 2>&5
13993   ac_status=$?
13994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13995   (exit $ac_status); }; }; then
13996   ac_hi=-1 ac_mid=-1
13997   while :; do
13998     cat >conftest.$ac_ext <<_ACEOF
13999 #line $LINENO "configure"
14000 /* confdefs.h.  */
14001 _ACEOF
14002 cat confdefs.h >>conftest.$ac_ext
14003 cat >>conftest.$ac_ext <<_ACEOF
14004 /* end confdefs.h.  */
14005 $ac_includes_default
14006 int
14007 main ()
14008 {
14009 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= $ac_mid)];
14010 test_array [0] = 0
14011
14012   ;
14013   return 0;
14014 }
14015 _ACEOF
14016 rm -f conftest.$ac_objext
14017 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14018   (eval $ac_compile) 2>&5
14019   ac_status=$?
14020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14021   (exit $ac_status); } &&
14022          { ac_try='test -s conftest.$ac_objext'
14023   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14024   (eval $ac_try) 2>&5
14025   ac_status=$?
14026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14027   (exit $ac_status); }; }; then
14028   ac_lo=$ac_mid; break
14029 else
14030   echo "$as_me: failed program was:" >&5
14031 sed 's/^/| /' conftest.$ac_ext >&5
14032
14033 ac_hi=`expr '(' $ac_mid ')' - 1`
14034                        if test $ac_mid -le $ac_hi; then
14035                          ac_lo= ac_hi=
14036                          break
14037                        fi
14038                        ac_mid=`expr 2 '*' $ac_mid`
14039 fi
14040 rm -f conftest.$ac_objext conftest.$ac_ext
14041   done
14042 else
14043   echo "$as_me: failed program was:" >&5
14044 sed 's/^/| /' conftest.$ac_ext >&5
14045
14046 ac_lo= ac_hi=
14047 fi
14048 rm -f conftest.$ac_objext conftest.$ac_ext
14049 fi
14050 rm -f conftest.$ac_objext conftest.$ac_ext
14051 # Binary search between lo and hi bounds.
14052 while test "x$ac_lo" != "x$ac_hi"; do
14053   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14054   cat >conftest.$ac_ext <<_ACEOF
14055 #line $LINENO "configure"
14056 /* confdefs.h.  */
14057 _ACEOF
14058 cat confdefs.h >>conftest.$ac_ext
14059 cat >>conftest.$ac_ext <<_ACEOF
14060 /* end confdefs.h.  */
14061 $ac_includes_default
14062 int
14063 main ()
14064 {
14065 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
14066 test_array [0] = 0
14067
14068   ;
14069   return 0;
14070 }
14071 _ACEOF
14072 rm -f conftest.$ac_objext
14073 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14074   (eval $ac_compile) 2>&5
14075   ac_status=$?
14076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14077   (exit $ac_status); } &&
14078          { ac_try='test -s conftest.$ac_objext'
14079   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14080   (eval $ac_try) 2>&5
14081   ac_status=$?
14082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14083   (exit $ac_status); }; }; then
14084   ac_hi=$ac_mid
14085 else
14086   echo "$as_me: failed program was:" >&5
14087 sed 's/^/| /' conftest.$ac_ext >&5
14088
14089 ac_lo=`expr '(' $ac_mid ')' + 1`
14090 fi
14091 rm -f conftest.$ac_objext conftest.$ac_ext
14092 done
14093 case $ac_lo in
14094 ?*) ac_cv_sizeof_long_int=$ac_lo;;
14095 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
14096 See \`config.log' for more details." >&5
14097 echo "$as_me: error: cannot compute sizeof (long int), 77
14098 See \`config.log' for more details." >&2;}
14099    { (exit 1); exit 1; }; } ;;
14100 esac
14101 else
14102   if test "$cross_compiling" = yes; then
14103   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14104 See \`config.log' for more details." >&5
14105 echo "$as_me: error: cannot run test program while cross compiling
14106 See \`config.log' for more details." >&2;}
14107    { (exit 1); exit 1; }; }
14108 else
14109   cat >conftest.$ac_ext <<_ACEOF
14110 #line $LINENO "configure"
14111 /* confdefs.h.  */
14112 _ACEOF
14113 cat confdefs.h >>conftest.$ac_ext
14114 cat >>conftest.$ac_ext <<_ACEOF
14115 /* end confdefs.h.  */
14116 $ac_includes_default
14117 long longval () { return (long) (sizeof (long int)); }
14118 unsigned long ulongval () { return (long) (sizeof (long int)); }
14119 #include <stdio.h>
14120 #include <stdlib.h>
14121 int
14122 main ()
14123 {
14124
14125   FILE *f = fopen ("conftest.val", "w");
14126   if (! f)
14127     exit (1);
14128   if (((long) (sizeof (long int))) < 0)
14129     {
14130       long i = longval ();
14131       if (i != ((long) (sizeof (long int))))
14132         exit (1);
14133       fprintf (f, "%ld\n", i);
14134     }
14135   else
14136     {
14137       unsigned long i = ulongval ();
14138       if (i != ((long) (sizeof (long int))))
14139         exit (1);
14140       fprintf (f, "%lu\n", i);
14141     }
14142   exit (ferror (f) || fclose (f) != 0);
14143
14144   ;
14145   return 0;
14146 }
14147 _ACEOF
14148 rm -f conftest$ac_exeext
14149 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14150   (eval $ac_link) 2>&5
14151   ac_status=$?
14152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14153   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14154   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14155   (eval $ac_try) 2>&5
14156   ac_status=$?
14157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14158   (exit $ac_status); }; }; then
14159   ac_cv_sizeof_long_int=`cat conftest.val`
14160 else
14161   echo "$as_me: program exited with status $ac_status" >&5
14162 echo "$as_me: failed program was:" >&5
14163 sed 's/^/| /' conftest.$ac_ext >&5
14164
14165 ( exit $ac_status )
14166 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
14167 See \`config.log' for more details." >&5
14168 echo "$as_me: error: cannot compute sizeof (long int), 77
14169 See \`config.log' for more details." >&2;}
14170    { (exit 1); exit 1; }; }
14171 fi
14172 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14173 fi
14174 fi
14175 rm -f conftest.val
14176 else
14177   ac_cv_sizeof_long_int=0
14178 fi
14179 fi
14180 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
14181 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6
14182 cat >>confdefs.h <<_ACEOF
14183 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
14184 _ACEOF
14185
14186
14187 echo "$as_me:$LINENO: checking for long long int" >&5
14188 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
14189 if test "${ac_cv_type_long_long_int+set}" = set; then
14190   echo $ECHO_N "(cached) $ECHO_C" >&6
14191 else
14192   cat >conftest.$ac_ext <<_ACEOF
14193 #line $LINENO "configure"
14194 /* confdefs.h.  */
14195 _ACEOF
14196 cat confdefs.h >>conftest.$ac_ext
14197 cat >>conftest.$ac_ext <<_ACEOF
14198 /* end confdefs.h.  */
14199 $ac_includes_default
14200 int
14201 main ()
14202 {
14203 if ((long long int *) 0)
14204   return 0;
14205 if (sizeof (long long int))
14206   return 0;
14207   ;
14208   return 0;
14209 }
14210 _ACEOF
14211 rm -f conftest.$ac_objext
14212 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14213   (eval $ac_compile) 2>&5
14214   ac_status=$?
14215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14216   (exit $ac_status); } &&
14217          { ac_try='test -s conftest.$ac_objext'
14218   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14219   (eval $ac_try) 2>&5
14220   ac_status=$?
14221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14222   (exit $ac_status); }; }; then
14223   ac_cv_type_long_long_int=yes
14224 else
14225   echo "$as_me: failed program was:" >&5
14226 sed 's/^/| /' conftest.$ac_ext >&5
14227
14228 ac_cv_type_long_long_int=no
14229 fi
14230 rm -f conftest.$ac_objext conftest.$ac_ext
14231 fi
14232 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
14233 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
14234
14235 echo "$as_me:$LINENO: checking size of long long int" >&5
14236 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6
14237 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
14238   echo $ECHO_N "(cached) $ECHO_C" >&6
14239 else
14240   if test "$ac_cv_type_long_long_int" = yes; then
14241   # The cast to unsigned long works around a bug in the HP C Compiler
14242   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14243   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14244   # This bug is HP SR number 8606223364.
14245   if test "$cross_compiling" = yes; then
14246   # Depending upon the size, compute the lo and hi bounds.
14247 cat >conftest.$ac_ext <<_ACEOF
14248 #line $LINENO "configure"
14249 /* confdefs.h.  */
14250 _ACEOF
14251 cat confdefs.h >>conftest.$ac_ext
14252 cat >>conftest.$ac_ext <<_ACEOF
14253 /* end confdefs.h.  */
14254 $ac_includes_default
14255 int
14256 main ()
14257 {
14258 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= 0)];
14259 test_array [0] = 0
14260
14261   ;
14262   return 0;
14263 }
14264 _ACEOF
14265 rm -f conftest.$ac_objext
14266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14267   (eval $ac_compile) 2>&5
14268   ac_status=$?
14269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14270   (exit $ac_status); } &&
14271          { ac_try='test -s conftest.$ac_objext'
14272   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14273   (eval $ac_try) 2>&5
14274   ac_status=$?
14275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14276   (exit $ac_status); }; }; then
14277   ac_lo=0 ac_mid=0
14278   while :; do
14279     cat >conftest.$ac_ext <<_ACEOF
14280 #line $LINENO "configure"
14281 /* confdefs.h.  */
14282 _ACEOF
14283 cat confdefs.h >>conftest.$ac_ext
14284 cat >>conftest.$ac_ext <<_ACEOF
14285 /* end confdefs.h.  */
14286 $ac_includes_default
14287 int
14288 main ()
14289 {
14290 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
14291 test_array [0] = 0
14292
14293   ;
14294   return 0;
14295 }
14296 _ACEOF
14297 rm -f conftest.$ac_objext
14298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14299   (eval $ac_compile) 2>&5
14300   ac_status=$?
14301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14302   (exit $ac_status); } &&
14303          { ac_try='test -s conftest.$ac_objext'
14304   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14305   (eval $ac_try) 2>&5
14306   ac_status=$?
14307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14308   (exit $ac_status); }; }; then
14309   ac_hi=$ac_mid; break
14310 else
14311   echo "$as_me: failed program was:" >&5
14312 sed 's/^/| /' conftest.$ac_ext >&5
14313
14314 ac_lo=`expr $ac_mid + 1`
14315                     if test $ac_lo -le $ac_mid; then
14316                       ac_lo= ac_hi=
14317                       break
14318                     fi
14319                     ac_mid=`expr 2 '*' $ac_mid + 1`
14320 fi
14321 rm -f conftest.$ac_objext conftest.$ac_ext
14322   done
14323 else
14324   echo "$as_me: failed program was:" >&5
14325 sed 's/^/| /' conftest.$ac_ext >&5
14326
14327 cat >conftest.$ac_ext <<_ACEOF
14328 #line $LINENO "configure"
14329 /* confdefs.h.  */
14330 _ACEOF
14331 cat confdefs.h >>conftest.$ac_ext
14332 cat >>conftest.$ac_ext <<_ACEOF
14333 /* end confdefs.h.  */
14334 $ac_includes_default
14335 int
14336 main ()
14337 {
14338 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) < 0)];
14339 test_array [0] = 0
14340
14341   ;
14342   return 0;
14343 }
14344 _ACEOF
14345 rm -f conftest.$ac_objext
14346 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14347   (eval $ac_compile) 2>&5
14348   ac_status=$?
14349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14350   (exit $ac_status); } &&
14351          { ac_try='test -s conftest.$ac_objext'
14352   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14353   (eval $ac_try) 2>&5
14354   ac_status=$?
14355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14356   (exit $ac_status); }; }; then
14357   ac_hi=-1 ac_mid=-1
14358   while :; do
14359     cat >conftest.$ac_ext <<_ACEOF
14360 #line $LINENO "configure"
14361 /* confdefs.h.  */
14362 _ACEOF
14363 cat confdefs.h >>conftest.$ac_ext
14364 cat >>conftest.$ac_ext <<_ACEOF
14365 /* end confdefs.h.  */
14366 $ac_includes_default
14367 int
14368 main ()
14369 {
14370 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= $ac_mid)];
14371 test_array [0] = 0
14372
14373   ;
14374   return 0;
14375 }
14376 _ACEOF
14377 rm -f conftest.$ac_objext
14378 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14379   (eval $ac_compile) 2>&5
14380   ac_status=$?
14381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14382   (exit $ac_status); } &&
14383          { ac_try='test -s conftest.$ac_objext'
14384   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14385   (eval $ac_try) 2>&5
14386   ac_status=$?
14387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14388   (exit $ac_status); }; }; then
14389   ac_lo=$ac_mid; break
14390 else
14391   echo "$as_me: failed program was:" >&5
14392 sed 's/^/| /' conftest.$ac_ext >&5
14393
14394 ac_hi=`expr '(' $ac_mid ')' - 1`
14395                        if test $ac_mid -le $ac_hi; then
14396                          ac_lo= ac_hi=
14397                          break
14398                        fi
14399                        ac_mid=`expr 2 '*' $ac_mid`
14400 fi
14401 rm -f conftest.$ac_objext conftest.$ac_ext
14402   done
14403 else
14404   echo "$as_me: failed program was:" >&5
14405 sed 's/^/| /' conftest.$ac_ext >&5
14406
14407 ac_lo= ac_hi=
14408 fi
14409 rm -f conftest.$ac_objext conftest.$ac_ext
14410 fi
14411 rm -f conftest.$ac_objext conftest.$ac_ext
14412 # Binary search between lo and hi bounds.
14413 while test "x$ac_lo" != "x$ac_hi"; do
14414   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14415   cat >conftest.$ac_ext <<_ACEOF
14416 #line $LINENO "configure"
14417 /* confdefs.h.  */
14418 _ACEOF
14419 cat confdefs.h >>conftest.$ac_ext
14420 cat >>conftest.$ac_ext <<_ACEOF
14421 /* end confdefs.h.  */
14422 $ac_includes_default
14423 int
14424 main ()
14425 {
14426 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
14427 test_array [0] = 0
14428
14429   ;
14430   return 0;
14431 }
14432 _ACEOF
14433 rm -f conftest.$ac_objext
14434 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14435   (eval $ac_compile) 2>&5
14436   ac_status=$?
14437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14438   (exit $ac_status); } &&
14439          { ac_try='test -s conftest.$ac_objext'
14440   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14441   (eval $ac_try) 2>&5
14442   ac_status=$?
14443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14444   (exit $ac_status); }; }; then
14445   ac_hi=$ac_mid
14446 else
14447   echo "$as_me: failed program was:" >&5
14448 sed 's/^/| /' conftest.$ac_ext >&5
14449
14450 ac_lo=`expr '(' $ac_mid ')' + 1`
14451 fi
14452 rm -f conftest.$ac_objext conftest.$ac_ext
14453 done
14454 case $ac_lo in
14455 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
14456 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
14457 See \`config.log' for more details." >&5
14458 echo "$as_me: error: cannot compute sizeof (long long int), 77
14459 See \`config.log' for more details." >&2;}
14460    { (exit 1); exit 1; }; } ;;
14461 esac
14462 else
14463   if test "$cross_compiling" = yes; then
14464   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14465 See \`config.log' for more details." >&5
14466 echo "$as_me: error: cannot run test program while cross compiling
14467 See \`config.log' for more details." >&2;}
14468    { (exit 1); exit 1; }; }
14469 else
14470   cat >conftest.$ac_ext <<_ACEOF
14471 #line $LINENO "configure"
14472 /* confdefs.h.  */
14473 _ACEOF
14474 cat confdefs.h >>conftest.$ac_ext
14475 cat >>conftest.$ac_ext <<_ACEOF
14476 /* end confdefs.h.  */
14477 $ac_includes_default
14478 long longval () { return (long) (sizeof (long long int)); }
14479 unsigned long ulongval () { return (long) (sizeof (long long int)); }
14480 #include <stdio.h>
14481 #include <stdlib.h>
14482 int
14483 main ()
14484 {
14485
14486   FILE *f = fopen ("conftest.val", "w");
14487   if (! f)
14488     exit (1);
14489   if (((long) (sizeof (long long int))) < 0)
14490     {
14491       long i = longval ();
14492       if (i != ((long) (sizeof (long long int))))
14493         exit (1);
14494       fprintf (f, "%ld\n", i);
14495     }
14496   else
14497     {
14498       unsigned long i = ulongval ();
14499       if (i != ((long) (sizeof (long long int))))
14500         exit (1);
14501       fprintf (f, "%lu\n", i);
14502     }
14503   exit (ferror (f) || fclose (f) != 0);
14504
14505   ;
14506   return 0;
14507 }
14508 _ACEOF
14509 rm -f conftest$ac_exeext
14510 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14511   (eval $ac_link) 2>&5
14512   ac_status=$?
14513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14514   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14515   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14516   (eval $ac_try) 2>&5
14517   ac_status=$?
14518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14519   (exit $ac_status); }; }; then
14520   ac_cv_sizeof_long_long_int=`cat conftest.val`
14521 else
14522   echo "$as_me: program exited with status $ac_status" >&5
14523 echo "$as_me: failed program was:" >&5
14524 sed 's/^/| /' conftest.$ac_ext >&5
14525
14526 ( exit $ac_status )
14527 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
14528 See \`config.log' for more details." >&5
14529 echo "$as_me: error: cannot compute sizeof (long long int), 77
14530 See \`config.log' for more details." >&2;}
14531    { (exit 1); exit 1; }; }
14532 fi
14533 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14534 fi
14535 fi
14536 rm -f conftest.val
14537 else
14538   ac_cv_sizeof_long_long_int=0
14539 fi
14540 fi
14541 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
14542 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6
14543 cat >>confdefs.h <<_ACEOF
14544 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
14545 _ACEOF
14546
14547
14548 echo "$as_me:$LINENO: checking for int *" >&5
14549 echo $ECHO_N "checking for int *... $ECHO_C" >&6
14550 if test "${ac_cv_type_int_p+set}" = set; then
14551   echo $ECHO_N "(cached) $ECHO_C" >&6
14552 else
14553   cat >conftest.$ac_ext <<_ACEOF
14554 #line $LINENO "configure"
14555 /* confdefs.h.  */
14556 _ACEOF
14557 cat confdefs.h >>conftest.$ac_ext
14558 cat >>conftest.$ac_ext <<_ACEOF
14559 /* end confdefs.h.  */
14560 $ac_includes_default
14561 int
14562 main ()
14563 {
14564 if ((int * *) 0)
14565   return 0;
14566 if (sizeof (int *))
14567   return 0;
14568   ;
14569   return 0;
14570 }
14571 _ACEOF
14572 rm -f conftest.$ac_objext
14573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14574   (eval $ac_compile) 2>&5
14575   ac_status=$?
14576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14577   (exit $ac_status); } &&
14578          { ac_try='test -s conftest.$ac_objext'
14579   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14580   (eval $ac_try) 2>&5
14581   ac_status=$?
14582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14583   (exit $ac_status); }; }; then
14584   ac_cv_type_int_p=yes
14585 else
14586   echo "$as_me: failed program was:" >&5
14587 sed 's/^/| /' conftest.$ac_ext >&5
14588
14589 ac_cv_type_int_p=no
14590 fi
14591 rm -f conftest.$ac_objext conftest.$ac_ext
14592 fi
14593 echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
14594 echo "${ECHO_T}$ac_cv_type_int_p" >&6
14595
14596 echo "$as_me:$LINENO: checking size of int *" >&5
14597 echo $ECHO_N "checking size of int *... $ECHO_C" >&6
14598 if test "${ac_cv_sizeof_int_p+set}" = set; then
14599   echo $ECHO_N "(cached) $ECHO_C" >&6
14600 else
14601   if test "$ac_cv_type_int_p" = yes; then
14602   # The cast to unsigned long works around a bug in the HP C Compiler
14603   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14604   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14605   # This bug is HP SR number 8606223364.
14606   if test "$cross_compiling" = yes; then
14607   # Depending upon the size, compute the lo and hi bounds.
14608 cat >conftest.$ac_ext <<_ACEOF
14609 #line $LINENO "configure"
14610 /* confdefs.h.  */
14611 _ACEOF
14612 cat confdefs.h >>conftest.$ac_ext
14613 cat >>conftest.$ac_ext <<_ACEOF
14614 /* end confdefs.h.  */
14615 $ac_includes_default
14616 int
14617 main ()
14618 {
14619 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= 0)];
14620 test_array [0] = 0
14621
14622   ;
14623   return 0;
14624 }
14625 _ACEOF
14626 rm -f conftest.$ac_objext
14627 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14628   (eval $ac_compile) 2>&5
14629   ac_status=$?
14630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14631   (exit $ac_status); } &&
14632          { ac_try='test -s conftest.$ac_objext'
14633   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14634   (eval $ac_try) 2>&5
14635   ac_status=$?
14636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14637   (exit $ac_status); }; }; then
14638   ac_lo=0 ac_mid=0
14639   while :; do
14640     cat >conftest.$ac_ext <<_ACEOF
14641 #line $LINENO "configure"
14642 /* confdefs.h.  */
14643 _ACEOF
14644 cat confdefs.h >>conftest.$ac_ext
14645 cat >>conftest.$ac_ext <<_ACEOF
14646 /* end confdefs.h.  */
14647 $ac_includes_default
14648 int
14649 main ()
14650 {
14651 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
14652 test_array [0] = 0
14653
14654   ;
14655   return 0;
14656 }
14657 _ACEOF
14658 rm -f conftest.$ac_objext
14659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14660   (eval $ac_compile) 2>&5
14661   ac_status=$?
14662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14663   (exit $ac_status); } &&
14664          { ac_try='test -s conftest.$ac_objext'
14665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14666   (eval $ac_try) 2>&5
14667   ac_status=$?
14668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14669   (exit $ac_status); }; }; then
14670   ac_hi=$ac_mid; break
14671 else
14672   echo "$as_me: failed program was:" >&5
14673 sed 's/^/| /' conftest.$ac_ext >&5
14674
14675 ac_lo=`expr $ac_mid + 1`
14676                     if test $ac_lo -le $ac_mid; then
14677                       ac_lo= ac_hi=
14678                       break
14679                     fi
14680                     ac_mid=`expr 2 '*' $ac_mid + 1`
14681 fi
14682 rm -f conftest.$ac_objext conftest.$ac_ext
14683   done
14684 else
14685   echo "$as_me: failed program was:" >&5
14686 sed 's/^/| /' conftest.$ac_ext >&5
14687
14688 cat >conftest.$ac_ext <<_ACEOF
14689 #line $LINENO "configure"
14690 /* confdefs.h.  */
14691 _ACEOF
14692 cat confdefs.h >>conftest.$ac_ext
14693 cat >>conftest.$ac_ext <<_ACEOF
14694 /* end confdefs.h.  */
14695 $ac_includes_default
14696 int
14697 main ()
14698 {
14699 static int test_array [1 - 2 * !(((long) (sizeof (int *))) < 0)];
14700 test_array [0] = 0
14701
14702   ;
14703   return 0;
14704 }
14705 _ACEOF
14706 rm -f conftest.$ac_objext
14707 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14708   (eval $ac_compile) 2>&5
14709   ac_status=$?
14710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14711   (exit $ac_status); } &&
14712          { ac_try='test -s conftest.$ac_objext'
14713   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14714   (eval $ac_try) 2>&5
14715   ac_status=$?
14716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14717   (exit $ac_status); }; }; then
14718   ac_hi=-1 ac_mid=-1
14719   while :; do
14720     cat >conftest.$ac_ext <<_ACEOF
14721 #line $LINENO "configure"
14722 /* confdefs.h.  */
14723 _ACEOF
14724 cat confdefs.h >>conftest.$ac_ext
14725 cat >>conftest.$ac_ext <<_ACEOF
14726 /* end confdefs.h.  */
14727 $ac_includes_default
14728 int
14729 main ()
14730 {
14731 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= $ac_mid)];
14732 test_array [0] = 0
14733
14734   ;
14735   return 0;
14736 }
14737 _ACEOF
14738 rm -f conftest.$ac_objext
14739 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14740   (eval $ac_compile) 2>&5
14741   ac_status=$?
14742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14743   (exit $ac_status); } &&
14744          { ac_try='test -s conftest.$ac_objext'
14745   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14746   (eval $ac_try) 2>&5
14747   ac_status=$?
14748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14749   (exit $ac_status); }; }; then
14750   ac_lo=$ac_mid; break
14751 else
14752   echo "$as_me: failed program was:" >&5
14753 sed 's/^/| /' conftest.$ac_ext >&5
14754
14755 ac_hi=`expr '(' $ac_mid ')' - 1`
14756                        if test $ac_mid -le $ac_hi; then
14757                          ac_lo= ac_hi=
14758                          break
14759                        fi
14760                        ac_mid=`expr 2 '*' $ac_mid`
14761 fi
14762 rm -f conftest.$ac_objext conftest.$ac_ext
14763   done
14764 else
14765   echo "$as_me: failed program was:" >&5
14766 sed 's/^/| /' conftest.$ac_ext >&5
14767
14768 ac_lo= ac_hi=
14769 fi
14770 rm -f conftest.$ac_objext conftest.$ac_ext
14771 fi
14772 rm -f conftest.$ac_objext conftest.$ac_ext
14773 # Binary search between lo and hi bounds.
14774 while test "x$ac_lo" != "x$ac_hi"; do
14775   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14776   cat >conftest.$ac_ext <<_ACEOF
14777 #line $LINENO "configure"
14778 /* confdefs.h.  */
14779 _ACEOF
14780 cat confdefs.h >>conftest.$ac_ext
14781 cat >>conftest.$ac_ext <<_ACEOF
14782 /* end confdefs.h.  */
14783 $ac_includes_default
14784 int
14785 main ()
14786 {
14787 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
14788 test_array [0] = 0
14789
14790   ;
14791   return 0;
14792 }
14793 _ACEOF
14794 rm -f conftest.$ac_objext
14795 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14796   (eval $ac_compile) 2>&5
14797   ac_status=$?
14798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14799   (exit $ac_status); } &&
14800          { ac_try='test -s conftest.$ac_objext'
14801   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14802   (eval $ac_try) 2>&5
14803   ac_status=$?
14804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14805   (exit $ac_status); }; }; then
14806   ac_hi=$ac_mid
14807 else
14808   echo "$as_me: failed program was:" >&5
14809 sed 's/^/| /' conftest.$ac_ext >&5
14810
14811 ac_lo=`expr '(' $ac_mid ')' + 1`
14812 fi
14813 rm -f conftest.$ac_objext conftest.$ac_ext
14814 done
14815 case $ac_lo in
14816 ?*) ac_cv_sizeof_int_p=$ac_lo;;
14817 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
14818 See \`config.log' for more details." >&5
14819 echo "$as_me: error: cannot compute sizeof (int *), 77
14820 See \`config.log' for more details." >&2;}
14821    { (exit 1); exit 1; }; } ;;
14822 esac
14823 else
14824   if test "$cross_compiling" = yes; then
14825   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14826 See \`config.log' for more details." >&5
14827 echo "$as_me: error: cannot run test program while cross compiling
14828 See \`config.log' for more details." >&2;}
14829    { (exit 1); exit 1; }; }
14830 else
14831   cat >conftest.$ac_ext <<_ACEOF
14832 #line $LINENO "configure"
14833 /* confdefs.h.  */
14834 _ACEOF
14835 cat confdefs.h >>conftest.$ac_ext
14836 cat >>conftest.$ac_ext <<_ACEOF
14837 /* end confdefs.h.  */
14838 $ac_includes_default
14839 long longval () { return (long) (sizeof (int *)); }
14840 unsigned long ulongval () { return (long) (sizeof (int *)); }
14841 #include <stdio.h>
14842 #include <stdlib.h>
14843 int
14844 main ()
14845 {
14846
14847   FILE *f = fopen ("conftest.val", "w");
14848   if (! f)
14849     exit (1);
14850   if (((long) (sizeof (int *))) < 0)
14851     {
14852       long i = longval ();
14853       if (i != ((long) (sizeof (int *))))
14854         exit (1);
14855       fprintf (f, "%ld\n", i);
14856     }
14857   else
14858     {
14859       unsigned long i = ulongval ();
14860       if (i != ((long) (sizeof (int *))))
14861         exit (1);
14862       fprintf (f, "%lu\n", i);
14863     }
14864   exit (ferror (f) || fclose (f) != 0);
14865
14866   ;
14867   return 0;
14868 }
14869 _ACEOF
14870 rm -f conftest$ac_exeext
14871 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14872   (eval $ac_link) 2>&5
14873   ac_status=$?
14874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14875   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14876   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14877   (eval $ac_try) 2>&5
14878   ac_status=$?
14879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14880   (exit $ac_status); }; }; then
14881   ac_cv_sizeof_int_p=`cat conftest.val`
14882 else
14883   echo "$as_me: program exited with status $ac_status" >&5
14884 echo "$as_me: failed program was:" >&5
14885 sed 's/^/| /' conftest.$ac_ext >&5
14886
14887 ( exit $ac_status )
14888 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
14889 See \`config.log' for more details." >&5
14890 echo "$as_me: error: cannot compute sizeof (int *), 77
14891 See \`config.log' for more details." >&2;}
14892    { (exit 1); exit 1; }; }
14893 fi
14894 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14895 fi
14896 fi
14897 rm -f conftest.val
14898 else
14899   ac_cv_sizeof_int_p=0
14900 fi
14901 fi
14902 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
14903 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6
14904 cat >>confdefs.h <<_ACEOF
14905 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
14906 _ACEOF
14907
14908
14909
14910 # Check for sys/types.h types
14911 echo "$as_me:$LINENO: checking for u_int type" >&5
14912 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6
14913 if test "${ac_cv_have_u_int+set}" = set; then
14914   echo $ECHO_N "(cached) $ECHO_C" >&6
14915 else
14916
14917     cat >conftest.$ac_ext <<_ACEOF
14918 #line $LINENO "configure"
14919 /* confdefs.h.  */
14920 _ACEOF
14921 cat confdefs.h >>conftest.$ac_ext
14922 cat >>conftest.$ac_ext <<_ACEOF
14923 /* end confdefs.h.  */
14924  #include <sys/types.h>
14925 int
14926 main ()
14927 {
14928  u_int a; a = 1;
14929   ;
14930   return 0;
14931 }
14932 _ACEOF
14933 rm -f conftest.$ac_objext
14934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14935   (eval $ac_compile) 2>&5
14936   ac_status=$?
14937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14938   (exit $ac_status); } &&
14939          { ac_try='test -s conftest.$ac_objext'
14940   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14941   (eval $ac_try) 2>&5
14942   ac_status=$?
14943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14944   (exit $ac_status); }; }; then
14945    ac_cv_have_u_int="yes"
14946 else
14947   echo "$as_me: failed program was:" >&5
14948 sed 's/^/| /' conftest.$ac_ext >&5
14949
14950  ac_cv_have_u_int="no"
14951
14952 fi
14953 rm -f conftest.$ac_objext conftest.$ac_ext
14954
14955 fi
14956 echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
14957 echo "${ECHO_T}$ac_cv_have_u_int" >&6
14958 if test "x$ac_cv_have_u_int" = "xyes" ; then
14959    cat >>confdefs.h <<\_ACEOF
14960 #define HAVE_U_INT 1
14961 _ACEOF
14962
14963    have_u_int=1
14964 fi
14965
14966 echo "$as_me:$LINENO: checking for intmax_t type" >&5
14967 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6
14968 if test "${ac_cv_have_intmax_t+set}" = set; then
14969   echo $ECHO_N "(cached) $ECHO_C" >&6
14970 else
14971
14972    cat >conftest.$ac_ext <<_ACEOF
14973 #line $LINENO "configure"
14974 /* confdefs.h.  */
14975 _ACEOF
14976 cat confdefs.h >>conftest.$ac_ext
14977 cat >>conftest.$ac_ext <<_ACEOF
14978 /* end confdefs.h.  */
14979  #include <sys/types.h>
14980 int
14981 main ()
14982 {
14983  intmax_t a; a = 1;
14984   ;
14985   return 0;
14986 }
14987 _ACEOF
14988 rm -f conftest.$ac_objext
14989 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14990   (eval $ac_compile) 2>&5
14991   ac_status=$?
14992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14993   (exit $ac_status); } &&
14994          { ac_try='test -s conftest.$ac_objext'
14995   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14996   (eval $ac_try) 2>&5
14997   ac_status=$?
14998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14999   (exit $ac_status); }; }; then
15000    ac_cv_have_intmax_t="yes"
15001 else
15002   echo "$as_me: failed program was:" >&5
15003 sed 's/^/| /' conftest.$ac_ext >&5
15004
15005
15006          cat >conftest.$ac_ext <<_ACEOF
15007 #line $LINENO "configure"
15008 /* confdefs.h.  */
15009 _ACEOF
15010 cat confdefs.h >>conftest.$ac_ext
15011 cat >>conftest.$ac_ext <<_ACEOF
15012 /* end confdefs.h.  */
15013  #include <stdint.h>
15014 int
15015 main ()
15016 {
15017  intmax_t a; a = 1;
15018   ;
15019   return 0;
15020 }
15021 _ACEOF
15022 rm -f conftest.$ac_objext
15023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15024   (eval $ac_compile) 2>&5
15025   ac_status=$?
15026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15027   (exit $ac_status); } &&
15028          { ac_try='test -s conftest.$ac_objext'
15029   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15030   (eval $ac_try) 2>&5
15031   ac_status=$?
15032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15033   (exit $ac_status); }; }; then
15034    ac_cv_have_intmax_t="yes"
15035 else
15036   echo "$as_me: failed program was:" >&5
15037 sed 's/^/| /' conftest.$ac_ext >&5
15038
15039  ac_cv_have_intmax_t="no"
15040
15041 fi
15042 rm -f conftest.$ac_objext conftest.$ac_ext
15043
15044
15045 fi
15046 rm -f conftest.$ac_objext conftest.$ac_ext
15047
15048
15049 fi
15050 echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
15051 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6
15052 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
15053    cat >>confdefs.h <<\_ACEOF
15054 #define HAVE_INTMAX_T 1
15055 _ACEOF
15056
15057    have_intmax_t=1
15058 fi
15059
15060
15061 echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
15062 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6
15063 if test "${ac_cv_have_u_intmax_t+set}" = set; then
15064   echo $ECHO_N "(cached) $ECHO_C" >&6
15065 else
15066
15067    cat >conftest.$ac_ext <<_ACEOF
15068 #line $LINENO "configure"
15069 /* confdefs.h.  */
15070 _ACEOF
15071 cat confdefs.h >>conftest.$ac_ext
15072 cat >>conftest.$ac_ext <<_ACEOF
15073 /* end confdefs.h.  */
15074  #include <sys/types.h>
15075 int
15076 main ()
15077 {
15078  u_intmax_t a; a = 1;
15079   ;
15080   return 0;
15081 }
15082 _ACEOF
15083 rm -f conftest.$ac_objext
15084 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15085   (eval $ac_compile) 2>&5
15086   ac_status=$?
15087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15088   (exit $ac_status); } &&
15089          { ac_try='test -s conftest.$ac_objext'
15090   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15091   (eval $ac_try) 2>&5
15092   ac_status=$?
15093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15094   (exit $ac_status); }; }; then
15095    ac_cv_have_u_intmax_t="yes"
15096 else
15097   echo "$as_me: failed program was:" >&5
15098 sed 's/^/| /' conftest.$ac_ext >&5
15099
15100
15101          cat >conftest.$ac_ext <<_ACEOF
15102 #line $LINENO "configure"
15103 /* confdefs.h.  */
15104 _ACEOF
15105 cat confdefs.h >>conftest.$ac_ext
15106 cat >>conftest.$ac_ext <<_ACEOF
15107 /* end confdefs.h.  */
15108  #include <stdint.h>
15109 int
15110 main ()
15111 {
15112  u_intmax_t a; a = 1;
15113   ;
15114   return 0;
15115 }
15116 _ACEOF
15117 rm -f conftest.$ac_objext
15118 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15119   (eval $ac_compile) 2>&5
15120   ac_status=$?
15121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15122   (exit $ac_status); } &&
15123          { ac_try='test -s conftest.$ac_objext'
15124   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15125   (eval $ac_try) 2>&5
15126   ac_status=$?
15127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15128   (exit $ac_status); }; }; then
15129    ac_cv_have_u_intmax_t="yes"
15130 else
15131   echo "$as_me: failed program was:" >&5
15132 sed 's/^/| /' conftest.$ac_ext >&5
15133
15134  ac_cv_have_u_intmax_t="no"
15135
15136 fi
15137 rm -f conftest.$ac_objext conftest.$ac_ext
15138
15139
15140 fi
15141 rm -f conftest.$ac_objext conftest.$ac_ext
15142
15143 fi
15144 echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
15145 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6
15146 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
15147    cat >>confdefs.h <<\_ACEOF
15148 #define HAVE_U_INTMAX_T 1
15149 _ACEOF
15150
15151    have_u_intmax_t=1
15152 fi
15153
15154
15155 echo "$as_me:$LINENO: checking for intXX_t types" >&5
15156 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6
15157 if test "${ac_cv_have_intxx_t+set}" = set; then
15158   echo $ECHO_N "(cached) $ECHO_C" >&6
15159 else
15160
15161    cat >conftest.$ac_ext <<_ACEOF
15162 #line $LINENO "configure"
15163 /* confdefs.h.  */
15164 _ACEOF
15165 cat confdefs.h >>conftest.$ac_ext
15166 cat >>conftest.$ac_ext <<_ACEOF
15167 /* end confdefs.h.  */
15168  #include <sys/types.h>
15169 int
15170 main ()
15171 {
15172  int8_t a; int16_t b; int32_t c; a = b = c = 1;
15173   ;
15174   return 0;
15175 }
15176 _ACEOF
15177 rm -f conftest.$ac_objext
15178 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15179   (eval $ac_compile) 2>&5
15180   ac_status=$?
15181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15182   (exit $ac_status); } &&
15183          { ac_try='test -s conftest.$ac_objext'
15184   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15185   (eval $ac_try) 2>&5
15186   ac_status=$?
15187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15188   (exit $ac_status); }; }; then
15189    ac_cv_have_intxx_t="yes"
15190 else
15191   echo "$as_me: failed program was:" >&5
15192 sed 's/^/| /' conftest.$ac_ext >&5
15193
15194  ac_cv_have_intxx_t="no"
15195
15196 fi
15197 rm -f conftest.$ac_objext conftest.$ac_ext
15198
15199 fi
15200 echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
15201 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6
15202 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
15203    cat >>confdefs.h <<\_ACEOF
15204 #define HAVE_INTXX_T 1
15205 _ACEOF
15206
15207    have_intxx_t=1
15208 fi
15209
15210 echo "$as_me:$LINENO: checking for int64_t type" >&5
15211 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6
15212 if test "${ac_cv_have_int64_t+set}" = set; then
15213   echo $ECHO_N "(cached) $ECHO_C" >&6
15214 else
15215
15216    cat >conftest.$ac_ext <<_ACEOF
15217 #line $LINENO "configure"
15218 /* confdefs.h.  */
15219 _ACEOF
15220 cat confdefs.h >>conftest.$ac_ext
15221 cat >>conftest.$ac_ext <<_ACEOF
15222 /* end confdefs.h.  */
15223  #include <sys/types.h>
15224 int
15225 main ()
15226 {
15227  int64_t a; a = 1;
15228   ;
15229   return 0;
15230 }
15231 _ACEOF
15232 rm -f conftest.$ac_objext
15233 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15234   (eval $ac_compile) 2>&5
15235   ac_status=$?
15236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15237   (exit $ac_status); } &&
15238          { ac_try='test -s conftest.$ac_objext'
15239   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15240   (eval $ac_try) 2>&5
15241   ac_status=$?
15242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15243   (exit $ac_status); }; }; then
15244    ac_cv_have_int64_t="yes"
15245 else
15246   echo "$as_me: failed program was:" >&5
15247 sed 's/^/| /' conftest.$ac_ext >&5
15248
15249  ac_cv_have_int64_t="no"
15250
15251 fi
15252 rm -f conftest.$ac_objext conftest.$ac_ext
15253
15254 fi
15255 echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
15256 echo "${ECHO_T}$ac_cv_have_int64_t" >&6
15257 if test "x$ac_cv_have_int64_t" = "xyes" ; then
15258    cat >>confdefs.h <<\_ACEOF
15259 #define HAVE_INT64_T 1
15260 _ACEOF
15261
15262    have_int64_t=1
15263 fi
15264
15265 echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
15266 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6
15267 if test "${ac_cv_have_u_intxx_t+set}" = set; then
15268   echo $ECHO_N "(cached) $ECHO_C" >&6
15269 else
15270
15271    cat >conftest.$ac_ext <<_ACEOF
15272 #line $LINENO "configure"
15273 /* confdefs.h.  */
15274 _ACEOF
15275 cat confdefs.h >>conftest.$ac_ext
15276 cat >>conftest.$ac_ext <<_ACEOF
15277 /* end confdefs.h.  */
15278  #include <sys/types.h>
15279 int
15280 main ()
15281 {
15282  u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
15283   ;
15284   return 0;
15285 }
15286 _ACEOF
15287 rm -f conftest.$ac_objext
15288 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15289   (eval $ac_compile) 2>&5
15290   ac_status=$?
15291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15292   (exit $ac_status); } &&
15293          { ac_try='test -s conftest.$ac_objext'
15294   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15295   (eval $ac_try) 2>&5
15296   ac_status=$?
15297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15298   (exit $ac_status); }; }; then
15299    ac_cv_have_u_intxx_t="yes"
15300 else
15301   echo "$as_me: failed program was:" >&5
15302 sed 's/^/| /' conftest.$ac_ext >&5
15303
15304  ac_cv_have_u_intxx_t="no"
15305
15306 fi
15307 rm -f conftest.$ac_objext conftest.$ac_ext
15308
15309 fi
15310 echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
15311 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6
15312 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
15313    cat >>confdefs.h <<\_ACEOF
15314 #define HAVE_U_INTXX_T 1
15315 _ACEOF
15316
15317    have_u_intxx_t=1
15318 fi
15319
15320 echo "$as_me:$LINENO: checking for u_int64_t types" >&5
15321 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6
15322 if test "${ac_cv_have_u_int64_t+set}" = set; then
15323   echo $ECHO_N "(cached) $ECHO_C" >&6
15324 else
15325
15326    cat >conftest.$ac_ext <<_ACEOF
15327 #line $LINENO "configure"
15328 /* confdefs.h.  */
15329 _ACEOF
15330 cat confdefs.h >>conftest.$ac_ext
15331 cat >>conftest.$ac_ext <<_ACEOF
15332 /* end confdefs.h.  */
15333  #include <sys/types.h>
15334 int
15335 main ()
15336 {
15337  u_int64_t a; a = 1;
15338   ;
15339   return 0;
15340 }
15341 _ACEOF
15342 rm -f conftest.$ac_objext
15343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15344   (eval $ac_compile) 2>&5
15345   ac_status=$?
15346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15347   (exit $ac_status); } &&
15348          { ac_try='test -s conftest.$ac_objext'
15349   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15350   (eval $ac_try) 2>&5
15351   ac_status=$?
15352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15353   (exit $ac_status); }; }; then
15354    ac_cv_have_u_int64_t="yes"
15355 else
15356   echo "$as_me: failed program was:" >&5
15357 sed 's/^/| /' conftest.$ac_ext >&5
15358
15359  ac_cv_have_u_int64_t="no"
15360
15361 fi
15362 rm -f conftest.$ac_objext conftest.$ac_ext
15363
15364 fi
15365 echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
15366 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6
15367 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
15368    cat >>confdefs.h <<\_ACEOF
15369 #define HAVE_U_INT64_T 1
15370 _ACEOF
15371
15372    have_u_int64_t=1
15373 fi
15374
15375 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
15376            test "x$ac_cv_header_sys_bitypes_h" = "xyes")
15377 then
15378    echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
15379 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6
15380    cat >conftest.$ac_ext <<_ACEOF
15381 #line $LINENO "configure"
15382 /* confdefs.h.  */
15383 _ACEOF
15384 cat confdefs.h >>conftest.$ac_ext
15385 cat >>conftest.$ac_ext <<_ACEOF
15386 /* end confdefs.h.  */
15387  #include <sys/bitypes.h>
15388 int
15389 main ()
15390 {
15391  int8_t a; int16_t b; int32_t c;
15392         u_int8_t e; u_int16_t f; u_int32_t g;
15393         a = b = c = e = f = g = 1;
15394   ;
15395   return 0;
15396 }
15397 _ACEOF
15398 rm -f conftest.$ac_objext
15399 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15400   (eval $ac_compile) 2>&5
15401   ac_status=$?
15402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15403   (exit $ac_status); } &&
15404          { ac_try='test -s conftest.$ac_objext'
15405   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15406   (eval $ac_try) 2>&5
15407   ac_status=$?
15408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15409   (exit $ac_status); }; }; then
15410    cat >>confdefs.h <<\_ACEOF
15411 #define HAVE_U_INTXX_T 1
15412 _ACEOF
15413
15414         cat >>confdefs.h <<\_ACEOF
15415 #define HAVE_INTXX_T 1
15416 _ACEOF
15417
15418         cat >>confdefs.h <<\_ACEOF
15419 #define HAVE_SYS_BITYPES_H 1
15420 _ACEOF
15421
15422         echo "$as_me:$LINENO: result: yes" >&5
15423 echo "${ECHO_T}yes" >&6
15424 else
15425   echo "$as_me: failed program was:" >&5
15426 sed 's/^/| /' conftest.$ac_ext >&5
15427
15428  echo "$as_me:$LINENO: result: no" >&5
15429 echo "${ECHO_T}no" >&6
15430
15431 fi
15432 rm -f conftest.$ac_objext conftest.$ac_ext
15433 fi
15434
15435 if test -z "$have_u_intxx_t" ; then
15436    echo "$as_me:$LINENO: checking for uintXX_t types" >&5
15437 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6
15438 if test "${ac_cv_have_uintxx_t+set}" = set; then
15439   echo $ECHO_N "(cached) $ECHO_C" >&6
15440 else
15441
15442       cat >conftest.$ac_ext <<_ACEOF
15443 #line $LINENO "configure"
15444 /* confdefs.h.  */
15445 _ACEOF
15446 cat confdefs.h >>conftest.$ac_ext
15447 cat >>conftest.$ac_ext <<_ACEOF
15448 /* end confdefs.h.  */
15449  #include <sys/types.h>
15450 int
15451 main ()
15452 {
15453  uint8_t a; uint16_t b;
15454            uint32_t c; a = b = c = 1;
15455   ;
15456   return 0;
15457 }
15458 _ACEOF
15459 rm -f conftest.$ac_objext
15460 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15461   (eval $ac_compile) 2>&5
15462   ac_status=$?
15463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15464   (exit $ac_status); } &&
15465          { ac_try='test -s conftest.$ac_objext'
15466   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15467   (eval $ac_try) 2>&5
15468   ac_status=$?
15469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15470   (exit $ac_status); }; }; then
15471    ac_cv_have_uintxx_t="yes"
15472 else
15473   echo "$as_me: failed program was:" >&5
15474 sed 's/^/| /' conftest.$ac_ext >&5
15475
15476  ac_cv_have_uintxx_t="no"
15477
15478 fi
15479 rm -f conftest.$ac_objext conftest.$ac_ext
15480
15481 fi
15482 echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
15483 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6
15484    if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
15485       cat >>confdefs.h <<\_ACEOF
15486 #define HAVE_UINTXX_T 1
15487 _ACEOF
15488
15489    fi
15490 fi
15491
15492 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
15493           test "x$ac_cv_header_sys_bitypes_h" = "xyes")
15494 then
15495    echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
15496 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6
15497    cat >conftest.$ac_ext <<_ACEOF
15498 #line $LINENO "configure"
15499 /* confdefs.h.  */
15500 _ACEOF
15501 cat confdefs.h >>conftest.$ac_ext
15502 cat >>conftest.$ac_ext <<_ACEOF
15503 /* end confdefs.h.  */
15504  #include <sys/bitypes.h>
15505 int
15506 main ()
15507 {
15508  int64_t a; u_int64_t b;
15509        a = b = 1;
15510   ;
15511   return 0;
15512 }
15513 _ACEOF
15514 rm -f conftest.$ac_objext
15515 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15516   (eval $ac_compile) 2>&5
15517   ac_status=$?
15518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15519   (exit $ac_status); } &&
15520          { ac_try='test -s conftest.$ac_objext'
15521   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15522   (eval $ac_try) 2>&5
15523   ac_status=$?
15524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15525   (exit $ac_status); }; }; then
15526    cat >>confdefs.h <<\_ACEOF
15527 #define HAVE_U_INT64_T 1
15528 _ACEOF
15529
15530        cat >>confdefs.h <<\_ACEOF
15531 #define HAVE_INT64_T 1
15532 _ACEOF
15533
15534        echo "$as_me:$LINENO: result: yes" >&5
15535 echo "${ECHO_T}yes" >&6
15536 else
15537   echo "$as_me: failed program was:" >&5
15538 sed 's/^/| /' conftest.$ac_ext >&5
15539
15540  echo "$as_me:$LINENO: result: no" >&5
15541 echo "${ECHO_T}no" >&6
15542
15543 fi
15544 rm -f conftest.$ac_objext conftest.$ac_ext
15545 fi
15546
15547 if (test -z "$have_uintxx_t" && \
15548           test "x$ac_cv_header_sys_bitypes_h" = "xyes")
15549 then
15550    echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
15551 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6
15552    cat >conftest.$ac_ext <<_ACEOF
15553 #line $LINENO "configure"
15554 /* confdefs.h.  */
15555 _ACEOF
15556 cat confdefs.h >>conftest.$ac_ext
15557 cat >>conftest.$ac_ext <<_ACEOF
15558 /* end confdefs.h.  */
15559  #include <sys/bitypes.h>
15560 int
15561 main ()
15562 {
15563  uint8_t a; uint16_t b;
15564           uint32_t c; a = b = c = 1;
15565   ;
15566   return 0;
15567 }
15568 _ACEOF
15569 rm -f conftest.$ac_objext
15570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15571   (eval $ac_compile) 2>&5
15572   ac_status=$?
15573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15574   (exit $ac_status); } &&
15575          { ac_try='test -s conftest.$ac_objext'
15576   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15577   (eval $ac_try) 2>&5
15578   ac_status=$?
15579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15580   (exit $ac_status); }; }; then
15581    cat >>confdefs.h <<\_ACEOF
15582 #define HAVE_UINTXX_T 1
15583 _ACEOF
15584
15585        echo "$as_me:$LINENO: result: yes" >&5
15586 echo "${ECHO_T}yes" >&6
15587 else
15588   echo "$as_me: failed program was:" >&5
15589 sed 's/^/| /' conftest.$ac_ext >&5
15590
15591  echo "$as_me:$LINENO: result: no" >&5
15592 echo "${ECHO_T}no" >&6
15593
15594 fi
15595 rm -f conftest.$ac_objext conftest.$ac_ext
15596
15597 fi
15598
15599
15600
15601
15602
15603
15604
15605
15606
15607
15608
15609
15610
15611
15612
15613
15614
15615 for ac_func in \
15616         fork \
15617         getcwd \
15618         gethostname \
15619         getpid \
15620         gettimeofday \
15621         setpgid \
15622         setpgrp \
15623         setsid \
15624         signal \
15625         strerror \
15626         strncmp \
15627         strncpy \
15628         vfprintf \
15629
15630 do
15631 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15632 echo "$as_me:$LINENO: checking for $ac_func" >&5
15633 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15634 if eval "test \"\${$as_ac_var+set}\" = set"; then
15635   echo $ECHO_N "(cached) $ECHO_C" >&6
15636 else
15637   cat >conftest.$ac_ext <<_ACEOF
15638 #line $LINENO "configure"
15639 /* confdefs.h.  */
15640 _ACEOF
15641 cat confdefs.h >>conftest.$ac_ext
15642 cat >>conftest.$ac_ext <<_ACEOF
15643 /* end confdefs.h.  */
15644 /* System header to define __stub macros and hopefully few prototypes,
15645     which can conflict with char $ac_func (); below.
15646     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15647     <limits.h> exists even on freestanding compilers.  */
15648 #ifdef __STDC__
15649 # include <limits.h>
15650 #else
15651 # include <assert.h>
15652 #endif
15653 /* Override any gcc2 internal prototype to avoid an error.  */
15654 #ifdef __cplusplus
15655 extern "C"
15656 {
15657 #endif
15658 /* We use char because int might match the return type of a gcc2
15659    builtin and then its argument prototype would still apply.  */
15660 char $ac_func ();
15661 /* The GNU C library defines this for functions which it implements
15662     to always fail with ENOSYS.  Some functions are actually named
15663     something starting with __ and the normal name is an alias.  */
15664 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15665 choke me
15666 #else
15667 char (*f) () = $ac_func;
15668 #endif
15669 #ifdef __cplusplus
15670 }
15671 #endif
15672
15673 int
15674 main ()
15675 {
15676 return f != $ac_func;
15677   ;
15678   return 0;
15679 }
15680 _ACEOF
15681 rm -f conftest.$ac_objext conftest$ac_exeext
15682 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15683   (eval $ac_link) 2>&5
15684   ac_status=$?
15685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15686   (exit $ac_status); } &&
15687          { ac_try='test -s conftest$ac_exeext'
15688   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15689   (eval $ac_try) 2>&5
15690   ac_status=$?
15691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15692   (exit $ac_status); }; }; then
15693   eval "$as_ac_var=yes"
15694 else
15695   echo "$as_me: failed program was:" >&5
15696 sed 's/^/| /' conftest.$ac_ext >&5
15697
15698 eval "$as_ac_var=no"
15699 fi
15700 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15701 fi
15702 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15703 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15704 if test `eval echo '${'$as_ac_var'}'` = yes; then
15705   cat >>confdefs.h <<_ACEOF
15706 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15707 _ACEOF
15708
15709 else
15710   echo 'configure: cannot find needed function.'; exit 1
15711
15712 fi
15713 done
15714
15715
15716
15717 for ac_func in fchdir
15718 do
15719 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15720 echo "$as_me:$LINENO: checking for $ac_func" >&5
15721 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15722 if eval "test \"\${$as_ac_var+set}\" = set"; then
15723   echo $ECHO_N "(cached) $ECHO_C" >&6
15724 else
15725   cat >conftest.$ac_ext <<_ACEOF
15726 #line $LINENO "configure"
15727 /* confdefs.h.  */
15728 _ACEOF
15729 cat confdefs.h >>conftest.$ac_ext
15730 cat >>conftest.$ac_ext <<_ACEOF
15731 /* end confdefs.h.  */
15732 /* System header to define __stub macros and hopefully few prototypes,
15733     which can conflict with char $ac_func (); below.
15734     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15735     <limits.h> exists even on freestanding compilers.  */
15736 #ifdef __STDC__
15737 # include <limits.h>
15738 #else
15739 # include <assert.h>
15740 #endif
15741 /* Override any gcc2 internal prototype to avoid an error.  */
15742 #ifdef __cplusplus
15743 extern "C"
15744 {
15745 #endif
15746 /* We use char because int might match the return type of a gcc2
15747    builtin and then its argument prototype would still apply.  */
15748 char $ac_func ();
15749 /* The GNU C library defines this for functions which it implements
15750     to always fail with ENOSYS.  Some functions are actually named
15751     something starting with __ and the normal name is an alias.  */
15752 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15753 choke me
15754 #else
15755 char (*f) () = $ac_func;
15756 #endif
15757 #ifdef __cplusplus
15758 }
15759 #endif
15760
15761 int
15762 main ()
15763 {
15764 return f != $ac_func;
15765   ;
15766   return 0;
15767 }
15768 _ACEOF
15769 rm -f conftest.$ac_objext conftest$ac_exeext
15770 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15771   (eval $ac_link) 2>&5
15772   ac_status=$?
15773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15774   (exit $ac_status); } &&
15775          { ac_try='test -s conftest$ac_exeext'
15776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15777   (eval $ac_try) 2>&5
15778   ac_status=$?
15779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15780   (exit $ac_status); }; }; then
15781   eval "$as_ac_var=yes"
15782 else
15783   echo "$as_me: failed program was:" >&5
15784 sed 's/^/| /' conftest.$ac_ext >&5
15785
15786 eval "$as_ac_var=no"
15787 fi
15788 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15789 fi
15790 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15791 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15792 if test `eval echo '${'$as_ac_var'}'` = yes; then
15793   cat >>confdefs.h <<_ACEOF
15794 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15795 _ACEOF
15796  cat >>confdefs.h <<\_ACEOF
15797 #define HAVE_FCHDIR 1
15798 _ACEOF
15799
15800 fi
15801 done
15802
15803
15804 for ac_func in strtoll
15805 do
15806 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15807 echo "$as_me:$LINENO: checking for $ac_func" >&5
15808 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15809 if eval "test \"\${$as_ac_var+set}\" = set"; then
15810   echo $ECHO_N "(cached) $ECHO_C" >&6
15811 else
15812   cat >conftest.$ac_ext <<_ACEOF
15813 #line $LINENO "configure"
15814 /* confdefs.h.  */
15815 _ACEOF
15816 cat confdefs.h >>conftest.$ac_ext
15817 cat >>conftest.$ac_ext <<_ACEOF
15818 /* end confdefs.h.  */
15819 /* System header to define __stub macros and hopefully few prototypes,
15820     which can conflict with char $ac_func (); below.
15821     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15822     <limits.h> exists even on freestanding compilers.  */
15823 #ifdef __STDC__
15824 # include <limits.h>
15825 #else
15826 # include <assert.h>
15827 #endif
15828 /* Override any gcc2 internal prototype to avoid an error.  */
15829 #ifdef __cplusplus
15830 extern "C"
15831 {
15832 #endif
15833 /* We use char because int might match the return type of a gcc2
15834    builtin and then its argument prototype would still apply.  */
15835 char $ac_func ();
15836 /* The GNU C library defines this for functions which it implements
15837     to always fail with ENOSYS.  Some functions are actually named
15838     something starting with __ and the normal name is an alias.  */
15839 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15840 choke me
15841 #else
15842 char (*f) () = $ac_func;
15843 #endif
15844 #ifdef __cplusplus
15845 }
15846 #endif
15847
15848 int
15849 main ()
15850 {
15851 return f != $ac_func;
15852   ;
15853   return 0;
15854 }
15855 _ACEOF
15856 rm -f conftest.$ac_objext conftest$ac_exeext
15857 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15858   (eval $ac_link) 2>&5
15859   ac_status=$?
15860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15861   (exit $ac_status); } &&
15862          { ac_try='test -s conftest$ac_exeext'
15863   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15864   (eval $ac_try) 2>&5
15865   ac_status=$?
15866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15867   (exit $ac_status); }; }; then
15868   eval "$as_ac_var=yes"
15869 else
15870   echo "$as_me: failed program was:" >&5
15871 sed 's/^/| /' conftest.$ac_ext >&5
15872
15873 eval "$as_ac_var=no"
15874 fi
15875 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15876 fi
15877 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15878 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15879 if test `eval echo '${'$as_ac_var'}'` = yes; then
15880   cat >>confdefs.h <<_ACEOF
15881 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15882 _ACEOF
15883  cat >>confdefs.h <<\_ACEOF
15884 #define HAVE_STRTOLL 1
15885 _ACEOF
15886
15887 fi
15888 done
15889
15890
15891
15892 for ac_func in chflags
15893 do
15894 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15895 echo "$as_me:$LINENO: checking for $ac_func" >&5
15896 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15897 if eval "test \"\${$as_ac_var+set}\" = set"; then
15898   echo $ECHO_N "(cached) $ECHO_C" >&6
15899 else
15900   cat >conftest.$ac_ext <<_ACEOF
15901 #line $LINENO "configure"
15902 /* confdefs.h.  */
15903 _ACEOF
15904 cat confdefs.h >>conftest.$ac_ext
15905 cat >>conftest.$ac_ext <<_ACEOF
15906 /* end confdefs.h.  */
15907 /* System header to define __stub macros and hopefully few prototypes,
15908     which can conflict with char $ac_func (); below.
15909     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15910     <limits.h> exists even on freestanding compilers.  */
15911 #ifdef __STDC__
15912 # include <limits.h>
15913 #else
15914 # include <assert.h>
15915 #endif
15916 /* Override any gcc2 internal prototype to avoid an error.  */
15917 #ifdef __cplusplus
15918 extern "C"
15919 {
15920 #endif
15921 /* We use char because int might match the return type of a gcc2
15922    builtin and then its argument prototype would still apply.  */
15923 char $ac_func ();
15924 /* The GNU C library defines this for functions which it implements
15925     to always fail with ENOSYS.  Some functions are actually named
15926     something starting with __ and the normal name is an alias.  */
15927 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15928 choke me
15929 #else
15930 char (*f) () = $ac_func;
15931 #endif
15932 #ifdef __cplusplus
15933 }
15934 #endif
15935
15936 int
15937 main ()
15938 {
15939 return f != $ac_func;
15940   ;
15941   return 0;
15942 }
15943 _ACEOF
15944 rm -f conftest.$ac_objext conftest$ac_exeext
15945 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15946   (eval $ac_link) 2>&5
15947   ac_status=$?
15948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15949   (exit $ac_status); } &&
15950          { ac_try='test -s conftest$ac_exeext'
15951   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15952   (eval $ac_try) 2>&5
15953   ac_status=$?
15954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15955   (exit $ac_status); }; }; then
15956   eval "$as_ac_var=yes"
15957 else
15958   echo "$as_me: failed program was:" >&5
15959 sed 's/^/| /' conftest.$ac_ext >&5
15960
15961 eval "$as_ac_var=no"
15962 fi
15963 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15964 fi
15965 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15966 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15967 if test `eval echo '${'$as_ac_var'}'` = yes; then
15968   cat >>confdefs.h <<_ACEOF
15969 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15970 _ACEOF
15971
15972 fi
15973 done
15974
15975
15976
15977
15978
15979
15980 for ac_func in snprintf vsnprintf gethostid getdomainname
15981 do
15982 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15983 echo "$as_me:$LINENO: checking for $ac_func" >&5
15984 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15985 if eval "test \"\${$as_ac_var+set}\" = set"; then
15986   echo $ECHO_N "(cached) $ECHO_C" >&6
15987 else
15988   cat >conftest.$ac_ext <<_ACEOF
15989 #line $LINENO "configure"
15990 /* confdefs.h.  */
15991 _ACEOF
15992 cat confdefs.h >>conftest.$ac_ext
15993 cat >>conftest.$ac_ext <<_ACEOF
15994 /* end confdefs.h.  */
15995 /* System header to define __stub macros and hopefully few prototypes,
15996     which can conflict with char $ac_func (); below.
15997     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15998     <limits.h> exists even on freestanding compilers.  */
15999 #ifdef __STDC__
16000 # include <limits.h>
16001 #else
16002 # include <assert.h>
16003 #endif
16004 /* Override any gcc2 internal prototype to avoid an error.  */
16005 #ifdef __cplusplus
16006 extern "C"
16007 {
16008 #endif
16009 /* We use char because int might match the return type of a gcc2
16010    builtin and then its argument prototype would still apply.  */
16011 char $ac_func ();
16012 /* The GNU C library defines this for functions which it implements
16013     to always fail with ENOSYS.  Some functions are actually named
16014     something starting with __ and the normal name is an alias.  */
16015 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16016 choke me
16017 #else
16018 char (*f) () = $ac_func;
16019 #endif
16020 #ifdef __cplusplus
16021 }
16022 #endif
16023
16024 int
16025 main ()
16026 {
16027 return f != $ac_func;
16028   ;
16029   return 0;
16030 }
16031 _ACEOF
16032 rm -f conftest.$ac_objext conftest$ac_exeext
16033 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16034   (eval $ac_link) 2>&5
16035   ac_status=$?
16036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16037   (exit $ac_status); } &&
16038          { ac_try='test -s conftest$ac_exeext'
16039   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16040   (eval $ac_try) 2>&5
16041   ac_status=$?
16042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16043   (exit $ac_status); }; }; then
16044   eval "$as_ac_var=yes"
16045 else
16046   echo "$as_me: failed program was:" >&5
16047 sed 's/^/| /' conftest.$ac_ext >&5
16048
16049 eval "$as_ac_var=no"
16050 fi
16051 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16052 fi
16053 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16054 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16055 if test `eval echo '${'$as_ac_var'}'` = yes; then
16056   cat >>confdefs.h <<_ACEOF
16057 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16058 _ACEOF
16059
16060 fi
16061 done
16062
16063
16064
16065
16066
16067
16068 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
16069 do
16070 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16071 echo "$as_me:$LINENO: checking for $ac_func" >&5
16072 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16073 if eval "test \"\${$as_ac_var+set}\" = set"; then
16074   echo $ECHO_N "(cached) $ECHO_C" >&6
16075 else
16076   cat >conftest.$ac_ext <<_ACEOF
16077 #line $LINENO "configure"
16078 /* confdefs.h.  */
16079 _ACEOF
16080 cat confdefs.h >>conftest.$ac_ext
16081 cat >>conftest.$ac_ext <<_ACEOF
16082 /* end confdefs.h.  */
16083 /* System header to define __stub macros and hopefully few prototypes,
16084     which can conflict with char $ac_func (); below.
16085     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16086     <limits.h> exists even on freestanding compilers.  */
16087 #ifdef __STDC__
16088 # include <limits.h>
16089 #else
16090 # include <assert.h>
16091 #endif
16092 /* Override any gcc2 internal prototype to avoid an error.  */
16093 #ifdef __cplusplus
16094 extern "C"
16095 {
16096 #endif
16097 /* We use char because int might match the return type of a gcc2
16098    builtin and then its argument prototype would still apply.  */
16099 char $ac_func ();
16100 /* The GNU C library defines this for functions which it implements
16101     to always fail with ENOSYS.  Some functions are actually named
16102     something starting with __ and the normal name is an alias.  */
16103 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16104 choke me
16105 #else
16106 char (*f) () = $ac_func;
16107 #endif
16108 #ifdef __cplusplus
16109 }
16110 #endif
16111
16112 int
16113 main ()
16114 {
16115 return f != $ac_func;
16116   ;
16117   return 0;
16118 }
16119 _ACEOF
16120 rm -f conftest.$ac_objext conftest$ac_exeext
16121 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16122   (eval $ac_link) 2>&5
16123   ac_status=$?
16124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16125   (exit $ac_status); } &&
16126          { ac_try='test -s conftest$ac_exeext'
16127   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16128   (eval $ac_try) 2>&5
16129   ac_status=$?
16130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16131   (exit $ac_status); }; }; then
16132   eval "$as_ac_var=yes"
16133 else
16134   echo "$as_me: failed program was:" >&5
16135 sed 's/^/| /' conftest.$ac_ext >&5
16136
16137 eval "$as_ac_var=no"
16138 fi
16139 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16140 fi
16141 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16142 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16143 if test `eval echo '${'$as_ac_var'}'` = yes; then
16144   cat >>confdefs.h <<_ACEOF
16145 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16146 _ACEOF
16147
16148 fi
16149 done
16150
16151
16152 # If resolver functions are not in libc check for -lnsl or -lresolv.
16153 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
16154 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
16155 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
16156   echo $ECHO_N "(cached) $ECHO_C" >&6
16157 else
16158   cat >conftest.$ac_ext <<_ACEOF
16159 #line $LINENO "configure"
16160 /* confdefs.h.  */
16161 _ACEOF
16162 cat confdefs.h >>conftest.$ac_ext
16163 cat >>conftest.$ac_ext <<_ACEOF
16164 /* end confdefs.h.  */
16165 /* System header to define __stub macros and hopefully few prototypes,
16166     which can conflict with char gethostbyname_r (); below.
16167     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16168     <limits.h> exists even on freestanding compilers.  */
16169 #ifdef __STDC__
16170 # include <limits.h>
16171 #else
16172 # include <assert.h>
16173 #endif
16174 /* Override any gcc2 internal prototype to avoid an error.  */
16175 #ifdef __cplusplus
16176 extern "C"
16177 {
16178 #endif
16179 /* We use char because int might match the return type of a gcc2
16180    builtin and then its argument prototype would still apply.  */
16181 char gethostbyname_r ();
16182 /* The GNU C library defines this for functions which it implements
16183     to always fail with ENOSYS.  Some functions are actually named
16184     something starting with __ and the normal name is an alias.  */
16185 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
16186 choke me
16187 #else
16188 char (*f) () = gethostbyname_r;
16189 #endif
16190 #ifdef __cplusplus
16191 }
16192 #endif
16193
16194 int
16195 main ()
16196 {
16197 return f != gethostbyname_r;
16198   ;
16199   return 0;
16200 }
16201 _ACEOF
16202 rm -f conftest.$ac_objext conftest$ac_exeext
16203 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16204   (eval $ac_link) 2>&5
16205   ac_status=$?
16206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16207   (exit $ac_status); } &&
16208          { ac_try='test -s conftest$ac_exeext'
16209   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16210   (eval $ac_try) 2>&5
16211   ac_status=$?
16212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16213   (exit $ac_status); }; }; then
16214   ac_cv_func_gethostbyname_r=yes
16215 else
16216   echo "$as_me: failed program was:" >&5
16217 sed 's/^/| /' conftest.$ac_ext >&5
16218
16219 ac_cv_func_gethostbyname_r=no
16220 fi
16221 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16222 fi
16223 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
16224 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
16225 if test $ac_cv_func_gethostbyname_r = yes; then
16226   echo "$as_me:$LINENO: result: using libc's resolver" >&5
16227 echo "${ECHO_T}using libc's resolver" >&6
16228 else
16229
16230 echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
16231 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6
16232 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
16233   echo $ECHO_N "(cached) $ECHO_C" >&6
16234 else
16235   ac_check_lib_save_LIBS=$LIBS
16236 LIBS="-lnsl  $LIBS"
16237 cat >conftest.$ac_ext <<_ACEOF
16238 #line $LINENO "configure"
16239 /* confdefs.h.  */
16240 _ACEOF
16241 cat confdefs.h >>conftest.$ac_ext
16242 cat >>conftest.$ac_ext <<_ACEOF
16243 /* end confdefs.h.  */
16244
16245 /* Override any gcc2 internal prototype to avoid an error.  */
16246 #ifdef __cplusplus
16247 extern "C"
16248 #endif
16249 /* We use char because int might match the return type of a gcc2
16250    builtin and then its argument prototype would still apply.  */
16251 char gethostbyname_r ();
16252 int
16253 main ()
16254 {
16255 gethostbyname_r ();
16256   ;
16257   return 0;
16258 }
16259 _ACEOF
16260 rm -f conftest.$ac_objext conftest$ac_exeext
16261 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16262   (eval $ac_link) 2>&5
16263   ac_status=$?
16264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16265   (exit $ac_status); } &&
16266          { ac_try='test -s conftest$ac_exeext'
16267   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16268   (eval $ac_try) 2>&5
16269   ac_status=$?
16270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16271   (exit $ac_status); }; }; then
16272   ac_cv_lib_nsl_gethostbyname_r=yes
16273 else
16274   echo "$as_me: failed program was:" >&5
16275 sed 's/^/| /' conftest.$ac_ext >&5
16276
16277 ac_cv_lib_nsl_gethostbyname_r=no
16278 fi
16279 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16280 LIBS=$ac_check_lib_save_LIBS
16281 fi
16282 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
16283 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6
16284 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
16285   cat >>confdefs.h <<_ACEOF
16286 #define HAVE_LIBNSL 1
16287 _ACEOF
16288
16289   LIBS="-lnsl $LIBS"
16290
16291 fi
16292
16293
16294 echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
16295 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6
16296 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
16297   echo $ECHO_N "(cached) $ECHO_C" >&6
16298 else
16299   ac_check_lib_save_LIBS=$LIBS
16300 LIBS="-lresolv  $LIBS"
16301 cat >conftest.$ac_ext <<_ACEOF
16302 #line $LINENO "configure"
16303 /* confdefs.h.  */
16304 _ACEOF
16305 cat confdefs.h >>conftest.$ac_ext
16306 cat >>conftest.$ac_ext <<_ACEOF
16307 /* end confdefs.h.  */
16308
16309 /* Override any gcc2 internal prototype to avoid an error.  */
16310 #ifdef __cplusplus
16311 extern "C"
16312 #endif
16313 /* We use char because int might match the return type of a gcc2
16314    builtin and then its argument prototype would still apply.  */
16315 char gethostbyname_r ();
16316 int
16317 main ()
16318 {
16319 gethostbyname_r ();
16320   ;
16321   return 0;
16322 }
16323 _ACEOF
16324 rm -f conftest.$ac_objext conftest$ac_exeext
16325 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16326   (eval $ac_link) 2>&5
16327   ac_status=$?
16328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16329   (exit $ac_status); } &&
16330          { ac_try='test -s conftest$ac_exeext'
16331   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16332   (eval $ac_try) 2>&5
16333   ac_status=$?
16334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16335   (exit $ac_status); }; }; then
16336   ac_cv_lib_resolv_gethostbyname_r=yes
16337 else
16338   echo "$as_me: failed program was:" >&5
16339 sed 's/^/| /' conftest.$ac_ext >&5
16340
16341 ac_cv_lib_resolv_gethostbyname_r=no
16342 fi
16343 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16344 LIBS=$ac_check_lib_save_LIBS
16345 fi
16346 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
16347 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6
16348 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
16349   cat >>confdefs.h <<_ACEOF
16350 #define HAVE_LIBRESOLV 1
16351 _ACEOF
16352
16353   LIBS="-lresolv $LIBS"
16354
16355 fi
16356
16357 fi
16358
16359
16360
16361 # Find where sockets are (especially for Solaris)
16362 echo "$as_me:$LINENO: checking for socket" >&5
16363 echo $ECHO_N "checking for socket... $ECHO_C" >&6
16364 if test "${ac_cv_func_socket+set}" = set; then
16365   echo $ECHO_N "(cached) $ECHO_C" >&6
16366 else
16367   cat >conftest.$ac_ext <<_ACEOF
16368 #line $LINENO "configure"
16369 /* confdefs.h.  */
16370 _ACEOF
16371 cat confdefs.h >>conftest.$ac_ext
16372 cat >>conftest.$ac_ext <<_ACEOF
16373 /* end confdefs.h.  */
16374 /* System header to define __stub macros and hopefully few prototypes,
16375     which can conflict with char socket (); below.
16376     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16377     <limits.h> exists even on freestanding compilers.  */
16378 #ifdef __STDC__
16379 # include <limits.h>
16380 #else
16381 # include <assert.h>
16382 #endif
16383 /* Override any gcc2 internal prototype to avoid an error.  */
16384 #ifdef __cplusplus
16385 extern "C"
16386 {
16387 #endif
16388 /* We use char because int might match the return type of a gcc2
16389    builtin and then its argument prototype would still apply.  */
16390 char socket ();
16391 /* The GNU C library defines this for functions which it implements
16392     to always fail with ENOSYS.  Some functions are actually named
16393     something starting with __ and the normal name is an alias.  */
16394 #if defined (__stub_socket) || defined (__stub___socket)
16395 choke me
16396 #else
16397 char (*f) () = socket;
16398 #endif
16399 #ifdef __cplusplus
16400 }
16401 #endif
16402
16403 int
16404 main ()
16405 {
16406 return f != socket;
16407   ;
16408   return 0;
16409 }
16410 _ACEOF
16411 rm -f conftest.$ac_objext conftest$ac_exeext
16412 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16413   (eval $ac_link) 2>&5
16414   ac_status=$?
16415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16416   (exit $ac_status); } &&
16417          { ac_try='test -s conftest$ac_exeext'
16418   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16419   (eval $ac_try) 2>&5
16420   ac_status=$?
16421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16422   (exit $ac_status); }; }; then
16423   ac_cv_func_socket=yes
16424 else
16425   echo "$as_me: failed program was:" >&5
16426 sed 's/^/| /' conftest.$ac_ext >&5
16427
16428 ac_cv_func_socket=no
16429 fi
16430 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16431 fi
16432 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
16433 echo "${ECHO_T}$ac_cv_func_socket" >&6
16434 if test $ac_cv_func_socket = yes; then
16435   echo "$as_me:$LINENO: result: using libc's socket" >&5
16436 echo "${ECHO_T}using libc's socket" >&6
16437 else
16438
16439 echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
16440 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6
16441 if test "${ac_cv_lib_xnet_socket+set}" = set; then
16442   echo $ECHO_N "(cached) $ECHO_C" >&6
16443 else
16444   ac_check_lib_save_LIBS=$LIBS
16445 LIBS="-lxnet  $LIBS"
16446 cat >conftest.$ac_ext <<_ACEOF
16447 #line $LINENO "configure"
16448 /* confdefs.h.  */
16449 _ACEOF
16450 cat confdefs.h >>conftest.$ac_ext
16451 cat >>conftest.$ac_ext <<_ACEOF
16452 /* end confdefs.h.  */
16453
16454 /* Override any gcc2 internal prototype to avoid an error.  */
16455 #ifdef __cplusplus
16456 extern "C"
16457 #endif
16458 /* We use char because int might match the return type of a gcc2
16459    builtin and then its argument prototype would still apply.  */
16460 char socket ();
16461 int
16462 main ()
16463 {
16464 socket ();
16465   ;
16466   return 0;
16467 }
16468 _ACEOF
16469 rm -f conftest.$ac_objext conftest$ac_exeext
16470 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16471   (eval $ac_link) 2>&5
16472   ac_status=$?
16473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16474   (exit $ac_status); } &&
16475          { ac_try='test -s conftest$ac_exeext'
16476   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16477   (eval $ac_try) 2>&5
16478   ac_status=$?
16479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16480   (exit $ac_status); }; }; then
16481   ac_cv_lib_xnet_socket=yes
16482 else
16483   echo "$as_me: failed program was:" >&5
16484 sed 's/^/| /' conftest.$ac_ext >&5
16485
16486 ac_cv_lib_xnet_socket=no
16487 fi
16488 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16489 LIBS=$ac_check_lib_save_LIBS
16490 fi
16491 echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
16492 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6
16493 if test $ac_cv_lib_xnet_socket = yes; then
16494   cat >>confdefs.h <<_ACEOF
16495 #define HAVE_LIBXNET 1
16496 _ACEOF
16497
16498   LIBS="-lxnet $LIBS"
16499
16500 fi
16501
16502
16503 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
16504 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
16505 if test "${ac_cv_lib_socket_socket+set}" = set; then
16506   echo $ECHO_N "(cached) $ECHO_C" >&6
16507 else
16508   ac_check_lib_save_LIBS=$LIBS
16509 LIBS="-lsocket  $LIBS"
16510 cat >conftest.$ac_ext <<_ACEOF
16511 #line $LINENO "configure"
16512 /* confdefs.h.  */
16513 _ACEOF
16514 cat confdefs.h >>conftest.$ac_ext
16515 cat >>conftest.$ac_ext <<_ACEOF
16516 /* end confdefs.h.  */
16517
16518 /* Override any gcc2 internal prototype to avoid an error.  */
16519 #ifdef __cplusplus
16520 extern "C"
16521 #endif
16522 /* We use char because int might match the return type of a gcc2
16523    builtin and then its argument prototype would still apply.  */
16524 char socket ();
16525 int
16526 main ()
16527 {
16528 socket ();
16529   ;
16530   return 0;
16531 }
16532 _ACEOF
16533 rm -f conftest.$ac_objext conftest$ac_exeext
16534 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16535   (eval $ac_link) 2>&5
16536   ac_status=$?
16537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16538   (exit $ac_status); } &&
16539          { ac_try='test -s conftest$ac_exeext'
16540   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16541   (eval $ac_try) 2>&5
16542   ac_status=$?
16543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16544   (exit $ac_status); }; }; then
16545   ac_cv_lib_socket_socket=yes
16546 else
16547   echo "$as_me: failed program was:" >&5
16548 sed 's/^/| /' conftest.$ac_ext >&5
16549
16550 ac_cv_lib_socket_socket=no
16551 fi
16552 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16553 LIBS=$ac_check_lib_save_LIBS
16554 fi
16555 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
16556 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
16557 if test $ac_cv_lib_socket_socket = yes; then
16558   cat >>confdefs.h <<_ACEOF
16559 #define HAVE_LIBSOCKET 1
16560 _ACEOF
16561
16562   LIBS="-lsocket $LIBS"
16563
16564 fi
16565
16566
16567 echo "$as_me:$LINENO: checking for socket in -linet" >&5
16568 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
16569 if test "${ac_cv_lib_inet_socket+set}" = set; then
16570   echo $ECHO_N "(cached) $ECHO_C" >&6
16571 else
16572   ac_check_lib_save_LIBS=$LIBS
16573 LIBS="-linet  $LIBS"
16574 cat >conftest.$ac_ext <<_ACEOF
16575 #line $LINENO "configure"
16576 /* confdefs.h.  */
16577 _ACEOF
16578 cat confdefs.h >>conftest.$ac_ext
16579 cat >>conftest.$ac_ext <<_ACEOF
16580 /* end confdefs.h.  */
16581
16582 /* Override any gcc2 internal prototype to avoid an error.  */
16583 #ifdef __cplusplus
16584 extern "C"
16585 #endif
16586 /* We use char because int might match the return type of a gcc2
16587    builtin and then its argument prototype would still apply.  */
16588 char socket ();
16589 int
16590 main ()
16591 {
16592 socket ();
16593   ;
16594   return 0;
16595 }
16596 _ACEOF
16597 rm -f conftest.$ac_objext conftest$ac_exeext
16598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16599   (eval $ac_link) 2>&5
16600   ac_status=$?
16601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16602   (exit $ac_status); } &&
16603          { ac_try='test -s conftest$ac_exeext'
16604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16605   (eval $ac_try) 2>&5
16606   ac_status=$?
16607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16608   (exit $ac_status); }; }; then
16609   ac_cv_lib_inet_socket=yes
16610 else
16611   echo "$as_me: failed program was:" >&5
16612 sed 's/^/| /' conftest.$ac_ext >&5
16613
16614 ac_cv_lib_inet_socket=no
16615 fi
16616 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16617 LIBS=$ac_check_lib_save_LIBS
16618 fi
16619 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
16620 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
16621 if test $ac_cv_lib_inet_socket = yes; then
16622   cat >>confdefs.h <<_ACEOF
16623 #define HAVE_LIBINET 1
16624 _ACEOF
16625
16626   LIBS="-linet $LIBS"
16627
16628 fi
16629
16630 fi
16631
16632
16633
16634 for ac_func in inet_pton
16635 do
16636 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16637 echo "$as_me:$LINENO: checking for $ac_func" >&5
16638 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16639 if eval "test \"\${$as_ac_var+set}\" = set"; then
16640   echo $ECHO_N "(cached) $ECHO_C" >&6
16641 else
16642   cat >conftest.$ac_ext <<_ACEOF
16643 #line $LINENO "configure"
16644 /* confdefs.h.  */
16645 _ACEOF
16646 cat confdefs.h >>conftest.$ac_ext
16647 cat >>conftest.$ac_ext <<_ACEOF
16648 /* end confdefs.h.  */
16649 /* System header to define __stub macros and hopefully few prototypes,
16650     which can conflict with char $ac_func (); below.
16651     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16652     <limits.h> exists even on freestanding compilers.  */
16653 #ifdef __STDC__
16654 # include <limits.h>
16655 #else
16656 # include <assert.h>
16657 #endif
16658 /* Override any gcc2 internal prototype to avoid an error.  */
16659 #ifdef __cplusplus
16660 extern "C"
16661 {
16662 #endif
16663 /* We use char because int might match the return type of a gcc2
16664    builtin and then its argument prototype would still apply.  */
16665 char $ac_func ();
16666 /* The GNU C library defines this for functions which it implements
16667     to always fail with ENOSYS.  Some functions are actually named
16668     something starting with __ and the normal name is an alias.  */
16669 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16670 choke me
16671 #else
16672 char (*f) () = $ac_func;
16673 #endif
16674 #ifdef __cplusplus
16675 }
16676 #endif
16677
16678 int
16679 main ()
16680 {
16681 return f != $ac_func;
16682   ;
16683   return 0;
16684 }
16685 _ACEOF
16686 rm -f conftest.$ac_objext conftest$ac_exeext
16687 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16688   (eval $ac_link) 2>&5
16689   ac_status=$?
16690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16691   (exit $ac_status); } &&
16692          { ac_try='test -s conftest$ac_exeext'
16693   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16694   (eval $ac_try) 2>&5
16695   ac_status=$?
16696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16697   (exit $ac_status); }; }; then
16698   eval "$as_ac_var=yes"
16699 else
16700   echo "$as_me: failed program was:" >&5
16701 sed 's/^/| /' conftest.$ac_ext >&5
16702
16703 eval "$as_ac_var=no"
16704 fi
16705 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16706 fi
16707 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16708 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16709 if test `eval echo '${'$as_ac_var'}'` = yes; then
16710   cat >>confdefs.h <<_ACEOF
16711 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16712 _ACEOF
16713  cat >>confdefs.h <<\_ACEOF
16714 #define HAVE_INET_PTON 1
16715 _ACEOF
16716
16717 fi
16718 done
16719
16720
16721 for ac_func in inet_ntop
16722 do
16723 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16724 echo "$as_me:$LINENO: checking for $ac_func" >&5
16725 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16726 if eval "test \"\${$as_ac_var+set}\" = set"; then
16727   echo $ECHO_N "(cached) $ECHO_C" >&6
16728 else
16729   cat >conftest.$ac_ext <<_ACEOF
16730 #line $LINENO "configure"
16731 /* confdefs.h.  */
16732 _ACEOF
16733 cat confdefs.h >>conftest.$ac_ext
16734 cat >>conftest.$ac_ext <<_ACEOF
16735 /* end confdefs.h.  */
16736 /* System header to define __stub macros and hopefully few prototypes,
16737     which can conflict with char $ac_func (); below.
16738     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16739     <limits.h> exists even on freestanding compilers.  */
16740 #ifdef __STDC__
16741 # include <limits.h>
16742 #else
16743 # include <assert.h>
16744 #endif
16745 /* Override any gcc2 internal prototype to avoid an error.  */
16746 #ifdef __cplusplus
16747 extern "C"
16748 {
16749 #endif
16750 /* We use char because int might match the return type of a gcc2
16751    builtin and then its argument prototype would still apply.  */
16752 char $ac_func ();
16753 /* The GNU C library defines this for functions which it implements
16754     to always fail with ENOSYS.  Some functions are actually named
16755     something starting with __ and the normal name is an alias.  */
16756 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16757 choke me
16758 #else
16759 char (*f) () = $ac_func;
16760 #endif
16761 #ifdef __cplusplus
16762 }
16763 #endif
16764
16765 int
16766 main ()
16767 {
16768 return f != $ac_func;
16769   ;
16770   return 0;
16771 }
16772 _ACEOF
16773 rm -f conftest.$ac_objext conftest$ac_exeext
16774 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16775   (eval $ac_link) 2>&5
16776   ac_status=$?
16777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16778   (exit $ac_status); } &&
16779          { ac_try='test -s conftest$ac_exeext'
16780   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16781   (eval $ac_try) 2>&5
16782   ac_status=$?
16783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16784   (exit $ac_status); }; }; then
16785   eval "$as_ac_var=yes"
16786 else
16787   echo "$as_me: failed program was:" >&5
16788 sed 's/^/| /' conftest.$ac_ext >&5
16789
16790 eval "$as_ac_var=no"
16791 fi
16792 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16793 fi
16794 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16795 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16796 if test `eval echo '${'$as_ac_var'}'` = yes; then
16797   cat >>confdefs.h <<_ACEOF
16798 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16799 _ACEOF
16800  cat >>confdefs.h <<\_ACEOF
16801 #define HAVE_INET_NTOP 1
16802 _ACEOF
16803
16804 fi
16805 done
16806
16807
16808 for ac_func in gethostbyname2
16809 do
16810 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16811 echo "$as_me:$LINENO: checking for $ac_func" >&5
16812 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16813 if eval "test \"\${$as_ac_var+set}\" = set"; then
16814   echo $ECHO_N "(cached) $ECHO_C" >&6
16815 else
16816   cat >conftest.$ac_ext <<_ACEOF
16817 #line $LINENO "configure"
16818 /* confdefs.h.  */
16819 _ACEOF
16820 cat confdefs.h >>conftest.$ac_ext
16821 cat >>conftest.$ac_ext <<_ACEOF
16822 /* end confdefs.h.  */
16823 /* System header to define __stub macros and hopefully few prototypes,
16824     which can conflict with char $ac_func (); below.
16825     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16826     <limits.h> exists even on freestanding compilers.  */
16827 #ifdef __STDC__
16828 # include <limits.h>
16829 #else
16830 # include <assert.h>
16831 #endif
16832 /* Override any gcc2 internal prototype to avoid an error.  */
16833 #ifdef __cplusplus
16834 extern "C"
16835 {
16836 #endif
16837 /* We use char because int might match the return type of a gcc2
16838    builtin and then its argument prototype would still apply.  */
16839 char $ac_func ();
16840 /* The GNU C library defines this for functions which it implements
16841     to always fail with ENOSYS.  Some functions are actually named
16842     something starting with __ and the normal name is an alias.  */
16843 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16844 choke me
16845 #else
16846 char (*f) () = $ac_func;
16847 #endif
16848 #ifdef __cplusplus
16849 }
16850 #endif
16851
16852 int
16853 main ()
16854 {
16855 return f != $ac_func;
16856   ;
16857   return 0;
16858 }
16859 _ACEOF
16860 rm -f conftest.$ac_objext conftest$ac_exeext
16861 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16862   (eval $ac_link) 2>&5
16863   ac_status=$?
16864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16865   (exit $ac_status); } &&
16866          { ac_try='test -s conftest$ac_exeext'
16867   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16868   (eval $ac_try) 2>&5
16869   ac_status=$?
16870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16871   (exit $ac_status); }; }; then
16872   eval "$as_ac_var=yes"
16873 else
16874   echo "$as_me: failed program was:" >&5
16875 sed 's/^/| /' conftest.$ac_ext >&5
16876
16877 eval "$as_ac_var=no"
16878 fi
16879 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16880 fi
16881 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16882 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16883 if test `eval echo '${'$as_ac_var'}'` = yes; then
16884   cat >>confdefs.h <<_ACEOF
16885 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16886 _ACEOF
16887  cat >>confdefs.h <<\_ACEOF
16888 #define HAVE_GETHOSTBYNAME2 1
16889 _ACEOF
16890
16891 fi
16892 done
16893
16894
16895 echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
16896 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6
16897 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
16898   echo $ECHO_N "(cached) $ECHO_C" >&6
16899 else
16900   cat >conftest.$ac_ext <<_ACEOF
16901 #line $LINENO "configure"
16902 /* confdefs.h.  */
16903 _ACEOF
16904 cat confdefs.h >>conftest.$ac_ext
16905 cat >>conftest.$ac_ext <<_ACEOF
16906 /* end confdefs.h.  */
16907 #include <sys/socket.h>
16908 int
16909 main ()
16910 {
16911 struct sockaddr s; s.sa_len;
16912   ;
16913   return 0;
16914 }
16915 _ACEOF
16916 rm -f conftest.$ac_objext
16917 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16918   (eval $ac_compile) 2>&5
16919   ac_status=$?
16920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16921   (exit $ac_status); } &&
16922          { ac_try='test -s conftest.$ac_objext'
16923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16924   (eval $ac_try) 2>&5
16925   ac_status=$?
16926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16927   (exit $ac_status); }; }; then
16928   ac_cv_struct_sockaddr_sa_len=yes
16929 else
16930   echo "$as_me: failed program was:" >&5
16931 sed 's/^/| /' conftest.$ac_ext >&5
16932
16933 ac_cv_struct_sockaddr_sa_len=no
16934 fi
16935 rm -f conftest.$ac_objext conftest.$ac_ext
16936 fi
16937 echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
16938 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6
16939
16940  if test $ac_cv_struct_sockaddr_sa_len = yes; then
16941
16942 cat >>confdefs.h <<\_ACEOF
16943 #define HAVE_SA_LEN 1
16944 _ACEOF
16945
16946  fi
16947
16948
16949 echo "$as_me:$LINENO: checking for IPv6 support" >&5
16950 echo $ECHO_N "checking for IPv6 support... $ECHO_C" >&6
16951 if test "${ac_cv_ipv6_support+set}" = set; then
16952   echo $ECHO_N "(cached) $ECHO_C" >&6
16953 else
16954   cat >conftest.$ac_ext <<_ACEOF
16955 #line $LINENO "configure"
16956 /* confdefs.h.  */
16957 _ACEOF
16958 cat confdefs.h >>conftest.$ac_ext
16959 cat >>conftest.$ac_ext <<_ACEOF
16960 /* end confdefs.h.  */
16961  #include <sys/types.h>
16962 #include <sys/socket.h>
16963 #include <netinet/in.h>
16964 int
16965 main ()
16966 {
16967 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] =
16968  0;
16969   ;
16970   return 0;
16971 }
16972 _ACEOF
16973 rm -f conftest.$ac_objext conftest$ac_exeext
16974 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16975   (eval $ac_link) 2>&5
16976   ac_status=$?
16977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16978   (exit $ac_status); } &&
16979          { ac_try='test -s conftest$ac_exeext'
16980   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16981   (eval $ac_try) 2>&5
16982   ac_status=$?
16983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16984   (exit $ac_status); }; }; then
16985   ac_cv_ipv6_support=yes
16986 else
16987   echo "$as_me: failed program was:" >&5
16988 sed 's/^/| /' conftest.$ac_ext >&5
16989
16990 ac_cv_ipv6_support=no
16991 fi
16992 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16993 fi
16994 echo "$as_me:$LINENO: result: $ac_cv_ipv6_support" >&5
16995 echo "${ECHO_T}$ac_cv_ipv6_support" >&6
16996
16997 if test "$ac_cv_ipv6_support" = yes; then
16998
16999 cat >>confdefs.h <<\_ACEOF
17000 #define HAVE_IPV6 1
17001 _ACEOF
17002
17003 fi
17004
17005
17006
17007
17008 for ac_func in strftime
17009 do
17010 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17011 echo "$as_me:$LINENO: checking for $ac_func" >&5
17012 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17013 if eval "test \"\${$as_ac_var+set}\" = set"; then
17014   echo $ECHO_N "(cached) $ECHO_C" >&6
17015 else
17016   cat >conftest.$ac_ext <<_ACEOF
17017 #line $LINENO "configure"
17018 /* confdefs.h.  */
17019 _ACEOF
17020 cat confdefs.h >>conftest.$ac_ext
17021 cat >>conftest.$ac_ext <<_ACEOF
17022 /* end confdefs.h.  */
17023 /* System header to define __stub macros and hopefully few prototypes,
17024     which can conflict with char $ac_func (); below.
17025     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17026     <limits.h> exists even on freestanding compilers.  */
17027 #ifdef __STDC__
17028 # include <limits.h>
17029 #else
17030 # include <assert.h>
17031 #endif
17032 /* Override any gcc2 internal prototype to avoid an error.  */
17033 #ifdef __cplusplus
17034 extern "C"
17035 {
17036 #endif
17037 /* We use char because int might match the return type of a gcc2
17038    builtin and then its argument prototype would still apply.  */
17039 char $ac_func ();
17040 /* The GNU C library defines this for functions which it implements
17041     to always fail with ENOSYS.  Some functions are actually named
17042     something starting with __ and the normal name is an alias.  */
17043 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17044 choke me
17045 #else
17046 char (*f) () = $ac_func;
17047 #endif
17048 #ifdef __cplusplus
17049 }
17050 #endif
17051
17052 int
17053 main ()
17054 {
17055 return f != $ac_func;
17056   ;
17057   return 0;
17058 }
17059 _ACEOF
17060 rm -f conftest.$ac_objext conftest$ac_exeext
17061 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17062   (eval $ac_link) 2>&5
17063   ac_status=$?
17064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17065   (exit $ac_status); } &&
17066          { ac_try='test -s conftest$ac_exeext'
17067   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17068   (eval $ac_try) 2>&5
17069   ac_status=$?
17070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17071   (exit $ac_status); }; }; then
17072   eval "$as_ac_var=yes"
17073 else
17074   echo "$as_me: failed program was:" >&5
17075 sed 's/^/| /' conftest.$ac_ext >&5
17076
17077 eval "$as_ac_var=no"
17078 fi
17079 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17080 fi
17081 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17082 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17083 if test `eval echo '${'$as_ac_var'}'` = yes; then
17084   cat >>confdefs.h <<_ACEOF
17085 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17086 _ACEOF
17087
17088 else
17089   # strftime is in -lintl on SCO UNIX.
17090 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
17091 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
17092 if test "${ac_cv_lib_intl_strftime+set}" = set; then
17093   echo $ECHO_N "(cached) $ECHO_C" >&6
17094 else
17095   ac_check_lib_save_LIBS=$LIBS
17096 LIBS="-lintl  $LIBS"
17097 cat >conftest.$ac_ext <<_ACEOF
17098 #line $LINENO "configure"
17099 /* confdefs.h.  */
17100 _ACEOF
17101 cat confdefs.h >>conftest.$ac_ext
17102 cat >>conftest.$ac_ext <<_ACEOF
17103 /* end confdefs.h.  */
17104
17105 /* Override any gcc2 internal prototype to avoid an error.  */
17106 #ifdef __cplusplus
17107 extern "C"
17108 #endif
17109 /* We use char because int might match the return type of a gcc2
17110    builtin and then its argument prototype would still apply.  */
17111 char strftime ();
17112 int
17113 main ()
17114 {
17115 strftime ();
17116   ;
17117   return 0;
17118 }
17119 _ACEOF
17120 rm -f conftest.$ac_objext conftest$ac_exeext
17121 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17122   (eval $ac_link) 2>&5
17123   ac_status=$?
17124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17125   (exit $ac_status); } &&
17126          { ac_try='test -s conftest$ac_exeext'
17127   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17128   (eval $ac_try) 2>&5
17129   ac_status=$?
17130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17131   (exit $ac_status); }; }; then
17132   ac_cv_lib_intl_strftime=yes
17133 else
17134   echo "$as_me: failed program was:" >&5
17135 sed 's/^/| /' conftest.$ac_ext >&5
17136
17137 ac_cv_lib_intl_strftime=no
17138 fi
17139 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17140 LIBS=$ac_check_lib_save_LIBS
17141 fi
17142 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
17143 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
17144 if test $ac_cv_lib_intl_strftime = yes; then
17145   cat >>confdefs.h <<\_ACEOF
17146 #define HAVE_STRFTIME 1
17147 _ACEOF
17148
17149 LIBS="-lintl $LIBS"
17150 fi
17151
17152 fi
17153 done
17154
17155
17156 for ac_func in vprintf
17157 do
17158 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17159 echo "$as_me:$LINENO: checking for $ac_func" >&5
17160 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17161 if eval "test \"\${$as_ac_var+set}\" = set"; then
17162   echo $ECHO_N "(cached) $ECHO_C" >&6
17163 else
17164   cat >conftest.$ac_ext <<_ACEOF
17165 #line $LINENO "configure"
17166 /* confdefs.h.  */
17167 _ACEOF
17168 cat confdefs.h >>conftest.$ac_ext
17169 cat >>conftest.$ac_ext <<_ACEOF
17170 /* end confdefs.h.  */
17171 /* System header to define __stub macros and hopefully few prototypes,
17172     which can conflict with char $ac_func (); below.
17173     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17174     <limits.h> exists even on freestanding compilers.  */
17175 #ifdef __STDC__
17176 # include <limits.h>
17177 #else
17178 # include <assert.h>
17179 #endif
17180 /* Override any gcc2 internal prototype to avoid an error.  */
17181 #ifdef __cplusplus
17182 extern "C"
17183 {
17184 #endif
17185 /* We use char because int might match the return type of a gcc2
17186    builtin and then its argument prototype would still apply.  */
17187 char $ac_func ();
17188 /* The GNU C library defines this for functions which it implements
17189     to always fail with ENOSYS.  Some functions are actually named
17190     something starting with __ and the normal name is an alias.  */
17191 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17192 choke me
17193 #else
17194 char (*f) () = $ac_func;
17195 #endif
17196 #ifdef __cplusplus
17197 }
17198 #endif
17199
17200 int
17201 main ()
17202 {
17203 return f != $ac_func;
17204   ;
17205   return 0;
17206 }
17207 _ACEOF
17208 rm -f conftest.$ac_objext conftest$ac_exeext
17209 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17210   (eval $ac_link) 2>&5
17211   ac_status=$?
17212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17213   (exit $ac_status); } &&
17214          { ac_try='test -s conftest$ac_exeext'
17215   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17216   (eval $ac_try) 2>&5
17217   ac_status=$?
17218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17219   (exit $ac_status); }; }; then
17220   eval "$as_ac_var=yes"
17221 else
17222   echo "$as_me: failed program was:" >&5
17223 sed 's/^/| /' conftest.$ac_ext >&5
17224
17225 eval "$as_ac_var=no"
17226 fi
17227 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17228 fi
17229 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17230 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17231 if test `eval echo '${'$as_ac_var'}'` = yes; then
17232   cat >>confdefs.h <<_ACEOF
17233 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17234 _ACEOF
17235
17236 echo "$as_me:$LINENO: checking for _doprnt" >&5
17237 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
17238 if test "${ac_cv_func__doprnt+set}" = set; then
17239   echo $ECHO_N "(cached) $ECHO_C" >&6
17240 else
17241   cat >conftest.$ac_ext <<_ACEOF
17242 #line $LINENO "configure"
17243 /* confdefs.h.  */
17244 _ACEOF
17245 cat confdefs.h >>conftest.$ac_ext
17246 cat >>conftest.$ac_ext <<_ACEOF
17247 /* end confdefs.h.  */
17248 /* System header to define __stub macros and hopefully few prototypes,
17249     which can conflict with char _doprnt (); below.
17250     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17251     <limits.h> exists even on freestanding compilers.  */
17252 #ifdef __STDC__
17253 # include <limits.h>
17254 #else
17255 # include <assert.h>
17256 #endif
17257 /* Override any gcc2 internal prototype to avoid an error.  */
17258 #ifdef __cplusplus
17259 extern "C"
17260 {
17261 #endif
17262 /* We use char because int might match the return type of a gcc2
17263    builtin and then its argument prototype would still apply.  */
17264 char _doprnt ();
17265 /* The GNU C library defines this for functions which it implements
17266     to always fail with ENOSYS.  Some functions are actually named
17267     something starting with __ and the normal name is an alias.  */
17268 #if defined (__stub__doprnt) || defined (__stub____doprnt)
17269 choke me
17270 #else
17271 char (*f) () = _doprnt;
17272 #endif
17273 #ifdef __cplusplus
17274 }
17275 #endif
17276
17277 int
17278 main ()
17279 {
17280 return f != _doprnt;
17281   ;
17282   return 0;
17283 }
17284 _ACEOF
17285 rm -f conftest.$ac_objext conftest$ac_exeext
17286 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17287   (eval $ac_link) 2>&5
17288   ac_status=$?
17289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17290   (exit $ac_status); } &&
17291          { ac_try='test -s conftest$ac_exeext'
17292   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17293   (eval $ac_try) 2>&5
17294   ac_status=$?
17295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17296   (exit $ac_status); }; }; then
17297   ac_cv_func__doprnt=yes
17298 else
17299   echo "$as_me: failed program was:" >&5
17300 sed 's/^/| /' conftest.$ac_ext >&5
17301
17302 ac_cv_func__doprnt=no
17303 fi
17304 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17305 fi
17306 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
17307 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
17308 if test $ac_cv_func__doprnt = yes; then
17309
17310 cat >>confdefs.h <<\_ACEOF
17311 #define HAVE_DOPRNT 1
17312 _ACEOF
17313
17314 fi
17315
17316 fi
17317 done
17318
17319
17320 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
17321 # for constant arguments.  Useless!
17322 echo "$as_me:$LINENO: checking for working alloca.h" >&5
17323 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
17324 if test "${ac_cv_working_alloca_h+set}" = set; then
17325   echo $ECHO_N "(cached) $ECHO_C" >&6
17326 else
17327   cat >conftest.$ac_ext <<_ACEOF
17328 #line $LINENO "configure"
17329 /* confdefs.h.  */
17330 _ACEOF
17331 cat confdefs.h >>conftest.$ac_ext
17332 cat >>conftest.$ac_ext <<_ACEOF
17333 /* end confdefs.h.  */
17334 #include <alloca.h>
17335 int
17336 main ()
17337 {
17338 char *p = (char *) alloca (2 * sizeof (int));
17339   ;
17340   return 0;
17341 }
17342 _ACEOF
17343 rm -f conftest.$ac_objext conftest$ac_exeext
17344 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17345   (eval $ac_link) 2>&5
17346   ac_status=$?
17347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17348   (exit $ac_status); } &&
17349          { ac_try='test -s conftest$ac_exeext'
17350   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17351   (eval $ac_try) 2>&5
17352   ac_status=$?
17353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17354   (exit $ac_status); }; }; then
17355   ac_cv_working_alloca_h=yes
17356 else
17357   echo "$as_me: failed program was:" >&5
17358 sed 's/^/| /' conftest.$ac_ext >&5
17359
17360 ac_cv_working_alloca_h=no
17361 fi
17362 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17363 fi
17364 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
17365 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
17366 if test $ac_cv_working_alloca_h = yes; then
17367
17368 cat >>confdefs.h <<\_ACEOF
17369 #define HAVE_ALLOCA_H 1
17370 _ACEOF
17371
17372 fi
17373
17374 echo "$as_me:$LINENO: checking for alloca" >&5
17375 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
17376 if test "${ac_cv_func_alloca_works+set}" = set; then
17377   echo $ECHO_N "(cached) $ECHO_C" >&6
17378 else
17379   cat >conftest.$ac_ext <<_ACEOF
17380 #line $LINENO "configure"
17381 /* confdefs.h.  */
17382 _ACEOF
17383 cat confdefs.h >>conftest.$ac_ext
17384 cat >>conftest.$ac_ext <<_ACEOF
17385 /* end confdefs.h.  */
17386 #ifdef __GNUC__
17387 # define alloca __builtin_alloca
17388 #else
17389 # ifdef _MSC_VER
17390 #  include <malloc.h>
17391 #  define alloca _alloca
17392 # else
17393 #  if HAVE_ALLOCA_H
17394 #   include <alloca.h>
17395 #  else
17396 #   ifdef _AIX
17397  #pragma alloca
17398 #   else
17399 #    ifndef alloca /* predefined by HP cc +Olibcalls */
17400 char *alloca ();
17401 #    endif
17402 #   endif
17403 #  endif
17404 # endif
17405 #endif
17406
17407 int
17408 main ()
17409 {
17410 char *p = (char *) alloca (1);
17411   ;
17412   return 0;
17413 }
17414 _ACEOF
17415 rm -f conftest.$ac_objext conftest$ac_exeext
17416 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17417   (eval $ac_link) 2>&5
17418   ac_status=$?
17419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17420   (exit $ac_status); } &&
17421          { ac_try='test -s conftest$ac_exeext'
17422   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17423   (eval $ac_try) 2>&5
17424   ac_status=$?
17425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17426   (exit $ac_status); }; }; then
17427   ac_cv_func_alloca_works=yes
17428 else
17429   echo "$as_me: failed program was:" >&5
17430 sed 's/^/| /' conftest.$ac_ext >&5
17431
17432 ac_cv_func_alloca_works=no
17433 fi
17434 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17435 fi
17436 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
17437 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
17438
17439 if test $ac_cv_func_alloca_works = yes; then
17440
17441 cat >>confdefs.h <<\_ACEOF
17442 #define HAVE_ALLOCA 1
17443 _ACEOF
17444
17445 else
17446   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
17447 # that cause trouble.  Some versions do not even contain alloca or
17448 # contain a buggy version.  If you still want to use their alloca,
17449 # use ar to extract alloca.o from them instead of compiling alloca.c.
17450
17451 ALLOCA=alloca.$ac_objext
17452
17453 cat >>confdefs.h <<\_ACEOF
17454 #define C_ALLOCA 1
17455 _ACEOF
17456
17457
17458 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
17459 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
17460 if test "${ac_cv_os_cray+set}" = set; then
17461   echo $ECHO_N "(cached) $ECHO_C" >&6
17462 else
17463   cat >conftest.$ac_ext <<_ACEOF
17464 #line $LINENO "configure"
17465 /* confdefs.h.  */
17466 _ACEOF
17467 cat confdefs.h >>conftest.$ac_ext
17468 cat >>conftest.$ac_ext <<_ACEOF
17469 /* end confdefs.h.  */
17470 #if defined(CRAY) && ! defined(CRAY2)
17471 webecray
17472 #else
17473 wenotbecray
17474 #endif
17475
17476 _ACEOF
17477 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17478   $EGREP "webecray" >/dev/null 2>&1; then
17479   ac_cv_os_cray=yes
17480 else
17481   ac_cv_os_cray=no
17482 fi
17483 rm -f conftest*
17484
17485 fi
17486 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
17487 echo "${ECHO_T}$ac_cv_os_cray" >&6
17488 if test $ac_cv_os_cray = yes; then
17489   for ac_func in _getb67 GETB67 getb67; do
17490     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17491 echo "$as_me:$LINENO: checking for $ac_func" >&5
17492 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17493 if eval "test \"\${$as_ac_var+set}\" = set"; then
17494   echo $ECHO_N "(cached) $ECHO_C" >&6
17495 else
17496   cat >conftest.$ac_ext <<_ACEOF
17497 #line $LINENO "configure"
17498 /* confdefs.h.  */
17499 _ACEOF
17500 cat confdefs.h >>conftest.$ac_ext
17501 cat >>conftest.$ac_ext <<_ACEOF
17502 /* end confdefs.h.  */
17503 /* System header to define __stub macros and hopefully few prototypes,
17504     which can conflict with char $ac_func (); below.
17505     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17506     <limits.h> exists even on freestanding compilers.  */
17507 #ifdef __STDC__
17508 # include <limits.h>
17509 #else
17510 # include <assert.h>
17511 #endif
17512 /* Override any gcc2 internal prototype to avoid an error.  */
17513 #ifdef __cplusplus
17514 extern "C"
17515 {
17516 #endif
17517 /* We use char because int might match the return type of a gcc2
17518    builtin and then its argument prototype would still apply.  */
17519 char $ac_func ();
17520 /* The GNU C library defines this for functions which it implements
17521     to always fail with ENOSYS.  Some functions are actually named
17522     something starting with __ and the normal name is an alias.  */
17523 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17524 choke me
17525 #else
17526 char (*f) () = $ac_func;
17527 #endif
17528 #ifdef __cplusplus
17529 }
17530 #endif
17531
17532 int
17533 main ()
17534 {
17535 return f != $ac_func;
17536   ;
17537   return 0;
17538 }
17539 _ACEOF
17540 rm -f conftest.$ac_objext conftest$ac_exeext
17541 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17542   (eval $ac_link) 2>&5
17543   ac_status=$?
17544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17545   (exit $ac_status); } &&
17546          { ac_try='test -s conftest$ac_exeext'
17547   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17548   (eval $ac_try) 2>&5
17549   ac_status=$?
17550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17551   (exit $ac_status); }; }; then
17552   eval "$as_ac_var=yes"
17553 else
17554   echo "$as_me: failed program was:" >&5
17555 sed 's/^/| /' conftest.$ac_ext >&5
17556
17557 eval "$as_ac_var=no"
17558 fi
17559 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17560 fi
17561 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17562 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17563 if test `eval echo '${'$as_ac_var'}'` = yes; then
17564
17565 cat >>confdefs.h <<_ACEOF
17566 #define CRAY_STACKSEG_END $ac_func
17567 _ACEOF
17568
17569     break
17570 fi
17571
17572   done
17573 fi
17574
17575 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
17576 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
17577 if test "${ac_cv_c_stack_direction+set}" = set; then
17578   echo $ECHO_N "(cached) $ECHO_C" >&6
17579 else
17580   if test "$cross_compiling" = yes; then
17581   ac_cv_c_stack_direction=0
17582 else
17583   cat >conftest.$ac_ext <<_ACEOF
17584 #line $LINENO "configure"
17585 /* confdefs.h.  */
17586 _ACEOF
17587 cat confdefs.h >>conftest.$ac_ext
17588 cat >>conftest.$ac_ext <<_ACEOF
17589 /* end confdefs.h.  */
17590 int
17591 find_stack_direction ()
17592 {
17593   static char *addr = 0;
17594   auto char dummy;
17595   if (addr == 0)
17596     {
17597       addr = &dummy;
17598       return find_stack_direction ();
17599     }
17600   else
17601     return (&dummy > addr) ? 1 : -1;
17602 }
17603
17604 int
17605 main ()
17606 {
17607   exit (find_stack_direction () < 0);
17608 }
17609 _ACEOF
17610 rm -f conftest$ac_exeext
17611 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17612   (eval $ac_link) 2>&5
17613   ac_status=$?
17614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17615   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17617   (eval $ac_try) 2>&5
17618   ac_status=$?
17619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17620   (exit $ac_status); }; }; then
17621   ac_cv_c_stack_direction=1
17622 else
17623   echo "$as_me: program exited with status $ac_status" >&5
17624 echo "$as_me: failed program was:" >&5
17625 sed 's/^/| /' conftest.$ac_ext >&5
17626
17627 ( exit $ac_status )
17628 ac_cv_c_stack_direction=-1
17629 fi
17630 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17631 fi
17632 fi
17633 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
17634 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
17635
17636 cat >>confdefs.h <<_ACEOF
17637 #define STACK_DIRECTION $ac_cv_c_stack_direction
17638 _ACEOF
17639
17640
17641 fi
17642
17643 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
17644 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
17645 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
17646 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
17647   echo $ECHO_N "(cached) $ECHO_C" >&6
17648 else
17649   ac_check_lib_save_LIBS=$LIBS
17650 LIBS="-lsun  $LIBS"
17651 cat >conftest.$ac_ext <<_ACEOF
17652 #line $LINENO "configure"
17653 /* confdefs.h.  */
17654 _ACEOF
17655 cat confdefs.h >>conftest.$ac_ext
17656 cat >>conftest.$ac_ext <<_ACEOF
17657 /* end confdefs.h.  */
17658
17659 /* Override any gcc2 internal prototype to avoid an error.  */
17660 #ifdef __cplusplus
17661 extern "C"
17662 #endif
17663 /* We use char because int might match the return type of a gcc2
17664    builtin and then its argument prototype would still apply.  */
17665 char getmntent ();
17666 int
17667 main ()
17668 {
17669 getmntent ();
17670   ;
17671   return 0;
17672 }
17673 _ACEOF
17674 rm -f conftest.$ac_objext conftest$ac_exeext
17675 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17676   (eval $ac_link) 2>&5
17677   ac_status=$?
17678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17679   (exit $ac_status); } &&
17680          { ac_try='test -s conftest$ac_exeext'
17681   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17682   (eval $ac_try) 2>&5
17683   ac_status=$?
17684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17685   (exit $ac_status); }; }; then
17686   ac_cv_lib_sun_getmntent=yes
17687 else
17688   echo "$as_me: failed program was:" >&5
17689 sed 's/^/| /' conftest.$ac_ext >&5
17690
17691 ac_cv_lib_sun_getmntent=no
17692 fi
17693 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17694 LIBS=$ac_check_lib_save_LIBS
17695 fi
17696 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
17697 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
17698 if test $ac_cv_lib_sun_getmntent = yes; then
17699   LIBS="-lsun $LIBS"
17700 else
17701   echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
17702 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
17703 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
17704   echo $ECHO_N "(cached) $ECHO_C" >&6
17705 else
17706   ac_check_lib_save_LIBS=$LIBS
17707 LIBS="-lseq  $LIBS"
17708 cat >conftest.$ac_ext <<_ACEOF
17709 #line $LINENO "configure"
17710 /* confdefs.h.  */
17711 _ACEOF
17712 cat confdefs.h >>conftest.$ac_ext
17713 cat >>conftest.$ac_ext <<_ACEOF
17714 /* end confdefs.h.  */
17715
17716 /* Override any gcc2 internal prototype to avoid an error.  */
17717 #ifdef __cplusplus
17718 extern "C"
17719 #endif
17720 /* We use char because int might match the return type of a gcc2
17721    builtin and then its argument prototype would still apply.  */
17722 char getmntent ();
17723 int
17724 main ()
17725 {
17726 getmntent ();
17727   ;
17728   return 0;
17729 }
17730 _ACEOF
17731 rm -f conftest.$ac_objext conftest$ac_exeext
17732 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17733   (eval $ac_link) 2>&5
17734   ac_status=$?
17735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17736   (exit $ac_status); } &&
17737          { ac_try='test -s conftest$ac_exeext'
17738   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17739   (eval $ac_try) 2>&5
17740   ac_status=$?
17741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17742   (exit $ac_status); }; }; then
17743   ac_cv_lib_seq_getmntent=yes
17744 else
17745   echo "$as_me: failed program was:" >&5
17746 sed 's/^/| /' conftest.$ac_ext >&5
17747
17748 ac_cv_lib_seq_getmntent=no
17749 fi
17750 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17751 LIBS=$ac_check_lib_save_LIBS
17752 fi
17753 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
17754 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
17755 if test $ac_cv_lib_seq_getmntent = yes; then
17756   LIBS="-lseq $LIBS"
17757 else
17758   echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
17759 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
17760 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
17761   echo $ECHO_N "(cached) $ECHO_C" >&6
17762 else
17763   ac_check_lib_save_LIBS=$LIBS
17764 LIBS="-lgen  $LIBS"
17765 cat >conftest.$ac_ext <<_ACEOF
17766 #line $LINENO "configure"
17767 /* confdefs.h.  */
17768 _ACEOF
17769 cat confdefs.h >>conftest.$ac_ext
17770 cat >>conftest.$ac_ext <<_ACEOF
17771 /* end confdefs.h.  */
17772
17773 /* Override any gcc2 internal prototype to avoid an error.  */
17774 #ifdef __cplusplus
17775 extern "C"
17776 #endif
17777 /* We use char because int might match the return type of a gcc2
17778    builtin and then its argument prototype would still apply.  */
17779 char getmntent ();
17780 int
17781 main ()
17782 {
17783 getmntent ();
17784   ;
17785   return 0;
17786 }
17787 _ACEOF
17788 rm -f conftest.$ac_objext conftest$ac_exeext
17789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17790   (eval $ac_link) 2>&5
17791   ac_status=$?
17792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17793   (exit $ac_status); } &&
17794          { ac_try='test -s conftest$ac_exeext'
17795   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17796   (eval $ac_try) 2>&5
17797   ac_status=$?
17798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17799   (exit $ac_status); }; }; then
17800   ac_cv_lib_gen_getmntent=yes
17801 else
17802   echo "$as_me: failed program was:" >&5
17803 sed 's/^/| /' conftest.$ac_ext >&5
17804
17805 ac_cv_lib_gen_getmntent=no
17806 fi
17807 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17808 LIBS=$ac_check_lib_save_LIBS
17809 fi
17810 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
17811 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
17812 if test $ac_cv_lib_gen_getmntent = yes; then
17813   LIBS="-lgen $LIBS"
17814 fi
17815
17816 fi
17817
17818 fi
17819
17820
17821 for ac_func in getmntent
17822 do
17823 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17824 echo "$as_me:$LINENO: checking for $ac_func" >&5
17825 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17826 if eval "test \"\${$as_ac_var+set}\" = set"; then
17827   echo $ECHO_N "(cached) $ECHO_C" >&6
17828 else
17829   cat >conftest.$ac_ext <<_ACEOF
17830 #line $LINENO "configure"
17831 /* confdefs.h.  */
17832 _ACEOF
17833 cat confdefs.h >>conftest.$ac_ext
17834 cat >>conftest.$ac_ext <<_ACEOF
17835 /* end confdefs.h.  */
17836 /* System header to define __stub macros and hopefully few prototypes,
17837     which can conflict with char $ac_func (); below.
17838     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17839     <limits.h> exists even on freestanding compilers.  */
17840 #ifdef __STDC__
17841 # include <limits.h>
17842 #else
17843 # include <assert.h>
17844 #endif
17845 /* Override any gcc2 internal prototype to avoid an error.  */
17846 #ifdef __cplusplus
17847 extern "C"
17848 {
17849 #endif
17850 /* We use char because int might match the return type of a gcc2
17851    builtin and then its argument prototype would still apply.  */
17852 char $ac_func ();
17853 /* The GNU C library defines this for functions which it implements
17854     to always fail with ENOSYS.  Some functions are actually named
17855     something starting with __ and the normal name is an alias.  */
17856 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17857 choke me
17858 #else
17859 char (*f) () = $ac_func;
17860 #endif
17861 #ifdef __cplusplus
17862 }
17863 #endif
17864
17865 int
17866 main ()
17867 {
17868 return f != $ac_func;
17869   ;
17870   return 0;
17871 }
17872 _ACEOF
17873 rm -f conftest.$ac_objext conftest$ac_exeext
17874 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17875   (eval $ac_link) 2>&5
17876   ac_status=$?
17877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17878   (exit $ac_status); } &&
17879          { ac_try='test -s conftest$ac_exeext'
17880   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17881   (eval $ac_try) 2>&5
17882   ac_status=$?
17883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17884   (exit $ac_status); }; }; then
17885   eval "$as_ac_var=yes"
17886 else
17887   echo "$as_me: failed program was:" >&5
17888 sed 's/^/| /' conftest.$ac_ext >&5
17889
17890 eval "$as_ac_var=no"
17891 fi
17892 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17893 fi
17894 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17895 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17896 if test `eval echo '${'$as_ac_var'}'` = yes; then
17897   cat >>confdefs.h <<_ACEOF
17898 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17899 _ACEOF
17900
17901 fi
17902 done
17903
17904
17905 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
17906 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
17907 if test "${ac_cv_func_closedir_void+set}" = set; then
17908   echo $ECHO_N "(cached) $ECHO_C" >&6
17909 else
17910   if test "$cross_compiling" = yes; then
17911   ac_cv_func_closedir_void=yes
17912 else
17913   cat >conftest.$ac_ext <<_ACEOF
17914 #line $LINENO "configure"
17915 /* confdefs.h.  */
17916 _ACEOF
17917 cat confdefs.h >>conftest.$ac_ext
17918 cat >>conftest.$ac_ext <<_ACEOF
17919 /* end confdefs.h.  */
17920 $ac_includes_default
17921 #include <$ac_header_dirent>
17922 #ifndef __cplusplus
17923 int closedir ();
17924 #endif
17925
17926 int
17927 main ()
17928 {
17929 exit (closedir (opendir (".")) != 0);
17930   ;
17931   return 0;
17932 }
17933 _ACEOF
17934 rm -f conftest$ac_exeext
17935 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17936   (eval $ac_link) 2>&5
17937   ac_status=$?
17938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17939   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17940   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17941   (eval $ac_try) 2>&5
17942   ac_status=$?
17943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17944   (exit $ac_status); }; }; then
17945   ac_cv_func_closedir_void=no
17946 else
17947   echo "$as_me: program exited with status $ac_status" >&5
17948 echo "$as_me: failed program was:" >&5
17949 sed 's/^/| /' conftest.$ac_ext >&5
17950
17951 ( exit $ac_status )
17952 ac_cv_func_closedir_void=yes
17953 fi
17954 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17955 fi
17956 fi
17957 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
17958 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
17959 if test $ac_cv_func_closedir_void = yes; then
17960
17961 cat >>confdefs.h <<\_ACEOF
17962 #define CLOSEDIR_VOID 1
17963 _ACEOF
17964
17965 fi
17966
17967 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
17968 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
17969 if test "${ac_cv_func_setpgrp_void+set}" = set; then
17970   echo $ECHO_N "(cached) $ECHO_C" >&6
17971 else
17972   if test "$cross_compiling" = yes; then
17973   { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
17974 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
17975    { (exit 1); exit 1; }; }
17976 else
17977   cat >conftest.$ac_ext <<_ACEOF
17978 #line $LINENO "configure"
17979 /* confdefs.h.  */
17980 _ACEOF
17981 cat confdefs.h >>conftest.$ac_ext
17982 cat >>conftest.$ac_ext <<_ACEOF
17983 /* end confdefs.h.  */
17984 #if HAVE_UNISTD_H
17985 # include <unistd.h>
17986 #endif
17987
17988 int
17989 main ()
17990 {
17991 /* If this system has a BSD-style setpgrp which takes arguments,
17992   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
17993   exit successfully. */
17994   exit (setpgrp (1,1) == -1 ? 0 : 1);
17995   ;
17996   return 0;
17997 }
17998 _ACEOF
17999 rm -f conftest$ac_exeext
18000 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18001   (eval $ac_link) 2>&5
18002   ac_status=$?
18003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18004   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18005   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18006   (eval $ac_try) 2>&5
18007   ac_status=$?
18008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18009   (exit $ac_status); }; }; then
18010   ac_cv_func_setpgrp_void=no
18011 else
18012   echo "$as_me: program exited with status $ac_status" >&5
18013 echo "$as_me: failed program was:" >&5
18014 sed 's/^/| /' conftest.$ac_ext >&5
18015
18016 ( exit $ac_status )
18017 ac_cv_func_setpgrp_void=yes
18018 fi
18019 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18020 fi
18021 fi
18022 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
18023 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
18024 if test $ac_cv_func_setpgrp_void = yes; then
18025
18026 cat >>confdefs.h <<\_ACEOF
18027 #define SETPGRP_VOID 1
18028 _ACEOF
18029
18030 fi
18031                       echo "$as_me:$LINENO: checking for working POSIX fnmatch" >&5
18032 echo $ECHO_N "checking for working POSIX fnmatch... $ECHO_C" >&6
18033 if test "${ac_cv_func_fnmatch_works+set}" = set; then
18034   echo $ECHO_N "(cached) $ECHO_C" >&6
18035 else
18036   # Some versions of Solaris, SCO, and the GNU C Library
18037    # have a broken or incompatible fnmatch.
18038    # So we run a test program.  If we are cross-compiling, take no chance.
18039    # Thanks to John Oleynick, Franc,ois Pinard, and Paul Eggert for this test.
18040    if test "$cross_compiling" = yes; then
18041   ac_cv_func_fnmatch_works=cross
18042 else
18043   cat >conftest.$ac_ext <<_ACEOF
18044 #line $LINENO "configure"
18045 /* confdefs.h.  */
18046 _ACEOF
18047 cat confdefs.h >>conftest.$ac_ext
18048 cat >>conftest.$ac_ext <<_ACEOF
18049 /* end confdefs.h.  */
18050 #include <fnmatch.h>
18051 #          define y(a, b, c) (fnmatch (a, b, c) == 0)
18052 #          define n(a, b, c) (fnmatch (a, b, c) == FNM_NOMATCH)
18053
18054 int
18055 main ()
18056 {
18057 exit
18058            (!(y ("a*", "abc", 0)
18059               && n ("d*/*1", "d/s/1", FNM_PATHNAME)
18060               && y ("a\\\\bc", "abc", 0)
18061               && n ("a\\\\bc", "abc", FNM_NOESCAPE)
18062               && y ("*x", ".x", 0)
18063               && n ("*x", ".x", FNM_PERIOD)
18064               && 1));
18065   ;
18066   return 0;
18067 }
18068 _ACEOF
18069 rm -f conftest$ac_exeext
18070 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18071   (eval $ac_link) 2>&5
18072   ac_status=$?
18073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18074   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18075   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18076   (eval $ac_try) 2>&5
18077   ac_status=$?
18078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18079   (exit $ac_status); }; }; then
18080   ac_cv_func_fnmatch_works=yes
18081 else
18082   echo "$as_me: program exited with status $ac_status" >&5
18083 echo "$as_me: failed program was:" >&5
18084 sed 's/^/| /' conftest.$ac_ext >&5
18085
18086 ( exit $ac_status )
18087 ac_cv_func_fnmatch_works=no
18088 fi
18089 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18090 fi
18091 fi
18092 echo "$as_me:$LINENO: result: $ac_cv_func_fnmatch_works" >&5
18093 echo "${ECHO_T}$ac_cv_func_fnmatch_works" >&6
18094 if test $ac_cv_func_fnmatch_works = yes; then
18095
18096 cat >>confdefs.h <<\_ACEOF
18097 #define HAVE_FNMATCH 1
18098 _ACEOF
18099
18100 fi
18101
18102
18103
18104
18105
18106 echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
18107 echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
18108 if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
18109   echo $ECHO_N "(cached) $ECHO_C" >&6
18110 else
18111   ac_check_lib_save_LIBS=$LIBS
18112 LIBS="-lxpg4  $LIBS"
18113 cat >conftest.$ac_ext <<_ACEOF
18114 #line $LINENO "configure"
18115 /* confdefs.h.  */
18116 _ACEOF
18117 cat confdefs.h >>conftest.$ac_ext
18118 cat >>conftest.$ac_ext <<_ACEOF
18119 /* end confdefs.h.  */
18120
18121 /* Override any gcc2 internal prototype to avoid an error.  */
18122 #ifdef __cplusplus
18123 extern "C"
18124 #endif
18125 /* We use char because int might match the return type of a gcc2
18126    builtin and then its argument prototype would still apply.  */
18127 char setlocale ();
18128 int
18129 main ()
18130 {
18131 setlocale ();
18132   ;
18133   return 0;
18134 }
18135 _ACEOF
18136 rm -f conftest.$ac_objext conftest$ac_exeext
18137 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18138   (eval $ac_link) 2>&5
18139   ac_status=$?
18140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18141   (exit $ac_status); } &&
18142          { ac_try='test -s conftest$ac_exeext'
18143   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18144   (eval $ac_try) 2>&5
18145   ac_status=$?
18146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18147   (exit $ac_status); }; }; then
18148   ac_cv_lib_xpg4_setlocale=yes
18149 else
18150   echo "$as_me: failed program was:" >&5
18151 sed 's/^/| /' conftest.$ac_ext >&5
18152
18153 ac_cv_lib_xpg4_setlocale=no
18154 fi
18155 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18156 LIBS=$ac_check_lib_save_LIBS
18157 fi
18158 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
18159 echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
18160 if test $ac_cv_lib_xpg4_setlocale = yes; then
18161   LIBS="$LIBS -lxpg4"
18162 fi
18163
18164
18165
18166
18167 echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
18168 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6
18169 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
18170   echo $ECHO_N "(cached) $ECHO_C" >&6
18171 else
18172   ac_check_lib_save_LIBS=$LIBS
18173 LIBS="-lsun  $LIBS"
18174 cat >conftest.$ac_ext <<_ACEOF
18175 #line $LINENO "configure"
18176 /* confdefs.h.  */
18177 _ACEOF
18178 cat confdefs.h >>conftest.$ac_ext
18179 cat >>conftest.$ac_ext <<_ACEOF
18180 /* end confdefs.h.  */
18181
18182 /* Override any gcc2 internal prototype to avoid an error.  */
18183 #ifdef __cplusplus
18184 extern "C"
18185 #endif
18186 /* We use char because int might match the return type of a gcc2
18187    builtin and then its argument prototype would still apply.  */
18188 char getpwnam ();
18189 int
18190 main ()
18191 {
18192 getpwnam ();
18193   ;
18194   return 0;
18195 }
18196 _ACEOF
18197 rm -f conftest.$ac_objext conftest$ac_exeext
18198 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18199   (eval $ac_link) 2>&5
18200   ac_status=$?
18201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18202   (exit $ac_status); } &&
18203          { ac_try='test -s conftest$ac_exeext'
18204   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18205   (eval $ac_try) 2>&5
18206   ac_status=$?
18207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18208   (exit $ac_status); }; }; then
18209   ac_cv_lib_sun_getpwnam=yes
18210 else
18211   echo "$as_me: failed program was:" >&5
18212 sed 's/^/| /' conftest.$ac_ext >&5
18213
18214 ac_cv_lib_sun_getpwnam=no
18215 fi
18216 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18217 LIBS=$ac_check_lib_save_LIBS
18218 fi
18219 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
18220 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6
18221 if test $ac_cv_lib_sun_getpwnam = yes; then
18222   cat >>confdefs.h <<_ACEOF
18223 #define HAVE_LIBSUN 1
18224 _ACEOF
18225
18226   LIBS="-lsun $LIBS"
18227
18228 fi
18229
18230
18231
18232 for ac_header in zlib.h
18233 do
18234 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18235 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18236   echo "$as_me:$LINENO: checking for $ac_header" >&5
18237 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18238 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18239   echo $ECHO_N "(cached) $ECHO_C" >&6
18240 fi
18241 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18242 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18243 else
18244   # Is the header compilable?
18245 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18246 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18247 cat >conftest.$ac_ext <<_ACEOF
18248 #line $LINENO "configure"
18249 /* confdefs.h.  */
18250 _ACEOF
18251 cat confdefs.h >>conftest.$ac_ext
18252 cat >>conftest.$ac_ext <<_ACEOF
18253 /* end confdefs.h.  */
18254 $ac_includes_default
18255 #include <$ac_header>
18256 _ACEOF
18257 rm -f conftest.$ac_objext
18258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18259   (eval $ac_compile) 2>&5
18260   ac_status=$?
18261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18262   (exit $ac_status); } &&
18263          { ac_try='test -s conftest.$ac_objext'
18264   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18265   (eval $ac_try) 2>&5
18266   ac_status=$?
18267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18268   (exit $ac_status); }; }; then
18269   ac_header_compiler=yes
18270 else
18271   echo "$as_me: failed program was:" >&5
18272 sed 's/^/| /' conftest.$ac_ext >&5
18273
18274 ac_header_compiler=no
18275 fi
18276 rm -f conftest.$ac_objext conftest.$ac_ext
18277 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18278 echo "${ECHO_T}$ac_header_compiler" >&6
18279
18280 # Is the header present?
18281 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18282 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18283 cat >conftest.$ac_ext <<_ACEOF
18284 #line $LINENO "configure"
18285 /* confdefs.h.  */
18286 _ACEOF
18287 cat confdefs.h >>conftest.$ac_ext
18288 cat >>conftest.$ac_ext <<_ACEOF
18289 /* end confdefs.h.  */
18290 #include <$ac_header>
18291 _ACEOF
18292 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18293   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18294   ac_status=$?
18295   grep -v '^ *+' conftest.er1 >conftest.err
18296   rm -f conftest.er1
18297   cat conftest.err >&5
18298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18299   (exit $ac_status); } >/dev/null; then
18300   if test -s conftest.err; then
18301     ac_cpp_err=$ac_c_preproc_warn_flag
18302   else
18303     ac_cpp_err=
18304   fi
18305 else
18306   ac_cpp_err=yes
18307 fi
18308 if test -z "$ac_cpp_err"; then
18309   ac_header_preproc=yes
18310 else
18311   echo "$as_me: failed program was:" >&5
18312 sed 's/^/| /' conftest.$ac_ext >&5
18313
18314   ac_header_preproc=no
18315 fi
18316 rm -f conftest.err conftest.$ac_ext
18317 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18318 echo "${ECHO_T}$ac_header_preproc" >&6
18319
18320 # So?  What about this header?
18321 case $ac_header_compiler:$ac_header_preproc in
18322   yes:no )
18323     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18324 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18325     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18326 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18327     (
18328       cat <<\_ASBOX
18329 ## ------------------------------------ ##
18330 ## Report this to bug-autoconf@gnu.org. ##
18331 ## ------------------------------------ ##
18332 _ASBOX
18333     ) |
18334       sed "s/^/$as_me: WARNING:     /" >&2
18335     ;;
18336   no:yes )
18337     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18338 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18339     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18340 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18341     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18342 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18343     (
18344       cat <<\_ASBOX
18345 ## ------------------------------------ ##
18346 ## Report this to bug-autoconf@gnu.org. ##
18347 ## ------------------------------------ ##
18348 _ASBOX
18349     ) |
18350       sed "s/^/$as_me: WARNING:     /" >&2
18351     ;;
18352 esac
18353 echo "$as_me:$LINENO: checking for $ac_header" >&5
18354 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18355 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18356   echo $ECHO_N "(cached) $ECHO_C" >&6
18357 else
18358   eval "$as_ac_Header=$ac_header_preproc"
18359 fi
18360 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18361 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18362
18363 fi
18364 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18365   cat >>confdefs.h <<_ACEOF
18366 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18367 _ACEOF
18368
18369 fi
18370
18371 done
18372
18373 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
18374 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
18375 if test "${ac_cv_lib_z_deflate+set}" = set; then
18376   echo $ECHO_N "(cached) $ECHO_C" >&6
18377 else
18378   ac_check_lib_save_LIBS=$LIBS
18379 LIBS="-lz  $LIBS"
18380 cat >conftest.$ac_ext <<_ACEOF
18381 #line $LINENO "configure"
18382 /* confdefs.h.  */
18383 _ACEOF
18384 cat confdefs.h >>conftest.$ac_ext
18385 cat >>conftest.$ac_ext <<_ACEOF
18386 /* end confdefs.h.  */
18387
18388 /* Override any gcc2 internal prototype to avoid an error.  */
18389 #ifdef __cplusplus
18390 extern "C"
18391 #endif
18392 /* We use char because int might match the return type of a gcc2
18393    builtin and then its argument prototype would still apply.  */
18394 char deflate ();
18395 int
18396 main ()
18397 {
18398 deflate ();
18399   ;
18400   return 0;
18401 }
18402 _ACEOF
18403 rm -f conftest.$ac_objext conftest$ac_exeext
18404 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18405   (eval $ac_link) 2>&5
18406   ac_status=$?
18407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18408   (exit $ac_status); } &&
18409          { ac_try='test -s conftest$ac_exeext'
18410   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18411   (eval $ac_try) 2>&5
18412   ac_status=$?
18413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18414   (exit $ac_status); }; }; then
18415   ac_cv_lib_z_deflate=yes
18416 else
18417   echo "$as_me: failed program was:" >&5
18418 sed 's/^/| /' conftest.$ac_ext >&5
18419
18420 ac_cv_lib_z_deflate=no
18421 fi
18422 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18423 LIBS=$ac_check_lib_save_LIBS
18424 fi
18425 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
18426 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
18427 if test $ac_cv_lib_z_deflate = yes; then
18428   FDLIBS="-lz"
18429 fi
18430
18431 have_zlib=no
18432 if test x$FDLIBS = x-lz; then
18433   cat >>confdefs.h <<\_ACEOF
18434 #define HAVE_LIBZ 1
18435 _ACEOF
18436
18437   have_zlib=yes
18438 fi
18439
18440 if test "${ac_cv_header_sys_acl_h+set}" = set; then
18441   echo "$as_me:$LINENO: checking for sys/acl.h" >&5
18442 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
18443 if test "${ac_cv_header_sys_acl_h+set}" = set; then
18444   echo $ECHO_N "(cached) $ECHO_C" >&6
18445 fi
18446 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
18447 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
18448 else
18449   # Is the header compilable?
18450 echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
18451 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6
18452 cat >conftest.$ac_ext <<_ACEOF
18453 #line $LINENO "configure"
18454 /* confdefs.h.  */
18455 _ACEOF
18456 cat confdefs.h >>conftest.$ac_ext
18457 cat >>conftest.$ac_ext <<_ACEOF
18458 /* end confdefs.h.  */
18459 $ac_includes_default
18460 #include <sys/acl.h>
18461 _ACEOF
18462 rm -f conftest.$ac_objext
18463 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18464   (eval $ac_compile) 2>&5
18465   ac_status=$?
18466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18467   (exit $ac_status); } &&
18468          { ac_try='test -s conftest.$ac_objext'
18469   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18470   (eval $ac_try) 2>&5
18471   ac_status=$?
18472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18473   (exit $ac_status); }; }; then
18474   ac_header_compiler=yes
18475 else
18476   echo "$as_me: failed program was:" >&5
18477 sed 's/^/| /' conftest.$ac_ext >&5
18478
18479 ac_header_compiler=no
18480 fi
18481 rm -f conftest.$ac_objext conftest.$ac_ext
18482 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18483 echo "${ECHO_T}$ac_header_compiler" >&6
18484
18485 # Is the header present?
18486 echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
18487 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6
18488 cat >conftest.$ac_ext <<_ACEOF
18489 #line $LINENO "configure"
18490 /* confdefs.h.  */
18491 _ACEOF
18492 cat confdefs.h >>conftest.$ac_ext
18493 cat >>conftest.$ac_ext <<_ACEOF
18494 /* end confdefs.h.  */
18495 #include <sys/acl.h>
18496 _ACEOF
18497 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18498   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18499   ac_status=$?
18500   grep -v '^ *+' conftest.er1 >conftest.err
18501   rm -f conftest.er1
18502   cat conftest.err >&5
18503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18504   (exit $ac_status); } >/dev/null; then
18505   if test -s conftest.err; then
18506     ac_cpp_err=$ac_c_preproc_warn_flag
18507   else
18508     ac_cpp_err=
18509   fi
18510 else
18511   ac_cpp_err=yes
18512 fi
18513 if test -z "$ac_cpp_err"; then
18514   ac_header_preproc=yes
18515 else
18516   echo "$as_me: failed program was:" >&5
18517 sed 's/^/| /' conftest.$ac_ext >&5
18518
18519   ac_header_preproc=no
18520 fi
18521 rm -f conftest.err conftest.$ac_ext
18522 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18523 echo "${ECHO_T}$ac_header_preproc" >&6
18524
18525 # So?  What about this header?
18526 case $ac_header_compiler:$ac_header_preproc in
18527   yes:no )
18528     { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
18529 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18530     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
18531 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
18532     (
18533       cat <<\_ASBOX
18534 ## ------------------------------------ ##
18535 ## Report this to bug-autoconf@gnu.org. ##
18536 ## ------------------------------------ ##
18537 _ASBOX
18538     ) |
18539       sed "s/^/$as_me: WARNING:     /" >&2
18540     ;;
18541   no:yes )
18542     { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
18543 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
18544     { echo "$as_me:$LINENO: WARNING: sys/acl.h: check for missing prerequisite headers?" >&5
18545 echo "$as_me: WARNING: sys/acl.h: check for missing prerequisite headers?" >&2;}
18546     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
18547 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
18548     (
18549       cat <<\_ASBOX
18550 ## ------------------------------------ ##
18551 ## Report this to bug-autoconf@gnu.org. ##
18552 ## ------------------------------------ ##
18553 _ASBOX
18554     ) |
18555       sed "s/^/$as_me: WARNING:     /" >&2
18556     ;;
18557 esac
18558 echo "$as_me:$LINENO: checking for sys/acl.h" >&5
18559 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
18560 if test "${ac_cv_header_sys_acl_h+set}" = set; then
18561   echo $ECHO_N "(cached) $ECHO_C" >&6
18562 else
18563   ac_cv_header_sys_acl_h=$ac_header_preproc
18564 fi
18565 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
18566 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
18567
18568 fi
18569
18570
18571 echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
18572 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6
18573 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
18574   echo $ECHO_N "(cached) $ECHO_C" >&6
18575 else
18576   ac_check_lib_save_LIBS=$LIBS
18577 LIBS="-lacl  $LIBS"
18578 cat >conftest.$ac_ext <<_ACEOF
18579 #line $LINENO "configure"
18580 /* confdefs.h.  */
18581 _ACEOF
18582 cat confdefs.h >>conftest.$ac_ext
18583 cat >>conftest.$ac_ext <<_ACEOF
18584 /* end confdefs.h.  */
18585
18586 /* Override any gcc2 internal prototype to avoid an error.  */
18587 #ifdef __cplusplus
18588 extern "C"
18589 #endif
18590 /* We use char because int might match the return type of a gcc2
18591    builtin and then its argument prototype would still apply.  */
18592 char acl_get_file ();
18593 int
18594 main ()
18595 {
18596 acl_get_file ();
18597   ;
18598   return 0;
18599 }
18600 _ACEOF
18601 rm -f conftest.$ac_objext conftest$ac_exeext
18602 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18603   (eval $ac_link) 2>&5
18604   ac_status=$?
18605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18606   (exit $ac_status); } &&
18607          { ac_try='test -s conftest$ac_exeext'
18608   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18609   (eval $ac_try) 2>&5
18610   ac_status=$?
18611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18612   (exit $ac_status); }; }; then
18613   ac_cv_lib_acl_acl_get_file=yes
18614 else
18615   echo "$as_me: failed program was:" >&5
18616 sed 's/^/| /' conftest.$ac_ext >&5
18617
18618 ac_cv_lib_acl_acl_get_file=no
18619 fi
18620 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18621 LIBS=$ac_check_lib_save_LIBS
18622 fi
18623 echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
18624 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6
18625 if test $ac_cv_lib_acl_acl_get_file = yes; then
18626   FDLIBS="-lacl $FDLIBS"
18627 fi
18628
18629 have_acl=no
18630 if test $ac_cv_lib_acl_acl_get_file = yes; then
18631    cat >>confdefs.h <<\_ACEOF
18632 #define HAVE_ACL 1
18633 _ACEOF
18634
18635    have_acl=yes
18636 fi
18637
18638 PTHREAD_LIB=""
18639 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
18640 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
18641 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
18642   echo $ECHO_N "(cached) $ECHO_C" >&6
18643 else
18644   ac_check_lib_save_LIBS=$LIBS
18645 LIBS="-lpthread  $LIBS"
18646 cat >conftest.$ac_ext <<_ACEOF
18647 #line $LINENO "configure"
18648 /* confdefs.h.  */
18649 _ACEOF
18650 cat confdefs.h >>conftest.$ac_ext
18651 cat >>conftest.$ac_ext <<_ACEOF
18652 /* end confdefs.h.  */
18653
18654 /* Override any gcc2 internal prototype to avoid an error.  */
18655 #ifdef __cplusplus
18656 extern "C"
18657 #endif
18658 /* We use char because int might match the return type of a gcc2
18659    builtin and then its argument prototype would still apply.  */
18660 char pthread_create ();
18661 int
18662 main ()
18663 {
18664 pthread_create ();
18665   ;
18666   return 0;
18667 }
18668 _ACEOF
18669 rm -f conftest.$ac_objext conftest$ac_exeext
18670 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18671   (eval $ac_link) 2>&5
18672   ac_status=$?
18673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18674   (exit $ac_status); } &&
18675          { ac_try='test -s conftest$ac_exeext'
18676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18677   (eval $ac_try) 2>&5
18678   ac_status=$?
18679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18680   (exit $ac_status); }; }; then
18681   ac_cv_lib_pthread_pthread_create=yes
18682 else
18683   echo "$as_me: failed program was:" >&5
18684 sed 's/^/| /' conftest.$ac_ext >&5
18685
18686 ac_cv_lib_pthread_pthread_create=no
18687 fi
18688 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18689 LIBS=$ac_check_lib_save_LIBS
18690 fi
18691 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
18692 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
18693 if test $ac_cv_lib_pthread_pthread_create = yes; then
18694   PTHREAD_LIB="-lpthread"
18695 else
18696   echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
18697 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
18698 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
18699   echo $ECHO_N "(cached) $ECHO_C" >&6
18700 else
18701   ac_check_lib_save_LIBS=$LIBS
18702 LIBS="-lpthreads  $LIBS"
18703 cat >conftest.$ac_ext <<_ACEOF
18704 #line $LINENO "configure"
18705 /* confdefs.h.  */
18706 _ACEOF
18707 cat confdefs.h >>conftest.$ac_ext
18708 cat >>conftest.$ac_ext <<_ACEOF
18709 /* end confdefs.h.  */
18710
18711 /* Override any gcc2 internal prototype to avoid an error.  */
18712 #ifdef __cplusplus
18713 extern "C"
18714 #endif
18715 /* We use char because int might match the return type of a gcc2
18716    builtin and then its argument prototype would still apply.  */
18717 char pthread_create ();
18718 int
18719 main ()
18720 {
18721 pthread_create ();
18722   ;
18723   return 0;
18724 }
18725 _ACEOF
18726 rm -f conftest.$ac_objext conftest$ac_exeext
18727 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18728   (eval $ac_link) 2>&5
18729   ac_status=$?
18730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18731   (exit $ac_status); } &&
18732          { ac_try='test -s conftest$ac_exeext'
18733   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18734   (eval $ac_try) 2>&5
18735   ac_status=$?
18736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18737   (exit $ac_status); }; }; then
18738   ac_cv_lib_pthreads_pthread_create=yes
18739 else
18740   echo "$as_me: failed program was:" >&5
18741 sed 's/^/| /' conftest.$ac_ext >&5
18742
18743 ac_cv_lib_pthreads_pthread_create=no
18744 fi
18745 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18746 LIBS=$ac_check_lib_save_LIBS
18747 fi
18748 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
18749 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
18750 if test $ac_cv_lib_pthreads_pthread_create = yes; then
18751   PTHREAD_LIB="-lpthreads"
18752 else
18753   echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
18754 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
18755 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
18756   echo $ECHO_N "(cached) $ECHO_C" >&6
18757 else
18758   ac_check_lib_save_LIBS=$LIBS
18759 LIBS="-lc_r  $LIBS"
18760 cat >conftest.$ac_ext <<_ACEOF
18761 #line $LINENO "configure"
18762 /* confdefs.h.  */
18763 _ACEOF
18764 cat confdefs.h >>conftest.$ac_ext
18765 cat >>conftest.$ac_ext <<_ACEOF
18766 /* end confdefs.h.  */
18767
18768 /* Override any gcc2 internal prototype to avoid an error.  */
18769 #ifdef __cplusplus
18770 extern "C"
18771 #endif
18772 /* We use char because int might match the return type of a gcc2
18773    builtin and then its argument prototype would still apply.  */
18774 char pthread_create ();
18775 int
18776 main ()
18777 {
18778 pthread_create ();
18779   ;
18780   return 0;
18781 }
18782 _ACEOF
18783 rm -f conftest.$ac_objext conftest$ac_exeext
18784 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18785   (eval $ac_link) 2>&5
18786   ac_status=$?
18787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18788   (exit $ac_status); } &&
18789          { ac_try='test -s conftest$ac_exeext'
18790   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18791   (eval $ac_try) 2>&5
18792   ac_status=$?
18793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18794   (exit $ac_status); }; }; then
18795   ac_cv_lib_c_r_pthread_create=yes
18796 else
18797   echo "$as_me: failed program was:" >&5
18798 sed 's/^/| /' conftest.$ac_ext >&5
18799
18800 ac_cv_lib_c_r_pthread_create=no
18801 fi
18802 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18803 LIBS=$ac_check_lib_save_LIBS
18804 fi
18805 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
18806 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
18807 if test $ac_cv_lib_c_r_pthread_create = yes; then
18808   PTHREAD_LIB="-lc_r"
18809 else
18810   echo "$as_me:$LINENO: checking for pthread_create" >&5
18811 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6
18812 if test "${ac_cv_func_pthread_create+set}" = set; then
18813   echo $ECHO_N "(cached) $ECHO_C" >&6
18814 else
18815   cat >conftest.$ac_ext <<_ACEOF
18816 #line $LINENO "configure"
18817 /* confdefs.h.  */
18818 _ACEOF
18819 cat confdefs.h >>conftest.$ac_ext
18820 cat >>conftest.$ac_ext <<_ACEOF
18821 /* end confdefs.h.  */
18822 /* System header to define __stub macros and hopefully few prototypes,
18823     which can conflict with char pthread_create (); below.
18824     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18825     <limits.h> exists even on freestanding compilers.  */
18826 #ifdef __STDC__
18827 # include <limits.h>
18828 #else
18829 # include <assert.h>
18830 #endif
18831 /* Override any gcc2 internal prototype to avoid an error.  */
18832 #ifdef __cplusplus
18833 extern "C"
18834 {
18835 #endif
18836 /* We use char because int might match the return type of a gcc2
18837    builtin and then its argument prototype would still apply.  */
18838 char pthread_create ();
18839 /* The GNU C library defines this for functions which it implements
18840     to always fail with ENOSYS.  Some functions are actually named
18841     something starting with __ and the normal name is an alias.  */
18842 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
18843 choke me
18844 #else
18845 char (*f) () = pthread_create;
18846 #endif
18847 #ifdef __cplusplus
18848 }
18849 #endif
18850
18851 int
18852 main ()
18853 {
18854 return f != pthread_create;
18855   ;
18856   return 0;
18857 }
18858 _ACEOF
18859 rm -f conftest.$ac_objext conftest$ac_exeext
18860 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18861   (eval $ac_link) 2>&5
18862   ac_status=$?
18863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18864   (exit $ac_status); } &&
18865          { ac_try='test -s conftest$ac_exeext'
18866   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18867   (eval $ac_try) 2>&5
18868   ac_status=$?
18869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18870   (exit $ac_status); }; }; then
18871   ac_cv_func_pthread_create=yes
18872 else
18873   echo "$as_me: failed program was:" >&5
18874 sed 's/^/| /' conftest.$ac_ext >&5
18875
18876 ac_cv_func_pthread_create=no
18877 fi
18878 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18879 fi
18880 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
18881 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6
18882
18883
18884 fi
18885
18886
18887 fi
18888
18889
18890 fi
18891
18892
18893
18894 cat >>confdefs.h <<\_ACEOF
18895 #define FDLIBS 1
18896 _ACEOF
18897
18898
18899
18900 CFLAGS=${CFLAGS--O}
18901 LDFLAGS=${LDFLAGS--O}
18902 DB_LIBS="${SQL_LFLAGS}"
18903
18904 CPPFLAGS="$CPPFLAGS"
18905
18906
18907
18908
18909
18910
18911
18912
18913
18914
18915
18916
18917
18918
18919 OBJLIST=
18920
18921
18922 lld="lld"
18923 llu="llu"
18924
18925 WCFLAGS=
18926 WLDFLAGS=
18927
18928 #
18929 # Finally we set appropriate distribution specific
18930 #  variables and defaults
18931 #
18932 # PFILES are platform specific files
18933 PFILES="platforms/Makefile"
18934 PSCMD="ps -e"
18935 WIN32=
18936 MACOSX=
18937 hostname=`uname -n | cut -d '.' -f 1`
18938 case "$DISTNAME" in
18939 aix)
18940         DISTVER=`uname -r`
18941         PSCMD="ps -e -o pid,comm"
18942         PFILES="${PFILES} \
18943            platforms/aix/Makefile"
18944         TAPEDRIVE="/dev/rmt0.1"
18945   ;;
18946 alpha)
18947         DISTVER=`uname -r`
18948         PTHREAD_LIB="-lpthread -lexc"
18949         if test "${CC}" = "gcc" ; then
18950            lld="lld"
18951            llu="llu"
18952         else
18953            lld="ld"
18954            llu="lu"
18955         fi
18956         TAPEDRIVE="/dev/nrmt0"
18957   ;;
18958 bsdi)
18959         DISTVER=`uname -a |awk '{print $3}'`
18960         TAPEDRIVE="/dev/nrmt0"
18961         PTHREAD_LIB="-pthread"
18962         CFLAGS="${CFLAGS} -pthread"
18963         PSCMD="ps -x -o pid,command"
18964         lld="qd"
18965         llu="qu"
18966         PFILES="${PFILES} \
18967             platforms/bsdi/Makefile \
18968             platforms/bsdi/bacula-fd \
18969             platforms/bsdi/bacula-sd \
18970             platforms/bsdi/bacula-dir"
18971         largefile_support="yes"
18972   ;;
18973 cygwin)
18974         DISTVER=`uname -a |awk '{print $3}'`
18975         TAPEDRIVE="/dev/nrst0"
18976         WIN32=win32
18977         WCFLAGS="-mwindows"
18978         WLDFLAGS="-mwindows"
18979   ;;
18980 darwin)
18981         DISTVER=`uname -r`
18982         TAPEDRIVE="/dev/nst0"
18983         PSCMD="ps -e -o pid,command"
18984         MACOSX=macosx
18985         PFILES="${PFILES} \
18986            platforms/darwin/Makefile"
18987   ;;
18988 debian)
18989         DISTVER=`cat /etc/debian_version`
18990         TAPEDRIVE="/dev/nrst0"
18991         PSCMD="ps -e -o pid,command"
18992   ;;
18993 freebsd)
18994         DISTVER=`uname -a |awk '{print $3}'`
18995         VER=`echo $DISTVER | cut -c 1`
18996         if test x$VER = x4 ; then
18997            PTHREAD_LIB="-pthread"
18998            CFLAGS="${CFLAGS} -pthread"
18999         fi
19000         lld="qd"
19001         llu="qu"
19002         TAPEDRIVE="/dev/nrsa0"
19003         PSCMD="ps -x -o pid,command"
19004         PFILES="${PFILES} \
19005             platforms/freebsd/Makefile \
19006             platforms/freebsd/bacula-fd \
19007             platforms/freebsd/bacula-sd \
19008             platforms/freebsd/bacula-dir"
19009         largefile_support="yes"
19010   ;;
19011 hpux)
19012         PSCMD="UNIX95=1 ps -e -o pid,comm"
19013         CFLAGS="$(CFLAGS) -D_XOPEN_SOURCE_EXTENDED=1"
19014         DISTVER=`uname -r`
19015         TAPEDRIVE="/dev/rmt/0hnb"
19016   ;;
19017 irix)
19018         DISTVER=`uname -r`
19019         TAPEDRIVE="/dev/rmt/0cbn"
19020         PSCMD="ps -e -o pid,comm"
19021         PFILES="${PFILES} \
19022             platforms/irix/Makefile \
19023             platforms/irix/bacula-fd \
19024             platforms/irix/bacula-sd \
19025             platforms/irix/bacula-dir"
19026   ;;
19027 netbsd)
19028         DISTVER=`uname -a |awk '{print $3}'`
19029         lld="qd"
19030         llu="qu"
19031         TAPEDRIVE="/dev/nrst0"
19032         PSCMD="ps -a -o pid,command"
19033         PTHREAD_LIB="-pthread"
19034         CFLAGS="${CFLAGS} -pthread"
19035   ;;
19036 openbsd)
19037         DISTVER=`uname -a |awk '{print $3}'`
19038         lld="qd"
19039         llu="qu"
19040         TAPEDRIVE="/dev/nrst0"
19041         PSCMD="ps -ax -o pid,command"
19042         PTHREAD_LIB="-pthread"
19043         CFLAGS="${CFLAGS} -pthread"
19044         PFILES="${PFILES} \
19045             platforms/openbsd/Makefile \
19046             platforms/openbsd/bacula-fd \
19047             platforms/openbsd/bacula-sd \
19048             platforms/openbsd/bacula-dir"
19049   ;;
19050 redhat)
19051         if test -f /etc/whitebox-release ; then
19052            f=/etc/whitebox-release
19053         else
19054            f=/etc/redhat-release
19055         fi
19056         if test `cat $f | grep release |\
19057                    cut -f 3 -d ' '`x = "Enterprise"x ; then
19058            DISTVER="Enterprise "`cat $f | grep release |\
19059                     cut -f 6 -d ' '`
19060         else
19061             DISTVER=`cat /etc/redhat-release | grep release |\
19062                      cut -f 5 -d ' '`
19063         fi
19064         TAPEDRIVE="/dev/nst0"
19065         PSCMD="ps -e -o pid,command"
19066         PFILES="${PFILES} \
19067             platforms/redhat/Makefile \
19068             platforms/redhat/bacula-fd \
19069             platforms/redhat/bacula-sd \
19070             platforms/redhat/bacula-dir \
19071             platforms/redhat/bacula.spec \
19072             "
19073         hostname=`hostname -s`
19074   ;;
19075 mandrake)
19076         DISTVER=`cat /etc/mandrake-release | grep release |\
19077            cut -f 5 -d ' '`
19078         TAPEDRIVE="/dev/nst0"
19079         PSCMD="ps -e -o pid,command"
19080         PFILES="${PFILES} \
19081             platforms/mandrake/Makefile \
19082             platforms/mandrake/bacula-fd \
19083             platforms/mandrake/bacula-sd \
19084             platforms/mandrake/bacula-dir \
19085             platforms/mandrake/bacula.spec \
19086             "
19087   ;;
19088 gentoo)
19089         DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
19090         TAPEDRIVE="/dev/nst0"
19091         PSCMD="ps -e -o pid,command"
19092         PFILES="${PFILES} \
19093             platforms/gentoo/Makefile \
19094          platforms/gentoo/bacula-init \
19095             platforms/gentoo/bacula-fd \
19096             platforms/gentoo/bacula-sd \
19097             platforms/gentoo/bacula-dir"
19098   ;;
19099 slackware)
19100         DISTVER=`cat /etc/slackware-version`
19101         TAPEDRIVE="/dev/nst0"
19102         PSCMD="ps -e -o pid,command"
19103         PFILES="${PFILES} \
19104             platforms/slackware/Makefile \
19105             platforms/slackware/rc.bacula-fd \
19106             platforms/slackware/rc.bacula-sd \
19107             platforms/slackware/rc.bacula-dir\
19108             platforms/slackware/functions.bacula"
19109   ;;
19110 solaris)
19111         DISTVER=`uname -r`
19112         TAPEDRIVE="/dev/rmt/0cbn"
19113         PSCMD="ps -e -o pid,comm"
19114         PFILES="${PFILES} \
19115             platforms/solaris/Makefile \
19116             platforms/solaris/bacula-fd \
19117             platforms/solaris/bacula-sd \
19118             platforms/solaris/bacula-dir"
19119         if test x$DISTVER = x5.6 ; then
19120             cat >>confdefs.h <<\_ACEOF
19121 #define HAVE_OLD_SOCKOPT 1
19122 _ACEOF
19123
19124         fi
19125   ;;
19126 suse)
19127         DISTVER=`cat /etc/SuSE-release |grep VERSION|\
19128             cut -f 3 -d ' '`
19129         TAPEDRIVE="/dev/nst0"
19130         PSCMD="ps -e -o pid,command"
19131         PFILES="${PFILES} \
19132             platforms/suse/Makefile \
19133             platforms/suse/bacula-fd \
19134             platforms/suse/bacula-sd \
19135             platforms/suse/bacula-dir \
19136             platforms/suse/bacula \
19137             platforms/suse/bacula.spec"
19138   ;;
19139 suse5)
19140         DISTNAME=suse
19141         DISTVER=5.x
19142         TAPEDRIVE="/dev/nst0"
19143         PSCMD="ps -e -o pid,command"
19144         PFILES="${PFILES} \
19145             platforms/suse/Makefile \
19146             platforms/suse/bacula-fd \
19147             platforms/suse/bacula-sd \
19148             platforms/suse/bacula-dir"
19149   ;;
19150 unknown)
19151         DISTVER=unknown
19152         TAPEDRIVE="/dev/nst0"
19153   ;;
19154 *)
19155   echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
19156   ;;
19157 esac
19158
19159
19160
19161 LIBS="$PTHREAD_LIB $LIBS"
19162
19163 cat >>confdefs.h <<_ACEOF
19164 #define lld "$lld"
19165 _ACEOF
19166
19167 cat >>confdefs.h <<_ACEOF
19168 #define llu "$llu"
19169 _ACEOF
19170
19171
19172
19173
19174
19175
19176
19177
19178 MCOMMON=./autoconf/Make.common
19179
19180
19181 if test "x${subsysdir}" = "x${sbindir}" ; then
19182    echo " "
19183    echo " "
19184    echo "You have set both --sbindir and --with-subsys-dir"
19185    echo "  equal to: ${subsysdir} "
19186    echo "This is not permitted. Please reconfigure."
19187    echo " "
19188    echo "Aborting configuration ..."
19189    echo " "
19190    echo " "
19191    exit 1
19192 fi
19193
19194                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   ac_config_files="$ac_config_files autoconf/Make.common Makefile rescue/Makefile rescue/linux/Makefile rescue/linux/floppy/Makefile rescue/linux/cdrom/Makefile rescue/linux/cdrom/bacula/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 scripts/bacula-tray-monitor.desktop 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"
19195           ac_config_commands="$ac_config_commands default"
19196 cat >confcache <<\_ACEOF
19197 # This file is a shell script that caches the results of configure
19198 # tests run on this system so they can be shared between configure
19199 # scripts and configure runs, see configure's option --config-cache.
19200 # It is not useful on other systems.  If it contains results you don't
19201 # want to keep, you may remove or edit it.
19202 #
19203 # config.status only pays attention to the cache file if you give it
19204 # the --recheck option to rerun configure.
19205 #
19206 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19207 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19208 # following values.
19209
19210 _ACEOF
19211
19212 # The following way of writing the cache mishandles newlines in values,
19213 # but we know of no workaround that is simple, portable, and efficient.
19214 # So, don't put newlines in cache variables' values.
19215 # Ultrix sh set writes to stderr and can't be redirected directly,
19216 # and sets the high bit in the cache file unless we assign to the vars.
19217 {
19218   (set) 2>&1 |
19219     case `(ac_space=' '; set | grep ac_space) 2>&1` in
19220     *ac_space=\ *)
19221       # `set' does not quote correctly, so add quotes (double-quote
19222       # substitution turns \\\\ into \\, and sed turns \\ into \).
19223       sed -n \
19224         "s/'/'\\\\''/g;
19225           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19226       ;;
19227     *)
19228       # `set' quotes correctly as required by POSIX, so do not add quotes.
19229       sed -n \
19230         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
19231       ;;
19232     esac;
19233 } |
19234   sed '
19235      t clear
19236      : clear
19237      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19238      t end
19239      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19240      : end' >>confcache
19241 if diff $cache_file confcache >/dev/null 2>&1; then :; else
19242   if test -w $cache_file; then
19243     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19244     cat confcache >$cache_file
19245   else
19246     echo "not updating unwritable cache $cache_file"
19247   fi
19248 fi
19249 rm -f confcache
19250
19251 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19252 # Let make expand exec_prefix.
19253 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19254
19255 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19256 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19257 # trailing colons and then remove the whole line if VPATH becomes empty
19258 # (actually we leave an empty line to preserve line numbers).
19259 if test "x$srcdir" = x.; then
19260   ac_vpsub='/^[         ]*VPATH[        ]*=/{
19261 s/:*\$(srcdir):*/:/;
19262 s/:*\${srcdir}:*/:/;
19263 s/:*@srcdir@:*/:/;
19264 s/^\([^=]*=[    ]*\):*/\1/;
19265 s/:*$//;
19266 s/^[^=]*=[      ]*$//;
19267 }'
19268 fi
19269
19270 DEFS=-DHAVE_CONFIG_H
19271
19272 ac_libobjs=
19273 ac_ltlibobjs=
19274 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19275   # 1. Remove the extension, and $U if already installed.
19276   ac_i=`echo "$ac_i" |
19277          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
19278   # 2. Add them.
19279   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
19280   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
19281 done
19282 LIBOBJS=$ac_libobjs
19283
19284 LTLIBOBJS=$ac_ltlibobjs
19285
19286
19287
19288 : ${CONFIG_STATUS=./config.status}
19289 ac_clean_files_save=$ac_clean_files
19290 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19291 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19292 echo "$as_me: creating $CONFIG_STATUS" >&6;}
19293 cat >$CONFIG_STATUS <<_ACEOF
19294 #! $SHELL
19295 # Generated by $as_me.
19296 # Run this file to recreate the current configuration.
19297 # Compiler output produced by configure, useful for debugging
19298 # configure, is in config.log if it exists.
19299
19300 debug=false
19301 ac_cs_recheck=false
19302 ac_cs_silent=false
19303 SHELL=\${CONFIG_SHELL-$SHELL}
19304 _ACEOF
19305
19306 cat >>$CONFIG_STATUS <<\_ACEOF
19307 ## --------------------- ##
19308 ## M4sh Initialization.  ##
19309 ## --------------------- ##
19310
19311 # Be Bourne compatible
19312 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19313   emulate sh
19314   NULLCMD=:
19315   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19316   # is contrary to our usage.  Disable this feature.
19317   alias -g '${1+"$@"}'='"$@"'
19318 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
19319   set -o posix
19320 fi
19321
19322 # Support unset when possible.
19323 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
19324   as_unset=unset
19325 else
19326   as_unset=false
19327 fi
19328
19329
19330 # Work around bugs in pre-3.0 UWIN ksh.
19331 $as_unset ENV MAIL MAILPATH
19332 PS1='$ '
19333 PS2='> '
19334 PS4='+ '
19335
19336 # NLS nuisances.
19337 for as_var in \
19338   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
19339   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
19340   LC_TELEPHONE LC_TIME
19341 do
19342   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
19343     eval $as_var=C; export $as_var
19344   else
19345     $as_unset $as_var
19346   fi
19347 done
19348
19349 # Required to use basename.
19350 if expr a : '\(a\)' >/dev/null 2>&1; then
19351   as_expr=expr
19352 else
19353   as_expr=false
19354 fi
19355
19356 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
19357   as_basename=basename
19358 else
19359   as_basename=false
19360 fi
19361
19362
19363 # Name of the executable.
19364 as_me=`$as_basename "$0" ||
19365 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19366          X"$0" : 'X\(//\)$' \| \
19367          X"$0" : 'X\(/\)$' \| \
19368          .     : '\(.\)' 2>/dev/null ||
19369 echo X/"$0" |
19370     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
19371           /^X\/\(\/\/\)$/{ s//\1/; q; }
19372           /^X\/\(\/\).*/{ s//\1/; q; }
19373           s/.*/./; q'`
19374
19375
19376 # PATH needs CR, and LINENO needs CR and PATH.
19377 # Avoid depending upon Character Ranges.
19378 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19379 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19380 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19381 as_cr_digits='0123456789'
19382 as_cr_alnum=$as_cr_Letters$as_cr_digits
19383
19384 # The user is always right.
19385 if test "${PATH_SEPARATOR+set}" != set; then
19386   echo "#! /bin/sh" >conf$$.sh
19387   echo  "exit 0"   >>conf$$.sh
19388   chmod +x conf$$.sh
19389   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
19390     PATH_SEPARATOR=';'
19391   else
19392     PATH_SEPARATOR=:
19393   fi
19394   rm -f conf$$.sh
19395 fi
19396
19397
19398   as_lineno_1=$LINENO
19399   as_lineno_2=$LINENO
19400   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19401   test "x$as_lineno_1" != "x$as_lineno_2" &&
19402   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
19403   # Find who we are.  Look in the path if we contain no path at all
19404   # relative or not.
19405   case $0 in
19406     *[\\/]* ) as_myself=$0 ;;
19407     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19408 for as_dir in $PATH
19409 do
19410   IFS=$as_save_IFS
19411   test -z "$as_dir" && as_dir=.
19412   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19413 done
19414
19415        ;;
19416   esac
19417   # We did not find ourselves, most probably we were run as `sh COMMAND'
19418   # in which case we are not to be found in the path.
19419   if test "x$as_myself" = x; then
19420     as_myself=$0
19421   fi
19422   if test ! -f "$as_myself"; then
19423     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
19424 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
19425    { (exit 1); exit 1; }; }
19426   fi
19427   case $CONFIG_SHELL in
19428   '')
19429     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19430 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
19431 do
19432   IFS=$as_save_IFS
19433   test -z "$as_dir" && as_dir=.
19434   for as_base in sh bash ksh sh5; do
19435          case $as_dir in
19436          /*)
19437            if ("$as_dir/$as_base" -c '
19438   as_lineno_1=$LINENO
19439   as_lineno_2=$LINENO
19440   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19441   test "x$as_lineno_1" != "x$as_lineno_2" &&
19442   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
19443              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
19444              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
19445              CONFIG_SHELL=$as_dir/$as_base
19446              export CONFIG_SHELL
19447              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
19448            fi;;
19449          esac
19450        done
19451 done
19452 ;;
19453   esac
19454
19455   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19456   # uniformly replaced by the line number.  The first 'sed' inserts a
19457   # line-number line before each line; the second 'sed' does the real
19458   # work.  The second script uses 'N' to pair each line-number line
19459   # with the numbered line, and appends trailing '-' during
19460   # substitution so that $LINENO is not a special case at line end.
19461   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
19462   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
19463   sed '=' <$as_myself |
19464     sed '
19465       N
19466       s,$,-,
19467       : loop
19468       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
19469       t loop
19470       s,-$,,
19471       s,^['$as_cr_digits']*\n,,
19472     ' >$as_me.lineno &&
19473   chmod +x $as_me.lineno ||
19474     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
19475 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
19476    { (exit 1); exit 1; }; }
19477
19478   # Don't try to exec as it changes $[0], causing all sort of problems
19479   # (the dirname of $[0] is not the place where we might find the
19480   # original and so on.  Autoconf is especially sensible to this).
19481   . ./$as_me.lineno
19482   # Exit status is that of the last command.
19483   exit
19484 }
19485
19486
19487 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
19488   *c*,-n*) ECHO_N= ECHO_C='
19489 ' ECHO_T='      ' ;;
19490   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
19491   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
19492 esac
19493
19494 if expr a : '\(a\)' >/dev/null 2>&1; then
19495   as_expr=expr
19496 else
19497   as_expr=false
19498 fi
19499
19500 rm -f conf$$ conf$$.exe conf$$.file
19501 echo >conf$$.file
19502 if ln -s conf$$.file conf$$ 2>/dev/null; then
19503   # We could just check for DJGPP; but this test a) works b) is more generic
19504   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
19505   if test -f conf$$.exe; then
19506     # Don't use ln at all; we don't have any links
19507     as_ln_s='cp -p'
19508   else
19509     as_ln_s='ln -s'
19510   fi
19511 elif ln conf$$.file conf$$ 2>/dev/null; then
19512   as_ln_s=ln
19513 else
19514   as_ln_s='cp -p'
19515 fi
19516 rm -f conf$$ conf$$.exe conf$$.file
19517
19518 if mkdir -p . 2>/dev/null; then
19519   as_mkdir_p=:
19520 else
19521   as_mkdir_p=false
19522 fi
19523
19524 as_executable_p="test -f"
19525
19526 # Sed expression to map a string onto a valid CPP name.
19527 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
19528
19529 # Sed expression to map a string onto a valid variable name.
19530 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
19531
19532
19533 # IFS
19534 # We need space, tab and new line, in precisely that order.
19535 as_nl='
19536 '
19537 IFS="   $as_nl"
19538
19539 # CDPATH.
19540 $as_unset CDPATH
19541
19542 exec 6>&1
19543
19544 # Open the log real soon, to keep \$[0] and so on meaningful, and to
19545 # report actual input values of CONFIG_FILES etc. instead of their
19546 # values after options handling.  Logging --version etc. is OK.
19547 exec 5>>config.log
19548 {
19549   echo
19550   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19551 ## Running $as_me. ##
19552 _ASBOX
19553 } >&5
19554 cat >&5 <<_CSEOF
19555
19556 This file was extended by $as_me, which was
19557 generated by GNU Autoconf 2.57.  Invocation command line was
19558
19559   CONFIG_FILES    = $CONFIG_FILES
19560   CONFIG_HEADERS  = $CONFIG_HEADERS
19561   CONFIG_LINKS    = $CONFIG_LINKS
19562   CONFIG_COMMANDS = $CONFIG_COMMANDS
19563   $ $0 $@
19564
19565 _CSEOF
19566 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
19567 echo >&5
19568 _ACEOF
19569
19570 # Files that config.status was made for.
19571 if test -n "$ac_config_files"; then
19572   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
19573 fi
19574
19575 if test -n "$ac_config_headers"; then
19576   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
19577 fi
19578
19579 if test -n "$ac_config_links"; then
19580   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
19581 fi
19582
19583 if test -n "$ac_config_commands"; then
19584   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
19585 fi
19586
19587 cat >>$CONFIG_STATUS <<\_ACEOF
19588
19589 ac_cs_usage="\
19590 \`$as_me' instantiates files from templates according to the
19591 current configuration.
19592
19593 Usage: $0 [OPTIONS] [FILE]...
19594
19595   -h, --help       print this help, then exit
19596   -V, --version    print version number, then exit
19597   -q, --quiet      do not print progress messages
19598   -d, --debug      don't remove temporary files
19599       --recheck    update $as_me by reconfiguring in the same conditions
19600   --file=FILE[:TEMPLATE]
19601                    instantiate the configuration file FILE
19602   --header=FILE[:TEMPLATE]
19603                    instantiate the configuration header FILE
19604
19605 Configuration files:
19606 $config_files
19607
19608 Configuration headers:
19609 $config_headers
19610
19611 Configuration commands:
19612 $config_commands
19613
19614 Report bugs to <bug-autoconf@gnu.org>."
19615 _ACEOF
19616
19617 cat >>$CONFIG_STATUS <<_ACEOF
19618 ac_cs_version="\\
19619 config.status
19620 configured by $0, generated by GNU Autoconf 2.57,
19621   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
19622
19623 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
19624 Free Software Foundation, Inc.
19625 This config.status script is free software; the Free Software Foundation
19626 gives unlimited permission to copy, distribute and modify it."
19627 srcdir=$srcdir
19628 INSTALL="$INSTALL"
19629 _ACEOF
19630
19631 cat >>$CONFIG_STATUS <<\_ACEOF
19632 # If no file are specified by the user, then we need to provide default
19633 # value.  By we need to know if files were specified by the user.
19634 ac_need_defaults=:
19635 while test $# != 0
19636 do
19637   case $1 in
19638   --*=*)
19639     ac_option=`expr "x$1" : 'x\([^=]*\)='`
19640     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
19641     ac_shift=:
19642     ;;
19643   -*)
19644     ac_option=$1
19645     ac_optarg=$2
19646     ac_shift=shift
19647     ;;
19648   *) # This is not an option, so the user has probably given explicit
19649      # arguments.
19650      ac_option=$1
19651      ac_need_defaults=false;;
19652   esac
19653
19654   case $ac_option in
19655   # Handling of the options.
19656 _ACEOF
19657 cat >>$CONFIG_STATUS <<\_ACEOF
19658   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19659     ac_cs_recheck=: ;;
19660   --version | --vers* | -V )
19661     echo "$ac_cs_version"; exit 0 ;;
19662   --he | --h)
19663     # Conflict between --help and --header
19664     { { echo "$as_me:$LINENO: error: ambiguous option: $1
19665 Try \`$0 --help' for more information." >&5
19666 echo "$as_me: error: ambiguous option: $1
19667 Try \`$0 --help' for more information." >&2;}
19668    { (exit 1); exit 1; }; };;
19669   --help | --hel | -h )
19670     echo "$ac_cs_usage"; exit 0 ;;
19671   --debug | --d* | -d )
19672     debug=: ;;
19673   --file | --fil | --fi | --f )
19674     $ac_shift
19675     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
19676     ac_need_defaults=false;;
19677   --header | --heade | --head | --hea )
19678     $ac_shift
19679     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
19680     ac_need_defaults=false;;
19681   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19682   | -silent | --silent | --silen | --sile | --sil | --si | --s)
19683     ac_cs_silent=: ;;
19684
19685   # This is an error.
19686   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
19687 Try \`$0 --help' for more information." >&5
19688 echo "$as_me: error: unrecognized option: $1
19689 Try \`$0 --help' for more information." >&2;}
19690    { (exit 1); exit 1; }; } ;;
19691
19692   *) ac_config_targets="$ac_config_targets $1" ;;
19693
19694   esac
19695   shift
19696 done
19697
19698 ac_configure_extra_args=
19699
19700 if $ac_cs_silent; then
19701   exec 6>/dev/null
19702   ac_configure_extra_args="$ac_configure_extra_args --silent"
19703 fi
19704
19705 _ACEOF
19706 cat >>$CONFIG_STATUS <<_ACEOF
19707 if \$ac_cs_recheck; then
19708   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
19709   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19710 fi
19711
19712 _ACEOF
19713
19714
19715
19716
19717
19718 cat >>$CONFIG_STATUS <<\_ACEOF
19719 for ac_config_target in $ac_config_targets
19720 do
19721   case "$ac_config_target" in
19722   # Handling of arguments.
19723   "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
19724   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19725   "rescue/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/Makefile" ;;
19726   "rescue/linux/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/linux/Makefile" ;;
19727   "rescue/linux/floppy/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/linux/floppy/Makefile" ;;
19728   "rescue/linux/cdrom/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/linux/cdrom/Makefile" ;;
19729   "rescue/linux/cdrom/bacula/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/linux/cdrom/bacula/Makefile" ;;
19730   "rescue/freebsd/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/freebsd/Makefile" ;;
19731   "rescue/solaris/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/solaris/Makefile" ;;
19732   "scripts/startmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
19733   "scripts/stopmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
19734   "scripts/btraceback" ) CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
19735   "scripts/startit" ) CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
19736   "scripts/stopit" ) CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
19737   "scripts/bconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
19738   "scripts/gconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
19739   "scripts/bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
19740   "scripts/devel_bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
19741   "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
19742   "scripts/logrotate" ) CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
19743   "scripts/bacula.desktop.gnome1" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
19744   "scripts/bacula.desktop.gnome2" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
19745   "scripts/bacula.desktop.gnome1.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
19746   "scripts/bacula.desktop.gnome2.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
19747   "scripts/bacula.desktop.gnome1.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
19748   "scripts/bacula.desktop.gnome2.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
19749   "scripts/gnome-console.console_apps" ) CONFIG_FILES="$CONFIG_FILES scripts/gnome-console.console_apps" ;;
19750   "scripts/mtx-changer" ) CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
19751   "scripts/bacula-tray-monitor.desktop" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
19752   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
19753   "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
19754   "src/host.h" ) CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
19755   "src/console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
19756   "src/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
19757   "src/gnome-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/Makefile" ;;
19758   "src/gnome-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/gnome-console.conf" ;;
19759   "src/gnome2-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
19760   "src/gnome2-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/gnome-console.conf" ;;
19761   "src/wx-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
19762   "src/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/wx-console.conf" ;;
19763   "src/tray-monitor/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
19764   "src/tray-monitor/tray-monitor.conf" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
19765   "src/dird/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
19766   "src/dird/bacula-dir.conf" ) CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
19767   "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
19768   "src/stored/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
19769   "src/stored/bacula-sd.conf" ) CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
19770   "src/filed/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
19771   "src/filed/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
19772   "src/filed/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/win32/Makefile" ;;
19773   "src/cats/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
19774   "src/cats/make_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
19775   "src/cats/delete_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
19776   "src/cats/create_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
19777   "src/cats/update_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
19778   "src/cats/make_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
19779   "src/cats/grant_postgresql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
19780   "src/cats/drop_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
19781   "src/cats/drop_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
19782   "src/cats/create_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
19783   "src/cats/update_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
19784   "src/cats/make_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
19785   "src/cats/grant_mysql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
19786   "src/cats/drop_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
19787   "src/cats/drop_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
19788   "src/cats/create_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
19789   "src/cats/update_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
19790   "src/cats/make_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
19791   "src/cats/grant_sqlite_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
19792   "src/cats/drop_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
19793   "src/cats/drop_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
19794   "src/cats/sqlite" ) CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
19795   "src/cats/mysql" ) CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
19796   "src/cats/create_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
19797   "src/cats/update_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
19798   "src/cats/make_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
19799   "src/cats/grant_bdb_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
19800   "src/cats/drop_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
19801   "src/cats/drop_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
19802   "src/cats/create_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
19803   "src/cats/update_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
19804   "src/cats/grant_bacula_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
19805   "src/cats/make_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
19806   "src/cats/drop_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
19807   "src/cats/drop_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
19808   "src/findlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
19809   "src/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
19810   "src/win32/winbacula.nsi" ) CONFIG_FILES="$CONFIG_FILES src/win32/winbacula.nsi" ;;
19811   "src/win32/baculafd/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/baculafd/bacula-fd.conf" ;;
19812   "src/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/win32/Makefile" ;;
19813   "src/win32/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/console/bconsole.conf" ;;
19814   "src/win32/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/wx-console/wx-console.conf" ;;
19815   "$PFILES" ) CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
19816   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
19817   "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
19818   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
19819 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
19820    { (exit 1); exit 1; }; };;
19821   esac
19822 done
19823
19824 # If the user did not use the arguments to specify the items to instantiate,
19825 # then the envvar interface is used.  Set only those that are not.
19826 # We use the long form for the default assignment because of an extremely
19827 # bizarre bug on SunOS 4.1.3.
19828 if $ac_need_defaults; then
19829   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19830   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19831   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19832 fi
19833
19834 # Have a temporary directory for convenience.  Make it in the build tree
19835 # simply because there is no reason to put it here, and in addition,
19836 # creating and moving files from /tmp can sometimes cause problems.
19837 # Create a temporary directory, and hook for its removal unless debugging.
19838 $debug ||
19839 {
19840   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
19841   trap '{ (exit 1); exit 1; }' 1 2 13 15
19842 }
19843
19844 # Create a (secure) tmp directory for tmp files.
19845
19846 {
19847   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
19848   test -n "$tmp" && test -d "$tmp"
19849 }  ||
19850 {
19851   tmp=./confstat$$-$RANDOM
19852   (umask 077 && mkdir $tmp)
19853 } ||
19854 {
19855    echo "$me: cannot create a temporary directory in ." >&2
19856    { (exit 1); exit 1; }
19857 }
19858
19859 _ACEOF
19860
19861 cat >>$CONFIG_STATUS <<_ACEOF
19862
19863 #
19864 # CONFIG_FILES section.
19865 #
19866
19867 # No need to generate the scripts if there are no CONFIG_FILES.
19868 # This happens for instance when ./config.status config.h
19869 if test -n "\$CONFIG_FILES"; then
19870   # Protect against being on the right side of a sed subst in config.status.
19871   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
19872    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
19873 s,@SHELL@,$SHELL,;t t
19874 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
19875 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
19876 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
19877 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
19878 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
19879 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
19880 s,@exec_prefix@,$exec_prefix,;t t
19881 s,@prefix@,$prefix,;t t
19882 s,@program_transform_name@,$program_transform_name,;t t
19883 s,@bindir@,$bindir,;t t
19884 s,@sbindir@,$sbindir,;t t
19885 s,@libexecdir@,$libexecdir,;t t
19886 s,@datadir@,$datadir,;t t
19887 s,@sysconfdir@,$sysconfdir,;t t
19888 s,@sharedstatedir@,$sharedstatedir,;t t
19889 s,@localstatedir@,$localstatedir,;t t
19890 s,@libdir@,$libdir,;t t
19891 s,@includedir@,$includedir,;t t
19892 s,@oldincludedir@,$oldincludedir,;t t
19893 s,@infodir@,$infodir,;t t
19894 s,@mandir@,$mandir,;t t
19895 s,@build_alias@,$build_alias,;t t
19896 s,@host_alias@,$host_alias,;t t
19897 s,@target_alias@,$target_alias,;t t
19898 s,@DEFS@,$DEFS,;t t
19899 s,@ECHO_C@,$ECHO_C,;t t
19900 s,@ECHO_N@,$ECHO_N,;t t
19901 s,@ECHO_T@,$ECHO_T,;t t
19902 s,@LIBS@,$LIBS,;t t
19903 s,@BUILD_DIR@,$BUILD_DIR,;t t
19904 s,@TRUEPRG@,$TRUEPRG,;t t
19905 s,@FALSEPRG@,$FALSEPRG,;t t
19906 s,@VERSION@,$VERSION,;t t
19907 s,@DATE@,$DATE,;t t
19908 s,@LSMDATE@,$LSMDATE,;t t
19909 s,@CC@,$CC,;t t
19910 s,@CFLAGS@,$CFLAGS,;t t
19911 s,@LDFLAGS@,$LDFLAGS,;t t
19912 s,@CPPFLAGS@,$CPPFLAGS,;t t
19913 s,@ac_ct_CC@,$ac_ct_CC,;t t
19914 s,@EXEEXT@,$EXEEXT,;t t
19915 s,@OBJEXT@,$OBJEXT,;t t
19916 s,@CXX@,$CXX,;t t
19917 s,@CXXFLAGS@,$CXXFLAGS,;t t
19918 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
19919 s,@CPP@,$CPP,;t t
19920 s,@EGREP@,$EGREP,;t t
19921 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
19922 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
19923 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
19924 s,@RANLIB@,$RANLIB,;t t
19925 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
19926 s,@MV@,$MV,;t t
19927 s,@RM@,$RM,;t t
19928 s,@CP@,$CP,;t t
19929 s,@SED@,$SED,;t t
19930 s,@AWK@,$AWK,;t t
19931 s,@ECHO@,$ECHO,;t t
19932 s,@CMP@,$CMP,;t t
19933 s,@TBL@,$TBL,;t t
19934 s,@AR@,$AR,;t t
19935 s,@OPENSSL@,$OPENSSL,;t t
19936 s,@MTX@,$MTX,;t t
19937 s,@PKGCONFIG@,$PKGCONFIG,;t t
19938 s,@WXCONFIG@,$WXCONFIG,;t t
19939 s,@CDRECORD@,$CDRECORD,;t t
19940 s,@ARFLAGS@,$ARFLAGS,;t t
19941 s,@MAKE_SHELL@,$MAKE_SHELL,;t t
19942 s,@LOCAL_LIBS@,$LOCAL_LIBS,;t t
19943 s,@LOCAL_CFLAGS@,$LOCAL_CFLAGS,;t t
19944 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
19945 s,@LOCAL_DEFS@,$LOCAL_DEFS,;t t
19946 s,@build@,$build,;t t
19947 s,@build_cpu@,$build_cpu,;t t
19948 s,@build_vendor@,$build_vendor,;t t
19949 s,@build_os@,$build_os,;t t
19950 s,@host@,$host,;t t
19951 s,@host_cpu@,$host_cpu,;t t
19952 s,@host_vendor@,$host_vendor,;t t
19953 s,@host_os@,$host_os,;t t
19954 s,@HAVE_SUN_OS_TRUE@,$HAVE_SUN_OS_TRUE,;t t
19955 s,@HAVE_SUN_OS_FALSE@,$HAVE_SUN_OS_FALSE,;t t
19956 s,@HAVE_OSF1_OS_TRUE@,$HAVE_OSF1_OS_TRUE,;t t
19957 s,@HAVE_OSF1_OS_FALSE@,$HAVE_OSF1_OS_FALSE,;t t
19958 s,@HAVE_AIX_OS_TRUE@,$HAVE_AIX_OS_TRUE,;t t
19959 s,@HAVE_AIX_OS_FALSE@,$HAVE_AIX_OS_FALSE,;t t
19960 s,@HAVE_HPUX_OS_TRUE@,$HAVE_HPUX_OS_TRUE,;t t
19961 s,@HAVE_HPUX_OS_FALSE@,$HAVE_HPUX_OS_FALSE,;t t
19962 s,@HAVE_LINUX_OS_TRUE@,$HAVE_LINUX_OS_TRUE,;t t
19963 s,@HAVE_LINUX_OS_FALSE@,$HAVE_LINUX_OS_FALSE,;t t
19964 s,@HAVE_FREEBSD_OS_TRUE@,$HAVE_FREEBSD_OS_TRUE,;t t
19965 s,@HAVE_FREEBSD_OS_FALSE@,$HAVE_FREEBSD_OS_FALSE,;t t
19966 s,@HAVE_NETBSD_OS_TRUE@,$HAVE_NETBSD_OS_TRUE,;t t
19967 s,@HAVE_NETBSD_OS_FALSE@,$HAVE_NETBSD_OS_FALSE,;t t
19968 s,@HAVE_OPENBSD_OS_TRUE@,$HAVE_OPENBSD_OS_TRUE,;t t
19969 s,@HAVE_OPENBSD_OS_FALSE@,$HAVE_OPENBSD_OS_FALSE,;t t
19970 s,@HAVE_BSDI_OS_TRUE@,$HAVE_BSDI_OS_TRUE,;t t
19971 s,@HAVE_BSDI_OS_FALSE@,$HAVE_BSDI_OS_FALSE,;t t
19972 s,@HAVE_SGI_OS_TRUE@,$HAVE_SGI_OS_TRUE,;t t
19973 s,@HAVE_SGI_OS_FALSE@,$HAVE_SGI_OS_FALSE,;t t
19974 s,@HAVE_IRIX_OS_TRUE@,$HAVE_IRIX_OS_TRUE,;t t
19975 s,@HAVE_IRIX_OS_FALSE@,$HAVE_IRIX_OS_FALSE,;t t
19976 s,@HAVE_DARWIN_OS_TRUE@,$HAVE_DARWIN_OS_TRUE,;t t
19977 s,@HAVE_DARWIN_OS_FALSE@,$HAVE_DARWIN_OS_FALSE,;t t
19978 s,@INSIDE_GNOME_COMMON_TRUE@,$INSIDE_GNOME_COMMON_TRUE,;t t
19979 s,@INSIDE_GNOME_COMMON_FALSE@,$INSIDE_GNOME_COMMON_FALSE,;t t
19980 s,@MSGFMT@,$MSGFMT,;t t
19981 s,@GNOME_INCLUDEDIR@,$GNOME_INCLUDEDIR,;t t
19982 s,@GNOMEUI_LIBS@,$GNOMEUI_LIBS,;t t
19983 s,@GNOME_LIBDIR@,$GNOME_LIBDIR,;t t
19984 s,@GNOME_LIBS@,$GNOME_LIBS,;t t
19985 s,@GNOMEGNORBA_LIBS@,$GNOMEGNORBA_LIBS,;t t
19986 s,@GTKXMHTML_LIBS@,$GTKXMHTML_LIBS,;t t
19987 s,@ZVT_LIBS@,$ZVT_LIBS,;t t
19988 s,@GNOME_CONFIG@,$GNOME_CONFIG,;t t
19989 s,@ORBIT_CONFIG@,$ORBIT_CONFIG,;t t
19990 s,@ORBIT_IDL@,$ORBIT_IDL,;t t
19991 s,@HAVE_ORBIT_TRUE@,$HAVE_ORBIT_TRUE,;t t
19992 s,@HAVE_ORBIT_FALSE@,$HAVE_ORBIT_FALSE,;t t
19993 s,@ORBIT_CFLAGS@,$ORBIT_CFLAGS,;t t
19994 s,@ORBIT_LIBS@,$ORBIT_LIBS,;t t
19995 s,@HAVE_GNORBA_TRUE@,$HAVE_GNORBA_TRUE,;t t
19996 s,@HAVE_GNORBA_FALSE@,$HAVE_GNORBA_FALSE,;t t
19997 s,@GNORBA_CFLAGS@,$GNORBA_CFLAGS,;t t
19998 s,@GNORBA_LIBS@,$GNORBA_LIBS,;t t
19999 s,@GNOME_APPLETS_LIBS@,$GNOME_APPLETS_LIBS,;t t
20000 s,@GNOME_DOCKLETS_LIBS@,$GNOME_DOCKLETS_LIBS,;t t
20001 s,@GNOME_CAPPLET_LIBS@,$GNOME_CAPPLET_LIBS,;t t
20002 s,@GNOME_DIR@,$GNOME_DIR,;t t
20003 s,@WXCONS_CPPFLAGS@,$WXCONS_CPPFLAGS,;t t
20004 s,@WXCONS_LDFLAGS@,$WXCONS_LDFLAGS,;t t
20005 s,@WX_DIR@,$WX_DIR,;t t
20006 s,@TRAY_MONITOR_CPPFLAGS@,$TRAY_MONITOR_CPPFLAGS,;t t
20007 s,@TRAY_MONITOR_LDFLAGS@,$TRAY_MONITOR_LDFLAGS,;t t
20008 s,@TRAY_MONITOR_DIR@,$TRAY_MONITOR_DIR,;t t
20009 s,@TTOOL_LDFLAGS@,$TTOOL_LDFLAGS,;t t
20010 s,@STATIC_FD@,$STATIC_FD,;t t
20011 s,@STATIC_SD@,$STATIC_SD,;t t
20012 s,@STATIC_DIR@,$STATIC_DIR,;t t
20013 s,@STATIC_CONS@,$STATIC_CONS,;t t
20014 s,@STATIC_GNOME_CONS@,$STATIC_GNOME_CONS,;t t
20015 s,@STATIC_WX_CONS@,$STATIC_WX_CONS,;t t
20016 s,@ALL_DIRS@,$ALL_DIRS,;t t
20017 s,@CONS_INC@,$CONS_INC,;t t
20018 s,@CONS_OBJ@,$CONS_OBJ,;t t
20019 s,@CONS_SRC@,$CONS_SRC,;t t
20020 s,@CONS_LIBS@,$CONS_LIBS,;t t
20021 s,@CONS_LDFLAGS@,$CONS_LDFLAGS,;t t
20022 s,@READLINE_SRC@,$READLINE_SRC,;t t
20023 s,@CDSTL@,$CDSTL,;t t
20024 s,@working_dir@,$working_dir,;t t
20025 s,@scriptdir@,$scriptdir,;t t
20026 s,@dump_email@,$dump_email,;t t
20027 s,@job_email@,$job_email,;t t
20028 s,@smtp_host@,$smtp_host,;t t
20029 s,@piddir@,$piddir,;t t
20030 s,@subsysdir@,$subsysdir,;t t
20031 s,@baseport@,$baseport,;t t
20032 s,@dir_port@,$dir_port,;t t
20033 s,@fd_port@,$fd_port,;t t
20034 s,@sd_port@,$sd_port,;t t
20035 s,@dir_password@,$dir_password,;t t
20036 s,@fd_password@,$fd_password,;t t
20037 s,@sd_password@,$sd_password,;t t
20038 s,@mon_dir_password@,$mon_dir_password,;t t
20039 s,@mon_fd_password@,$mon_fd_password,;t t
20040 s,@mon_sd_password@,$mon_sd_password,;t t
20041 s,@dir_user@,$dir_user,;t t
20042 s,@dir_group@,$dir_group,;t t
20043 s,@sd_user@,$sd_user,;t t
20044 s,@sd_group@,$sd_group,;t t
20045 s,@fd_user@,$fd_user,;t t
20046 s,@fd_group@,$fd_group,;t t
20047 s,@SBINPERM@,$SBINPERM,;t t
20048 s,@SQL_LFLAGS@,$SQL_LFLAGS,;t t
20049 s,@SQL_INCLUDE@,$SQL_INCLUDE,;t t
20050 s,@SQL_BINDIR@,$SQL_BINDIR,;t t
20051 s,@cats@,$cats,;t t
20052 s,@DB_NAME@,$DB_NAME,;t t
20053 s,@GETCONF@,$GETCONF,;t t
20054 s,@ac_ct_GETCONF@,$ac_ct_GETCONF,;t t
20055 s,@X_CFLAGS@,$X_CFLAGS,;t t
20056 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
20057 s,@X_LIBS@,$X_LIBS,;t t
20058 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
20059 s,@LIBOBJS@,$LIBOBJS,;t t
20060 s,@ALLOCA@,$ALLOCA,;t t
20061 s,@FDLIBS@,$FDLIBS,;t t
20062 s,@DEBUG@,$DEBUG,;t t
20063 s,@DINCLUDE@,$DINCLUDE,;t t
20064 s,@DLIB@,$DLIB,;t t
20065 s,@DB_LIBS@,$DB_LIBS,;t t
20066 s,@WCFLAGS@,$WCFLAGS,;t t
20067 s,@WLDFLAGS@,$WLDFLAGS,;t t
20068 s,@OBJLIST@,$OBJLIST,;t t
20069 s,@hostname@,$hostname,;t t
20070 s,@TAPEDRIVE@,$TAPEDRIVE,;t t
20071 s,@PSCMD@,$PSCMD,;t t
20072 s,@WIN32@,$WIN32,;t t
20073 s,@MACOSX@,$MACOSX,;t t
20074 s,@DISTNAME@,$DISTNAME,;t t
20075 s,@DISTVER@,$DISTVER,;t t
20076 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
20077 /@MCOMMON@/r $MCOMMON
20078 s,@MCOMMON@,,;t t
20079 CEOF
20080
20081 _ACEOF
20082
20083   cat >>$CONFIG_STATUS <<\_ACEOF
20084   # Split the substitutions into bite-sized pieces for seds with
20085   # small command number limits, like on Digital OSF/1 and HP-UX.
20086   ac_max_sed_lines=48
20087   ac_sed_frag=1 # Number of current file.
20088   ac_beg=1 # First line for current file.
20089   ac_end=$ac_max_sed_lines # Line after last line for current file.
20090   ac_more_lines=:
20091   ac_sed_cmds=
20092   while $ac_more_lines; do
20093     if test $ac_beg -gt 1; then
20094       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20095     else
20096       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20097     fi
20098     if test ! -s $tmp/subs.frag; then
20099       ac_more_lines=false
20100     else
20101       # The purpose of the label and of the branching condition is to
20102       # speed up the sed processing (if there are no `@' at all, there
20103       # is no need to browse any of the substitutions).
20104       # These are the two extra sed commands mentioned above.
20105       (echo ':t
20106   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
20107       if test -z "$ac_sed_cmds"; then
20108         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
20109       else
20110         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
20111       fi
20112       ac_sed_frag=`expr $ac_sed_frag + 1`
20113       ac_beg=$ac_end
20114       ac_end=`expr $ac_end + $ac_max_sed_lines`
20115     fi
20116   done
20117   if test -z "$ac_sed_cmds"; then
20118     ac_sed_cmds=cat
20119   fi
20120 fi # test -n "$CONFIG_FILES"
20121
20122 _ACEOF
20123 cat >>$CONFIG_STATUS <<\_ACEOF
20124 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
20125   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20126   case $ac_file in
20127   - | *:- | *:-:* ) # input from stdin
20128         cat >$tmp/stdin
20129         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20130         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20131   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20132         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20133   * )   ac_file_in=$ac_file.in ;;
20134   esac
20135
20136   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
20137   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20138 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20139          X"$ac_file" : 'X\(//\)[^/]' \| \
20140          X"$ac_file" : 'X\(//\)$' \| \
20141          X"$ac_file" : 'X\(/\)' \| \
20142          .     : '\(.\)' 2>/dev/null ||
20143 echo X"$ac_file" |
20144     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20145           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20146           /^X\(\/\/\)$/{ s//\1/; q; }
20147           /^X\(\/\).*/{ s//\1/; q; }
20148           s/.*/./; q'`
20149   { if $as_mkdir_p; then
20150     mkdir -p "$ac_dir"
20151   else
20152     as_dir="$ac_dir"
20153     as_dirs=
20154     while test ! -d "$as_dir"; do
20155       as_dirs="$as_dir $as_dirs"
20156       as_dir=`(dirname "$as_dir") 2>/dev/null ||
20157 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20158          X"$as_dir" : 'X\(//\)[^/]' \| \
20159          X"$as_dir" : 'X\(//\)$' \| \
20160          X"$as_dir" : 'X\(/\)' \| \
20161          .     : '\(.\)' 2>/dev/null ||
20162 echo X"$as_dir" |
20163     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20164           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20165           /^X\(\/\/\)$/{ s//\1/; q; }
20166           /^X\(\/\).*/{ s//\1/; q; }
20167           s/.*/./; q'`
20168     done
20169     test ! -n "$as_dirs" || mkdir $as_dirs
20170   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20171 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20172    { (exit 1); exit 1; }; }; }
20173
20174   ac_builddir=.
20175
20176 if test "$ac_dir" != .; then
20177   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20178   # A "../" for each directory in $ac_dir_suffix.
20179   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20180 else
20181   ac_dir_suffix= ac_top_builddir=
20182 fi
20183
20184 case $srcdir in
20185   .)  # No --srcdir option.  We are building in place.
20186     ac_srcdir=.
20187     if test -z "$ac_top_builddir"; then
20188        ac_top_srcdir=.
20189     else
20190        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20191     fi ;;
20192   [\\/]* | ?:[\\/]* )  # Absolute path.
20193     ac_srcdir=$srcdir$ac_dir_suffix;
20194     ac_top_srcdir=$srcdir ;;
20195   *) # Relative path.
20196     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20197     ac_top_srcdir=$ac_top_builddir$srcdir ;;
20198 esac
20199 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
20200 # absolute.
20201 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
20202 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
20203 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
20204 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
20205
20206
20207   case $INSTALL in
20208   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20209   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
20210   esac
20211
20212   if test x"$ac_file" != x-; then
20213     { echo "$as_me:$LINENO: creating $ac_file" >&5
20214 echo "$as_me: creating $ac_file" >&6;}
20215     rm -f "$ac_file"
20216   fi
20217   # Let's still pretend it is `configure' which instantiates (i.e., don't
20218   # use $as_me), people would be surprised to read:
20219   #    /* config.h.  Generated by config.status.  */
20220   if test x"$ac_file" = x-; then
20221     configure_input=
20222   else
20223     configure_input="$ac_file.  "
20224   fi
20225   configure_input=$configure_input"Generated from `echo $ac_file_in |
20226                                      sed 's,.*/,,'` by configure."
20227
20228   # First look for the input files in the build tree, otherwise in the
20229   # src tree.
20230   ac_file_inputs=`IFS=:
20231     for f in $ac_file_in; do
20232       case $f in
20233       -) echo $tmp/stdin ;;
20234       [\\/$]*)
20235          # Absolute (can't be DOS-style, as IFS=:)
20236          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20237 echo "$as_me: error: cannot find input file: $f" >&2;}
20238    { (exit 1); exit 1; }; }
20239          echo $f;;
20240       *) # Relative
20241          if test -f "$f"; then
20242            # Build tree
20243            echo $f
20244          elif test -f "$srcdir/$f"; then
20245            # Source tree
20246            echo $srcdir/$f
20247          else
20248            # /dev/null tree
20249            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20250 echo "$as_me: error: cannot find input file: $f" >&2;}
20251    { (exit 1); exit 1; }; }
20252          fi;;
20253       esac
20254     done` || { (exit 1); exit 1; }
20255 _ACEOF
20256 cat >>$CONFIG_STATUS <<_ACEOF
20257   sed "$ac_vpsub
20258 $extrasub
20259 _ACEOF
20260 cat >>$CONFIG_STATUS <<\_ACEOF
20261 :t
20262 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20263 s,@configure_input@,$configure_input,;t t
20264 s,@srcdir@,$ac_srcdir,;t t
20265 s,@abs_srcdir@,$ac_abs_srcdir,;t t
20266 s,@top_srcdir@,$ac_top_srcdir,;t t
20267 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
20268 s,@builddir@,$ac_builddir,;t t
20269 s,@abs_builddir@,$ac_abs_builddir,;t t
20270 s,@top_builddir@,$ac_top_builddir,;t t
20271 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
20272 s,@INSTALL@,$ac_INSTALL,;t t
20273 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
20274   rm -f $tmp/stdin
20275   if test x"$ac_file" != x-; then
20276     mv $tmp/out $ac_file
20277   else
20278     cat $tmp/out
20279     rm -f $tmp/out
20280   fi
20281
20282 done
20283 _ACEOF
20284 cat >>$CONFIG_STATUS <<\_ACEOF
20285
20286 #
20287 # CONFIG_HEADER section.
20288 #
20289
20290 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
20291 # NAME is the cpp macro being defined and VALUE is the value it is being given.
20292 #
20293 # ac_d sets the value in "#define NAME VALUE" lines.
20294 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
20295 ac_dB='[        ].*$,\1#\2'
20296 ac_dC=' '
20297 ac_dD=',;t'
20298 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
20299 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
20300 ac_uB='$,\1#\2define\3'
20301 ac_uC=' '
20302 ac_uD=',;t'
20303
20304 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
20305   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20306   case $ac_file in
20307   - | *:- | *:-:* ) # input from stdin
20308         cat >$tmp/stdin
20309         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20310         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20311   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20312         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20313   * )   ac_file_in=$ac_file.in ;;
20314   esac
20315
20316   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
20317 echo "$as_me: creating $ac_file" >&6;}
20318
20319   # First look for the input files in the build tree, otherwise in the
20320   # src tree.
20321   ac_file_inputs=`IFS=:
20322     for f in $ac_file_in; do
20323       case $f in
20324       -) echo $tmp/stdin ;;
20325       [\\/$]*)
20326          # Absolute (can't be DOS-style, as IFS=:)
20327          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20328 echo "$as_me: error: cannot find input file: $f" >&2;}
20329    { (exit 1); exit 1; }; }
20330          echo $f;;
20331       *) # Relative
20332          if test -f "$f"; then
20333            # Build tree
20334            echo $f
20335          elif test -f "$srcdir/$f"; then
20336            # Source tree
20337            echo $srcdir/$f
20338          else
20339            # /dev/null tree
20340            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20341 echo "$as_me: error: cannot find input file: $f" >&2;}
20342    { (exit 1); exit 1; }; }
20343          fi;;
20344       esac
20345     done` || { (exit 1); exit 1; }
20346   # Remove the trailing spaces.
20347   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
20348
20349 _ACEOF
20350
20351 # Transform confdefs.h into two sed scripts, `conftest.defines' and
20352 # `conftest.undefs', that substitutes the proper values into
20353 # config.h.in to produce config.h.  The first handles `#define'
20354 # templates, and the second `#undef' templates.
20355 # And first: Protect against being on the right side of a sed subst in
20356 # config.status.  Protect against being in an unquoted here document
20357 # in config.status.
20358 rm -f conftest.defines conftest.undefs
20359 # Using a here document instead of a string reduces the quoting nightmare.
20360 # Putting comments in sed scripts is not portable.
20361 #
20362 # `end' is used to avoid that the second main sed command (meant for
20363 # 0-ary CPP macros) applies to n-ary macro definitions.
20364 # See the Autoconf documentation for `clear'.
20365 cat >confdef2sed.sed <<\_ACEOF
20366 s/[\\&,]/\\&/g
20367 s,[\\$`],\\&,g
20368 t clear
20369 : clear
20370 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
20371 t end
20372 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
20373 : end
20374 _ACEOF
20375 # If some macros were called several times there might be several times
20376 # the same #defines, which is useless.  Nevertheless, we may not want to
20377 # sort them, since we want the *last* AC-DEFINE to be honored.
20378 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
20379 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
20380 rm -f confdef2sed.sed
20381
20382 # This sed command replaces #undef with comments.  This is necessary, for
20383 # example, in the case of _POSIX_SOURCE, which is predefined and required
20384 # on some systems where configure will not decide to define it.
20385 cat >>conftest.undefs <<\_ACEOF
20386 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
20387 _ACEOF
20388
20389 # Break up conftest.defines because some shells have a limit on the size
20390 # of here documents, and old seds have small limits too (100 cmds).
20391 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
20392 echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
20393 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
20394 echo '  :' >>$CONFIG_STATUS
20395 rm -f conftest.tail
20396 while grep . conftest.defines >/dev/null
20397 do
20398   # Write a limited-size here document to $tmp/defines.sed.
20399   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
20400   # Speed up: don't consider the non `#define' lines.
20401   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
20402   # Work around the forget-to-reset-the-flag bug.
20403   echo 't clr' >>$CONFIG_STATUS
20404   echo ': clr' >>$CONFIG_STATUS
20405   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
20406   echo 'CEOF
20407   sed -f $tmp/defines.sed $tmp/in >$tmp/out
20408   rm -f $tmp/in
20409   mv $tmp/out $tmp/in
20410 ' >>$CONFIG_STATUS
20411   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
20412   rm -f conftest.defines
20413   mv conftest.tail conftest.defines
20414 done
20415 rm -f conftest.defines
20416 echo '  fi # grep' >>$CONFIG_STATUS
20417 echo >>$CONFIG_STATUS
20418
20419 # Break up conftest.undefs because some shells have a limit on the size
20420 # of here documents, and old seds have small limits too (100 cmds).
20421 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
20422 rm -f conftest.tail
20423 while grep . conftest.undefs >/dev/null
20424 do
20425   # Write a limited-size here document to $tmp/undefs.sed.
20426   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
20427   # Speed up: don't consider the non `#undef'
20428   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
20429   # Work around the forget-to-reset-the-flag bug.
20430   echo 't clr' >>$CONFIG_STATUS
20431   echo ': clr' >>$CONFIG_STATUS
20432   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
20433   echo 'CEOF
20434   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
20435   rm -f $tmp/in
20436   mv $tmp/out $tmp/in
20437 ' >>$CONFIG_STATUS
20438   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
20439   rm -f conftest.undefs
20440   mv conftest.tail conftest.undefs
20441 done
20442 rm -f conftest.undefs
20443
20444 cat >>$CONFIG_STATUS <<\_ACEOF
20445   # Let's still pretend it is `configure' which instantiates (i.e., don't
20446   # use $as_me), people would be surprised to read:
20447   #    /* config.h.  Generated by config.status.  */
20448   if test x"$ac_file" = x-; then
20449     echo "/* Generated by configure.  */" >$tmp/config.h
20450   else
20451     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
20452   fi
20453   cat $tmp/in >>$tmp/config.h
20454   rm -f $tmp/in
20455   if test x"$ac_file" != x-; then
20456     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
20457       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20458 echo "$as_me: $ac_file is unchanged" >&6;}
20459     else
20460       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20461 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20462          X"$ac_file" : 'X\(//\)[^/]' \| \
20463          X"$ac_file" : 'X\(//\)$' \| \
20464          X"$ac_file" : 'X\(/\)' \| \
20465          .     : '\(.\)' 2>/dev/null ||
20466 echo X"$ac_file" |
20467     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20468           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20469           /^X\(\/\/\)$/{ s//\1/; q; }
20470           /^X\(\/\).*/{ s//\1/; q; }
20471           s/.*/./; q'`
20472       { if $as_mkdir_p; then
20473     mkdir -p "$ac_dir"
20474   else
20475     as_dir="$ac_dir"
20476     as_dirs=
20477     while test ! -d "$as_dir"; do
20478       as_dirs="$as_dir $as_dirs"
20479       as_dir=`(dirname "$as_dir") 2>/dev/null ||
20480 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20481          X"$as_dir" : 'X\(//\)[^/]' \| \
20482          X"$as_dir" : 'X\(//\)$' \| \
20483          X"$as_dir" : 'X\(/\)' \| \
20484          .     : '\(.\)' 2>/dev/null ||
20485 echo X"$as_dir" |
20486     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20487           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20488           /^X\(\/\/\)$/{ s//\1/; q; }
20489           /^X\(\/\).*/{ s//\1/; q; }
20490           s/.*/./; q'`
20491     done
20492     test ! -n "$as_dirs" || mkdir $as_dirs
20493   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20494 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20495    { (exit 1); exit 1; }; }; }
20496
20497       rm -f $ac_file
20498       mv $tmp/config.h $ac_file
20499     fi
20500   else
20501     cat $tmp/config.h
20502     rm -f $tmp/config.h
20503   fi
20504 done
20505 _ACEOF
20506 cat >>$CONFIG_STATUS <<\_ACEOF
20507
20508 #
20509 # CONFIG_COMMANDS section.
20510 #
20511 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
20512   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
20513   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
20514   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
20515 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20516          X"$ac_dest" : 'X\(//\)[^/]' \| \
20517          X"$ac_dest" : 'X\(//\)$' \| \
20518          X"$ac_dest" : 'X\(/\)' \| \
20519          .     : '\(.\)' 2>/dev/null ||
20520 echo X"$ac_dest" |
20521     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20522           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20523           /^X\(\/\/\)$/{ s//\1/; q; }
20524           /^X\(\/\).*/{ s//\1/; q; }
20525           s/.*/./; q'`
20526   ac_builddir=.
20527
20528 if test "$ac_dir" != .; then
20529   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20530   # A "../" for each directory in $ac_dir_suffix.
20531   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20532 else
20533   ac_dir_suffix= ac_top_builddir=
20534 fi
20535
20536 case $srcdir in
20537   .)  # No --srcdir option.  We are building in place.
20538     ac_srcdir=.
20539     if test -z "$ac_top_builddir"; then
20540        ac_top_srcdir=.
20541     else
20542        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20543     fi ;;
20544   [\\/]* | ?:[\\/]* )  # Absolute path.
20545     ac_srcdir=$srcdir$ac_dir_suffix;
20546     ac_top_srcdir=$srcdir ;;
20547   *) # Relative path.
20548     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20549     ac_top_srcdir=$ac_top_builddir$srcdir ;;
20550 esac
20551 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
20552 # absolute.
20553 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
20554 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
20555 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
20556 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
20557
20558
20559   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
20560 echo "$as_me: executing $ac_dest commands" >&6;}
20561   case $ac_dest in
20562     default ) (echo "Doing make of dependencies"; ${MAKE:-make} depend;)
20563  ;;
20564   esac
20565 done
20566 _ACEOF
20567
20568 cat >>$CONFIG_STATUS <<\_ACEOF
20569
20570 { (exit 0); exit 0; }
20571 _ACEOF
20572 chmod +x $CONFIG_STATUS
20573 ac_clean_files=$ac_clean_files_save
20574
20575
20576 # configure is writing to config.log, and then calls config.status.
20577 # config.status does its own redirection, appending to config.log.
20578 # Unfortunately, on DOS this fails, as config.log is still kept open
20579 # by configure, so config.status won't be able to write to it; its
20580 # output is simply discarded.  So we exec the FD to /dev/null,
20581 # effectively closing config.log, so it can be properly (re)opened and
20582 # appended to by config.status.  When coming back to configure, we
20583 # need to make the FD available again.
20584 if test "$no_create" != yes; then
20585   ac_cs_success=:
20586   ac_config_status_args=
20587   test "$silent" = yes &&
20588     ac_config_status_args="$ac_config_status_args --quiet"
20589   exec 5>/dev/null
20590   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20591   exec 5>>config.log
20592   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20593   # would make configure fail if this is the last instruction.
20594   $ac_cs_success || { (exit 1); exit 1; }
20595 fi
20596
20597
20598 cd scripts
20599 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
20600 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
20601 cd ..
20602
20603 c=src/cats
20604
20605 chmod 755 $c/create_bacula_database   $c/update_bacula_tables  $c/make_bacula_tables
20606 chmod 755 $c/grant_bacula_privileges  $c/drop_bacula_tables    $c/drop_bacula_database
20607
20608 chmod 755 $c/create_bdb_database      $c/update_bdb_tables     $c/make_bdb_tables
20609 chmod 755 $c/grant_bdb_privileges     $c/drop_bdb_tables       $c/drop_bdb_database
20610
20611 chmod 755 $c/create_mysql_database    $c/update_mysql_tables   $c/make_mysql_tables
20612 chmod 755 $c/grant_mysql_privileges   $c/drop_mysql_tables     $c/drop_mysql_database
20613
20614 chmod 755 $c/create_sqlite_database   $c/update_sqlite_tables  $c/make_sqlite_tables
20615 chmod 755 $c/grant_sqlite_privileges  $c/drop_sqlite_tables    $c/drop_sqlite_database
20616
20617 chmod 755 $c/create_postgresql_database  $c/update_postgresql_tables $c/make_postgresql_tables
20618 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables   $c/drop_postgresql_database
20619
20620 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
20621 chmod 755 $c/sqlite
20622 chmod 755 $c/mysql
20623
20624 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
20625    largefile_support="yes"
20626 fi
20627
20628 #
20629 # A whole lot of hand springs to get the compiler version.
20630 #  This is because gcc changed the output in version 3.0
20631 #
20632 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
20633 if test "x${CCVERSION}" = "x" ; then
20634   CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
20635 fi
20636 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
20637 if test x"${CXXVERSION}" = x ; then
20638   CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
20639 fi
20640
20641 if test "x${subsysdir}" = "x${sbindir}" ; then
20642    echo " "
20643    echo " "
20644    echo "You have set --sbindir and --with-subsys-dir"
20645    echo "  both equal to: ${subsysdir} "
20646    echo "  This is not permitted. Please reconfigure."
20647    echo " "
20648    echo "Aborting configuration ..."
20649    echo " "
20650    echo " "
20651    exit 1
20652 fi
20653
20654 if test "x${db_name}" = "xInternal" ; then
20655    echo " "
20656    echo " "
20657    echo "You have not specified either --enable-client-only or one of the"
20658    echo "  supported databases: MySQL, PostgreSQL, or SQLite".
20659    echo "  This is not permitted. Please reconfigure."
20660    echo " "
20661    echo "Aborting the configuration ..."
20662    echo " "
20663    echo " "
20664    exit 1
20665 fi
20666
20667 echo "
20668 Configuration on `date`:
20669
20670   Host:                       $host -- ${DISTNAME} ${DISTVER}
20671   Bacula version:             ${VERSION} (${DATE})
20672   Source code location:       ${srcdir}
20673   Install binaries:           ${sbindir}
20674   Install config files:       ${sysconfdir}
20675   Scripts directory:          ${scriptdir}
20676   Working directory:          ${working_dir}
20677   PID directory:              ${piddir}
20678   Subsys directory:           ${subsysdir}
20679   C Compiler:                 ${CC} ${CCVERSION}
20680   C++ Compiler:               ${CXX} ${CXXVERSION}
20681   Compiler flags:             ${WCFLAGS} ${CFLAGS}
20682   Linker flags:               ${WLDFLAGS} ${LDFLAGS}
20683   Libraries:                  ${LIBS}
20684   Statically Linked Tools:    ${support_static_tools}
20685   Statically Linked FD:       ${support_static_fd}
20686   Statically Linked SD:       ${support_static_sd}
20687   Statically Linked DIR:      ${support_static_dir}
20688   Statically Linked CONS:     ${support_static_cons}
20689   Database type:              ${db_name}
20690   Database lib:               ${DB_LIBS}
20691
20692   Job Output Email:           ${job_email}
20693   Traceback Email:            ${dump_email}
20694   SMTP Host Address:          ${smtp_host}
20695
20696   Director Port:              ${dir_port}
20697   File daemon Port:           ${fd_port}
20698   Storage daemon Port:        ${sd_port}
20699
20700   Director User:              ${dir_user}
20701   Director Group:             ${dir_group}
20702   Storage Daemon User:        ${sd_user}
20703   Storage DaemonGroup:        ${sd_group}
20704   File Daemon User:           ${fd_user}
20705   File Daemon Group:          ${fd_group}
20706
20707   SQL binaries Directory      ${SQL_BINDIR}
20708
20709   Large file support:         $largefile_support
20710   Bacula conio support:       ${got_conio} ${CONS_LIBS}
20711   readline support:           ${got_readline} ${PRTREADLINE_SRC}
20712   TCP Wrappers support:       ${TCPW_MSG}
20713   ZLIB support:               ${have_zlib}
20714   enable-smartalloc:          ${support_smartalloc}
20715   enable-gnome:               ${support_gnome} ${gnome_version}
20716   enable-wx-console:          ${support_wx_console}
20717   enable-tray-monitor:        ${support_tray_monitor}
20718   client-only:                ${build_client_only}
20719   ACL support:                ${have_acl}
20720
20721   " > config.out
20722
20723 cat config.out
20724
20725 # old stuff
20726 # cweb support:               ${got_cweb} ${CWEB_SRC}
20727   # gmp support:                      ${got_gmp} ${GMP_SRC}