]> git.sur5r.net Git - bacula/bacula/blob - bacula/configure
Add Andreas' patch
[bacula/bacula] / bacula / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57.
4 #
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization.  ##
11 ## --------------------- ##
12
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15   emulate sh
16   NULLCMD=:
17   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18   # is contrary to our usage.  Disable this feature.
19   alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21   set -o posix
22 fi
23
24 # Support unset when possible.
25 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
26   as_unset=unset
27 else
28   as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42   LC_TELEPHONE LC_TIME
43 do
44   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
45     eval $as_var=C; export $as_var
46   else
47     $as_unset $as_var
48   fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53   as_expr=expr
54 else
55   as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59   as_basename=basename
60 else
61   as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68          X"$0" : 'X\(//\)$' \| \
69          X"$0" : 'X\(/\)$' \| \
70          .     : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73           /^X\/\(\/\/\)$/{ s//\1/; q; }
74           /^X\/\(\/\).*/{ s//\1/; q; }
75           s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88   echo "#! /bin/sh" >conf$$.sh
89   echo  "exit 0"   >>conf$$.sh
90   chmod +x conf$$.sh
91   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92     PATH_SEPARATOR=';'
93   else
94     PATH_SEPARATOR=:
95   fi
96   rm -f conf$$.sh
97 fi
98
99
100   as_lineno_1=$LINENO
101   as_lineno_2=$LINENO
102   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103   test "x$as_lineno_1" != "x$as_lineno_2" &&
104   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105   # Find who we are.  Look in the path if we contain no path at all
106   # relative or not.
107   case $0 in
108     *[\\/]* ) as_myself=$0 ;;
109     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112   IFS=$as_save_IFS
113   test -z "$as_dir" && as_dir=.
114   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117        ;;
118   esac
119   # We did not find ourselves, most probably we were run as `sh COMMAND'
120   # in which case we are not to be found in the path.
121   if test "x$as_myself" = x; then
122     as_myself=$0
123   fi
124   if test ! -f "$as_myself"; then
125     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126    { (exit 1); exit 1; }; }
127   fi
128   case $CONFIG_SHELL in
129   '')
130     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133   IFS=$as_save_IFS
134   test -z "$as_dir" && as_dir=.
135   for as_base in sh bash ksh sh5; do
136          case $as_dir in
137          /*)
138            if ("$as_dir/$as_base" -c '
139   as_lineno_1=$LINENO
140   as_lineno_2=$LINENO
141   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142   test "x$as_lineno_1" != "x$as_lineno_2" &&
143   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146              CONFIG_SHELL=$as_dir/$as_base
147              export CONFIG_SHELL
148              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149            fi;;
150          esac
151        done
152 done
153 ;;
154   esac
155
156   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157   # uniformly replaced by the line number.  The first 'sed' inserts a
158   # line-number line before each line; the second 'sed' does the real
159   # work.  The second script uses 'N' to pair each line-number line
160   # with the numbered line, and appends trailing '-' during
161   # substitution so that $LINENO is not a special case at line end.
162   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164   sed '=' <$as_myself |
165     sed '
166       N
167       s,$,-,
168       : loop
169       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170       t loop
171       s,-$,,
172       s,^['$as_cr_digits']*\n,,
173     ' >$as_me.lineno &&
174   chmod +x $as_me.lineno ||
175     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176    { (exit 1); exit 1; }; }
177
178   # Don't try to exec as it changes $[0], causing all sort of problems
179   # (the dirname of $[0] is not the place where we might find the
180   # original and so on.  Autoconf is especially sensible to this).
181   . ./$as_me.lineno
182   # Exit status is that of the last command.
183   exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188   *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T='      ' ;;
190   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195   as_expr=expr
196 else
197   as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203   # We could just check for DJGPP; but this test a) works b) is more generic
204   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205   if test -f conf$$.exe; then
206     # Don't use ln at all; we don't have any links
207     as_ln_s='cp -p'
208   else
209     as_ln_s='ln -s'
210   fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212   as_ln_s=ln
213 else
214   as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219   as_mkdir_p=:
220 else
221   as_mkdir_p=false
222 fi
223
224 as_executable_p="test -f"
225
226 # Sed expression to map a string onto a valid CPP name.
227 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
228
229 # Sed expression to map a string onto a valid variable name.
230 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
231
232
233 # IFS
234 # We need space, tab and new line, in precisely that order.
235 as_nl='
236 '
237 IFS="   $as_nl"
238
239 # CDPATH.
240 $as_unset CDPATH
241
242
243 # Name of the host.
244 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
245 # so uname gets run too.
246 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
247
248 exec 6>&1
249
250 #
251 # Initializations.
252 #
253 ac_default_prefix=/usr/local
254 ac_config_libobj_dir=.
255 cross_compiling=no
256 subdirs=
257 MFLAGS=
258 MAKEFLAGS=
259 SHELL=${CONFIG_SHELL-/bin/sh}
260
261 # Maximum number of lines to put in a shell here document.
262 # This variable seems obsolete.  It should probably be removed, and
263 # only ac_max_sed_lines should be used.
264 : ${ac_max_here_lines=38}
265
266 # Identity of this package.
267 PACKAGE_NAME=
268 PACKAGE_TARNAME=
269 PACKAGE_VERSION=
270 PACKAGE_STRING=
271 PACKAGE_BUGREPORT=
272
273 ac_unique_file="src/version.h"
274 # Factoring default headers for most tests.
275 ac_includes_default="\
276 #include <stdio.h>
277 #if HAVE_SYS_TYPES_H
278 # include <sys/types.h>
279 #endif
280 #if HAVE_SYS_STAT_H
281 # include <sys/stat.h>
282 #endif
283 #if STDC_HEADERS
284 # include <stdlib.h>
285 # include <stddef.h>
286 #else
287 # if HAVE_STDLIB_H
288 #  include <stdlib.h>
289 # endif
290 #endif
291 #if HAVE_STRING_H
292 # if !STDC_HEADERS && HAVE_MEMORY_H
293 #  include <memory.h>
294 # endif
295 # include <string.h>
296 #endif
297 #if HAVE_STRINGS_H
298 # include <strings.h>
299 #endif
300 #if HAVE_INTTYPES_H
301 # include <inttypes.h>
302 #else
303 # if HAVE_STDINT_H
304 #  include <stdint.h>
305 # endif
306 #endif
307 #if HAVE_UNISTD_H
308 # include <unistd.h>
309 #endif"
310
311 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS BUILD_DIR TRUEPRG FALSEPRG VERSION DATE LSMDATE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX CPP EGREP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA RANLIB ac_ct_RANLIB MV RM CP SED AWK ECHO CMP TBL AR OPENSSL MTX PKGCONFIG WXCONFIG ARFLAGS MAKE_SHELL LOCAL_LIBS LOCAL_CFLAGS LOCAL_LDFLAGS LOCAL_DEFS build build_cpu build_vendor build_os host host_cpu host_vendor host_os HAVE_SUN_OS_TRUE HAVE_SUN_OS_FALSE HAVE_OSF1_OS_TRUE HAVE_OSF1_OS_FALSE HAVE_AIX_OS_TRUE HAVE_AIX_OS_FALSE HAVE_HPUX_OS_TRUE HAVE_HPUX_OS_FALSE HAVE_LINUX_OS_TRUE HAVE_LINUX_OS_FALSE HAVE_FREEBSD_OS_TRUE HAVE_FREEBSD_OS_FALSE HAVE_NETBSD_OS_TRUE HAVE_NETBSD_OS_FALSE HAVE_OPENBSD_OS_TRUE HAVE_OPENBSD_OS_FALSE HAVE_BSDI_OS_TRUE HAVE_BSDI_OS_FALSE HAVE_SGI_OS_TRUE HAVE_SGI_OS_FALSE HAVE_IRIX_OS_TRUE HAVE_IRIX_OS_FALSE HAVE_DARWIN_OS_TRUE HAVE_DARWIN_OS_FALSE INSIDE_GNOME_COMMON_TRUE INSIDE_GNOME_COMMON_FALSE MSGFMT GNOME_INCLUDEDIR GNOMEUI_LIBS GNOME_LIBDIR GNOME_LIBS GNOMEGNORBA_LIBS GTKXMHTML_LIBS ZVT_LIBS GNOME_CONFIG ORBIT_CONFIG ORBIT_IDL HAVE_ORBIT_TRUE HAVE_ORBIT_FALSE ORBIT_CFLAGS ORBIT_LIBS HAVE_GNORBA_TRUE HAVE_GNORBA_FALSE GNORBA_CFLAGS GNORBA_LIBS GNOME_APPLETS_LIBS GNOME_DOCKLETS_LIBS GNOME_CAPPLET_LIBS GNOME_DIR WXCONS_CPPFLAGS WXCONS_LDFLAGS WX_DIR TTOOL_LDFLAGS STATIC_FD STATIC_SD STATIC_DIR STATIC_CONS STATIC_GNOME_CONS STATIC_WX_CONS ALL_DIRS CONS_INC CONS_OBJ CONS_SRC CONS_LIBS CONS_LDFLAGS READLINE_SRC working_dir scriptdir dump_email job_email smtp_host piddir subsysdir baseport dir_port fd_port sd_port dir_password fd_password sd_password dir_user dir_group sd_user sd_group fd_user fd_group SBINPERM SQL_LFLAGS SQL_INCLUDE SQL_BINDIR cats DB_NAME GETCONF ac_ct_GETCONF X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS LIBOBJS ALLOCA FDLIBS DEBUG DINCLUDE DLIB DB_LIBS WCFLAGS WLDFLAGS OBJLIST hostname TAPEDRIVE PSCMD WIN32 MACOSX DISTNAME DISTVER LTLIBOBJS'
312 ac_subst_files='MCOMMON'
313
314 # Initialize some variables set by options.
315 ac_init_help=
316 ac_init_version=false
317 # The variables have the same names as the options, with
318 # dashes changed to underlines.
319 cache_file=/dev/null
320 exec_prefix=NONE
321 no_create=
322 no_recursion=
323 prefix=NONE
324 program_prefix=NONE
325 program_suffix=NONE
326 program_transform_name=s,x,x,
327 silent=
328 site=
329 srcdir=
330 verbose=
331 x_includes=NONE
332 x_libraries=NONE
333
334 # Installation directory options.
335 # These are left unexpanded so users can "make install exec_prefix=/foo"
336 # and all the variables that are supposed to be based on exec_prefix
337 # by default will actually change.
338 # Use braces instead of parens because sh, perl, etc. also accept them.
339 bindir='${exec_prefix}/bin'
340 sbindir='${exec_prefix}/sbin'
341 libexecdir='${exec_prefix}/libexec'
342 datadir='${prefix}/share'
343 sysconfdir='${prefix}/etc'
344 sharedstatedir='${prefix}/com'
345 localstatedir='${prefix}/var'
346 libdir='${exec_prefix}/lib'
347 includedir='${prefix}/include'
348 oldincludedir='/usr/include'
349 infodir='${prefix}/info'
350 mandir='${prefix}/man'
351
352 ac_prev=
353 for ac_option
354 do
355   # If the previous option needs an argument, assign it.
356   if test -n "$ac_prev"; then
357     eval "$ac_prev=\$ac_option"
358     ac_prev=
359     continue
360   fi
361
362   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
363
364   # Accept the important Cygnus configure options, so we can diagnose typos.
365
366   case $ac_option in
367
368   -bindir | --bindir | --bindi | --bind | --bin | --bi)
369     ac_prev=bindir ;;
370   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
371     bindir=$ac_optarg ;;
372
373   -build | --build | --buil | --bui | --bu)
374     ac_prev=build_alias ;;
375   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
376     build_alias=$ac_optarg ;;
377
378   -cache-file | --cache-file | --cache-fil | --cache-fi \
379   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
380     ac_prev=cache_file ;;
381   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
382   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
383     cache_file=$ac_optarg ;;
384
385   --config-cache | -C)
386     cache_file=config.cache ;;
387
388   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
389     ac_prev=datadir ;;
390   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
391   | --da=*)
392     datadir=$ac_optarg ;;
393
394   -disable-* | --disable-*)
395     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
396     # Reject names that are not valid shell variable names.
397     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
398       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
399    { (exit 1); exit 1; }; }
400     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
401     eval "enable_$ac_feature=no" ;;
402
403   -enable-* | --enable-*)
404     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
405     # Reject names that are not valid shell variable names.
406     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
407       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
408    { (exit 1); exit 1; }; }
409     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
410     case $ac_option in
411       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
412       *) ac_optarg=yes ;;
413     esac
414     eval "enable_$ac_feature='$ac_optarg'" ;;
415
416   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
417   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
418   | --exec | --exe | --ex)
419     ac_prev=exec_prefix ;;
420   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
421   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
422   | --exec=* | --exe=* | --ex=*)
423     exec_prefix=$ac_optarg ;;
424
425   -gas | --gas | --ga | --g)
426     # Obsolete; use --with-gas.
427     with_gas=yes ;;
428
429   -help | --help | --hel | --he | -h)
430     ac_init_help=long ;;
431   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
432     ac_init_help=recursive ;;
433   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
434     ac_init_help=short ;;
435
436   -host | --host | --hos | --ho)
437     ac_prev=host_alias ;;
438   -host=* | --host=* | --hos=* | --ho=*)
439     host_alias=$ac_optarg ;;
440
441   -includedir | --includedir | --includedi | --included | --include \
442   | --includ | --inclu | --incl | --inc)
443     ac_prev=includedir ;;
444   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
445   | --includ=* | --inclu=* | --incl=* | --inc=*)
446     includedir=$ac_optarg ;;
447
448   -infodir | --infodir | --infodi | --infod | --info | --inf)
449     ac_prev=infodir ;;
450   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
451     infodir=$ac_optarg ;;
452
453   -libdir | --libdir | --libdi | --libd)
454     ac_prev=libdir ;;
455   -libdir=* | --libdir=* | --libdi=* | --libd=*)
456     libdir=$ac_optarg ;;
457
458   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
459   | --libexe | --libex | --libe)
460     ac_prev=libexecdir ;;
461   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
462   | --libexe=* | --libex=* | --libe=*)
463     libexecdir=$ac_optarg ;;
464
465   -localstatedir | --localstatedir | --localstatedi | --localstated \
466   | --localstate | --localstat | --localsta | --localst \
467   | --locals | --local | --loca | --loc | --lo)
468     ac_prev=localstatedir ;;
469   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
470   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
471   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
472     localstatedir=$ac_optarg ;;
473
474   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
475     ac_prev=mandir ;;
476   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
477     mandir=$ac_optarg ;;
478
479   -nfp | --nfp | --nf)
480     # Obsolete; use --without-fp.
481     with_fp=no ;;
482
483   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
484   | --no-cr | --no-c | -n)
485     no_create=yes ;;
486
487   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
488   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
489     no_recursion=yes ;;
490
491   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
492   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
493   | --oldin | --oldi | --old | --ol | --o)
494     ac_prev=oldincludedir ;;
495   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
496   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
497   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
498     oldincludedir=$ac_optarg ;;
499
500   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
501     ac_prev=prefix ;;
502   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
503     prefix=$ac_optarg ;;
504
505   -program-prefix | --program-prefix | --program-prefi | --program-pref \
506   | --program-pre | --program-pr | --program-p)
507     ac_prev=program_prefix ;;
508   -program-prefix=* | --program-prefix=* | --program-prefi=* \
509   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
510     program_prefix=$ac_optarg ;;
511
512   -program-suffix | --program-suffix | --program-suffi | --program-suff \
513   | --program-suf | --program-su | --program-s)
514     ac_prev=program_suffix ;;
515   -program-suffix=* | --program-suffix=* | --program-suffi=* \
516   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
517     program_suffix=$ac_optarg ;;
518
519   -program-transform-name | --program-transform-name \
520   | --program-transform-nam | --program-transform-na \
521   | --program-transform-n | --program-transform- \
522   | --program-transform | --program-transfor \
523   | --program-transfo | --program-transf \
524   | --program-trans | --program-tran \
525   | --progr-tra | --program-tr | --program-t)
526     ac_prev=program_transform_name ;;
527   -program-transform-name=* | --program-transform-name=* \
528   | --program-transform-nam=* | --program-transform-na=* \
529   | --program-transform-n=* | --program-transform-=* \
530   | --program-transform=* | --program-transfor=* \
531   | --program-transfo=* | --program-transf=* \
532   | --program-trans=* | --program-tran=* \
533   | --progr-tra=* | --program-tr=* | --program-t=*)
534     program_transform_name=$ac_optarg ;;
535
536   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
537   | -silent | --silent | --silen | --sile | --sil)
538     silent=yes ;;
539
540   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
541     ac_prev=sbindir ;;
542   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
543   | --sbi=* | --sb=*)
544     sbindir=$ac_optarg ;;
545
546   -sharedstatedir | --sharedstatedir | --sharedstatedi \
547   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
548   | --sharedst | --shareds | --shared | --share | --shar \
549   | --sha | --sh)
550     ac_prev=sharedstatedir ;;
551   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
552   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
553   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
554   | --sha=* | --sh=*)
555     sharedstatedir=$ac_optarg ;;
556
557   -site | --site | --sit)
558     ac_prev=site ;;
559   -site=* | --site=* | --sit=*)
560     site=$ac_optarg ;;
561
562   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
563     ac_prev=srcdir ;;
564   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
565     srcdir=$ac_optarg ;;
566
567   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
568   | --syscon | --sysco | --sysc | --sys | --sy)
569     ac_prev=sysconfdir ;;
570   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
571   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
572     sysconfdir=$ac_optarg ;;
573
574   -target | --target | --targe | --targ | --tar | --ta | --t)
575     ac_prev=target_alias ;;
576   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
577     target_alias=$ac_optarg ;;
578
579   -v | -verbose | --verbose | --verbos | --verbo | --verb)
580     verbose=yes ;;
581
582   -version | --version | --versio | --versi | --vers | -V)
583     ac_init_version=: ;;
584
585   -with-* | --with-*)
586     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
587     # Reject names that are not valid shell variable names.
588     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
589       { echo "$as_me: error: invalid package name: $ac_package" >&2
590    { (exit 1); exit 1; }; }
591     ac_package=`echo $ac_package| sed 's/-/_/g'`
592     case $ac_option in
593       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
594       *) ac_optarg=yes ;;
595     esac
596     eval "with_$ac_package='$ac_optarg'" ;;
597
598   -without-* | --without-*)
599     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
600     # Reject names that are not valid shell variable names.
601     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
602       { echo "$as_me: error: invalid package name: $ac_package" >&2
603    { (exit 1); exit 1; }; }
604     ac_package=`echo $ac_package | sed 's/-/_/g'`
605     eval "with_$ac_package=no" ;;
606
607   --x)
608     # Obsolete; use --with-x.
609     with_x=yes ;;
610
611   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
612   | --x-incl | --x-inc | --x-in | --x-i)
613     ac_prev=x_includes ;;
614   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
615   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
616     x_includes=$ac_optarg ;;
617
618   -x-libraries | --x-libraries | --x-librarie | --x-librari \
619   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
620     ac_prev=x_libraries ;;
621   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
622   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
623     x_libraries=$ac_optarg ;;
624
625   -*) { echo "$as_me: error: unrecognized option: $ac_option
626 Try \`$0 --help' for more information." >&2
627    { (exit 1); exit 1; }; }
628     ;;
629
630   *=*)
631     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
632     # Reject names that are not valid shell variable names.
633     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
634       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
635    { (exit 1); exit 1; }; }
636     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
637     eval "$ac_envvar='$ac_optarg'"
638     export $ac_envvar ;;
639
640   *)
641     # FIXME: should be removed in autoconf 3.0.
642     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
643     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
644       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
645     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
646     ;;
647
648   esac
649 done
650
651 if test -n "$ac_prev"; then
652   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
653   { echo "$as_me: error: missing argument to $ac_option" >&2
654    { (exit 1); exit 1; }; }
655 fi
656
657 # Be sure to have absolute paths.
658 for ac_var in exec_prefix prefix
659 do
660   eval ac_val=$`echo $ac_var`
661   case $ac_val in
662     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
663     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
664    { (exit 1); exit 1; }; };;
665   esac
666 done
667
668 # Be sure to have absolute paths.
669 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
670               localstatedir libdir includedir oldincludedir infodir mandir
671 do
672   eval ac_val=$`echo $ac_var`
673   case $ac_val in
674     [\\/$]* | ?:[\\/]* ) ;;
675     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
676    { (exit 1); exit 1; }; };;
677   esac
678 done
679
680 # There might be people who depend on the old broken behavior: `$host'
681 # used to hold the argument of --host etc.
682 # FIXME: To remove some day.
683 build=$build_alias
684 host=$host_alias
685 target=$target_alias
686
687 # FIXME: To remove some day.
688 if test "x$host_alias" != x; then
689   if test "x$build_alias" = x; then
690     cross_compiling=maybe
691     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
692     If a cross compiler is detected then cross compile mode will be used." >&2
693   elif test "x$build_alias" != "x$host_alias"; then
694     cross_compiling=yes
695   fi
696 fi
697
698 ac_tool_prefix=
699 test -n "$host_alias" && ac_tool_prefix=$host_alias-
700
701 test "$silent" = yes && exec 6>/dev/null
702
703
704 # Find the source files, if location was not specified.
705 if test -z "$srcdir"; then
706   ac_srcdir_defaulted=yes
707   # Try the directory containing this script, then its parent.
708   ac_confdir=`(dirname "$0") 2>/dev/null ||
709 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
710          X"$0" : 'X\(//\)[^/]' \| \
711          X"$0" : 'X\(//\)$' \| \
712          X"$0" : 'X\(/\)' \| \
713          .     : '\(.\)' 2>/dev/null ||
714 echo X"$0" |
715     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
716           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
717           /^X\(\/\/\)$/{ s//\1/; q; }
718           /^X\(\/\).*/{ s//\1/; q; }
719           s/.*/./; q'`
720   srcdir=$ac_confdir
721   if test ! -r $srcdir/$ac_unique_file; then
722     srcdir=..
723   fi
724 else
725   ac_srcdir_defaulted=no
726 fi
727 if test ! -r $srcdir/$ac_unique_file; then
728   if test "$ac_srcdir_defaulted" = yes; then
729     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
730    { (exit 1); exit 1; }; }
731   else
732     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
733    { (exit 1); exit 1; }; }
734   fi
735 fi
736 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
737   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
738    { (exit 1); exit 1; }; }
739 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
740 ac_env_build_alias_set=${build_alias+set}
741 ac_env_build_alias_value=$build_alias
742 ac_cv_env_build_alias_set=${build_alias+set}
743 ac_cv_env_build_alias_value=$build_alias
744 ac_env_host_alias_set=${host_alias+set}
745 ac_env_host_alias_value=$host_alias
746 ac_cv_env_host_alias_set=${host_alias+set}
747 ac_cv_env_host_alias_value=$host_alias
748 ac_env_target_alias_set=${target_alias+set}
749 ac_env_target_alias_value=$target_alias
750 ac_cv_env_target_alias_set=${target_alias+set}
751 ac_cv_env_target_alias_value=$target_alias
752 ac_env_CC_set=${CC+set}
753 ac_env_CC_value=$CC
754 ac_cv_env_CC_set=${CC+set}
755 ac_cv_env_CC_value=$CC
756 ac_env_CFLAGS_set=${CFLAGS+set}
757 ac_env_CFLAGS_value=$CFLAGS
758 ac_cv_env_CFLAGS_set=${CFLAGS+set}
759 ac_cv_env_CFLAGS_value=$CFLAGS
760 ac_env_LDFLAGS_set=${LDFLAGS+set}
761 ac_env_LDFLAGS_value=$LDFLAGS
762 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_cv_env_LDFLAGS_value=$LDFLAGS
764 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
765 ac_env_CPPFLAGS_value=$CPPFLAGS
766 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
768 ac_env_CXX_set=${CXX+set}
769 ac_env_CXX_value=$CXX
770 ac_cv_env_CXX_set=${CXX+set}
771 ac_cv_env_CXX_value=$CXX
772 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
773 ac_env_CXXFLAGS_value=$CXXFLAGS
774 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
775 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
776 ac_env_CPP_set=${CPP+set}
777 ac_env_CPP_value=$CPP
778 ac_cv_env_CPP_set=${CPP+set}
779 ac_cv_env_CPP_value=$CPP
780
781 #
782 # Report the --help message.
783 #
784 if test "$ac_init_help" = "long"; then
785   # Omit some internal or obsolete options to make the list less imposing.
786   # This message is too long to be a string in the A/UX 3.1 sh.
787   cat <<_ACEOF
788 \`configure' configures this package to adapt to many kinds of systems.
789
790 Usage: $0 [OPTION]... [VAR=VALUE]...
791
792 To assign environment variables (e.g., CC, CFLAGS...), specify them as
793 VAR=VALUE.  See below for descriptions of some of the useful variables.
794
795 Defaults for the options are specified in brackets.
796
797 Configuration:
798   -h, --help              display this help and exit
799       --help=short        display options specific to this package
800       --help=recursive    display the short help of all the included packages
801   -V, --version           display version information and exit
802   -q, --quiet, --silent   do not print \`checking...' messages
803       --cache-file=FILE   cache test results in FILE [disabled]
804   -C, --config-cache      alias for \`--cache-file=config.cache'
805   -n, --no-create         do not create output files
806       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
807
808 _ACEOF
809
810   cat <<_ACEOF
811 Installation directories:
812   --prefix=PREFIX         install architecture-independent files in PREFIX
813                           [$ac_default_prefix]
814   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
815                           [PREFIX]
816
817 By default, \`make install' will install all the files in
818 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
819 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
820 for instance \`--prefix=\$HOME'.
821
822 For better control, use the options below.
823
824 Fine tuning of the installation directories:
825   --bindir=DIR           user executables [EPREFIX/bin]
826   --sbindir=DIR          system admin executables [EPREFIX/sbin]
827   --libexecdir=DIR       program executables [EPREFIX/libexec]
828   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
829   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
830   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
831   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
832   --libdir=DIR           object code libraries [EPREFIX/lib]
833   --includedir=DIR       C header files [PREFIX/include]
834   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
835   --infodir=DIR          info documentation [PREFIX/info]
836   --mandir=DIR           man documentation [PREFIX/man]
837 _ACEOF
838
839   cat <<\_ACEOF
840
841 X features:
842   --x-includes=DIR    X include files are in DIR
843   --x-libraries=DIR   X library files are in DIR
844
845 System types:
846   --build=BUILD     configure for building on BUILD [guessed]
847   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
848 _ACEOF
849 fi
850
851 if test -n "$ac_init_help"; then
852
853   cat <<\_ACEOF
854
855 Optional Features:
856   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
857   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
858   --enable-gnome          enable build of gnome-console GUI disabled
859   --enable-wx-console      enable build of wxWidgets console disabled
860   --enable-smartalloc     enable smartalloc debugging support disabled
861   --enable-static-tools   enable static tape tools disabled
862   --enable-static-fd      enable static File daemon disabled
863   --enable-static-sd      enable static Storage daemon disabled
864   --enable-static-dir     enable static Director disabled
865   --enable-static-cons    enable static Console disabled
866   --enable-client-only    build client (File daemon) only disabled
867   --disable-conio            disable conio support enabled
868
869   --disable-readline      disable readline support disable
870
871   --disable-largefile     omit support for large files
872
873 Optional Packages:
874   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
875   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
876   --with-gnome-includes   Specify location of GNOME headers
877   --with-gnome-libs       Specify location of GNOME libs
878   --with-gnome            Specify prefix for GNOME files
879  --with-readline=DIR             specify readline library directory
880   --with-tcp-wrappers=DIR        enable tcpwrappers support
881   --with-working-dir=PATH        specify path of Bacula working directory
882   --with-scriptdir=PATH    specify path of Bacula scripts directory
883   --with-dump-email=EMAIL        dump email address
884   --with-job-email=EMAIL         job output email address
885   --with-smtp-host=HOST          SMTP mail host address
886   --with-pid-dir=PATH            specify location of Bacula pid files
887   --with-subsys-dir=PATH         specify location of Bacula subsys file
888   --with-baseport=PORT           specify base port address for daemons
889   --with-dir-password=PASSWORD   specify Director's password
890   --with-fd-password=PASSWORD    specify Client's password
891   --with-sd-password=PASSWORD    specify Storage daemon's password
892   --with-dir-user=USER           specify user for Director daemon
893   --with-dir-group=GROUP                 specify group for Director daemon
894   --with-sd-user=USER            specify user for Storage daemon
895   --with-sd-group=GROUP          specify group for Storage daemon
896   --with-fd-user=USER            specify user for File daemon
897   --with-fd-group=GROUP          specify group for File daemon
898   --with-sbin-perm=MODE          specify permissions for sbin binaries (0754)
899   --with-postgresql=DIR      Include PostgreSQL support.  DIR is the PostgreSQL
900                           base install directory, defaults to /usr/local/pgsql
901
902   --with-mysql=DIR      Include MySQL support.  DIR is the MySQL base
903                           install directory, default is to search through
904                           a number of common places for the MySQL files.
905
906   --with-embedded-mysql=DIR Include MySQL support.  DIR is the MySQL base
907                           install directory, default is to search through
908                           a number of common places for the MySQL files.
909
910   --with-sqlite=DIR     Include SQLite support.  DIR is the SQLite base
911                           install directory, default is to search through
912                           a number of common places for the SQLite files.
913   --with-x                use the X Window System
914
915 Some influential environment variables:
916   CC          C compiler command
917   CFLAGS      C compiler flags
918   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
919               nonstandard directory <lib dir>
920   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
921               headers in a nonstandard directory <include dir>
922   CXX         C++ compiler command
923   CXXFLAGS    C++ compiler flags
924   CPP         C preprocessor
925
926 Use these variables to override the choices made by `configure' or to help
927 it to find libraries and programs with nonstandard names/locations.
928
929 _ACEOF
930 fi
931
932 if test "$ac_init_help" = "recursive"; then
933   # If there are subdirs, report their specific --help.
934   ac_popdir=`pwd`
935   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
936     test -d $ac_dir || continue
937     ac_builddir=.
938
939 if test "$ac_dir" != .; then
940   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
941   # A "../" for each directory in $ac_dir_suffix.
942   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
943 else
944   ac_dir_suffix= ac_top_builddir=
945 fi
946
947 case $srcdir in
948   .)  # No --srcdir option.  We are building in place.
949     ac_srcdir=.
950     if test -z "$ac_top_builddir"; then
951        ac_top_srcdir=.
952     else
953        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
954     fi ;;
955   [\\/]* | ?:[\\/]* )  # Absolute path.
956     ac_srcdir=$srcdir$ac_dir_suffix;
957     ac_top_srcdir=$srcdir ;;
958   *) # Relative path.
959     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
960     ac_top_srcdir=$ac_top_builddir$srcdir ;;
961 esac
962 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
963 # absolute.
964 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
965 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
966 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
967 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
968
969     cd $ac_dir
970     # Check for guested configure; otherwise get Cygnus style configure.
971     if test -f $ac_srcdir/configure.gnu; then
972       echo
973       $SHELL $ac_srcdir/configure.gnu  --help=recursive
974     elif test -f $ac_srcdir/configure; then
975       echo
976       $SHELL $ac_srcdir/configure  --help=recursive
977     elif test -f $ac_srcdir/configure.ac ||
978            test -f $ac_srcdir/configure.in; then
979       echo
980       $ac_configure --help
981     else
982       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
983     fi
984     cd $ac_popdir
985   done
986 fi
987
988 test -n "$ac_init_help" && exit 0
989 if $ac_init_version; then
990   cat <<\_ACEOF
991
992 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
993 Free Software Foundation, Inc.
994 This configure script is free software; the Free Software Foundation
995 gives unlimited permission to copy, distribute and modify it.
996 _ACEOF
997   exit 0
998 fi
999 exec 5>config.log
1000 cat >&5 <<_ACEOF
1001 This file contains any messages produced by compilers while
1002 running configure, to aid debugging if configure makes a mistake.
1003
1004 It was created by $as_me, which was
1005 generated by GNU Autoconf 2.57.  Invocation command line was
1006
1007   $ $0 $@
1008
1009 _ACEOF
1010 {
1011 cat <<_ASUNAME
1012 ## --------- ##
1013 ## Platform. ##
1014 ## --------- ##
1015
1016 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1017 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1018 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1019 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1020 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1021
1022 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1023 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1024
1025 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1026 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1027 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1028 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1029 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1030 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1031 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1032
1033 _ASUNAME
1034
1035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1036 for as_dir in $PATH
1037 do
1038   IFS=$as_save_IFS
1039   test -z "$as_dir" && as_dir=.
1040   echo "PATH: $as_dir"
1041 done
1042
1043 } >&5
1044
1045 cat >&5 <<_ACEOF
1046
1047
1048 ## ----------- ##
1049 ## Core tests. ##
1050 ## ----------- ##
1051
1052 _ACEOF
1053
1054
1055 # Keep a trace of the command line.
1056 # Strip out --no-create and --no-recursion so they do not pile up.
1057 # Strip out --silent because we don't want to record it for future runs.
1058 # Also quote any args containing shell meta-characters.
1059 # Make two passes to allow for proper duplicate-argument suppression.
1060 ac_configure_args=
1061 ac_configure_args0=
1062 ac_configure_args1=
1063 ac_sep=
1064 ac_must_keep_next=false
1065 for ac_pass in 1 2
1066 do
1067   for ac_arg
1068   do
1069     case $ac_arg in
1070     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1071     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1072     | -silent | --silent | --silen | --sile | --sil)
1073       continue ;;
1074     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1075       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1076     esac
1077     case $ac_pass in
1078     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1079     2)
1080       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1081       if test $ac_must_keep_next = true; then
1082         ac_must_keep_next=false # Got value, back to normal.
1083       else
1084         case $ac_arg in
1085           *=* | --config-cache | -C | -disable-* | --disable-* \
1086           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1087           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1088           | -with-* | --with-* | -without-* | --without-* | --x)
1089             case "$ac_configure_args0 " in
1090               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1091             esac
1092             ;;
1093           -* ) ac_must_keep_next=true ;;
1094         esac
1095       fi
1096       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1097       # Get rid of the leading space.
1098       ac_sep=" "
1099       ;;
1100     esac
1101   done
1102 done
1103 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1104 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1105
1106 # When interrupted or exit'd, cleanup temporary files, and complete
1107 # config.log.  We remove comments because anyway the quotes in there
1108 # would cause problems or look ugly.
1109 # WARNING: Be sure not to use single quotes in there, as some shells,
1110 # such as our DU 5.0 friend, will then `close' the trap.
1111 trap 'exit_status=$?
1112   # Save into config.log some information that might help in debugging.
1113   {
1114     echo
1115
1116     cat <<\_ASBOX
1117 ## ---------------- ##
1118 ## Cache variables. ##
1119 ## ---------------- ##
1120 _ASBOX
1121     echo
1122     # The following way of writing the cache mishandles newlines in values,
1123 {
1124   (set) 2>&1 |
1125     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1126     *ac_space=\ *)
1127       sed -n \
1128         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1129           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1130       ;;
1131     *)
1132       sed -n \
1133         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1134       ;;
1135     esac;
1136 }
1137     echo
1138
1139     cat <<\_ASBOX
1140 ## ----------------- ##
1141 ## Output variables. ##
1142 ## ----------------- ##
1143 _ASBOX
1144     echo
1145     for ac_var in $ac_subst_vars
1146     do
1147       eval ac_val=$`echo $ac_var`
1148       echo "$ac_var='"'"'$ac_val'"'"'"
1149     done | sort
1150     echo
1151
1152     if test -n "$ac_subst_files"; then
1153       cat <<\_ASBOX
1154 ## ------------- ##
1155 ## Output files. ##
1156 ## ------------- ##
1157 _ASBOX
1158       echo
1159       for ac_var in $ac_subst_files
1160       do
1161         eval ac_val=$`echo $ac_var`
1162         echo "$ac_var='"'"'$ac_val'"'"'"
1163       done | sort
1164       echo
1165     fi
1166
1167     if test -s confdefs.h; then
1168       cat <<\_ASBOX
1169 ## ----------- ##
1170 ## confdefs.h. ##
1171 ## ----------- ##
1172 _ASBOX
1173       echo
1174       sed "/^$/d" confdefs.h | sort
1175       echo
1176     fi
1177     test "$ac_signal" != 0 &&
1178       echo "$as_me: caught signal $ac_signal"
1179     echo "$as_me: exit $exit_status"
1180   } >&5
1181   rm -f core core.* *.core &&
1182   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1183     exit $exit_status
1184      ' 0
1185 for ac_signal in 1 2 13 15; do
1186   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1187 done
1188 ac_signal=0
1189
1190 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1191 rm -rf conftest* confdefs.h
1192 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1193 echo >confdefs.h
1194
1195 # Predefined preprocessor variables.
1196
1197 cat >>confdefs.h <<_ACEOF
1198 #define PACKAGE_NAME "$PACKAGE_NAME"
1199 _ACEOF
1200
1201
1202 cat >>confdefs.h <<_ACEOF
1203 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1204 _ACEOF
1205
1206
1207 cat >>confdefs.h <<_ACEOF
1208 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1209 _ACEOF
1210
1211
1212 cat >>confdefs.h <<_ACEOF
1213 #define PACKAGE_STRING "$PACKAGE_STRING"
1214 _ACEOF
1215
1216
1217 cat >>confdefs.h <<_ACEOF
1218 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1219 _ACEOF
1220
1221
1222 # Let the site file select an alternate cache file if it wants to.
1223 # Prefer explicitly selected file to automatically selected ones.
1224 if test -z "$CONFIG_SITE"; then
1225   if test "x$prefix" != xNONE; then
1226     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1227   else
1228     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1229   fi
1230 fi
1231 for ac_site_file in $CONFIG_SITE; do
1232   if test -r "$ac_site_file"; then
1233     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1234 echo "$as_me: loading site script $ac_site_file" >&6;}
1235     sed 's/^/| /' "$ac_site_file" >&5
1236     . "$ac_site_file"
1237   fi
1238 done
1239
1240 if test -r "$cache_file"; then
1241   # Some versions of bash will fail to source /dev/null (special
1242   # files actually), so we avoid doing that.
1243   if test -f "$cache_file"; then
1244     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1245 echo "$as_me: loading cache $cache_file" >&6;}
1246     case $cache_file in
1247       [\\/]* | ?:[\\/]* ) . $cache_file;;
1248       *)                      . ./$cache_file;;
1249     esac
1250   fi
1251 else
1252   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1253 echo "$as_me: creating cache $cache_file" >&6;}
1254   >$cache_file
1255 fi
1256
1257 # Check that the precious variables saved in the cache have kept the same
1258 # value.
1259 ac_cache_corrupted=false
1260 for ac_var in `(set) 2>&1 |
1261                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1262   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1263   eval ac_new_set=\$ac_env_${ac_var}_set
1264   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1265   eval ac_new_val="\$ac_env_${ac_var}_value"
1266   case $ac_old_set,$ac_new_set in
1267     set,)
1268       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1269 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1270       ac_cache_corrupted=: ;;
1271     ,set)
1272       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1273 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1274       ac_cache_corrupted=: ;;
1275     ,);;
1276     *)
1277       if test "x$ac_old_val" != "x$ac_new_val"; then
1278         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1279 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1280         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1281 echo "$as_me:   former value:  $ac_old_val" >&2;}
1282         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1283 echo "$as_me:   current value: $ac_new_val" >&2;}
1284         ac_cache_corrupted=:
1285       fi;;
1286   esac
1287   # Pass precious variables to config.status.
1288   if test "$ac_new_set" = set; then
1289     case $ac_new_val in
1290     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1291       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1292     *) ac_arg=$ac_var=$ac_new_val ;;
1293     esac
1294     case " $ac_configure_args " in
1295       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1296       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1297     esac
1298   fi
1299 done
1300 if $ac_cache_corrupted; then
1301   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1302 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1303   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1304 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1305    { (exit 1); exit 1; }; }
1306 fi
1307
1308 ac_ext=c
1309 ac_cpp='$CPP $CPPFLAGS'
1310 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1311 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1312 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332 BUILD_DIR=`pwd`
1333 cd ..
1334 TOP_DIR=`pwd`
1335 cd ${BUILD_DIR}
1336
1337 ac_aux_dir=
1338 for ac_dir in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf; do
1339   if test -f $ac_dir/install-sh; then
1340     ac_aux_dir=$ac_dir
1341     ac_install_sh="$ac_aux_dir/install-sh -c"
1342     break
1343   elif test -f $ac_dir/install.sh; then
1344     ac_aux_dir=$ac_dir
1345     ac_install_sh="$ac_aux_dir/install.sh -c"
1346     break
1347   elif test -f $ac_dir/shtool; then
1348     ac_aux_dir=$ac_dir
1349     ac_install_sh="$ac_aux_dir/shtool install -c"
1350     break
1351   fi
1352 done
1353 if test -z "$ac_aux_dir"; then
1354   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&5
1355 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&2;}
1356    { (exit 1); exit 1; }; }
1357 fi
1358 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1359 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1360 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1361
1362           ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
1363
1364
1365
1366
1367
1368 for ac_prog in true
1369 do
1370   # Extract the first word of "$ac_prog", so it can be a program name with args.
1371 set dummy $ac_prog; ac_word=$2
1372 echo "$as_me:$LINENO: checking for $ac_word" >&5
1373 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1374 if test "${ac_cv_path_TRUEPRG+set}" = set; then
1375   echo $ECHO_N "(cached) $ECHO_C" >&6
1376 else
1377   case $TRUEPRG in
1378   [\\/]* | ?:[\\/]*)
1379   ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
1380   ;;
1381   *)
1382   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1383 for as_dir in $PATH
1384 do
1385   IFS=$as_save_IFS
1386   test -z "$as_dir" && as_dir=.
1387   for ac_exec_ext in '' $ac_executable_extensions; do
1388   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1389     ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
1390     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1391     break 2
1392   fi
1393 done
1394 done
1395
1396   ;;
1397 esac
1398 fi
1399 TRUEPRG=$ac_cv_path_TRUEPRG
1400
1401 if test -n "$TRUEPRG"; then
1402   echo "$as_me:$LINENO: result: $TRUEPRG" >&5
1403 echo "${ECHO_T}$TRUEPRG" >&6
1404 else
1405   echo "$as_me:$LINENO: result: no" >&5
1406 echo "${ECHO_T}no" >&6
1407 fi
1408
1409   test -n "$TRUEPRG" && break
1410 done
1411 test -n "$TRUEPRG" || TRUEPRG=":"
1412
1413 for ac_prog in false
1414 do
1415   # Extract the first word of "$ac_prog", so it can be a program name with args.
1416 set dummy $ac_prog; ac_word=$2
1417 echo "$as_me:$LINENO: checking for $ac_word" >&5
1418 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1419 if test "${ac_cv_path_FALSEPRG+set}" = set; then
1420   echo $ECHO_N "(cached) $ECHO_C" >&6
1421 else
1422   case $FALSEPRG in
1423   [\\/]* | ?:[\\/]*)
1424   ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
1425   ;;
1426   *)
1427   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1428 for as_dir in $PATH
1429 do
1430   IFS=$as_save_IFS
1431   test -z "$as_dir" && as_dir=.
1432   for ac_exec_ext in '' $ac_executable_extensions; do
1433   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1434     ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
1435     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1436     break 2
1437   fi
1438 done
1439 done
1440
1441   ;;
1442 esac
1443 fi
1444 FALSEPRG=$ac_cv_path_FALSEPRG
1445
1446 if test -n "$FALSEPRG"; then
1447   echo "$as_me:$LINENO: result: $FALSEPRG" >&5
1448 echo "${ECHO_T}$FALSEPRG" >&6
1449 else
1450   echo "$as_me:$LINENO: result: no" >&5
1451 echo "${ECHO_T}no" >&6
1452 fi
1453
1454   test -n "$FALSEPRG" && break
1455 done
1456 test -n "$FALSEPRG" || FALSEPRG=":"
1457
1458
1459 #AC_CANONICAL_HOST
1460
1461 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1462 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1463 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1464 echo "configuring for bacula $VERSION ($DATE)"
1465
1466
1467
1468 ac_ext=c
1469 ac_cpp='$CPP $CPPFLAGS'
1470 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1471 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1472 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1473 if test -n "$ac_tool_prefix"; then
1474   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1475 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1476 echo "$as_me:$LINENO: checking for $ac_word" >&5
1477 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1478 if test "${ac_cv_prog_CC+set}" = set; then
1479   echo $ECHO_N "(cached) $ECHO_C" >&6
1480 else
1481   if test -n "$CC"; then
1482   ac_cv_prog_CC="$CC" # Let the user override the test.
1483 else
1484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1485 for as_dir in $PATH
1486 do
1487   IFS=$as_save_IFS
1488   test -z "$as_dir" && as_dir=.
1489   for ac_exec_ext in '' $ac_executable_extensions; do
1490   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1491     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1492     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1493     break 2
1494   fi
1495 done
1496 done
1497
1498 fi
1499 fi
1500 CC=$ac_cv_prog_CC
1501 if test -n "$CC"; then
1502   echo "$as_me:$LINENO: result: $CC" >&5
1503 echo "${ECHO_T}$CC" >&6
1504 else
1505   echo "$as_me:$LINENO: result: no" >&5
1506 echo "${ECHO_T}no" >&6
1507 fi
1508
1509 fi
1510 if test -z "$ac_cv_prog_CC"; then
1511   ac_ct_CC=$CC
1512   # Extract the first word of "gcc", so it can be a program name with args.
1513 set dummy gcc; ac_word=$2
1514 echo "$as_me:$LINENO: checking for $ac_word" >&5
1515 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1516 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1517   echo $ECHO_N "(cached) $ECHO_C" >&6
1518 else
1519   if test -n "$ac_ct_CC"; then
1520   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1521 else
1522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1523 for as_dir in $PATH
1524 do
1525   IFS=$as_save_IFS
1526   test -z "$as_dir" && as_dir=.
1527   for ac_exec_ext in '' $ac_executable_extensions; do
1528   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1529     ac_cv_prog_ac_ct_CC="gcc"
1530     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1531     break 2
1532   fi
1533 done
1534 done
1535
1536 fi
1537 fi
1538 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1539 if test -n "$ac_ct_CC"; then
1540   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1541 echo "${ECHO_T}$ac_ct_CC" >&6
1542 else
1543   echo "$as_me:$LINENO: result: no" >&5
1544 echo "${ECHO_T}no" >&6
1545 fi
1546
1547   CC=$ac_ct_CC
1548 else
1549   CC="$ac_cv_prog_CC"
1550 fi
1551
1552 if test -z "$CC"; then
1553   if test -n "$ac_tool_prefix"; then
1554   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1555 set dummy ${ac_tool_prefix}cc; ac_word=$2
1556 echo "$as_me:$LINENO: checking for $ac_word" >&5
1557 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1558 if test "${ac_cv_prog_CC+set}" = set; then
1559   echo $ECHO_N "(cached) $ECHO_C" >&6
1560 else
1561   if test -n "$CC"; then
1562   ac_cv_prog_CC="$CC" # Let the user override the test.
1563 else
1564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1565 for as_dir in $PATH
1566 do
1567   IFS=$as_save_IFS
1568   test -z "$as_dir" && as_dir=.
1569   for ac_exec_ext in '' $ac_executable_extensions; do
1570   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1571     ac_cv_prog_CC="${ac_tool_prefix}cc"
1572     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1573     break 2
1574   fi
1575 done
1576 done
1577
1578 fi
1579 fi
1580 CC=$ac_cv_prog_CC
1581 if test -n "$CC"; then
1582   echo "$as_me:$LINENO: result: $CC" >&5
1583 echo "${ECHO_T}$CC" >&6
1584 else
1585   echo "$as_me:$LINENO: result: no" >&5
1586 echo "${ECHO_T}no" >&6
1587 fi
1588
1589 fi
1590 if test -z "$ac_cv_prog_CC"; then
1591   ac_ct_CC=$CC
1592   # Extract the first word of "cc", so it can be a program name with args.
1593 set dummy cc; ac_word=$2
1594 echo "$as_me:$LINENO: checking for $ac_word" >&5
1595 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1596 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1597   echo $ECHO_N "(cached) $ECHO_C" >&6
1598 else
1599   if test -n "$ac_ct_CC"; then
1600   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1601 else
1602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1603 for as_dir in $PATH
1604 do
1605   IFS=$as_save_IFS
1606   test -z "$as_dir" && as_dir=.
1607   for ac_exec_ext in '' $ac_executable_extensions; do
1608   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1609     ac_cv_prog_ac_ct_CC="cc"
1610     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1611     break 2
1612   fi
1613 done
1614 done
1615
1616 fi
1617 fi
1618 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1619 if test -n "$ac_ct_CC"; then
1620   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1621 echo "${ECHO_T}$ac_ct_CC" >&6
1622 else
1623   echo "$as_me:$LINENO: result: no" >&5
1624 echo "${ECHO_T}no" >&6
1625 fi
1626
1627   CC=$ac_ct_CC
1628 else
1629   CC="$ac_cv_prog_CC"
1630 fi
1631
1632 fi
1633 if test -z "$CC"; then
1634   # Extract the first word of "cc", so it can be a program name with args.
1635 set dummy cc; ac_word=$2
1636 echo "$as_me:$LINENO: checking for $ac_word" >&5
1637 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1638 if test "${ac_cv_prog_CC+set}" = set; then
1639   echo $ECHO_N "(cached) $ECHO_C" >&6
1640 else
1641   if test -n "$CC"; then
1642   ac_cv_prog_CC="$CC" # Let the user override the test.
1643 else
1644   ac_prog_rejected=no
1645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1646 for as_dir in $PATH
1647 do
1648   IFS=$as_save_IFS
1649   test -z "$as_dir" && as_dir=.
1650   for ac_exec_ext in '' $ac_executable_extensions; do
1651   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1652     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1653        ac_prog_rejected=yes
1654        continue
1655      fi
1656     ac_cv_prog_CC="cc"
1657     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1658     break 2
1659   fi
1660 done
1661 done
1662
1663 if test $ac_prog_rejected = yes; then
1664   # We found a bogon in the path, so make sure we never use it.
1665   set dummy $ac_cv_prog_CC
1666   shift
1667   if test $# != 0; then
1668     # We chose a different compiler from the bogus one.
1669     # However, it has the same basename, so the bogon will be chosen
1670     # first if we set CC to just the basename; use the full file name.
1671     shift
1672     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1673   fi
1674 fi
1675 fi
1676 fi
1677 CC=$ac_cv_prog_CC
1678 if test -n "$CC"; then
1679   echo "$as_me:$LINENO: result: $CC" >&5
1680 echo "${ECHO_T}$CC" >&6
1681 else
1682   echo "$as_me:$LINENO: result: no" >&5
1683 echo "${ECHO_T}no" >&6
1684 fi
1685
1686 fi
1687 if test -z "$CC"; then
1688   if test -n "$ac_tool_prefix"; then
1689   for ac_prog in cl
1690   do
1691     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1692 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1693 echo "$as_me:$LINENO: checking for $ac_word" >&5
1694 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1695 if test "${ac_cv_prog_CC+set}" = set; then
1696   echo $ECHO_N "(cached) $ECHO_C" >&6
1697 else
1698   if test -n "$CC"; then
1699   ac_cv_prog_CC="$CC" # Let the user override the test.
1700 else
1701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1702 for as_dir in $PATH
1703 do
1704   IFS=$as_save_IFS
1705   test -z "$as_dir" && as_dir=.
1706   for ac_exec_ext in '' $ac_executable_extensions; do
1707   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1708     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1709     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1710     break 2
1711   fi
1712 done
1713 done
1714
1715 fi
1716 fi
1717 CC=$ac_cv_prog_CC
1718 if test -n "$CC"; then
1719   echo "$as_me:$LINENO: result: $CC" >&5
1720 echo "${ECHO_T}$CC" >&6
1721 else
1722   echo "$as_me:$LINENO: result: no" >&5
1723 echo "${ECHO_T}no" >&6
1724 fi
1725
1726     test -n "$CC" && break
1727   done
1728 fi
1729 if test -z "$CC"; then
1730   ac_ct_CC=$CC
1731   for ac_prog in cl
1732 do
1733   # Extract the first word of "$ac_prog", so it can be a program name with args.
1734 set dummy $ac_prog; ac_word=$2
1735 echo "$as_me:$LINENO: checking for $ac_word" >&5
1736 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1737 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1738   echo $ECHO_N "(cached) $ECHO_C" >&6
1739 else
1740   if test -n "$ac_ct_CC"; then
1741   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1742 else
1743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1744 for as_dir in $PATH
1745 do
1746   IFS=$as_save_IFS
1747   test -z "$as_dir" && as_dir=.
1748   for ac_exec_ext in '' $ac_executable_extensions; do
1749   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1750     ac_cv_prog_ac_ct_CC="$ac_prog"
1751     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1752     break 2
1753   fi
1754 done
1755 done
1756
1757 fi
1758 fi
1759 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1760 if test -n "$ac_ct_CC"; then
1761   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1762 echo "${ECHO_T}$ac_ct_CC" >&6
1763 else
1764   echo "$as_me:$LINENO: result: no" >&5
1765 echo "${ECHO_T}no" >&6
1766 fi
1767
1768   test -n "$ac_ct_CC" && break
1769 done
1770
1771   CC=$ac_ct_CC
1772 fi
1773
1774 fi
1775
1776
1777 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1778 See \`config.log' for more details." >&5
1779 echo "$as_me: error: no acceptable C compiler found in \$PATH
1780 See \`config.log' for more details." >&2;}
1781    { (exit 1); exit 1; }; }
1782
1783 # Provide some information about the compiler.
1784 echo "$as_me:$LINENO:" \
1785      "checking for C compiler version" >&5
1786 ac_compiler=`set X $ac_compile; echo $2`
1787 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1788   (eval $ac_compiler --version </dev/null >&5) 2>&5
1789   ac_status=$?
1790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1791   (exit $ac_status); }
1792 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1793   (eval $ac_compiler -v </dev/null >&5) 2>&5
1794   ac_status=$?
1795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1796   (exit $ac_status); }
1797 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1798   (eval $ac_compiler -V </dev/null >&5) 2>&5
1799   ac_status=$?
1800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1801   (exit $ac_status); }
1802
1803 cat >conftest.$ac_ext <<_ACEOF
1804 #line $LINENO "configure"
1805 /* confdefs.h.  */
1806 _ACEOF
1807 cat confdefs.h >>conftest.$ac_ext
1808 cat >>conftest.$ac_ext <<_ACEOF
1809 /* end confdefs.h.  */
1810
1811 int
1812 main ()
1813 {
1814
1815   ;
1816   return 0;
1817 }
1818 _ACEOF
1819 ac_clean_files_save=$ac_clean_files
1820 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1821 # Try to create an executable without -o first, disregard a.out.
1822 # It will help us diagnose broken compilers, and finding out an intuition
1823 # of exeext.
1824 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1825 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1826 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1827 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1828   (eval $ac_link_default) 2>&5
1829   ac_status=$?
1830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1831   (exit $ac_status); }; then
1832   # Find the output, starting from the most likely.  This scheme is
1833 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1834 # resort.
1835
1836 # Be careful to initialize this variable, since it used to be cached.
1837 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1838 ac_cv_exeext=
1839 # b.out is created by i960 compilers.
1840 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1841 do
1842   test -f "$ac_file" || continue
1843   case $ac_file in
1844     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1845         ;;
1846     conftest.$ac_ext )
1847         # This is the source file.
1848         ;;
1849     [ab].out )
1850         # We found the default executable, but exeext='' is most
1851         # certainly right.
1852         break;;
1853     *.* )
1854         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1855         # FIXME: I believe we export ac_cv_exeext for Libtool,
1856         # but it would be cool to find out if it's true.  Does anybody
1857         # maintain Libtool? --akim.
1858         export ac_cv_exeext
1859         break;;
1860     * )
1861         break;;
1862   esac
1863 done
1864 else
1865   echo "$as_me: failed program was:" >&5
1866 sed 's/^/| /' conftest.$ac_ext >&5
1867
1868 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1869 See \`config.log' for more details." >&5
1870 echo "$as_me: error: C compiler cannot create executables
1871 See \`config.log' for more details." >&2;}
1872    { (exit 77); exit 77; }; }
1873 fi
1874
1875 ac_exeext=$ac_cv_exeext
1876 echo "$as_me:$LINENO: result: $ac_file" >&5
1877 echo "${ECHO_T}$ac_file" >&6
1878
1879 # Check the compiler produces executables we can run.  If not, either
1880 # the compiler is broken, or we cross compile.
1881 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1882 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1883 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1884 # If not cross compiling, check that we can run a simple program.
1885 if test "$cross_compiling" != yes; then
1886   if { ac_try='./$ac_file'
1887   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1888   (eval $ac_try) 2>&5
1889   ac_status=$?
1890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1891   (exit $ac_status); }; }; then
1892     cross_compiling=no
1893   else
1894     if test "$cross_compiling" = maybe; then
1895         cross_compiling=yes
1896     else
1897         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1898 If you meant to cross compile, use \`--host'.
1899 See \`config.log' for more details." >&5
1900 echo "$as_me: error: cannot run C compiled programs.
1901 If you meant to cross compile, use \`--host'.
1902 See \`config.log' for more details." >&2;}
1903    { (exit 1); exit 1; }; }
1904     fi
1905   fi
1906 fi
1907 echo "$as_me:$LINENO: result: yes" >&5
1908 echo "${ECHO_T}yes" >&6
1909
1910 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1911 ac_clean_files=$ac_clean_files_save
1912 # Check the compiler produces executables we can run.  If not, either
1913 # the compiler is broken, or we cross compile.
1914 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1915 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1916 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1917 echo "${ECHO_T}$cross_compiling" >&6
1918
1919 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1920 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1921 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1922   (eval $ac_link) 2>&5
1923   ac_status=$?
1924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1925   (exit $ac_status); }; then
1926   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1927 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1928 # work properly (i.e., refer to `conftest.exe'), while it won't with
1929 # `rm'.
1930 for ac_file in conftest.exe conftest conftest.*; do
1931   test -f "$ac_file" || continue
1932   case $ac_file in
1933     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1934     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1935           export ac_cv_exeext
1936           break;;
1937     * ) break;;
1938   esac
1939 done
1940 else
1941   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1942 See \`config.log' for more details." >&5
1943 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1944 See \`config.log' for more details." >&2;}
1945    { (exit 1); exit 1; }; }
1946 fi
1947
1948 rm -f conftest$ac_cv_exeext
1949 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1950 echo "${ECHO_T}$ac_cv_exeext" >&6
1951
1952 rm -f conftest.$ac_ext
1953 EXEEXT=$ac_cv_exeext
1954 ac_exeext=$EXEEXT
1955 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1956 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1957 if test "${ac_cv_objext+set}" = set; then
1958   echo $ECHO_N "(cached) $ECHO_C" >&6
1959 else
1960   cat >conftest.$ac_ext <<_ACEOF
1961 #line $LINENO "configure"
1962 /* confdefs.h.  */
1963 _ACEOF
1964 cat confdefs.h >>conftest.$ac_ext
1965 cat >>conftest.$ac_ext <<_ACEOF
1966 /* end confdefs.h.  */
1967
1968 int
1969 main ()
1970 {
1971
1972   ;
1973   return 0;
1974 }
1975 _ACEOF
1976 rm -f conftest.o conftest.obj
1977 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1978   (eval $ac_compile) 2>&5
1979   ac_status=$?
1980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1981   (exit $ac_status); }; then
1982   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1983   case $ac_file in
1984     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1985     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1986        break;;
1987   esac
1988 done
1989 else
1990   echo "$as_me: failed program was:" >&5
1991 sed 's/^/| /' conftest.$ac_ext >&5
1992
1993 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1994 See \`config.log' for more details." >&5
1995 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1996 See \`config.log' for more details." >&2;}
1997    { (exit 1); exit 1; }; }
1998 fi
1999
2000 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2001 fi
2002 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2003 echo "${ECHO_T}$ac_cv_objext" >&6
2004 OBJEXT=$ac_cv_objext
2005 ac_objext=$OBJEXT
2006 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2007 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2008 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2009   echo $ECHO_N "(cached) $ECHO_C" >&6
2010 else
2011   cat >conftest.$ac_ext <<_ACEOF
2012 #line $LINENO "configure"
2013 /* confdefs.h.  */
2014 _ACEOF
2015 cat confdefs.h >>conftest.$ac_ext
2016 cat >>conftest.$ac_ext <<_ACEOF
2017 /* end confdefs.h.  */
2018
2019 int
2020 main ()
2021 {
2022 #ifndef __GNUC__
2023        choke me
2024 #endif
2025
2026   ;
2027   return 0;
2028 }
2029 _ACEOF
2030 rm -f conftest.$ac_objext
2031 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2032   (eval $ac_compile) 2>&5
2033   ac_status=$?
2034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2035   (exit $ac_status); } &&
2036          { ac_try='test -s conftest.$ac_objext'
2037   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2038   (eval $ac_try) 2>&5
2039   ac_status=$?
2040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2041   (exit $ac_status); }; }; then
2042   ac_compiler_gnu=yes
2043 else
2044   echo "$as_me: failed program was:" >&5
2045 sed 's/^/| /' conftest.$ac_ext >&5
2046
2047 ac_compiler_gnu=no
2048 fi
2049 rm -f conftest.$ac_objext conftest.$ac_ext
2050 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2051
2052 fi
2053 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2054 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2055 GCC=`test $ac_compiler_gnu = yes && echo yes`
2056 ac_test_CFLAGS=${CFLAGS+set}
2057 ac_save_CFLAGS=$CFLAGS
2058 CFLAGS="-g"
2059 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2060 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2061 if test "${ac_cv_prog_cc_g+set}" = set; then
2062   echo $ECHO_N "(cached) $ECHO_C" >&6
2063 else
2064   cat >conftest.$ac_ext <<_ACEOF
2065 #line $LINENO "configure"
2066 /* confdefs.h.  */
2067 _ACEOF
2068 cat confdefs.h >>conftest.$ac_ext
2069 cat >>conftest.$ac_ext <<_ACEOF
2070 /* end confdefs.h.  */
2071
2072 int
2073 main ()
2074 {
2075
2076   ;
2077   return 0;
2078 }
2079 _ACEOF
2080 rm -f conftest.$ac_objext
2081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2082   (eval $ac_compile) 2>&5
2083   ac_status=$?
2084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2085   (exit $ac_status); } &&
2086          { ac_try='test -s conftest.$ac_objext'
2087   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2088   (eval $ac_try) 2>&5
2089   ac_status=$?
2090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2091   (exit $ac_status); }; }; then
2092   ac_cv_prog_cc_g=yes
2093 else
2094   echo "$as_me: failed program was:" >&5
2095 sed 's/^/| /' conftest.$ac_ext >&5
2096
2097 ac_cv_prog_cc_g=no
2098 fi
2099 rm -f conftest.$ac_objext conftest.$ac_ext
2100 fi
2101 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2102 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2103 if test "$ac_test_CFLAGS" = set; then
2104   CFLAGS=$ac_save_CFLAGS
2105 elif test $ac_cv_prog_cc_g = yes; then
2106   if test "$GCC" = yes; then
2107     CFLAGS="-g -O2"
2108   else
2109     CFLAGS="-g"
2110   fi
2111 else
2112   if test "$GCC" = yes; then
2113     CFLAGS="-O2"
2114   else
2115     CFLAGS=
2116   fi
2117 fi
2118 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2119 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2120 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2121   echo $ECHO_N "(cached) $ECHO_C" >&6
2122 else
2123   ac_cv_prog_cc_stdc=no
2124 ac_save_CC=$CC
2125 cat >conftest.$ac_ext <<_ACEOF
2126 #line $LINENO "configure"
2127 /* confdefs.h.  */
2128 _ACEOF
2129 cat confdefs.h >>conftest.$ac_ext
2130 cat >>conftest.$ac_ext <<_ACEOF
2131 /* end confdefs.h.  */
2132 #include <stdarg.h>
2133 #include <stdio.h>
2134 #include <sys/types.h>
2135 #include <sys/stat.h>
2136 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2137 struct buf { int x; };
2138 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2139 static char *e (p, i)
2140      char **p;
2141      int i;
2142 {
2143   return p[i];
2144 }
2145 static char *f (char * (*g) (char **, int), char **p, ...)
2146 {
2147   char *s;
2148   va_list v;
2149   va_start (v,p);
2150   s = g (p, va_arg (v,int));
2151   va_end (v);
2152   return s;
2153 }
2154 int test (int i, double x);
2155 struct s1 {int (*f) (int a);};
2156 struct s2 {int (*f) (double a);};
2157 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2158 int argc;
2159 char **argv;
2160 int
2161 main ()
2162 {
2163 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2164   ;
2165   return 0;
2166 }
2167 _ACEOF
2168 # Don't try gcc -ansi; that turns off useful extensions and
2169 # breaks some systems' header files.
2170 # AIX                   -qlanglvl=ansi
2171 # Ultrix and OSF/1      -std1
2172 # HP-UX 10.20 and later -Ae
2173 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2174 # SVR4                  -Xc -D__EXTENSIONS__
2175 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2176 do
2177   CC="$ac_save_CC $ac_arg"
2178   rm -f conftest.$ac_objext
2179 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2180   (eval $ac_compile) 2>&5
2181   ac_status=$?
2182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2183   (exit $ac_status); } &&
2184          { ac_try='test -s conftest.$ac_objext'
2185   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2186   (eval $ac_try) 2>&5
2187   ac_status=$?
2188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2189   (exit $ac_status); }; }; then
2190   ac_cv_prog_cc_stdc=$ac_arg
2191 break
2192 else
2193   echo "$as_me: failed program was:" >&5
2194 sed 's/^/| /' conftest.$ac_ext >&5
2195
2196 fi
2197 rm -f conftest.$ac_objext
2198 done
2199 rm -f conftest.$ac_ext conftest.$ac_objext
2200 CC=$ac_save_CC
2201
2202 fi
2203
2204 case "x$ac_cv_prog_cc_stdc" in
2205   x|xno)
2206     echo "$as_me:$LINENO: result: none needed" >&5
2207 echo "${ECHO_T}none needed" >&6 ;;
2208   *)
2209     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2210 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2211     CC="$CC $ac_cv_prog_cc_stdc" ;;
2212 esac
2213
2214 # Some people use a C++ compiler to compile C.  Since we use `exit',
2215 # in C++ we need to declare it.  In case someone uses the same compiler
2216 # for both compiling C and C++ we need to have the C++ compiler decide
2217 # the declaration of exit, since it's the most demanding environment.
2218 cat >conftest.$ac_ext <<_ACEOF
2219 #ifndef __cplusplus
2220   choke me
2221 #endif
2222 _ACEOF
2223 rm -f conftest.$ac_objext
2224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2225   (eval $ac_compile) 2>&5
2226   ac_status=$?
2227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2228   (exit $ac_status); } &&
2229          { ac_try='test -s conftest.$ac_objext'
2230   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2231   (eval $ac_try) 2>&5
2232   ac_status=$?
2233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2234   (exit $ac_status); }; }; then
2235   for ac_declaration in \
2236    ''\
2237    '#include <stdlib.h>' \
2238    'extern "C" void std::exit (int) throw (); using std::exit;' \
2239    'extern "C" void std::exit (int); using std::exit;' \
2240    'extern "C" void exit (int) throw ();' \
2241    'extern "C" void exit (int);' \
2242    'void exit (int);'
2243 do
2244   cat >conftest.$ac_ext <<_ACEOF
2245 #line $LINENO "configure"
2246 /* confdefs.h.  */
2247 _ACEOF
2248 cat confdefs.h >>conftest.$ac_ext
2249 cat >>conftest.$ac_ext <<_ACEOF
2250 /* end confdefs.h.  */
2251 #include <stdlib.h>
2252 $ac_declaration
2253 int
2254 main ()
2255 {
2256 exit (42);
2257   ;
2258   return 0;
2259 }
2260 _ACEOF
2261 rm -f conftest.$ac_objext
2262 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2263   (eval $ac_compile) 2>&5
2264   ac_status=$?
2265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2266   (exit $ac_status); } &&
2267          { ac_try='test -s conftest.$ac_objext'
2268   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2269   (eval $ac_try) 2>&5
2270   ac_status=$?
2271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2272   (exit $ac_status); }; }; then
2273   :
2274 else
2275   echo "$as_me: failed program was:" >&5
2276 sed 's/^/| /' conftest.$ac_ext >&5
2277
2278 continue
2279 fi
2280 rm -f conftest.$ac_objext conftest.$ac_ext
2281   cat >conftest.$ac_ext <<_ACEOF
2282 #line $LINENO "configure"
2283 /* confdefs.h.  */
2284 _ACEOF
2285 cat confdefs.h >>conftest.$ac_ext
2286 cat >>conftest.$ac_ext <<_ACEOF
2287 /* end confdefs.h.  */
2288 $ac_declaration
2289 int
2290 main ()
2291 {
2292 exit (42);
2293   ;
2294   return 0;
2295 }
2296 _ACEOF
2297 rm -f conftest.$ac_objext
2298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2299   (eval $ac_compile) 2>&5
2300   ac_status=$?
2301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2302   (exit $ac_status); } &&
2303          { ac_try='test -s conftest.$ac_objext'
2304   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2305   (eval $ac_try) 2>&5
2306   ac_status=$?
2307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2308   (exit $ac_status); }; }; then
2309   break
2310 else
2311   echo "$as_me: failed program was:" >&5
2312 sed 's/^/| /' conftest.$ac_ext >&5
2313
2314 fi
2315 rm -f conftest.$ac_objext conftest.$ac_ext
2316 done
2317 rm -f conftest*
2318 if test -n "$ac_declaration"; then
2319   echo '#ifdef __cplusplus' >>confdefs.h
2320   echo $ac_declaration      >>confdefs.h
2321   echo '#endif'             >>confdefs.h
2322 fi
2323
2324 else
2325   echo "$as_me: failed program was:" >&5
2326 sed 's/^/| /' conftest.$ac_ext >&5
2327
2328 fi
2329 rm -f conftest.$ac_objext conftest.$ac_ext
2330 ac_ext=c
2331 ac_cpp='$CPP $CPPFLAGS'
2332 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2333 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2334 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2335
2336 ac_ext=cc
2337 ac_cpp='$CXXCPP $CPPFLAGS'
2338 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2339 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2340 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2341 if test -n "$ac_tool_prefix"; then
2342   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2343   do
2344     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2345 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2346 echo "$as_me:$LINENO: checking for $ac_word" >&5
2347 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2348 if test "${ac_cv_prog_CXX+set}" = set; then
2349   echo $ECHO_N "(cached) $ECHO_C" >&6
2350 else
2351   if test -n "$CXX"; then
2352   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2353 else
2354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2355 for as_dir in $PATH
2356 do
2357   IFS=$as_save_IFS
2358   test -z "$as_dir" && as_dir=.
2359   for ac_exec_ext in '' $ac_executable_extensions; do
2360   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2361     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2362     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2363     break 2
2364   fi
2365 done
2366 done
2367
2368 fi
2369 fi
2370 CXX=$ac_cv_prog_CXX
2371 if test -n "$CXX"; then
2372   echo "$as_me:$LINENO: result: $CXX" >&5
2373 echo "${ECHO_T}$CXX" >&6
2374 else
2375   echo "$as_me:$LINENO: result: no" >&5
2376 echo "${ECHO_T}no" >&6
2377 fi
2378
2379     test -n "$CXX" && break
2380   done
2381 fi
2382 if test -z "$CXX"; then
2383   ac_ct_CXX=$CXX
2384   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2385 do
2386   # Extract the first word of "$ac_prog", so it can be a program name with args.
2387 set dummy $ac_prog; ac_word=$2
2388 echo "$as_me:$LINENO: checking for $ac_word" >&5
2389 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2390 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2391   echo $ECHO_N "(cached) $ECHO_C" >&6
2392 else
2393   if test -n "$ac_ct_CXX"; then
2394   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2395 else
2396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2397 for as_dir in $PATH
2398 do
2399   IFS=$as_save_IFS
2400   test -z "$as_dir" && as_dir=.
2401   for ac_exec_ext in '' $ac_executable_extensions; do
2402   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2403     ac_cv_prog_ac_ct_CXX="$ac_prog"
2404     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2405     break 2
2406   fi
2407 done
2408 done
2409
2410 fi
2411 fi
2412 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2413 if test -n "$ac_ct_CXX"; then
2414   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2415 echo "${ECHO_T}$ac_ct_CXX" >&6
2416 else
2417   echo "$as_me:$LINENO: result: no" >&5
2418 echo "${ECHO_T}no" >&6
2419 fi
2420
2421   test -n "$ac_ct_CXX" && break
2422 done
2423 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2424
2425   CXX=$ac_ct_CXX
2426 fi
2427
2428
2429 # Provide some information about the compiler.
2430 echo "$as_me:$LINENO:" \
2431      "checking for C++ compiler version" >&5
2432 ac_compiler=`set X $ac_compile; echo $2`
2433 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2434   (eval $ac_compiler --version </dev/null >&5) 2>&5
2435   ac_status=$?
2436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2437   (exit $ac_status); }
2438 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2439   (eval $ac_compiler -v </dev/null >&5) 2>&5
2440   ac_status=$?
2441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2442   (exit $ac_status); }
2443 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2444   (eval $ac_compiler -V </dev/null >&5) 2>&5
2445   ac_status=$?
2446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2447   (exit $ac_status); }
2448
2449 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2450 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2451 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2452   echo $ECHO_N "(cached) $ECHO_C" >&6
2453 else
2454   cat >conftest.$ac_ext <<_ACEOF
2455 #line $LINENO "configure"
2456 /* confdefs.h.  */
2457 _ACEOF
2458 cat confdefs.h >>conftest.$ac_ext
2459 cat >>conftest.$ac_ext <<_ACEOF
2460 /* end confdefs.h.  */
2461
2462 int
2463 main ()
2464 {
2465 #ifndef __GNUC__
2466        choke me
2467 #endif
2468
2469   ;
2470   return 0;
2471 }
2472 _ACEOF
2473 rm -f conftest.$ac_objext
2474 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2475   (eval $ac_compile) 2>&5
2476   ac_status=$?
2477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2478   (exit $ac_status); } &&
2479          { ac_try='test -s conftest.$ac_objext'
2480   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2481   (eval $ac_try) 2>&5
2482   ac_status=$?
2483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2484   (exit $ac_status); }; }; then
2485   ac_compiler_gnu=yes
2486 else
2487   echo "$as_me: failed program was:" >&5
2488 sed 's/^/| /' conftest.$ac_ext >&5
2489
2490 ac_compiler_gnu=no
2491 fi
2492 rm -f conftest.$ac_objext conftest.$ac_ext
2493 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2494
2495 fi
2496 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2497 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2498 GXX=`test $ac_compiler_gnu = yes && echo yes`
2499 ac_test_CXXFLAGS=${CXXFLAGS+set}
2500 ac_save_CXXFLAGS=$CXXFLAGS
2501 CXXFLAGS="-g"
2502 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2503 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2504 if test "${ac_cv_prog_cxx_g+set}" = set; then
2505   echo $ECHO_N "(cached) $ECHO_C" >&6
2506 else
2507   cat >conftest.$ac_ext <<_ACEOF
2508 #line $LINENO "configure"
2509 /* confdefs.h.  */
2510 _ACEOF
2511 cat confdefs.h >>conftest.$ac_ext
2512 cat >>conftest.$ac_ext <<_ACEOF
2513 /* end confdefs.h.  */
2514
2515 int
2516 main ()
2517 {
2518
2519   ;
2520   return 0;
2521 }
2522 _ACEOF
2523 rm -f conftest.$ac_objext
2524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2525   (eval $ac_compile) 2>&5
2526   ac_status=$?
2527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2528   (exit $ac_status); } &&
2529          { ac_try='test -s conftest.$ac_objext'
2530   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2531   (eval $ac_try) 2>&5
2532   ac_status=$?
2533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2534   (exit $ac_status); }; }; then
2535   ac_cv_prog_cxx_g=yes
2536 else
2537   echo "$as_me: failed program was:" >&5
2538 sed 's/^/| /' conftest.$ac_ext >&5
2539
2540 ac_cv_prog_cxx_g=no
2541 fi
2542 rm -f conftest.$ac_objext conftest.$ac_ext
2543 fi
2544 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2545 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2546 if test "$ac_test_CXXFLAGS" = set; then
2547   CXXFLAGS=$ac_save_CXXFLAGS
2548 elif test $ac_cv_prog_cxx_g = yes; then
2549   if test "$GXX" = yes; then
2550     CXXFLAGS="-g -O2"
2551   else
2552     CXXFLAGS="-g"
2553   fi
2554 else
2555   if test "$GXX" = yes; then
2556     CXXFLAGS="-O2"
2557   else
2558     CXXFLAGS=
2559   fi
2560 fi
2561 for ac_declaration in \
2562    ''\
2563    '#include <stdlib.h>' \
2564    'extern "C" void std::exit (int) throw (); using std::exit;' \
2565    'extern "C" void std::exit (int); using std::exit;' \
2566    'extern "C" void exit (int) throw ();' \
2567    'extern "C" void exit (int);' \
2568    'void exit (int);'
2569 do
2570   cat >conftest.$ac_ext <<_ACEOF
2571 #line $LINENO "configure"
2572 /* confdefs.h.  */
2573 _ACEOF
2574 cat confdefs.h >>conftest.$ac_ext
2575 cat >>conftest.$ac_ext <<_ACEOF
2576 /* end confdefs.h.  */
2577 #include <stdlib.h>
2578 $ac_declaration
2579 int
2580 main ()
2581 {
2582 exit (42);
2583   ;
2584   return 0;
2585 }
2586 _ACEOF
2587 rm -f conftest.$ac_objext
2588 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2589   (eval $ac_compile) 2>&5
2590   ac_status=$?
2591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2592   (exit $ac_status); } &&
2593          { ac_try='test -s conftest.$ac_objext'
2594   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2595   (eval $ac_try) 2>&5
2596   ac_status=$?
2597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2598   (exit $ac_status); }; }; then
2599   :
2600 else
2601   echo "$as_me: failed program was:" >&5
2602 sed 's/^/| /' conftest.$ac_ext >&5
2603
2604 continue
2605 fi
2606 rm -f conftest.$ac_objext conftest.$ac_ext
2607   cat >conftest.$ac_ext <<_ACEOF
2608 #line $LINENO "configure"
2609 /* confdefs.h.  */
2610 _ACEOF
2611 cat confdefs.h >>conftest.$ac_ext
2612 cat >>conftest.$ac_ext <<_ACEOF
2613 /* end confdefs.h.  */
2614 $ac_declaration
2615 int
2616 main ()
2617 {
2618 exit (42);
2619   ;
2620   return 0;
2621 }
2622 _ACEOF
2623 rm -f conftest.$ac_objext
2624 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2625   (eval $ac_compile) 2>&5
2626   ac_status=$?
2627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2628   (exit $ac_status); } &&
2629          { ac_try='test -s conftest.$ac_objext'
2630   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2631   (eval $ac_try) 2>&5
2632   ac_status=$?
2633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2634   (exit $ac_status); }; }; then
2635   break
2636 else
2637   echo "$as_me: failed program was:" >&5
2638 sed 's/^/| /' conftest.$ac_ext >&5
2639
2640 fi
2641 rm -f conftest.$ac_objext conftest.$ac_ext
2642 done
2643 rm -f conftest*
2644 if test -n "$ac_declaration"; then
2645   echo '#ifdef __cplusplus' >>confdefs.h
2646   echo $ac_declaration      >>confdefs.h
2647   echo '#endif'             >>confdefs.h
2648 fi
2649
2650 ac_ext=c
2651 ac_cpp='$CPP $CPPFLAGS'
2652 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2653 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2654 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2655
2656 if test "x$CC" != xcc; then
2657   echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2658 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2659 else
2660   echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2661 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2662 fi
2663 set dummy $CC; ac_cc=`echo $2 |
2664                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2665 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2666   echo $ECHO_N "(cached) $ECHO_C" >&6
2667 else
2668   cat >conftest.$ac_ext <<_ACEOF
2669 #line $LINENO "configure"
2670 /* confdefs.h.  */
2671 _ACEOF
2672 cat confdefs.h >>conftest.$ac_ext
2673 cat >>conftest.$ac_ext <<_ACEOF
2674 /* end confdefs.h.  */
2675
2676 int
2677 main ()
2678 {
2679
2680   ;
2681   return 0;
2682 }
2683 _ACEOF
2684 # Make sure it works both with $CC and with simple cc.
2685 # We do the test twice because some compilers refuse to overwrite an
2686 # existing .o file with -o, though they will create one.
2687 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2688 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2689   (eval $ac_try) 2>&5
2690   ac_status=$?
2691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2692   (exit $ac_status); } &&
2693    test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2694   (eval $ac_try) 2>&5
2695   ac_status=$?
2696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2697   (exit $ac_status); };
2698 then
2699   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2700   if test "x$CC" != xcc; then
2701     # Test first that cc exists at all.
2702     if { ac_try='cc -c conftest.$ac_ext >&5'
2703   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2704   (eval $ac_try) 2>&5
2705   ac_status=$?
2706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2707   (exit $ac_status); }; }; then
2708       ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2709       if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2710   (eval $ac_try) 2>&5
2711   ac_status=$?
2712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2713   (exit $ac_status); } &&
2714          test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2715   (eval $ac_try) 2>&5
2716   ac_status=$?
2717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2718   (exit $ac_status); };
2719       then
2720         # cc works too.
2721         :
2722       else
2723         # cc exists but doesn't like -o.
2724         eval ac_cv_prog_cc_${ac_cc}_c_o=no
2725       fi
2726     fi
2727   fi
2728 else
2729   eval ac_cv_prog_cc_${ac_cc}_c_o=no
2730 fi
2731 rm -f conftest*
2732
2733 fi
2734 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2735   echo "$as_me:$LINENO: result: yes" >&5
2736 echo "${ECHO_T}yes" >&6
2737 else
2738   echo "$as_me:$LINENO: result: no" >&5
2739 echo "${ECHO_T}no" >&6
2740
2741 cat >>confdefs.h <<\_ACEOF
2742 #define NO_MINUS_C_MINUS_O 1
2743 _ACEOF
2744
2745 fi
2746
2747 ac_ext=c
2748 ac_cpp='$CPP $CPPFLAGS'
2749 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2750 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2751 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2752 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2753 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2754 # On Suns, sometimes $CPP names a directory.
2755 if test -n "$CPP" && test -d "$CPP"; then
2756   CPP=
2757 fi
2758 if test -z "$CPP"; then
2759   if test "${ac_cv_prog_CPP+set}" = set; then
2760   echo $ECHO_N "(cached) $ECHO_C" >&6
2761 else
2762       # Double quotes because CPP needs to be expanded
2763     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2764     do
2765       ac_preproc_ok=false
2766 for ac_c_preproc_warn_flag in '' yes
2767 do
2768   # Use a header file that comes with gcc, so configuring glibc
2769   # with a fresh cross-compiler works.
2770   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2771   # <limits.h> exists even on freestanding compilers.
2772   # On the NeXT, cc -E runs the code through the compiler's parser,
2773   # not just through cpp. "Syntax error" is here to catch this case.
2774   cat >conftest.$ac_ext <<_ACEOF
2775 #line $LINENO "configure"
2776 /* confdefs.h.  */
2777 _ACEOF
2778 cat confdefs.h >>conftest.$ac_ext
2779 cat >>conftest.$ac_ext <<_ACEOF
2780 /* end confdefs.h.  */
2781 #ifdef __STDC__
2782 # include <limits.h>
2783 #else
2784 # include <assert.h>
2785 #endif
2786                      Syntax error
2787 _ACEOF
2788 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2789   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2790   ac_status=$?
2791   grep -v '^ *+' conftest.er1 >conftest.err
2792   rm -f conftest.er1
2793   cat conftest.err >&5
2794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2795   (exit $ac_status); } >/dev/null; then
2796   if test -s conftest.err; then
2797     ac_cpp_err=$ac_c_preproc_warn_flag
2798   else
2799     ac_cpp_err=
2800   fi
2801 else
2802   ac_cpp_err=yes
2803 fi
2804 if test -z "$ac_cpp_err"; then
2805   :
2806 else
2807   echo "$as_me: failed program was:" >&5
2808 sed 's/^/| /' conftest.$ac_ext >&5
2809
2810   # Broken: fails on valid input.
2811 continue
2812 fi
2813 rm -f conftest.err conftest.$ac_ext
2814
2815   # OK, works on sane cases.  Now check whether non-existent headers
2816   # can be detected and how.
2817   cat >conftest.$ac_ext <<_ACEOF
2818 #line $LINENO "configure"
2819 /* confdefs.h.  */
2820 _ACEOF
2821 cat confdefs.h >>conftest.$ac_ext
2822 cat >>conftest.$ac_ext <<_ACEOF
2823 /* end confdefs.h.  */
2824 #include <ac_nonexistent.h>
2825 _ACEOF
2826 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2827   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2828   ac_status=$?
2829   grep -v '^ *+' conftest.er1 >conftest.err
2830   rm -f conftest.er1
2831   cat conftest.err >&5
2832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2833   (exit $ac_status); } >/dev/null; then
2834   if test -s conftest.err; then
2835     ac_cpp_err=$ac_c_preproc_warn_flag
2836   else
2837     ac_cpp_err=
2838   fi
2839 else
2840   ac_cpp_err=yes
2841 fi
2842 if test -z "$ac_cpp_err"; then
2843   # Broken: success on invalid input.
2844 continue
2845 else
2846   echo "$as_me: failed program was:" >&5
2847 sed 's/^/| /' conftest.$ac_ext >&5
2848
2849   # Passes both tests.
2850 ac_preproc_ok=:
2851 break
2852 fi
2853 rm -f conftest.err conftest.$ac_ext
2854
2855 done
2856 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2857 rm -f conftest.err conftest.$ac_ext
2858 if $ac_preproc_ok; then
2859   break
2860 fi
2861
2862     done
2863     ac_cv_prog_CPP=$CPP
2864
2865 fi
2866   CPP=$ac_cv_prog_CPP
2867 else
2868   ac_cv_prog_CPP=$CPP
2869 fi
2870 echo "$as_me:$LINENO: result: $CPP" >&5
2871 echo "${ECHO_T}$CPP" >&6
2872 ac_preproc_ok=false
2873 for ac_c_preproc_warn_flag in '' yes
2874 do
2875   # Use a header file that comes with gcc, so configuring glibc
2876   # with a fresh cross-compiler works.
2877   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2878   # <limits.h> exists even on freestanding compilers.
2879   # On the NeXT, cc -E runs the code through the compiler's parser,
2880   # not just through cpp. "Syntax error" is here to catch this case.
2881   cat >conftest.$ac_ext <<_ACEOF
2882 #line $LINENO "configure"
2883 /* confdefs.h.  */
2884 _ACEOF
2885 cat confdefs.h >>conftest.$ac_ext
2886 cat >>conftest.$ac_ext <<_ACEOF
2887 /* end confdefs.h.  */
2888 #ifdef __STDC__
2889 # include <limits.h>
2890 #else
2891 # include <assert.h>
2892 #endif
2893                      Syntax error
2894 _ACEOF
2895 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2896   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2897   ac_status=$?
2898   grep -v '^ *+' conftest.er1 >conftest.err
2899   rm -f conftest.er1
2900   cat conftest.err >&5
2901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2902   (exit $ac_status); } >/dev/null; then
2903   if test -s conftest.err; then
2904     ac_cpp_err=$ac_c_preproc_warn_flag
2905   else
2906     ac_cpp_err=
2907   fi
2908 else
2909   ac_cpp_err=yes
2910 fi
2911 if test -z "$ac_cpp_err"; then
2912   :
2913 else
2914   echo "$as_me: failed program was:" >&5
2915 sed 's/^/| /' conftest.$ac_ext >&5
2916
2917   # Broken: fails on valid input.
2918 continue
2919 fi
2920 rm -f conftest.err conftest.$ac_ext
2921
2922   # OK, works on sane cases.  Now check whether non-existent headers
2923   # can be detected and how.
2924   cat >conftest.$ac_ext <<_ACEOF
2925 #line $LINENO "configure"
2926 /* confdefs.h.  */
2927 _ACEOF
2928 cat confdefs.h >>conftest.$ac_ext
2929 cat >>conftest.$ac_ext <<_ACEOF
2930 /* end confdefs.h.  */
2931 #include <ac_nonexistent.h>
2932 _ACEOF
2933 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2934   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2935   ac_status=$?
2936   grep -v '^ *+' conftest.er1 >conftest.err
2937   rm -f conftest.er1
2938   cat conftest.err >&5
2939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2940   (exit $ac_status); } >/dev/null; then
2941   if test -s conftest.err; then
2942     ac_cpp_err=$ac_c_preproc_warn_flag
2943   else
2944     ac_cpp_err=
2945   fi
2946 else
2947   ac_cpp_err=yes
2948 fi
2949 if test -z "$ac_cpp_err"; then
2950   # Broken: success on invalid input.
2951 continue
2952 else
2953   echo "$as_me: failed program was:" >&5
2954 sed 's/^/| /' conftest.$ac_ext >&5
2955
2956   # Passes both tests.
2957 ac_preproc_ok=:
2958 break
2959 fi
2960 rm -f conftest.err conftest.$ac_ext
2961
2962 done
2963 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2964 rm -f conftest.err conftest.$ac_ext
2965 if $ac_preproc_ok; then
2966   :
2967 else
2968   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2969 See \`config.log' for more details." >&5
2970 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2971 See \`config.log' for more details." >&2;}
2972    { (exit 1); exit 1; }; }
2973 fi
2974
2975 ac_ext=c
2976 ac_cpp='$CPP $CPPFLAGS'
2977 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2978 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2979 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2980
2981
2982 echo "$as_me:$LINENO: checking for egrep" >&5
2983 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2984 if test "${ac_cv_prog_egrep+set}" = set; then
2985   echo $ECHO_N "(cached) $ECHO_C" >&6
2986 else
2987   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2988     then ac_cv_prog_egrep='grep -E'
2989     else ac_cv_prog_egrep='egrep'
2990     fi
2991 fi
2992 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2993 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2994  EGREP=$ac_cv_prog_egrep
2995
2996
2997 if test $ac_cv_c_compiler_gnu = yes; then
2998     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
2999 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3000 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3001   echo $ECHO_N "(cached) $ECHO_C" >&6
3002 else
3003     ac_pattern="Autoconf.*'x'"
3004   cat >conftest.$ac_ext <<_ACEOF
3005 #line $LINENO "configure"
3006 /* confdefs.h.  */
3007 _ACEOF
3008 cat confdefs.h >>conftest.$ac_ext
3009 cat >>conftest.$ac_ext <<_ACEOF
3010 /* end confdefs.h.  */
3011 #include <sgtty.h>
3012 Autoconf TIOCGETP
3013 _ACEOF
3014 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3015   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3016   ac_cv_prog_gcc_traditional=yes
3017 else
3018   ac_cv_prog_gcc_traditional=no
3019 fi
3020 rm -f conftest*
3021
3022
3023   if test $ac_cv_prog_gcc_traditional = no; then
3024     cat >conftest.$ac_ext <<_ACEOF
3025 #line $LINENO "configure"
3026 /* confdefs.h.  */
3027 _ACEOF
3028 cat confdefs.h >>conftest.$ac_ext
3029 cat >>conftest.$ac_ext <<_ACEOF
3030 /* end confdefs.h.  */
3031 #include <termio.h>
3032 Autoconf TCGETA
3033 _ACEOF
3034 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3035   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3036   ac_cv_prog_gcc_traditional=yes
3037 fi
3038 rm -f conftest*
3039
3040   fi
3041 fi
3042 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3043 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3044   if test $ac_cv_prog_gcc_traditional = yes; then
3045     CC="$CC -traditional"
3046   fi
3047 fi
3048
3049 if test x$CC = xgcc
3050 then
3051    cat >>confdefs.h <<\_ACEOF
3052 #define HAVE_GCC 1
3053 _ACEOF
3054
3055 fi
3056
3057 # Find a good install program.  We prefer a C program (faster),
3058 # so one script is as good as another.  But avoid the broken or
3059 # incompatible versions:
3060 # SysV /etc/install, /usr/sbin/install
3061 # SunOS /usr/etc/install
3062 # IRIX /sbin/install
3063 # AIX /bin/install
3064 # AmigaOS /C/install, which installs bootblocks on floppy discs
3065 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3066 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3067 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3068 # ./install, which can be erroneously created by make from ./install.sh.
3069 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3070 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3071 if test -z "$INSTALL"; then
3072 if test "${ac_cv_path_install+set}" = set; then
3073   echo $ECHO_N "(cached) $ECHO_C" >&6
3074 else
3075   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3076 for as_dir in $PATH
3077 do
3078   IFS=$as_save_IFS
3079   test -z "$as_dir" && as_dir=.
3080   # Account for people who put trailing slashes in PATH elements.
3081 case $as_dir/ in
3082   ./ | .// | /cC/* | \
3083   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3084   /usr/ucb/* ) ;;
3085   *)
3086     # OSF1 and SCO ODT 3.0 have their own names for install.
3087     # Don't use installbsd from OSF since it installs stuff as root
3088     # by default.
3089     for ac_prog in ginstall scoinst install; do
3090       for ac_exec_ext in '' $ac_executable_extensions; do
3091         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3092           if test $ac_prog = install &&
3093             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3094             # AIX install.  It has an incompatible calling convention.
3095             :
3096           elif test $ac_prog = install &&
3097             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3098             # program-specific install script used by HP pwplus--don't use.
3099             :
3100           else
3101             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3102             break 3
3103           fi
3104         fi
3105       done
3106     done
3107     ;;
3108 esac
3109 done
3110
3111
3112 fi
3113   if test "${ac_cv_path_install+set}" = set; then
3114     INSTALL=$ac_cv_path_install
3115   else
3116     # As a last resort, use the slow shell script.  We don't cache a
3117     # path for INSTALL within a source directory, because that will
3118     # break other packages using the cache if that directory is
3119     # removed, or if the path is relative.
3120     INSTALL=$ac_install_sh
3121   fi
3122 fi
3123 echo "$as_me:$LINENO: result: $INSTALL" >&5
3124 echo "${ECHO_T}$INSTALL" >&6
3125
3126 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3127 # It thinks the first close brace ends the variable substitution.
3128 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3129
3130 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3131
3132 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3133
3134 if test -n "$ac_tool_prefix"; then
3135   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3136 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3137 echo "$as_me:$LINENO: checking for $ac_word" >&5
3138 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3139 if test "${ac_cv_prog_RANLIB+set}" = set; then
3140   echo $ECHO_N "(cached) $ECHO_C" >&6
3141 else
3142   if test -n "$RANLIB"; then
3143   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3144 else
3145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3146 for as_dir in $PATH
3147 do
3148   IFS=$as_save_IFS
3149   test -z "$as_dir" && as_dir=.
3150   for ac_exec_ext in '' $ac_executable_extensions; do
3151   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3152     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3153     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3154     break 2
3155   fi
3156 done
3157 done
3158
3159 fi
3160 fi
3161 RANLIB=$ac_cv_prog_RANLIB
3162 if test -n "$RANLIB"; then
3163   echo "$as_me:$LINENO: result: $RANLIB" >&5
3164 echo "${ECHO_T}$RANLIB" >&6
3165 else
3166   echo "$as_me:$LINENO: result: no" >&5
3167 echo "${ECHO_T}no" >&6
3168 fi
3169
3170 fi
3171 if test -z "$ac_cv_prog_RANLIB"; then
3172   ac_ct_RANLIB=$RANLIB
3173   # Extract the first word of "ranlib", so it can be a program name with args.
3174 set dummy ranlib; ac_word=$2
3175 echo "$as_me:$LINENO: checking for $ac_word" >&5
3176 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3177 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3178   echo $ECHO_N "(cached) $ECHO_C" >&6
3179 else
3180   if test -n "$ac_ct_RANLIB"; then
3181   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3182 else
3183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3184 for as_dir in $PATH
3185 do
3186   IFS=$as_save_IFS
3187   test -z "$as_dir" && as_dir=.
3188   for ac_exec_ext in '' $ac_executable_extensions; do
3189   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3190     ac_cv_prog_ac_ct_RANLIB="ranlib"
3191     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3192     break 2
3193   fi
3194 done
3195 done
3196
3197   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3198 fi
3199 fi
3200 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3201 if test -n "$ac_ct_RANLIB"; then
3202   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3203 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3204 else
3205   echo "$as_me:$LINENO: result: no" >&5
3206 echo "${ECHO_T}no" >&6
3207 fi
3208
3209   RANLIB=$ac_ct_RANLIB
3210 else
3211   RANLIB="$ac_cv_prog_RANLIB"
3212 fi
3213
3214 # Extract the first word of "mv", so it can be a program name with args.
3215 set dummy mv; ac_word=$2
3216 echo "$as_me:$LINENO: checking for $ac_word" >&5
3217 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3218 if test "${ac_cv_path_MV+set}" = set; then
3219   echo $ECHO_N "(cached) $ECHO_C" >&6
3220 else
3221   case $MV in
3222   [\\/]* | ?:[\\/]*)
3223   ac_cv_path_MV="$MV" # Let the user override the test with a path.
3224   ;;
3225   *)
3226   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3227 for as_dir in $PATH
3228 do
3229   IFS=$as_save_IFS
3230   test -z "$as_dir" && as_dir=.
3231   for ac_exec_ext in '' $ac_executable_extensions; do
3232   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3233     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
3234     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3235     break 2
3236   fi
3237 done
3238 done
3239
3240   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
3241   ;;
3242 esac
3243 fi
3244 MV=$ac_cv_path_MV
3245
3246 if test -n "$MV"; then
3247   echo "$as_me:$LINENO: result: $MV" >&5
3248 echo "${ECHO_T}$MV" >&6
3249 else
3250   echo "$as_me:$LINENO: result: no" >&5
3251 echo "${ECHO_T}no" >&6
3252 fi
3253
3254 # Extract the first word of "rm", so it can be a program name with args.
3255 set dummy rm; ac_word=$2
3256 echo "$as_me:$LINENO: checking for $ac_word" >&5
3257 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3258 if test "${ac_cv_path_RM+set}" = set; then
3259   echo $ECHO_N "(cached) $ECHO_C" >&6
3260 else
3261   case $RM in
3262   [\\/]* | ?:[\\/]*)
3263   ac_cv_path_RM="$RM" # Let the user override the test with a path.
3264   ;;
3265   *)
3266   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3267 for as_dir in $PATH
3268 do
3269   IFS=$as_save_IFS
3270   test -z "$as_dir" && as_dir=.
3271   for ac_exec_ext in '' $ac_executable_extensions; do
3272   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3273     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
3274     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3275     break 2
3276   fi
3277 done
3278 done
3279
3280   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
3281   ;;
3282 esac
3283 fi
3284 RM=$ac_cv_path_RM
3285
3286 if test -n "$RM"; then
3287   echo "$as_me:$LINENO: result: $RM" >&5
3288 echo "${ECHO_T}$RM" >&6
3289 else
3290   echo "$as_me:$LINENO: result: no" >&5
3291 echo "${ECHO_T}no" >&6
3292 fi
3293
3294 # Extract the first word of "cp", so it can be a program name with args.
3295 set dummy cp; ac_word=$2
3296 echo "$as_me:$LINENO: checking for $ac_word" >&5
3297 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3298 if test "${ac_cv_path_CP+set}" = set; then
3299   echo $ECHO_N "(cached) $ECHO_C" >&6
3300 else
3301   case $CP in
3302   [\\/]* | ?:[\\/]*)
3303   ac_cv_path_CP="$CP" # Let the user override the test with a path.
3304   ;;
3305   *)
3306   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3307 for as_dir in $PATH
3308 do
3309   IFS=$as_save_IFS
3310   test -z "$as_dir" && as_dir=.
3311   for ac_exec_ext in '' $ac_executable_extensions; do
3312   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3313     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
3314     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3315     break 2
3316   fi
3317 done
3318 done
3319
3320   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
3321   ;;
3322 esac
3323 fi
3324 CP=$ac_cv_path_CP
3325
3326 if test -n "$CP"; then
3327   echo "$as_me:$LINENO: result: $CP" >&5
3328 echo "${ECHO_T}$CP" >&6
3329 else
3330   echo "$as_me:$LINENO: result: no" >&5
3331 echo "${ECHO_T}no" >&6
3332 fi
3333
3334 # Extract the first word of "sed", so it can be a program name with args.
3335 set dummy sed; ac_word=$2
3336 echo "$as_me:$LINENO: checking for $ac_word" >&5
3337 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3338 if test "${ac_cv_path_SED+set}" = set; then
3339   echo $ECHO_N "(cached) $ECHO_C" >&6
3340 else
3341   case $SED in
3342   [\\/]* | ?:[\\/]*)
3343   ac_cv_path_SED="$SED" # Let the user override the test with a path.
3344   ;;
3345   *)
3346   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3347 for as_dir in $PATH
3348 do
3349   IFS=$as_save_IFS
3350   test -z "$as_dir" && as_dir=.
3351   for ac_exec_ext in '' $ac_executable_extensions; do
3352   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3353     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
3354     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3355     break 2
3356   fi
3357 done
3358 done
3359
3360   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
3361   ;;
3362 esac
3363 fi
3364 SED=$ac_cv_path_SED
3365
3366 if test -n "$SED"; then
3367   echo "$as_me:$LINENO: result: $SED" >&5
3368 echo "${ECHO_T}$SED" >&6
3369 else
3370   echo "$as_me:$LINENO: result: no" >&5
3371 echo "${ECHO_T}no" >&6
3372 fi
3373
3374 # Extract the first word of "awk", so it can be a program name with args.
3375 set dummy awk; ac_word=$2
3376 echo "$as_me:$LINENO: checking for $ac_word" >&5
3377 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3378 if test "${ac_cv_path_AWK+set}" = set; then
3379   echo $ECHO_N "(cached) $ECHO_C" >&6
3380 else
3381   case $AWK in
3382   [\\/]* | ?:[\\/]*)
3383   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
3384   ;;
3385   *)
3386   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3387 for as_dir in $PATH
3388 do
3389   IFS=$as_save_IFS
3390   test -z "$as_dir" && as_dir=.
3391   for ac_exec_ext in '' $ac_executable_extensions; do
3392   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3393     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
3394     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3395     break 2
3396   fi
3397 done
3398 done
3399
3400   test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="awk"
3401   ;;
3402 esac
3403 fi
3404 AWK=$ac_cv_path_AWK
3405
3406 if test -n "$AWK"; then
3407   echo "$as_me:$LINENO: result: $AWK" >&5
3408 echo "${ECHO_T}$AWK" >&6
3409 else
3410   echo "$as_me:$LINENO: result: no" >&5
3411 echo "${ECHO_T}no" >&6
3412 fi
3413
3414 # Extract the first word of "echo", so it can be a program name with args.
3415 set dummy echo; ac_word=$2
3416 echo "$as_me:$LINENO: checking for $ac_word" >&5
3417 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3418 if test "${ac_cv_path_ECHO+set}" = set; then
3419   echo $ECHO_N "(cached) $ECHO_C" >&6
3420 else
3421   case $ECHO in
3422   [\\/]* | ?:[\\/]*)
3423   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
3424   ;;
3425   *)
3426   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3427 for as_dir in $PATH
3428 do
3429   IFS=$as_save_IFS
3430   test -z "$as_dir" && as_dir=.
3431   for ac_exec_ext in '' $ac_executable_extensions; do
3432   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3433     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
3434     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3435     break 2
3436   fi
3437 done
3438 done
3439
3440   test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
3441   ;;
3442 esac
3443 fi
3444 ECHO=$ac_cv_path_ECHO
3445
3446 if test -n "$ECHO"; then
3447   echo "$as_me:$LINENO: result: $ECHO" >&5
3448 echo "${ECHO_T}$ECHO" >&6
3449 else
3450   echo "$as_me:$LINENO: result: no" >&5
3451 echo "${ECHO_T}no" >&6
3452 fi
3453
3454 # Extract the first word of "cmp", so it can be a program name with args.
3455 set dummy cmp; ac_word=$2
3456 echo "$as_me:$LINENO: checking for $ac_word" >&5
3457 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3458 if test "${ac_cv_path_CMP+set}" = set; then
3459   echo $ECHO_N "(cached) $ECHO_C" >&6
3460 else
3461   case $CMP in
3462   [\\/]* | ?:[\\/]*)
3463   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
3464   ;;
3465   *)
3466   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3467 for as_dir in $PATH
3468 do
3469   IFS=$as_save_IFS
3470   test -z "$as_dir" && as_dir=.
3471   for ac_exec_ext in '' $ac_executable_extensions; do
3472   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3473     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
3474     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3475     break 2
3476   fi
3477 done
3478 done
3479
3480   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
3481   ;;
3482 esac
3483 fi
3484 CMP=$ac_cv_path_CMP
3485
3486 if test -n "$CMP"; then
3487   echo "$as_me:$LINENO: result: $CMP" >&5
3488 echo "${ECHO_T}$CMP" >&6
3489 else
3490   echo "$as_me:$LINENO: result: no" >&5
3491 echo "${ECHO_T}no" >&6
3492 fi
3493
3494 # Extract the first word of "tbl", so it can be a program name with args.
3495 set dummy tbl; ac_word=$2
3496 echo "$as_me:$LINENO: checking for $ac_word" >&5
3497 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3498 if test "${ac_cv_path_TBL+set}" = set; then
3499   echo $ECHO_N "(cached) $ECHO_C" >&6
3500 else
3501   case $TBL in
3502   [\\/]* | ?:[\\/]*)
3503   ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
3504   ;;
3505   *)
3506   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3507 for as_dir in $PATH
3508 do
3509   IFS=$as_save_IFS
3510   test -z "$as_dir" && as_dir=.
3511   for ac_exec_ext in '' $ac_executable_extensions; do
3512   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3513     ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
3514     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3515     break 2
3516   fi
3517 done
3518 done
3519
3520   test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
3521   ;;
3522 esac
3523 fi
3524 TBL=$ac_cv_path_TBL
3525
3526 if test -n "$TBL"; then
3527   echo "$as_me:$LINENO: result: $TBL" >&5
3528 echo "${ECHO_T}$TBL" >&6
3529 else
3530   echo "$as_me:$LINENO: result: no" >&5
3531 echo "${ECHO_T}no" >&6
3532 fi
3533
3534 # Extract the first word of "ar", so it can be a program name with args.
3535 set dummy ar; ac_word=$2
3536 echo "$as_me:$LINENO: checking for $ac_word" >&5
3537 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3538 if test "${ac_cv_path_AR+set}" = set; then
3539   echo $ECHO_N "(cached) $ECHO_C" >&6
3540 else
3541   case $AR in
3542   [\\/]* | ?:[\\/]*)
3543   ac_cv_path_AR="$AR" # Let the user override the test with a path.
3544   ;;
3545   *)
3546   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3547 for as_dir in $PATH
3548 do
3549   IFS=$as_save_IFS
3550   test -z "$as_dir" && as_dir=.
3551   for ac_exec_ext in '' $ac_executable_extensions; do
3552   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3553     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3554     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3555     break 2
3556   fi
3557 done
3558 done
3559
3560   test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
3561   ;;
3562 esac
3563 fi
3564 AR=$ac_cv_path_AR
3565
3566 if test -n "$AR"; then
3567   echo "$as_me:$LINENO: result: $AR" >&5
3568 echo "${ECHO_T}$AR" >&6
3569 else
3570   echo "$as_me:$LINENO: result: no" >&5
3571 echo "${ECHO_T}no" >&6
3572 fi
3573
3574 # Extract the first word of "ranlib", so it can be a program name with args.
3575 set dummy ranlib; ac_word=$2
3576 echo "$as_me:$LINENO: checking for $ac_word" >&5
3577 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3578 if test "${ac_cv_path_RANLIB+set}" = set; then
3579   echo $ECHO_N "(cached) $ECHO_C" >&6
3580 else
3581   case $RANLIB in
3582   [\\/]* | ?:[\\/]*)
3583   ac_cv_path_RANLIB="$RANLIB" # Let the user override the test with a path.
3584   ;;
3585   *)
3586   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3587 for as_dir in $PATH
3588 do
3589   IFS=$as_save_IFS
3590   test -z "$as_dir" && as_dir=.
3591   for ac_exec_ext in '' $ac_executable_extensions; do
3592   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3593     ac_cv_path_RANLIB="$as_dir/$ac_word$ac_exec_ext"
3594     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3595     break 2
3596   fi
3597 done
3598 done
3599
3600   test -z "$ac_cv_path_RANLIB" && ac_cv_path_RANLIB="ranlib"
3601   ;;
3602 esac
3603 fi
3604 RANLIB=$ac_cv_path_RANLIB
3605
3606 if test -n "$RANLIB"; then
3607   echo "$as_me:$LINENO: result: $RANLIB" >&5
3608 echo "${ECHO_T}$RANLIB" >&6
3609 else
3610   echo "$as_me:$LINENO: result: no" >&5
3611 echo "${ECHO_T}no" >&6
3612 fi
3613
3614 # Extract the first word of "openssl", so it can be a program name with args.
3615 set dummy openssl; ac_word=$2
3616 echo "$as_me:$LINENO: checking for $ac_word" >&5
3617 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3618 if test "${ac_cv_path_OPENSSL+set}" = set; then
3619   echo $ECHO_N "(cached) $ECHO_C" >&6
3620 else
3621   case $OPENSSL in
3622   [\\/]* | ?:[\\/]*)
3623   ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
3624   ;;
3625   *)
3626   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3627 for as_dir in $PATH
3628 do
3629   IFS=$as_save_IFS
3630   test -z "$as_dir" && as_dir=.
3631   for ac_exec_ext in '' $ac_executable_extensions; do
3632   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3633     ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
3634     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3635     break 2
3636   fi
3637 done
3638 done
3639
3640   test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
3641   ;;
3642 esac
3643 fi
3644 OPENSSL=$ac_cv_path_OPENSSL
3645
3646 if test -n "$OPENSSL"; then
3647   echo "$as_me:$LINENO: result: $OPENSSL" >&5
3648 echo "${ECHO_T}$OPENSSL" >&6
3649 else
3650   echo "$as_me:$LINENO: result: no" >&5
3651 echo "${ECHO_T}no" >&6
3652 fi
3653
3654 # Extract the first word of "mtx", so it can be a program name with args.
3655 set dummy mtx; ac_word=$2
3656 echo "$as_me:$LINENO: checking for $ac_word" >&5
3657 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3658 if test "${ac_cv_path_MTX+set}" = set; then
3659   echo $ECHO_N "(cached) $ECHO_C" >&6
3660 else
3661   case $MTX in
3662   [\\/]* | ?:[\\/]*)
3663   ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
3664   ;;
3665   *)
3666   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3667 for as_dir in $PATH
3668 do
3669   IFS=$as_save_IFS
3670   test -z "$as_dir" && as_dir=.
3671   for ac_exec_ext in '' $ac_executable_extensions; do
3672   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3673     ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
3674     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3675     break 2
3676   fi
3677 done
3678 done
3679
3680   test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
3681   ;;
3682 esac
3683 fi
3684 MTX=$ac_cv_path_MTX
3685
3686 if test -n "$MTX"; then
3687   echo "$as_me:$LINENO: result: $MTX" >&5
3688 echo "${ECHO_T}$MTX" >&6
3689 else
3690   echo "$as_me:$LINENO: result: no" >&5
3691 echo "${ECHO_T}no" >&6
3692 fi
3693
3694 # Extract the first word of "pkg-config", so it can be a program name with args.
3695 set dummy pkg-config; ac_word=$2
3696 echo "$as_me:$LINENO: checking for $ac_word" >&5
3697 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3698 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
3699   echo $ECHO_N "(cached) $ECHO_C" >&6
3700 else
3701   case $PKGCONFIG in
3702   [\\/]* | ?:[\\/]*)
3703   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
3704   ;;
3705   *)
3706   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3707 for as_dir in $PATH
3708 do
3709   IFS=$as_save_IFS
3710   test -z "$as_dir" && as_dir=.
3711   for ac_exec_ext in '' $ac_executable_extensions; do
3712   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3713     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
3714     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3715     break 2
3716   fi
3717 done
3718 done
3719
3720   test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
3721   ;;
3722 esac
3723 fi
3724 PKGCONFIG=$ac_cv_path_PKGCONFIG
3725
3726 if test -n "$PKGCONFIG"; then
3727   echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
3728 echo "${ECHO_T}$PKGCONFIG" >&6
3729 else
3730   echo "$as_me:$LINENO: result: no" >&5
3731 echo "${ECHO_T}no" >&6
3732 fi
3733
3734 # Extract the first word of "wx-config", so it can be a program name with args.
3735 set dummy wx-config; ac_word=$2
3736 echo "$as_me:$LINENO: checking for $ac_word" >&5
3737 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3738 if test "${ac_cv_path_WXCONFIG+set}" = set; then
3739   echo $ECHO_N "(cached) $ECHO_C" >&6
3740 else
3741   case $WXCONFIG in
3742   [\\/]* | ?:[\\/]*)
3743   ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
3744   ;;
3745   *)
3746   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3747 for as_dir in $PATH
3748 do
3749   IFS=$as_save_IFS
3750   test -z "$as_dir" && as_dir=.
3751   for ac_exec_ext in '' $ac_executable_extensions; do
3752   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3753     ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
3754     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3755     break 2
3756   fi
3757 done
3758 done
3759
3760   test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="wx-config"
3761   ;;
3762 esac
3763 fi
3764 WXCONFIG=$ac_cv_path_WXCONFIG
3765
3766 if test -n "$WXCONFIG"; then
3767   echo "$as_me:$LINENO: result: $WXCONFIG" >&5
3768 echo "${ECHO_T}$WXCONFIG" >&6
3769 else
3770   echo "$as_me:$LINENO: result: no" >&5
3771 echo "${ECHO_T}no" >&6
3772 fi
3773
3774
3775 test -n "$ARFLAG" || ARFLAGS="cr"
3776
3777
3778 MAKE_SHELL=/bin/sh
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788 # Make sure we can run config.sub.
3789 $ac_config_sub sun4 >/dev/null 2>&1 ||
3790   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3791 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3792    { (exit 1); exit 1; }; }
3793
3794 echo "$as_me:$LINENO: checking build system type" >&5
3795 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3796 if test "${ac_cv_build+set}" = set; then
3797   echo $ECHO_N "(cached) $ECHO_C" >&6
3798 else
3799   ac_cv_build_alias=$build_alias
3800 test -z "$ac_cv_build_alias" &&
3801   ac_cv_build_alias=`$ac_config_guess`
3802 test -z "$ac_cv_build_alias" &&
3803   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3804 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3805    { (exit 1); exit 1; }; }
3806 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3807   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3808 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3809    { (exit 1); exit 1; }; }
3810
3811 fi
3812 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3813 echo "${ECHO_T}$ac_cv_build" >&6
3814 build=$ac_cv_build
3815 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3816 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3817 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3818
3819
3820 echo "$as_me:$LINENO: checking for Operating System" >&5
3821 echo $ECHO_N "checking for Operating System... $ECHO_C" >&6
3822 echo "$as_me:$LINENO: checking host system type" >&5
3823 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3824 if test "${ac_cv_host+set}" = set; then
3825   echo $ECHO_N "(cached) $ECHO_C" >&6
3826 else
3827   ac_cv_host_alias=$host_alias
3828 test -z "$ac_cv_host_alias" &&
3829   ac_cv_host_alias=$ac_cv_build_alias
3830 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3831   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3832 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3833    { (exit 1); exit 1; }; }
3834
3835 fi
3836 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3837 echo "${ECHO_T}$ac_cv_host" >&6
3838 host=$ac_cv_host
3839 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3840 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3841 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3842
3843
3844 case $host_os in
3845   *cygwin* ) CYGWIN=yes;;
3846          * ) CYGWIN=no;;
3847 esac
3848
3849 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
3850 then
3851
3852
3853 if $TRUEPRG; then
3854   HAVE_SUN_OS_TRUE=
3855   HAVE_SUN_OS_FALSE='#'
3856 else
3857   HAVE_SUN_OS_TRUE='#'
3858   HAVE_SUN_OS_FALSE=
3859 fi
3860         cat >>confdefs.h <<\_ACEOF
3861 #define HAVE_SUN_OS 1
3862 _ACEOF
3863
3864 else
3865
3866
3867 if $FALSEPRG; then
3868   HAVE_SUN_OS_TRUE=
3869   HAVE_SUN_OS_FALSE='#'
3870 else
3871   HAVE_SUN_OS_TRUE='#'
3872   HAVE_SUN_OS_FALSE=
3873 fi
3874 fi
3875
3876 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
3877 then
3878
3879
3880 if $TRUEPRG; then
3881   HAVE_OSF1_OS_TRUE=
3882   HAVE_OSF1_OS_FALSE='#'
3883 else
3884   HAVE_OSF1_OS_TRUE='#'
3885   HAVE_OSF1_OS_FALSE=
3886 fi
3887         cat >>confdefs.h <<\_ACEOF
3888 #define HAVE_OSF1_OS 1
3889 _ACEOF
3890
3891 else
3892
3893
3894 if $FALSEPRG; then
3895   HAVE_OSF1_OS_TRUE=
3896   HAVE_OSF1_OS_FALSE='#'
3897 else
3898   HAVE_OSF1_OS_TRUE='#'
3899   HAVE_OSF1_OS_FALSE=
3900 fi
3901 fi
3902
3903 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
3904 then
3905
3906
3907 if $TRUEPRG; then
3908   HAVE_AIX_OS_TRUE=
3909   HAVE_AIX_OS_FALSE='#'
3910 else
3911   HAVE_AIX_OS_TRUE='#'
3912   HAVE_AIX_OS_FALSE=
3913 fi
3914         cat >>confdefs.h <<\_ACEOF
3915 #define HAVE_AIX_OS 1
3916 _ACEOF
3917
3918 else
3919
3920
3921 if $FALSEPRG; then
3922   HAVE_AIX_OS_TRUE=
3923   HAVE_AIX_OS_FALSE='#'
3924 else
3925   HAVE_AIX_OS_TRUE='#'
3926   HAVE_AIX_OS_FALSE=
3927 fi
3928 fi
3929
3930 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
3931 then
3932
3933
3934 if $TRUEPRG; then
3935   HAVE_HPUX_OS_TRUE=
3936   HAVE_HPUX_OS_FALSE='#'
3937 else
3938   HAVE_HPUX_OS_TRUE='#'
3939   HAVE_HPUX_OS_FALSE=
3940 fi
3941         cat >>confdefs.h <<\_ACEOF
3942 #define HAVE_HPUX_OS 1
3943 _ACEOF
3944
3945 else
3946
3947
3948 if $FALSEPRG; then
3949   HAVE_HPUX_OS_TRUE=
3950   HAVE_HPUX_OS_FALSE='#'
3951 else
3952   HAVE_HPUX_OS_TRUE='#'
3953   HAVE_HPUX_OS_FALSE=
3954 fi
3955 fi
3956
3957 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
3958 then
3959
3960
3961 if $TRUEPRG; then
3962   HAVE_LINUX_OS_TRUE=
3963   HAVE_LINUX_OS_FALSE='#'
3964 else
3965   HAVE_LINUX_OS_TRUE='#'
3966   HAVE_LINUX_OS_FALSE=
3967 fi
3968         cat >>confdefs.h <<\_ACEOF
3969 #define HAVE_LINUX_OS 1
3970 _ACEOF
3971
3972 else
3973
3974
3975 if $FALSEPRG; then
3976   HAVE_LINUX_OS_TRUE=
3977   HAVE_LINUX_OS_FALSE='#'
3978 else
3979   HAVE_LINUX_OS_TRUE='#'
3980   HAVE_LINUX_OS_FALSE=
3981 fi
3982 fi
3983
3984 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
3985 then
3986
3987
3988 if $TRUEPRG; then
3989   HAVE_FREEBSD_OS_TRUE=
3990   HAVE_FREEBSD_OS_FALSE='#'
3991 else
3992   HAVE_FREEBSD_OS_TRUE='#'
3993   HAVE_FREEBSD_OS_FALSE=
3994 fi
3995         cat >>confdefs.h <<\_ACEOF
3996 #define HAVE_FREEBSD_OS 1
3997 _ACEOF
3998
3999 else
4000
4001
4002 if $FALSEPRG; then
4003   HAVE_FREEBSD_OS_TRUE=
4004   HAVE_FREEBSD_OS_FALSE='#'
4005 else
4006   HAVE_FREEBSD_OS_TRUE='#'
4007   HAVE_FREEBSD_OS_FALSE=
4008 fi
4009 fi
4010
4011 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4012 then
4013
4014
4015 if $TRUEPRG; then
4016   HAVE_NETBSD_OS_TRUE=
4017   HAVE_NETBSD_OS_FALSE='#'
4018 else
4019   HAVE_NETBSD_OS_TRUE='#'
4020   HAVE_NETBSD_OS_FALSE=
4021 fi
4022         cat >>confdefs.h <<\_ACEOF
4023 #define HAVE_NETBSD_OS 1
4024 _ACEOF
4025
4026 else
4027
4028
4029 if $FALSEPRG; then
4030   HAVE_NETBSD_OS_TRUE=
4031   HAVE_NETBSD_OS_FALSE='#'
4032 else
4033   HAVE_NETBSD_OS_TRUE='#'
4034   HAVE_NETBSD_OS_FALSE=
4035 fi
4036 fi
4037
4038 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4039 then
4040
4041
4042 if $TRUEPRG; then
4043   HAVE_OPENBSD_OS_TRUE=
4044   HAVE_OPENBSD_OS_FALSE='#'
4045 else
4046   HAVE_OPENBSD_OS_TRUE='#'
4047   HAVE_OPENBSD_OS_FALSE=
4048 fi
4049         cat >>confdefs.h <<\_ACEOF
4050 #define HAVE_OPENBSD_OS 1
4051 _ACEOF
4052
4053 else
4054
4055
4056 if $FALSEPRG; then
4057   HAVE_OPENBSD_OS_TRUE=
4058   HAVE_OPENBSD_OS_FALSE='#'
4059 else
4060   HAVE_OPENBSD_OS_TRUE='#'
4061   HAVE_OPENBSD_OS_FALSE=
4062 fi
4063 fi
4064
4065 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4066 then
4067
4068
4069 if $TRUEPRG; then
4070   HAVE_BSDI_OS_TRUE=
4071   HAVE_BSDI_OS_FALSE='#'
4072 else
4073   HAVE_BSDI_OS_TRUE='#'
4074   HAVE_BSDI_OS_FALSE=
4075 fi
4076         cat >>confdefs.h <<\_ACEOF
4077 #define HAVE_BSDI_OS 1
4078 _ACEOF
4079
4080 else
4081
4082
4083 if $FALSEPRG; then
4084   HAVE_BSDI_OS_TRUE=
4085   HAVE_BSDI_OS_FALSE='#'
4086 else
4087   HAVE_BSDI_OS_TRUE='#'
4088   HAVE_BSDI_OS_FALSE=
4089 fi
4090 fi
4091
4092 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
4093 then
4094
4095
4096 if $TRUEPRG; then
4097   HAVE_SGI_OS_TRUE=
4098   HAVE_SGI_OS_FALSE='#'
4099 else
4100   HAVE_SGI_OS_TRUE='#'
4101   HAVE_SGI_OS_FALSE=
4102 fi
4103         cat >>confdefs.h <<\_ACEOF
4104 #define HAVE_SGI_OS 1
4105 _ACEOF
4106
4107 else
4108
4109
4110 if $FALSEPRG; then
4111   HAVE_SGI_OS_TRUE=
4112   HAVE_SGI_OS_FALSE='#'
4113 else
4114   HAVE_SGI_OS_TRUE='#'
4115   HAVE_SGI_OS_FALSE=
4116 fi
4117 fi
4118
4119 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4120 then
4121
4122
4123 if $TRUEPRG; then
4124   HAVE_IRIX_OS_TRUE=
4125   HAVE_IRIX_OS_FALSE='#'
4126 else
4127   HAVE_IRIX_OS_TRUE='#'
4128   HAVE_IRIX_OS_FALSE=
4129 fi
4130         cat >>confdefs.h <<\_ACEOF
4131 #define HAVE_IRIX_OS 1
4132 _ACEOF
4133
4134 else
4135
4136
4137 if $FALSEPRG; then
4138   HAVE_IRIX_OS_TRUE=
4139   HAVE_IRIX_OS_FALSE='#'
4140 else
4141   HAVE_IRIX_OS_TRUE='#'
4142   HAVE_IRIX_OS_FALSE=
4143 fi
4144 fi
4145
4146 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4147 then
4148
4149
4150 if $TRUEPRG; then
4151   HAVE_DARWIN_OS_TRUE=
4152   HAVE_DARWIN_OS_FALSE='#'
4153 else
4154   HAVE_DARWIN_OS_TRUE='#'
4155   HAVE_DARWIN_OS_FALSE=
4156 fi
4157     cat >>confdefs.h <<\_ACEOF
4158 #define HAVE_DARWIN_OS 1
4159 _ACEOF
4160
4161 else
4162
4163
4164 if $FALSEPRG; then
4165   HAVE_DARWIN_OS_TRUE=
4166   HAVE_DARWIN_OS_FALSE='#'
4167 else
4168   HAVE_DARWIN_OS_TRUE='#'
4169   HAVE_DARWIN_OS_FALSE=
4170 fi
4171 fi
4172
4173 echo "$as_me:$LINENO: result: \" \"" >&5
4174 echo "${ECHO_T}\" \"" >&6
4175
4176
4177 # -----------------------------------------------------------
4178 # ----------------------------------------------------------
4179 echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
4180 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6
4181 if test "x$DISTNAME" != "x"
4182 then
4183         echo "distname set to $DISTNAME"
4184 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4185 then
4186         DISTNAME=alpha
4187 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4188 then
4189         DISTNAME=aix
4190 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4191 then
4192         DISTNAME=hpux
4193 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4194 then
4195         DISTNAME=solaris
4196 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4197 then
4198         DISTNAME=freebsd
4199 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4200 then
4201         DISTNAME=netbsd
4202 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4203 then
4204         DISTNAME=openbsd
4205 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4206 then
4207         DISTNAME=irix
4208 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4209 then
4210         DISTNAME=bsdi
4211 elif test -f /etc/SuSE-release
4212 then
4213         DISTNAME=suse
4214 elif test -d /etc/SuSEconfig
4215 then
4216         DISTNAME=suse5
4217 elif test -f /etc/mandrake-release
4218 then
4219         DISTNAME=mandrake
4220 elif test -f /etc/redhat-release
4221 then
4222         DISTNAME=redhat
4223 elif test -f /etc/gentoo-release
4224 then
4225         DISTNAME=gentoo
4226 elif test -f /etc/debian_version
4227 then
4228         DISTNAME=debian
4229 elif test -f /etc/slackware-version
4230 then
4231         DISTNAME=slackware
4232 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4233 then
4234     DISTNAME=darwin
4235 elif test -f /etc/engarde-version
4236 then
4237         DISTNAME=engarde
4238 elif test "$CYGWIN" = yes
4239 then
4240         DISTNAME=cygwin
4241         cat >>confdefs.h <<\_ACEOF
4242 #define HAVE_CYGWIN 1
4243 _ACEOF
4244
4245 else
4246         DISTNAME=unknown
4247 fi
4248 echo "$as_me:$LINENO: result: \" \"" >&5
4249 echo "${ECHO_T}\" \"" >&6
4250
4251
4252 # -----------------------------------------------------------
4253 # ----------------------------------------------------------
4254
4255
4256
4257 if false; then
4258   INSIDE_GNOME_COMMON_TRUE=
4259   INSIDE_GNOME_COMMON_FALSE='#'
4260 else
4261   INSIDE_GNOME_COMMON_TRUE='#'
4262   INSIDE_GNOME_COMMON_FALSE=
4263 fi
4264
4265         test -n "$ACLOCAL_FLAGS" && ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
4266
4267         for k in gnome-macros ; do ACLOCAL="$ACLOCAL -I $k" ; done
4268
4269
4270 # ------------------------------------------------------------------
4271 #  If the user has not set --prefix, we set our default to nothing.
4272 #  In this case, if the user has not set --sysconfdir, we set it
4273 #  to the package default of /etc/bacula.  If either --prefix or
4274 #  --sysconfdir is set, we leave sysconfdir alone except to eval it.
4275 # ------------------------------------------------------------------
4276 if test x${prefix} = xNONE ; then
4277     if test `eval echo ${sysconfdir}` = NONE/etc ; then
4278         sysconfdir=/etc/bacula
4279     fi
4280     prefix=
4281 fi
4282 sysconfdir=`eval echo ${sysconfdir}`
4283
4284 # -------------------------------------------------------------------------
4285 #  If the user has not set --exec-prefix, we default to ${prefix}
4286 # -------------------------------------------------------------------------
4287 if test x${exec_prefix} = xNONE ; then
4288     exec_prefix=${prefix}
4289 fi
4290
4291 # ------------------------------------------------------------------
4292 # If the user has not set --sbindir, we set our default as /sbin
4293 # ------------------------------------------------------------------
4294 if test x$sbindir = x'${exec_prefix}/sbin' ; then
4295     sbindir=${exec_prefix}/sbin
4296 fi
4297 sbindir=`eval echo ${sbindir}`
4298
4299 # ------------------------------------------------------------------
4300 # All list of languages for which a translation exist. Each
4301 #  language is separated by a space.
4302 # ------------------------------------------------------------------
4303 ALL_LINGUAS=""
4304
4305 for ac_prog in msgfmt
4306 do
4307   # Extract the first word of "$ac_prog", so it can be a program name with args.
4308 set dummy $ac_prog; ac_word=$2
4309 echo "$as_me:$LINENO: checking for $ac_word" >&5
4310 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4311 if test "${ac_cv_path_MSGFMT+set}" = set; then
4312   echo $ECHO_N "(cached) $ECHO_C" >&6
4313 else
4314   case $MSGFMT in
4315   [\\/]* | ?:[\\/]*)
4316   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4317   ;;
4318   *)
4319   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4320 for as_dir in $PATH
4321 do
4322   IFS=$as_save_IFS
4323   test -z "$as_dir" && as_dir=.
4324   for ac_exec_ext in '' $ac_executable_extensions; do
4325   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4326     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
4327     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4328     break 2
4329   fi
4330 done
4331 done
4332
4333   ;;
4334 esac
4335 fi
4336 MSGFMT=$ac_cv_path_MSGFMT
4337
4338 if test -n "$MSGFMT"; then
4339   echo "$as_me:$LINENO: result: $MSGFMT" >&5
4340 echo "${ECHO_T}$MSGFMT" >&6
4341 else
4342   echo "$as_me:$LINENO: result: no" >&5
4343 echo "${ECHO_T}no" >&6
4344 fi
4345
4346   test -n "$MSGFMT" && break
4347 done
4348 test -n "$MSGFMT" || MSGFMT="no"
4349
4350 if test "$MSGFMT" = "no"
4351 then
4352    echo 'msgfmt program not found, disabling NLS !'
4353    USE_NLS=no
4354    USE_INCLUDED_LIBINTL=no
4355 #else
4356 #   AM_GNU_GETTEXT
4357 fi
4358
4359
4360 support_mysql=no
4361 support_sqlite=no
4362 support_postgresql=no
4363 support_smartalloc=yes
4364 support_readline=yes
4365 support_conio=yes
4366 support_gnome=no
4367 support_wx_console=no
4368 gnome_version=
4369 support_static_tools=no
4370 support_static_fd=no
4371 support_static_sd=no
4372 support_static_dir=no
4373 support_static_cons=no
4374 build_client_only=no
4375 cats=
4376 db_name=Internal
4377 DB_NAME=bdb
4378
4379
4380 # -------------------------------------------
4381 # gnome (default off)
4382 # -------------------------------------------
4383 # Check whether --enable-gnome or --disable-gnome was given.
4384 if test "${enable_gnome+set}" = set; then
4385   enableval="$enable_gnome"
4386   if test x$enableval = xyes; then
4387     support_gnome=yes
4388   fi
4389 fi;
4390
4391 GNOME_DIR=
4392 if test x$support_gnome = xyes; then
4393   abc=`$PKGCONFIG --exists libgnomeui-2.0`
4394   pkg=$?
4395   if test $pkg = 0; then
4396      GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
4397      GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
4398      GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
4399      GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
4400
4401
4402
4403
4404      GNOME_DIR=src/gnome2-console
4405      gnome_version="Version 2.x"
4406   else
4407
4408
4409
4410
4411
4412
4413
4414
4415
4416
4417
4418 # Check whether --with-gnome-includes or --without-gnome-includes was given.
4419 if test "${with_gnome_includes+set}" = set; then
4420   withval="$with_gnome_includes"
4421
4422         CFLAGS="$CFLAGS -I$withval"
4423
4424 fi;
4425
4426
4427 # Check whether --with-gnome-libs or --without-gnome-libs was given.
4428 if test "${with_gnome_libs+set}" = set; then
4429   withval="$with_gnome_libs"
4430
4431         LDFLAGS="$LDFLAGS -L$withval"
4432         gnome_prefix=$withval
4433
4434 fi;
4435
4436
4437 # Check whether --with-gnome or --without-gnome was given.
4438 if test "${with_gnome+set}" = set; then
4439   withval="$with_gnome"
4440   if test x$withval = xyes; then
4441                         want_gnome=yes
4442                                                                         :
4443                 else
4444                         if test "x$withval" = xno; then
4445                                 want_gnome=no
4446                         else
4447                                 want_gnome=yes
4448                                 LDFLAGS="$LDFLAGS -L$withval/lib"
4449                                 CFLAGS="$CFLAGS -I$withval/include"
4450                                 gnome_prefix=$withval/lib
4451                         fi
4452                 fi
4453 else
4454   want_gnome=yes
4455 fi;
4456
4457         if test "x$want_gnome" = xyes; then
4458
4459             # Extract the first word of "gnome-config", so it can be a program name with args.
4460 set dummy gnome-config; ac_word=$2
4461 echo "$as_me:$LINENO: checking for $ac_word" >&5
4462 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4463 if test "${ac_cv_path_GNOME_CONFIG+set}" = set; then
4464   echo $ECHO_N "(cached) $ECHO_C" >&6
4465 else
4466   case $GNOME_CONFIG in
4467   [\\/]* | ?:[\\/]*)
4468   ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
4469   ;;
4470   *)
4471   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4472 for as_dir in $PATH
4473 do
4474   IFS=$as_save_IFS
4475   test -z "$as_dir" && as_dir=.
4476   for ac_exec_ext in '' $ac_executable_extensions; do
4477   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4478     ac_cv_path_GNOME_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4479     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4480     break 2
4481   fi
4482 done
4483 done
4484
4485   test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
4486   ;;
4487 esac
4488 fi
4489 GNOME_CONFIG=$ac_cv_path_GNOME_CONFIG
4490
4491 if test -n "$GNOME_CONFIG"; then
4492   echo "$as_me:$LINENO: result: $GNOME_CONFIG" >&5
4493 echo "${ECHO_T}$GNOME_CONFIG" >&6
4494 else
4495   echo "$as_me:$LINENO: result: no" >&5
4496 echo "${ECHO_T}no" >&6
4497 fi
4498
4499             if test "$GNOME_CONFIG" = "no"; then
4500               no_gnome_config="yes"
4501             else
4502               echo "$as_me:$LINENO: checking if $GNOME_CONFIG works" >&5
4503 echo $ECHO_N "checking if $GNOME_CONFIG works... $ECHO_C" >&6
4504               if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then
4505                 echo "$as_me:$LINENO: result: yes" >&5
4506 echo "${ECHO_T}yes" >&6
4507
4508
4509         # Extract the first word of "orbit-config", so it can be a program name with args.
4510 set dummy orbit-config; ac_word=$2
4511 echo "$as_me:$LINENO: checking for $ac_word" >&5
4512 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4513 if test "${ac_cv_path_ORBIT_CONFIG+set}" = set; then
4514   echo $ECHO_N "(cached) $ECHO_C" >&6
4515 else
4516   case $ORBIT_CONFIG in
4517   [\\/]* | ?:[\\/]*)
4518   ac_cv_path_ORBIT_CONFIG="$ORBIT_CONFIG" # Let the user override the test with a path.
4519   ;;
4520   *)
4521   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4522 for as_dir in $PATH
4523 do
4524   IFS=$as_save_IFS
4525   test -z "$as_dir" && as_dir=.
4526   for ac_exec_ext in '' $ac_executable_extensions; do
4527   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4528     ac_cv_path_ORBIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4529     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4530     break 2
4531   fi
4532 done
4533 done
4534
4535   test -z "$ac_cv_path_ORBIT_CONFIG" && ac_cv_path_ORBIT_CONFIG="no"
4536   ;;
4537 esac
4538 fi
4539 ORBIT_CONFIG=$ac_cv_path_ORBIT_CONFIG
4540
4541 if test -n "$ORBIT_CONFIG"; then
4542   echo "$as_me:$LINENO: result: $ORBIT_CONFIG" >&5
4543 echo "${ECHO_T}$ORBIT_CONFIG" >&6
4544 else
4545   echo "$as_me:$LINENO: result: no" >&5
4546 echo "${ECHO_T}no" >&6
4547 fi
4548
4549         # Extract the first word of "orbit-idl", so it can be a program name with args.
4550 set dummy orbit-idl; ac_word=$2
4551 echo "$as_me:$LINENO: checking for $ac_word" >&5
4552 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4553 if test "${ac_cv_path_ORBIT_IDL+set}" = set; then
4554   echo $ECHO_N "(cached) $ECHO_C" >&6
4555 else
4556   case $ORBIT_IDL in
4557   [\\/]* | ?:[\\/]*)
4558   ac_cv_path_ORBIT_IDL="$ORBIT_IDL" # Let the user override the test with a path.
4559   ;;
4560   *)
4561   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4562 for as_dir in $PATH
4563 do
4564   IFS=$as_save_IFS
4565   test -z "$as_dir" && as_dir=.
4566   for ac_exec_ext in '' $ac_executable_extensions; do
4567   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4568     ac_cv_path_ORBIT_IDL="$as_dir/$ac_word$ac_exec_ext"
4569     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4570     break 2
4571   fi
4572 done
4573 done
4574
4575   test -z "$ac_cv_path_ORBIT_IDL" && ac_cv_path_ORBIT_IDL="no"
4576   ;;
4577 esac
4578 fi
4579 ORBIT_IDL=$ac_cv_path_ORBIT_IDL
4580
4581 if test -n "$ORBIT_IDL"; then
4582   echo "$as_me:$LINENO: result: $ORBIT_IDL" >&5
4583 echo "${ECHO_T}$ORBIT_IDL" >&6
4584 else
4585   echo "$as_me:$LINENO: result: no" >&5
4586 echo "${ECHO_T}no" >&6
4587 fi
4588
4589         echo "$as_me:$LINENO: checking for working ORBit environment" >&5
4590 echo $ECHO_N "checking for working ORBit environment... $ECHO_C" >&6
4591 if test "${gnome_cv_orbit_found+set}" = set; then
4592   echo $ECHO_N "(cached) $ECHO_C" >&6
4593 else
4594
4595                 if test x$ORBIT_CONFIG = xno -o x$ORBIT_IDL = xno; then
4596                         gnome_cv_orbit_found=no
4597                 else
4598                         gnome_cv_orbit_found=yes
4599                 fi
4600
4601 fi
4602 echo "$as_me:$LINENO: result: $gnome_cv_orbit_found" >&5
4603 echo "${ECHO_T}$gnome_cv_orbit_found" >&6
4604
4605
4606 if test x$gnome_cv_orbit_found = xyes; then
4607   HAVE_ORBIT_TRUE=
4608   HAVE_ORBIT_FALSE='#'
4609 else
4610   HAVE_ORBIT_TRUE='#'
4611   HAVE_ORBIT_FALSE=
4612 fi
4613         if test x$gnome_cv_orbit_found = xyes; then
4614
4615                 ORBIT_CFLAGS=`orbit-config --cflags client server`
4616                 ORBIT_LIBS=`orbit-config --use-service=name --libs client server`
4617
4618
4619         else
4620                 if test xfail = xfailure; then
4621                         { { echo "$as_me:$LINENO: error: ORBit not installed or installation problem" >&5
4622 echo "$as_me: error: ORBit not installed or installation problem" >&2;}
4623    { (exit 1); exit 1; }; }
4624                 fi
4625         fi
4626
4627         echo "$as_me:$LINENO: checking for gnorba libraries" >&5
4628 echo $ECHO_N "checking for gnorba libraries... $ECHO_C" >&6
4629 if test "${gnome_cv_gnorba_found+set}" = set; then
4630   echo $ECHO_N "(cached) $ECHO_C" >&6
4631 else
4632
4633                 gnome_cv_gnorba_found=no
4634                 if test x$gnome_cv_orbit_found = xyes; then
4635                         GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
4636                         GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
4637                         if test -n "$GNORBA_LIBS"; then
4638                                 gnome_cv_gnorba_found=yes
4639                         fi
4640                 fi
4641
4642 fi
4643 echo "$as_me:$LINENO: result: $gnome_cv_gnorba_found" >&5
4644 echo "${ECHO_T}$gnome_cv_gnorba_found" >&6
4645
4646
4647 if test x$gnome_cv_gnorba_found = xyes; then
4648   HAVE_GNORBA_TRUE=
4649   HAVE_GNORBA_FALSE='#'
4650 else
4651   HAVE_GNORBA_TRUE='#'
4652   HAVE_GNORBA_FALSE=
4653 fi
4654         if test x$gnome_cv_orbit_found = xyes; then
4655
4656                 GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
4657                 GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
4658
4659
4660         else
4661                 if test xfail = xfailure; then
4662                         { { echo "$as_me:$LINENO: error: gnorba library not installed or installation problem" >&5
4663 echo "$as_me: error: gnorba library not installed or installation problem" >&2;}
4664    { (exit 1); exit 1; }; }
4665                 fi
4666         fi
4667
4668                 GNOME_LIBS="`$GNOME_CONFIG --libs-only-l gnome`"
4669                 GNOMEUI_LIBS="`$GNOME_CONFIG --libs-only-l gnomeui`"
4670                 GNOMEGNORBA_LIBS="`$GNOME_CONFIG --libs-only-l gnorba gnomeui`"
4671                 GTKXMHTML_LIBS="`$GNOME_CONFIG --libs-only-l gtkxmhtml`"
4672                 ZVT_LIBS="`$GNOME_CONFIG --libs-only-l zvt`"
4673                 GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui`"
4674                 GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui`"
4675
4676               else
4677                 echo "$as_me:$LINENO: result: no" >&5
4678 echo "${ECHO_T}no" >&6
4679                 no_gnome_config="yes"
4680               fi
4681             fi
4682
4683             if test x$exec_prefix = xNONE; then
4684                 if test x$prefix = xNONE; then
4685                     gnome_prefix=$ac_default_prefix/lib
4686                 else
4687                     gnome_prefix=$prefix/lib
4688                 fi
4689             else
4690                 gnome_prefix=`eval echo \`echo $libdir\``
4691             fi
4692
4693             if test "$no_gnome_config" = "yes"; then
4694               echo "$as_me:$LINENO: checking for gnomeConf.sh file in $gnome_prefix" >&5
4695 echo $ECHO_N "checking for gnomeConf.sh file in $gnome_prefix... $ECHO_C" >&6
4696               if test -f $gnome_prefix/gnomeConf.sh; then
4697                 echo "$as_me:$LINENO: result: found" >&5
4698 echo "${ECHO_T}found" >&6
4699                 echo "loading gnome configuration from" \
4700                      "$gnome_prefix/gnomeConf.sh"
4701                 . $gnome_prefix/gnomeConf.sh
4702
4703               else
4704                 echo "$as_me:$LINENO: result: not found" >&5
4705 echo "${ECHO_T}not found" >&6
4706                 if test xfail = xfail; then
4707                   { { echo "$as_me:$LINENO: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&5
4708 echo "$as_me: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&2;}
4709    { (exit 1); exit 1; }; }
4710                 fi
4711               fi
4712             fi
4713         fi
4714
4715         if test -n ""; then
4716           n=""
4717           for i in $n; do
4718             echo "$as_me:$LINENO: checking extra library \"$i\"" >&5
4719 echo $ECHO_N "checking extra library \"$i\"... $ECHO_C" >&6
4720             case $i in
4721               applets)
4722
4723                 GNOME_APPLETS_LIBS=`$GNOME_CONFIG --libs-only-l applets`
4724                 echo "$as_me:$LINENO: result: $GNOME_APPLETS_LIBS" >&5
4725 echo "${ECHO_T}$GNOME_APPLETS_LIBS" >&6;;
4726               docklets)
4727
4728                 GNOME_DOCKLETS_LIBS=`$GNOME_CONFIG --libs-only-l docklets`
4729                 echo "$as_me:$LINENO: result: $GNOME_DOCKLETS_LIBS" >&5
4730 echo "${ECHO_T}$GNOME_DOCKLETS_LIBS" >&6;;
4731               capplet)
4732
4733                 GNOME_CAPPLET_LIBS=`$GNOME_CONFIG --libs-only-l capplet`
4734                 echo "$as_me:$LINENO: result: $GNOME_CAPPLET_LIBS" >&5
4735 echo "${ECHO_T}$GNOME_CAPPLET_LIBS" >&6;;
4736               *)
4737                 echo "$as_me:$LINENO: result: unknown library" >&5
4738 echo "${ECHO_T}unknown library" >&6
4739             esac
4740             EXTRA_INCLUDEDIR=`$GNOME_CONFIG --cflags $i`
4741             GNOME_INCLUDEDIR="$GNOME_INCLUDEDIR $EXTRA_INCLUDEDIR"
4742           done
4743         fi
4744
4745
4746      GNOME_DIR=src/gnome-console
4747      gnome_version="Version 1.4"
4748   fi
4749 fi
4750
4751
4752
4753 # -------------------------------------------
4754 # wx-console (default off)
4755 # -------------------------------------------
4756 # Check whether --enable-wx-console or --disable-wx-console was given.
4757 if test "${enable_wx_console+set}" = set; then
4758   enableval="$enable_wx_console"
4759   if test x$enableval = xyes; then
4760     support_wx_console=yes
4761   fi
4762 fi;
4763
4764 WX_DIR=
4765 if test x$support_wx_console = xyes; then
4766   abc=`$WXCONFIG --cppflags`
4767   pkg=$?
4768   if test $pkg = 0; then
4769      WXCONS_CPPFLAGS=`$WXCONFIG --cppflags`
4770      WXCONS_LDFLAGS=`$WXCONFIG --libs`
4771
4772
4773      WX_DIR=src/wx-console
4774   else
4775      echo " "
4776      echo "wx-config program not found. wx-console disabled."
4777      echo " "
4778      support_wx_console=no
4779   fi
4780 fi
4781
4782
4783
4784
4785 # -------------------------------------------
4786 # smartalloc (default off)
4787 # -------------------------------------------
4788 # Check whether --enable-smartalloc or --disable-smartalloc was given.
4789 if test "${enable_smartalloc+set}" = set; then
4790   enableval="$enable_smartalloc"
4791   if test x$enableval = xno; then
4792     support_smartalloc=no
4793   fi
4794 fi;
4795
4796 if test x$support_smartalloc = xyes; then
4797    cat >>confdefs.h <<\_ACEOF
4798 #define SMARTALLOC 1
4799 _ACEOF
4800
4801 fi
4802
4803 # -------------------------------------------
4804 # static-tools (default off)
4805 # -------------------------------------------
4806 # Check whether --enable-static-tools or --disable-static-tools was given.
4807 if test "${enable_static_tools+set}" = set; then
4808   enableval="$enable_static_tools"
4809   if test x$enableval = xyes; then
4810      support_static_tools=yes
4811    fi
4812 fi;
4813
4814 TTOOL_LDFLAGS=
4815 if test x$support_static_tools = xyes; then
4816    TTOOL_LDFLAGS="-static"
4817 fi
4818
4819
4820 # -------------------------------------------
4821 # static-fd    (default off)
4822 # -------------------------------------------
4823 # Check whether --enable-static-fd or --disable-static-fd was given.
4824 if test "${enable_static_fd+set}" = set; then
4825   enableval="$enable_static_fd"
4826   if test x$enableval = xyes; then
4827      support_static_fd=yes
4828    fi
4829 fi;
4830
4831 STATIC_FD=
4832 if test x$support_static_fd = xyes; then
4833    STATIC_FD="static-bacula-fd"
4834 fi
4835
4836
4837 # -------------------------------------------
4838 # static-sd    (default off)
4839 # -------------------------------------------
4840 # Check whether --enable-static-sd or --disable-static-sd was given.
4841 if test "${enable_static_sd+set}" = set; then
4842   enableval="$enable_static_sd"
4843   if test x$enableval = xyes; then
4844      support_static_sd=yes
4845    fi
4846 fi;
4847
4848 STATIC_SD=
4849 if test x$support_static_sd = xyes; then
4850    STATIC_SD="static-bacula-sd"
4851 fi
4852
4853
4854 # -------------------------------------------
4855 # static-dir   (default off)
4856 # -------------------------------------------
4857 # Check whether --enable-static-dir or --disable-static-dir was given.
4858 if test "${enable_static_dir+set}" = set; then
4859   enableval="$enable_static_dir"
4860   if test x$enableval = xyes; then
4861      support_static_dir=yes
4862    fi
4863 fi;
4864
4865 STATIC_DIR=
4866 if test x$support_static_dir = xyes; then
4867    STATIC_DIR="static-bacula-dir"
4868 fi
4869
4870
4871 # -------------------------------------------
4872 # static-cons  (default off)
4873 # -------------------------------------------
4874 # Check whether --enable-static-cons or --disable-static-cons was given.
4875 if test "${enable_static_cons+set}" = set; then
4876   enableval="$enable_static_cons"
4877   if test x$enableval = xyes; then
4878      support_static_cons=yes
4879    fi
4880 fi;
4881
4882 STATIC_CONS=
4883 STATIC_GNOME_CONS=
4884 STATIC_WX_CONS=
4885 if test x$support_static_cons = xyes; then
4886    STATIC_CONS="static-bconsole"
4887    STATIC_GNOME_CONS="static-gnome-console"
4888    STATIC_WX_CONS="static-wx-console"
4889 fi
4890
4891
4892
4893
4894 # -------------------------------------------
4895 # client_only  (default off)
4896 # -------------------------------------------
4897 # Check whether --enable-client-only or --disable-client-only was given.
4898 if test "${enable_client_only+set}" = set; then
4899   enableval="$enable_client_only"
4900   if test x$enableval = xyes; then
4901      build_client_only=yes
4902    fi
4903 fi;
4904 if test x$build_client_only = xno; then
4905    ALL_DIRS="subdirs"
4906 else
4907    ALL_DIRS=""
4908 fi
4909
4910
4911 # ---------------------------------------------------
4912 # Check for conio (Bacula readline substitute)(
4913 # ---------------------------------------------------
4914 # this allows you to turn it completely off
4915 # Check whether --enable-conio or --disable-conio was given.
4916 if test "${enable_conio+set}" = set; then
4917   enableval="$enable_conio"
4918   if test x$enableval = xno; then
4919     support_conio=no
4920   fi
4921 fi;
4922
4923 got_conio="no"
4924 if test x$support_conio = xyes; then
4925    echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4926 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4927 if test "${ac_cv_header_stdc+set}" = set; then
4928   echo $ECHO_N "(cached) $ECHO_C" >&6
4929 else
4930   cat >conftest.$ac_ext <<_ACEOF
4931 #line $LINENO "configure"
4932 /* confdefs.h.  */
4933 _ACEOF
4934 cat confdefs.h >>conftest.$ac_ext
4935 cat >>conftest.$ac_ext <<_ACEOF
4936 /* end confdefs.h.  */
4937 #include <stdlib.h>
4938 #include <stdarg.h>
4939 #include <string.h>
4940 #include <float.h>
4941
4942 int
4943 main ()
4944 {
4945
4946   ;
4947   return 0;
4948 }
4949 _ACEOF
4950 rm -f conftest.$ac_objext
4951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4952   (eval $ac_compile) 2>&5
4953   ac_status=$?
4954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4955   (exit $ac_status); } &&
4956          { ac_try='test -s conftest.$ac_objext'
4957   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4958   (eval $ac_try) 2>&5
4959   ac_status=$?
4960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4961   (exit $ac_status); }; }; then
4962   ac_cv_header_stdc=yes
4963 else
4964   echo "$as_me: failed program was:" >&5
4965 sed 's/^/| /' conftest.$ac_ext >&5
4966
4967 ac_cv_header_stdc=no
4968 fi
4969 rm -f conftest.$ac_objext conftest.$ac_ext
4970
4971 if test $ac_cv_header_stdc = yes; then
4972   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4973   cat >conftest.$ac_ext <<_ACEOF
4974 #line $LINENO "configure"
4975 /* confdefs.h.  */
4976 _ACEOF
4977 cat confdefs.h >>conftest.$ac_ext
4978 cat >>conftest.$ac_ext <<_ACEOF
4979 /* end confdefs.h.  */
4980 #include <string.h>
4981
4982 _ACEOF
4983 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4984   $EGREP "memchr" >/dev/null 2>&1; then
4985   :
4986 else
4987   ac_cv_header_stdc=no
4988 fi
4989 rm -f conftest*
4990
4991 fi
4992
4993 if test $ac_cv_header_stdc = yes; then
4994   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4995   cat >conftest.$ac_ext <<_ACEOF
4996 #line $LINENO "configure"
4997 /* confdefs.h.  */
4998 _ACEOF
4999 cat confdefs.h >>conftest.$ac_ext
5000 cat >>conftest.$ac_ext <<_ACEOF
5001 /* end confdefs.h.  */
5002 #include <stdlib.h>
5003
5004 _ACEOF
5005 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5006   $EGREP "free" >/dev/null 2>&1; then
5007   :
5008 else
5009   ac_cv_header_stdc=no
5010 fi
5011 rm -f conftest*
5012
5013 fi
5014
5015 if test $ac_cv_header_stdc = yes; then
5016   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5017   if test "$cross_compiling" = yes; then
5018   :
5019 else
5020   cat >conftest.$ac_ext <<_ACEOF
5021 #line $LINENO "configure"
5022 /* confdefs.h.  */
5023 _ACEOF
5024 cat confdefs.h >>conftest.$ac_ext
5025 cat >>conftest.$ac_ext <<_ACEOF
5026 /* end confdefs.h.  */
5027 #include <ctype.h>
5028 #if ((' ' & 0x0FF) == 0x020)
5029 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5030 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5031 #else
5032 # define ISLOWER(c) \
5033                    (('a' <= (c) && (c) <= 'i') \
5034                      || ('j' <= (c) && (c) <= 'r') \
5035                      || ('s' <= (c) && (c) <= 'z'))
5036 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5037 #endif
5038
5039 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5040 int
5041 main ()
5042 {
5043   int i;
5044   for (i = 0; i < 256; i++)
5045     if (XOR (islower (i), ISLOWER (i))
5046         || toupper (i) != TOUPPER (i))
5047       exit(2);
5048   exit (0);
5049 }
5050 _ACEOF
5051 rm -f conftest$ac_exeext
5052 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5053   (eval $ac_link) 2>&5
5054   ac_status=$?
5055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5056   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5057   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5058   (eval $ac_try) 2>&5
5059   ac_status=$?
5060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5061   (exit $ac_status); }; }; then
5062   :
5063 else
5064   echo "$as_me: program exited with status $ac_status" >&5
5065 echo "$as_me: failed program was:" >&5
5066 sed 's/^/| /' conftest.$ac_ext >&5
5067
5068 ( exit $ac_status )
5069 ac_cv_header_stdc=no
5070 fi
5071 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5072 fi
5073 fi
5074 fi
5075 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5076 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5077 if test $ac_cv_header_stdc = yes; then
5078
5079 cat >>confdefs.h <<\_ACEOF
5080 #define STDC_HEADERS 1
5081 _ACEOF
5082
5083 fi
5084
5085 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5096                   inttypes.h stdint.h unistd.h
5097 do
5098 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5099 echo "$as_me:$LINENO: checking for $ac_header" >&5
5100 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5101 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5102   echo $ECHO_N "(cached) $ECHO_C" >&6
5103 else
5104   cat >conftest.$ac_ext <<_ACEOF
5105 #line $LINENO "configure"
5106 /* confdefs.h.  */
5107 _ACEOF
5108 cat confdefs.h >>conftest.$ac_ext
5109 cat >>conftest.$ac_ext <<_ACEOF
5110 /* end confdefs.h.  */
5111 $ac_includes_default
5112
5113 #include <$ac_header>
5114 _ACEOF
5115 rm -f conftest.$ac_objext
5116 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5117   (eval $ac_compile) 2>&5
5118   ac_status=$?
5119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5120   (exit $ac_status); } &&
5121          { ac_try='test -s conftest.$ac_objext'
5122   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5123   (eval $ac_try) 2>&5
5124   ac_status=$?
5125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5126   (exit $ac_status); }; }; then
5127   eval "$as_ac_Header=yes"
5128 else
5129   echo "$as_me: failed program was:" >&5
5130 sed 's/^/| /' conftest.$ac_ext >&5
5131
5132 eval "$as_ac_Header=no"
5133 fi
5134 rm -f conftest.$ac_objext conftest.$ac_ext
5135 fi
5136 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5137 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5138 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5139   cat >>confdefs.h <<_ACEOF
5140 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5141 _ACEOF
5142
5143 fi
5144
5145 done
5146
5147
5148 if test "${ac_cv_header_termcap_h+set}" = set; then
5149   echo "$as_me:$LINENO: checking for termcap.h" >&5
5150 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
5151 if test "${ac_cv_header_termcap_h+set}" = set; then
5152   echo $ECHO_N "(cached) $ECHO_C" >&6
5153 fi
5154 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
5155 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
5156 else
5157   # Is the header compilable?
5158 echo "$as_me:$LINENO: checking termcap.h usability" >&5
5159 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6
5160 cat >conftest.$ac_ext <<_ACEOF
5161 #line $LINENO "configure"
5162 /* confdefs.h.  */
5163 _ACEOF
5164 cat confdefs.h >>conftest.$ac_ext
5165 cat >>conftest.$ac_ext <<_ACEOF
5166 /* end confdefs.h.  */
5167 $ac_includes_default
5168 #include <termcap.h>
5169 _ACEOF
5170 rm -f conftest.$ac_objext
5171 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5172   (eval $ac_compile) 2>&5
5173   ac_status=$?
5174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5175   (exit $ac_status); } &&
5176          { ac_try='test -s conftest.$ac_objext'
5177   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5178   (eval $ac_try) 2>&5
5179   ac_status=$?
5180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5181   (exit $ac_status); }; }; then
5182   ac_header_compiler=yes
5183 else
5184   echo "$as_me: failed program was:" >&5
5185 sed 's/^/| /' conftest.$ac_ext >&5
5186
5187 ac_header_compiler=no
5188 fi
5189 rm -f conftest.$ac_objext conftest.$ac_ext
5190 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5191 echo "${ECHO_T}$ac_header_compiler" >&6
5192
5193 # Is the header present?
5194 echo "$as_me:$LINENO: checking termcap.h presence" >&5
5195 echo $ECHO_N "checking termcap.h presence... $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 #include <termcap.h>
5204 _ACEOF
5205 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5206   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5207   ac_status=$?
5208   grep -v '^ *+' conftest.er1 >conftest.err
5209   rm -f conftest.er1
5210   cat conftest.err >&5
5211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5212   (exit $ac_status); } >/dev/null; then
5213   if test -s conftest.err; then
5214     ac_cpp_err=$ac_c_preproc_warn_flag
5215   else
5216     ac_cpp_err=
5217   fi
5218 else
5219   ac_cpp_err=yes
5220 fi
5221 if test -z "$ac_cpp_err"; then
5222   ac_header_preproc=yes
5223 else
5224   echo "$as_me: failed program was:" >&5
5225 sed 's/^/| /' conftest.$ac_ext >&5
5226
5227   ac_header_preproc=no
5228 fi
5229 rm -f conftest.err conftest.$ac_ext
5230 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5231 echo "${ECHO_T}$ac_header_preproc" >&6
5232
5233 # So?  What about this header?
5234 case $ac_header_compiler:$ac_header_preproc in
5235   yes:no )
5236     { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
5237 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5238     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
5239 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
5240     (
5241       cat <<\_ASBOX
5242 ## ------------------------------------ ##
5243 ## Report this to bug-autoconf@gnu.org. ##
5244 ## ------------------------------------ ##
5245 _ASBOX
5246     ) |
5247       sed "s/^/$as_me: WARNING:     /" >&2
5248     ;;
5249   no:yes )
5250     { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
5251 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
5252     { echo "$as_me:$LINENO: WARNING: termcap.h: check for missing prerequisite headers?" >&5
5253 echo "$as_me: WARNING: termcap.h: check for missing prerequisite headers?" >&2;}
5254     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
5255 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
5256     (
5257       cat <<\_ASBOX
5258 ## ------------------------------------ ##
5259 ## Report this to bug-autoconf@gnu.org. ##
5260 ## ------------------------------------ ##
5261 _ASBOX
5262     ) |
5263       sed "s/^/$as_me: WARNING:     /" >&2
5264     ;;
5265 esac
5266 echo "$as_me:$LINENO: checking for termcap.h" >&5
5267 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
5268 if test "${ac_cv_header_termcap_h+set}" = set; then
5269   echo $ECHO_N "(cached) $ECHO_C" >&6
5270 else
5271   ac_cv_header_termcap_h=$ac_header_preproc
5272 fi
5273 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
5274 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
5275
5276 fi
5277 if test $ac_cv_header_termcap_h = yes; then
5278    echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
5279 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
5280 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
5281   echo $ECHO_N "(cached) $ECHO_C" >&6
5282 else
5283   ac_check_lib_save_LIBS=$LIBS
5284 LIBS="-ltermcap  $LIBS"
5285 cat >conftest.$ac_ext <<_ACEOF
5286 #line $LINENO "configure"
5287 /* confdefs.h.  */
5288 _ACEOF
5289 cat confdefs.h >>conftest.$ac_ext
5290 cat >>conftest.$ac_ext <<_ACEOF
5291 /* end confdefs.h.  */
5292
5293 /* Override any gcc2 internal prototype to avoid an error.  */
5294 #ifdef __cplusplus
5295 extern "C"
5296 #endif
5297 /* We use char because int might match the return type of a gcc2
5298    builtin and then its argument prototype would still apply.  */
5299 char tgetent ();
5300 int
5301 main ()
5302 {
5303 tgetent ();
5304   ;
5305   return 0;
5306 }
5307 _ACEOF
5308 rm -f conftest.$ac_objext conftest$ac_exeext
5309 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5310   (eval $ac_link) 2>&5
5311   ac_status=$?
5312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5313   (exit $ac_status); } &&
5314          { ac_try='test -s conftest$ac_exeext'
5315   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5316   (eval $ac_try) 2>&5
5317   ac_status=$?
5318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5319   (exit $ac_status); }; }; then
5320   ac_cv_lib_termcap_tgetent=yes
5321 else
5322   echo "$as_me: failed program was:" >&5
5323 sed 's/^/| /' conftest.$ac_ext >&5
5324
5325 ac_cv_lib_termcap_tgetent=no
5326 fi
5327 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5328 LIBS=$ac_check_lib_save_LIBS
5329 fi
5330 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
5331 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
5332 if test $ac_cv_lib_termcap_tgetent = yes; then
5333    CONS_LIBS="-ltermcap"
5334          CONS_OBJ="conio.o"
5335          CONS_SRC="conio.c"
5336          got_conio="yes"
5337          support_readline=no
5338
5339 cat >>confdefs.h <<\_ACEOF
5340 #define HAVE_CONIO 1
5341 _ACEOF
5342
5343
5344 else
5345    echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
5346 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6
5347 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
5348   echo $ECHO_N "(cached) $ECHO_C" >&6
5349 else
5350   ac_check_lib_save_LIBS=$LIBS
5351 LIBS="-lncurses  $LIBS"
5352 cat >conftest.$ac_ext <<_ACEOF
5353 #line $LINENO "configure"
5354 /* confdefs.h.  */
5355 _ACEOF
5356 cat confdefs.h >>conftest.$ac_ext
5357 cat >>conftest.$ac_ext <<_ACEOF
5358 /* end confdefs.h.  */
5359
5360 /* Override any gcc2 internal prototype to avoid an error.  */
5361 #ifdef __cplusplus
5362 extern "C"
5363 #endif
5364 /* We use char because int might match the return type of a gcc2
5365    builtin and then its argument prototype would still apply.  */
5366 char tgetent ();
5367 int
5368 main ()
5369 {
5370 tgetent ();
5371   ;
5372   return 0;
5373 }
5374 _ACEOF
5375 rm -f conftest.$ac_objext conftest$ac_exeext
5376 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5377   (eval $ac_link) 2>&5
5378   ac_status=$?
5379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5380   (exit $ac_status); } &&
5381          { ac_try='test -s conftest$ac_exeext'
5382   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5383   (eval $ac_try) 2>&5
5384   ac_status=$?
5385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5386   (exit $ac_status); }; }; then
5387   ac_cv_lib_ncurses_tgetent=yes
5388 else
5389   echo "$as_me: failed program was:" >&5
5390 sed 's/^/| /' conftest.$ac_ext >&5
5391
5392 ac_cv_lib_ncurses_tgetent=no
5393 fi
5394 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5395 LIBS=$ac_check_lib_save_LIBS
5396 fi
5397 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
5398 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6
5399 if test $ac_cv_lib_ncurses_tgetent = yes; then
5400    CONS_LIBS="-lncurses"
5401            CONS_OBJ="conio.o"
5402            CONS_SRC="conio.c"
5403            got_conio="yes"
5404            support_readline=no
5405
5406 cat >>confdefs.h <<\_ACEOF
5407 #define HAVE_CONIO 1
5408 _ACEOF
5409
5410
5411 else
5412    echo " "; echo "Neither termcap nor ncurses library found. CONIO turned off ..."; echo " "
5413 fi
5414
5415
5416 fi
5417
5418
5419 else
5420   echo " "; echo "termcap.h not found. CONIO turned off ..."; echo " "
5421 fi
5422
5423
5424 fi
5425
5426
5427 # ---------------------------------------------------
5428 # Check for readline support/directory (default off)
5429 # ---------------------------------------------------
5430 # this allows you to turn it completely off
5431 # Check whether --enable-readline or --disable-readline was given.
5432 if test "${enable_readline+set}" = set; then
5433   enableval="$enable_readline"
5434   if test x$enableval = xno; then
5435     support_readline=no
5436   fi
5437 fi;
5438
5439 got_readline="no"
5440 READLINE_SRC=
5441 if test x$support_readline = xyes; then
5442
5443 # Check whether --with-readline or --without-readline was given.
5444 if test "${with_readline+set}" = set; then
5445   withval="$with_readline"
5446
5447         case "$with_readline" in
5448         no) : ;;
5449         yes|*)
5450           if test "$with_readline" != "yes"; then
5451             CONS_INC="-I${with_readline}"
5452             CONS_LDFLAGS="-L$with_readline"
5453           else
5454              with_readline="/usr/include/readline"
5455           fi
5456           as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
5457 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5458   echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
5459 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
5460 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5461   echo $ECHO_N "(cached) $ECHO_C" >&6
5462 fi
5463 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5464 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5465 else
5466   # Is the header compilable?
5467 echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
5468 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6
5469 cat >conftest.$ac_ext <<_ACEOF
5470 #line $LINENO "configure"
5471 /* confdefs.h.  */
5472 _ACEOF
5473 cat confdefs.h >>conftest.$ac_ext
5474 cat >>conftest.$ac_ext <<_ACEOF
5475 /* end confdefs.h.  */
5476 $ac_includes_default
5477 #include <${with_readline}/readline.h>
5478 _ACEOF
5479 rm -f conftest.$ac_objext
5480 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5481   (eval $ac_compile) 2>&5
5482   ac_status=$?
5483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5484   (exit $ac_status); } &&
5485          { ac_try='test -s conftest.$ac_objext'
5486   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5487   (eval $ac_try) 2>&5
5488   ac_status=$?
5489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5490   (exit $ac_status); }; }; then
5491   ac_header_compiler=yes
5492 else
5493   echo "$as_me: failed program was:" >&5
5494 sed 's/^/| /' conftest.$ac_ext >&5
5495
5496 ac_header_compiler=no
5497 fi
5498 rm -f conftest.$ac_objext conftest.$ac_ext
5499 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5500 echo "${ECHO_T}$ac_header_compiler" >&6
5501
5502 # Is the header present?
5503 echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
5504 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6
5505 cat >conftest.$ac_ext <<_ACEOF
5506 #line $LINENO "configure"
5507 /* confdefs.h.  */
5508 _ACEOF
5509 cat confdefs.h >>conftest.$ac_ext
5510 cat >>conftest.$ac_ext <<_ACEOF
5511 /* end confdefs.h.  */
5512 #include <${with_readline}/readline.h>
5513 _ACEOF
5514 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5515   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5516   ac_status=$?
5517   grep -v '^ *+' conftest.er1 >conftest.err
5518   rm -f conftest.er1
5519   cat conftest.err >&5
5520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5521   (exit $ac_status); } >/dev/null; then
5522   if test -s conftest.err; then
5523     ac_cpp_err=$ac_c_preproc_warn_flag
5524   else
5525     ac_cpp_err=
5526   fi
5527 else
5528   ac_cpp_err=yes
5529 fi
5530 if test -z "$ac_cpp_err"; then
5531   ac_header_preproc=yes
5532 else
5533   echo "$as_me: failed program was:" >&5
5534 sed 's/^/| /' conftest.$ac_ext >&5
5535
5536   ac_header_preproc=no
5537 fi
5538 rm -f conftest.err conftest.$ac_ext
5539 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5540 echo "${ECHO_T}$ac_header_preproc" >&6
5541
5542 # So?  What about this header?
5543 case $ac_header_compiler:$ac_header_preproc in
5544   yes:no )
5545     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5546 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5547     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
5548 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
5549     (
5550       cat <<\_ASBOX
5551 ## ------------------------------------ ##
5552 ## Report this to bug-autoconf@gnu.org. ##
5553 ## ------------------------------------ ##
5554 _ASBOX
5555     ) |
5556       sed "s/^/$as_me: WARNING:     /" >&2
5557     ;;
5558   no:yes )
5559     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
5560 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
5561     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&5
5562 echo "$as_me: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&2;}
5563     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
5564 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
5565     (
5566       cat <<\_ASBOX
5567 ## ------------------------------------ ##
5568 ## Report this to bug-autoconf@gnu.org. ##
5569 ## ------------------------------------ ##
5570 _ASBOX
5571     ) |
5572       sed "s/^/$as_me: WARNING:     /" >&2
5573     ;;
5574 esac
5575 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
5576 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
5577 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5578   echo $ECHO_N "(cached) $ECHO_C" >&6
5579 else
5580   eval "$as_ac_Header=$ac_header_preproc"
5581 fi
5582 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5583 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5584
5585 fi
5586 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5587    cat >>confdefs.h <<\_ACEOF
5588 #define HAVE_READLINE 1
5589 _ACEOF
5590
5591                CONS_LIBS="-lreadline -ltermcap"
5592                got_readline="yes"
5593
5594 else
5595    echo " "
5596                echo "readline.h not found. readline turned off ..."
5597                echo " "
5598
5599
5600 fi
5601
5602
5603           ;;
5604         esac
5605
5606 else
5607
5608        # check for standard readline library
5609        if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5610   echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
5611 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
5612 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5613   echo $ECHO_N "(cached) $ECHO_C" >&6
5614 fi
5615 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
5616 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
5617 else
5618   # Is the header compilable?
5619 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
5620 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6
5621 cat >conftest.$ac_ext <<_ACEOF
5622 #line $LINENO "configure"
5623 /* confdefs.h.  */
5624 _ACEOF
5625 cat confdefs.h >>conftest.$ac_ext
5626 cat >>conftest.$ac_ext <<_ACEOF
5627 /* end confdefs.h.  */
5628 $ac_includes_default
5629 #include </usr/include/readline/readline.h>
5630 _ACEOF
5631 rm -f conftest.$ac_objext
5632 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5633   (eval $ac_compile) 2>&5
5634   ac_status=$?
5635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5636   (exit $ac_status); } &&
5637          { ac_try='test -s conftest.$ac_objext'
5638   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5639   (eval $ac_try) 2>&5
5640   ac_status=$?
5641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5642   (exit $ac_status); }; }; then
5643   ac_header_compiler=yes
5644 else
5645   echo "$as_me: failed program was:" >&5
5646 sed 's/^/| /' conftest.$ac_ext >&5
5647
5648 ac_header_compiler=no
5649 fi
5650 rm -f conftest.$ac_objext conftest.$ac_ext
5651 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5652 echo "${ECHO_T}$ac_header_compiler" >&6
5653
5654 # Is the header present?
5655 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
5656 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6
5657 cat >conftest.$ac_ext <<_ACEOF
5658 #line $LINENO "configure"
5659 /* confdefs.h.  */
5660 _ACEOF
5661 cat confdefs.h >>conftest.$ac_ext
5662 cat >>conftest.$ac_ext <<_ACEOF
5663 /* end confdefs.h.  */
5664 #include </usr/include/readline/readline.h>
5665 _ACEOF
5666 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5667   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5668   ac_status=$?
5669   grep -v '^ *+' conftest.er1 >conftest.err
5670   rm -f conftest.er1
5671   cat conftest.err >&5
5672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5673   (exit $ac_status); } >/dev/null; then
5674   if test -s conftest.err; then
5675     ac_cpp_err=$ac_c_preproc_warn_flag
5676   else
5677     ac_cpp_err=
5678   fi
5679 else
5680   ac_cpp_err=yes
5681 fi
5682 if test -z "$ac_cpp_err"; then
5683   ac_header_preproc=yes
5684 else
5685   echo "$as_me: failed program was:" >&5
5686 sed 's/^/| /' conftest.$ac_ext >&5
5687
5688   ac_header_preproc=no
5689 fi
5690 rm -f conftest.err conftest.$ac_ext
5691 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5692 echo "${ECHO_T}$ac_header_preproc" >&6
5693
5694 # So?  What about this header?
5695 case $ac_header_compiler:$ac_header_preproc in
5696   yes:no )
5697     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5698 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5699     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
5700 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5701     (
5702       cat <<\_ASBOX
5703 ## ------------------------------------ ##
5704 ## Report this to bug-autoconf@gnu.org. ##
5705 ## ------------------------------------ ##
5706 _ASBOX
5707     ) |
5708       sed "s/^/$as_me: WARNING:     /" >&2
5709     ;;
5710   no:yes )
5711     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
5712 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
5713     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&5
5714 echo "$as_me: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&2;}
5715     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
5716 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5717     (
5718       cat <<\_ASBOX
5719 ## ------------------------------------ ##
5720 ## Report this to bug-autoconf@gnu.org. ##
5721 ## ------------------------------------ ##
5722 _ASBOX
5723     ) |
5724       sed "s/^/$as_me: WARNING:     /" >&2
5725     ;;
5726 esac
5727 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
5728 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
5729 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5730   echo $ECHO_N "(cached) $ECHO_C" >&6
5731 else
5732   ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
5733 fi
5734 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
5735 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
5736
5737 fi
5738 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
5739    cat >>confdefs.h <<\_ACEOF
5740 #define HAVE_READLINE 1
5741 _ACEOF
5742
5743            got_readline="yes"
5744            CONS_INC="-I/usr/include/readline"
5745            CONS_LIBS="-lreadline -ltermcap"
5746
5747 else
5748
5749            # Did not find standard library, so try Bacula's default
5750             as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
5751 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5752   echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
5753 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/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 ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
5762 echo $ECHO_N "checking ${TOP_DIR}/depkgs/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 <${TOP_DIR}/depkgs/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 ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
5798 echo $ECHO_N "checking ${TOP_DIR}/depkgs/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 <${TOP_DIR}/depkgs/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: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5840 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5841     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
5842 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/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: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
5854 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
5855     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&5
5856 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&2;}
5857     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
5858 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/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 ${TOP_DIR}/depkgs/readline/readline.h" >&5
5870 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/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                  got_readline="yes"
5886                  CONS_INC="-I${TOP_DIR}/depkgs/readline"
5887                  CONS_LIBS="-lreadline -lhistory -ltermcap"
5888                  CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
5889                  PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
5890
5891 else
5892    echo " "
5893                 echo "readline.h not found. readline turned off ..."
5894                 echo " "
5895
5896
5897 fi
5898
5899
5900
5901
5902 fi
5903
5904
5905
5906
5907 fi;
5908 fi
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919 # Minimal stuff for readline Makefile configuration
5920 MAKE_SHELL=/bin/sh
5921
5922
5923 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
5924 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
5925 if test "${ac_cv_header_stat_broken+set}" = set; then
5926   echo $ECHO_N "(cached) $ECHO_C" >&6
5927 else
5928   cat >conftest.$ac_ext <<_ACEOF
5929 #line $LINENO "configure"
5930 /* confdefs.h.  */
5931 _ACEOF
5932 cat confdefs.h >>conftest.$ac_ext
5933 cat >>conftest.$ac_ext <<_ACEOF
5934 /* end confdefs.h.  */
5935 #include <sys/types.h>
5936 #include <sys/stat.h>
5937
5938 #if defined(S_ISBLK) && defined(S_IFDIR)
5939 # if S_ISBLK (S_IFDIR)
5940 You lose.
5941 # endif
5942 #endif
5943
5944 #if defined(S_ISBLK) && defined(S_IFCHR)
5945 # if S_ISBLK (S_IFCHR)
5946 You lose.
5947 # endif
5948 #endif
5949
5950 #if defined(S_ISLNK) && defined(S_IFREG)
5951 # if S_ISLNK (S_IFREG)
5952 You lose.
5953 # endif
5954 #endif
5955
5956 #if defined(S_ISSOCK) && defined(S_IFREG)
5957 # if S_ISSOCK (S_IFREG)
5958 You lose.
5959 # endif
5960 #endif
5961
5962 _ACEOF
5963 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5964   $EGREP "You lose" >/dev/null 2>&1; then
5965   ac_cv_header_stat_broken=yes
5966 else
5967   ac_cv_header_stat_broken=no
5968 fi
5969 rm -f conftest*
5970
5971 fi
5972 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
5973 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
5974 if test $ac_cv_header_stat_broken = yes; then
5975
5976 cat >>confdefs.h <<\_ACEOF
5977 #define STAT_MACROS_BROKEN 1
5978 _ACEOF
5979
5980 fi
5981
5982
5983
5984
5985
5986
5987 ac_header_dirent=no
5988 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5989   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5990 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5991 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
5992 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5993   echo $ECHO_N "(cached) $ECHO_C" >&6
5994 else
5995   cat >conftest.$ac_ext <<_ACEOF
5996 #line $LINENO "configure"
5997 /* confdefs.h.  */
5998 _ACEOF
5999 cat confdefs.h >>conftest.$ac_ext
6000 cat >>conftest.$ac_ext <<_ACEOF
6001 /* end confdefs.h.  */
6002 #include <sys/types.h>
6003 #include <$ac_hdr>
6004
6005 int
6006 main ()
6007 {
6008 if ((DIR *) 0)
6009 return 0;
6010   ;
6011   return 0;
6012 }
6013 _ACEOF
6014 rm -f conftest.$ac_objext
6015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6016   (eval $ac_compile) 2>&5
6017   ac_status=$?
6018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6019   (exit $ac_status); } &&
6020          { ac_try='test -s conftest.$ac_objext'
6021   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6022   (eval $ac_try) 2>&5
6023   ac_status=$?
6024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6025   (exit $ac_status); }; }; then
6026   eval "$as_ac_Header=yes"
6027 else
6028   echo "$as_me: failed program was:" >&5
6029 sed 's/^/| /' conftest.$ac_ext >&5
6030
6031 eval "$as_ac_Header=no"
6032 fi
6033 rm -f conftest.$ac_objext conftest.$ac_ext
6034 fi
6035 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6036 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6037 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6038   cat >>confdefs.h <<_ACEOF
6039 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6040 _ACEOF
6041
6042 ac_header_dirent=$ac_hdr; break
6043 fi
6044
6045 done
6046 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6047 if test $ac_header_dirent = dirent.h; then
6048   echo "$as_me:$LINENO: checking for library containing opendir" >&5
6049 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6050 if test "${ac_cv_search_opendir+set}" = set; then
6051   echo $ECHO_N "(cached) $ECHO_C" >&6
6052 else
6053   ac_func_search_save_LIBS=$LIBS
6054 ac_cv_search_opendir=no
6055 cat >conftest.$ac_ext <<_ACEOF
6056 #line $LINENO "configure"
6057 /* confdefs.h.  */
6058 _ACEOF
6059 cat confdefs.h >>conftest.$ac_ext
6060 cat >>conftest.$ac_ext <<_ACEOF
6061 /* end confdefs.h.  */
6062
6063 /* Override any gcc2 internal prototype to avoid an error.  */
6064 #ifdef __cplusplus
6065 extern "C"
6066 #endif
6067 /* We use char because int might match the return type of a gcc2
6068    builtin and then its argument prototype would still apply.  */
6069 char opendir ();
6070 int
6071 main ()
6072 {
6073 opendir ();
6074   ;
6075   return 0;
6076 }
6077 _ACEOF
6078 rm -f conftest.$ac_objext conftest$ac_exeext
6079 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6080   (eval $ac_link) 2>&5
6081   ac_status=$?
6082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6083   (exit $ac_status); } &&
6084          { ac_try='test -s conftest$ac_exeext'
6085   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6086   (eval $ac_try) 2>&5
6087   ac_status=$?
6088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6089   (exit $ac_status); }; }; then
6090   ac_cv_search_opendir="none required"
6091 else
6092   echo "$as_me: failed program was:" >&5
6093 sed 's/^/| /' conftest.$ac_ext >&5
6094
6095 fi
6096 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6097 if test "$ac_cv_search_opendir" = no; then
6098   for ac_lib in dir; do
6099     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6100     cat >conftest.$ac_ext <<_ACEOF
6101 #line $LINENO "configure"
6102 /* confdefs.h.  */
6103 _ACEOF
6104 cat confdefs.h >>conftest.$ac_ext
6105 cat >>conftest.$ac_ext <<_ACEOF
6106 /* end confdefs.h.  */
6107
6108 /* Override any gcc2 internal prototype to avoid an error.  */
6109 #ifdef __cplusplus
6110 extern "C"
6111 #endif
6112 /* We use char because int might match the return type of a gcc2
6113    builtin and then its argument prototype would still apply.  */
6114 char opendir ();
6115 int
6116 main ()
6117 {
6118 opendir ();
6119   ;
6120   return 0;
6121 }
6122 _ACEOF
6123 rm -f conftest.$ac_objext conftest$ac_exeext
6124 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6125   (eval $ac_link) 2>&5
6126   ac_status=$?
6127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6128   (exit $ac_status); } &&
6129          { ac_try='test -s conftest$ac_exeext'
6130   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6131   (eval $ac_try) 2>&5
6132   ac_status=$?
6133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6134   (exit $ac_status); }; }; then
6135   ac_cv_search_opendir="-l$ac_lib"
6136 break
6137 else
6138   echo "$as_me: failed program was:" >&5
6139 sed 's/^/| /' conftest.$ac_ext >&5
6140
6141 fi
6142 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6143   done
6144 fi
6145 LIBS=$ac_func_search_save_LIBS
6146 fi
6147 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6148 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6149 if test "$ac_cv_search_opendir" != no; then
6150   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6151
6152 fi
6153
6154 else
6155   echo "$as_me:$LINENO: checking for library containing opendir" >&5
6156 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6157 if test "${ac_cv_search_opendir+set}" = set; then
6158   echo $ECHO_N "(cached) $ECHO_C" >&6
6159 else
6160   ac_func_search_save_LIBS=$LIBS
6161 ac_cv_search_opendir=no
6162 cat >conftest.$ac_ext <<_ACEOF
6163 #line $LINENO "configure"
6164 /* confdefs.h.  */
6165 _ACEOF
6166 cat confdefs.h >>conftest.$ac_ext
6167 cat >>conftest.$ac_ext <<_ACEOF
6168 /* end confdefs.h.  */
6169
6170 /* Override any gcc2 internal prototype to avoid an error.  */
6171 #ifdef __cplusplus
6172 extern "C"
6173 #endif
6174 /* We use char because int might match the return type of a gcc2
6175    builtin and then its argument prototype would still apply.  */
6176 char opendir ();
6177 int
6178 main ()
6179 {
6180 opendir ();
6181   ;
6182   return 0;
6183 }
6184 _ACEOF
6185 rm -f conftest.$ac_objext conftest$ac_exeext
6186 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6187   (eval $ac_link) 2>&5
6188   ac_status=$?
6189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6190   (exit $ac_status); } &&
6191          { ac_try='test -s conftest$ac_exeext'
6192   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6193   (eval $ac_try) 2>&5
6194   ac_status=$?
6195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6196   (exit $ac_status); }; }; then
6197   ac_cv_search_opendir="none required"
6198 else
6199   echo "$as_me: failed program was:" >&5
6200 sed 's/^/| /' conftest.$ac_ext >&5
6201
6202 fi
6203 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6204 if test "$ac_cv_search_opendir" = no; then
6205   for ac_lib in x; do
6206     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6207     cat >conftest.$ac_ext <<_ACEOF
6208 #line $LINENO "configure"
6209 /* confdefs.h.  */
6210 _ACEOF
6211 cat confdefs.h >>conftest.$ac_ext
6212 cat >>conftest.$ac_ext <<_ACEOF
6213 /* end confdefs.h.  */
6214
6215 /* Override any gcc2 internal prototype to avoid an error.  */
6216 #ifdef __cplusplus
6217 extern "C"
6218 #endif
6219 /* We use char because int might match the return type of a gcc2
6220    builtin and then its argument prototype would still apply.  */
6221 char opendir ();
6222 int
6223 main ()
6224 {
6225 opendir ();
6226   ;
6227   return 0;
6228 }
6229 _ACEOF
6230 rm -f conftest.$ac_objext conftest$ac_exeext
6231 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6232   (eval $ac_link) 2>&5
6233   ac_status=$?
6234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6235   (exit $ac_status); } &&
6236          { ac_try='test -s conftest$ac_exeext'
6237   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6238   (eval $ac_try) 2>&5
6239   ac_status=$?
6240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6241   (exit $ac_status); }; }; then
6242   ac_cv_search_opendir="-l$ac_lib"
6243 break
6244 else
6245   echo "$as_me: failed program was:" >&5
6246 sed 's/^/| /' conftest.$ac_ext >&5
6247
6248 fi
6249 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6250   done
6251 fi
6252 LIBS=$ac_func_search_save_LIBS
6253 fi
6254 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6255 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6256 if test "$ac_cv_search_opendir" != no; then
6257   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6258
6259 fi
6260
6261 fi
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272 for ac_func in strcasecmp select setenv putenv tcgetattr setlocale lstat lchown
6273 do
6274 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6275 echo "$as_me:$LINENO: checking for $ac_func" >&5
6276 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6277 if eval "test \"\${$as_ac_var+set}\" = set"; then
6278   echo $ECHO_N "(cached) $ECHO_C" >&6
6279 else
6280   cat >conftest.$ac_ext <<_ACEOF
6281 #line $LINENO "configure"
6282 /* confdefs.h.  */
6283 _ACEOF
6284 cat confdefs.h >>conftest.$ac_ext
6285 cat >>conftest.$ac_ext <<_ACEOF
6286 /* end confdefs.h.  */
6287 /* System header to define __stub macros and hopefully few prototypes,
6288     which can conflict with char $ac_func (); below.
6289     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6290     <limits.h> exists even on freestanding compilers.  */
6291 #ifdef __STDC__
6292 # include <limits.h>
6293 #else
6294 # include <assert.h>
6295 #endif
6296 /* Override any gcc2 internal prototype to avoid an error.  */
6297 #ifdef __cplusplus
6298 extern "C"
6299 {
6300 #endif
6301 /* We use char because int might match the return type of a gcc2
6302    builtin and then its argument prototype would still apply.  */
6303 char $ac_func ();
6304 /* The GNU C library defines this for functions which it implements
6305     to always fail with ENOSYS.  Some functions are actually named
6306     something starting with __ and the normal name is an alias.  */
6307 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6308 choke me
6309 #else
6310 char (*f) () = $ac_func;
6311 #endif
6312 #ifdef __cplusplus
6313 }
6314 #endif
6315
6316 int
6317 main ()
6318 {
6319 return f != $ac_func;
6320   ;
6321   return 0;
6322 }
6323 _ACEOF
6324 rm -f conftest.$ac_objext conftest$ac_exeext
6325 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6326   (eval $ac_link) 2>&5
6327   ac_status=$?
6328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6329   (exit $ac_status); } &&
6330          { ac_try='test -s conftest$ac_exeext'
6331   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6332   (eval $ac_try) 2>&5
6333   ac_status=$?
6334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6335   (exit $ac_status); }; }; then
6336   eval "$as_ac_var=yes"
6337 else
6338   echo "$as_me: failed program was:" >&5
6339 sed 's/^/| /' conftest.$ac_ext >&5
6340
6341 eval "$as_ac_var=no"
6342 fi
6343 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6344 fi
6345 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6346 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6347 if test `eval echo '${'$as_ac_var'}'` = yes; then
6348   cat >>confdefs.h <<_ACEOF
6349 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6350 _ACEOF
6351
6352 fi
6353 done
6354
6355
6356
6357 for ac_func in nanosleep nl_langinfo
6358 do
6359 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6360 echo "$as_me:$LINENO: checking for $ac_func" >&5
6361 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6362 if eval "test \"\${$as_ac_var+set}\" = set"; then
6363   echo $ECHO_N "(cached) $ECHO_C" >&6
6364 else
6365   cat >conftest.$ac_ext <<_ACEOF
6366 #line $LINENO "configure"
6367 /* confdefs.h.  */
6368 _ACEOF
6369 cat confdefs.h >>conftest.$ac_ext
6370 cat >>conftest.$ac_ext <<_ACEOF
6371 /* end confdefs.h.  */
6372 /* System header to define __stub macros and hopefully few prototypes,
6373     which can conflict with char $ac_func (); below.
6374     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6375     <limits.h> exists even on freestanding compilers.  */
6376 #ifdef __STDC__
6377 # include <limits.h>
6378 #else
6379 # include <assert.h>
6380 #endif
6381 /* Override any gcc2 internal prototype to avoid an error.  */
6382 #ifdef __cplusplus
6383 extern "C"
6384 {
6385 #endif
6386 /* We use char because int might match the return type of a gcc2
6387    builtin and then its argument prototype would still apply.  */
6388 char $ac_func ();
6389 /* The GNU C library defines this for functions which it implements
6390     to always fail with ENOSYS.  Some functions are actually named
6391     something starting with __ and the normal name is an alias.  */
6392 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6393 choke me
6394 #else
6395 char (*f) () = $ac_func;
6396 #endif
6397 #ifdef __cplusplus
6398 }
6399 #endif
6400
6401 int
6402 main ()
6403 {
6404 return f != $ac_func;
6405   ;
6406   return 0;
6407 }
6408 _ACEOF
6409 rm -f conftest.$ac_objext conftest$ac_exeext
6410 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6411   (eval $ac_link) 2>&5
6412   ac_status=$?
6413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6414   (exit $ac_status); } &&
6415          { ac_try='test -s conftest$ac_exeext'
6416   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6417   (eval $ac_try) 2>&5
6418   ac_status=$?
6419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6420   (exit $ac_status); }; }; then
6421   eval "$as_ac_var=yes"
6422 else
6423   echo "$as_me: failed program was:" >&5
6424 sed 's/^/| /' conftest.$ac_ext >&5
6425
6426 eval "$as_ac_var=no"
6427 fi
6428 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6429 fi
6430 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6431 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6432 if test `eval echo '${'$as_ac_var'}'` = yes; then
6433   cat >>confdefs.h <<_ACEOF
6434 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6435 _ACEOF
6436
6437 fi
6438 done
6439
6440
6441
6442 for ac_header in varargs.h
6443 do
6444 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6445 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6446   echo "$as_me:$LINENO: checking for $ac_header" >&5
6447 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6448 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6449   echo $ECHO_N "(cached) $ECHO_C" >&6
6450 fi
6451 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6452 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6453 else
6454   # Is the header compilable?
6455 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6456 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6457 cat >conftest.$ac_ext <<_ACEOF
6458 #line $LINENO "configure"
6459 /* confdefs.h.  */
6460 _ACEOF
6461 cat confdefs.h >>conftest.$ac_ext
6462 cat >>conftest.$ac_ext <<_ACEOF
6463 /* end confdefs.h.  */
6464 $ac_includes_default
6465 #include <$ac_header>
6466 _ACEOF
6467 rm -f conftest.$ac_objext
6468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6469   (eval $ac_compile) 2>&5
6470   ac_status=$?
6471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6472   (exit $ac_status); } &&
6473          { ac_try='test -s conftest.$ac_objext'
6474   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6475   (eval $ac_try) 2>&5
6476   ac_status=$?
6477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6478   (exit $ac_status); }; }; then
6479   ac_header_compiler=yes
6480 else
6481   echo "$as_me: failed program was:" >&5
6482 sed 's/^/| /' conftest.$ac_ext >&5
6483
6484 ac_header_compiler=no
6485 fi
6486 rm -f conftest.$ac_objext conftest.$ac_ext
6487 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6488 echo "${ECHO_T}$ac_header_compiler" >&6
6489
6490 # Is the header present?
6491 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6492 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6493 cat >conftest.$ac_ext <<_ACEOF
6494 #line $LINENO "configure"
6495 /* confdefs.h.  */
6496 _ACEOF
6497 cat confdefs.h >>conftest.$ac_ext
6498 cat >>conftest.$ac_ext <<_ACEOF
6499 /* end confdefs.h.  */
6500 #include <$ac_header>
6501 _ACEOF
6502 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6503   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6504   ac_status=$?
6505   grep -v '^ *+' conftest.er1 >conftest.err
6506   rm -f conftest.er1
6507   cat conftest.err >&5
6508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6509   (exit $ac_status); } >/dev/null; then
6510   if test -s conftest.err; then
6511     ac_cpp_err=$ac_c_preproc_warn_flag
6512   else
6513     ac_cpp_err=
6514   fi
6515 else
6516   ac_cpp_err=yes
6517 fi
6518 if test -z "$ac_cpp_err"; then
6519   ac_header_preproc=yes
6520 else
6521   echo "$as_me: failed program was:" >&5
6522 sed 's/^/| /' conftest.$ac_ext >&5
6523
6524   ac_header_preproc=no
6525 fi
6526 rm -f conftest.err conftest.$ac_ext
6527 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6528 echo "${ECHO_T}$ac_header_preproc" >&6
6529
6530 # So?  What about this header?
6531 case $ac_header_compiler:$ac_header_preproc in
6532   yes:no )
6533     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6534 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6535     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6536 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6537     (
6538       cat <<\_ASBOX
6539 ## ------------------------------------ ##
6540 ## Report this to bug-autoconf@gnu.org. ##
6541 ## ------------------------------------ ##
6542 _ASBOX
6543     ) |
6544       sed "s/^/$as_me: WARNING:     /" >&2
6545     ;;
6546   no:yes )
6547     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6548 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6549     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6550 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6551     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6552 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6553     (
6554       cat <<\_ASBOX
6555 ## ------------------------------------ ##
6556 ## Report this to bug-autoconf@gnu.org. ##
6557 ## ------------------------------------ ##
6558 _ASBOX
6559     ) |
6560       sed "s/^/$as_me: WARNING:     /" >&2
6561     ;;
6562 esac
6563 echo "$as_me:$LINENO: checking for $ac_header" >&5
6564 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6565 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6566   echo $ECHO_N "(cached) $ECHO_C" >&6
6567 else
6568   eval "$as_ac_Header=$ac_header_preproc"
6569 fi
6570 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6571 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6572
6573 fi
6574 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6575   cat >>confdefs.h <<_ACEOF
6576 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6577 _ACEOF
6578
6579 fi
6580
6581 done
6582
6583
6584 # End of readline/conio stuff
6585 # -----------------------------------------------------------------------
6586
6587
6588 # ---------------------------------------------------
6589 # Check for GMP support/directory
6590 # ---------------------------------------------------
6591 #GMP_SRC=
6592 #local_gmp="no"
6593 #AC_ARG_WITH(gmp,
6594 #  [  --with-gmp[=DIR]   Specify gmp library directory],
6595 #  [
6596 #     case "$with_gmp" in
6597 #     no) : ;;
6598 #     yes|*)
6599 #       if test "$with_gmp" != "yes"; then
6600 #         GMP_INC="-I$with_gmp"
6601 #         GMP_LIBS="-lgmp"
6602 #         GMP_LDFLAGS="-L$with_gmp"
6603 #       else
6604 #          with_gmp="/usr/include"
6605 #       fi
6606 #       AC_CHECK_HEADER($with_gmp/gmp.h,
6607 #          [ AC_MSG_RESULT(yes)
6608 #            AC_DEFINE(HAVE_GMP)
6609 #            GMP_LIBS="-lgmp"
6610 #            got_gmp="yes"
6611 #          ],
6612 #          [ AC_MSG_ERROR([*** gmp library missing])
6613 #          ]
6614 #       )
6615 #       ;;
6616 #     esac
6617 #  ],[
6618 #    # check for standard gmp library
6619 #    AC_CHECK_HEADER(/usr/include/gmp.h,
6620 #    [ AC_MSG_RESULT(yes)
6621 #      AC_DEFINE(HAVE_GMP)
6622 #      got_gmp="yes"
6623 #      GMP_INC=
6624 #      GMP_LIBS="-lgmp"
6625 #    ], [
6626 #      # Did not find standard library, so use our own
6627 #      AC_MSG_RESULT(yes)
6628 #      AC_DEFINE(HAVE_GMP)
6629 #      got_gmp="yes"
6630 #      local_gmp="yes"
6631 #      GMP_INC="-I${TOP_DIR}/depkgs/gmp"
6632 #      GMP_LIBS="-lgmp"
6633 #      GMP_LDFLAGS="-L${TOP_DIR}/depkgs/gmp"
6634 #      GMP_SRC="${TOP_DIR}/depkgs/gmp"
6635 #    ])
6636 #  ]
6637 #)
6638 #AC_SUBST(GMP_INC)
6639 #AC_SUBST(GMP_LIBS)
6640 #AC_SUBST(GMP_LDFLAGS)
6641 #AC_SUBST(GMP_SRC)
6642
6643 # End of GMP stuff
6644 # -----------------------------------------------------------------------
6645
6646
6647 # ---------------------------------------------------
6648 # Check for CWEB support/directory
6649 # ---------------------------------------------------
6650 #CWEB_SRC=
6651 #CWEB=/bin
6652 #local_cweb="no"
6653 #AC_ARG_WITH(cweb,
6654 #  [  --with-cweb[=DIR]   Specify cweb library directory],
6655 #  [
6656 #     case "$with_cweb" in
6657 #     no) : ;;
6658 #     yes|*)
6659 #       if test "$with_cweb" != "yes"; then
6660 #         CWEB_INC="-I$with_cweb"
6661 #         CWEB_LIBS="-lcweb"
6662 #         CWEB_LDFLAGS="-L$with_cweb"
6663 #       else
6664 #          with_cweb="/usr/include"
6665 #       fi
6666 #       AC_CHECK_HEADER($with_cweb/cweb.h,
6667 #          [ AC_MSG_RESULT(yes)
6668 #            AC_DEFINE(HAVE_CWEB)
6669 #            CWEB_LIBS="-lcweb"
6670 #            got_cweb="yes"
6671 #          ],
6672 #          [ AC_MSG_ERROR([*** cweb library missing])
6673 #          ]
6674 #       )
6675 #       ;;
6676 #     esac
6677 #  ],[
6678 #    # check for standard cweb library
6679 #    AC_CHECK_HEADER(/usr/include/cweb.h,
6680 #    [ AC_MSG_RESULT(yes)
6681 #      AC_DEFINE(HAVE_CWEB)
6682 #      got_cweb="yes"
6683 #      CWEB_INC=
6684 #      CWEB_LIBS="-lcweb"
6685 #    ], [
6686 #      # Did not find starndard library, so use our own
6687 #      AC_MSG_RESULT(yes)
6688 #      AC_DEFINE(HAVE_CWEB)
6689 #      got_cweb="yes"
6690 #      local_cweb="yes"
6691 #      CWEB=${TOP_DIR}/depkgs/cweb
6692 #      CWEB_INC="-I${TOP_DIR}/depkgs/cweb"
6693 #      CWEB_LIBS="-lcweb"
6694 #      CWEB_LDFLAGS="-L${TOP_DIR}/depkgs/cweb"
6695 #      CWEB_SRC="${TOP_DIR}/depkgs/cweb"
6696 #    ])
6697 #  ]
6698 #)
6699 #AC_SUBST(CWEB)
6700 #AC_SUBST(CWEB_INC)
6701 #AC_SUBST(CWEB_LIBS)
6702 #AC_SUBST(CWEB_LDFLAGS)
6703 #AC_SUBST(CWEB_SRC)
6704
6705 # End of CWEB stuff
6706 # -----------------------------------------------------------------------
6707
6708
6709
6710 # -----------------------------------------------------------
6711 # Check whether user wants TCP wrappers support (default off)
6712 # -----------------------------------------------------------
6713 TCPW_MSG="no"
6714
6715 # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
6716 if test "${with_tcp_wrappers+set}" = set; then
6717   withval="$with_tcp_wrappers"
6718
6719     if test "x$withval" != "xno" ; then
6720        saved_LIBS="$LIBS"
6721        LIBS="$saved_LIBS -lwrap"
6722        echo "$as_me:$LINENO: checking for libwrap" >&5
6723 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6
6724        cat >conftest.$ac_ext <<_ACEOF
6725 #line $LINENO "configure"
6726 /* confdefs.h.  */
6727 _ACEOF
6728 cat confdefs.h >>conftest.$ac_ext
6729 cat >>conftest.$ac_ext <<_ACEOF
6730 /* end confdefs.h.  */
6731  #include <tcpd.h>
6732              int deny_severity = 0;
6733              int allow_severity = 0;
6734              struct request_info *req;
6735 int
6736 main ()
6737 {
6738  hosts_access(req);
6739   ;
6740   return 0;
6741 }
6742 _ACEOF
6743 rm -f conftest.$ac_objext conftest$ac_exeext
6744 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6745   (eval $ac_link) 2>&5
6746   ac_status=$?
6747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6748   (exit $ac_status); } &&
6749          { ac_try='test -s conftest$ac_exeext'
6750   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6751   (eval $ac_try) 2>&5
6752   ac_status=$?
6753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6754   (exit $ac_status); }; }; then
6755
6756             echo "$as_me:$LINENO: result: yes" >&5
6757 echo "${ECHO_T}yes" >&6
6758             cat >>confdefs.h <<\_ACEOF
6759 #define HAVE_LIBWRAP 1
6760 _ACEOF
6761
6762             TCPW_MSG="yes"
6763
6764 else
6765   echo "$as_me: failed program was:" >&5
6766 sed 's/^/| /' conftest.$ac_ext >&5
6767
6768
6769             LIBS="$saved_LIBS -lwrap -lnsl"
6770             cat >conftest.$ac_ext <<_ACEOF
6771 #line $LINENO "configure"
6772 /* confdefs.h.  */
6773 _ACEOF
6774 cat confdefs.h >>conftest.$ac_ext
6775 cat >>conftest.$ac_ext <<_ACEOF
6776 /* end confdefs.h.  */
6777  #include <tcpd.h>
6778                  int deny_severity = 0;
6779                  int allow_severity = 0;
6780                  struct request_info *req;
6781 int
6782 main ()
6783 {
6784  hosts_access(req);
6785   ;
6786   return 0;
6787 }
6788 _ACEOF
6789 rm -f conftest.$ac_objext conftest$ac_exeext
6790 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6791   (eval $ac_link) 2>&5
6792   ac_status=$?
6793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6794   (exit $ac_status); } &&
6795          { ac_try='test -s conftest$ac_exeext'
6796   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6797   (eval $ac_try) 2>&5
6798   ac_status=$?
6799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6800   (exit $ac_status); }; }; then
6801
6802                  echo "$as_me:$LINENO: result: yes" >&5
6803 echo "${ECHO_T}yes" >&6
6804                  cat >>confdefs.h <<\_ACEOF
6805 #define HAVE_LIBWRAP 1
6806 _ACEOF
6807
6808                  TCPW_MSG="yes"
6809
6810 else
6811   echo "$as_me: failed program was:" >&5
6812 sed 's/^/| /' conftest.$ac_ext >&5
6813
6814 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
6815 echo "$as_me: error: *** libwrap missing" >&2;}
6816    { (exit 1); exit 1; }; }
6817
6818 fi
6819 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6820
6821 fi
6822 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6823     fi
6824
6825
6826 fi;
6827
6828 # ------------------------------------------
6829 # Where to place working dir
6830 # ------------------------------------------
6831 working_dir=`eval echo ${prefix}/var/bacula/working`
6832
6833 # Check whether --with-working-dir or --without-working-dir was given.
6834 if test "${with_working_dir+set}" = set; then
6835   withval="$with_working_dir"
6836
6837        if test "x$withval" != "xno" ; then
6838               working_dir=$withval
6839        fi
6840
6841
6842 fi;
6843
6844
6845
6846
6847 # ------------------------------------------
6848 # Where to place scriptdir (script files)
6849 # ------------------------------------------
6850 scriptdir=`eval echo ${sysconfdir}`
6851
6852 # Check whether --with-scriptdir or --without-scriptdir was given.
6853 if test "${with_scriptdir+set}" = set; then
6854   withval="$with_scriptdir"
6855
6856        if test "x$withval" != "xno" ; then
6857               scriptdir=$withval
6858        fi
6859
6860
6861 fi;
6862
6863
6864
6865
6866 # ------------------------------------------
6867 # Where to send dump email
6868 # ------------------------------------------
6869 dump_email=root@localhost
6870
6871 # Check whether --with-dump-email or --without-dump-email was given.
6872 if test "${with_dump_email+set}" = set; then
6873   withval="$with_dump_email"
6874
6875        if test "x$withval" != "xno" ; then
6876               dump_email=$withval
6877        fi
6878
6879
6880 fi;
6881
6882
6883
6884 # ------------------------------------------
6885 # Where to send job email
6886 # ------------------------------------------
6887 job_email=root@localhost
6888
6889 # Check whether --with-job-email or --without-job-email was given.
6890 if test "${with_job_email+set}" = set; then
6891   withval="$with_job_email"
6892
6893        if test "x$withval" != "xno" ; then
6894               job_email=$withval
6895        fi
6896
6897
6898 fi;
6899
6900
6901
6902 # ------------------------------------------
6903 # Where to find smtp host
6904 # ------------------------------------------
6905 smtp_host=localhost
6906
6907 # Check whether --with-smtp_host or --without-smtp_host was given.
6908 if test "${with_smtp_host+set}" = set; then
6909   withval="$with_smtp_host"
6910
6911        if test "x$withval" != "xno" ; then
6912               smtp_host=$withval
6913        fi
6914
6915
6916 fi;
6917
6918
6919
6920
6921 # ------------------------------------
6922 # Where to place pid files
6923 # ------------------------------------
6924 piddir=/var/run
6925
6926 # Check whether --with-pid-dir or --without-pid-dir was given.
6927 if test "${with_pid_dir+set}" = set; then
6928   withval="$with_pid_dir"
6929
6930         if test "x$withval" != "xno" ; then
6931             piddir=$withval
6932         fi
6933
6934
6935 fi;
6936
6937 cat >>confdefs.h <<_ACEOF
6938 #define _PATH_BACULA_PIDDIR "$piddir"
6939 _ACEOF
6940
6941
6942
6943
6944 # ------------------------------------
6945 # Where to place subsys "lock file"
6946 # ------------------------------------
6947 subsysdir=/var/run/subsys
6948
6949 # Check whether --with-subsys-dir or --without-subsys-dir was given.
6950 if test "${with_subsys_dir+set}" = set; then
6951   withval="$with_subsys_dir"
6952
6953         if test "x$withval" != "xno" ; then
6954             subsysdir=$withval
6955         fi
6956
6957
6958 fi;
6959
6960
6961
6962
6963
6964 # ------------------------------------
6965 # Where to start assigning ports
6966 # ------------------------------------
6967 baseport=9101
6968
6969 # Check whether --with-baseport or --without-baseport was given.
6970 if test "${with_baseport+set}" = set; then
6971   withval="$with_baseport"
6972
6973         if test "x$withval" != "xno" ; then
6974              baseport=$withval
6975         fi
6976
6977
6978 fi;
6979
6980
6981 dir_port=`expr $baseport`
6982 fd_port=`expr $baseport + 1`
6983 sd_port=`expr $fd_port + 1`
6984
6985
6986
6987
6988
6989
6990 # ------------------------------------------
6991 # Generate passwords
6992 # ------------------------------------------
6993 dir_password=
6994
6995 # Check whether --with-dir-password or --without-dir-password was given.
6996 if test "${with_dir_password+set}" = set; then
6997   withval="$with_dir_password"
6998
6999        if test "x$withval" != "xno" ; then
7000            dir_password=$withval
7001        fi
7002
7003
7004 fi;
7005
7006 if test "x$dir_password" = "x" ; then
7007    if test "x$OPENSSL" = "xnone" ; then
7008 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" abcdefghijklmnopqrst | awk '{getline} {print} {exit}'`
7009       key=`autoconf/randpass 33`
7010    else
7011       key=`openssl rand -base64 33`
7012    fi
7013    dir_password=$key
7014 fi
7015
7016 fd_password=
7017
7018 # Check whether --with-fd-password or --without-fd-password was given.
7019 if test "${with_fd_password+set}" = set; then
7020   withval="$with_fd_password"
7021
7022        if test "x$withval" != "xno" ; then
7023            fd_password=$withval
7024        fi
7025
7026
7027 fi;
7028
7029 if test "x$fd_password" = "x" ; then
7030    if test "x$OPENSSL" = "xnone" ; then
7031 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" tsrqponmlkjihgfedcba | awk '{getline} {print} {exit}'`
7032       key=`autoconf/randpass 37`
7033    else
7034       key=`openssl rand -base64 33`
7035    fi
7036    fd_password=$key
7037 fi
7038
7039 sd_password=
7040
7041 # Check whether --with-sd-password or --without-sd-password was given.
7042 if test "${with_sd_password+set}" = set; then
7043   withval="$with_sd_password"
7044
7045        if test "x$withval" != "xno" ; then
7046            sd_password=$withval
7047        fi
7048
7049
7050 fi;
7051
7052 if test "x$sd_password" = "x" ; then
7053    if test "x$OPENSSL" = "xnone" ; then
7054 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" 123456789uvwxyzabcdef | awk '{getline} {print} {exit}'`
7055       key=`autoconf/randpass 41`
7056    else
7057       key=`openssl rand -base64 33`
7058    fi
7059    sd_password=$key
7060 fi
7061
7062
7063
7064
7065
7066
7067
7068 #
7069 # Handle users and groups for each daemon
7070 #
7071 dir_user=
7072
7073 # Check whether --with-dir_user or --without-dir_user was given.
7074 if test "${with_dir_user+set}" = set; then
7075   withval="$with_dir_user"
7076
7077         if test "x$withval" != "x" ; then
7078              dir_user=$withval
7079         fi
7080
7081
7082 fi;
7083
7084 dir_group=
7085
7086 # Check whether --with-dir_group or --without-dir_group was given.
7087 if test "${with_dir_group+set}" = set; then
7088   withval="$with_dir_group"
7089
7090         if test "x$withval" != "x" ; then
7091              dir_group=$withval
7092         fi
7093
7094
7095 fi;
7096
7097 sd_user=
7098
7099 # Check whether --with-sd_user or --without-sd_user was given.
7100 if test "${with_sd_user+set}" = set; then
7101   withval="$with_sd_user"
7102
7103         if test "x$withval" != "x" ; then
7104              sd_user=$withval
7105         fi
7106
7107
7108 fi;
7109
7110 sd_group=
7111
7112 # Check whether --with-sd_group or --without-sd_group was given.
7113 if test "${with_sd_group+set}" = set; then
7114   withval="$with_sd_group"
7115
7116         if test "x$withval" != "x" ; then
7117              sd_group=$withval
7118         fi
7119
7120
7121 fi;
7122
7123 fd_user=
7124
7125 # Check whether --with-fd_user or --without-fd_user was given.
7126 if test "${with_fd_user+set}" = set; then
7127   withval="$with_fd_user"
7128
7129         if test "x$withval" != "x" ; then
7130              fd_user=$withval
7131         fi
7132
7133
7134 fi;
7135
7136 fd_group=
7137
7138 # Check whether --with-fd_group or --without-fd_group was given.
7139 if test "${with_fd_group+set}" = set; then
7140   withval="$with_fd_group"
7141
7142         if test "x$withval" != "x" ; then
7143              fd_group=$withval
7144         fi
7145
7146
7147 fi;
7148
7149
7150
7151
7152
7153
7154
7155
7156
7157
7158
7159 #
7160 # allow setting default executable permissions
7161 #
7162 SBINPERM=0754
7163
7164 # Check whether --with-sbin-perm or --without-sbin-perm was given.
7165 if test "${with_sbin_perm+set}" = set; then
7166   withval="$with_sbin_perm"
7167
7168         if test "x$withval" != "x" ; then
7169             SBINPERM=$withval
7170         fi
7171
7172
7173 fi;
7174
7175
7176
7177 # ------------------------------------------------
7178 # Bacula check for various SQL database engines
7179 # ------------------------------------------------
7180
7181 db_found=no
7182 echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
7183 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6
7184
7185 # Check whether --with-postgresql or --without-postgresql was given.
7186 if test "${with_postgresql+set}" = set; then
7187   withval="$with_postgresql"
7188
7189   if test "$withval" != "no"; then
7190       if test "$db_found" = "yes"; then
7191           echo "$as_me:$LINENO: result: error" >&5
7192 echo "${ECHO_T}error" >&6
7193           { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
7194 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
7195    { (exit 1); exit 1; }; };
7196       fi
7197       if test "$withval" = "yes"; then
7198           if test -f /usr/local/include/libpq-fe.h; then
7199               POSTGRESQL_INCDIR=/usr/local/include
7200               POSTGRESQL_LIBDIR=/usr/local/lib
7201               POSTGRESQL_BINDIR=/usr/local/bin
7202           elif test -f /usr/include/libpq-fe.h; then
7203               POSTGRESQL_INCDIR=/usr/include
7204               POSTGRESQL_LIBDIR=/usr/lib
7205               POSTGRESQL_BINDIR=/usr/bin
7206           elif test -f /usr/include/pgsql/libpq-fe.h; then
7207               POSTGRESQL_INCDIR=/usr/include/pgsql
7208               POSTGRESQL_LIBDIR=/usr/lib/pgsql
7209               POSTGRESQL_BINDIR=/usr/bin
7210           elif test -f /usr/include/postgresql/libpq-fe.h; then
7211               POSTGRESQL_INCDIR=/usr/include/postgresql
7212               POSTGRESQL_LIBDIR=/usr/lib/postgresql
7213               POSTGRESQL_BINDIR=/usr/bin
7214           else
7215               echo "$as_me:$LINENO: result: no" >&5
7216 echo "${ECHO_T}no" >&6
7217               { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
7218 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
7219    { (exit 1); exit 1; }; }
7220           fi
7221       elif test -f $withval/include/libpq-fe.h; then
7222           POSTGRESQL_INCDIR=$withval/include
7223           POSTGRESQL_LIBDIR=$withval/lib
7224           POSTGRESQL_BINDIR=$withval/bin
7225       else
7226           echo "$as_me:$LINENO: result: no" >&5
7227 echo "${ECHO_T}no" >&6
7228           { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
7229 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
7230    { (exit 1); exit 1; }; }
7231       fi
7232       POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
7233       echo "$as_me:$LINENO: checking for crypt" >&5
7234 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
7235 if test "${ac_cv_func_crypt+set}" = set; then
7236   echo $ECHO_N "(cached) $ECHO_C" >&6
7237 else
7238   cat >conftest.$ac_ext <<_ACEOF
7239 #line $LINENO "configure"
7240 /* confdefs.h.  */
7241 _ACEOF
7242 cat confdefs.h >>conftest.$ac_ext
7243 cat >>conftest.$ac_ext <<_ACEOF
7244 /* end confdefs.h.  */
7245 /* System header to define __stub macros and hopefully few prototypes,
7246     which can conflict with char crypt (); below.
7247     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7248     <limits.h> exists even on freestanding compilers.  */
7249 #ifdef __STDC__
7250 # include <limits.h>
7251 #else
7252 # include <assert.h>
7253 #endif
7254 /* Override any gcc2 internal prototype to avoid an error.  */
7255 #ifdef __cplusplus
7256 extern "C"
7257 {
7258 #endif
7259 /* We use char because int might match the return type of a gcc2
7260    builtin and then its argument prototype would still apply.  */
7261 char crypt ();
7262 /* The GNU C library defines this for functions which it implements
7263     to always fail with ENOSYS.  Some functions are actually named
7264     something starting with __ and the normal name is an alias.  */
7265 #if defined (__stub_crypt) || defined (__stub___crypt)
7266 choke me
7267 #else
7268 char (*f) () = crypt;
7269 #endif
7270 #ifdef __cplusplus
7271 }
7272 #endif
7273
7274 int
7275 main ()
7276 {
7277 return f != crypt;
7278   ;
7279   return 0;
7280 }
7281 _ACEOF
7282 rm -f conftest.$ac_objext conftest$ac_exeext
7283 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7284   (eval $ac_link) 2>&5
7285   ac_status=$?
7286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7287   (exit $ac_status); } &&
7288          { ac_try='test -s conftest$ac_exeext'
7289   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7290   (eval $ac_try) 2>&5
7291   ac_status=$?
7292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7293   (exit $ac_status); }; }; then
7294   ac_cv_func_crypt=yes
7295 else
7296   echo "$as_me: failed program was:" >&5
7297 sed 's/^/| /' conftest.$ac_ext >&5
7298
7299 ac_cv_func_crypt=no
7300 fi
7301 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7302 fi
7303 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
7304 echo "${ECHO_T}$ac_cv_func_crypt" >&6
7305 if test $ac_cv_func_crypt = yes; then
7306   :
7307 else
7308   echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
7309 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
7310 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
7311   echo $ECHO_N "(cached) $ECHO_C" >&6
7312 else
7313   ac_check_lib_save_LIBS=$LIBS
7314 LIBS="-lcrypt  $LIBS"
7315 cat >conftest.$ac_ext <<_ACEOF
7316 #line $LINENO "configure"
7317 /* confdefs.h.  */
7318 _ACEOF
7319 cat confdefs.h >>conftest.$ac_ext
7320 cat >>conftest.$ac_ext <<_ACEOF
7321 /* end confdefs.h.  */
7322
7323 /* Override any gcc2 internal prototype to avoid an error.  */
7324 #ifdef __cplusplus
7325 extern "C"
7326 #endif
7327 /* We use char because int might match the return type of a gcc2
7328    builtin and then its argument prototype would still apply.  */
7329 char crypt ();
7330 int
7331 main ()
7332 {
7333 crypt ();
7334   ;
7335   return 0;
7336 }
7337 _ACEOF
7338 rm -f conftest.$ac_objext conftest$ac_exeext
7339 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7340   (eval $ac_link) 2>&5
7341   ac_status=$?
7342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7343   (exit $ac_status); } &&
7344          { ac_try='test -s conftest$ac_exeext'
7345   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7346   (eval $ac_try) 2>&5
7347   ac_status=$?
7348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7349   (exit $ac_status); }; }; then
7350   ac_cv_lib_crypt_crypt=yes
7351 else
7352   echo "$as_me: failed program was:" >&5
7353 sed 's/^/| /' conftest.$ac_ext >&5
7354
7355 ac_cv_lib_crypt_crypt=no
7356 fi
7357 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7358 LIBS=$ac_check_lib_save_LIBS
7359 fi
7360 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
7361 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
7362 if test $ac_cv_lib_crypt_crypt = yes; then
7363   POSTGRESQL_LFLAGS="-lcrypt $POSTGRESQL_LFLAGS"
7364 fi
7365
7366 fi
7367
7368       SQL_INCLUDE=-I$POSTGRESQL_INCDIR
7369       SQL_LFLAGS=$POSTGRESQL_LFLAGS
7370       SQL_BINDIR=$POSTGRESQL_BINDIR
7371       cat >>confdefs.h <<\_ACEOF
7372 #define HAVE_POSTGRESQL 1
7373 _ACEOF
7374
7375       echo "$as_me:$LINENO: result: yes" >&5
7376 echo "${ECHO_T}yes" >&6
7377       db_found=yes
7378       support_postgresql=yes
7379       db_name=PostgreSQL
7380       DB_NAME=postgresql
7381   else
7382       echo "$as_me:$LINENO: result: no" >&5
7383 echo "${ECHO_T}no" >&6
7384   fi
7385
7386 else
7387
7388   echo "$as_me:$LINENO: result: no" >&5
7389 echo "${ECHO_T}no" >&6
7390
7391 fi;
7392
7393
7394
7395
7396
7397
7398
7399 db_found=no
7400 echo "$as_me:$LINENO: checking for MySQL support" >&5
7401 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6
7402
7403 # Check whether --with-mysql or --without-mysql was given.
7404 if test "${with_mysql+set}" = set; then
7405   withval="$with_mysql"
7406
7407   if test "$withval" != "no"; then
7408         if test "$withval" = "yes"; then
7409                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
7410                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
7411                         MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
7412                         MYSQL_BINDIR=/usr/local/mysql/bin
7413                 elif test -f /usr/include/mysql/mysql.h; then
7414                         MYSQL_INCDIR=/usr/include/mysql
7415                         MYSQL_LIBDIR=/usr/lib/mysql
7416                         MYSQL_BINDIR=/usr/bin
7417                 elif test -f /usr/include/mysql.h; then
7418                         MYSQL_INCDIR=/usr/include
7419                         MYSQL_LIBDIR=/usr/lib
7420                         MYSQL_BINDIR=/usr/bin
7421                 elif test -f /usr/local/include/mysql/mysql.h; then
7422                         MYSQL_INCDIR=/usr/local/include/mysql
7423                         MYSQL_LIBDIR=/usr/local/lib/mysql
7424                         MYSQL_BINDIR=/usr/local/bin
7425                 elif test -f /usr/local/include/mysql.h; then
7426                         MYSQL_INCDIR=/usr/local/include
7427                         MYSQL_LIBDIR=/usr/local/lib
7428                         MYSQL_BINDIR=/usr/local/bin
7429                 else
7430                    echo "$as_me:$LINENO: result: no" >&5
7431 echo "${ECHO_T}no" >&6
7432                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
7433 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
7434    { (exit 1); exit 1; }; }
7435                 fi
7436         else
7437                 if test -f $withval/include/mysql/mysql.h; then
7438                         MYSQL_INCDIR=$withval/include/mysql
7439                         MYSQL_LIBDIR=$withval/lib/mysql
7440                         MYSQL_BINDIR=$withval/bin
7441                 elif test -f $withval/include/mysql.h; then
7442                         MYSQL_INCDIR=$withval/include
7443                         MYSQL_LIBDIR=$withval/lib
7444                         MYSQL_BINDIR=$withval/bin
7445                 else
7446                    echo "$as_me:$LINENO: result: no" >&5
7447 echo "${ECHO_T}no" >&6
7448                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
7449 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
7450    { (exit 1); exit 1; }; }
7451                 fi
7452         fi
7453     SQL_INCLUDE=-I$MYSQL_INCDIR
7454     if test -f $MYSQL_LIBDIR/libmysqlclient_r.a; then
7455        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
7456        cat >>confdefs.h <<\_ACEOF
7457 #define HAVE_THREAD_SAFE_MYSQL 1
7458 _ACEOF
7459
7460     else
7461        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient -lz"
7462     fi
7463     SQL_BINDIR=$MYSQL_BINDIR
7464
7465     cat >>confdefs.h <<\_ACEOF
7466 #define HAVE_MYSQL 1
7467 _ACEOF
7468
7469     echo "$as_me:$LINENO: result: yes" >&5
7470 echo "${ECHO_T}yes" >&6
7471     db_found=yes
7472     support_mysql=yes
7473     db_name=MySQL
7474     DB_NAME=mysql
7475
7476   else
7477         echo "$as_me:$LINENO: result: no" >&5
7478 echo "${ECHO_T}no" >&6
7479   fi
7480
7481 else
7482
7483     echo "$as_me:$LINENO: result: no" >&5
7484 echo "${ECHO_T}no" >&6
7485
7486 fi;
7487
7488
7489 # Check whether --with-embedded-mysql or --without-embedded-mysql was given.
7490 if test "${with_embedded_mysql+set}" = set; then
7491   withval="$with_embedded_mysql"
7492
7493   if test "$withval" != "no"; then
7494         if test "$withval" = "yes"; then
7495                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
7496                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
7497                         MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
7498                         MYSQL_BINDIR=/usr/local/mysql/bin
7499                 elif test -f /usr/include/mysql/mysql.h; then
7500                         MYSQL_INCDIR=/usr/include/mysql
7501                         MYSQL_LIBDIR=/usr/lib/mysql
7502                         MYSQL_BINDIR=/usr/bin
7503                 elif test -f /usr/include/mysql.h; then
7504                         MYSQL_INCDIR=/usr/include
7505                         MYSQL_LIBDIR=/usr/lib
7506                         MYSQL_BINDIR=/usr/bin
7507                 elif test -f /usr/local/include/mysql/mysql.h; then
7508                         MYSQL_INCDIR=/usr/local/include/mysql
7509                         MYSQL_LIBDIR=/usr/local/lib/mysql
7510                         MYSQL_BINDIR=/usr/local/bin
7511                 elif test -f /usr/local/include/mysql.h; then
7512                         MYSQL_INCDIR=/usr/local/include
7513                         MYSQL_LIBDIR=/usr/local/lib
7514                         MYSQL_BINDIR=/usr/local/bin
7515                 else
7516                    echo "$as_me:$LINENO: result: no" >&5
7517 echo "${ECHO_T}no" >&6
7518                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
7519 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
7520    { (exit 1); exit 1; }; }
7521                 fi
7522         else
7523                 if test -f $withval/include/mysql/mysql.h; then
7524                         MYSQL_INCDIR=$withval/include/mysql
7525                         MYSQL_LIBDIR=$withval/lib/mysql
7526                         MYSQL_BINDIR=$withval/bin
7527                 elif test -f $withval/include/mysql.h; then
7528                         MYSQL_INCDIR=$withval/include
7529                         MYSQL_LIBDIR=$withval/lib
7530                         MYSQL_BINDIR=$withval/bin
7531                 else
7532                    echo "$as_me:$LINENO: result: no" >&5
7533 echo "${ECHO_T}no" >&6
7534                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
7535 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
7536    { (exit 1); exit 1; }; }
7537                 fi
7538         fi
7539     SQL_INCLUDE=-I$MYSQL_INCDIR
7540     SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
7541     SQL_BINDIR=$MYSQL_BINDIR
7542
7543     cat >>confdefs.h <<\_ACEOF
7544 #define HAVE_MYSQL 1
7545 _ACEOF
7546
7547     cat >>confdefs.h <<\_ACEOF
7548 #define HAVE_EMBEDDED_MYSQL 1
7549 _ACEOF
7550
7551     echo "$as_me:$LINENO: result: yes" >&5
7552 echo "${ECHO_T}yes" >&6
7553     db_found=yes
7554     support_mysql=yes
7555     db_name=MySQL
7556     DB_NAME=mysql
7557
7558   else
7559         echo "$as_me:$LINENO: result: no" >&5
7560 echo "${ECHO_T}no" >&6
7561   fi
7562
7563 else
7564
7565   echo "$as_me:$LINENO: result: no" >&5
7566 echo "${ECHO_T}no" >&6
7567
7568 fi;
7569
7570
7571
7572
7573
7574
7575
7576
7577
7578 db_found=no
7579 echo "$as_me:$LINENO: checking for SQLite support" >&5
7580 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6
7581
7582 # Check whether --with-sqlite or --without-sqlite was given.
7583 if test "${with_sqlite+set}" = set; then
7584   withval="$with_sqlite"
7585
7586   if test "$withval" != "no"; then
7587         if test "$withval" = "yes"; then
7588                 if test -f /usr/local/include/sqlite.h; then
7589                         SQLITE_INCDIR=/usr/local/include
7590                         SQLITE_LIBDIR=/usr/local/lib
7591                         SQLITE_BINDIR=/usr/local/bin
7592                 elif test -f /usr/include/sqlite.h; then
7593                         SQLITE_INCDIR=/usr/include
7594                         SQLITE_LIBDIR=/usr/lib
7595                         SQLITE_BINDIR=/usr/bin
7596                 else
7597                    echo "$as_me:$LINENO: result: no" >&5
7598 echo "${ECHO_T}no" >&6
7599                    { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
7600 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
7601    { (exit 1); exit 1; }; }
7602                 fi
7603         else
7604                 if test -f $withval/sqlite.h; then
7605                         SQLITE_INCDIR=$withval
7606                         SQLITE_LIBDIR=$withval
7607                         SQLITE_BINDIR=$withval
7608                 else
7609                    echo "$as_me:$LINENO: result: no" >&5
7610 echo "${ECHO_T}no" >&6
7611                    { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
7612 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
7613    { (exit 1); exit 1; }; }
7614                 fi
7615         fi
7616     SQL_INCLUDE=-I$SQLITE_INCDIR
7617     SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
7618     SQL_BINDIR=$SQLITE_BINDIR
7619
7620     cat >>confdefs.h <<\_ACEOF
7621 #define HAVE_SQLITE 1
7622 _ACEOF
7623
7624     echo "$as_me:$LINENO: result: yes" >&5
7625 echo "${ECHO_T}yes" >&6
7626     db_found=yes
7627     support_sqlite=yes
7628     db_name=SQLite
7629     DB_NAME=sqlite
7630
7631   else
7632         echo "$as_me:$LINENO: result: no" >&5
7633 echo "${ECHO_T}no" >&6
7634   fi
7635
7636 else
7637
7638   echo "$as_me:$LINENO: result: no" >&5
7639 echo "${ECHO_T}no" >&6
7640
7641 fi;
7642
7643
7644
7645
7646
7647
7648
7649
7650
7651 cat >>confdefs.h <<\_ACEOF
7652 #define PROTOTYPES 1
7653 _ACEOF
7654
7655
7656 if test -z "$CFLAGS"; then
7657     if test -z "$CCOPTS"; then
7658         CCOPTS='-g -O2'
7659     fi
7660     CFLAGS="$CCOPTS"
7661 fi
7662
7663
7664
7665
7666 largefile_support="no"
7667
7668    # Check whether --enable-largefile or --disable-largefile was given.
7669 if test "${enable_largefile+set}" = set; then
7670   enableval="$enable_largefile"
7671
7672 fi;
7673    if test "$enable_largefile" != no; then
7674      if test -n "$ac_tool_prefix"; then
7675   # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
7676 set dummy ${ac_tool_prefix}getconf; ac_word=$2
7677 echo "$as_me:$LINENO: checking for $ac_word" >&5
7678 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7679 if test "${ac_cv_prog_GETCONF+set}" = set; then
7680   echo $ECHO_N "(cached) $ECHO_C" >&6
7681 else
7682   if test -n "$GETCONF"; then
7683   ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
7684 else
7685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7686 for as_dir in $PATH
7687 do
7688   IFS=$as_save_IFS
7689   test -z "$as_dir" && as_dir=.
7690   for ac_exec_ext in '' $ac_executable_extensions; do
7691   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7692     ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
7693     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7694     break 2
7695   fi
7696 done
7697 done
7698
7699 fi
7700 fi
7701 GETCONF=$ac_cv_prog_GETCONF
7702 if test -n "$GETCONF"; then
7703   echo "$as_me:$LINENO: result: $GETCONF" >&5
7704 echo "${ECHO_T}$GETCONF" >&6
7705 else
7706   echo "$as_me:$LINENO: result: no" >&5
7707 echo "${ECHO_T}no" >&6
7708 fi
7709
7710 fi
7711 if test -z "$ac_cv_prog_GETCONF"; then
7712   ac_ct_GETCONF=$GETCONF
7713   # Extract the first word of "getconf", so it can be a program name with args.
7714 set dummy getconf; ac_word=$2
7715 echo "$as_me:$LINENO: checking for $ac_word" >&5
7716 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7717 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
7718   echo $ECHO_N "(cached) $ECHO_C" >&6
7719 else
7720   if test -n "$ac_ct_GETCONF"; then
7721   ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
7722 else
7723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7724 for as_dir in $PATH
7725 do
7726   IFS=$as_save_IFS
7727   test -z "$as_dir" && as_dir=.
7728   for ac_exec_ext in '' $ac_executable_extensions; do
7729   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7730     ac_cv_prog_ac_ct_GETCONF="getconf"
7731     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7732     break 2
7733   fi
7734 done
7735 done
7736
7737 fi
7738 fi
7739 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
7740 if test -n "$ac_ct_GETCONF"; then
7741   echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
7742 echo "${ECHO_T}$ac_ct_GETCONF" >&6
7743 else
7744   echo "$as_me:$LINENO: result: no" >&5
7745 echo "${ECHO_T}no" >&6
7746 fi
7747
7748   GETCONF=$ac_ct_GETCONF
7749 else
7750   GETCONF="$ac_cv_prog_GETCONF"
7751 fi
7752
7753      echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
7754 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6
7755 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
7756   echo $ECHO_N "(cached) $ECHO_C" >&6
7757 else
7758   ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
7759         ac_cv_sys_largefile_CFLAGS=no
7760         case "$host_os" in
7761            # IRIX 6.2 and later require cc -n32.
7762            irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
7763              if test "$GCC" != yes; then
7764                ac_cv_sys_largefile_CFLAGS=-n32
7765              fi
7766              ac_save_CC="$CC"
7767              CC="$CC $ac_cv_sys_largefile_CFLAGS"
7768              cat >conftest.$ac_ext <<_ACEOF
7769 #line $LINENO "configure"
7770 /* confdefs.h.  */
7771 _ACEOF
7772 cat confdefs.h >>conftest.$ac_ext
7773 cat >>conftest.$ac_ext <<_ACEOF
7774 /* end confdefs.h.  */
7775
7776 int
7777 main ()
7778 {
7779
7780   ;
7781   return 0;
7782 }
7783 _ACEOF
7784 rm -f conftest.$ac_objext conftest$ac_exeext
7785 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7786   (eval $ac_link) 2>&5
7787   ac_status=$?
7788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7789   (exit $ac_status); } &&
7790          { ac_try='test -s conftest$ac_exeext'
7791   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7792   (eval $ac_try) 2>&5
7793   ac_status=$?
7794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7795   (exit $ac_status); }; }; then
7796   :
7797 else
7798   echo "$as_me: failed program was:" >&5
7799 sed 's/^/| /' conftest.$ac_ext >&5
7800
7801 ac_cv_sys_largefile_CFLAGS=no
7802 fi
7803 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7804              CC="$ac_save_CC"
7805            esac
7806       }
7807 fi
7808 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
7809 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6
7810      echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
7811 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6
7812 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
7813   echo $ECHO_N "(cached) $ECHO_C" >&6
7814 else
7815   ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
7816         ac_cv_sys_largefile_LDFLAGS=no
7817
7818       }
7819 fi
7820 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
7821 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6
7822      echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
7823 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6
7824 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
7825   echo $ECHO_N "(cached) $ECHO_C" >&6
7826 else
7827   ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
7828         ac_cv_sys_largefile_LIBS=no
7829
7830       }
7831 fi
7832 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
7833 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6
7834
7835      for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7836        case "$ac_flag" in
7837        no) ;;
7838        -D_FILE_OFFSET_BITS=*) ;;
7839        -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
7840        -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
7841        -D?* | -I?*)
7842          case "$ac_flag" in
7843    no) ;;
7844    ?*)
7845      case "$CPPFLAGS" in
7846      '') CPPFLAGS="$ac_flag" ;;
7847      *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
7848      esac ;;
7849    esac ;;
7850        *)
7851          case "$ac_flag" in
7852    no) ;;
7853    ?*)
7854      case "$CFLAGS" in
7855      '') CFLAGS="$ac_flag" ;;
7856      *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
7857      esac ;;
7858    esac ;;
7859        esac
7860      done
7861      case "$ac_cv_sys_largefile_LDFLAGS" in
7862    no) ;;
7863    ?*)
7864      case "$LDFLAGS" in
7865      '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
7866      *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
7867      esac ;;
7868    esac
7869      case "$ac_cv_sys_largefile_LIBS" in
7870    no) ;;
7871    ?*)
7872      case "$LIBS" in
7873      '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
7874      *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
7875      esac ;;
7876    esac
7877      echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
7878 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6
7879 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
7880   echo $ECHO_N "(cached) $ECHO_C" >&6
7881 else
7882   ac_cv_sys_file_offset_bits=no
7883       case "$host_os" in
7884         # HP-UX 10.20 and later
7885         hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
7886           ac_cv_sys_file_offset_bits=64 ;;
7887         esac
7888       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7889         case "$ac_flag" in
7890         -D_FILE_OFFSET_BITS)
7891           ac_cv_sys_file_offset_bits=1 ;;
7892         -D_FILE_OFFSET_BITS=*)
7893           ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
7894         esac
7895       done
7896
7897 fi
7898 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
7899 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
7900    if test "$ac_cv_sys_file_offset_bits" != no; then
7901
7902 cat >>confdefs.h <<_ACEOF
7903 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7904 _ACEOF
7905
7906    fi
7907      echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
7908 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6
7909 if test "${ac_cv_sys_largefile_source+set}" = set; then
7910   echo $ECHO_N "(cached) $ECHO_C" >&6
7911 else
7912   ac_cv_sys_largefile_source=no
7913       case "$host_os" in
7914         # HP-UX 10.20 and later
7915         hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
7916           ac_cv_sys_largefile_source=1 ;;
7917         esac
7918       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7919         case "$ac_flag" in
7920         -D_LARGEFILE_SOURCE)
7921           ac_cv_sys_largefile_source=1 ;;
7922         -D_LARGEFILE_SOURCE=*)
7923           ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
7924         esac
7925       done
7926
7927 fi
7928 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
7929 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
7930    if test "$ac_cv_sys_largefile_source" != no; then
7931
7932 cat >>confdefs.h <<_ACEOF
7933 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
7934 _ACEOF
7935
7936    fi
7937      echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
7938 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6
7939 if test "${ac_cv_sys_large_files+set}" = set; then
7940   echo $ECHO_N "(cached) $ECHO_C" >&6
7941 else
7942   ac_cv_sys_large_files=no
7943       case "$host_os" in
7944         # AIX 4.2 and later
7945         aix4.[2-9]* | aix4.1[0-9]* | aix[5-9].* | aix[1-9][0-9]*)
7946           ac_cv_sys_large_files=1 ;;
7947         esac
7948       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7949         case "$ac_flag" in
7950         -D_LARGE_FILES)
7951           ac_cv_sys_large_files=1 ;;
7952         -D_LARGE_FILES=*)
7953           ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
7954         esac
7955       done
7956
7957 fi
7958 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
7959 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
7960    if test "$ac_cv_sys_large_files" != no; then
7961
7962 cat >>confdefs.h <<_ACEOF
7963 #define _LARGE_FILES $ac_cv_sys_large_files
7964 _ACEOF
7965
7966    fi
7967    fi
7968
7969
7970
7971 echo "$as_me:$LINENO: checking for X" >&5
7972 echo $ECHO_N "checking for X... $ECHO_C" >&6
7973
7974
7975 # Check whether --with-x or --without-x was given.
7976 if test "${with_x+set}" = set; then
7977   withval="$with_x"
7978
7979 fi;
7980 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7981 if test "x$with_x" = xno; then
7982   # The user explicitly disabled X.
7983   have_x=disabled
7984 else
7985   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
7986     # Both variables are already set.
7987     have_x=yes
7988   else
7989     if test "${ac_cv_have_x+set}" = set; then
7990   echo $ECHO_N "(cached) $ECHO_C" >&6
7991 else
7992   # One or both of the vars are not set, and there is no cached value.
7993 ac_x_includes=no ac_x_libraries=no
7994 rm -fr conftest.dir
7995 if mkdir conftest.dir; then
7996   cd conftest.dir
7997   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7998   cat >Imakefile <<'_ACEOF'
7999 acfindx:
8000         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
8001 _ACEOF
8002   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
8003     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8004     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
8005     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8006     for ac_extension in a so sl; do
8007       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
8008          test -f $ac_im_libdir/libX11.$ac_extension; then
8009         ac_im_usrlibdir=$ac_im_libdir; break
8010       fi
8011     done
8012     # Screen out bogus values from the imake configuration.  They are
8013     # bogus both because they are the default anyway, and because
8014     # using them would break gcc on systems where it needs fixed includes.
8015     case $ac_im_incroot in
8016         /usr/include) ;;
8017         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8018     esac
8019     case $ac_im_usrlibdir in
8020         /usr/lib | /lib) ;;
8021         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8022     esac
8023   fi
8024   cd ..
8025   rm -fr conftest.dir
8026 fi
8027
8028 # Standard set of common directories for X headers.
8029 # Check X11 before X11Rn because it is often a symlink to the current release.
8030 ac_x_header_dirs='
8031 /usr/X11/include
8032 /usr/X11R6/include
8033 /usr/X11R5/include
8034 /usr/X11R4/include
8035
8036 /usr/include/X11
8037 /usr/include/X11R6
8038 /usr/include/X11R5
8039 /usr/include/X11R4
8040
8041 /usr/local/X11/include
8042 /usr/local/X11R6/include
8043 /usr/local/X11R5/include
8044 /usr/local/X11R4/include
8045
8046 /usr/local/include/X11
8047 /usr/local/include/X11R6
8048 /usr/local/include/X11R5
8049 /usr/local/include/X11R4
8050
8051 /usr/X386/include
8052 /usr/x386/include
8053 /usr/XFree86/include/X11
8054
8055 /usr/include
8056 /usr/local/include
8057 /usr/unsupported/include
8058 /usr/athena/include
8059 /usr/local/x11r5/include
8060 /usr/lpp/Xamples/include
8061
8062 /usr/openwin/include
8063 /usr/openwin/share/include'
8064
8065 if test "$ac_x_includes" = no; then
8066   # Guess where to find include files, by looking for Intrinsic.h.
8067   # First, try using that file with no special directory specified.
8068   cat >conftest.$ac_ext <<_ACEOF
8069 #line $LINENO "configure"
8070 /* confdefs.h.  */
8071 _ACEOF
8072 cat confdefs.h >>conftest.$ac_ext
8073 cat >>conftest.$ac_ext <<_ACEOF
8074 /* end confdefs.h.  */
8075 #include <X11/Intrinsic.h>
8076 _ACEOF
8077 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8078   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8079   ac_status=$?
8080   grep -v '^ *+' conftest.er1 >conftest.err
8081   rm -f conftest.er1
8082   cat conftest.err >&5
8083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8084   (exit $ac_status); } >/dev/null; then
8085   if test -s conftest.err; then
8086     ac_cpp_err=$ac_c_preproc_warn_flag
8087   else
8088     ac_cpp_err=
8089   fi
8090 else
8091   ac_cpp_err=yes
8092 fi
8093 if test -z "$ac_cpp_err"; then
8094   # We can compile using X headers with no special include directory.
8095 ac_x_includes=
8096 else
8097   echo "$as_me: failed program was:" >&5
8098 sed 's/^/| /' conftest.$ac_ext >&5
8099
8100   for ac_dir in $ac_x_header_dirs; do
8101   if test -r "$ac_dir/X11/Intrinsic.h"; then
8102     ac_x_includes=$ac_dir
8103     break
8104   fi
8105 done
8106 fi
8107 rm -f conftest.err conftest.$ac_ext
8108 fi # $ac_x_includes = no
8109
8110 if test "$ac_x_libraries" = no; then
8111   # Check for the libraries.
8112   # See if we find them without any special options.
8113   # Don't add to $LIBS permanently.
8114   ac_save_LIBS=$LIBS
8115   LIBS="-lXt $LIBS"
8116   cat >conftest.$ac_ext <<_ACEOF
8117 #line $LINENO "configure"
8118 /* confdefs.h.  */
8119 _ACEOF
8120 cat confdefs.h >>conftest.$ac_ext
8121 cat >>conftest.$ac_ext <<_ACEOF
8122 /* end confdefs.h.  */
8123 #include <X11/Intrinsic.h>
8124 int
8125 main ()
8126 {
8127 XtMalloc (0)
8128   ;
8129   return 0;
8130 }
8131 _ACEOF
8132 rm -f conftest.$ac_objext conftest$ac_exeext
8133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8134   (eval $ac_link) 2>&5
8135   ac_status=$?
8136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8137   (exit $ac_status); } &&
8138          { ac_try='test -s conftest$ac_exeext'
8139   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8140   (eval $ac_try) 2>&5
8141   ac_status=$?
8142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8143   (exit $ac_status); }; }; then
8144   LIBS=$ac_save_LIBS
8145 # We can link X programs with no special library path.
8146 ac_x_libraries=
8147 else
8148   echo "$as_me: failed program was:" >&5
8149 sed 's/^/| /' conftest.$ac_ext >&5
8150
8151 LIBS=$ac_save_LIBS
8152 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8153 do
8154   # Don't even attempt the hair of trying to link an X program!
8155   for ac_extension in a so sl; do
8156     if test -r $ac_dir/libXt.$ac_extension; then
8157       ac_x_libraries=$ac_dir
8158       break 2
8159     fi
8160   done
8161 done
8162 fi
8163 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8164 fi # $ac_x_libraries = no
8165
8166 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
8167   # Didn't find X anywhere.  Cache the known absence of X.
8168   ac_cv_have_x="have_x=no"
8169 else
8170   # Record where we found X for the cache.
8171   ac_cv_have_x="have_x=yes \
8172                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8173 fi
8174 fi
8175
8176   fi
8177   eval "$ac_cv_have_x"
8178 fi # $with_x != no
8179
8180 if test "$have_x" != yes; then
8181   echo "$as_me:$LINENO: result: $have_x" >&5
8182 echo "${ECHO_T}$have_x" >&6
8183   no_x=yes
8184 else
8185   # If each of the values was on the command line, it overrides each guess.
8186   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8187   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8188   # Update the cache value to reflect the command line values.
8189   ac_cv_have_x="have_x=yes \
8190                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8191   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
8192 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
8193 fi
8194
8195 if test "$no_x" = yes; then
8196   # Not all programs may use this symbol, but it does not hurt to define it.
8197
8198 cat >>confdefs.h <<\_ACEOF
8199 #define X_DISPLAY_MISSING 1
8200 _ACEOF
8201
8202   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
8203 else
8204   if test -n "$x_includes"; then
8205     X_CFLAGS="$X_CFLAGS -I$x_includes"
8206   fi
8207
8208   # It would also be nice to do this for all -L options, not just this one.
8209   if test -n "$x_libraries"; then
8210     X_LIBS="$X_LIBS -L$x_libraries"
8211     # For Solaris; some versions of Sun CC require a space after -R and
8212     # others require no space.  Words are not sufficient . . . .
8213     case `(uname -sr) 2>/dev/null` in
8214     "SunOS 5"*)
8215       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
8216 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
8217       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
8218       cat >conftest.$ac_ext <<_ACEOF
8219 #line $LINENO "configure"
8220 /* confdefs.h.  */
8221 _ACEOF
8222 cat confdefs.h >>conftest.$ac_ext
8223 cat >>conftest.$ac_ext <<_ACEOF
8224 /* end confdefs.h.  */
8225
8226 int
8227 main ()
8228 {
8229
8230   ;
8231   return 0;
8232 }
8233 _ACEOF
8234 rm -f conftest.$ac_objext conftest$ac_exeext
8235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8236   (eval $ac_link) 2>&5
8237   ac_status=$?
8238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8239   (exit $ac_status); } &&
8240          { ac_try='test -s conftest$ac_exeext'
8241   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8242   (eval $ac_try) 2>&5
8243   ac_status=$?
8244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8245   (exit $ac_status); }; }; then
8246   ac_R_nospace=yes
8247 else
8248   echo "$as_me: failed program was:" >&5
8249 sed 's/^/| /' conftest.$ac_ext >&5
8250
8251 ac_R_nospace=no
8252 fi
8253 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8254       if test $ac_R_nospace = yes; then
8255         echo "$as_me:$LINENO: result: no" >&5
8256 echo "${ECHO_T}no" >&6
8257         X_LIBS="$X_LIBS -R$x_libraries"
8258       else
8259         LIBS="$ac_xsave_LIBS -R $x_libraries"
8260         cat >conftest.$ac_ext <<_ACEOF
8261 #line $LINENO "configure"
8262 /* confdefs.h.  */
8263 _ACEOF
8264 cat confdefs.h >>conftest.$ac_ext
8265 cat >>conftest.$ac_ext <<_ACEOF
8266 /* end confdefs.h.  */
8267
8268 int
8269 main ()
8270 {
8271
8272   ;
8273   return 0;
8274 }
8275 _ACEOF
8276 rm -f conftest.$ac_objext conftest$ac_exeext
8277 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8278   (eval $ac_link) 2>&5
8279   ac_status=$?
8280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8281   (exit $ac_status); } &&
8282          { ac_try='test -s conftest$ac_exeext'
8283   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8284   (eval $ac_try) 2>&5
8285   ac_status=$?
8286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8287   (exit $ac_status); }; }; then
8288   ac_R_space=yes
8289 else
8290   echo "$as_me: failed program was:" >&5
8291 sed 's/^/| /' conftest.$ac_ext >&5
8292
8293 ac_R_space=no
8294 fi
8295 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8296         if test $ac_R_space = yes; then
8297           echo "$as_me:$LINENO: result: yes" >&5
8298 echo "${ECHO_T}yes" >&6
8299           X_LIBS="$X_LIBS -R $x_libraries"
8300         else
8301           echo "$as_me:$LINENO: result: neither works" >&5
8302 echo "${ECHO_T}neither works" >&6
8303         fi
8304       fi
8305       LIBS=$ac_xsave_LIBS
8306     esac
8307   fi
8308
8309   # Check for system-dependent libraries X programs must link with.
8310   # Do this before checking for the system-independent R6 libraries
8311   # (-lICE), since we may need -lsocket or whatever for X linking.
8312
8313   if test "$ISC" = yes; then
8314     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
8315   else
8316     # Martyn Johnson says this is needed for Ultrix, if the X
8317     # libraries were built with DECnet support.  And Karl Berry says
8318     # the Alpha needs dnet_stub (dnet does not exist).
8319     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
8320     cat >conftest.$ac_ext <<_ACEOF
8321 #line $LINENO "configure"
8322 /* confdefs.h.  */
8323 _ACEOF
8324 cat confdefs.h >>conftest.$ac_ext
8325 cat >>conftest.$ac_ext <<_ACEOF
8326 /* end confdefs.h.  */
8327
8328 /* Override any gcc2 internal prototype to avoid an error.  */
8329 #ifdef __cplusplus
8330 extern "C"
8331 #endif
8332 /* We use char because int might match the return type of a gcc2
8333    builtin and then its argument prototype would still apply.  */
8334 char XOpenDisplay ();
8335 int
8336 main ()
8337 {
8338 XOpenDisplay ();
8339   ;
8340   return 0;
8341 }
8342 _ACEOF
8343 rm -f conftest.$ac_objext conftest$ac_exeext
8344 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8345   (eval $ac_link) 2>&5
8346   ac_status=$?
8347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8348   (exit $ac_status); } &&
8349          { ac_try='test -s conftest$ac_exeext'
8350   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8351   (eval $ac_try) 2>&5
8352   ac_status=$?
8353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8354   (exit $ac_status); }; }; then
8355   :
8356 else
8357   echo "$as_me: failed program was:" >&5
8358 sed 's/^/| /' conftest.$ac_ext >&5
8359
8360 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
8361 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
8362 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
8363   echo $ECHO_N "(cached) $ECHO_C" >&6
8364 else
8365   ac_check_lib_save_LIBS=$LIBS
8366 LIBS="-ldnet  $LIBS"
8367 cat >conftest.$ac_ext <<_ACEOF
8368 #line $LINENO "configure"
8369 /* confdefs.h.  */
8370 _ACEOF
8371 cat confdefs.h >>conftest.$ac_ext
8372 cat >>conftest.$ac_ext <<_ACEOF
8373 /* end confdefs.h.  */
8374
8375 /* Override any gcc2 internal prototype to avoid an error.  */
8376 #ifdef __cplusplus
8377 extern "C"
8378 #endif
8379 /* We use char because int might match the return type of a gcc2
8380    builtin and then its argument prototype would still apply.  */
8381 char dnet_ntoa ();
8382 int
8383 main ()
8384 {
8385 dnet_ntoa ();
8386   ;
8387   return 0;
8388 }
8389 _ACEOF
8390 rm -f conftest.$ac_objext conftest$ac_exeext
8391 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8392   (eval $ac_link) 2>&5
8393   ac_status=$?
8394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8395   (exit $ac_status); } &&
8396          { ac_try='test -s conftest$ac_exeext'
8397   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8398   (eval $ac_try) 2>&5
8399   ac_status=$?
8400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8401   (exit $ac_status); }; }; then
8402   ac_cv_lib_dnet_dnet_ntoa=yes
8403 else
8404   echo "$as_me: failed program was:" >&5
8405 sed 's/^/| /' conftest.$ac_ext >&5
8406
8407 ac_cv_lib_dnet_dnet_ntoa=no
8408 fi
8409 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8410 LIBS=$ac_check_lib_save_LIBS
8411 fi
8412 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8413 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
8414 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
8415   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
8416 fi
8417
8418     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
8419       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
8420 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
8421 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
8422   echo $ECHO_N "(cached) $ECHO_C" >&6
8423 else
8424   ac_check_lib_save_LIBS=$LIBS
8425 LIBS="-ldnet_stub  $LIBS"
8426 cat >conftest.$ac_ext <<_ACEOF
8427 #line $LINENO "configure"
8428 /* confdefs.h.  */
8429 _ACEOF
8430 cat confdefs.h >>conftest.$ac_ext
8431 cat >>conftest.$ac_ext <<_ACEOF
8432 /* end confdefs.h.  */
8433
8434 /* Override any gcc2 internal prototype to avoid an error.  */
8435 #ifdef __cplusplus
8436 extern "C"
8437 #endif
8438 /* We use char because int might match the return type of a gcc2
8439    builtin and then its argument prototype would still apply.  */
8440 char dnet_ntoa ();
8441 int
8442 main ()
8443 {
8444 dnet_ntoa ();
8445   ;
8446   return 0;
8447 }
8448 _ACEOF
8449 rm -f conftest.$ac_objext conftest$ac_exeext
8450 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8451   (eval $ac_link) 2>&5
8452   ac_status=$?
8453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8454   (exit $ac_status); } &&
8455          { ac_try='test -s conftest$ac_exeext'
8456   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8457   (eval $ac_try) 2>&5
8458   ac_status=$?
8459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8460   (exit $ac_status); }; }; then
8461   ac_cv_lib_dnet_stub_dnet_ntoa=yes
8462 else
8463   echo "$as_me: failed program was:" >&5
8464 sed 's/^/| /' conftest.$ac_ext >&5
8465
8466 ac_cv_lib_dnet_stub_dnet_ntoa=no
8467 fi
8468 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8469 LIBS=$ac_check_lib_save_LIBS
8470 fi
8471 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
8472 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
8473 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
8474   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
8475 fi
8476
8477     fi
8478 fi
8479 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8480     LIBS="$ac_xsave_LIBS"
8481
8482     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
8483     # to get the SysV transport functions.
8484     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
8485     # needs -lnsl.
8486     # The nsl library prevents programs from opening the X display
8487     # on Irix 5.2, according to T.E. Dickey.
8488     # The functions gethostbyname, getservbyname, and inet_addr are
8489     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
8490     echo "$as_me:$LINENO: checking for gethostbyname" >&5
8491 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
8492 if test "${ac_cv_func_gethostbyname+set}" = set; then
8493   echo $ECHO_N "(cached) $ECHO_C" >&6
8494 else
8495   cat >conftest.$ac_ext <<_ACEOF
8496 #line $LINENO "configure"
8497 /* confdefs.h.  */
8498 _ACEOF
8499 cat confdefs.h >>conftest.$ac_ext
8500 cat >>conftest.$ac_ext <<_ACEOF
8501 /* end confdefs.h.  */
8502 /* System header to define __stub macros and hopefully few prototypes,
8503     which can conflict with char gethostbyname (); below.
8504     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8505     <limits.h> exists even on freestanding compilers.  */
8506 #ifdef __STDC__
8507 # include <limits.h>
8508 #else
8509 # include <assert.h>
8510 #endif
8511 /* Override any gcc2 internal prototype to avoid an error.  */
8512 #ifdef __cplusplus
8513 extern "C"
8514 {
8515 #endif
8516 /* We use char because int might match the return type of a gcc2
8517    builtin and then its argument prototype would still apply.  */
8518 char gethostbyname ();
8519 /* The GNU C library defines this for functions which it implements
8520     to always fail with ENOSYS.  Some functions are actually named
8521     something starting with __ and the normal name is an alias.  */
8522 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
8523 choke me
8524 #else
8525 char (*f) () = gethostbyname;
8526 #endif
8527 #ifdef __cplusplus
8528 }
8529 #endif
8530
8531 int
8532 main ()
8533 {
8534 return f != gethostbyname;
8535   ;
8536   return 0;
8537 }
8538 _ACEOF
8539 rm -f conftest.$ac_objext conftest$ac_exeext
8540 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8541   (eval $ac_link) 2>&5
8542   ac_status=$?
8543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8544   (exit $ac_status); } &&
8545          { ac_try='test -s conftest$ac_exeext'
8546   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8547   (eval $ac_try) 2>&5
8548   ac_status=$?
8549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8550   (exit $ac_status); }; }; then
8551   ac_cv_func_gethostbyname=yes
8552 else
8553   echo "$as_me: failed program was:" >&5
8554 sed 's/^/| /' conftest.$ac_ext >&5
8555
8556 ac_cv_func_gethostbyname=no
8557 fi
8558 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8559 fi
8560 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
8561 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
8562
8563     if test $ac_cv_func_gethostbyname = no; then
8564       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
8565 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
8566 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
8567   echo $ECHO_N "(cached) $ECHO_C" >&6
8568 else
8569   ac_check_lib_save_LIBS=$LIBS
8570 LIBS="-lnsl  $LIBS"
8571 cat >conftest.$ac_ext <<_ACEOF
8572 #line $LINENO "configure"
8573 /* confdefs.h.  */
8574 _ACEOF
8575 cat confdefs.h >>conftest.$ac_ext
8576 cat >>conftest.$ac_ext <<_ACEOF
8577 /* end confdefs.h.  */
8578
8579 /* Override any gcc2 internal prototype to avoid an error.  */
8580 #ifdef __cplusplus
8581 extern "C"
8582 #endif
8583 /* We use char because int might match the return type of a gcc2
8584    builtin and then its argument prototype would still apply.  */
8585 char gethostbyname ();
8586 int
8587 main ()
8588 {
8589 gethostbyname ();
8590   ;
8591   return 0;
8592 }
8593 _ACEOF
8594 rm -f conftest.$ac_objext conftest$ac_exeext
8595 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8596   (eval $ac_link) 2>&5
8597   ac_status=$?
8598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8599   (exit $ac_status); } &&
8600          { ac_try='test -s conftest$ac_exeext'
8601   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8602   (eval $ac_try) 2>&5
8603   ac_status=$?
8604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8605   (exit $ac_status); }; }; then
8606   ac_cv_lib_nsl_gethostbyname=yes
8607 else
8608   echo "$as_me: failed program was:" >&5
8609 sed 's/^/| /' conftest.$ac_ext >&5
8610
8611 ac_cv_lib_nsl_gethostbyname=no
8612 fi
8613 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8614 LIBS=$ac_check_lib_save_LIBS
8615 fi
8616 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
8617 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
8618 if test $ac_cv_lib_nsl_gethostbyname = yes; then
8619   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
8620 fi
8621
8622       if test $ac_cv_lib_nsl_gethostbyname = no; then
8623         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
8624 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
8625 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
8626   echo $ECHO_N "(cached) $ECHO_C" >&6
8627 else
8628   ac_check_lib_save_LIBS=$LIBS
8629 LIBS="-lbsd  $LIBS"
8630 cat >conftest.$ac_ext <<_ACEOF
8631 #line $LINENO "configure"
8632 /* confdefs.h.  */
8633 _ACEOF
8634 cat confdefs.h >>conftest.$ac_ext
8635 cat >>conftest.$ac_ext <<_ACEOF
8636 /* end confdefs.h.  */
8637
8638 /* Override any gcc2 internal prototype to avoid an error.  */
8639 #ifdef __cplusplus
8640 extern "C"
8641 #endif
8642 /* We use char because int might match the return type of a gcc2
8643    builtin and then its argument prototype would still apply.  */
8644 char gethostbyname ();
8645 int
8646 main ()
8647 {
8648 gethostbyname ();
8649   ;
8650   return 0;
8651 }
8652 _ACEOF
8653 rm -f conftest.$ac_objext conftest$ac_exeext
8654 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8655   (eval $ac_link) 2>&5
8656   ac_status=$?
8657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8658   (exit $ac_status); } &&
8659          { ac_try='test -s conftest$ac_exeext'
8660   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8661   (eval $ac_try) 2>&5
8662   ac_status=$?
8663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8664   (exit $ac_status); }; }; then
8665   ac_cv_lib_bsd_gethostbyname=yes
8666 else
8667   echo "$as_me: failed program was:" >&5
8668 sed 's/^/| /' conftest.$ac_ext >&5
8669
8670 ac_cv_lib_bsd_gethostbyname=no
8671 fi
8672 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8673 LIBS=$ac_check_lib_save_LIBS
8674 fi
8675 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
8676 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
8677 if test $ac_cv_lib_bsd_gethostbyname = yes; then
8678   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
8679 fi
8680
8681       fi
8682     fi
8683
8684     # lieder@skyler.mavd.honeywell.com says without -lsocket,
8685     # socket/setsockopt and other routines are undefined under SCO ODT
8686     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
8687     # on later versions), says Simon Leinen: it contains gethostby*
8688     # variants that don't use the name server (or something).  -lsocket
8689     # must be given before -lnsl if both are needed.  We assume that
8690     # if connect needs -lnsl, so does gethostbyname.
8691     echo "$as_me:$LINENO: checking for connect" >&5
8692 echo $ECHO_N "checking for connect... $ECHO_C" >&6
8693 if test "${ac_cv_func_connect+set}" = set; then
8694   echo $ECHO_N "(cached) $ECHO_C" >&6
8695 else
8696   cat >conftest.$ac_ext <<_ACEOF
8697 #line $LINENO "configure"
8698 /* confdefs.h.  */
8699 _ACEOF
8700 cat confdefs.h >>conftest.$ac_ext
8701 cat >>conftest.$ac_ext <<_ACEOF
8702 /* end confdefs.h.  */
8703 /* System header to define __stub macros and hopefully few prototypes,
8704     which can conflict with char connect (); below.
8705     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8706     <limits.h> exists even on freestanding compilers.  */
8707 #ifdef __STDC__
8708 # include <limits.h>
8709 #else
8710 # include <assert.h>
8711 #endif
8712 /* Override any gcc2 internal prototype to avoid an error.  */
8713 #ifdef __cplusplus
8714 extern "C"
8715 {
8716 #endif
8717 /* We use char because int might match the return type of a gcc2
8718    builtin and then its argument prototype would still apply.  */
8719 char connect ();
8720 /* The GNU C library defines this for functions which it implements
8721     to always fail with ENOSYS.  Some functions are actually named
8722     something starting with __ and the normal name is an alias.  */
8723 #if defined (__stub_connect) || defined (__stub___connect)
8724 choke me
8725 #else
8726 char (*f) () = connect;
8727 #endif
8728 #ifdef __cplusplus
8729 }
8730 #endif
8731
8732 int
8733 main ()
8734 {
8735 return f != connect;
8736   ;
8737   return 0;
8738 }
8739 _ACEOF
8740 rm -f conftest.$ac_objext conftest$ac_exeext
8741 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8742   (eval $ac_link) 2>&5
8743   ac_status=$?
8744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8745   (exit $ac_status); } &&
8746          { ac_try='test -s conftest$ac_exeext'
8747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8748   (eval $ac_try) 2>&5
8749   ac_status=$?
8750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8751   (exit $ac_status); }; }; then
8752   ac_cv_func_connect=yes
8753 else
8754   echo "$as_me: failed program was:" >&5
8755 sed 's/^/| /' conftest.$ac_ext >&5
8756
8757 ac_cv_func_connect=no
8758 fi
8759 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8760 fi
8761 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
8762 echo "${ECHO_T}$ac_cv_func_connect" >&6
8763
8764     if test $ac_cv_func_connect = no; then
8765       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
8766 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
8767 if test "${ac_cv_lib_socket_connect+set}" = set; then
8768   echo $ECHO_N "(cached) $ECHO_C" >&6
8769 else
8770   ac_check_lib_save_LIBS=$LIBS
8771 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
8772 cat >conftest.$ac_ext <<_ACEOF
8773 #line $LINENO "configure"
8774 /* confdefs.h.  */
8775 _ACEOF
8776 cat confdefs.h >>conftest.$ac_ext
8777 cat >>conftest.$ac_ext <<_ACEOF
8778 /* end confdefs.h.  */
8779
8780 /* Override any gcc2 internal prototype to avoid an error.  */
8781 #ifdef __cplusplus
8782 extern "C"
8783 #endif
8784 /* We use char because int might match the return type of a gcc2
8785    builtin and then its argument prototype would still apply.  */
8786 char connect ();
8787 int
8788 main ()
8789 {
8790 connect ();
8791   ;
8792   return 0;
8793 }
8794 _ACEOF
8795 rm -f conftest.$ac_objext conftest$ac_exeext
8796 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8797   (eval $ac_link) 2>&5
8798   ac_status=$?
8799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8800   (exit $ac_status); } &&
8801          { ac_try='test -s conftest$ac_exeext'
8802   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8803   (eval $ac_try) 2>&5
8804   ac_status=$?
8805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8806   (exit $ac_status); }; }; then
8807   ac_cv_lib_socket_connect=yes
8808 else
8809   echo "$as_me: failed program was:" >&5
8810 sed 's/^/| /' conftest.$ac_ext >&5
8811
8812 ac_cv_lib_socket_connect=no
8813 fi
8814 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8815 LIBS=$ac_check_lib_save_LIBS
8816 fi
8817 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
8818 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
8819 if test $ac_cv_lib_socket_connect = yes; then
8820   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
8821 fi
8822
8823     fi
8824
8825     # Guillermo Gomez says -lposix is necessary on A/UX.
8826     echo "$as_me:$LINENO: checking for remove" >&5
8827 echo $ECHO_N "checking for remove... $ECHO_C" >&6
8828 if test "${ac_cv_func_remove+set}" = set; then
8829   echo $ECHO_N "(cached) $ECHO_C" >&6
8830 else
8831   cat >conftest.$ac_ext <<_ACEOF
8832 #line $LINENO "configure"
8833 /* confdefs.h.  */
8834 _ACEOF
8835 cat confdefs.h >>conftest.$ac_ext
8836 cat >>conftest.$ac_ext <<_ACEOF
8837 /* end confdefs.h.  */
8838 /* System header to define __stub macros and hopefully few prototypes,
8839     which can conflict with char remove (); below.
8840     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8841     <limits.h> exists even on freestanding compilers.  */
8842 #ifdef __STDC__
8843 # include <limits.h>
8844 #else
8845 # include <assert.h>
8846 #endif
8847 /* Override any gcc2 internal prototype to avoid an error.  */
8848 #ifdef __cplusplus
8849 extern "C"
8850 {
8851 #endif
8852 /* We use char because int might match the return type of a gcc2
8853    builtin and then its argument prototype would still apply.  */
8854 char remove ();
8855 /* The GNU C library defines this for functions which it implements
8856     to always fail with ENOSYS.  Some functions are actually named
8857     something starting with __ and the normal name is an alias.  */
8858 #if defined (__stub_remove) || defined (__stub___remove)
8859 choke me
8860 #else
8861 char (*f) () = remove;
8862 #endif
8863 #ifdef __cplusplus
8864 }
8865 #endif
8866
8867 int
8868 main ()
8869 {
8870 return f != remove;
8871   ;
8872   return 0;
8873 }
8874 _ACEOF
8875 rm -f conftest.$ac_objext conftest$ac_exeext
8876 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8877   (eval $ac_link) 2>&5
8878   ac_status=$?
8879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8880   (exit $ac_status); } &&
8881          { ac_try='test -s conftest$ac_exeext'
8882   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8883   (eval $ac_try) 2>&5
8884   ac_status=$?
8885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8886   (exit $ac_status); }; }; then
8887   ac_cv_func_remove=yes
8888 else
8889   echo "$as_me: failed program was:" >&5
8890 sed 's/^/| /' conftest.$ac_ext >&5
8891
8892 ac_cv_func_remove=no
8893 fi
8894 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8895 fi
8896 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
8897 echo "${ECHO_T}$ac_cv_func_remove" >&6
8898
8899     if test $ac_cv_func_remove = no; then
8900       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
8901 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
8902 if test "${ac_cv_lib_posix_remove+set}" = set; then
8903   echo $ECHO_N "(cached) $ECHO_C" >&6
8904 else
8905   ac_check_lib_save_LIBS=$LIBS
8906 LIBS="-lposix  $LIBS"
8907 cat >conftest.$ac_ext <<_ACEOF
8908 #line $LINENO "configure"
8909 /* confdefs.h.  */
8910 _ACEOF
8911 cat confdefs.h >>conftest.$ac_ext
8912 cat >>conftest.$ac_ext <<_ACEOF
8913 /* end confdefs.h.  */
8914
8915 /* Override any gcc2 internal prototype to avoid an error.  */
8916 #ifdef __cplusplus
8917 extern "C"
8918 #endif
8919 /* We use char because int might match the return type of a gcc2
8920    builtin and then its argument prototype would still apply.  */
8921 char remove ();
8922 int
8923 main ()
8924 {
8925 remove ();
8926   ;
8927   return 0;
8928 }
8929 _ACEOF
8930 rm -f conftest.$ac_objext conftest$ac_exeext
8931 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8932   (eval $ac_link) 2>&5
8933   ac_status=$?
8934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8935   (exit $ac_status); } &&
8936          { ac_try='test -s conftest$ac_exeext'
8937   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8938   (eval $ac_try) 2>&5
8939   ac_status=$?
8940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8941   (exit $ac_status); }; }; then
8942   ac_cv_lib_posix_remove=yes
8943 else
8944   echo "$as_me: failed program was:" >&5
8945 sed 's/^/| /' conftest.$ac_ext >&5
8946
8947 ac_cv_lib_posix_remove=no
8948 fi
8949 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8950 LIBS=$ac_check_lib_save_LIBS
8951 fi
8952 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
8953 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
8954 if test $ac_cv_lib_posix_remove = yes; then
8955   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
8956 fi
8957
8958     fi
8959
8960     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
8961     echo "$as_me:$LINENO: checking for shmat" >&5
8962 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
8963 if test "${ac_cv_func_shmat+set}" = set; then
8964   echo $ECHO_N "(cached) $ECHO_C" >&6
8965 else
8966   cat >conftest.$ac_ext <<_ACEOF
8967 #line $LINENO "configure"
8968 /* confdefs.h.  */
8969 _ACEOF
8970 cat confdefs.h >>conftest.$ac_ext
8971 cat >>conftest.$ac_ext <<_ACEOF
8972 /* end confdefs.h.  */
8973 /* System header to define __stub macros and hopefully few prototypes,
8974     which can conflict with char shmat (); below.
8975     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8976     <limits.h> exists even on freestanding compilers.  */
8977 #ifdef __STDC__
8978 # include <limits.h>
8979 #else
8980 # include <assert.h>
8981 #endif
8982 /* Override any gcc2 internal prototype to avoid an error.  */
8983 #ifdef __cplusplus
8984 extern "C"
8985 {
8986 #endif
8987 /* We use char because int might match the return type of a gcc2
8988    builtin and then its argument prototype would still apply.  */
8989 char shmat ();
8990 /* The GNU C library defines this for functions which it implements
8991     to always fail with ENOSYS.  Some functions are actually named
8992     something starting with __ and the normal name is an alias.  */
8993 #if defined (__stub_shmat) || defined (__stub___shmat)
8994 choke me
8995 #else
8996 char (*f) () = shmat;
8997 #endif
8998 #ifdef __cplusplus
8999 }
9000 #endif
9001
9002 int
9003 main ()
9004 {
9005 return f != shmat;
9006   ;
9007   return 0;
9008 }
9009 _ACEOF
9010 rm -f conftest.$ac_objext conftest$ac_exeext
9011 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9012   (eval $ac_link) 2>&5
9013   ac_status=$?
9014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9015   (exit $ac_status); } &&
9016          { ac_try='test -s conftest$ac_exeext'
9017   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9018   (eval $ac_try) 2>&5
9019   ac_status=$?
9020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9021   (exit $ac_status); }; }; then
9022   ac_cv_func_shmat=yes
9023 else
9024   echo "$as_me: failed program was:" >&5
9025 sed 's/^/| /' conftest.$ac_ext >&5
9026
9027 ac_cv_func_shmat=no
9028 fi
9029 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9030 fi
9031 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
9032 echo "${ECHO_T}$ac_cv_func_shmat" >&6
9033
9034     if test $ac_cv_func_shmat = no; then
9035       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
9036 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
9037 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
9038   echo $ECHO_N "(cached) $ECHO_C" >&6
9039 else
9040   ac_check_lib_save_LIBS=$LIBS
9041 LIBS="-lipc  $LIBS"
9042 cat >conftest.$ac_ext <<_ACEOF
9043 #line $LINENO "configure"
9044 /* confdefs.h.  */
9045 _ACEOF
9046 cat confdefs.h >>conftest.$ac_ext
9047 cat >>conftest.$ac_ext <<_ACEOF
9048 /* end confdefs.h.  */
9049
9050 /* Override any gcc2 internal prototype to avoid an error.  */
9051 #ifdef __cplusplus
9052 extern "C"
9053 #endif
9054 /* We use char because int might match the return type of a gcc2
9055    builtin and then its argument prototype would still apply.  */
9056 char shmat ();
9057 int
9058 main ()
9059 {
9060 shmat ();
9061   ;
9062   return 0;
9063 }
9064 _ACEOF
9065 rm -f conftest.$ac_objext conftest$ac_exeext
9066 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9067   (eval $ac_link) 2>&5
9068   ac_status=$?
9069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9070   (exit $ac_status); } &&
9071          { ac_try='test -s conftest$ac_exeext'
9072   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9073   (eval $ac_try) 2>&5
9074   ac_status=$?
9075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9076   (exit $ac_status); }; }; then
9077   ac_cv_lib_ipc_shmat=yes
9078 else
9079   echo "$as_me: failed program was:" >&5
9080 sed 's/^/| /' conftest.$ac_ext >&5
9081
9082 ac_cv_lib_ipc_shmat=no
9083 fi
9084 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9085 LIBS=$ac_check_lib_save_LIBS
9086 fi
9087 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
9088 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
9089 if test $ac_cv_lib_ipc_shmat = yes; then
9090   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
9091 fi
9092
9093     fi
9094   fi
9095
9096   # Check for libraries that X11R6 Xt/Xaw programs need.
9097   ac_save_LDFLAGS=$LDFLAGS
9098   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
9099   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
9100   # check for ICE first), but we must link in the order -lSM -lICE or
9101   # we get undefined symbols.  So assume we have SM if we have ICE.
9102   # These have to be linked with before -lX11, unlike the other
9103   # libraries we check for below, so use a different variable.
9104   # John Interrante, Karl Berry
9105   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
9106 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
9107 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
9108   echo $ECHO_N "(cached) $ECHO_C" >&6
9109 else
9110   ac_check_lib_save_LIBS=$LIBS
9111 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
9112 cat >conftest.$ac_ext <<_ACEOF
9113 #line $LINENO "configure"
9114 /* confdefs.h.  */
9115 _ACEOF
9116 cat confdefs.h >>conftest.$ac_ext
9117 cat >>conftest.$ac_ext <<_ACEOF
9118 /* end confdefs.h.  */
9119
9120 /* Override any gcc2 internal prototype to avoid an error.  */
9121 #ifdef __cplusplus
9122 extern "C"
9123 #endif
9124 /* We use char because int might match the return type of a gcc2
9125    builtin and then its argument prototype would still apply.  */
9126 char IceConnectionNumber ();
9127 int
9128 main ()
9129 {
9130 IceConnectionNumber ();
9131   ;
9132   return 0;
9133 }
9134 _ACEOF
9135 rm -f conftest.$ac_objext conftest$ac_exeext
9136 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9137   (eval $ac_link) 2>&5
9138   ac_status=$?
9139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9140   (exit $ac_status); } &&
9141          { ac_try='test -s conftest$ac_exeext'
9142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9143   (eval $ac_try) 2>&5
9144   ac_status=$?
9145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9146   (exit $ac_status); }; }; then
9147   ac_cv_lib_ICE_IceConnectionNumber=yes
9148 else
9149   echo "$as_me: failed program was:" >&5
9150 sed 's/^/| /' conftest.$ac_ext >&5
9151
9152 ac_cv_lib_ICE_IceConnectionNumber=no
9153 fi
9154 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9155 LIBS=$ac_check_lib_save_LIBS
9156 fi
9157 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
9158 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
9159 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
9160   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
9161 fi
9162
9163   LDFLAGS=$ac_save_LDFLAGS
9164
9165 fi
9166
9167
9168
9169
9170
9171
9172
9173
9174
9175
9176
9177
9178
9179
9180
9181
9182
9183
9184
9185
9186
9187
9188
9189
9190 for ac_header in \
9191         assert.h \
9192         fcntl.h \
9193         grp.h \
9194         pwd.h \
9195         libc.h \
9196         limits.h \
9197         stdarg.h \
9198         stdlib.h \
9199         stdint.h \
9200         string.h \
9201         termios.h \
9202         unistd.h \
9203         sys/byteorder.h \
9204         sys/ioctl.h \
9205         sys/select.h \
9206         sys/sockio.h \
9207         sys/time.h \
9208         sys/socket.h \
9209         arpa/nameser.h \
9210         resolv.h \
9211         mtio.h \
9212         sys/mtio.h \
9213
9214 do
9215 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9216 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9217   echo "$as_me:$LINENO: checking for $ac_header" >&5
9218 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9219 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9220   echo $ECHO_N "(cached) $ECHO_C" >&6
9221 fi
9222 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9223 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9224 else
9225   # Is the header compilable?
9226 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9227 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9228 cat >conftest.$ac_ext <<_ACEOF
9229 #line $LINENO "configure"
9230 /* confdefs.h.  */
9231 _ACEOF
9232 cat confdefs.h >>conftest.$ac_ext
9233 cat >>conftest.$ac_ext <<_ACEOF
9234 /* end confdefs.h.  */
9235 $ac_includes_default
9236 #include <$ac_header>
9237 _ACEOF
9238 rm -f conftest.$ac_objext
9239 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9240   (eval $ac_compile) 2>&5
9241   ac_status=$?
9242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9243   (exit $ac_status); } &&
9244          { ac_try='test -s conftest.$ac_objext'
9245   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9246   (eval $ac_try) 2>&5
9247   ac_status=$?
9248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9249   (exit $ac_status); }; }; then
9250   ac_header_compiler=yes
9251 else
9252   echo "$as_me: failed program was:" >&5
9253 sed 's/^/| /' conftest.$ac_ext >&5
9254
9255 ac_header_compiler=no
9256 fi
9257 rm -f conftest.$ac_objext conftest.$ac_ext
9258 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9259 echo "${ECHO_T}$ac_header_compiler" >&6
9260
9261 # Is the header present?
9262 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9263 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9264 cat >conftest.$ac_ext <<_ACEOF
9265 #line $LINENO "configure"
9266 /* confdefs.h.  */
9267 _ACEOF
9268 cat confdefs.h >>conftest.$ac_ext
9269 cat >>conftest.$ac_ext <<_ACEOF
9270 /* end confdefs.h.  */
9271 #include <$ac_header>
9272 _ACEOF
9273 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9274   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9275   ac_status=$?
9276   grep -v '^ *+' conftest.er1 >conftest.err
9277   rm -f conftest.er1
9278   cat conftest.err >&5
9279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9280   (exit $ac_status); } >/dev/null; then
9281   if test -s conftest.err; then
9282     ac_cpp_err=$ac_c_preproc_warn_flag
9283   else
9284     ac_cpp_err=
9285   fi
9286 else
9287   ac_cpp_err=yes
9288 fi
9289 if test -z "$ac_cpp_err"; then
9290   ac_header_preproc=yes
9291 else
9292   echo "$as_me: failed program was:" >&5
9293 sed 's/^/| /' conftest.$ac_ext >&5
9294
9295   ac_header_preproc=no
9296 fi
9297 rm -f conftest.err conftest.$ac_ext
9298 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9299 echo "${ECHO_T}$ac_header_preproc" >&6
9300
9301 # So?  What about this header?
9302 case $ac_header_compiler:$ac_header_preproc in
9303   yes:no )
9304     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9305 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9306     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9307 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9308     (
9309       cat <<\_ASBOX
9310 ## ------------------------------------ ##
9311 ## Report this to bug-autoconf@gnu.org. ##
9312 ## ------------------------------------ ##
9313 _ASBOX
9314     ) |
9315       sed "s/^/$as_me: WARNING:     /" >&2
9316     ;;
9317   no:yes )
9318     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9319 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9320     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9321 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9322     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9323 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9324     (
9325       cat <<\_ASBOX
9326 ## ------------------------------------ ##
9327 ## Report this to bug-autoconf@gnu.org. ##
9328 ## ------------------------------------ ##
9329 _ASBOX
9330     ) |
9331       sed "s/^/$as_me: WARNING:     /" >&2
9332     ;;
9333 esac
9334 echo "$as_me:$LINENO: checking for $ac_header" >&5
9335 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9336 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9337   echo $ECHO_N "(cached) $ECHO_C" >&6
9338 else
9339   eval "$as_ac_Header=$ac_header_preproc"
9340 fi
9341 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9342 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9343
9344 fi
9345 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9346   cat >>confdefs.h <<_ACEOF
9347 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9348 _ACEOF
9349
9350 fi
9351
9352 done
9353
9354 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9355 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9356 if test "${ac_cv_header_stdc+set}" = set; then
9357   echo $ECHO_N "(cached) $ECHO_C" >&6
9358 else
9359   cat >conftest.$ac_ext <<_ACEOF
9360 #line $LINENO "configure"
9361 /* confdefs.h.  */
9362 _ACEOF
9363 cat confdefs.h >>conftest.$ac_ext
9364 cat >>conftest.$ac_ext <<_ACEOF
9365 /* end confdefs.h.  */
9366 #include <stdlib.h>
9367 #include <stdarg.h>
9368 #include <string.h>
9369 #include <float.h>
9370
9371 int
9372 main ()
9373 {
9374
9375   ;
9376   return 0;
9377 }
9378 _ACEOF
9379 rm -f conftest.$ac_objext
9380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9381   (eval $ac_compile) 2>&5
9382   ac_status=$?
9383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9384   (exit $ac_status); } &&
9385          { ac_try='test -s conftest.$ac_objext'
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_header_stdc=yes
9392 else
9393   echo "$as_me: failed program was:" >&5
9394 sed 's/^/| /' conftest.$ac_ext >&5
9395
9396 ac_cv_header_stdc=no
9397 fi
9398 rm -f conftest.$ac_objext conftest.$ac_ext
9399
9400 if test $ac_cv_header_stdc = yes; then
9401   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9402   cat >conftest.$ac_ext <<_ACEOF
9403 #line $LINENO "configure"
9404 /* confdefs.h.  */
9405 _ACEOF
9406 cat confdefs.h >>conftest.$ac_ext
9407 cat >>conftest.$ac_ext <<_ACEOF
9408 /* end confdefs.h.  */
9409 #include <string.h>
9410
9411 _ACEOF
9412 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9413   $EGREP "memchr" >/dev/null 2>&1; then
9414   :
9415 else
9416   ac_cv_header_stdc=no
9417 fi
9418 rm -f conftest*
9419
9420 fi
9421
9422 if test $ac_cv_header_stdc = yes; then
9423   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9424   cat >conftest.$ac_ext <<_ACEOF
9425 #line $LINENO "configure"
9426 /* confdefs.h.  */
9427 _ACEOF
9428 cat confdefs.h >>conftest.$ac_ext
9429 cat >>conftest.$ac_ext <<_ACEOF
9430 /* end confdefs.h.  */
9431 #include <stdlib.h>
9432
9433 _ACEOF
9434 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9435   $EGREP "free" >/dev/null 2>&1; then
9436   :
9437 else
9438   ac_cv_header_stdc=no
9439 fi
9440 rm -f conftest*
9441
9442 fi
9443
9444 if test $ac_cv_header_stdc = yes; then
9445   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9446   if test "$cross_compiling" = yes; then
9447   :
9448 else
9449   cat >conftest.$ac_ext <<_ACEOF
9450 #line $LINENO "configure"
9451 /* confdefs.h.  */
9452 _ACEOF
9453 cat confdefs.h >>conftest.$ac_ext
9454 cat >>conftest.$ac_ext <<_ACEOF
9455 /* end confdefs.h.  */
9456 #include <ctype.h>
9457 #if ((' ' & 0x0FF) == 0x020)
9458 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9459 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9460 #else
9461 # define ISLOWER(c) \
9462                    (('a' <= (c) && (c) <= 'i') \
9463                      || ('j' <= (c) && (c) <= 'r') \
9464                      || ('s' <= (c) && (c) <= 'z'))
9465 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9466 #endif
9467
9468 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9469 int
9470 main ()
9471 {
9472   int i;
9473   for (i = 0; i < 256; i++)
9474     if (XOR (islower (i), ISLOWER (i))
9475         || toupper (i) != TOUPPER (i))
9476       exit(2);
9477   exit (0);
9478 }
9479 _ACEOF
9480 rm -f conftest$ac_exeext
9481 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9482   (eval $ac_link) 2>&5
9483   ac_status=$?
9484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9485   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9486   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9487   (eval $ac_try) 2>&5
9488   ac_status=$?
9489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9490   (exit $ac_status); }; }; then
9491   :
9492 else
9493   echo "$as_me: program exited with status $ac_status" >&5
9494 echo "$as_me: failed program was:" >&5
9495 sed 's/^/| /' conftest.$ac_ext >&5
9496
9497 ( exit $ac_status )
9498 ac_cv_header_stdc=no
9499 fi
9500 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9501 fi
9502 fi
9503 fi
9504 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9505 echo "${ECHO_T}$ac_cv_header_stdc" >&6
9506 if test $ac_cv_header_stdc = yes; then
9507
9508 cat >>confdefs.h <<\_ACEOF
9509 #define STDC_HEADERS 1
9510 _ACEOF
9511
9512 fi
9513
9514 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
9515 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
9516 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
9517   echo $ECHO_N "(cached) $ECHO_C" >&6
9518 else
9519   cat >conftest.$ac_ext <<_ACEOF
9520 #line $LINENO "configure"
9521 /* confdefs.h.  */
9522 _ACEOF
9523 cat confdefs.h >>conftest.$ac_ext
9524 cat >>conftest.$ac_ext <<_ACEOF
9525 /* end confdefs.h.  */
9526 #include <sys/types.h>
9527 int
9528 main ()
9529 {
9530 return makedev(0, 0);
9531   ;
9532   return 0;
9533 }
9534 _ACEOF
9535 rm -f conftest.$ac_objext conftest$ac_exeext
9536 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9537   (eval $ac_link) 2>&5
9538   ac_status=$?
9539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9540   (exit $ac_status); } &&
9541          { ac_try='test -s conftest$ac_exeext'
9542   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9543   (eval $ac_try) 2>&5
9544   ac_status=$?
9545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9546   (exit $ac_status); }; }; then
9547   ac_cv_header_sys_types_h_makedev=yes
9548 else
9549   echo "$as_me: failed program was:" >&5
9550 sed 's/^/| /' conftest.$ac_ext >&5
9551
9552 ac_cv_header_sys_types_h_makedev=no
9553 fi
9554 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9555
9556 fi
9557 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
9558 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
9559
9560 if test $ac_cv_header_sys_types_h_makedev = no; then
9561 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
9562   echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
9563 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
9564 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
9565   echo $ECHO_N "(cached) $ECHO_C" >&6
9566 fi
9567 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
9568 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
9569 else
9570   # Is the header compilable?
9571 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
9572 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
9573 cat >conftest.$ac_ext <<_ACEOF
9574 #line $LINENO "configure"
9575 /* confdefs.h.  */
9576 _ACEOF
9577 cat confdefs.h >>conftest.$ac_ext
9578 cat >>conftest.$ac_ext <<_ACEOF
9579 /* end confdefs.h.  */
9580 $ac_includes_default
9581 #include <sys/mkdev.h>
9582 _ACEOF
9583 rm -f conftest.$ac_objext
9584 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9585   (eval $ac_compile) 2>&5
9586   ac_status=$?
9587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9588   (exit $ac_status); } &&
9589          { ac_try='test -s conftest.$ac_objext'
9590   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9591   (eval $ac_try) 2>&5
9592   ac_status=$?
9593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9594   (exit $ac_status); }; }; then
9595   ac_header_compiler=yes
9596 else
9597   echo "$as_me: failed program was:" >&5
9598 sed 's/^/| /' conftest.$ac_ext >&5
9599
9600 ac_header_compiler=no
9601 fi
9602 rm -f conftest.$ac_objext conftest.$ac_ext
9603 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9604 echo "${ECHO_T}$ac_header_compiler" >&6
9605
9606 # Is the header present?
9607 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
9608 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
9609 cat >conftest.$ac_ext <<_ACEOF
9610 #line $LINENO "configure"
9611 /* confdefs.h.  */
9612 _ACEOF
9613 cat confdefs.h >>conftest.$ac_ext
9614 cat >>conftest.$ac_ext <<_ACEOF
9615 /* end confdefs.h.  */
9616 #include <sys/mkdev.h>
9617 _ACEOF
9618 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9619   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9620   ac_status=$?
9621   grep -v '^ *+' conftest.er1 >conftest.err
9622   rm -f conftest.er1
9623   cat conftest.err >&5
9624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9625   (exit $ac_status); } >/dev/null; then
9626   if test -s conftest.err; then
9627     ac_cpp_err=$ac_c_preproc_warn_flag
9628   else
9629     ac_cpp_err=
9630   fi
9631 else
9632   ac_cpp_err=yes
9633 fi
9634 if test -z "$ac_cpp_err"; then
9635   ac_header_preproc=yes
9636 else
9637   echo "$as_me: failed program was:" >&5
9638 sed 's/^/| /' conftest.$ac_ext >&5
9639
9640   ac_header_preproc=no
9641 fi
9642 rm -f conftest.err conftest.$ac_ext
9643 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9644 echo "${ECHO_T}$ac_header_preproc" >&6
9645
9646 # So?  What about this header?
9647 case $ac_header_compiler:$ac_header_preproc in
9648   yes:no )
9649     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
9650 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9651     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
9652 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
9653     (
9654       cat <<\_ASBOX
9655 ## ------------------------------------ ##
9656 ## Report this to bug-autoconf@gnu.org. ##
9657 ## ------------------------------------ ##
9658 _ASBOX
9659     ) |
9660       sed "s/^/$as_me: WARNING:     /" >&2
9661     ;;
9662   no:yes )
9663     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
9664 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
9665     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
9666 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
9667     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
9668 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
9669     (
9670       cat <<\_ASBOX
9671 ## ------------------------------------ ##
9672 ## Report this to bug-autoconf@gnu.org. ##
9673 ## ------------------------------------ ##
9674 _ASBOX
9675     ) |
9676       sed "s/^/$as_me: WARNING:     /" >&2
9677     ;;
9678 esac
9679 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
9680 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
9681 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
9682   echo $ECHO_N "(cached) $ECHO_C" >&6
9683 else
9684   ac_cv_header_sys_mkdev_h=$ac_header_preproc
9685 fi
9686 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
9687 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
9688
9689 fi
9690 if test $ac_cv_header_sys_mkdev_h = yes; then
9691
9692 cat >>confdefs.h <<\_ACEOF
9693 #define MAJOR_IN_MKDEV 1
9694 _ACEOF
9695
9696 fi
9697
9698
9699
9700   if test $ac_cv_header_sys_mkdev_h = no; then
9701     if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
9702   echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
9703 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
9704 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
9705   echo $ECHO_N "(cached) $ECHO_C" >&6
9706 fi
9707 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
9708 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
9709 else
9710   # Is the header compilable?
9711 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
9712 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
9713 cat >conftest.$ac_ext <<_ACEOF
9714 #line $LINENO "configure"
9715 /* confdefs.h.  */
9716 _ACEOF
9717 cat confdefs.h >>conftest.$ac_ext
9718 cat >>conftest.$ac_ext <<_ACEOF
9719 /* end confdefs.h.  */
9720 $ac_includes_default
9721 #include <sys/sysmacros.h>
9722 _ACEOF
9723 rm -f conftest.$ac_objext
9724 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9725   (eval $ac_compile) 2>&5
9726   ac_status=$?
9727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9728   (exit $ac_status); } &&
9729          { ac_try='test -s conftest.$ac_objext'
9730   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9731   (eval $ac_try) 2>&5
9732   ac_status=$?
9733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9734   (exit $ac_status); }; }; then
9735   ac_header_compiler=yes
9736 else
9737   echo "$as_me: failed program was:" >&5
9738 sed 's/^/| /' conftest.$ac_ext >&5
9739
9740 ac_header_compiler=no
9741 fi
9742 rm -f conftest.$ac_objext conftest.$ac_ext
9743 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9744 echo "${ECHO_T}$ac_header_compiler" >&6
9745
9746 # Is the header present?
9747 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
9748 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
9749 cat >conftest.$ac_ext <<_ACEOF
9750 #line $LINENO "configure"
9751 /* confdefs.h.  */
9752 _ACEOF
9753 cat confdefs.h >>conftest.$ac_ext
9754 cat >>conftest.$ac_ext <<_ACEOF
9755 /* end confdefs.h.  */
9756 #include <sys/sysmacros.h>
9757 _ACEOF
9758 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9759   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9760   ac_status=$?
9761   grep -v '^ *+' conftest.er1 >conftest.err
9762   rm -f conftest.er1
9763   cat conftest.err >&5
9764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9765   (exit $ac_status); } >/dev/null; then
9766   if test -s conftest.err; then
9767     ac_cpp_err=$ac_c_preproc_warn_flag
9768   else
9769     ac_cpp_err=
9770   fi
9771 else
9772   ac_cpp_err=yes
9773 fi
9774 if test -z "$ac_cpp_err"; then
9775   ac_header_preproc=yes
9776 else
9777   echo "$as_me: failed program was:" >&5
9778 sed 's/^/| /' conftest.$ac_ext >&5
9779
9780   ac_header_preproc=no
9781 fi
9782 rm -f conftest.err conftest.$ac_ext
9783 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9784 echo "${ECHO_T}$ac_header_preproc" >&6
9785
9786 # So?  What about this header?
9787 case $ac_header_compiler:$ac_header_preproc in
9788   yes:no )
9789     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
9790 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9791     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
9792 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
9793     (
9794       cat <<\_ASBOX
9795 ## ------------------------------------ ##
9796 ## Report this to bug-autoconf@gnu.org. ##
9797 ## ------------------------------------ ##
9798 _ASBOX
9799     ) |
9800       sed "s/^/$as_me: WARNING:     /" >&2
9801     ;;
9802   no:yes )
9803     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
9804 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
9805     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
9806 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
9807     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
9808 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
9809     (
9810       cat <<\_ASBOX
9811 ## ------------------------------------ ##
9812 ## Report this to bug-autoconf@gnu.org. ##
9813 ## ------------------------------------ ##
9814 _ASBOX
9815     ) |
9816       sed "s/^/$as_me: WARNING:     /" >&2
9817     ;;
9818 esac
9819 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
9820 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
9821 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
9822   echo $ECHO_N "(cached) $ECHO_C" >&6
9823 else
9824   ac_cv_header_sys_sysmacros_h=$ac_header_preproc
9825 fi
9826 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
9827 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
9828
9829 fi
9830 if test $ac_cv_header_sys_sysmacros_h = yes; then
9831
9832 cat >>confdefs.h <<\_ACEOF
9833 #define MAJOR_IN_SYSMACROS 1
9834 _ACEOF
9835
9836 fi
9837
9838
9839   fi
9840 fi
9841
9842
9843
9844
9845
9846
9847 ac_header_dirent=no
9848 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9849   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9850 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9851 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
9852 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9853   echo $ECHO_N "(cached) $ECHO_C" >&6
9854 else
9855   cat >conftest.$ac_ext <<_ACEOF
9856 #line $LINENO "configure"
9857 /* confdefs.h.  */
9858 _ACEOF
9859 cat confdefs.h >>conftest.$ac_ext
9860 cat >>conftest.$ac_ext <<_ACEOF
9861 /* end confdefs.h.  */
9862 #include <sys/types.h>
9863 #include <$ac_hdr>
9864
9865 int
9866 main ()
9867 {
9868 if ((DIR *) 0)
9869 return 0;
9870   ;
9871   return 0;
9872 }
9873 _ACEOF
9874 rm -f conftest.$ac_objext
9875 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9876   (eval $ac_compile) 2>&5
9877   ac_status=$?
9878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9879   (exit $ac_status); } &&
9880          { ac_try='test -s conftest.$ac_objext'
9881   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9882   (eval $ac_try) 2>&5
9883   ac_status=$?
9884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9885   (exit $ac_status); }; }; then
9886   eval "$as_ac_Header=yes"
9887 else
9888   echo "$as_me: failed program was:" >&5
9889 sed 's/^/| /' conftest.$ac_ext >&5
9890
9891 eval "$as_ac_Header=no"
9892 fi
9893 rm -f conftest.$ac_objext conftest.$ac_ext
9894 fi
9895 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9896 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9897 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9898   cat >>confdefs.h <<_ACEOF
9899 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9900 _ACEOF
9901
9902 ac_header_dirent=$ac_hdr; break
9903 fi
9904
9905 done
9906 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9907 if test $ac_header_dirent = dirent.h; then
9908   echo "$as_me:$LINENO: checking for library containing opendir" >&5
9909 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9910 if test "${ac_cv_search_opendir+set}" = set; then
9911   echo $ECHO_N "(cached) $ECHO_C" >&6
9912 else
9913   ac_func_search_save_LIBS=$LIBS
9914 ac_cv_search_opendir=no
9915 cat >conftest.$ac_ext <<_ACEOF
9916 #line $LINENO "configure"
9917 /* confdefs.h.  */
9918 _ACEOF
9919 cat confdefs.h >>conftest.$ac_ext
9920 cat >>conftest.$ac_ext <<_ACEOF
9921 /* end confdefs.h.  */
9922
9923 /* Override any gcc2 internal prototype to avoid an error.  */
9924 #ifdef __cplusplus
9925 extern "C"
9926 #endif
9927 /* We use char because int might match the return type of a gcc2
9928    builtin and then its argument prototype would still apply.  */
9929 char opendir ();
9930 int
9931 main ()
9932 {
9933 opendir ();
9934   ;
9935   return 0;
9936 }
9937 _ACEOF
9938 rm -f conftest.$ac_objext conftest$ac_exeext
9939 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9940   (eval $ac_link) 2>&5
9941   ac_status=$?
9942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9943   (exit $ac_status); } &&
9944          { ac_try='test -s conftest$ac_exeext'
9945   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9946   (eval $ac_try) 2>&5
9947   ac_status=$?
9948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9949   (exit $ac_status); }; }; then
9950   ac_cv_search_opendir="none required"
9951 else
9952   echo "$as_me: failed program was:" >&5
9953 sed 's/^/| /' conftest.$ac_ext >&5
9954
9955 fi
9956 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9957 if test "$ac_cv_search_opendir" = no; then
9958   for ac_lib in dir; do
9959     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9960     cat >conftest.$ac_ext <<_ACEOF
9961 #line $LINENO "configure"
9962 /* confdefs.h.  */
9963 _ACEOF
9964 cat confdefs.h >>conftest.$ac_ext
9965 cat >>conftest.$ac_ext <<_ACEOF
9966 /* end confdefs.h.  */
9967
9968 /* Override any gcc2 internal prototype to avoid an error.  */
9969 #ifdef __cplusplus
9970 extern "C"
9971 #endif
9972 /* We use char because int might match the return type of a gcc2
9973    builtin and then its argument prototype would still apply.  */
9974 char opendir ();
9975 int
9976 main ()
9977 {
9978 opendir ();
9979   ;
9980   return 0;
9981 }
9982 _ACEOF
9983 rm -f conftest.$ac_objext conftest$ac_exeext
9984 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9985   (eval $ac_link) 2>&5
9986   ac_status=$?
9987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9988   (exit $ac_status); } &&
9989          { ac_try='test -s conftest$ac_exeext'
9990   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9991   (eval $ac_try) 2>&5
9992   ac_status=$?
9993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9994   (exit $ac_status); }; }; then
9995   ac_cv_search_opendir="-l$ac_lib"
9996 break
9997 else
9998   echo "$as_me: failed program was:" >&5
9999 sed 's/^/| /' conftest.$ac_ext >&5
10000
10001 fi
10002 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10003   done
10004 fi
10005 LIBS=$ac_func_search_save_LIBS
10006 fi
10007 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10008 echo "${ECHO_T}$ac_cv_search_opendir" >&6
10009 if test "$ac_cv_search_opendir" != no; then
10010   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
10011
10012 fi
10013
10014 else
10015   echo "$as_me:$LINENO: checking for library containing opendir" >&5
10016 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
10017 if test "${ac_cv_search_opendir+set}" = set; then
10018   echo $ECHO_N "(cached) $ECHO_C" >&6
10019 else
10020   ac_func_search_save_LIBS=$LIBS
10021 ac_cv_search_opendir=no
10022 cat >conftest.$ac_ext <<_ACEOF
10023 #line $LINENO "configure"
10024 /* confdefs.h.  */
10025 _ACEOF
10026 cat confdefs.h >>conftest.$ac_ext
10027 cat >>conftest.$ac_ext <<_ACEOF
10028 /* end confdefs.h.  */
10029
10030 /* Override any gcc2 internal prototype to avoid an error.  */
10031 #ifdef __cplusplus
10032 extern "C"
10033 #endif
10034 /* We use char because int might match the return type of a gcc2
10035    builtin and then its argument prototype would still apply.  */
10036 char opendir ();
10037 int
10038 main ()
10039 {
10040 opendir ();
10041   ;
10042   return 0;
10043 }
10044 _ACEOF
10045 rm -f conftest.$ac_objext conftest$ac_exeext
10046 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10047   (eval $ac_link) 2>&5
10048   ac_status=$?
10049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10050   (exit $ac_status); } &&
10051          { ac_try='test -s conftest$ac_exeext'
10052   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10053   (eval $ac_try) 2>&5
10054   ac_status=$?
10055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10056   (exit $ac_status); }; }; then
10057   ac_cv_search_opendir="none required"
10058 else
10059   echo "$as_me: failed program was:" >&5
10060 sed 's/^/| /' conftest.$ac_ext >&5
10061
10062 fi
10063 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10064 if test "$ac_cv_search_opendir" = no; then
10065   for ac_lib in x; do
10066     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10067     cat >conftest.$ac_ext <<_ACEOF
10068 #line $LINENO "configure"
10069 /* confdefs.h.  */
10070 _ACEOF
10071 cat confdefs.h >>conftest.$ac_ext
10072 cat >>conftest.$ac_ext <<_ACEOF
10073 /* end confdefs.h.  */
10074
10075 /* Override any gcc2 internal prototype to avoid an error.  */
10076 #ifdef __cplusplus
10077 extern "C"
10078 #endif
10079 /* We use char because int might match the return type of a gcc2
10080    builtin and then its argument prototype would still apply.  */
10081 char opendir ();
10082 int
10083 main ()
10084 {
10085 opendir ();
10086   ;
10087   return 0;
10088 }
10089 _ACEOF
10090 rm -f conftest.$ac_objext conftest$ac_exeext
10091 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10092   (eval $ac_link) 2>&5
10093   ac_status=$?
10094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10095   (exit $ac_status); } &&
10096          { ac_try='test -s conftest$ac_exeext'
10097   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10098   (eval $ac_try) 2>&5
10099   ac_status=$?
10100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10101   (exit $ac_status); }; }; then
10102   ac_cv_search_opendir="-l$ac_lib"
10103 break
10104 else
10105   echo "$as_me: failed program was:" >&5
10106 sed 's/^/| /' conftest.$ac_ext >&5
10107
10108 fi
10109 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10110   done
10111 fi
10112 LIBS=$ac_func_search_save_LIBS
10113 fi
10114 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10115 echo "${ECHO_T}$ac_cv_search_opendir" >&6
10116 if test "$ac_cv_search_opendir" != no; then
10117   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
10118
10119 fi
10120
10121 fi
10122
10123 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
10124 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
10125 if test "${ac_cv_header_stat_broken+set}" = set; then
10126   echo $ECHO_N "(cached) $ECHO_C" >&6
10127 else
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/types.h>
10136 #include <sys/stat.h>
10137
10138 #if defined(S_ISBLK) && defined(S_IFDIR)
10139 # if S_ISBLK (S_IFDIR)
10140 You lose.
10141 # endif
10142 #endif
10143
10144 #if defined(S_ISBLK) && defined(S_IFCHR)
10145 # if S_ISBLK (S_IFCHR)
10146 You lose.
10147 # endif
10148 #endif
10149
10150 #if defined(S_ISLNK) && defined(S_IFREG)
10151 # if S_ISLNK (S_IFREG)
10152 You lose.
10153 # endif
10154 #endif
10155
10156 #if defined(S_ISSOCK) && defined(S_IFREG)
10157 # if S_ISSOCK (S_IFREG)
10158 You lose.
10159 # endif
10160 #endif
10161
10162 _ACEOF
10163 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10164   $EGREP "You lose" >/dev/null 2>&1; then
10165   ac_cv_header_stat_broken=yes
10166 else
10167   ac_cv_header_stat_broken=no
10168 fi
10169 rm -f conftest*
10170
10171 fi
10172 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
10173 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
10174 if test $ac_cv_header_stat_broken = yes; then
10175
10176 cat >>confdefs.h <<\_ACEOF
10177 #define STAT_MACROS_BROKEN 1
10178 _ACEOF
10179
10180 fi
10181
10182 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
10183 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
10184 if test "${ac_cv_header_sys_wait_h+set}" = set; then
10185   echo $ECHO_N "(cached) $ECHO_C" >&6
10186 else
10187   cat >conftest.$ac_ext <<_ACEOF
10188 #line $LINENO "configure"
10189 /* confdefs.h.  */
10190 _ACEOF
10191 cat confdefs.h >>conftest.$ac_ext
10192 cat >>conftest.$ac_ext <<_ACEOF
10193 /* end confdefs.h.  */
10194 #include <sys/types.h>
10195 #include <sys/wait.h>
10196 #ifndef WEXITSTATUS
10197 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
10198 #endif
10199 #ifndef WIFEXITED
10200 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
10201 #endif
10202
10203 int
10204 main ()
10205 {
10206   int s;
10207   wait (&s);
10208   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
10209   ;
10210   return 0;
10211 }
10212 _ACEOF
10213 rm -f conftest.$ac_objext
10214 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10215   (eval $ac_compile) 2>&5
10216   ac_status=$?
10217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10218   (exit $ac_status); } &&
10219          { ac_try='test -s conftest.$ac_objext'
10220   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10221   (eval $ac_try) 2>&5
10222   ac_status=$?
10223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10224   (exit $ac_status); }; }; then
10225   ac_cv_header_sys_wait_h=yes
10226 else
10227   echo "$as_me: failed program was:" >&5
10228 sed 's/^/| /' conftest.$ac_ext >&5
10229
10230 ac_cv_header_sys_wait_h=no
10231 fi
10232 rm -f conftest.$ac_objext conftest.$ac_ext
10233 fi
10234 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
10235 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
10236 if test $ac_cv_header_sys_wait_h = yes; then
10237
10238 cat >>confdefs.h <<\_ACEOF
10239 #define HAVE_SYS_WAIT_H 1
10240 _ACEOF
10241
10242 fi
10243
10244 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
10245 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
10246 if test "${ac_cv_header_time+set}" = set; then
10247   echo $ECHO_N "(cached) $ECHO_C" >&6
10248 else
10249   cat >conftest.$ac_ext <<_ACEOF
10250 #line $LINENO "configure"
10251 /* confdefs.h.  */
10252 _ACEOF
10253 cat confdefs.h >>conftest.$ac_ext
10254 cat >>conftest.$ac_ext <<_ACEOF
10255 /* end confdefs.h.  */
10256 #include <sys/types.h>
10257 #include <sys/time.h>
10258 #include <time.h>
10259
10260 int
10261 main ()
10262 {
10263 if ((struct tm *) 0)
10264 return 0;
10265   ;
10266   return 0;
10267 }
10268 _ACEOF
10269 rm -f conftest.$ac_objext
10270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10271   (eval $ac_compile) 2>&5
10272   ac_status=$?
10273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10274   (exit $ac_status); } &&
10275          { ac_try='test -s conftest.$ac_objext'
10276   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10277   (eval $ac_try) 2>&5
10278   ac_status=$?
10279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10280   (exit $ac_status); }; }; then
10281   ac_cv_header_time=yes
10282 else
10283   echo "$as_me: failed program was:" >&5
10284 sed 's/^/| /' conftest.$ac_ext >&5
10285
10286 ac_cv_header_time=no
10287 fi
10288 rm -f conftest.$ac_objext conftest.$ac_ext
10289 fi
10290 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
10291 echo "${ECHO_T}$ac_cv_header_time" >&6
10292 if test $ac_cv_header_time = yes; then
10293
10294 cat >>confdefs.h <<\_ACEOF
10295 #define TIME_WITH_SYS_TIME 1
10296 _ACEOF
10297
10298 fi
10299
10300
10301 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
10302 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
10303 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
10304   echo $ECHO_N "(cached) $ECHO_C" >&6
10305 else
10306   cat >conftest.$ac_ext <<_ACEOF
10307 #line $LINENO "configure"
10308 /* confdefs.h.  */
10309 _ACEOF
10310 cat confdefs.h >>conftest.$ac_ext
10311 cat >>conftest.$ac_ext <<_ACEOF
10312 /* end confdefs.h.  */
10313 $ac_includes_default
10314 int
10315 main ()
10316 {
10317 static struct stat ac_aggr;
10318 if (ac_aggr.st_blksize)
10319 return 0;
10320   ;
10321   return 0;
10322 }
10323 _ACEOF
10324 rm -f conftest.$ac_objext
10325 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10326   (eval $ac_compile) 2>&5
10327   ac_status=$?
10328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10329   (exit $ac_status); } &&
10330          { ac_try='test -s conftest.$ac_objext'
10331   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10332   (eval $ac_try) 2>&5
10333   ac_status=$?
10334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10335   (exit $ac_status); }; }; then
10336   ac_cv_member_struct_stat_st_blksize=yes
10337 else
10338   echo "$as_me: failed program was:" >&5
10339 sed 's/^/| /' conftest.$ac_ext >&5
10340
10341 cat >conftest.$ac_ext <<_ACEOF
10342 #line $LINENO "configure"
10343 /* confdefs.h.  */
10344 _ACEOF
10345 cat confdefs.h >>conftest.$ac_ext
10346 cat >>conftest.$ac_ext <<_ACEOF
10347 /* end confdefs.h.  */
10348 $ac_includes_default
10349 int
10350 main ()
10351 {
10352 static struct stat ac_aggr;
10353 if (sizeof ac_aggr.st_blksize)
10354 return 0;
10355   ;
10356   return 0;
10357 }
10358 _ACEOF
10359 rm -f conftest.$ac_objext
10360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10361   (eval $ac_compile) 2>&5
10362   ac_status=$?
10363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10364   (exit $ac_status); } &&
10365          { ac_try='test -s conftest.$ac_objext'
10366   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10367   (eval $ac_try) 2>&5
10368   ac_status=$?
10369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10370   (exit $ac_status); }; }; then
10371   ac_cv_member_struct_stat_st_blksize=yes
10372 else
10373   echo "$as_me: failed program was:" >&5
10374 sed 's/^/| /' conftest.$ac_ext >&5
10375
10376 ac_cv_member_struct_stat_st_blksize=no
10377 fi
10378 rm -f conftest.$ac_objext conftest.$ac_ext
10379 fi
10380 rm -f conftest.$ac_objext conftest.$ac_ext
10381 fi
10382 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
10383 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
10384 if test $ac_cv_member_struct_stat_st_blksize = yes; then
10385
10386 cat >>confdefs.h <<_ACEOF
10387 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
10388 _ACEOF
10389
10390
10391 cat >>confdefs.h <<\_ACEOF
10392 #define HAVE_ST_BLKSIZE 1
10393 _ACEOF
10394
10395 fi
10396
10397
10398 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
10399 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
10400 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
10401   echo $ECHO_N "(cached) $ECHO_C" >&6
10402 else
10403   cat >conftest.$ac_ext <<_ACEOF
10404 #line $LINENO "configure"
10405 /* confdefs.h.  */
10406 _ACEOF
10407 cat confdefs.h >>conftest.$ac_ext
10408 cat >>conftest.$ac_ext <<_ACEOF
10409 /* end confdefs.h.  */
10410 $ac_includes_default
10411 int
10412 main ()
10413 {
10414 static struct stat ac_aggr;
10415 if (ac_aggr.st_blocks)
10416 return 0;
10417   ;
10418   return 0;
10419 }
10420 _ACEOF
10421 rm -f conftest.$ac_objext
10422 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10423   (eval $ac_compile) 2>&5
10424   ac_status=$?
10425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10426   (exit $ac_status); } &&
10427          { ac_try='test -s conftest.$ac_objext'
10428   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10429   (eval $ac_try) 2>&5
10430   ac_status=$?
10431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10432   (exit $ac_status); }; }; then
10433   ac_cv_member_struct_stat_st_blocks=yes
10434 else
10435   echo "$as_me: failed program was:" >&5
10436 sed 's/^/| /' conftest.$ac_ext >&5
10437
10438 cat >conftest.$ac_ext <<_ACEOF
10439 #line $LINENO "configure"
10440 /* confdefs.h.  */
10441 _ACEOF
10442 cat confdefs.h >>conftest.$ac_ext
10443 cat >>conftest.$ac_ext <<_ACEOF
10444 /* end confdefs.h.  */
10445 $ac_includes_default
10446 int
10447 main ()
10448 {
10449 static struct stat ac_aggr;
10450 if (sizeof ac_aggr.st_blocks)
10451 return 0;
10452   ;
10453   return 0;
10454 }
10455 _ACEOF
10456 rm -f conftest.$ac_objext
10457 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10458   (eval $ac_compile) 2>&5
10459   ac_status=$?
10460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10461   (exit $ac_status); } &&
10462          { ac_try='test -s conftest.$ac_objext'
10463   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10464   (eval $ac_try) 2>&5
10465   ac_status=$?
10466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10467   (exit $ac_status); }; }; then
10468   ac_cv_member_struct_stat_st_blocks=yes
10469 else
10470   echo "$as_me: failed program was:" >&5
10471 sed 's/^/| /' conftest.$ac_ext >&5
10472
10473 ac_cv_member_struct_stat_st_blocks=no
10474 fi
10475 rm -f conftest.$ac_objext conftest.$ac_ext
10476 fi
10477 rm -f conftest.$ac_objext conftest.$ac_ext
10478 fi
10479 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
10480 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
10481 if test $ac_cv_member_struct_stat_st_blocks = yes; then
10482
10483 cat >>confdefs.h <<_ACEOF
10484 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
10485 _ACEOF
10486
10487
10488 cat >>confdefs.h <<\_ACEOF
10489 #define HAVE_ST_BLOCKS 1
10490 _ACEOF
10491
10492 else
10493   LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
10494 fi
10495
10496
10497 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
10498 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
10499 if test "${ac_cv_struct_tm+set}" = set; then
10500   echo $ECHO_N "(cached) $ECHO_C" >&6
10501 else
10502   cat >conftest.$ac_ext <<_ACEOF
10503 #line $LINENO "configure"
10504 /* confdefs.h.  */
10505 _ACEOF
10506 cat confdefs.h >>conftest.$ac_ext
10507 cat >>conftest.$ac_ext <<_ACEOF
10508 /* end confdefs.h.  */
10509 #include <sys/types.h>
10510 #include <time.h>
10511
10512 int
10513 main ()
10514 {
10515 struct tm *tp; tp->tm_sec;
10516   ;
10517   return 0;
10518 }
10519 _ACEOF
10520 rm -f conftest.$ac_objext
10521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10522   (eval $ac_compile) 2>&5
10523   ac_status=$?
10524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10525   (exit $ac_status); } &&
10526          { ac_try='test -s conftest.$ac_objext'
10527   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10528   (eval $ac_try) 2>&5
10529   ac_status=$?
10530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10531   (exit $ac_status); }; }; then
10532   ac_cv_struct_tm=time.h
10533 else
10534   echo "$as_me: failed program was:" >&5
10535 sed 's/^/| /' conftest.$ac_ext >&5
10536
10537 ac_cv_struct_tm=sys/time.h
10538 fi
10539 rm -f conftest.$ac_objext conftest.$ac_ext
10540 fi
10541 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
10542 echo "${ECHO_T}$ac_cv_struct_tm" >&6
10543 if test $ac_cv_struct_tm = sys/time.h; then
10544
10545 cat >>confdefs.h <<\_ACEOF
10546 #define TM_IN_SYS_TIME 1
10547 _ACEOF
10548
10549 fi
10550
10551 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
10552 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
10553 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
10554   echo $ECHO_N "(cached) $ECHO_C" >&6
10555 else
10556   cat >conftest.$ac_ext <<_ACEOF
10557 #line $LINENO "configure"
10558 /* confdefs.h.  */
10559 _ACEOF
10560 cat confdefs.h >>conftest.$ac_ext
10561 cat >>conftest.$ac_ext <<_ACEOF
10562 /* end confdefs.h.  */
10563 #include <sys/types.h>
10564 #include <$ac_cv_struct_tm>
10565
10566
10567 int
10568 main ()
10569 {
10570 static struct tm ac_aggr;
10571 if (ac_aggr.tm_zone)
10572 return 0;
10573   ;
10574   return 0;
10575 }
10576 _ACEOF
10577 rm -f conftest.$ac_objext
10578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10579   (eval $ac_compile) 2>&5
10580   ac_status=$?
10581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10582   (exit $ac_status); } &&
10583          { ac_try='test -s conftest.$ac_objext'
10584   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10585   (eval $ac_try) 2>&5
10586   ac_status=$?
10587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10588   (exit $ac_status); }; }; then
10589   ac_cv_member_struct_tm_tm_zone=yes
10590 else
10591   echo "$as_me: failed program was:" >&5
10592 sed 's/^/| /' conftest.$ac_ext >&5
10593
10594 cat >conftest.$ac_ext <<_ACEOF
10595 #line $LINENO "configure"
10596 /* confdefs.h.  */
10597 _ACEOF
10598 cat confdefs.h >>conftest.$ac_ext
10599 cat >>conftest.$ac_ext <<_ACEOF
10600 /* end confdefs.h.  */
10601 #include <sys/types.h>
10602 #include <$ac_cv_struct_tm>
10603
10604
10605 int
10606 main ()
10607 {
10608 static struct tm ac_aggr;
10609 if (sizeof ac_aggr.tm_zone)
10610 return 0;
10611   ;
10612   return 0;
10613 }
10614 _ACEOF
10615 rm -f conftest.$ac_objext
10616 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10617   (eval $ac_compile) 2>&5
10618   ac_status=$?
10619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10620   (exit $ac_status); } &&
10621          { ac_try='test -s conftest.$ac_objext'
10622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10623   (eval $ac_try) 2>&5
10624   ac_status=$?
10625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10626   (exit $ac_status); }; }; then
10627   ac_cv_member_struct_tm_tm_zone=yes
10628 else
10629   echo "$as_me: failed program was:" >&5
10630 sed 's/^/| /' conftest.$ac_ext >&5
10631
10632 ac_cv_member_struct_tm_tm_zone=no
10633 fi
10634 rm -f conftest.$ac_objext conftest.$ac_ext
10635 fi
10636 rm -f conftest.$ac_objext conftest.$ac_ext
10637 fi
10638 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
10639 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
10640 if test $ac_cv_member_struct_tm_tm_zone = yes; then
10641
10642 cat >>confdefs.h <<_ACEOF
10643 #define HAVE_STRUCT_TM_TM_ZONE 1
10644 _ACEOF
10645
10646
10647 fi
10648
10649 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
10650
10651 cat >>confdefs.h <<\_ACEOF
10652 #define HAVE_TM_ZONE 1
10653 _ACEOF
10654
10655 else
10656   echo "$as_me:$LINENO: checking for tzname" >&5
10657 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
10658 if test "${ac_cv_var_tzname+set}" = set; then
10659   echo $ECHO_N "(cached) $ECHO_C" >&6
10660 else
10661   cat >conftest.$ac_ext <<_ACEOF
10662 #line $LINENO "configure"
10663 /* confdefs.h.  */
10664 _ACEOF
10665 cat confdefs.h >>conftest.$ac_ext
10666 cat >>conftest.$ac_ext <<_ACEOF
10667 /* end confdefs.h.  */
10668 #include <time.h>
10669 #ifndef tzname /* For SGI.  */
10670 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
10671 #endif
10672
10673 int
10674 main ()
10675 {
10676 atoi(*tzname);
10677   ;
10678   return 0;
10679 }
10680 _ACEOF
10681 rm -f conftest.$ac_objext conftest$ac_exeext
10682 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10683   (eval $ac_link) 2>&5
10684   ac_status=$?
10685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10686   (exit $ac_status); } &&
10687          { ac_try='test -s conftest$ac_exeext'
10688   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10689   (eval $ac_try) 2>&5
10690   ac_status=$?
10691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10692   (exit $ac_status); }; }; then
10693   ac_cv_var_tzname=yes
10694 else
10695   echo "$as_me: failed program was:" >&5
10696 sed 's/^/| /' conftest.$ac_ext >&5
10697
10698 ac_cv_var_tzname=no
10699 fi
10700 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10701 fi
10702 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
10703 echo "${ECHO_T}$ac_cv_var_tzname" >&6
10704   if test $ac_cv_var_tzname = yes; then
10705
10706 cat >>confdefs.h <<\_ACEOF
10707 #define HAVE_TZNAME 1
10708 _ACEOF
10709
10710   fi
10711 fi
10712
10713
10714 echo "$as_me:$LINENO: checking for utime.h" >&5
10715 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6
10716 if test "${ba_cv_header_utime_h+set}" = set; then
10717   echo $ECHO_N "(cached) $ECHO_C" >&6
10718 else
10719   cat >conftest.$ac_ext <<_ACEOF
10720 #line $LINENO "configure"
10721 /* confdefs.h.  */
10722 _ACEOF
10723 cat confdefs.h >>conftest.$ac_ext
10724 cat >>conftest.$ac_ext <<_ACEOF
10725 /* end confdefs.h.  */
10726
10727 #include <sys/types.h>
10728 #include <utime.h>
10729 int
10730 main ()
10731 {
10732 struct utimbuf foo
10733   ;
10734   return 0;
10735 }
10736 _ACEOF
10737 rm -f conftest.$ac_objext
10738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10739   (eval $ac_compile) 2>&5
10740   ac_status=$?
10741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10742   (exit $ac_status); } &&
10743          { ac_try='test -s conftest.$ac_objext'
10744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10745   (eval $ac_try) 2>&5
10746   ac_status=$?
10747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10748   (exit $ac_status); }; }; then
10749   ba_cv_header_utime_h=yes
10750 else
10751   echo "$as_me: failed program was:" >&5
10752 sed 's/^/| /' conftest.$ac_ext >&5
10753
10754 ba_cv_header_utime_h=no
10755 fi
10756 rm -f conftest.$ac_objext conftest.$ac_ext
10757 fi
10758 echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
10759 echo "${ECHO_T}$ba_cv_header_utime_h" >&6
10760 test $ba_cv_header_utime_h = yes && cat >>confdefs.h <<\_ACEOF
10761 #define HAVE_UTIME_H 1
10762 _ACEOF
10763
10764
10765 echo "$as_me:$LINENO: checking for socklen_t" >&5
10766 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
10767 if test "${ba_cv_header_socklen_t+set}" = set; then
10768   echo $ECHO_N "(cached) $ECHO_C" >&6
10769 else
10770   cat >conftest.$ac_ext <<_ACEOF
10771 #line $LINENO "configure"
10772 /* confdefs.h.  */
10773 _ACEOF
10774 cat confdefs.h >>conftest.$ac_ext
10775 cat >>conftest.$ac_ext <<_ACEOF
10776 /* end confdefs.h.  */
10777
10778 #include <sys/types.h>
10779 #include <sys/socket.h>
10780 int
10781 main ()
10782 {
10783 socklen_t x
10784   ;
10785   return 0;
10786 }
10787 _ACEOF
10788 rm -f conftest.$ac_objext
10789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10790   (eval $ac_compile) 2>&5
10791   ac_status=$?
10792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10793   (exit $ac_status); } &&
10794          { ac_try='test -s conftest.$ac_objext'
10795   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10796   (eval $ac_try) 2>&5
10797   ac_status=$?
10798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10799   (exit $ac_status); }; }; then
10800   ba_cv_header_socklen_t=yes
10801 else
10802   echo "$as_me: failed program was:" >&5
10803 sed 's/^/| /' conftest.$ac_ext >&5
10804
10805 ba_cv_header_socklen_t=no
10806 fi
10807 rm -f conftest.$ac_objext conftest.$ac_ext
10808 fi
10809 echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
10810 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6
10811 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
10812 #define HAVE_SOCKLEN_T 1
10813 _ACEOF
10814
10815
10816 echo "$as_me:$LINENO: checking for bigendian" >&5
10817 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6
10818 if test "${ba_cv_bigendian+set}" = set; then
10819   echo $ECHO_N "(cached) $ECHO_C" >&6
10820 else
10821   if test "$cross_compiling" = yes; then
10822   ba_cv_bigendian=no
10823 else
10824   cat >conftest.$ac_ext <<_ACEOF
10825 #line $LINENO "configure"
10826 /* confdefs.h.  */
10827 _ACEOF
10828 cat confdefs.h >>conftest.$ac_ext
10829 cat >>conftest.$ac_ext <<_ACEOF
10830 /* end confdefs.h.  */
10831 main(){long a=1L; char *p=(char *)&a; exit(*p);}
10832 _ACEOF
10833 rm -f conftest$ac_exeext
10834 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10835   (eval $ac_link) 2>&5
10836   ac_status=$?
10837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10838   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10839   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10840   (eval $ac_try) 2>&5
10841   ac_status=$?
10842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10843   (exit $ac_status); }; }; then
10844   ba_cv_bigendian=yes
10845 else
10846   echo "$as_me: program exited with status $ac_status" >&5
10847 echo "$as_me: failed program was:" >&5
10848 sed 's/^/| /' conftest.$ac_ext >&5
10849
10850 ( exit $ac_status )
10851 ba_cv_bigendian=no
10852 fi
10853 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10854 fi
10855 fi
10856 echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
10857 echo "${ECHO_T}$ba_cv_bigendian" >&6
10858 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
10859 #define HAVE_BIGENDIAN 1
10860 _ACEOF
10861
10862
10863
10864 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
10865 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
10866 if test "${ac_cv_c_const+set}" = set; then
10867   echo $ECHO_N "(cached) $ECHO_C" >&6
10868 else
10869   cat >conftest.$ac_ext <<_ACEOF
10870 #line $LINENO "configure"
10871 /* confdefs.h.  */
10872 _ACEOF
10873 cat confdefs.h >>conftest.$ac_ext
10874 cat >>conftest.$ac_ext <<_ACEOF
10875 /* end confdefs.h.  */
10876
10877 int
10878 main ()
10879 {
10880 /* FIXME: Include the comments suggested by Paul. */
10881 #ifndef __cplusplus
10882   /* Ultrix mips cc rejects this.  */
10883   typedef int charset[2];
10884   const charset x;
10885   /* SunOS 4.1.1 cc rejects this.  */
10886   char const *const *ccp;
10887   char **p;
10888   /* NEC SVR4.0.2 mips cc rejects this.  */
10889   struct point {int x, y;};
10890   static struct point const zero = {0,0};
10891   /* AIX XL C 1.02.0.0 rejects this.
10892      It does not let you subtract one const X* pointer from another in
10893      an arm of an if-expression whose if-part is not a constant
10894      expression */
10895   const char *g = "string";
10896   ccp = &g + (g ? g-g : 0);
10897   /* HPUX 7.0 cc rejects these. */
10898   ++ccp;
10899   p = (char**) ccp;
10900   ccp = (char const *const *) p;
10901   { /* SCO 3.2v4 cc rejects this.  */
10902     char *t;
10903     char const *s = 0 ? (char *) 0 : (char const *) 0;
10904
10905     *t++ = 0;
10906   }
10907   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
10908     int x[] = {25, 17};
10909     const int *foo = &x[0];
10910     ++foo;
10911   }
10912   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10913     typedef const int *iptr;
10914     iptr p = 0;
10915     ++p;
10916   }
10917   { /* AIX XL C 1.02.0.0 rejects this saying
10918        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10919     struct s { int j; const int *ap[3]; };
10920     struct s *b; b->j = 5;
10921   }
10922   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10923     const int foo = 10;
10924   }
10925 #endif
10926
10927   ;
10928   return 0;
10929 }
10930 _ACEOF
10931 rm -f conftest.$ac_objext
10932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10933   (eval $ac_compile) 2>&5
10934   ac_status=$?
10935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10936   (exit $ac_status); } &&
10937          { ac_try='test -s conftest.$ac_objext'
10938   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10939   (eval $ac_try) 2>&5
10940   ac_status=$?
10941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10942   (exit $ac_status); }; }; then
10943   ac_cv_c_const=yes
10944 else
10945   echo "$as_me: failed program was:" >&5
10946 sed 's/^/| /' conftest.$ac_ext >&5
10947
10948 ac_cv_c_const=no
10949 fi
10950 rm -f conftest.$ac_objext conftest.$ac_ext
10951 fi
10952 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
10953 echo "${ECHO_T}$ac_cv_c_const" >&6
10954 if test $ac_cv_c_const = no; then
10955
10956 cat >>confdefs.h <<\_ACEOF
10957 #define const
10958 _ACEOF
10959
10960 fi
10961
10962
10963
10964 echo "$as_me:$LINENO: checking how to get filesystem type" >&5
10965 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6
10966 fstype=no
10967 # The order of these tests is important.
10968 cat >conftest.$ac_ext <<_ACEOF
10969 #line $LINENO "configure"
10970 /* confdefs.h.  */
10971 _ACEOF
10972 cat confdefs.h >>conftest.$ac_ext
10973 cat >>conftest.$ac_ext <<_ACEOF
10974 /* end confdefs.h.  */
10975 #include <sys/statvfs.h>
10976 #include <sys/fstyp.h>
10977 _ACEOF
10978 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10979   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10980   ac_status=$?
10981   grep -v '^ *+' conftest.er1 >conftest.err
10982   rm -f conftest.er1
10983   cat conftest.err >&5
10984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10985   (exit $ac_status); } >/dev/null; then
10986   if test -s conftest.err; then
10987     ac_cpp_err=$ac_c_preproc_warn_flag
10988   else
10989     ac_cpp_err=
10990   fi
10991 else
10992   ac_cpp_err=yes
10993 fi
10994 if test -z "$ac_cpp_err"; then
10995   cat >>confdefs.h <<\_ACEOF
10996 #define FSTYPE_STATVFS 1
10997 _ACEOF
10998  fstype=SVR4
10999 else
11000   echo "$as_me: failed program was:" >&5
11001 sed 's/^/| /' conftest.$ac_ext >&5
11002
11003
11004 fi
11005 rm -f conftest.err conftest.$ac_ext
11006 if test $fstype = no; then
11007 cat >conftest.$ac_ext <<_ACEOF
11008 #line $LINENO "configure"
11009 /* confdefs.h.  */
11010 _ACEOF
11011 cat confdefs.h >>conftest.$ac_ext
11012 cat >>conftest.$ac_ext <<_ACEOF
11013 /* end confdefs.h.  */
11014 #include <sys/statfs.h>
11015 #include <sys/fstyp.h>
11016 _ACEOF
11017 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11018   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11019   ac_status=$?
11020   grep -v '^ *+' conftest.er1 >conftest.err
11021   rm -f conftest.er1
11022   cat conftest.err >&5
11023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11024   (exit $ac_status); } >/dev/null; then
11025   if test -s conftest.err; then
11026     ac_cpp_err=$ac_c_preproc_warn_flag
11027   else
11028     ac_cpp_err=
11029   fi
11030 else
11031   ac_cpp_err=yes
11032 fi
11033 if test -z "$ac_cpp_err"; then
11034   cat >>confdefs.h <<\_ACEOF
11035 #define FSTYPE_USG_STATFS 1
11036 _ACEOF
11037  fstype=SVR3
11038 else
11039   echo "$as_me: failed program was:" >&5
11040 sed 's/^/| /' conftest.$ac_ext >&5
11041
11042
11043 fi
11044 rm -f conftest.err conftest.$ac_ext
11045 fi
11046 if test $fstype = no; then
11047 cat >conftest.$ac_ext <<_ACEOF
11048 #line $LINENO "configure"
11049 /* confdefs.h.  */
11050 _ACEOF
11051 cat confdefs.h >>conftest.$ac_ext
11052 cat >>conftest.$ac_ext <<_ACEOF
11053 /* end confdefs.h.  */
11054 #include <sys/statfs.h>
11055 #include <sys/vmount.h>
11056 _ACEOF
11057 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11058   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11059   ac_status=$?
11060   grep -v '^ *+' conftest.er1 >conftest.err
11061   rm -f conftest.er1
11062   cat conftest.err >&5
11063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11064   (exit $ac_status); } >/dev/null; then
11065   if test -s conftest.err; then
11066     ac_cpp_err=$ac_c_preproc_warn_flag
11067   else
11068     ac_cpp_err=
11069   fi
11070 else
11071   ac_cpp_err=yes
11072 fi
11073 if test -z "$ac_cpp_err"; then
11074   cat >>confdefs.h <<\_ACEOF
11075 #define FSTYPE_AIX_STATFS 1
11076 _ACEOF
11077  fstype=AIX
11078 else
11079   echo "$as_me: failed program was:" >&5
11080 sed 's/^/| /' conftest.$ac_ext >&5
11081
11082
11083 fi
11084 rm -f conftest.err conftest.$ac_ext
11085 fi
11086 if test $fstype = no; then
11087 cat >conftest.$ac_ext <<_ACEOF
11088 #line $LINENO "configure"
11089 /* confdefs.h.  */
11090 _ACEOF
11091 cat confdefs.h >>conftest.$ac_ext
11092 cat >>conftest.$ac_ext <<_ACEOF
11093 /* end confdefs.h.  */
11094 #include <mntent.h>
11095 _ACEOF
11096 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11097   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11098   ac_status=$?
11099   grep -v '^ *+' conftest.er1 >conftest.err
11100   rm -f conftest.er1
11101   cat conftest.err >&5
11102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11103   (exit $ac_status); } >/dev/null; then
11104   if test -s conftest.err; then
11105     ac_cpp_err=$ac_c_preproc_warn_flag
11106   else
11107     ac_cpp_err=
11108   fi
11109 else
11110   ac_cpp_err=yes
11111 fi
11112 if test -z "$ac_cpp_err"; then
11113   cat >>confdefs.h <<\_ACEOF
11114 #define FSTYPE_MNTENT 1
11115 _ACEOF
11116  fstype=4.3BSD
11117 else
11118   echo "$as_me: failed program was:" >&5
11119 sed 's/^/| /' conftest.$ac_ext >&5
11120
11121
11122 fi
11123 rm -f conftest.err conftest.$ac_ext
11124 fi
11125 if test $fstype = no; then
11126 cat >conftest.$ac_ext <<_ACEOF
11127 #line $LINENO "configure"
11128 /* confdefs.h.  */
11129 _ACEOF
11130 cat confdefs.h >>conftest.$ac_ext
11131 cat >>conftest.$ac_ext <<_ACEOF
11132 /* end confdefs.h.  */
11133 #include <sys/mount.h>
11134
11135 _ACEOF
11136 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11137   $EGREP "f_type;" >/dev/null 2>&1; then
11138   cat >>confdefs.h <<\_ACEOF
11139 #define FSTYPE_STATFS 1
11140 _ACEOF
11141  fstype=4.4BSD/OSF1
11142 fi
11143 rm -f conftest*
11144
11145 fi
11146 if test $fstype = no; then
11147 cat >conftest.$ac_ext <<_ACEOF
11148 #line $LINENO "configure"
11149 /* confdefs.h.  */
11150 _ACEOF
11151 cat confdefs.h >>conftest.$ac_ext
11152 cat >>conftest.$ac_ext <<_ACEOF
11153 /* end confdefs.h.  */
11154 #include <sys/mount.h>
11155 #include <sys/fs_types.h>
11156 _ACEOF
11157 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11158   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11159   ac_status=$?
11160   grep -v '^ *+' conftest.er1 >conftest.err
11161   rm -f conftest.er1
11162   cat conftest.err >&5
11163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11164   (exit $ac_status); } >/dev/null; then
11165   if test -s conftest.err; then
11166     ac_cpp_err=$ac_c_preproc_warn_flag
11167   else
11168     ac_cpp_err=
11169   fi
11170 else
11171   ac_cpp_err=yes
11172 fi
11173 if test -z "$ac_cpp_err"; then
11174   cat >>confdefs.h <<\_ACEOF
11175 #define FSTYPE_GETMNT 1
11176 _ACEOF
11177  fstype=Ultrix
11178 else
11179   echo "$as_me: failed program was:" >&5
11180 sed 's/^/| /' conftest.$ac_ext >&5
11181
11182
11183 fi
11184 rm -f conftest.err conftest.$ac_ext
11185 fi
11186 echo "$as_me:$LINENO: result: $fstype" >&5
11187 echo "${ECHO_T}$fstype" >&6
11188
11189 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
11190 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
11191 if test "${ac_cv_type_signal+set}" = set; then
11192   echo $ECHO_N "(cached) $ECHO_C" >&6
11193 else
11194   cat >conftest.$ac_ext <<_ACEOF
11195 #line $LINENO "configure"
11196 /* confdefs.h.  */
11197 _ACEOF
11198 cat confdefs.h >>conftest.$ac_ext
11199 cat >>conftest.$ac_ext <<_ACEOF
11200 /* end confdefs.h.  */
11201 #include <sys/types.h>
11202 #include <signal.h>
11203 #ifdef signal
11204 # undef signal
11205 #endif
11206 #ifdef __cplusplus
11207 extern "C" void (*signal (int, void (*)(int)))(int);
11208 #else
11209 void (*signal ()) ();
11210 #endif
11211
11212 int
11213 main ()
11214 {
11215 int i;
11216   ;
11217   return 0;
11218 }
11219 _ACEOF
11220 rm -f conftest.$ac_objext
11221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11222   (eval $ac_compile) 2>&5
11223   ac_status=$?
11224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11225   (exit $ac_status); } &&
11226          { ac_try='test -s conftest.$ac_objext'
11227   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11228   (eval $ac_try) 2>&5
11229   ac_status=$?
11230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11231   (exit $ac_status); }; }; then
11232   ac_cv_type_signal=void
11233 else
11234   echo "$as_me: failed program was:" >&5
11235 sed 's/^/| /' conftest.$ac_ext >&5
11236
11237 ac_cv_type_signal=int
11238 fi
11239 rm -f conftest.$ac_objext conftest.$ac_ext
11240 fi
11241 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
11242 echo "${ECHO_T}$ac_cv_type_signal" >&6
11243
11244 cat >>confdefs.h <<_ACEOF
11245 #define RETSIGTYPE $ac_cv_type_signal
11246 _ACEOF
11247
11248
11249
11250 echo "$as_me:$LINENO: checking for type of signal functions" >&5
11251 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6
11252 if test "${bash_cv_signal_vintage+set}" = set; then
11253   echo $ECHO_N "(cached) $ECHO_C" >&6
11254 else
11255
11256   cat >conftest.$ac_ext <<_ACEOF
11257 #line $LINENO "configure"
11258 /* confdefs.h.  */
11259 _ACEOF
11260 cat confdefs.h >>conftest.$ac_ext
11261 cat >>conftest.$ac_ext <<_ACEOF
11262 /* end confdefs.h.  */
11263 #include <signal.h>
11264 int
11265 main ()
11266 {
11267
11268     sigset_t ss;
11269     struct sigaction sa;
11270     sigemptyset(&ss); sigsuspend(&ss);
11271     sigaction(SIGINT, &sa, (struct sigaction *) 0);
11272     sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
11273
11274   ;
11275   return 0;
11276 }
11277 _ACEOF
11278 rm -f conftest.$ac_objext conftest$ac_exeext
11279 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11280   (eval $ac_link) 2>&5
11281   ac_status=$?
11282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11283   (exit $ac_status); } &&
11284          { ac_try='test -s conftest$ac_exeext'
11285   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11286   (eval $ac_try) 2>&5
11287   ac_status=$?
11288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11289   (exit $ac_status); }; }; then
11290   bash_cv_signal_vintage=posix
11291 else
11292   echo "$as_me: failed program was:" >&5
11293 sed 's/^/| /' conftest.$ac_ext >&5
11294
11295
11296     cat >conftest.$ac_ext <<_ACEOF
11297 #line $LINENO "configure"
11298 /* confdefs.h.  */
11299 _ACEOF
11300 cat confdefs.h >>conftest.$ac_ext
11301 cat >>conftest.$ac_ext <<_ACEOF
11302 /* end confdefs.h.  */
11303 #include <signal.h>
11304 int
11305 main ()
11306 {
11307
11308         int mask = sigmask(SIGINT);
11309         sigsetmask(mask); sigblock(mask); sigpause(mask);
11310
11311   ;
11312   return 0;
11313 }
11314 _ACEOF
11315 rm -f conftest.$ac_objext conftest$ac_exeext
11316 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11317   (eval $ac_link) 2>&5
11318   ac_status=$?
11319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11320   (exit $ac_status); } &&
11321          { ac_try='test -s conftest$ac_exeext'
11322   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11323   (eval $ac_try) 2>&5
11324   ac_status=$?
11325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11326   (exit $ac_status); }; }; then
11327   bash_cv_signal_vintage=4.2bsd
11328 else
11329   echo "$as_me: failed program was:" >&5
11330 sed 's/^/| /' conftest.$ac_ext >&5
11331
11332
11333       cat >conftest.$ac_ext <<_ACEOF
11334 #line $LINENO "configure"
11335 /* confdefs.h.  */
11336 _ACEOF
11337 cat confdefs.h >>conftest.$ac_ext
11338 cat >>conftest.$ac_ext <<_ACEOF
11339 /* end confdefs.h.  */
11340
11341         #include <signal.h>
11342         RETSIGTYPE foo() { }
11343 int
11344 main ()
11345 {
11346
11347                 int mask = sigmask(SIGINT);
11348                 sigset(SIGINT, foo); sigrelse(SIGINT);
11349                 sighold(SIGINT); sigpause(SIGINT);
11350
11351   ;
11352   return 0;
11353 }
11354 _ACEOF
11355 rm -f conftest.$ac_objext conftest$ac_exeext
11356 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11357   (eval $ac_link) 2>&5
11358   ac_status=$?
11359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11360   (exit $ac_status); } &&
11361          { ac_try='test -s conftest$ac_exeext'
11362   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11363   (eval $ac_try) 2>&5
11364   ac_status=$?
11365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11366   (exit $ac_status); }; }; then
11367   bash_cv_signal_vintage=svr3
11368 else
11369   echo "$as_me: failed program was:" >&5
11370 sed 's/^/| /' conftest.$ac_ext >&5
11371
11372 bash_cv_signal_vintage=v7
11373
11374 fi
11375 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11376
11377 fi
11378 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11379
11380 fi
11381 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11382
11383 fi
11384
11385 echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
11386 echo "${ECHO_T}$bash_cv_signal_vintage" >&6
11387 if test "$bash_cv_signal_vintage" = posix; then
11388 cat >>confdefs.h <<\_ACEOF
11389 #define HAVE_POSIX_SIGNALS 1
11390 _ACEOF
11391
11392 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
11393 cat >>confdefs.h <<\_ACEOF
11394 #define HAVE_BSD_SIGNALS 1
11395 _ACEOF
11396
11397 elif test "$bash_cv_signal_vintage" = svr3; then
11398 cat >>confdefs.h <<\_ACEOF
11399 #define HAVE_USG_SIGHOLD 1
11400 _ACEOF
11401
11402 fi
11403
11404 echo "$as_me:$LINENO: checking for mode_t" >&5
11405 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
11406 if test "${ac_cv_type_mode_t+set}" = set; then
11407   echo $ECHO_N "(cached) $ECHO_C" >&6
11408 else
11409   cat >conftest.$ac_ext <<_ACEOF
11410 #line $LINENO "configure"
11411 /* confdefs.h.  */
11412 _ACEOF
11413 cat confdefs.h >>conftest.$ac_ext
11414 cat >>conftest.$ac_ext <<_ACEOF
11415 /* end confdefs.h.  */
11416 $ac_includes_default
11417 int
11418 main ()
11419 {
11420 if ((mode_t *) 0)
11421   return 0;
11422 if (sizeof (mode_t))
11423   return 0;
11424   ;
11425   return 0;
11426 }
11427 _ACEOF
11428 rm -f conftest.$ac_objext
11429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11430   (eval $ac_compile) 2>&5
11431   ac_status=$?
11432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11433   (exit $ac_status); } &&
11434          { ac_try='test -s conftest.$ac_objext'
11435   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11436   (eval $ac_try) 2>&5
11437   ac_status=$?
11438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11439   (exit $ac_status); }; }; then
11440   ac_cv_type_mode_t=yes
11441 else
11442   echo "$as_me: failed program was:" >&5
11443 sed 's/^/| /' conftest.$ac_ext >&5
11444
11445 ac_cv_type_mode_t=no
11446 fi
11447 rm -f conftest.$ac_objext conftest.$ac_ext
11448 fi
11449 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
11450 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
11451 if test $ac_cv_type_mode_t = yes; then
11452   :
11453 else
11454
11455 cat >>confdefs.h <<_ACEOF
11456 #define mode_t int
11457 _ACEOF
11458
11459 fi
11460
11461 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
11462 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
11463 if test "${ac_cv_type_uid_t+set}" = set; then
11464   echo $ECHO_N "(cached) $ECHO_C" >&6
11465 else
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 <sys/types.h>
11474
11475 _ACEOF
11476 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11477   $EGREP "uid_t" >/dev/null 2>&1; then
11478   ac_cv_type_uid_t=yes
11479 else
11480   ac_cv_type_uid_t=no
11481 fi
11482 rm -f conftest*
11483
11484 fi
11485 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
11486 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
11487 if test $ac_cv_type_uid_t = no; then
11488
11489 cat >>confdefs.h <<\_ACEOF
11490 #define uid_t int
11491 _ACEOF
11492
11493
11494 cat >>confdefs.h <<\_ACEOF
11495 #define gid_t int
11496 _ACEOF
11497
11498 fi
11499
11500 echo "$as_me:$LINENO: checking for size_t" >&5
11501 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
11502 if test "${ac_cv_type_size_t+set}" = set; then
11503   echo $ECHO_N "(cached) $ECHO_C" >&6
11504 else
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 $ac_includes_default
11513 int
11514 main ()
11515 {
11516 if ((size_t *) 0)
11517   return 0;
11518 if (sizeof (size_t))
11519   return 0;
11520   ;
11521   return 0;
11522 }
11523 _ACEOF
11524 rm -f conftest.$ac_objext
11525 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11526   (eval $ac_compile) 2>&5
11527   ac_status=$?
11528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11529   (exit $ac_status); } &&
11530          { ac_try='test -s conftest.$ac_objext'
11531   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11532   (eval $ac_try) 2>&5
11533   ac_status=$?
11534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11535   (exit $ac_status); }; }; then
11536   ac_cv_type_size_t=yes
11537 else
11538   echo "$as_me: failed program was:" >&5
11539 sed 's/^/| /' conftest.$ac_ext >&5
11540
11541 ac_cv_type_size_t=no
11542 fi
11543 rm -f conftest.$ac_objext conftest.$ac_ext
11544 fi
11545 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
11546 echo "${ECHO_T}$ac_cv_type_size_t" >&6
11547 if test $ac_cv_type_size_t = yes; then
11548   :
11549 else
11550
11551 cat >>confdefs.h <<_ACEOF
11552 #define size_t unsigned
11553 _ACEOF
11554
11555 fi
11556
11557 echo "$as_me:$LINENO: checking for pid_t" >&5
11558 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
11559 if test "${ac_cv_type_pid_t+set}" = set; then
11560   echo $ECHO_N "(cached) $ECHO_C" >&6
11561 else
11562   cat >conftest.$ac_ext <<_ACEOF
11563 #line $LINENO "configure"
11564 /* confdefs.h.  */
11565 _ACEOF
11566 cat confdefs.h >>conftest.$ac_ext
11567 cat >>conftest.$ac_ext <<_ACEOF
11568 /* end confdefs.h.  */
11569 $ac_includes_default
11570 int
11571 main ()
11572 {
11573 if ((pid_t *) 0)
11574   return 0;
11575 if (sizeof (pid_t))
11576   return 0;
11577   ;
11578   return 0;
11579 }
11580 _ACEOF
11581 rm -f conftest.$ac_objext
11582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11583   (eval $ac_compile) 2>&5
11584   ac_status=$?
11585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11586   (exit $ac_status); } &&
11587          { ac_try='test -s conftest.$ac_objext'
11588   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11589   (eval $ac_try) 2>&5
11590   ac_status=$?
11591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11592   (exit $ac_status); }; }; then
11593   ac_cv_type_pid_t=yes
11594 else
11595   echo "$as_me: failed program was:" >&5
11596 sed 's/^/| /' conftest.$ac_ext >&5
11597
11598 ac_cv_type_pid_t=no
11599 fi
11600 rm -f conftest.$ac_objext conftest.$ac_ext
11601 fi
11602 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
11603 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
11604 if test $ac_cv_type_pid_t = yes; then
11605   :
11606 else
11607
11608 cat >>confdefs.h <<_ACEOF
11609 #define pid_t int
11610 _ACEOF
11611
11612 fi
11613
11614 echo "$as_me:$LINENO: checking for off_t" >&5
11615 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
11616 if test "${ac_cv_type_off_t+set}" = set; then
11617   echo $ECHO_N "(cached) $ECHO_C" >&6
11618 else
11619   cat >conftest.$ac_ext <<_ACEOF
11620 #line $LINENO "configure"
11621 /* confdefs.h.  */
11622 _ACEOF
11623 cat confdefs.h >>conftest.$ac_ext
11624 cat >>conftest.$ac_ext <<_ACEOF
11625 /* end confdefs.h.  */
11626 $ac_includes_default
11627 int
11628 main ()
11629 {
11630 if ((off_t *) 0)
11631   return 0;
11632 if (sizeof (off_t))
11633   return 0;
11634   ;
11635   return 0;
11636 }
11637 _ACEOF
11638 rm -f conftest.$ac_objext
11639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11640   (eval $ac_compile) 2>&5
11641   ac_status=$?
11642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11643   (exit $ac_status); } &&
11644          { ac_try='test -s conftest.$ac_objext'
11645   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11646   (eval $ac_try) 2>&5
11647   ac_status=$?
11648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11649   (exit $ac_status); }; }; then
11650   ac_cv_type_off_t=yes
11651 else
11652   echo "$as_me: failed program was:" >&5
11653 sed 's/^/| /' conftest.$ac_ext >&5
11654
11655 ac_cv_type_off_t=no
11656 fi
11657 rm -f conftest.$ac_objext conftest.$ac_ext
11658 fi
11659 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
11660 echo "${ECHO_T}$ac_cv_type_off_t" >&6
11661 if test $ac_cv_type_off_t = yes; then
11662   :
11663 else
11664
11665 cat >>confdefs.h <<_ACEOF
11666 #define off_t long
11667 _ACEOF
11668
11669 fi
11670
11671 echo "$as_me:$LINENO: checking for ino_t" >&5
11672 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
11673 if test "${ac_cv_type_ino_t+set}" = set; then
11674   echo $ECHO_N "(cached) $ECHO_C" >&6
11675 else
11676   cat >conftest.$ac_ext <<_ACEOF
11677 #line $LINENO "configure"
11678 /* confdefs.h.  */
11679 _ACEOF
11680 cat confdefs.h >>conftest.$ac_ext
11681 cat >>conftest.$ac_ext <<_ACEOF
11682 /* end confdefs.h.  */
11683 $ac_includes_default
11684 int
11685 main ()
11686 {
11687 if ((ino_t *) 0)
11688   return 0;
11689 if (sizeof (ino_t))
11690   return 0;
11691   ;
11692   return 0;
11693 }
11694 _ACEOF
11695 rm -f conftest.$ac_objext
11696 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11697   (eval $ac_compile) 2>&5
11698   ac_status=$?
11699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11700   (exit $ac_status); } &&
11701          { ac_try='test -s conftest.$ac_objext'
11702   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11703   (eval $ac_try) 2>&5
11704   ac_status=$?
11705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11706   (exit $ac_status); }; }; then
11707   ac_cv_type_ino_t=yes
11708 else
11709   echo "$as_me: failed program was:" >&5
11710 sed 's/^/| /' conftest.$ac_ext >&5
11711
11712 ac_cv_type_ino_t=no
11713 fi
11714 rm -f conftest.$ac_objext conftest.$ac_ext
11715 fi
11716 echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
11717 echo "${ECHO_T}$ac_cv_type_ino_t" >&6
11718 if test $ac_cv_type_ino_t = yes; then
11719   :
11720 else
11721
11722 cat >>confdefs.h <<_ACEOF
11723 #define ino_t unsigned long
11724 _ACEOF
11725
11726 fi
11727
11728 echo "$as_me:$LINENO: checking for dev_t" >&5
11729 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6
11730 if test "${ac_cv_type_dev_t+set}" = set; then
11731   echo $ECHO_N "(cached) $ECHO_C" >&6
11732 else
11733   cat >conftest.$ac_ext <<_ACEOF
11734 #line $LINENO "configure"
11735 /* confdefs.h.  */
11736 _ACEOF
11737 cat confdefs.h >>conftest.$ac_ext
11738 cat >>conftest.$ac_ext <<_ACEOF
11739 /* end confdefs.h.  */
11740 $ac_includes_default
11741 int
11742 main ()
11743 {
11744 if ((dev_t *) 0)
11745   return 0;
11746 if (sizeof (dev_t))
11747   return 0;
11748   ;
11749   return 0;
11750 }
11751 _ACEOF
11752 rm -f conftest.$ac_objext
11753 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11754   (eval $ac_compile) 2>&5
11755   ac_status=$?
11756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11757   (exit $ac_status); } &&
11758          { ac_try='test -s conftest.$ac_objext'
11759   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11760   (eval $ac_try) 2>&5
11761   ac_status=$?
11762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11763   (exit $ac_status); }; }; then
11764   ac_cv_type_dev_t=yes
11765 else
11766   echo "$as_me: failed program was:" >&5
11767 sed 's/^/| /' conftest.$ac_ext >&5
11768
11769 ac_cv_type_dev_t=no
11770 fi
11771 rm -f conftest.$ac_objext conftest.$ac_ext
11772 fi
11773 echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
11774 echo "${ECHO_T}$ac_cv_type_dev_t" >&6
11775 if test $ac_cv_type_dev_t = yes; then
11776   :
11777 else
11778
11779 cat >>confdefs.h <<_ACEOF
11780 #define dev_t unsigned long
11781 _ACEOF
11782
11783 fi
11784
11785 echo "$as_me:$LINENO: checking for daddr_t" >&5
11786 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6
11787 if test "${ac_cv_type_daddr_t+set}" = set; then
11788   echo $ECHO_N "(cached) $ECHO_C" >&6
11789 else
11790   cat >conftest.$ac_ext <<_ACEOF
11791 #line $LINENO "configure"
11792 /* confdefs.h.  */
11793 _ACEOF
11794 cat confdefs.h >>conftest.$ac_ext
11795 cat >>conftest.$ac_ext <<_ACEOF
11796 /* end confdefs.h.  */
11797 $ac_includes_default
11798 int
11799 main ()
11800 {
11801 if ((daddr_t *) 0)
11802   return 0;
11803 if (sizeof (daddr_t))
11804   return 0;
11805   ;
11806   return 0;
11807 }
11808 _ACEOF
11809 rm -f conftest.$ac_objext
11810 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11811   (eval $ac_compile) 2>&5
11812   ac_status=$?
11813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11814   (exit $ac_status); } &&
11815          { ac_try='test -s conftest.$ac_objext'
11816   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11817   (eval $ac_try) 2>&5
11818   ac_status=$?
11819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11820   (exit $ac_status); }; }; then
11821   ac_cv_type_daddr_t=yes
11822 else
11823   echo "$as_me: failed program was:" >&5
11824 sed 's/^/| /' conftest.$ac_ext >&5
11825
11826 ac_cv_type_daddr_t=no
11827 fi
11828 rm -f conftest.$ac_objext conftest.$ac_ext
11829 fi
11830 echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
11831 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6
11832 if test $ac_cv_type_daddr_t = yes; then
11833   :
11834 else
11835
11836 cat >>confdefs.h <<_ACEOF
11837 #define daddr_t long
11838 _ACEOF
11839
11840 fi
11841
11842 echo "$as_me:$LINENO: checking for major_t" >&5
11843 echo $ECHO_N "checking for major_t... $ECHO_C" >&6
11844 if test "${ac_cv_type_major_t+set}" = set; then
11845   echo $ECHO_N "(cached) $ECHO_C" >&6
11846 else
11847   cat >conftest.$ac_ext <<_ACEOF
11848 #line $LINENO "configure"
11849 /* confdefs.h.  */
11850 _ACEOF
11851 cat confdefs.h >>conftest.$ac_ext
11852 cat >>conftest.$ac_ext <<_ACEOF
11853 /* end confdefs.h.  */
11854 $ac_includes_default
11855 int
11856 main ()
11857 {
11858 if ((major_t *) 0)
11859   return 0;
11860 if (sizeof (major_t))
11861   return 0;
11862   ;
11863   return 0;
11864 }
11865 _ACEOF
11866 rm -f conftest.$ac_objext
11867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11868   (eval $ac_compile) 2>&5
11869   ac_status=$?
11870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11871   (exit $ac_status); } &&
11872          { ac_try='test -s conftest.$ac_objext'
11873   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11874   (eval $ac_try) 2>&5
11875   ac_status=$?
11876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11877   (exit $ac_status); }; }; then
11878   ac_cv_type_major_t=yes
11879 else
11880   echo "$as_me: failed program was:" >&5
11881 sed 's/^/| /' conftest.$ac_ext >&5
11882
11883 ac_cv_type_major_t=no
11884 fi
11885 rm -f conftest.$ac_objext conftest.$ac_ext
11886 fi
11887 echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
11888 echo "${ECHO_T}$ac_cv_type_major_t" >&6
11889 if test $ac_cv_type_major_t = yes; then
11890   :
11891 else
11892
11893 cat >>confdefs.h <<_ACEOF
11894 #define major_t int
11895 _ACEOF
11896
11897 fi
11898
11899 echo "$as_me:$LINENO: checking for minor_t" >&5
11900 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6
11901 if test "${ac_cv_type_minor_t+set}" = set; then
11902   echo $ECHO_N "(cached) $ECHO_C" >&6
11903 else
11904   cat >conftest.$ac_ext <<_ACEOF
11905 #line $LINENO "configure"
11906 /* confdefs.h.  */
11907 _ACEOF
11908 cat confdefs.h >>conftest.$ac_ext
11909 cat >>conftest.$ac_ext <<_ACEOF
11910 /* end confdefs.h.  */
11911 $ac_includes_default
11912 int
11913 main ()
11914 {
11915 if ((minor_t *) 0)
11916   return 0;
11917 if (sizeof (minor_t))
11918   return 0;
11919   ;
11920   return 0;
11921 }
11922 _ACEOF
11923 rm -f conftest.$ac_objext
11924 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11925   (eval $ac_compile) 2>&5
11926   ac_status=$?
11927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11928   (exit $ac_status); } &&
11929          { ac_try='test -s conftest.$ac_objext'
11930   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11931   (eval $ac_try) 2>&5
11932   ac_status=$?
11933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11934   (exit $ac_status); }; }; then
11935   ac_cv_type_minor_t=yes
11936 else
11937   echo "$as_me: failed program was:" >&5
11938 sed 's/^/| /' conftest.$ac_ext >&5
11939
11940 ac_cv_type_minor_t=no
11941 fi
11942 rm -f conftest.$ac_objext conftest.$ac_ext
11943 fi
11944 echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
11945 echo "${ECHO_T}$ac_cv_type_minor_t" >&6
11946 if test $ac_cv_type_minor_t = yes; then
11947   :
11948 else
11949
11950 cat >>confdefs.h <<_ACEOF
11951 #define minor_t int
11952 _ACEOF
11953
11954 fi
11955
11956 echo "$as_me:$LINENO: checking for ssize_t" >&5
11957 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
11958 if test "${ac_cv_type_ssize_t+set}" = set; then
11959   echo $ECHO_N "(cached) $ECHO_C" >&6
11960 else
11961   cat >conftest.$ac_ext <<_ACEOF
11962 #line $LINENO "configure"
11963 /* confdefs.h.  */
11964 _ACEOF
11965 cat confdefs.h >>conftest.$ac_ext
11966 cat >>conftest.$ac_ext <<_ACEOF
11967 /* end confdefs.h.  */
11968 $ac_includes_default
11969 int
11970 main ()
11971 {
11972 if ((ssize_t *) 0)
11973   return 0;
11974 if (sizeof (ssize_t))
11975   return 0;
11976   ;
11977   return 0;
11978 }
11979 _ACEOF
11980 rm -f conftest.$ac_objext
11981 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11982   (eval $ac_compile) 2>&5
11983   ac_status=$?
11984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11985   (exit $ac_status); } &&
11986          { ac_try='test -s conftest.$ac_objext'
11987   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11988   (eval $ac_try) 2>&5
11989   ac_status=$?
11990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11991   (exit $ac_status); }; }; then
11992   ac_cv_type_ssize_t=yes
11993 else
11994   echo "$as_me: failed program was:" >&5
11995 sed 's/^/| /' conftest.$ac_ext >&5
11996
11997 ac_cv_type_ssize_t=no
11998 fi
11999 rm -f conftest.$ac_objext conftest.$ac_ext
12000 fi
12001 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
12002 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
12003 if test $ac_cv_type_ssize_t = yes; then
12004   :
12005 else
12006
12007 cat >>confdefs.h <<_ACEOF
12008 #define ssize_t int
12009 _ACEOF
12010
12011 fi
12012
12013 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
12014 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
12015 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
12016   echo $ECHO_N "(cached) $ECHO_C" >&6
12017 else
12018   cat >conftest.$ac_ext <<_ACEOF
12019 #line $LINENO "configure"
12020 /* confdefs.h.  */
12021 _ACEOF
12022 cat confdefs.h >>conftest.$ac_ext
12023 cat >>conftest.$ac_ext <<_ACEOF
12024 /* end confdefs.h.  */
12025 $ac_includes_default
12026 int
12027 main ()
12028 {
12029 static struct stat ac_aggr;
12030 if (ac_aggr.st_blocks)
12031 return 0;
12032   ;
12033   return 0;
12034 }
12035 _ACEOF
12036 rm -f conftest.$ac_objext
12037 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12038   (eval $ac_compile) 2>&5
12039   ac_status=$?
12040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12041   (exit $ac_status); } &&
12042          { ac_try='test -s conftest.$ac_objext'
12043   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12044   (eval $ac_try) 2>&5
12045   ac_status=$?
12046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12047   (exit $ac_status); }; }; then
12048   ac_cv_member_struct_stat_st_blocks=yes
12049 else
12050   echo "$as_me: failed program was:" >&5
12051 sed 's/^/| /' conftest.$ac_ext >&5
12052
12053 cat >conftest.$ac_ext <<_ACEOF
12054 #line $LINENO "configure"
12055 /* confdefs.h.  */
12056 _ACEOF
12057 cat confdefs.h >>conftest.$ac_ext
12058 cat >>conftest.$ac_ext <<_ACEOF
12059 /* end confdefs.h.  */
12060 $ac_includes_default
12061 int
12062 main ()
12063 {
12064 static struct stat ac_aggr;
12065 if (sizeof ac_aggr.st_blocks)
12066 return 0;
12067   ;
12068   return 0;
12069 }
12070 _ACEOF
12071 rm -f conftest.$ac_objext
12072 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12073   (eval $ac_compile) 2>&5
12074   ac_status=$?
12075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12076   (exit $ac_status); } &&
12077          { ac_try='test -s conftest.$ac_objext'
12078   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12079   (eval $ac_try) 2>&5
12080   ac_status=$?
12081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12082   (exit $ac_status); }; }; then
12083   ac_cv_member_struct_stat_st_blocks=yes
12084 else
12085   echo "$as_me: failed program was:" >&5
12086 sed 's/^/| /' conftest.$ac_ext >&5
12087
12088 ac_cv_member_struct_stat_st_blocks=no
12089 fi
12090 rm -f conftest.$ac_objext conftest.$ac_ext
12091 fi
12092 rm -f conftest.$ac_objext conftest.$ac_ext
12093 fi
12094 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
12095 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
12096 if test $ac_cv_member_struct_stat_st_blocks = yes; then
12097
12098 cat >>confdefs.h <<_ACEOF
12099 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
12100 _ACEOF
12101
12102
12103 cat >>confdefs.h <<\_ACEOF
12104 #define HAVE_ST_BLOCKS 1
12105 _ACEOF
12106
12107 else
12108   LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
12109 fi
12110
12111
12112
12113 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
12114 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
12115 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
12116   echo $ECHO_N "(cached) $ECHO_C" >&6
12117 else
12118   cat >conftest.$ac_ext <<_ACEOF
12119 #line $LINENO "configure"
12120 /* confdefs.h.  */
12121 _ACEOF
12122 cat confdefs.h >>conftest.$ac_ext
12123 cat >>conftest.$ac_ext <<_ACEOF
12124 /* end confdefs.h.  */
12125 $ac_includes_default
12126 int
12127 main ()
12128 {
12129 static struct stat ac_aggr;
12130 if (ac_aggr.st_rdev)
12131 return 0;
12132   ;
12133   return 0;
12134 }
12135 _ACEOF
12136 rm -f conftest.$ac_objext
12137 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12138   (eval $ac_compile) 2>&5
12139   ac_status=$?
12140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12141   (exit $ac_status); } &&
12142          { ac_try='test -s conftest.$ac_objext'
12143   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12144   (eval $ac_try) 2>&5
12145   ac_status=$?
12146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12147   (exit $ac_status); }; }; then
12148   ac_cv_member_struct_stat_st_rdev=yes
12149 else
12150   echo "$as_me: failed program was:" >&5
12151 sed 's/^/| /' conftest.$ac_ext >&5
12152
12153 cat >conftest.$ac_ext <<_ACEOF
12154 #line $LINENO "configure"
12155 /* confdefs.h.  */
12156 _ACEOF
12157 cat confdefs.h >>conftest.$ac_ext
12158 cat >>conftest.$ac_ext <<_ACEOF
12159 /* end confdefs.h.  */
12160 $ac_includes_default
12161 int
12162 main ()
12163 {
12164 static struct stat ac_aggr;
12165 if (sizeof ac_aggr.st_rdev)
12166 return 0;
12167   ;
12168   return 0;
12169 }
12170 _ACEOF
12171 rm -f conftest.$ac_objext
12172 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12173   (eval $ac_compile) 2>&5
12174   ac_status=$?
12175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12176   (exit $ac_status); } &&
12177          { ac_try='test -s conftest.$ac_objext'
12178   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12179   (eval $ac_try) 2>&5
12180   ac_status=$?
12181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12182   (exit $ac_status); }; }; then
12183   ac_cv_member_struct_stat_st_rdev=yes
12184 else
12185   echo "$as_me: failed program was:" >&5
12186 sed 's/^/| /' conftest.$ac_ext >&5
12187
12188 ac_cv_member_struct_stat_st_rdev=no
12189 fi
12190 rm -f conftest.$ac_objext conftest.$ac_ext
12191 fi
12192 rm -f conftest.$ac_objext conftest.$ac_ext
12193 fi
12194 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
12195 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
12196 if test $ac_cv_member_struct_stat_st_rdev = yes; then
12197
12198 cat >>confdefs.h <<_ACEOF
12199 #define HAVE_STRUCT_STAT_ST_RDEV 1
12200 _ACEOF
12201
12202
12203 cat >>confdefs.h <<\_ACEOF
12204 #define HAVE_ST_RDEV 1
12205 _ACEOF
12206
12207 fi
12208
12209
12210 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
12211 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
12212 if test "${ac_cv_struct_tm+set}" = set; then
12213   echo $ECHO_N "(cached) $ECHO_C" >&6
12214 else
12215   cat >conftest.$ac_ext <<_ACEOF
12216 #line $LINENO "configure"
12217 /* confdefs.h.  */
12218 _ACEOF
12219 cat confdefs.h >>conftest.$ac_ext
12220 cat >>conftest.$ac_ext <<_ACEOF
12221 /* end confdefs.h.  */
12222 #include <sys/types.h>
12223 #include <time.h>
12224
12225 int
12226 main ()
12227 {
12228 struct tm *tp; tp->tm_sec;
12229   ;
12230   return 0;
12231 }
12232 _ACEOF
12233 rm -f conftest.$ac_objext
12234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12235   (eval $ac_compile) 2>&5
12236   ac_status=$?
12237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12238   (exit $ac_status); } &&
12239          { ac_try='test -s conftest.$ac_objext'
12240   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12241   (eval $ac_try) 2>&5
12242   ac_status=$?
12243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12244   (exit $ac_status); }; }; then
12245   ac_cv_struct_tm=time.h
12246 else
12247   echo "$as_me: failed program was:" >&5
12248 sed 's/^/| /' conftest.$ac_ext >&5
12249
12250 ac_cv_struct_tm=sys/time.h
12251 fi
12252 rm -f conftest.$ac_objext conftest.$ac_ext
12253 fi
12254 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
12255 echo "${ECHO_T}$ac_cv_struct_tm" >&6
12256 if test $ac_cv_struct_tm = sys/time.h; then
12257
12258 cat >>confdefs.h <<\_ACEOF
12259 #define TM_IN_SYS_TIME 1
12260 _ACEOF
12261
12262 fi
12263
12264 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
12265 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
12266 if test "${ac_cv_c_const+set}" = set; then
12267   echo $ECHO_N "(cached) $ECHO_C" >&6
12268 else
12269   cat >conftest.$ac_ext <<_ACEOF
12270 #line $LINENO "configure"
12271 /* confdefs.h.  */
12272 _ACEOF
12273 cat confdefs.h >>conftest.$ac_ext
12274 cat >>conftest.$ac_ext <<_ACEOF
12275 /* end confdefs.h.  */
12276
12277 int
12278 main ()
12279 {
12280 /* FIXME: Include the comments suggested by Paul. */
12281 #ifndef __cplusplus
12282   /* Ultrix mips cc rejects this.  */
12283   typedef int charset[2];
12284   const charset x;
12285   /* SunOS 4.1.1 cc rejects this.  */
12286   char const *const *ccp;
12287   char **p;
12288   /* NEC SVR4.0.2 mips cc rejects this.  */
12289   struct point {int x, y;};
12290   static struct point const zero = {0,0};
12291   /* AIX XL C 1.02.0.0 rejects this.
12292      It does not let you subtract one const X* pointer from another in
12293      an arm of an if-expression whose if-part is not a constant
12294      expression */
12295   const char *g = "string";
12296   ccp = &g + (g ? g-g : 0);
12297   /* HPUX 7.0 cc rejects these. */
12298   ++ccp;
12299   p = (char**) ccp;
12300   ccp = (char const *const *) p;
12301   { /* SCO 3.2v4 cc rejects this.  */
12302     char *t;
12303     char const *s = 0 ? (char *) 0 : (char const *) 0;
12304
12305     *t++ = 0;
12306   }
12307   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
12308     int x[] = {25, 17};
12309     const int *foo = &x[0];
12310     ++foo;
12311   }
12312   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12313     typedef const int *iptr;
12314     iptr p = 0;
12315     ++p;
12316   }
12317   { /* AIX XL C 1.02.0.0 rejects this saying
12318        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12319     struct s { int j; const int *ap[3]; };
12320     struct s *b; b->j = 5;
12321   }
12322   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12323     const int foo = 10;
12324   }
12325 #endif
12326
12327   ;
12328   return 0;
12329 }
12330 _ACEOF
12331 rm -f conftest.$ac_objext
12332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12333   (eval $ac_compile) 2>&5
12334   ac_status=$?
12335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12336   (exit $ac_status); } &&
12337          { ac_try='test -s conftest.$ac_objext'
12338   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12339   (eval $ac_try) 2>&5
12340   ac_status=$?
12341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12342   (exit $ac_status); }; }; then
12343   ac_cv_c_const=yes
12344 else
12345   echo "$as_me: failed program was:" >&5
12346 sed 's/^/| /' conftest.$ac_ext >&5
12347
12348 ac_cv_c_const=no
12349 fi
12350 rm -f conftest.$ac_objext conftest.$ac_ext
12351 fi
12352 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
12353 echo "${ECHO_T}$ac_cv_c_const" >&6
12354 if test $ac_cv_c_const = no; then
12355
12356 cat >>confdefs.h <<\_ACEOF
12357 #define const
12358 _ACEOF
12359
12360 fi
12361
12362
12363
12364 echo "$as_me:$LINENO: checking for char" >&5
12365 echo $ECHO_N "checking for char... $ECHO_C" >&6
12366 if test "${ac_cv_type_char+set}" = set; then
12367   echo $ECHO_N "(cached) $ECHO_C" >&6
12368 else
12369   cat >conftest.$ac_ext <<_ACEOF
12370 #line $LINENO "configure"
12371 /* confdefs.h.  */
12372 _ACEOF
12373 cat confdefs.h >>conftest.$ac_ext
12374 cat >>conftest.$ac_ext <<_ACEOF
12375 /* end confdefs.h.  */
12376 $ac_includes_default
12377 int
12378 main ()
12379 {
12380 if ((char *) 0)
12381   return 0;
12382 if (sizeof (char))
12383   return 0;
12384   ;
12385   return 0;
12386 }
12387 _ACEOF
12388 rm -f conftest.$ac_objext
12389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12390   (eval $ac_compile) 2>&5
12391   ac_status=$?
12392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12393   (exit $ac_status); } &&
12394          { ac_try='test -s conftest.$ac_objext'
12395   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12396   (eval $ac_try) 2>&5
12397   ac_status=$?
12398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12399   (exit $ac_status); }; }; then
12400   ac_cv_type_char=yes
12401 else
12402   echo "$as_me: failed program was:" >&5
12403 sed 's/^/| /' conftest.$ac_ext >&5
12404
12405 ac_cv_type_char=no
12406 fi
12407 rm -f conftest.$ac_objext conftest.$ac_ext
12408 fi
12409 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
12410 echo "${ECHO_T}$ac_cv_type_char" >&6
12411
12412 echo "$as_me:$LINENO: checking size of char" >&5
12413 echo $ECHO_N "checking size of char... $ECHO_C" >&6
12414 if test "${ac_cv_sizeof_char+set}" = set; then
12415   echo $ECHO_N "(cached) $ECHO_C" >&6
12416 else
12417   if test "$ac_cv_type_char" = yes; then
12418   # The cast to unsigned long works around a bug in the HP C Compiler
12419   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12420   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12421   # This bug is HP SR number 8606223364.
12422   if test "$cross_compiling" = yes; then
12423   # Depending upon the size, compute the lo and hi bounds.
12424 cat >conftest.$ac_ext <<_ACEOF
12425 #line $LINENO "configure"
12426 /* confdefs.h.  */
12427 _ACEOF
12428 cat confdefs.h >>conftest.$ac_ext
12429 cat >>conftest.$ac_ext <<_ACEOF
12430 /* end confdefs.h.  */
12431 $ac_includes_default
12432 int
12433 main ()
12434 {
12435 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
12436 test_array [0] = 0
12437
12438   ;
12439   return 0;
12440 }
12441 _ACEOF
12442 rm -f conftest.$ac_objext
12443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12444   (eval $ac_compile) 2>&5
12445   ac_status=$?
12446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12447   (exit $ac_status); } &&
12448          { ac_try='test -s conftest.$ac_objext'
12449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12450   (eval $ac_try) 2>&5
12451   ac_status=$?
12452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12453   (exit $ac_status); }; }; then
12454   ac_lo=0 ac_mid=0
12455   while :; do
12456     cat >conftest.$ac_ext <<_ACEOF
12457 #line $LINENO "configure"
12458 /* confdefs.h.  */
12459 _ACEOF
12460 cat confdefs.h >>conftest.$ac_ext
12461 cat >>conftest.$ac_ext <<_ACEOF
12462 /* end confdefs.h.  */
12463 $ac_includes_default
12464 int
12465 main ()
12466 {
12467 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
12468 test_array [0] = 0
12469
12470   ;
12471   return 0;
12472 }
12473 _ACEOF
12474 rm -f conftest.$ac_objext
12475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12476   (eval $ac_compile) 2>&5
12477   ac_status=$?
12478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12479   (exit $ac_status); } &&
12480          { ac_try='test -s conftest.$ac_objext'
12481   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12482   (eval $ac_try) 2>&5
12483   ac_status=$?
12484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12485   (exit $ac_status); }; }; then
12486   ac_hi=$ac_mid; break
12487 else
12488   echo "$as_me: failed program was:" >&5
12489 sed 's/^/| /' conftest.$ac_ext >&5
12490
12491 ac_lo=`expr $ac_mid + 1`
12492                     if test $ac_lo -le $ac_mid; then
12493                       ac_lo= ac_hi=
12494                       break
12495                     fi
12496                     ac_mid=`expr 2 '*' $ac_mid + 1`
12497 fi
12498 rm -f conftest.$ac_objext conftest.$ac_ext
12499   done
12500 else
12501   echo "$as_me: failed program was:" >&5
12502 sed 's/^/| /' conftest.$ac_ext >&5
12503
12504 cat >conftest.$ac_ext <<_ACEOF
12505 #line $LINENO "configure"
12506 /* confdefs.h.  */
12507 _ACEOF
12508 cat confdefs.h >>conftest.$ac_ext
12509 cat >>conftest.$ac_ext <<_ACEOF
12510 /* end confdefs.h.  */
12511 $ac_includes_default
12512 int
12513 main ()
12514 {
12515 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
12516 test_array [0] = 0
12517
12518   ;
12519   return 0;
12520 }
12521 _ACEOF
12522 rm -f conftest.$ac_objext
12523 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12524   (eval $ac_compile) 2>&5
12525   ac_status=$?
12526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12527   (exit $ac_status); } &&
12528          { ac_try='test -s conftest.$ac_objext'
12529   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12530   (eval $ac_try) 2>&5
12531   ac_status=$?
12532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12533   (exit $ac_status); }; }; then
12534   ac_hi=-1 ac_mid=-1
12535   while :; do
12536     cat >conftest.$ac_ext <<_ACEOF
12537 #line $LINENO "configure"
12538 /* confdefs.h.  */
12539 _ACEOF
12540 cat confdefs.h >>conftest.$ac_ext
12541 cat >>conftest.$ac_ext <<_ACEOF
12542 /* end confdefs.h.  */
12543 $ac_includes_default
12544 int
12545 main ()
12546 {
12547 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
12548 test_array [0] = 0
12549
12550   ;
12551   return 0;
12552 }
12553 _ACEOF
12554 rm -f conftest.$ac_objext
12555 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12556   (eval $ac_compile) 2>&5
12557   ac_status=$?
12558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12559   (exit $ac_status); } &&
12560          { ac_try='test -s conftest.$ac_objext'
12561   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12562   (eval $ac_try) 2>&5
12563   ac_status=$?
12564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12565   (exit $ac_status); }; }; then
12566   ac_lo=$ac_mid; break
12567 else
12568   echo "$as_me: failed program was:" >&5
12569 sed 's/^/| /' conftest.$ac_ext >&5
12570
12571 ac_hi=`expr '(' $ac_mid ')' - 1`
12572                        if test $ac_mid -le $ac_hi; then
12573                          ac_lo= ac_hi=
12574                          break
12575                        fi
12576                        ac_mid=`expr 2 '*' $ac_mid`
12577 fi
12578 rm -f conftest.$ac_objext conftest.$ac_ext
12579   done
12580 else
12581   echo "$as_me: failed program was:" >&5
12582 sed 's/^/| /' conftest.$ac_ext >&5
12583
12584 ac_lo= ac_hi=
12585 fi
12586 rm -f conftest.$ac_objext conftest.$ac_ext
12587 fi
12588 rm -f conftest.$ac_objext conftest.$ac_ext
12589 # Binary search between lo and hi bounds.
12590 while test "x$ac_lo" != "x$ac_hi"; do
12591   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12592   cat >conftest.$ac_ext <<_ACEOF
12593 #line $LINENO "configure"
12594 /* confdefs.h.  */
12595 _ACEOF
12596 cat confdefs.h >>conftest.$ac_ext
12597 cat >>conftest.$ac_ext <<_ACEOF
12598 /* end confdefs.h.  */
12599 $ac_includes_default
12600 int
12601 main ()
12602 {
12603 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
12604 test_array [0] = 0
12605
12606   ;
12607   return 0;
12608 }
12609 _ACEOF
12610 rm -f conftest.$ac_objext
12611 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12612   (eval $ac_compile) 2>&5
12613   ac_status=$?
12614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12615   (exit $ac_status); } &&
12616          { ac_try='test -s conftest.$ac_objext'
12617   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12618   (eval $ac_try) 2>&5
12619   ac_status=$?
12620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12621   (exit $ac_status); }; }; then
12622   ac_hi=$ac_mid
12623 else
12624   echo "$as_me: failed program was:" >&5
12625 sed 's/^/| /' conftest.$ac_ext >&5
12626
12627 ac_lo=`expr '(' $ac_mid ')' + 1`
12628 fi
12629 rm -f conftest.$ac_objext conftest.$ac_ext
12630 done
12631 case $ac_lo in
12632 ?*) ac_cv_sizeof_char=$ac_lo;;
12633 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
12634 See \`config.log' for more details." >&5
12635 echo "$as_me: error: cannot compute sizeof (char), 77
12636 See \`config.log' for more details." >&2;}
12637    { (exit 1); exit 1; }; } ;;
12638 esac
12639 else
12640   if test "$cross_compiling" = yes; then
12641   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12642 See \`config.log' for more details." >&5
12643 echo "$as_me: error: cannot run test program while cross compiling
12644 See \`config.log' for more details." >&2;}
12645    { (exit 1); exit 1; }; }
12646 else
12647   cat >conftest.$ac_ext <<_ACEOF
12648 #line $LINENO "configure"
12649 /* confdefs.h.  */
12650 _ACEOF
12651 cat confdefs.h >>conftest.$ac_ext
12652 cat >>conftest.$ac_ext <<_ACEOF
12653 /* end confdefs.h.  */
12654 $ac_includes_default
12655 long longval () { return (long) (sizeof (char)); }
12656 unsigned long ulongval () { return (long) (sizeof (char)); }
12657 #include <stdio.h>
12658 #include <stdlib.h>
12659 int
12660 main ()
12661 {
12662
12663   FILE *f = fopen ("conftest.val", "w");
12664   if (! f)
12665     exit (1);
12666   if (((long) (sizeof (char))) < 0)
12667     {
12668       long i = longval ();
12669       if (i != ((long) (sizeof (char))))
12670         exit (1);
12671       fprintf (f, "%ld\n", i);
12672     }
12673   else
12674     {
12675       unsigned long i = ulongval ();
12676       if (i != ((long) (sizeof (char))))
12677         exit (1);
12678       fprintf (f, "%lu\n", i);
12679     }
12680   exit (ferror (f) || fclose (f) != 0);
12681
12682   ;
12683   return 0;
12684 }
12685 _ACEOF
12686 rm -f conftest$ac_exeext
12687 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12688   (eval $ac_link) 2>&5
12689   ac_status=$?
12690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12691   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12692   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12693   (eval $ac_try) 2>&5
12694   ac_status=$?
12695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12696   (exit $ac_status); }; }; then
12697   ac_cv_sizeof_char=`cat conftest.val`
12698 else
12699   echo "$as_me: program exited with status $ac_status" >&5
12700 echo "$as_me: failed program was:" >&5
12701 sed 's/^/| /' conftest.$ac_ext >&5
12702
12703 ( exit $ac_status )
12704 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
12705 See \`config.log' for more details." >&5
12706 echo "$as_me: error: cannot compute sizeof (char), 77
12707 See \`config.log' for more details." >&2;}
12708    { (exit 1); exit 1; }; }
12709 fi
12710 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12711 fi
12712 fi
12713 rm -f conftest.val
12714 else
12715   ac_cv_sizeof_char=0
12716 fi
12717 fi
12718 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
12719 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
12720 cat >>confdefs.h <<_ACEOF
12721 #define SIZEOF_CHAR $ac_cv_sizeof_char
12722 _ACEOF
12723
12724
12725 echo "$as_me:$LINENO: checking for short int" >&5
12726 echo $ECHO_N "checking for short int... $ECHO_C" >&6
12727 if test "${ac_cv_type_short_int+set}" = set; then
12728   echo $ECHO_N "(cached) $ECHO_C" >&6
12729 else
12730   cat >conftest.$ac_ext <<_ACEOF
12731 #line $LINENO "configure"
12732 /* confdefs.h.  */
12733 _ACEOF
12734 cat confdefs.h >>conftest.$ac_ext
12735 cat >>conftest.$ac_ext <<_ACEOF
12736 /* end confdefs.h.  */
12737 $ac_includes_default
12738 int
12739 main ()
12740 {
12741 if ((short int *) 0)
12742   return 0;
12743 if (sizeof (short int))
12744   return 0;
12745   ;
12746   return 0;
12747 }
12748 _ACEOF
12749 rm -f conftest.$ac_objext
12750 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12751   (eval $ac_compile) 2>&5
12752   ac_status=$?
12753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12754   (exit $ac_status); } &&
12755          { ac_try='test -s conftest.$ac_objext'
12756   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12757   (eval $ac_try) 2>&5
12758   ac_status=$?
12759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12760   (exit $ac_status); }; }; then
12761   ac_cv_type_short_int=yes
12762 else
12763   echo "$as_me: failed program was:" >&5
12764 sed 's/^/| /' conftest.$ac_ext >&5
12765
12766 ac_cv_type_short_int=no
12767 fi
12768 rm -f conftest.$ac_objext conftest.$ac_ext
12769 fi
12770 echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
12771 echo "${ECHO_T}$ac_cv_type_short_int" >&6
12772
12773 echo "$as_me:$LINENO: checking size of short int" >&5
12774 echo $ECHO_N "checking size of short int... $ECHO_C" >&6
12775 if test "${ac_cv_sizeof_short_int+set}" = set; then
12776   echo $ECHO_N "(cached) $ECHO_C" >&6
12777 else
12778   if test "$ac_cv_type_short_int" = yes; then
12779   # The cast to unsigned long works around a bug in the HP C Compiler
12780   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12781   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12782   # This bug is HP SR number 8606223364.
12783   if test "$cross_compiling" = yes; then
12784   # Depending upon the size, compute the lo and hi bounds.
12785 cat >conftest.$ac_ext <<_ACEOF
12786 #line $LINENO "configure"
12787 /* confdefs.h.  */
12788 _ACEOF
12789 cat confdefs.h >>conftest.$ac_ext
12790 cat >>conftest.$ac_ext <<_ACEOF
12791 /* end confdefs.h.  */
12792 $ac_includes_default
12793 int
12794 main ()
12795 {
12796 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= 0)];
12797 test_array [0] = 0
12798
12799   ;
12800   return 0;
12801 }
12802 _ACEOF
12803 rm -f conftest.$ac_objext
12804 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12805   (eval $ac_compile) 2>&5
12806   ac_status=$?
12807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12808   (exit $ac_status); } &&
12809          { ac_try='test -s conftest.$ac_objext'
12810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12811   (eval $ac_try) 2>&5
12812   ac_status=$?
12813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12814   (exit $ac_status); }; }; then
12815   ac_lo=0 ac_mid=0
12816   while :; do
12817     cat >conftest.$ac_ext <<_ACEOF
12818 #line $LINENO "configure"
12819 /* confdefs.h.  */
12820 _ACEOF
12821 cat confdefs.h >>conftest.$ac_ext
12822 cat >>conftest.$ac_ext <<_ACEOF
12823 /* end confdefs.h.  */
12824 $ac_includes_default
12825 int
12826 main ()
12827 {
12828 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
12829 test_array [0] = 0
12830
12831   ;
12832   return 0;
12833 }
12834 _ACEOF
12835 rm -f conftest.$ac_objext
12836 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12837   (eval $ac_compile) 2>&5
12838   ac_status=$?
12839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12840   (exit $ac_status); } &&
12841          { ac_try='test -s conftest.$ac_objext'
12842   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12843   (eval $ac_try) 2>&5
12844   ac_status=$?
12845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12846   (exit $ac_status); }; }; then
12847   ac_hi=$ac_mid; break
12848 else
12849   echo "$as_me: failed program was:" >&5
12850 sed 's/^/| /' conftest.$ac_ext >&5
12851
12852 ac_lo=`expr $ac_mid + 1`
12853                     if test $ac_lo -le $ac_mid; then
12854                       ac_lo= ac_hi=
12855                       break
12856                     fi
12857                     ac_mid=`expr 2 '*' $ac_mid + 1`
12858 fi
12859 rm -f conftest.$ac_objext conftest.$ac_ext
12860   done
12861 else
12862   echo "$as_me: failed program was:" >&5
12863 sed 's/^/| /' conftest.$ac_ext >&5
12864
12865 cat >conftest.$ac_ext <<_ACEOF
12866 #line $LINENO "configure"
12867 /* confdefs.h.  */
12868 _ACEOF
12869 cat confdefs.h >>conftest.$ac_ext
12870 cat >>conftest.$ac_ext <<_ACEOF
12871 /* end confdefs.h.  */
12872 $ac_includes_default
12873 int
12874 main ()
12875 {
12876 static int test_array [1 - 2 * !(((long) (sizeof (short int))) < 0)];
12877 test_array [0] = 0
12878
12879   ;
12880   return 0;
12881 }
12882 _ACEOF
12883 rm -f conftest.$ac_objext
12884 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12885   (eval $ac_compile) 2>&5
12886   ac_status=$?
12887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12888   (exit $ac_status); } &&
12889          { ac_try='test -s conftest.$ac_objext'
12890   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12891   (eval $ac_try) 2>&5
12892   ac_status=$?
12893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12894   (exit $ac_status); }; }; then
12895   ac_hi=-1 ac_mid=-1
12896   while :; do
12897     cat >conftest.$ac_ext <<_ACEOF
12898 #line $LINENO "configure"
12899 /* confdefs.h.  */
12900 _ACEOF
12901 cat confdefs.h >>conftest.$ac_ext
12902 cat >>conftest.$ac_ext <<_ACEOF
12903 /* end confdefs.h.  */
12904 $ac_includes_default
12905 int
12906 main ()
12907 {
12908 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= $ac_mid)];
12909 test_array [0] = 0
12910
12911   ;
12912   return 0;
12913 }
12914 _ACEOF
12915 rm -f conftest.$ac_objext
12916 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12917   (eval $ac_compile) 2>&5
12918   ac_status=$?
12919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12920   (exit $ac_status); } &&
12921          { ac_try='test -s conftest.$ac_objext'
12922   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12923   (eval $ac_try) 2>&5
12924   ac_status=$?
12925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12926   (exit $ac_status); }; }; then
12927   ac_lo=$ac_mid; break
12928 else
12929   echo "$as_me: failed program was:" >&5
12930 sed 's/^/| /' conftest.$ac_ext >&5
12931
12932 ac_hi=`expr '(' $ac_mid ')' - 1`
12933                        if test $ac_mid -le $ac_hi; then
12934                          ac_lo= ac_hi=
12935                          break
12936                        fi
12937                        ac_mid=`expr 2 '*' $ac_mid`
12938 fi
12939 rm -f conftest.$ac_objext conftest.$ac_ext
12940   done
12941 else
12942   echo "$as_me: failed program was:" >&5
12943 sed 's/^/| /' conftest.$ac_ext >&5
12944
12945 ac_lo= ac_hi=
12946 fi
12947 rm -f conftest.$ac_objext conftest.$ac_ext
12948 fi
12949 rm -f conftest.$ac_objext conftest.$ac_ext
12950 # Binary search between lo and hi bounds.
12951 while test "x$ac_lo" != "x$ac_hi"; do
12952   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12953   cat >conftest.$ac_ext <<_ACEOF
12954 #line $LINENO "configure"
12955 /* confdefs.h.  */
12956 _ACEOF
12957 cat confdefs.h >>conftest.$ac_ext
12958 cat >>conftest.$ac_ext <<_ACEOF
12959 /* end confdefs.h.  */
12960 $ac_includes_default
12961 int
12962 main ()
12963 {
12964 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
12965 test_array [0] = 0
12966
12967   ;
12968   return 0;
12969 }
12970 _ACEOF
12971 rm -f conftest.$ac_objext
12972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12973   (eval $ac_compile) 2>&5
12974   ac_status=$?
12975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12976   (exit $ac_status); } &&
12977          { ac_try='test -s conftest.$ac_objext'
12978   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12979   (eval $ac_try) 2>&5
12980   ac_status=$?
12981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12982   (exit $ac_status); }; }; then
12983   ac_hi=$ac_mid
12984 else
12985   echo "$as_me: failed program was:" >&5
12986 sed 's/^/| /' conftest.$ac_ext >&5
12987
12988 ac_lo=`expr '(' $ac_mid ')' + 1`
12989 fi
12990 rm -f conftest.$ac_objext conftest.$ac_ext
12991 done
12992 case $ac_lo in
12993 ?*) ac_cv_sizeof_short_int=$ac_lo;;
12994 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
12995 See \`config.log' for more details." >&5
12996 echo "$as_me: error: cannot compute sizeof (short int), 77
12997 See \`config.log' for more details." >&2;}
12998    { (exit 1); exit 1; }; } ;;
12999 esac
13000 else
13001   if test "$cross_compiling" = yes; then
13002   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13003 See \`config.log' for more details." >&5
13004 echo "$as_me: error: cannot run test program while cross compiling
13005 See \`config.log' for more details." >&2;}
13006    { (exit 1); exit 1; }; }
13007 else
13008   cat >conftest.$ac_ext <<_ACEOF
13009 #line $LINENO "configure"
13010 /* confdefs.h.  */
13011 _ACEOF
13012 cat confdefs.h >>conftest.$ac_ext
13013 cat >>conftest.$ac_ext <<_ACEOF
13014 /* end confdefs.h.  */
13015 $ac_includes_default
13016 long longval () { return (long) (sizeof (short int)); }
13017 unsigned long ulongval () { return (long) (sizeof (short int)); }
13018 #include <stdio.h>
13019 #include <stdlib.h>
13020 int
13021 main ()
13022 {
13023
13024   FILE *f = fopen ("conftest.val", "w");
13025   if (! f)
13026     exit (1);
13027   if (((long) (sizeof (short int))) < 0)
13028     {
13029       long i = longval ();
13030       if (i != ((long) (sizeof (short int))))
13031         exit (1);
13032       fprintf (f, "%ld\n", i);
13033     }
13034   else
13035     {
13036       unsigned long i = ulongval ();
13037       if (i != ((long) (sizeof (short int))))
13038         exit (1);
13039       fprintf (f, "%lu\n", i);
13040     }
13041   exit (ferror (f) || fclose (f) != 0);
13042
13043   ;
13044   return 0;
13045 }
13046 _ACEOF
13047 rm -f conftest$ac_exeext
13048 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13049   (eval $ac_link) 2>&5
13050   ac_status=$?
13051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13052   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13053   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13054   (eval $ac_try) 2>&5
13055   ac_status=$?
13056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13057   (exit $ac_status); }; }; then
13058   ac_cv_sizeof_short_int=`cat conftest.val`
13059 else
13060   echo "$as_me: program exited with status $ac_status" >&5
13061 echo "$as_me: failed program was:" >&5
13062 sed 's/^/| /' conftest.$ac_ext >&5
13063
13064 ( exit $ac_status )
13065 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
13066 See \`config.log' for more details." >&5
13067 echo "$as_me: error: cannot compute sizeof (short int), 77
13068 See \`config.log' for more details." >&2;}
13069    { (exit 1); exit 1; }; }
13070 fi
13071 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13072 fi
13073 fi
13074 rm -f conftest.val
13075 else
13076   ac_cv_sizeof_short_int=0
13077 fi
13078 fi
13079 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
13080 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6
13081 cat >>confdefs.h <<_ACEOF
13082 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
13083 _ACEOF
13084
13085
13086 echo "$as_me:$LINENO: checking for int" >&5
13087 echo $ECHO_N "checking for int... $ECHO_C" >&6
13088 if test "${ac_cv_type_int+set}" = set; then
13089   echo $ECHO_N "(cached) $ECHO_C" >&6
13090 else
13091   cat >conftest.$ac_ext <<_ACEOF
13092 #line $LINENO "configure"
13093 /* confdefs.h.  */
13094 _ACEOF
13095 cat confdefs.h >>conftest.$ac_ext
13096 cat >>conftest.$ac_ext <<_ACEOF
13097 /* end confdefs.h.  */
13098 $ac_includes_default
13099 int
13100 main ()
13101 {
13102 if ((int *) 0)
13103   return 0;
13104 if (sizeof (int))
13105   return 0;
13106   ;
13107   return 0;
13108 }
13109 _ACEOF
13110 rm -f conftest.$ac_objext
13111 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13112   (eval $ac_compile) 2>&5
13113   ac_status=$?
13114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13115   (exit $ac_status); } &&
13116          { ac_try='test -s conftest.$ac_objext'
13117   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13118   (eval $ac_try) 2>&5
13119   ac_status=$?
13120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13121   (exit $ac_status); }; }; then
13122   ac_cv_type_int=yes
13123 else
13124   echo "$as_me: failed program was:" >&5
13125 sed 's/^/| /' conftest.$ac_ext >&5
13126
13127 ac_cv_type_int=no
13128 fi
13129 rm -f conftest.$ac_objext conftest.$ac_ext
13130 fi
13131 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
13132 echo "${ECHO_T}$ac_cv_type_int" >&6
13133
13134 echo "$as_me:$LINENO: checking size of int" >&5
13135 echo $ECHO_N "checking size of int... $ECHO_C" >&6
13136 if test "${ac_cv_sizeof_int+set}" = set; then
13137   echo $ECHO_N "(cached) $ECHO_C" >&6
13138 else
13139   if test "$ac_cv_type_int" = yes; then
13140   # The cast to unsigned long works around a bug in the HP C Compiler
13141   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13142   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13143   # This bug is HP SR number 8606223364.
13144   if test "$cross_compiling" = yes; then
13145   # Depending upon the size, compute the lo and hi bounds.
13146 cat >conftest.$ac_ext <<_ACEOF
13147 #line $LINENO "configure"
13148 /* confdefs.h.  */
13149 _ACEOF
13150 cat confdefs.h >>conftest.$ac_ext
13151 cat >>conftest.$ac_ext <<_ACEOF
13152 /* end confdefs.h.  */
13153 $ac_includes_default
13154 int
13155 main ()
13156 {
13157 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
13158 test_array [0] = 0
13159
13160   ;
13161   return 0;
13162 }
13163 _ACEOF
13164 rm -f conftest.$ac_objext
13165 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13166   (eval $ac_compile) 2>&5
13167   ac_status=$?
13168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13169   (exit $ac_status); } &&
13170          { ac_try='test -s conftest.$ac_objext'
13171   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13172   (eval $ac_try) 2>&5
13173   ac_status=$?
13174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13175   (exit $ac_status); }; }; then
13176   ac_lo=0 ac_mid=0
13177   while :; do
13178     cat >conftest.$ac_ext <<_ACEOF
13179 #line $LINENO "configure"
13180 /* confdefs.h.  */
13181 _ACEOF
13182 cat confdefs.h >>conftest.$ac_ext
13183 cat >>conftest.$ac_ext <<_ACEOF
13184 /* end confdefs.h.  */
13185 $ac_includes_default
13186 int
13187 main ()
13188 {
13189 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
13190 test_array [0] = 0
13191
13192   ;
13193   return 0;
13194 }
13195 _ACEOF
13196 rm -f conftest.$ac_objext
13197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13198   (eval $ac_compile) 2>&5
13199   ac_status=$?
13200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13201   (exit $ac_status); } &&
13202          { ac_try='test -s conftest.$ac_objext'
13203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13204   (eval $ac_try) 2>&5
13205   ac_status=$?
13206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13207   (exit $ac_status); }; }; then
13208   ac_hi=$ac_mid; break
13209 else
13210   echo "$as_me: failed program was:" >&5
13211 sed 's/^/| /' conftest.$ac_ext >&5
13212
13213 ac_lo=`expr $ac_mid + 1`
13214                     if test $ac_lo -le $ac_mid; then
13215                       ac_lo= ac_hi=
13216                       break
13217                     fi
13218                     ac_mid=`expr 2 '*' $ac_mid + 1`
13219 fi
13220 rm -f conftest.$ac_objext conftest.$ac_ext
13221   done
13222 else
13223   echo "$as_me: failed program was:" >&5
13224 sed 's/^/| /' conftest.$ac_ext >&5
13225
13226 cat >conftest.$ac_ext <<_ACEOF
13227 #line $LINENO "configure"
13228 /* confdefs.h.  */
13229 _ACEOF
13230 cat confdefs.h >>conftest.$ac_ext
13231 cat >>conftest.$ac_ext <<_ACEOF
13232 /* end confdefs.h.  */
13233 $ac_includes_default
13234 int
13235 main ()
13236 {
13237 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
13238 test_array [0] = 0
13239
13240   ;
13241   return 0;
13242 }
13243 _ACEOF
13244 rm -f conftest.$ac_objext
13245 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13246   (eval $ac_compile) 2>&5
13247   ac_status=$?
13248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13249   (exit $ac_status); } &&
13250          { ac_try='test -s conftest.$ac_objext'
13251   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13252   (eval $ac_try) 2>&5
13253   ac_status=$?
13254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13255   (exit $ac_status); }; }; then
13256   ac_hi=-1 ac_mid=-1
13257   while :; do
13258     cat >conftest.$ac_ext <<_ACEOF
13259 #line $LINENO "configure"
13260 /* confdefs.h.  */
13261 _ACEOF
13262 cat confdefs.h >>conftest.$ac_ext
13263 cat >>conftest.$ac_ext <<_ACEOF
13264 /* end confdefs.h.  */
13265 $ac_includes_default
13266 int
13267 main ()
13268 {
13269 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
13270 test_array [0] = 0
13271
13272   ;
13273   return 0;
13274 }
13275 _ACEOF
13276 rm -f conftest.$ac_objext
13277 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13278   (eval $ac_compile) 2>&5
13279   ac_status=$?
13280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13281   (exit $ac_status); } &&
13282          { ac_try='test -s conftest.$ac_objext'
13283   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13284   (eval $ac_try) 2>&5
13285   ac_status=$?
13286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13287   (exit $ac_status); }; }; then
13288   ac_lo=$ac_mid; break
13289 else
13290   echo "$as_me: failed program was:" >&5
13291 sed 's/^/| /' conftest.$ac_ext >&5
13292
13293 ac_hi=`expr '(' $ac_mid ')' - 1`
13294                        if test $ac_mid -le $ac_hi; then
13295                          ac_lo= ac_hi=
13296                          break
13297                        fi
13298                        ac_mid=`expr 2 '*' $ac_mid`
13299 fi
13300 rm -f conftest.$ac_objext conftest.$ac_ext
13301   done
13302 else
13303   echo "$as_me: failed program was:" >&5
13304 sed 's/^/| /' conftest.$ac_ext >&5
13305
13306 ac_lo= ac_hi=
13307 fi
13308 rm -f conftest.$ac_objext conftest.$ac_ext
13309 fi
13310 rm -f conftest.$ac_objext conftest.$ac_ext
13311 # Binary search between lo and hi bounds.
13312 while test "x$ac_lo" != "x$ac_hi"; do
13313   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13314   cat >conftest.$ac_ext <<_ACEOF
13315 #line $LINENO "configure"
13316 /* confdefs.h.  */
13317 _ACEOF
13318 cat confdefs.h >>conftest.$ac_ext
13319 cat >>conftest.$ac_ext <<_ACEOF
13320 /* end confdefs.h.  */
13321 $ac_includes_default
13322 int
13323 main ()
13324 {
13325 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
13326 test_array [0] = 0
13327
13328   ;
13329   return 0;
13330 }
13331 _ACEOF
13332 rm -f conftest.$ac_objext
13333 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13334   (eval $ac_compile) 2>&5
13335   ac_status=$?
13336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13337   (exit $ac_status); } &&
13338          { ac_try='test -s conftest.$ac_objext'
13339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13340   (eval $ac_try) 2>&5
13341   ac_status=$?
13342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13343   (exit $ac_status); }; }; then
13344   ac_hi=$ac_mid
13345 else
13346   echo "$as_me: failed program was:" >&5
13347 sed 's/^/| /' conftest.$ac_ext >&5
13348
13349 ac_lo=`expr '(' $ac_mid ')' + 1`
13350 fi
13351 rm -f conftest.$ac_objext conftest.$ac_ext
13352 done
13353 case $ac_lo in
13354 ?*) ac_cv_sizeof_int=$ac_lo;;
13355 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
13356 See \`config.log' for more details." >&5
13357 echo "$as_me: error: cannot compute sizeof (int), 77
13358 See \`config.log' for more details." >&2;}
13359    { (exit 1); exit 1; }; } ;;
13360 esac
13361 else
13362   if test "$cross_compiling" = yes; then
13363   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13364 See \`config.log' for more details." >&5
13365 echo "$as_me: error: cannot run test program while cross compiling
13366 See \`config.log' for more details." >&2;}
13367    { (exit 1); exit 1; }; }
13368 else
13369   cat >conftest.$ac_ext <<_ACEOF
13370 #line $LINENO "configure"
13371 /* confdefs.h.  */
13372 _ACEOF
13373 cat confdefs.h >>conftest.$ac_ext
13374 cat >>conftest.$ac_ext <<_ACEOF
13375 /* end confdefs.h.  */
13376 $ac_includes_default
13377 long longval () { return (long) (sizeof (int)); }
13378 unsigned long ulongval () { return (long) (sizeof (int)); }
13379 #include <stdio.h>
13380 #include <stdlib.h>
13381 int
13382 main ()
13383 {
13384
13385   FILE *f = fopen ("conftest.val", "w");
13386   if (! f)
13387     exit (1);
13388   if (((long) (sizeof (int))) < 0)
13389     {
13390       long i = longval ();
13391       if (i != ((long) (sizeof (int))))
13392         exit (1);
13393       fprintf (f, "%ld\n", i);
13394     }
13395   else
13396     {
13397       unsigned long i = ulongval ();
13398       if (i != ((long) (sizeof (int))))
13399         exit (1);
13400       fprintf (f, "%lu\n", i);
13401     }
13402   exit (ferror (f) || fclose (f) != 0);
13403
13404   ;
13405   return 0;
13406 }
13407 _ACEOF
13408 rm -f conftest$ac_exeext
13409 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13410   (eval $ac_link) 2>&5
13411   ac_status=$?
13412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13413   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13414   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13415   (eval $ac_try) 2>&5
13416   ac_status=$?
13417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13418   (exit $ac_status); }; }; then
13419   ac_cv_sizeof_int=`cat conftest.val`
13420 else
13421   echo "$as_me: program exited with status $ac_status" >&5
13422 echo "$as_me: failed program was:" >&5
13423 sed 's/^/| /' conftest.$ac_ext >&5
13424
13425 ( exit $ac_status )
13426 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
13427 See \`config.log' for more details." >&5
13428 echo "$as_me: error: cannot compute sizeof (int), 77
13429 See \`config.log' for more details." >&2;}
13430    { (exit 1); exit 1; }; }
13431 fi
13432 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13433 fi
13434 fi
13435 rm -f conftest.val
13436 else
13437   ac_cv_sizeof_int=0
13438 fi
13439 fi
13440 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
13441 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
13442 cat >>confdefs.h <<_ACEOF
13443 #define SIZEOF_INT $ac_cv_sizeof_int
13444 _ACEOF
13445
13446
13447 echo "$as_me:$LINENO: checking for long int" >&5
13448 echo $ECHO_N "checking for long int... $ECHO_C" >&6
13449 if test "${ac_cv_type_long_int+set}" = set; then
13450   echo $ECHO_N "(cached) $ECHO_C" >&6
13451 else
13452   cat >conftest.$ac_ext <<_ACEOF
13453 #line $LINENO "configure"
13454 /* confdefs.h.  */
13455 _ACEOF
13456 cat confdefs.h >>conftest.$ac_ext
13457 cat >>conftest.$ac_ext <<_ACEOF
13458 /* end confdefs.h.  */
13459 $ac_includes_default
13460 int
13461 main ()
13462 {
13463 if ((long int *) 0)
13464   return 0;
13465 if (sizeof (long int))
13466   return 0;
13467   ;
13468   return 0;
13469 }
13470 _ACEOF
13471 rm -f conftest.$ac_objext
13472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13473   (eval $ac_compile) 2>&5
13474   ac_status=$?
13475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13476   (exit $ac_status); } &&
13477          { ac_try='test -s conftest.$ac_objext'
13478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13479   (eval $ac_try) 2>&5
13480   ac_status=$?
13481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13482   (exit $ac_status); }; }; then
13483   ac_cv_type_long_int=yes
13484 else
13485   echo "$as_me: failed program was:" >&5
13486 sed 's/^/| /' conftest.$ac_ext >&5
13487
13488 ac_cv_type_long_int=no
13489 fi
13490 rm -f conftest.$ac_objext conftest.$ac_ext
13491 fi
13492 echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
13493 echo "${ECHO_T}$ac_cv_type_long_int" >&6
13494
13495 echo "$as_me:$LINENO: checking size of long int" >&5
13496 echo $ECHO_N "checking size of long int... $ECHO_C" >&6
13497 if test "${ac_cv_sizeof_long_int+set}" = set; then
13498   echo $ECHO_N "(cached) $ECHO_C" >&6
13499 else
13500   if test "$ac_cv_type_long_int" = yes; then
13501   # The cast to unsigned long works around a bug in the HP C Compiler
13502   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13503   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13504   # This bug is HP SR number 8606223364.
13505   if test "$cross_compiling" = yes; then
13506   # Depending upon the size, compute the lo and hi bounds.
13507 cat >conftest.$ac_ext <<_ACEOF
13508 #line $LINENO "configure"
13509 /* confdefs.h.  */
13510 _ACEOF
13511 cat confdefs.h >>conftest.$ac_ext
13512 cat >>conftest.$ac_ext <<_ACEOF
13513 /* end confdefs.h.  */
13514 $ac_includes_default
13515 int
13516 main ()
13517 {
13518 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= 0)];
13519 test_array [0] = 0
13520
13521   ;
13522   return 0;
13523 }
13524 _ACEOF
13525 rm -f conftest.$ac_objext
13526 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13527   (eval $ac_compile) 2>&5
13528   ac_status=$?
13529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13530   (exit $ac_status); } &&
13531          { ac_try='test -s conftest.$ac_objext'
13532   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13533   (eval $ac_try) 2>&5
13534   ac_status=$?
13535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13536   (exit $ac_status); }; }; then
13537   ac_lo=0 ac_mid=0
13538   while :; do
13539     cat >conftest.$ac_ext <<_ACEOF
13540 #line $LINENO "configure"
13541 /* confdefs.h.  */
13542 _ACEOF
13543 cat confdefs.h >>conftest.$ac_ext
13544 cat >>conftest.$ac_ext <<_ACEOF
13545 /* end confdefs.h.  */
13546 $ac_includes_default
13547 int
13548 main ()
13549 {
13550 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
13551 test_array [0] = 0
13552
13553   ;
13554   return 0;
13555 }
13556 _ACEOF
13557 rm -f conftest.$ac_objext
13558 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13559   (eval $ac_compile) 2>&5
13560   ac_status=$?
13561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13562   (exit $ac_status); } &&
13563          { ac_try='test -s conftest.$ac_objext'
13564   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13565   (eval $ac_try) 2>&5
13566   ac_status=$?
13567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13568   (exit $ac_status); }; }; then
13569   ac_hi=$ac_mid; break
13570 else
13571   echo "$as_me: failed program was:" >&5
13572 sed 's/^/| /' conftest.$ac_ext >&5
13573
13574 ac_lo=`expr $ac_mid + 1`
13575                     if test $ac_lo -le $ac_mid; then
13576                       ac_lo= ac_hi=
13577                       break
13578                     fi
13579                     ac_mid=`expr 2 '*' $ac_mid + 1`
13580 fi
13581 rm -f conftest.$ac_objext conftest.$ac_ext
13582   done
13583 else
13584   echo "$as_me: failed program was:" >&5
13585 sed 's/^/| /' conftest.$ac_ext >&5
13586
13587 cat >conftest.$ac_ext <<_ACEOF
13588 #line $LINENO "configure"
13589 /* confdefs.h.  */
13590 _ACEOF
13591 cat confdefs.h >>conftest.$ac_ext
13592 cat >>conftest.$ac_ext <<_ACEOF
13593 /* end confdefs.h.  */
13594 $ac_includes_default
13595 int
13596 main ()
13597 {
13598 static int test_array [1 - 2 * !(((long) (sizeof (long int))) < 0)];
13599 test_array [0] = 0
13600
13601   ;
13602   return 0;
13603 }
13604 _ACEOF
13605 rm -f conftest.$ac_objext
13606 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13607   (eval $ac_compile) 2>&5
13608   ac_status=$?
13609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13610   (exit $ac_status); } &&
13611          { ac_try='test -s conftest.$ac_objext'
13612   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13613   (eval $ac_try) 2>&5
13614   ac_status=$?
13615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13616   (exit $ac_status); }; }; then
13617   ac_hi=-1 ac_mid=-1
13618   while :; do
13619     cat >conftest.$ac_ext <<_ACEOF
13620 #line $LINENO "configure"
13621 /* confdefs.h.  */
13622 _ACEOF
13623 cat confdefs.h >>conftest.$ac_ext
13624 cat >>conftest.$ac_ext <<_ACEOF
13625 /* end confdefs.h.  */
13626 $ac_includes_default
13627 int
13628 main ()
13629 {
13630 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= $ac_mid)];
13631 test_array [0] = 0
13632
13633   ;
13634   return 0;
13635 }
13636 _ACEOF
13637 rm -f conftest.$ac_objext
13638 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13639   (eval $ac_compile) 2>&5
13640   ac_status=$?
13641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13642   (exit $ac_status); } &&
13643          { ac_try='test -s conftest.$ac_objext'
13644   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13645   (eval $ac_try) 2>&5
13646   ac_status=$?
13647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13648   (exit $ac_status); }; }; then
13649   ac_lo=$ac_mid; break
13650 else
13651   echo "$as_me: failed program was:" >&5
13652 sed 's/^/| /' conftest.$ac_ext >&5
13653
13654 ac_hi=`expr '(' $ac_mid ')' - 1`
13655                        if test $ac_mid -le $ac_hi; then
13656                          ac_lo= ac_hi=
13657                          break
13658                        fi
13659                        ac_mid=`expr 2 '*' $ac_mid`
13660 fi
13661 rm -f conftest.$ac_objext conftest.$ac_ext
13662   done
13663 else
13664   echo "$as_me: failed program was:" >&5
13665 sed 's/^/| /' conftest.$ac_ext >&5
13666
13667 ac_lo= ac_hi=
13668 fi
13669 rm -f conftest.$ac_objext conftest.$ac_ext
13670 fi
13671 rm -f conftest.$ac_objext conftest.$ac_ext
13672 # Binary search between lo and hi bounds.
13673 while test "x$ac_lo" != "x$ac_hi"; do
13674   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13675   cat >conftest.$ac_ext <<_ACEOF
13676 #line $LINENO "configure"
13677 /* confdefs.h.  */
13678 _ACEOF
13679 cat confdefs.h >>conftest.$ac_ext
13680 cat >>conftest.$ac_ext <<_ACEOF
13681 /* end confdefs.h.  */
13682 $ac_includes_default
13683 int
13684 main ()
13685 {
13686 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
13687 test_array [0] = 0
13688
13689   ;
13690   return 0;
13691 }
13692 _ACEOF
13693 rm -f conftest.$ac_objext
13694 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13695   (eval $ac_compile) 2>&5
13696   ac_status=$?
13697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13698   (exit $ac_status); } &&
13699          { ac_try='test -s conftest.$ac_objext'
13700   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13701   (eval $ac_try) 2>&5
13702   ac_status=$?
13703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13704   (exit $ac_status); }; }; then
13705   ac_hi=$ac_mid
13706 else
13707   echo "$as_me: failed program was:" >&5
13708 sed 's/^/| /' conftest.$ac_ext >&5
13709
13710 ac_lo=`expr '(' $ac_mid ')' + 1`
13711 fi
13712 rm -f conftest.$ac_objext conftest.$ac_ext
13713 done
13714 case $ac_lo in
13715 ?*) ac_cv_sizeof_long_int=$ac_lo;;
13716 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
13717 See \`config.log' for more details." >&5
13718 echo "$as_me: error: cannot compute sizeof (long int), 77
13719 See \`config.log' for more details." >&2;}
13720    { (exit 1); exit 1; }; } ;;
13721 esac
13722 else
13723   if test "$cross_compiling" = yes; then
13724   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13725 See \`config.log' for more details." >&5
13726 echo "$as_me: error: cannot run test program while cross compiling
13727 See \`config.log' for more details." >&2;}
13728    { (exit 1); exit 1; }; }
13729 else
13730   cat >conftest.$ac_ext <<_ACEOF
13731 #line $LINENO "configure"
13732 /* confdefs.h.  */
13733 _ACEOF
13734 cat confdefs.h >>conftest.$ac_ext
13735 cat >>conftest.$ac_ext <<_ACEOF
13736 /* end confdefs.h.  */
13737 $ac_includes_default
13738 long longval () { return (long) (sizeof (long int)); }
13739 unsigned long ulongval () { return (long) (sizeof (long int)); }
13740 #include <stdio.h>
13741 #include <stdlib.h>
13742 int
13743 main ()
13744 {
13745
13746   FILE *f = fopen ("conftest.val", "w");
13747   if (! f)
13748     exit (1);
13749   if (((long) (sizeof (long int))) < 0)
13750     {
13751       long i = longval ();
13752       if (i != ((long) (sizeof (long int))))
13753         exit (1);
13754       fprintf (f, "%ld\n", i);
13755     }
13756   else
13757     {
13758       unsigned long i = ulongval ();
13759       if (i != ((long) (sizeof (long int))))
13760         exit (1);
13761       fprintf (f, "%lu\n", i);
13762     }
13763   exit (ferror (f) || fclose (f) != 0);
13764
13765   ;
13766   return 0;
13767 }
13768 _ACEOF
13769 rm -f conftest$ac_exeext
13770 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13771   (eval $ac_link) 2>&5
13772   ac_status=$?
13773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13774   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13775   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13776   (eval $ac_try) 2>&5
13777   ac_status=$?
13778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13779   (exit $ac_status); }; }; then
13780   ac_cv_sizeof_long_int=`cat conftest.val`
13781 else
13782   echo "$as_me: program exited with status $ac_status" >&5
13783 echo "$as_me: failed program was:" >&5
13784 sed 's/^/| /' conftest.$ac_ext >&5
13785
13786 ( exit $ac_status )
13787 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
13788 See \`config.log' for more details." >&5
13789 echo "$as_me: error: cannot compute sizeof (long int), 77
13790 See \`config.log' for more details." >&2;}
13791    { (exit 1); exit 1; }; }
13792 fi
13793 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13794 fi
13795 fi
13796 rm -f conftest.val
13797 else
13798   ac_cv_sizeof_long_int=0
13799 fi
13800 fi
13801 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
13802 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6
13803 cat >>confdefs.h <<_ACEOF
13804 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
13805 _ACEOF
13806
13807
13808 echo "$as_me:$LINENO: checking for long long int" >&5
13809 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
13810 if test "${ac_cv_type_long_long_int+set}" = set; then
13811   echo $ECHO_N "(cached) $ECHO_C" >&6
13812 else
13813   cat >conftest.$ac_ext <<_ACEOF
13814 #line $LINENO "configure"
13815 /* confdefs.h.  */
13816 _ACEOF
13817 cat confdefs.h >>conftest.$ac_ext
13818 cat >>conftest.$ac_ext <<_ACEOF
13819 /* end confdefs.h.  */
13820 $ac_includes_default
13821 int
13822 main ()
13823 {
13824 if ((long long int *) 0)
13825   return 0;
13826 if (sizeof (long long int))
13827   return 0;
13828   ;
13829   return 0;
13830 }
13831 _ACEOF
13832 rm -f conftest.$ac_objext
13833 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13834   (eval $ac_compile) 2>&5
13835   ac_status=$?
13836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13837   (exit $ac_status); } &&
13838          { ac_try='test -s conftest.$ac_objext'
13839   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13840   (eval $ac_try) 2>&5
13841   ac_status=$?
13842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13843   (exit $ac_status); }; }; then
13844   ac_cv_type_long_long_int=yes
13845 else
13846   echo "$as_me: failed program was:" >&5
13847 sed 's/^/| /' conftest.$ac_ext >&5
13848
13849 ac_cv_type_long_long_int=no
13850 fi
13851 rm -f conftest.$ac_objext conftest.$ac_ext
13852 fi
13853 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
13854 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
13855
13856 echo "$as_me:$LINENO: checking size of long long int" >&5
13857 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6
13858 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
13859   echo $ECHO_N "(cached) $ECHO_C" >&6
13860 else
13861   if test "$ac_cv_type_long_long_int" = yes; then
13862   # The cast to unsigned long works around a bug in the HP C Compiler
13863   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13864   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13865   # This bug is HP SR number 8606223364.
13866   if test "$cross_compiling" = yes; then
13867   # Depending upon the size, compute the lo and hi bounds.
13868 cat >conftest.$ac_ext <<_ACEOF
13869 #line $LINENO "configure"
13870 /* confdefs.h.  */
13871 _ACEOF
13872 cat confdefs.h >>conftest.$ac_ext
13873 cat >>conftest.$ac_ext <<_ACEOF
13874 /* end confdefs.h.  */
13875 $ac_includes_default
13876 int
13877 main ()
13878 {
13879 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= 0)];
13880 test_array [0] = 0
13881
13882   ;
13883   return 0;
13884 }
13885 _ACEOF
13886 rm -f conftest.$ac_objext
13887 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13888   (eval $ac_compile) 2>&5
13889   ac_status=$?
13890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13891   (exit $ac_status); } &&
13892          { ac_try='test -s conftest.$ac_objext'
13893   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13894   (eval $ac_try) 2>&5
13895   ac_status=$?
13896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13897   (exit $ac_status); }; }; then
13898   ac_lo=0 ac_mid=0
13899   while :; do
13900     cat >conftest.$ac_ext <<_ACEOF
13901 #line $LINENO "configure"
13902 /* confdefs.h.  */
13903 _ACEOF
13904 cat confdefs.h >>conftest.$ac_ext
13905 cat >>conftest.$ac_ext <<_ACEOF
13906 /* end confdefs.h.  */
13907 $ac_includes_default
13908 int
13909 main ()
13910 {
13911 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
13912 test_array [0] = 0
13913
13914   ;
13915   return 0;
13916 }
13917 _ACEOF
13918 rm -f conftest.$ac_objext
13919 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13920   (eval $ac_compile) 2>&5
13921   ac_status=$?
13922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13923   (exit $ac_status); } &&
13924          { ac_try='test -s conftest.$ac_objext'
13925   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13926   (eval $ac_try) 2>&5
13927   ac_status=$?
13928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13929   (exit $ac_status); }; }; then
13930   ac_hi=$ac_mid; break
13931 else
13932   echo "$as_me: failed program was:" >&5
13933 sed 's/^/| /' conftest.$ac_ext >&5
13934
13935 ac_lo=`expr $ac_mid + 1`
13936                     if test $ac_lo -le $ac_mid; then
13937                       ac_lo= ac_hi=
13938                       break
13939                     fi
13940                     ac_mid=`expr 2 '*' $ac_mid + 1`
13941 fi
13942 rm -f conftest.$ac_objext conftest.$ac_ext
13943   done
13944 else
13945   echo "$as_me: failed program was:" >&5
13946 sed 's/^/| /' conftest.$ac_ext >&5
13947
13948 cat >conftest.$ac_ext <<_ACEOF
13949 #line $LINENO "configure"
13950 /* confdefs.h.  */
13951 _ACEOF
13952 cat confdefs.h >>conftest.$ac_ext
13953 cat >>conftest.$ac_ext <<_ACEOF
13954 /* end confdefs.h.  */
13955 $ac_includes_default
13956 int
13957 main ()
13958 {
13959 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) < 0)];
13960 test_array [0] = 0
13961
13962   ;
13963   return 0;
13964 }
13965 _ACEOF
13966 rm -f conftest.$ac_objext
13967 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13968   (eval $ac_compile) 2>&5
13969   ac_status=$?
13970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13971   (exit $ac_status); } &&
13972          { ac_try='test -s conftest.$ac_objext'
13973   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13974   (eval $ac_try) 2>&5
13975   ac_status=$?
13976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13977   (exit $ac_status); }; }; then
13978   ac_hi=-1 ac_mid=-1
13979   while :; do
13980     cat >conftest.$ac_ext <<_ACEOF
13981 #line $LINENO "configure"
13982 /* confdefs.h.  */
13983 _ACEOF
13984 cat confdefs.h >>conftest.$ac_ext
13985 cat >>conftest.$ac_ext <<_ACEOF
13986 /* end confdefs.h.  */
13987 $ac_includes_default
13988 int
13989 main ()
13990 {
13991 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= $ac_mid)];
13992 test_array [0] = 0
13993
13994   ;
13995   return 0;
13996 }
13997 _ACEOF
13998 rm -f conftest.$ac_objext
13999 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14000   (eval $ac_compile) 2>&5
14001   ac_status=$?
14002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14003   (exit $ac_status); } &&
14004          { ac_try='test -s conftest.$ac_objext'
14005   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14006   (eval $ac_try) 2>&5
14007   ac_status=$?
14008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14009   (exit $ac_status); }; }; then
14010   ac_lo=$ac_mid; break
14011 else
14012   echo "$as_me: failed program was:" >&5
14013 sed 's/^/| /' conftest.$ac_ext >&5
14014
14015 ac_hi=`expr '(' $ac_mid ')' - 1`
14016                        if test $ac_mid -le $ac_hi; then
14017                          ac_lo= ac_hi=
14018                          break
14019                        fi
14020                        ac_mid=`expr 2 '*' $ac_mid`
14021 fi
14022 rm -f conftest.$ac_objext conftest.$ac_ext
14023   done
14024 else
14025   echo "$as_me: failed program was:" >&5
14026 sed 's/^/| /' conftest.$ac_ext >&5
14027
14028 ac_lo= ac_hi=
14029 fi
14030 rm -f conftest.$ac_objext conftest.$ac_ext
14031 fi
14032 rm -f conftest.$ac_objext conftest.$ac_ext
14033 # Binary search between lo and hi bounds.
14034 while test "x$ac_lo" != "x$ac_hi"; do
14035   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14036   cat >conftest.$ac_ext <<_ACEOF
14037 #line $LINENO "configure"
14038 /* confdefs.h.  */
14039 _ACEOF
14040 cat confdefs.h >>conftest.$ac_ext
14041 cat >>conftest.$ac_ext <<_ACEOF
14042 /* end confdefs.h.  */
14043 $ac_includes_default
14044 int
14045 main ()
14046 {
14047 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
14048 test_array [0] = 0
14049
14050   ;
14051   return 0;
14052 }
14053 _ACEOF
14054 rm -f conftest.$ac_objext
14055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14056   (eval $ac_compile) 2>&5
14057   ac_status=$?
14058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14059   (exit $ac_status); } &&
14060          { ac_try='test -s conftest.$ac_objext'
14061   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14062   (eval $ac_try) 2>&5
14063   ac_status=$?
14064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14065   (exit $ac_status); }; }; then
14066   ac_hi=$ac_mid
14067 else
14068   echo "$as_me: failed program was:" >&5
14069 sed 's/^/| /' conftest.$ac_ext >&5
14070
14071 ac_lo=`expr '(' $ac_mid ')' + 1`
14072 fi
14073 rm -f conftest.$ac_objext conftest.$ac_ext
14074 done
14075 case $ac_lo in
14076 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
14077 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
14078 See \`config.log' for more details." >&5
14079 echo "$as_me: error: cannot compute sizeof (long long int), 77
14080 See \`config.log' for more details." >&2;}
14081    { (exit 1); exit 1; }; } ;;
14082 esac
14083 else
14084   if test "$cross_compiling" = yes; then
14085   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14086 See \`config.log' for more details." >&5
14087 echo "$as_me: error: cannot run test program while cross compiling
14088 See \`config.log' for more details." >&2;}
14089    { (exit 1); exit 1; }; }
14090 else
14091   cat >conftest.$ac_ext <<_ACEOF
14092 #line $LINENO "configure"
14093 /* confdefs.h.  */
14094 _ACEOF
14095 cat confdefs.h >>conftest.$ac_ext
14096 cat >>conftest.$ac_ext <<_ACEOF
14097 /* end confdefs.h.  */
14098 $ac_includes_default
14099 long longval () { return (long) (sizeof (long long int)); }
14100 unsigned long ulongval () { return (long) (sizeof (long long int)); }
14101 #include <stdio.h>
14102 #include <stdlib.h>
14103 int
14104 main ()
14105 {
14106
14107   FILE *f = fopen ("conftest.val", "w");
14108   if (! f)
14109     exit (1);
14110   if (((long) (sizeof (long long int))) < 0)
14111     {
14112       long i = longval ();
14113       if (i != ((long) (sizeof (long long int))))
14114         exit (1);
14115       fprintf (f, "%ld\n", i);
14116     }
14117   else
14118     {
14119       unsigned long i = ulongval ();
14120       if (i != ((long) (sizeof (long long int))))
14121         exit (1);
14122       fprintf (f, "%lu\n", i);
14123     }
14124   exit (ferror (f) || fclose (f) != 0);
14125
14126   ;
14127   return 0;
14128 }
14129 _ACEOF
14130 rm -f conftest$ac_exeext
14131 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14132   (eval $ac_link) 2>&5
14133   ac_status=$?
14134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14135   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14136   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14137   (eval $ac_try) 2>&5
14138   ac_status=$?
14139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14140   (exit $ac_status); }; }; then
14141   ac_cv_sizeof_long_long_int=`cat conftest.val`
14142 else
14143   echo "$as_me: program exited with status $ac_status" >&5
14144 echo "$as_me: failed program was:" >&5
14145 sed 's/^/| /' conftest.$ac_ext >&5
14146
14147 ( exit $ac_status )
14148 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
14149 See \`config.log' for more details." >&5
14150 echo "$as_me: error: cannot compute sizeof (long long int), 77
14151 See \`config.log' for more details." >&2;}
14152    { (exit 1); exit 1; }; }
14153 fi
14154 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14155 fi
14156 fi
14157 rm -f conftest.val
14158 else
14159   ac_cv_sizeof_long_long_int=0
14160 fi
14161 fi
14162 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
14163 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6
14164 cat >>confdefs.h <<_ACEOF
14165 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
14166 _ACEOF
14167
14168
14169 echo "$as_me:$LINENO: checking for int *" >&5
14170 echo $ECHO_N "checking for int *... $ECHO_C" >&6
14171 if test "${ac_cv_type_int_p+set}" = set; then
14172   echo $ECHO_N "(cached) $ECHO_C" >&6
14173 else
14174   cat >conftest.$ac_ext <<_ACEOF
14175 #line $LINENO "configure"
14176 /* confdefs.h.  */
14177 _ACEOF
14178 cat confdefs.h >>conftest.$ac_ext
14179 cat >>conftest.$ac_ext <<_ACEOF
14180 /* end confdefs.h.  */
14181 $ac_includes_default
14182 int
14183 main ()
14184 {
14185 if ((int * *) 0)
14186   return 0;
14187 if (sizeof (int *))
14188   return 0;
14189   ;
14190   return 0;
14191 }
14192 _ACEOF
14193 rm -f conftest.$ac_objext
14194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14195   (eval $ac_compile) 2>&5
14196   ac_status=$?
14197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14198   (exit $ac_status); } &&
14199          { ac_try='test -s conftest.$ac_objext'
14200   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14201   (eval $ac_try) 2>&5
14202   ac_status=$?
14203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14204   (exit $ac_status); }; }; then
14205   ac_cv_type_int_p=yes
14206 else
14207   echo "$as_me: failed program was:" >&5
14208 sed 's/^/| /' conftest.$ac_ext >&5
14209
14210 ac_cv_type_int_p=no
14211 fi
14212 rm -f conftest.$ac_objext conftest.$ac_ext
14213 fi
14214 echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
14215 echo "${ECHO_T}$ac_cv_type_int_p" >&6
14216
14217 echo "$as_me:$LINENO: checking size of int *" >&5
14218 echo $ECHO_N "checking size of int *... $ECHO_C" >&6
14219 if test "${ac_cv_sizeof_int_p+set}" = set; then
14220   echo $ECHO_N "(cached) $ECHO_C" >&6
14221 else
14222   if test "$ac_cv_type_int_p" = yes; then
14223   # The cast to unsigned long works around a bug in the HP C Compiler
14224   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14225   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14226   # This bug is HP SR number 8606223364.
14227   if test "$cross_compiling" = yes; then
14228   # Depending upon the size, compute the lo and hi bounds.
14229 cat >conftest.$ac_ext <<_ACEOF
14230 #line $LINENO "configure"
14231 /* confdefs.h.  */
14232 _ACEOF
14233 cat confdefs.h >>conftest.$ac_ext
14234 cat >>conftest.$ac_ext <<_ACEOF
14235 /* end confdefs.h.  */
14236 $ac_includes_default
14237 int
14238 main ()
14239 {
14240 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= 0)];
14241 test_array [0] = 0
14242
14243   ;
14244   return 0;
14245 }
14246 _ACEOF
14247 rm -f conftest.$ac_objext
14248 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14249   (eval $ac_compile) 2>&5
14250   ac_status=$?
14251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14252   (exit $ac_status); } &&
14253          { ac_try='test -s conftest.$ac_objext'
14254   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14255   (eval $ac_try) 2>&5
14256   ac_status=$?
14257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14258   (exit $ac_status); }; }; then
14259   ac_lo=0 ac_mid=0
14260   while :; do
14261     cat >conftest.$ac_ext <<_ACEOF
14262 #line $LINENO "configure"
14263 /* confdefs.h.  */
14264 _ACEOF
14265 cat confdefs.h >>conftest.$ac_ext
14266 cat >>conftest.$ac_ext <<_ACEOF
14267 /* end confdefs.h.  */
14268 $ac_includes_default
14269 int
14270 main ()
14271 {
14272 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
14273 test_array [0] = 0
14274
14275   ;
14276   return 0;
14277 }
14278 _ACEOF
14279 rm -f conftest.$ac_objext
14280 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14281   (eval $ac_compile) 2>&5
14282   ac_status=$?
14283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14284   (exit $ac_status); } &&
14285          { ac_try='test -s conftest.$ac_objext'
14286   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14287   (eval $ac_try) 2>&5
14288   ac_status=$?
14289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14290   (exit $ac_status); }; }; then
14291   ac_hi=$ac_mid; break
14292 else
14293   echo "$as_me: failed program was:" >&5
14294 sed 's/^/| /' conftest.$ac_ext >&5
14295
14296 ac_lo=`expr $ac_mid + 1`
14297                     if test $ac_lo -le $ac_mid; then
14298                       ac_lo= ac_hi=
14299                       break
14300                     fi
14301                     ac_mid=`expr 2 '*' $ac_mid + 1`
14302 fi
14303 rm -f conftest.$ac_objext conftest.$ac_ext
14304   done
14305 else
14306   echo "$as_me: failed program was:" >&5
14307 sed 's/^/| /' conftest.$ac_ext >&5
14308
14309 cat >conftest.$ac_ext <<_ACEOF
14310 #line $LINENO "configure"
14311 /* confdefs.h.  */
14312 _ACEOF
14313 cat confdefs.h >>conftest.$ac_ext
14314 cat >>conftest.$ac_ext <<_ACEOF
14315 /* end confdefs.h.  */
14316 $ac_includes_default
14317 int
14318 main ()
14319 {
14320 static int test_array [1 - 2 * !(((long) (sizeof (int *))) < 0)];
14321 test_array [0] = 0
14322
14323   ;
14324   return 0;
14325 }
14326 _ACEOF
14327 rm -f conftest.$ac_objext
14328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14329   (eval $ac_compile) 2>&5
14330   ac_status=$?
14331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14332   (exit $ac_status); } &&
14333          { ac_try='test -s conftest.$ac_objext'
14334   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14335   (eval $ac_try) 2>&5
14336   ac_status=$?
14337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14338   (exit $ac_status); }; }; then
14339   ac_hi=-1 ac_mid=-1
14340   while :; do
14341     cat >conftest.$ac_ext <<_ACEOF
14342 #line $LINENO "configure"
14343 /* confdefs.h.  */
14344 _ACEOF
14345 cat confdefs.h >>conftest.$ac_ext
14346 cat >>conftest.$ac_ext <<_ACEOF
14347 /* end confdefs.h.  */
14348 $ac_includes_default
14349 int
14350 main ()
14351 {
14352 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= $ac_mid)];
14353 test_array [0] = 0
14354
14355   ;
14356   return 0;
14357 }
14358 _ACEOF
14359 rm -f conftest.$ac_objext
14360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14361   (eval $ac_compile) 2>&5
14362   ac_status=$?
14363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14364   (exit $ac_status); } &&
14365          { ac_try='test -s conftest.$ac_objext'
14366   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14367   (eval $ac_try) 2>&5
14368   ac_status=$?
14369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14370   (exit $ac_status); }; }; then
14371   ac_lo=$ac_mid; break
14372 else
14373   echo "$as_me: failed program was:" >&5
14374 sed 's/^/| /' conftest.$ac_ext >&5
14375
14376 ac_hi=`expr '(' $ac_mid ')' - 1`
14377                        if test $ac_mid -le $ac_hi; then
14378                          ac_lo= ac_hi=
14379                          break
14380                        fi
14381                        ac_mid=`expr 2 '*' $ac_mid`
14382 fi
14383 rm -f conftest.$ac_objext conftest.$ac_ext
14384   done
14385 else
14386   echo "$as_me: failed program was:" >&5
14387 sed 's/^/| /' conftest.$ac_ext >&5
14388
14389 ac_lo= ac_hi=
14390 fi
14391 rm -f conftest.$ac_objext conftest.$ac_ext
14392 fi
14393 rm -f conftest.$ac_objext conftest.$ac_ext
14394 # Binary search between lo and hi bounds.
14395 while test "x$ac_lo" != "x$ac_hi"; do
14396   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14397   cat >conftest.$ac_ext <<_ACEOF
14398 #line $LINENO "configure"
14399 /* confdefs.h.  */
14400 _ACEOF
14401 cat confdefs.h >>conftest.$ac_ext
14402 cat >>conftest.$ac_ext <<_ACEOF
14403 /* end confdefs.h.  */
14404 $ac_includes_default
14405 int
14406 main ()
14407 {
14408 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
14409 test_array [0] = 0
14410
14411   ;
14412   return 0;
14413 }
14414 _ACEOF
14415 rm -f conftest.$ac_objext
14416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14417   (eval $ac_compile) 2>&5
14418   ac_status=$?
14419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14420   (exit $ac_status); } &&
14421          { ac_try='test -s conftest.$ac_objext'
14422   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14423   (eval $ac_try) 2>&5
14424   ac_status=$?
14425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14426   (exit $ac_status); }; }; then
14427   ac_hi=$ac_mid
14428 else
14429   echo "$as_me: failed program was:" >&5
14430 sed 's/^/| /' conftest.$ac_ext >&5
14431
14432 ac_lo=`expr '(' $ac_mid ')' + 1`
14433 fi
14434 rm -f conftest.$ac_objext conftest.$ac_ext
14435 done
14436 case $ac_lo in
14437 ?*) ac_cv_sizeof_int_p=$ac_lo;;
14438 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
14439 See \`config.log' for more details." >&5
14440 echo "$as_me: error: cannot compute sizeof (int *), 77
14441 See \`config.log' for more details." >&2;}
14442    { (exit 1); exit 1; }; } ;;
14443 esac
14444 else
14445   if test "$cross_compiling" = yes; then
14446   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14447 See \`config.log' for more details." >&5
14448 echo "$as_me: error: cannot run test program while cross compiling
14449 See \`config.log' for more details." >&2;}
14450    { (exit 1); exit 1; }; }
14451 else
14452   cat >conftest.$ac_ext <<_ACEOF
14453 #line $LINENO "configure"
14454 /* confdefs.h.  */
14455 _ACEOF
14456 cat confdefs.h >>conftest.$ac_ext
14457 cat >>conftest.$ac_ext <<_ACEOF
14458 /* end confdefs.h.  */
14459 $ac_includes_default
14460 long longval () { return (long) (sizeof (int *)); }
14461 unsigned long ulongval () { return (long) (sizeof (int *)); }
14462 #include <stdio.h>
14463 #include <stdlib.h>
14464 int
14465 main ()
14466 {
14467
14468   FILE *f = fopen ("conftest.val", "w");
14469   if (! f)
14470     exit (1);
14471   if (((long) (sizeof (int *))) < 0)
14472     {
14473       long i = longval ();
14474       if (i != ((long) (sizeof (int *))))
14475         exit (1);
14476       fprintf (f, "%ld\n", i);
14477     }
14478   else
14479     {
14480       unsigned long i = ulongval ();
14481       if (i != ((long) (sizeof (int *))))
14482         exit (1);
14483       fprintf (f, "%lu\n", i);
14484     }
14485   exit (ferror (f) || fclose (f) != 0);
14486
14487   ;
14488   return 0;
14489 }
14490 _ACEOF
14491 rm -f conftest$ac_exeext
14492 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14493   (eval $ac_link) 2>&5
14494   ac_status=$?
14495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14496   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14497   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14498   (eval $ac_try) 2>&5
14499   ac_status=$?
14500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14501   (exit $ac_status); }; }; then
14502   ac_cv_sizeof_int_p=`cat conftest.val`
14503 else
14504   echo "$as_me: program exited with status $ac_status" >&5
14505 echo "$as_me: failed program was:" >&5
14506 sed 's/^/| /' conftest.$ac_ext >&5
14507
14508 ( exit $ac_status )
14509 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
14510 See \`config.log' for more details." >&5
14511 echo "$as_me: error: cannot compute sizeof (int *), 77
14512 See \`config.log' for more details." >&2;}
14513    { (exit 1); exit 1; }; }
14514 fi
14515 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14516 fi
14517 fi
14518 rm -f conftest.val
14519 else
14520   ac_cv_sizeof_int_p=0
14521 fi
14522 fi
14523 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
14524 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6
14525 cat >>confdefs.h <<_ACEOF
14526 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
14527 _ACEOF
14528
14529
14530
14531 # Check for sys/types.h types
14532 echo "$as_me:$LINENO: checking for u_int type" >&5
14533 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6
14534 if test "${ac_cv_have_u_int+set}" = set; then
14535   echo $ECHO_N "(cached) $ECHO_C" >&6
14536 else
14537
14538     cat >conftest.$ac_ext <<_ACEOF
14539 #line $LINENO "configure"
14540 /* confdefs.h.  */
14541 _ACEOF
14542 cat confdefs.h >>conftest.$ac_ext
14543 cat >>conftest.$ac_ext <<_ACEOF
14544 /* end confdefs.h.  */
14545  #include <sys/types.h>
14546 int
14547 main ()
14548 {
14549  u_int a; a = 1;
14550   ;
14551   return 0;
14552 }
14553 _ACEOF
14554 rm -f conftest.$ac_objext
14555 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14556   (eval $ac_compile) 2>&5
14557   ac_status=$?
14558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14559   (exit $ac_status); } &&
14560          { ac_try='test -s conftest.$ac_objext'
14561   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14562   (eval $ac_try) 2>&5
14563   ac_status=$?
14564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14565   (exit $ac_status); }; }; then
14566    ac_cv_have_u_int="yes"
14567 else
14568   echo "$as_me: failed program was:" >&5
14569 sed 's/^/| /' conftest.$ac_ext >&5
14570
14571  ac_cv_have_u_int="no"
14572
14573 fi
14574 rm -f conftest.$ac_objext conftest.$ac_ext
14575
14576 fi
14577 echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
14578 echo "${ECHO_T}$ac_cv_have_u_int" >&6
14579 if test "x$ac_cv_have_u_int" = "xyes" ; then
14580    cat >>confdefs.h <<\_ACEOF
14581 #define HAVE_U_INT 1
14582 _ACEOF
14583
14584    have_u_int=1
14585 fi
14586
14587 echo "$as_me:$LINENO: checking for intmax_t type" >&5
14588 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6
14589 if test "${ac_cv_have_intmax_t+set}" = set; then
14590   echo $ECHO_N "(cached) $ECHO_C" >&6
14591 else
14592
14593    cat >conftest.$ac_ext <<_ACEOF
14594 #line $LINENO "configure"
14595 /* confdefs.h.  */
14596 _ACEOF
14597 cat confdefs.h >>conftest.$ac_ext
14598 cat >>conftest.$ac_ext <<_ACEOF
14599 /* end confdefs.h.  */
14600  #include <sys/types.h>
14601 int
14602 main ()
14603 {
14604  intmax_t a; a = 1;
14605   ;
14606   return 0;
14607 }
14608 _ACEOF
14609 rm -f conftest.$ac_objext
14610 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14611   (eval $ac_compile) 2>&5
14612   ac_status=$?
14613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14614   (exit $ac_status); } &&
14615          { ac_try='test -s conftest.$ac_objext'
14616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14617   (eval $ac_try) 2>&5
14618   ac_status=$?
14619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14620   (exit $ac_status); }; }; then
14621    ac_cv_have_intmax_t="yes"
14622 else
14623   echo "$as_me: failed program was:" >&5
14624 sed 's/^/| /' conftest.$ac_ext >&5
14625
14626
14627          cat >conftest.$ac_ext <<_ACEOF
14628 #line $LINENO "configure"
14629 /* confdefs.h.  */
14630 _ACEOF
14631 cat confdefs.h >>conftest.$ac_ext
14632 cat >>conftest.$ac_ext <<_ACEOF
14633 /* end confdefs.h.  */
14634  #include <stdint.h>
14635 int
14636 main ()
14637 {
14638  intmax_t a; a = 1;
14639   ;
14640   return 0;
14641 }
14642 _ACEOF
14643 rm -f conftest.$ac_objext
14644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14645   (eval $ac_compile) 2>&5
14646   ac_status=$?
14647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14648   (exit $ac_status); } &&
14649          { ac_try='test -s conftest.$ac_objext'
14650   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14651   (eval $ac_try) 2>&5
14652   ac_status=$?
14653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14654   (exit $ac_status); }; }; then
14655    ac_cv_have_intmax_t="yes"
14656 else
14657   echo "$as_me: failed program was:" >&5
14658 sed 's/^/| /' conftest.$ac_ext >&5
14659
14660  ac_cv_have_intmax_t="no"
14661
14662 fi
14663 rm -f conftest.$ac_objext conftest.$ac_ext
14664
14665
14666 fi
14667 rm -f conftest.$ac_objext conftest.$ac_ext
14668
14669
14670 fi
14671 echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
14672 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6
14673 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
14674    cat >>confdefs.h <<\_ACEOF
14675 #define HAVE_INTMAX_T 1
14676 _ACEOF
14677
14678    have_intmax_t=1
14679 fi
14680
14681
14682 echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
14683 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6
14684 if test "${ac_cv_have_u_intmax_t+set}" = set; then
14685   echo $ECHO_N "(cached) $ECHO_C" >&6
14686 else
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  #include <sys/types.h>
14696 int
14697 main ()
14698 {
14699  u_intmax_t a; a = 1;
14700   ;
14701   return 0;
14702 }
14703 _ACEOF
14704 rm -f conftest.$ac_objext
14705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14706   (eval $ac_compile) 2>&5
14707   ac_status=$?
14708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14709   (exit $ac_status); } &&
14710          { ac_try='test -s conftest.$ac_objext'
14711   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14712   (eval $ac_try) 2>&5
14713   ac_status=$?
14714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14715   (exit $ac_status); }; }; then
14716    ac_cv_have_u_intmax_t="yes"
14717 else
14718   echo "$as_me: failed program was:" >&5
14719 sed 's/^/| /' conftest.$ac_ext >&5
14720
14721
14722          cat >conftest.$ac_ext <<_ACEOF
14723 #line $LINENO "configure"
14724 /* confdefs.h.  */
14725 _ACEOF
14726 cat confdefs.h >>conftest.$ac_ext
14727 cat >>conftest.$ac_ext <<_ACEOF
14728 /* end confdefs.h.  */
14729  #include <stdint.h>
14730 int
14731 main ()
14732 {
14733  u_intmax_t a; a = 1;
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_cv_have_u_intmax_t="yes"
14751 else
14752   echo "$as_me: failed program was:" >&5
14753 sed 's/^/| /' conftest.$ac_ext >&5
14754
14755  ac_cv_have_u_intmax_t="no"
14756
14757 fi
14758 rm -f conftest.$ac_objext conftest.$ac_ext
14759
14760
14761 fi
14762 rm -f conftest.$ac_objext conftest.$ac_ext
14763
14764 fi
14765 echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
14766 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6
14767 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
14768    cat >>confdefs.h <<\_ACEOF
14769 #define HAVE_U_INTMAX_T 1
14770 _ACEOF
14771
14772    have_u_intmax_t=1
14773 fi
14774
14775
14776 echo "$as_me:$LINENO: checking for intXX_t types" >&5
14777 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6
14778 if test "${ac_cv_have_intxx_t+set}" = set; then
14779   echo $ECHO_N "(cached) $ECHO_C" >&6
14780 else
14781
14782    cat >conftest.$ac_ext <<_ACEOF
14783 #line $LINENO "configure"
14784 /* confdefs.h.  */
14785 _ACEOF
14786 cat confdefs.h >>conftest.$ac_ext
14787 cat >>conftest.$ac_ext <<_ACEOF
14788 /* end confdefs.h.  */
14789  #include <sys/types.h>
14790 int
14791 main ()
14792 {
14793  int8_t a; int16_t b; int32_t c; a = b = c = 1;
14794   ;
14795   return 0;
14796 }
14797 _ACEOF
14798 rm -f conftest.$ac_objext
14799 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14800   (eval $ac_compile) 2>&5
14801   ac_status=$?
14802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14803   (exit $ac_status); } &&
14804          { ac_try='test -s conftest.$ac_objext'
14805   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14806   (eval $ac_try) 2>&5
14807   ac_status=$?
14808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14809   (exit $ac_status); }; }; then
14810    ac_cv_have_intxx_t="yes"
14811 else
14812   echo "$as_me: failed program was:" >&5
14813 sed 's/^/| /' conftest.$ac_ext >&5
14814
14815  ac_cv_have_intxx_t="no"
14816
14817 fi
14818 rm -f conftest.$ac_objext conftest.$ac_ext
14819
14820 fi
14821 echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
14822 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6
14823 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
14824    cat >>confdefs.h <<\_ACEOF
14825 #define HAVE_INTXX_T 1
14826 _ACEOF
14827
14828    have_intxx_t=1
14829 fi
14830
14831 echo "$as_me:$LINENO: checking for int64_t type" >&5
14832 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6
14833 if test "${ac_cv_have_int64_t+set}" = set; then
14834   echo $ECHO_N "(cached) $ECHO_C" >&6
14835 else
14836
14837    cat >conftest.$ac_ext <<_ACEOF
14838 #line $LINENO "configure"
14839 /* confdefs.h.  */
14840 _ACEOF
14841 cat confdefs.h >>conftest.$ac_ext
14842 cat >>conftest.$ac_ext <<_ACEOF
14843 /* end confdefs.h.  */
14844  #include <sys/types.h>
14845 int
14846 main ()
14847 {
14848  int64_t a; a = 1;
14849   ;
14850   return 0;
14851 }
14852 _ACEOF
14853 rm -f conftest.$ac_objext
14854 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14855   (eval $ac_compile) 2>&5
14856   ac_status=$?
14857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14858   (exit $ac_status); } &&
14859          { ac_try='test -s conftest.$ac_objext'
14860   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14861   (eval $ac_try) 2>&5
14862   ac_status=$?
14863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14864   (exit $ac_status); }; }; then
14865    ac_cv_have_int64_t="yes"
14866 else
14867   echo "$as_me: failed program was:" >&5
14868 sed 's/^/| /' conftest.$ac_ext >&5
14869
14870  ac_cv_have_int64_t="no"
14871
14872 fi
14873 rm -f conftest.$ac_objext conftest.$ac_ext
14874
14875 fi
14876 echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
14877 echo "${ECHO_T}$ac_cv_have_int64_t" >&6
14878 if test "x$ac_cv_have_int64_t" = "xyes" ; then
14879    cat >>confdefs.h <<\_ACEOF
14880 #define HAVE_INT64_T 1
14881 _ACEOF
14882
14883    have_int64_t=1
14884 fi
14885
14886 echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
14887 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6
14888 if test "${ac_cv_have_u_intxx_t+set}" = set; then
14889   echo $ECHO_N "(cached) $ECHO_C" >&6
14890 else
14891
14892    cat >conftest.$ac_ext <<_ACEOF
14893 #line $LINENO "configure"
14894 /* confdefs.h.  */
14895 _ACEOF
14896 cat confdefs.h >>conftest.$ac_ext
14897 cat >>conftest.$ac_ext <<_ACEOF
14898 /* end confdefs.h.  */
14899  #include <sys/types.h>
14900 int
14901 main ()
14902 {
14903  u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
14904   ;
14905   return 0;
14906 }
14907 _ACEOF
14908 rm -f conftest.$ac_objext
14909 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14910   (eval $ac_compile) 2>&5
14911   ac_status=$?
14912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14913   (exit $ac_status); } &&
14914          { ac_try='test -s conftest.$ac_objext'
14915   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14916   (eval $ac_try) 2>&5
14917   ac_status=$?
14918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14919   (exit $ac_status); }; }; then
14920    ac_cv_have_u_intxx_t="yes"
14921 else
14922   echo "$as_me: failed program was:" >&5
14923 sed 's/^/| /' conftest.$ac_ext >&5
14924
14925  ac_cv_have_u_intxx_t="no"
14926
14927 fi
14928 rm -f conftest.$ac_objext conftest.$ac_ext
14929
14930 fi
14931 echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
14932 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6
14933 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
14934    cat >>confdefs.h <<\_ACEOF
14935 #define HAVE_U_INTXX_T 1
14936 _ACEOF
14937
14938    have_u_intxx_t=1
14939 fi
14940
14941 echo "$as_me:$LINENO: checking for u_int64_t types" >&5
14942 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6
14943 if test "${ac_cv_have_u_int64_t+set}" = set; then
14944   echo $ECHO_N "(cached) $ECHO_C" >&6
14945 else
14946
14947    cat >conftest.$ac_ext <<_ACEOF
14948 #line $LINENO "configure"
14949 /* confdefs.h.  */
14950 _ACEOF
14951 cat confdefs.h >>conftest.$ac_ext
14952 cat >>conftest.$ac_ext <<_ACEOF
14953 /* end confdefs.h.  */
14954  #include <sys/types.h>
14955 int
14956 main ()
14957 {
14958  u_int64_t a; a = 1;
14959   ;
14960   return 0;
14961 }
14962 _ACEOF
14963 rm -f conftest.$ac_objext
14964 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14965   (eval $ac_compile) 2>&5
14966   ac_status=$?
14967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14968   (exit $ac_status); } &&
14969          { ac_try='test -s conftest.$ac_objext'
14970   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14971   (eval $ac_try) 2>&5
14972   ac_status=$?
14973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14974   (exit $ac_status); }; }; then
14975    ac_cv_have_u_int64_t="yes"
14976 else
14977   echo "$as_me: failed program was:" >&5
14978 sed 's/^/| /' conftest.$ac_ext >&5
14979
14980  ac_cv_have_u_int64_t="no"
14981
14982 fi
14983 rm -f conftest.$ac_objext conftest.$ac_ext
14984
14985 fi
14986 echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
14987 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6
14988 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
14989    cat >>confdefs.h <<\_ACEOF
14990 #define HAVE_U_INT64_T 1
14991 _ACEOF
14992
14993    have_u_int64_t=1
14994 fi
14995
14996 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
14997            test "x$ac_cv_header_sys_bitypes_h" = "xyes")
14998 then
14999    echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
15000 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6
15001    cat >conftest.$ac_ext <<_ACEOF
15002 #line $LINENO "configure"
15003 /* confdefs.h.  */
15004 _ACEOF
15005 cat confdefs.h >>conftest.$ac_ext
15006 cat >>conftest.$ac_ext <<_ACEOF
15007 /* end confdefs.h.  */
15008  #include <sys/bitypes.h>
15009 int
15010 main ()
15011 {
15012  int8_t a; int16_t b; int32_t c;
15013         u_int8_t e; u_int16_t f; u_int32_t g;
15014         a = b = c = e = f = g = 1;
15015   ;
15016   return 0;
15017 }
15018 _ACEOF
15019 rm -f conftest.$ac_objext
15020 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15021   (eval $ac_compile) 2>&5
15022   ac_status=$?
15023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15024   (exit $ac_status); } &&
15025          { ac_try='test -s conftest.$ac_objext'
15026   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15027   (eval $ac_try) 2>&5
15028   ac_status=$?
15029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15030   (exit $ac_status); }; }; then
15031    cat >>confdefs.h <<\_ACEOF
15032 #define HAVE_U_INTXX_T 1
15033 _ACEOF
15034
15035         cat >>confdefs.h <<\_ACEOF
15036 #define HAVE_INTXX_T 1
15037 _ACEOF
15038
15039         cat >>confdefs.h <<\_ACEOF
15040 #define HAVE_SYS_BITYPES_H 1
15041 _ACEOF
15042
15043         echo "$as_me:$LINENO: result: yes" >&5
15044 echo "${ECHO_T}yes" >&6
15045 else
15046   echo "$as_me: failed program was:" >&5
15047 sed 's/^/| /' conftest.$ac_ext >&5
15048
15049  echo "$as_me:$LINENO: result: no" >&5
15050 echo "${ECHO_T}no" >&6
15051
15052 fi
15053 rm -f conftest.$ac_objext conftest.$ac_ext
15054 fi
15055
15056 if test -z "$have_u_intxx_t" ; then
15057    echo "$as_me:$LINENO: checking for uintXX_t types" >&5
15058 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6
15059 if test "${ac_cv_have_uintxx_t+set}" = set; then
15060   echo $ECHO_N "(cached) $ECHO_C" >&6
15061 else
15062
15063       cat >conftest.$ac_ext <<_ACEOF
15064 #line $LINENO "configure"
15065 /* confdefs.h.  */
15066 _ACEOF
15067 cat confdefs.h >>conftest.$ac_ext
15068 cat >>conftest.$ac_ext <<_ACEOF
15069 /* end confdefs.h.  */
15070  #include <sys/types.h>
15071 int
15072 main ()
15073 {
15074  uint8_t a; uint16_t b;
15075            uint32_t c; a = b = c = 1;
15076   ;
15077   return 0;
15078 }
15079 _ACEOF
15080 rm -f conftest.$ac_objext
15081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15082   (eval $ac_compile) 2>&5
15083   ac_status=$?
15084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15085   (exit $ac_status); } &&
15086          { ac_try='test -s conftest.$ac_objext'
15087   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15088   (eval $ac_try) 2>&5
15089   ac_status=$?
15090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15091   (exit $ac_status); }; }; then
15092    ac_cv_have_uintxx_t="yes"
15093 else
15094   echo "$as_me: failed program was:" >&5
15095 sed 's/^/| /' conftest.$ac_ext >&5
15096
15097  ac_cv_have_uintxx_t="no"
15098
15099 fi
15100 rm -f conftest.$ac_objext conftest.$ac_ext
15101
15102 fi
15103 echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
15104 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6
15105    if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
15106       cat >>confdefs.h <<\_ACEOF
15107 #define HAVE_UINTXX_T 1
15108 _ACEOF
15109
15110    fi
15111 fi
15112
15113
15114
15115
15116
15117
15118
15119
15120
15121
15122
15123
15124
15125
15126
15127 for ac_func in \
15128         fork \
15129         getcwd \
15130         gethostname \
15131         getpid \
15132         gettimeofday \
15133         setpgid \
15134         setpgrp \
15135         setsid \
15136         signal \
15137         strerror \
15138         strncmp \
15139         strncpy \
15140         vfprintf \
15141
15142 do
15143 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15144 echo "$as_me:$LINENO: checking for $ac_func" >&5
15145 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15146 if eval "test \"\${$as_ac_var+set}\" = set"; then
15147   echo $ECHO_N "(cached) $ECHO_C" >&6
15148 else
15149   cat >conftest.$ac_ext <<_ACEOF
15150 #line $LINENO "configure"
15151 /* confdefs.h.  */
15152 _ACEOF
15153 cat confdefs.h >>conftest.$ac_ext
15154 cat >>conftest.$ac_ext <<_ACEOF
15155 /* end confdefs.h.  */
15156 /* System header to define __stub macros and hopefully few prototypes,
15157     which can conflict with char $ac_func (); below.
15158     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15159     <limits.h> exists even on freestanding compilers.  */
15160 #ifdef __STDC__
15161 # include <limits.h>
15162 #else
15163 # include <assert.h>
15164 #endif
15165 /* Override any gcc2 internal prototype to avoid an error.  */
15166 #ifdef __cplusplus
15167 extern "C"
15168 {
15169 #endif
15170 /* We use char because int might match the return type of a gcc2
15171    builtin and then its argument prototype would still apply.  */
15172 char $ac_func ();
15173 /* The GNU C library defines this for functions which it implements
15174     to always fail with ENOSYS.  Some functions are actually named
15175     something starting with __ and the normal name is an alias.  */
15176 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15177 choke me
15178 #else
15179 char (*f) () = $ac_func;
15180 #endif
15181 #ifdef __cplusplus
15182 }
15183 #endif
15184
15185 int
15186 main ()
15187 {
15188 return f != $ac_func;
15189   ;
15190   return 0;
15191 }
15192 _ACEOF
15193 rm -f conftest.$ac_objext conftest$ac_exeext
15194 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15195   (eval $ac_link) 2>&5
15196   ac_status=$?
15197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15198   (exit $ac_status); } &&
15199          { ac_try='test -s conftest$ac_exeext'
15200   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15201   (eval $ac_try) 2>&5
15202   ac_status=$?
15203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15204   (exit $ac_status); }; }; then
15205   eval "$as_ac_var=yes"
15206 else
15207   echo "$as_me: failed program was:" >&5
15208 sed 's/^/| /' conftest.$ac_ext >&5
15209
15210 eval "$as_ac_var=no"
15211 fi
15212 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15213 fi
15214 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15215 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15216 if test `eval echo '${'$as_ac_var'}'` = yes; then
15217   cat >>confdefs.h <<_ACEOF
15218 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15219 _ACEOF
15220
15221 else
15222   echo 'configure: cannot find needed function.'; exit 1
15223
15224 fi
15225 done
15226
15227
15228
15229 for ac_func in fchdir
15230 do
15231 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15232 echo "$as_me:$LINENO: checking for $ac_func" >&5
15233 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15234 if eval "test \"\${$as_ac_var+set}\" = set"; then
15235   echo $ECHO_N "(cached) $ECHO_C" >&6
15236 else
15237   cat >conftest.$ac_ext <<_ACEOF
15238 #line $LINENO "configure"
15239 /* confdefs.h.  */
15240 _ACEOF
15241 cat confdefs.h >>conftest.$ac_ext
15242 cat >>conftest.$ac_ext <<_ACEOF
15243 /* end confdefs.h.  */
15244 /* System header to define __stub macros and hopefully few prototypes,
15245     which can conflict with char $ac_func (); below.
15246     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15247     <limits.h> exists even on freestanding compilers.  */
15248 #ifdef __STDC__
15249 # include <limits.h>
15250 #else
15251 # include <assert.h>
15252 #endif
15253 /* Override any gcc2 internal prototype to avoid an error.  */
15254 #ifdef __cplusplus
15255 extern "C"
15256 {
15257 #endif
15258 /* We use char because int might match the return type of a gcc2
15259    builtin and then its argument prototype would still apply.  */
15260 char $ac_func ();
15261 /* The GNU C library defines this for functions which it implements
15262     to always fail with ENOSYS.  Some functions are actually named
15263     something starting with __ and the normal name is an alias.  */
15264 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15265 choke me
15266 #else
15267 char (*f) () = $ac_func;
15268 #endif
15269 #ifdef __cplusplus
15270 }
15271 #endif
15272
15273 int
15274 main ()
15275 {
15276 return f != $ac_func;
15277   ;
15278   return 0;
15279 }
15280 _ACEOF
15281 rm -f conftest.$ac_objext conftest$ac_exeext
15282 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15283   (eval $ac_link) 2>&5
15284   ac_status=$?
15285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15286   (exit $ac_status); } &&
15287          { ac_try='test -s conftest$ac_exeext'
15288   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15289   (eval $ac_try) 2>&5
15290   ac_status=$?
15291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15292   (exit $ac_status); }; }; then
15293   eval "$as_ac_var=yes"
15294 else
15295   echo "$as_me: failed program was:" >&5
15296 sed 's/^/| /' conftest.$ac_ext >&5
15297
15298 eval "$as_ac_var=no"
15299 fi
15300 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15301 fi
15302 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15303 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15304 if test `eval echo '${'$as_ac_var'}'` = yes; then
15305   cat >>confdefs.h <<_ACEOF
15306 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15307 _ACEOF
15308  cat >>confdefs.h <<\_ACEOF
15309 #define HAVE_FCHDIR 1
15310 _ACEOF
15311
15312 fi
15313 done
15314
15315
15316 for ac_func in strtoll
15317 do
15318 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15319 echo "$as_me:$LINENO: checking for $ac_func" >&5
15320 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15321 if eval "test \"\${$as_ac_var+set}\" = set"; then
15322   echo $ECHO_N "(cached) $ECHO_C" >&6
15323 else
15324   cat >conftest.$ac_ext <<_ACEOF
15325 #line $LINENO "configure"
15326 /* confdefs.h.  */
15327 _ACEOF
15328 cat confdefs.h >>conftest.$ac_ext
15329 cat >>conftest.$ac_ext <<_ACEOF
15330 /* end confdefs.h.  */
15331 /* System header to define __stub macros and hopefully few prototypes,
15332     which can conflict with char $ac_func (); below.
15333     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15334     <limits.h> exists even on freestanding compilers.  */
15335 #ifdef __STDC__
15336 # include <limits.h>
15337 #else
15338 # include <assert.h>
15339 #endif
15340 /* Override any gcc2 internal prototype to avoid an error.  */
15341 #ifdef __cplusplus
15342 extern "C"
15343 {
15344 #endif
15345 /* We use char because int might match the return type of a gcc2
15346    builtin and then its argument prototype would still apply.  */
15347 char $ac_func ();
15348 /* The GNU C library defines this for functions which it implements
15349     to always fail with ENOSYS.  Some functions are actually named
15350     something starting with __ and the normal name is an alias.  */
15351 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15352 choke me
15353 #else
15354 char (*f) () = $ac_func;
15355 #endif
15356 #ifdef __cplusplus
15357 }
15358 #endif
15359
15360 int
15361 main ()
15362 {
15363 return f != $ac_func;
15364   ;
15365   return 0;
15366 }
15367 _ACEOF
15368 rm -f conftest.$ac_objext conftest$ac_exeext
15369 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15370   (eval $ac_link) 2>&5
15371   ac_status=$?
15372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15373   (exit $ac_status); } &&
15374          { ac_try='test -s conftest$ac_exeext'
15375   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15376   (eval $ac_try) 2>&5
15377   ac_status=$?
15378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15379   (exit $ac_status); }; }; then
15380   eval "$as_ac_var=yes"
15381 else
15382   echo "$as_me: failed program was:" >&5
15383 sed 's/^/| /' conftest.$ac_ext >&5
15384
15385 eval "$as_ac_var=no"
15386 fi
15387 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15388 fi
15389 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15390 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15391 if test `eval echo '${'$as_ac_var'}'` = yes; then
15392   cat >>confdefs.h <<_ACEOF
15393 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15394 _ACEOF
15395  cat >>confdefs.h <<\_ACEOF
15396 #define HAVE_STRTOLL 1
15397 _ACEOF
15398
15399 fi
15400 done
15401
15402
15403
15404 for ac_func in chflags
15405 do
15406 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15407 echo "$as_me:$LINENO: checking for $ac_func" >&5
15408 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15409 if eval "test \"\${$as_ac_var+set}\" = set"; then
15410   echo $ECHO_N "(cached) $ECHO_C" >&6
15411 else
15412   cat >conftest.$ac_ext <<_ACEOF
15413 #line $LINENO "configure"
15414 /* confdefs.h.  */
15415 _ACEOF
15416 cat confdefs.h >>conftest.$ac_ext
15417 cat >>conftest.$ac_ext <<_ACEOF
15418 /* end confdefs.h.  */
15419 /* System header to define __stub macros and hopefully few prototypes,
15420     which can conflict with char $ac_func (); below.
15421     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15422     <limits.h> exists even on freestanding compilers.  */
15423 #ifdef __STDC__
15424 # include <limits.h>
15425 #else
15426 # include <assert.h>
15427 #endif
15428 /* Override any gcc2 internal prototype to avoid an error.  */
15429 #ifdef __cplusplus
15430 extern "C"
15431 {
15432 #endif
15433 /* We use char because int might match the return type of a gcc2
15434    builtin and then its argument prototype would still apply.  */
15435 char $ac_func ();
15436 /* The GNU C library defines this for functions which it implements
15437     to always fail with ENOSYS.  Some functions are actually named
15438     something starting with __ and the normal name is an alias.  */
15439 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15440 choke me
15441 #else
15442 char (*f) () = $ac_func;
15443 #endif
15444 #ifdef __cplusplus
15445 }
15446 #endif
15447
15448 int
15449 main ()
15450 {
15451 return f != $ac_func;
15452   ;
15453   return 0;
15454 }
15455 _ACEOF
15456 rm -f conftest.$ac_objext conftest$ac_exeext
15457 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15458   (eval $ac_link) 2>&5
15459   ac_status=$?
15460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15461   (exit $ac_status); } &&
15462          { ac_try='test -s conftest$ac_exeext'
15463   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15464   (eval $ac_try) 2>&5
15465   ac_status=$?
15466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15467   (exit $ac_status); }; }; then
15468   eval "$as_ac_var=yes"
15469 else
15470   echo "$as_me: failed program was:" >&5
15471 sed 's/^/| /' conftest.$ac_ext >&5
15472
15473 eval "$as_ac_var=no"
15474 fi
15475 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15476 fi
15477 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15478 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15479 if test `eval echo '${'$as_ac_var'}'` = yes; then
15480   cat >>confdefs.h <<_ACEOF
15481 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15482 _ACEOF
15483
15484 fi
15485 done
15486
15487
15488
15489
15490
15491
15492 for ac_func in snprintf vsnprintf gethostid getdomainname
15493 do
15494 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15495 echo "$as_me:$LINENO: checking for $ac_func" >&5
15496 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15497 if eval "test \"\${$as_ac_var+set}\" = set"; then
15498   echo $ECHO_N "(cached) $ECHO_C" >&6
15499 else
15500   cat >conftest.$ac_ext <<_ACEOF
15501 #line $LINENO "configure"
15502 /* confdefs.h.  */
15503 _ACEOF
15504 cat confdefs.h >>conftest.$ac_ext
15505 cat >>conftest.$ac_ext <<_ACEOF
15506 /* end confdefs.h.  */
15507 /* System header to define __stub macros and hopefully few prototypes,
15508     which can conflict with char $ac_func (); below.
15509     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15510     <limits.h> exists even on freestanding compilers.  */
15511 #ifdef __STDC__
15512 # include <limits.h>
15513 #else
15514 # include <assert.h>
15515 #endif
15516 /* Override any gcc2 internal prototype to avoid an error.  */
15517 #ifdef __cplusplus
15518 extern "C"
15519 {
15520 #endif
15521 /* We use char because int might match the return type of a gcc2
15522    builtin and then its argument prototype would still apply.  */
15523 char $ac_func ();
15524 /* The GNU C library defines this for functions which it implements
15525     to always fail with ENOSYS.  Some functions are actually named
15526     something starting with __ and the normal name is an alias.  */
15527 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15528 choke me
15529 #else
15530 char (*f) () = $ac_func;
15531 #endif
15532 #ifdef __cplusplus
15533 }
15534 #endif
15535
15536 int
15537 main ()
15538 {
15539 return f != $ac_func;
15540   ;
15541   return 0;
15542 }
15543 _ACEOF
15544 rm -f conftest.$ac_objext conftest$ac_exeext
15545 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15546   (eval $ac_link) 2>&5
15547   ac_status=$?
15548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15549   (exit $ac_status); } &&
15550          { ac_try='test -s conftest$ac_exeext'
15551   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15552   (eval $ac_try) 2>&5
15553   ac_status=$?
15554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15555   (exit $ac_status); }; }; then
15556   eval "$as_ac_var=yes"
15557 else
15558   echo "$as_me: failed program was:" >&5
15559 sed 's/^/| /' conftest.$ac_ext >&5
15560
15561 eval "$as_ac_var=no"
15562 fi
15563 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15564 fi
15565 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15566 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15567 if test `eval echo '${'$as_ac_var'}'` = yes; then
15568   cat >>confdefs.h <<_ACEOF
15569 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15570 _ACEOF
15571
15572 fi
15573 done
15574
15575
15576
15577
15578
15579
15580 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
15581 do
15582 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15583 echo "$as_me:$LINENO: checking for $ac_func" >&5
15584 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15585 if eval "test \"\${$as_ac_var+set}\" = set"; then
15586   echo $ECHO_N "(cached) $ECHO_C" >&6
15587 else
15588   cat >conftest.$ac_ext <<_ACEOF
15589 #line $LINENO "configure"
15590 /* confdefs.h.  */
15591 _ACEOF
15592 cat confdefs.h >>conftest.$ac_ext
15593 cat >>conftest.$ac_ext <<_ACEOF
15594 /* end confdefs.h.  */
15595 /* System header to define __stub macros and hopefully few prototypes,
15596     which can conflict with char $ac_func (); below.
15597     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15598     <limits.h> exists even on freestanding compilers.  */
15599 #ifdef __STDC__
15600 # include <limits.h>
15601 #else
15602 # include <assert.h>
15603 #endif
15604 /* Override any gcc2 internal prototype to avoid an error.  */
15605 #ifdef __cplusplus
15606 extern "C"
15607 {
15608 #endif
15609 /* We use char because int might match the return type of a gcc2
15610    builtin and then its argument prototype would still apply.  */
15611 char $ac_func ();
15612 /* The GNU C library defines this for functions which it implements
15613     to always fail with ENOSYS.  Some functions are actually named
15614     something starting with __ and the normal name is an alias.  */
15615 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15616 choke me
15617 #else
15618 char (*f) () = $ac_func;
15619 #endif
15620 #ifdef __cplusplus
15621 }
15622 #endif
15623
15624 int
15625 main ()
15626 {
15627 return f != $ac_func;
15628   ;
15629   return 0;
15630 }
15631 _ACEOF
15632 rm -f conftest.$ac_objext conftest$ac_exeext
15633 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15634   (eval $ac_link) 2>&5
15635   ac_status=$?
15636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15637   (exit $ac_status); } &&
15638          { ac_try='test -s conftest$ac_exeext'
15639   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15640   (eval $ac_try) 2>&5
15641   ac_status=$?
15642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15643   (exit $ac_status); }; }; then
15644   eval "$as_ac_var=yes"
15645 else
15646   echo "$as_me: failed program was:" >&5
15647 sed 's/^/| /' conftest.$ac_ext >&5
15648
15649 eval "$as_ac_var=no"
15650 fi
15651 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15652 fi
15653 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15654 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15655 if test `eval echo '${'$as_ac_var'}'` = yes; then
15656   cat >>confdefs.h <<_ACEOF
15657 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15658 _ACEOF
15659
15660 fi
15661 done
15662
15663
15664 # If resolver functions are not in libc check for -lnsl or -lresolv.
15665 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
15666 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
15667 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
15668   echo $ECHO_N "(cached) $ECHO_C" >&6
15669 else
15670   cat >conftest.$ac_ext <<_ACEOF
15671 #line $LINENO "configure"
15672 /* confdefs.h.  */
15673 _ACEOF
15674 cat confdefs.h >>conftest.$ac_ext
15675 cat >>conftest.$ac_ext <<_ACEOF
15676 /* end confdefs.h.  */
15677 /* System header to define __stub macros and hopefully few prototypes,
15678     which can conflict with char gethostbyname_r (); below.
15679     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15680     <limits.h> exists even on freestanding compilers.  */
15681 #ifdef __STDC__
15682 # include <limits.h>
15683 #else
15684 # include <assert.h>
15685 #endif
15686 /* Override any gcc2 internal prototype to avoid an error.  */
15687 #ifdef __cplusplus
15688 extern "C"
15689 {
15690 #endif
15691 /* We use char because int might match the return type of a gcc2
15692    builtin and then its argument prototype would still apply.  */
15693 char gethostbyname_r ();
15694 /* The GNU C library defines this for functions which it implements
15695     to always fail with ENOSYS.  Some functions are actually named
15696     something starting with __ and the normal name is an alias.  */
15697 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
15698 choke me
15699 #else
15700 char (*f) () = gethostbyname_r;
15701 #endif
15702 #ifdef __cplusplus
15703 }
15704 #endif
15705
15706 int
15707 main ()
15708 {
15709 return f != gethostbyname_r;
15710   ;
15711   return 0;
15712 }
15713 _ACEOF
15714 rm -f conftest.$ac_objext conftest$ac_exeext
15715 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15716   (eval $ac_link) 2>&5
15717   ac_status=$?
15718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15719   (exit $ac_status); } &&
15720          { ac_try='test -s conftest$ac_exeext'
15721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15722   (eval $ac_try) 2>&5
15723   ac_status=$?
15724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15725   (exit $ac_status); }; }; then
15726   ac_cv_func_gethostbyname_r=yes
15727 else
15728   echo "$as_me: failed program was:" >&5
15729 sed 's/^/| /' conftest.$ac_ext >&5
15730
15731 ac_cv_func_gethostbyname_r=no
15732 fi
15733 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15734 fi
15735 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
15736 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
15737 if test $ac_cv_func_gethostbyname_r = yes; then
15738   echo "$as_me:$LINENO: result: using libc's resolver" >&5
15739 echo "${ECHO_T}using libc's resolver" >&6
15740 else
15741
15742 echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
15743 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6
15744 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
15745   echo $ECHO_N "(cached) $ECHO_C" >&6
15746 else
15747   ac_check_lib_save_LIBS=$LIBS
15748 LIBS="-lnsl  $LIBS"
15749 cat >conftest.$ac_ext <<_ACEOF
15750 #line $LINENO "configure"
15751 /* confdefs.h.  */
15752 _ACEOF
15753 cat confdefs.h >>conftest.$ac_ext
15754 cat >>conftest.$ac_ext <<_ACEOF
15755 /* end confdefs.h.  */
15756
15757 /* Override any gcc2 internal prototype to avoid an error.  */
15758 #ifdef __cplusplus
15759 extern "C"
15760 #endif
15761 /* We use char because int might match the return type of a gcc2
15762    builtin and then its argument prototype would still apply.  */
15763 char gethostbyname_r ();
15764 int
15765 main ()
15766 {
15767 gethostbyname_r ();
15768   ;
15769   return 0;
15770 }
15771 _ACEOF
15772 rm -f conftest.$ac_objext conftest$ac_exeext
15773 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15774   (eval $ac_link) 2>&5
15775   ac_status=$?
15776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15777   (exit $ac_status); } &&
15778          { ac_try='test -s conftest$ac_exeext'
15779   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15780   (eval $ac_try) 2>&5
15781   ac_status=$?
15782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15783   (exit $ac_status); }; }; then
15784   ac_cv_lib_nsl_gethostbyname_r=yes
15785 else
15786   echo "$as_me: failed program was:" >&5
15787 sed 's/^/| /' conftest.$ac_ext >&5
15788
15789 ac_cv_lib_nsl_gethostbyname_r=no
15790 fi
15791 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15792 LIBS=$ac_check_lib_save_LIBS
15793 fi
15794 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
15795 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6
15796 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
15797   cat >>confdefs.h <<_ACEOF
15798 #define HAVE_LIBNSL 1
15799 _ACEOF
15800
15801   LIBS="-lnsl $LIBS"
15802
15803 fi
15804
15805
15806 echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
15807 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6
15808 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
15809   echo $ECHO_N "(cached) $ECHO_C" >&6
15810 else
15811   ac_check_lib_save_LIBS=$LIBS
15812 LIBS="-lresolv  $LIBS"
15813 cat >conftest.$ac_ext <<_ACEOF
15814 #line $LINENO "configure"
15815 /* confdefs.h.  */
15816 _ACEOF
15817 cat confdefs.h >>conftest.$ac_ext
15818 cat >>conftest.$ac_ext <<_ACEOF
15819 /* end confdefs.h.  */
15820
15821 /* Override any gcc2 internal prototype to avoid an error.  */
15822 #ifdef __cplusplus
15823 extern "C"
15824 #endif
15825 /* We use char because int might match the return type of a gcc2
15826    builtin and then its argument prototype would still apply.  */
15827 char gethostbyname_r ();
15828 int
15829 main ()
15830 {
15831 gethostbyname_r ();
15832   ;
15833   return 0;
15834 }
15835 _ACEOF
15836 rm -f conftest.$ac_objext conftest$ac_exeext
15837 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15838   (eval $ac_link) 2>&5
15839   ac_status=$?
15840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15841   (exit $ac_status); } &&
15842          { ac_try='test -s conftest$ac_exeext'
15843   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15844   (eval $ac_try) 2>&5
15845   ac_status=$?
15846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15847   (exit $ac_status); }; }; then
15848   ac_cv_lib_resolv_gethostbyname_r=yes
15849 else
15850   echo "$as_me: failed program was:" >&5
15851 sed 's/^/| /' conftest.$ac_ext >&5
15852
15853 ac_cv_lib_resolv_gethostbyname_r=no
15854 fi
15855 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15856 LIBS=$ac_check_lib_save_LIBS
15857 fi
15858 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
15859 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6
15860 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
15861   cat >>confdefs.h <<_ACEOF
15862 #define HAVE_LIBRESOLV 1
15863 _ACEOF
15864
15865   LIBS="-lresolv $LIBS"
15866
15867 fi
15868
15869 fi
15870
15871
15872
15873 # Find where sockets are (especially for Solaris)
15874 echo "$as_me:$LINENO: checking for socket" >&5
15875 echo $ECHO_N "checking for socket... $ECHO_C" >&6
15876 if test "${ac_cv_func_socket+set}" = set; then
15877   echo $ECHO_N "(cached) $ECHO_C" >&6
15878 else
15879   cat >conftest.$ac_ext <<_ACEOF
15880 #line $LINENO "configure"
15881 /* confdefs.h.  */
15882 _ACEOF
15883 cat confdefs.h >>conftest.$ac_ext
15884 cat >>conftest.$ac_ext <<_ACEOF
15885 /* end confdefs.h.  */
15886 /* System header to define __stub macros and hopefully few prototypes,
15887     which can conflict with char socket (); below.
15888     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15889     <limits.h> exists even on freestanding compilers.  */
15890 #ifdef __STDC__
15891 # include <limits.h>
15892 #else
15893 # include <assert.h>
15894 #endif
15895 /* Override any gcc2 internal prototype to avoid an error.  */
15896 #ifdef __cplusplus
15897 extern "C"
15898 {
15899 #endif
15900 /* We use char because int might match the return type of a gcc2
15901    builtin and then its argument prototype would still apply.  */
15902 char socket ();
15903 /* The GNU C library defines this for functions which it implements
15904     to always fail with ENOSYS.  Some functions are actually named
15905     something starting with __ and the normal name is an alias.  */
15906 #if defined (__stub_socket) || defined (__stub___socket)
15907 choke me
15908 #else
15909 char (*f) () = socket;
15910 #endif
15911 #ifdef __cplusplus
15912 }
15913 #endif
15914
15915 int
15916 main ()
15917 {
15918 return f != socket;
15919   ;
15920   return 0;
15921 }
15922 _ACEOF
15923 rm -f conftest.$ac_objext conftest$ac_exeext
15924 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15925   (eval $ac_link) 2>&5
15926   ac_status=$?
15927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15928   (exit $ac_status); } &&
15929          { ac_try='test -s conftest$ac_exeext'
15930   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15931   (eval $ac_try) 2>&5
15932   ac_status=$?
15933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15934   (exit $ac_status); }; }; then
15935   ac_cv_func_socket=yes
15936 else
15937   echo "$as_me: failed program was:" >&5
15938 sed 's/^/| /' conftest.$ac_ext >&5
15939
15940 ac_cv_func_socket=no
15941 fi
15942 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15943 fi
15944 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
15945 echo "${ECHO_T}$ac_cv_func_socket" >&6
15946 if test $ac_cv_func_socket = yes; then
15947   echo "$as_me:$LINENO: result: using libc's socket" >&5
15948 echo "${ECHO_T}using libc's socket" >&6
15949 else
15950
15951 echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
15952 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6
15953 if test "${ac_cv_lib_xnet_socket+set}" = set; then
15954   echo $ECHO_N "(cached) $ECHO_C" >&6
15955 else
15956   ac_check_lib_save_LIBS=$LIBS
15957 LIBS="-lxnet  $LIBS"
15958 cat >conftest.$ac_ext <<_ACEOF
15959 #line $LINENO "configure"
15960 /* confdefs.h.  */
15961 _ACEOF
15962 cat confdefs.h >>conftest.$ac_ext
15963 cat >>conftest.$ac_ext <<_ACEOF
15964 /* end confdefs.h.  */
15965
15966 /* Override any gcc2 internal prototype to avoid an error.  */
15967 #ifdef __cplusplus
15968 extern "C"
15969 #endif
15970 /* We use char because int might match the return type of a gcc2
15971    builtin and then its argument prototype would still apply.  */
15972 char socket ();
15973 int
15974 main ()
15975 {
15976 socket ();
15977   ;
15978   return 0;
15979 }
15980 _ACEOF
15981 rm -f conftest.$ac_objext conftest$ac_exeext
15982 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15983   (eval $ac_link) 2>&5
15984   ac_status=$?
15985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15986   (exit $ac_status); } &&
15987          { ac_try='test -s conftest$ac_exeext'
15988   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15989   (eval $ac_try) 2>&5
15990   ac_status=$?
15991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15992   (exit $ac_status); }; }; then
15993   ac_cv_lib_xnet_socket=yes
15994 else
15995   echo "$as_me: failed program was:" >&5
15996 sed 's/^/| /' conftest.$ac_ext >&5
15997
15998 ac_cv_lib_xnet_socket=no
15999 fi
16000 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16001 LIBS=$ac_check_lib_save_LIBS
16002 fi
16003 echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
16004 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6
16005 if test $ac_cv_lib_xnet_socket = yes; then
16006   cat >>confdefs.h <<_ACEOF
16007 #define HAVE_LIBXNET 1
16008 _ACEOF
16009
16010   LIBS="-lxnet $LIBS"
16011
16012 fi
16013
16014
16015 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
16016 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
16017 if test "${ac_cv_lib_socket_socket+set}" = set; then
16018   echo $ECHO_N "(cached) $ECHO_C" >&6
16019 else
16020   ac_check_lib_save_LIBS=$LIBS
16021 LIBS="-lsocket  $LIBS"
16022 cat >conftest.$ac_ext <<_ACEOF
16023 #line $LINENO "configure"
16024 /* confdefs.h.  */
16025 _ACEOF
16026 cat confdefs.h >>conftest.$ac_ext
16027 cat >>conftest.$ac_ext <<_ACEOF
16028 /* end confdefs.h.  */
16029
16030 /* Override any gcc2 internal prototype to avoid an error.  */
16031 #ifdef __cplusplus
16032 extern "C"
16033 #endif
16034 /* We use char because int might match the return type of a gcc2
16035    builtin and then its argument prototype would still apply.  */
16036 char socket ();
16037 int
16038 main ()
16039 {
16040 socket ();
16041   ;
16042   return 0;
16043 }
16044 _ACEOF
16045 rm -f conftest.$ac_objext conftest$ac_exeext
16046 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16047   (eval $ac_link) 2>&5
16048   ac_status=$?
16049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16050   (exit $ac_status); } &&
16051          { ac_try='test -s conftest$ac_exeext'
16052   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16053   (eval $ac_try) 2>&5
16054   ac_status=$?
16055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16056   (exit $ac_status); }; }; then
16057   ac_cv_lib_socket_socket=yes
16058 else
16059   echo "$as_me: failed program was:" >&5
16060 sed 's/^/| /' conftest.$ac_ext >&5
16061
16062 ac_cv_lib_socket_socket=no
16063 fi
16064 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16065 LIBS=$ac_check_lib_save_LIBS
16066 fi
16067 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
16068 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
16069 if test $ac_cv_lib_socket_socket = yes; then
16070   cat >>confdefs.h <<_ACEOF
16071 #define HAVE_LIBSOCKET 1
16072 _ACEOF
16073
16074   LIBS="-lsocket $LIBS"
16075
16076 fi
16077
16078
16079 echo "$as_me:$LINENO: checking for socket in -linet" >&5
16080 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
16081 if test "${ac_cv_lib_inet_socket+set}" = set; then
16082   echo $ECHO_N "(cached) $ECHO_C" >&6
16083 else
16084   ac_check_lib_save_LIBS=$LIBS
16085 LIBS="-linet  $LIBS"
16086 cat >conftest.$ac_ext <<_ACEOF
16087 #line $LINENO "configure"
16088 /* confdefs.h.  */
16089 _ACEOF
16090 cat confdefs.h >>conftest.$ac_ext
16091 cat >>conftest.$ac_ext <<_ACEOF
16092 /* end confdefs.h.  */
16093
16094 /* Override any gcc2 internal prototype to avoid an error.  */
16095 #ifdef __cplusplus
16096 extern "C"
16097 #endif
16098 /* We use char because int might match the return type of a gcc2
16099    builtin and then its argument prototype would still apply.  */
16100 char socket ();
16101 int
16102 main ()
16103 {
16104 socket ();
16105   ;
16106   return 0;
16107 }
16108 _ACEOF
16109 rm -f conftest.$ac_objext conftest$ac_exeext
16110 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16111   (eval $ac_link) 2>&5
16112   ac_status=$?
16113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16114   (exit $ac_status); } &&
16115          { ac_try='test -s conftest$ac_exeext'
16116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16117   (eval $ac_try) 2>&5
16118   ac_status=$?
16119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16120   (exit $ac_status); }; }; then
16121   ac_cv_lib_inet_socket=yes
16122 else
16123   echo "$as_me: failed program was:" >&5
16124 sed 's/^/| /' conftest.$ac_ext >&5
16125
16126 ac_cv_lib_inet_socket=no
16127 fi
16128 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16129 LIBS=$ac_check_lib_save_LIBS
16130 fi
16131 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
16132 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
16133 if test $ac_cv_lib_inet_socket = yes; then
16134   cat >>confdefs.h <<_ACEOF
16135 #define HAVE_LIBINET 1
16136 _ACEOF
16137
16138   LIBS="-linet $LIBS"
16139
16140 fi
16141
16142 fi
16143
16144
16145
16146 for ac_func in inet_pton
16147 do
16148 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16149 echo "$as_me:$LINENO: checking for $ac_func" >&5
16150 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16151 if eval "test \"\${$as_ac_var+set}\" = set"; then
16152   echo $ECHO_N "(cached) $ECHO_C" >&6
16153 else
16154   cat >conftest.$ac_ext <<_ACEOF
16155 #line $LINENO "configure"
16156 /* confdefs.h.  */
16157 _ACEOF
16158 cat confdefs.h >>conftest.$ac_ext
16159 cat >>conftest.$ac_ext <<_ACEOF
16160 /* end confdefs.h.  */
16161 /* System header to define __stub macros and hopefully few prototypes,
16162     which can conflict with char $ac_func (); below.
16163     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16164     <limits.h> exists even on freestanding compilers.  */
16165 #ifdef __STDC__
16166 # include <limits.h>
16167 #else
16168 # include <assert.h>
16169 #endif
16170 /* Override any gcc2 internal prototype to avoid an error.  */
16171 #ifdef __cplusplus
16172 extern "C"
16173 {
16174 #endif
16175 /* We use char because int might match the return type of a gcc2
16176    builtin and then its argument prototype would still apply.  */
16177 char $ac_func ();
16178 /* The GNU C library defines this for functions which it implements
16179     to always fail with ENOSYS.  Some functions are actually named
16180     something starting with __ and the normal name is an alias.  */
16181 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16182 choke me
16183 #else
16184 char (*f) () = $ac_func;
16185 #endif
16186 #ifdef __cplusplus
16187 }
16188 #endif
16189
16190 int
16191 main ()
16192 {
16193 return f != $ac_func;
16194   ;
16195   return 0;
16196 }
16197 _ACEOF
16198 rm -f conftest.$ac_objext conftest$ac_exeext
16199 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16200   (eval $ac_link) 2>&5
16201   ac_status=$?
16202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16203   (exit $ac_status); } &&
16204          { ac_try='test -s conftest$ac_exeext'
16205   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16206   (eval $ac_try) 2>&5
16207   ac_status=$?
16208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16209   (exit $ac_status); }; }; then
16210   eval "$as_ac_var=yes"
16211 else
16212   echo "$as_me: failed program was:" >&5
16213 sed 's/^/| /' conftest.$ac_ext >&5
16214
16215 eval "$as_ac_var=no"
16216 fi
16217 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16218 fi
16219 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16220 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16221 if test `eval echo '${'$as_ac_var'}'` = yes; then
16222   cat >>confdefs.h <<_ACEOF
16223 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16224 _ACEOF
16225  cat >>confdefs.h <<\_ACEOF
16226 #define HAVE_INET_PTON 1
16227 _ACEOF
16228
16229 fi
16230 done
16231
16232
16233
16234 for ac_func in strftime
16235 do
16236 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16237 echo "$as_me:$LINENO: checking for $ac_func" >&5
16238 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16239 if eval "test \"\${$as_ac_var+set}\" = set"; then
16240   echo $ECHO_N "(cached) $ECHO_C" >&6
16241 else
16242   cat >conftest.$ac_ext <<_ACEOF
16243 #line $LINENO "configure"
16244 /* confdefs.h.  */
16245 _ACEOF
16246 cat confdefs.h >>conftest.$ac_ext
16247 cat >>conftest.$ac_ext <<_ACEOF
16248 /* end confdefs.h.  */
16249 /* System header to define __stub macros and hopefully few prototypes,
16250     which can conflict with char $ac_func (); below.
16251     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16252     <limits.h> exists even on freestanding compilers.  */
16253 #ifdef __STDC__
16254 # include <limits.h>
16255 #else
16256 # include <assert.h>
16257 #endif
16258 /* Override any gcc2 internal prototype to avoid an error.  */
16259 #ifdef __cplusplus
16260 extern "C"
16261 {
16262 #endif
16263 /* We use char because int might match the return type of a gcc2
16264    builtin and then its argument prototype would still apply.  */
16265 char $ac_func ();
16266 /* The GNU C library defines this for functions which it implements
16267     to always fail with ENOSYS.  Some functions are actually named
16268     something starting with __ and the normal name is an alias.  */
16269 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16270 choke me
16271 #else
16272 char (*f) () = $ac_func;
16273 #endif
16274 #ifdef __cplusplus
16275 }
16276 #endif
16277
16278 int
16279 main ()
16280 {
16281 return f != $ac_func;
16282   ;
16283   return 0;
16284 }
16285 _ACEOF
16286 rm -f conftest.$ac_objext conftest$ac_exeext
16287 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16288   (eval $ac_link) 2>&5
16289   ac_status=$?
16290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16291   (exit $ac_status); } &&
16292          { ac_try='test -s conftest$ac_exeext'
16293   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16294   (eval $ac_try) 2>&5
16295   ac_status=$?
16296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16297   (exit $ac_status); }; }; then
16298   eval "$as_ac_var=yes"
16299 else
16300   echo "$as_me: failed program was:" >&5
16301 sed 's/^/| /' conftest.$ac_ext >&5
16302
16303 eval "$as_ac_var=no"
16304 fi
16305 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16306 fi
16307 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16308 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16309 if test `eval echo '${'$as_ac_var'}'` = yes; then
16310   cat >>confdefs.h <<_ACEOF
16311 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16312 _ACEOF
16313
16314 else
16315   # strftime is in -lintl on SCO UNIX.
16316 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
16317 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
16318 if test "${ac_cv_lib_intl_strftime+set}" = set; then
16319   echo $ECHO_N "(cached) $ECHO_C" >&6
16320 else
16321   ac_check_lib_save_LIBS=$LIBS
16322 LIBS="-lintl  $LIBS"
16323 cat >conftest.$ac_ext <<_ACEOF
16324 #line $LINENO "configure"
16325 /* confdefs.h.  */
16326 _ACEOF
16327 cat confdefs.h >>conftest.$ac_ext
16328 cat >>conftest.$ac_ext <<_ACEOF
16329 /* end confdefs.h.  */
16330
16331 /* Override any gcc2 internal prototype to avoid an error.  */
16332 #ifdef __cplusplus
16333 extern "C"
16334 #endif
16335 /* We use char because int might match the return type of a gcc2
16336    builtin and then its argument prototype would still apply.  */
16337 char strftime ();
16338 int
16339 main ()
16340 {
16341 strftime ();
16342   ;
16343   return 0;
16344 }
16345 _ACEOF
16346 rm -f conftest.$ac_objext conftest$ac_exeext
16347 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16348   (eval $ac_link) 2>&5
16349   ac_status=$?
16350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16351   (exit $ac_status); } &&
16352          { ac_try='test -s conftest$ac_exeext'
16353   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16354   (eval $ac_try) 2>&5
16355   ac_status=$?
16356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16357   (exit $ac_status); }; }; then
16358   ac_cv_lib_intl_strftime=yes
16359 else
16360   echo "$as_me: failed program was:" >&5
16361 sed 's/^/| /' conftest.$ac_ext >&5
16362
16363 ac_cv_lib_intl_strftime=no
16364 fi
16365 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16366 LIBS=$ac_check_lib_save_LIBS
16367 fi
16368 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
16369 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
16370 if test $ac_cv_lib_intl_strftime = yes; then
16371   cat >>confdefs.h <<\_ACEOF
16372 #define HAVE_STRFTIME 1
16373 _ACEOF
16374
16375 LIBS="-lintl $LIBS"
16376 fi
16377
16378 fi
16379 done
16380
16381
16382 for ac_func in vprintf
16383 do
16384 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16385 echo "$as_me:$LINENO: checking for $ac_func" >&5
16386 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16387 if eval "test \"\${$as_ac_var+set}\" = set"; then
16388   echo $ECHO_N "(cached) $ECHO_C" >&6
16389 else
16390   cat >conftest.$ac_ext <<_ACEOF
16391 #line $LINENO "configure"
16392 /* confdefs.h.  */
16393 _ACEOF
16394 cat confdefs.h >>conftest.$ac_ext
16395 cat >>conftest.$ac_ext <<_ACEOF
16396 /* end confdefs.h.  */
16397 /* System header to define __stub macros and hopefully few prototypes,
16398     which can conflict with char $ac_func (); below.
16399     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16400     <limits.h> exists even on freestanding compilers.  */
16401 #ifdef __STDC__
16402 # include <limits.h>
16403 #else
16404 # include <assert.h>
16405 #endif
16406 /* Override any gcc2 internal prototype to avoid an error.  */
16407 #ifdef __cplusplus
16408 extern "C"
16409 {
16410 #endif
16411 /* We use char because int might match the return type of a gcc2
16412    builtin and then its argument prototype would still apply.  */
16413 char $ac_func ();
16414 /* The GNU C library defines this for functions which it implements
16415     to always fail with ENOSYS.  Some functions are actually named
16416     something starting with __ and the normal name is an alias.  */
16417 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16418 choke me
16419 #else
16420 char (*f) () = $ac_func;
16421 #endif
16422 #ifdef __cplusplus
16423 }
16424 #endif
16425
16426 int
16427 main ()
16428 {
16429 return f != $ac_func;
16430   ;
16431   return 0;
16432 }
16433 _ACEOF
16434 rm -f conftest.$ac_objext conftest$ac_exeext
16435 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16436   (eval $ac_link) 2>&5
16437   ac_status=$?
16438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16439   (exit $ac_status); } &&
16440          { ac_try='test -s conftest$ac_exeext'
16441   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16442   (eval $ac_try) 2>&5
16443   ac_status=$?
16444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16445   (exit $ac_status); }; }; then
16446   eval "$as_ac_var=yes"
16447 else
16448   echo "$as_me: failed program was:" >&5
16449 sed 's/^/| /' conftest.$ac_ext >&5
16450
16451 eval "$as_ac_var=no"
16452 fi
16453 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16454 fi
16455 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16456 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16457 if test `eval echo '${'$as_ac_var'}'` = yes; then
16458   cat >>confdefs.h <<_ACEOF
16459 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16460 _ACEOF
16461
16462 echo "$as_me:$LINENO: checking for _doprnt" >&5
16463 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
16464 if test "${ac_cv_func__doprnt+set}" = set; then
16465   echo $ECHO_N "(cached) $ECHO_C" >&6
16466 else
16467   cat >conftest.$ac_ext <<_ACEOF
16468 #line $LINENO "configure"
16469 /* confdefs.h.  */
16470 _ACEOF
16471 cat confdefs.h >>conftest.$ac_ext
16472 cat >>conftest.$ac_ext <<_ACEOF
16473 /* end confdefs.h.  */
16474 /* System header to define __stub macros and hopefully few prototypes,
16475     which can conflict with char _doprnt (); below.
16476     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16477     <limits.h> exists even on freestanding compilers.  */
16478 #ifdef __STDC__
16479 # include <limits.h>
16480 #else
16481 # include <assert.h>
16482 #endif
16483 /* Override any gcc2 internal prototype to avoid an error.  */
16484 #ifdef __cplusplus
16485 extern "C"
16486 {
16487 #endif
16488 /* We use char because int might match the return type of a gcc2
16489    builtin and then its argument prototype would still apply.  */
16490 char _doprnt ();
16491 /* The GNU C library defines this for functions which it implements
16492     to always fail with ENOSYS.  Some functions are actually named
16493     something starting with __ and the normal name is an alias.  */
16494 #if defined (__stub__doprnt) || defined (__stub____doprnt)
16495 choke me
16496 #else
16497 char (*f) () = _doprnt;
16498 #endif
16499 #ifdef __cplusplus
16500 }
16501 #endif
16502
16503 int
16504 main ()
16505 {
16506 return f != _doprnt;
16507   ;
16508   return 0;
16509 }
16510 _ACEOF
16511 rm -f conftest.$ac_objext conftest$ac_exeext
16512 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16513   (eval $ac_link) 2>&5
16514   ac_status=$?
16515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16516   (exit $ac_status); } &&
16517          { ac_try='test -s conftest$ac_exeext'
16518   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16519   (eval $ac_try) 2>&5
16520   ac_status=$?
16521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16522   (exit $ac_status); }; }; then
16523   ac_cv_func__doprnt=yes
16524 else
16525   echo "$as_me: failed program was:" >&5
16526 sed 's/^/| /' conftest.$ac_ext >&5
16527
16528 ac_cv_func__doprnt=no
16529 fi
16530 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16531 fi
16532 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
16533 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
16534 if test $ac_cv_func__doprnt = yes; then
16535
16536 cat >>confdefs.h <<\_ACEOF
16537 #define HAVE_DOPRNT 1
16538 _ACEOF
16539
16540 fi
16541
16542 fi
16543 done
16544
16545
16546 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16547 # for constant arguments.  Useless!
16548 echo "$as_me:$LINENO: checking for working alloca.h" >&5
16549 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
16550 if test "${ac_cv_working_alloca_h+set}" = set; then
16551   echo $ECHO_N "(cached) $ECHO_C" >&6
16552 else
16553   cat >conftest.$ac_ext <<_ACEOF
16554 #line $LINENO "configure"
16555 /* confdefs.h.  */
16556 _ACEOF
16557 cat confdefs.h >>conftest.$ac_ext
16558 cat >>conftest.$ac_ext <<_ACEOF
16559 /* end confdefs.h.  */
16560 #include <alloca.h>
16561 int
16562 main ()
16563 {
16564 char *p = (char *) alloca (2 * sizeof (int));
16565   ;
16566   return 0;
16567 }
16568 _ACEOF
16569 rm -f conftest.$ac_objext conftest$ac_exeext
16570 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16571   (eval $ac_link) 2>&5
16572   ac_status=$?
16573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16574   (exit $ac_status); } &&
16575          { ac_try='test -s conftest$ac_exeext'
16576   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16577   (eval $ac_try) 2>&5
16578   ac_status=$?
16579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16580   (exit $ac_status); }; }; then
16581   ac_cv_working_alloca_h=yes
16582 else
16583   echo "$as_me: failed program was:" >&5
16584 sed 's/^/| /' conftest.$ac_ext >&5
16585
16586 ac_cv_working_alloca_h=no
16587 fi
16588 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16589 fi
16590 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
16591 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
16592 if test $ac_cv_working_alloca_h = yes; then
16593
16594 cat >>confdefs.h <<\_ACEOF
16595 #define HAVE_ALLOCA_H 1
16596 _ACEOF
16597
16598 fi
16599
16600 echo "$as_me:$LINENO: checking for alloca" >&5
16601 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
16602 if test "${ac_cv_func_alloca_works+set}" = set; then
16603   echo $ECHO_N "(cached) $ECHO_C" >&6
16604 else
16605   cat >conftest.$ac_ext <<_ACEOF
16606 #line $LINENO "configure"
16607 /* confdefs.h.  */
16608 _ACEOF
16609 cat confdefs.h >>conftest.$ac_ext
16610 cat >>conftest.$ac_ext <<_ACEOF
16611 /* end confdefs.h.  */
16612 #ifdef __GNUC__
16613 # define alloca __builtin_alloca
16614 #else
16615 # ifdef _MSC_VER
16616 #  include <malloc.h>
16617 #  define alloca _alloca
16618 # else
16619 #  if HAVE_ALLOCA_H
16620 #   include <alloca.h>
16621 #  else
16622 #   ifdef _AIX
16623  #pragma alloca
16624 #   else
16625 #    ifndef alloca /* predefined by HP cc +Olibcalls */
16626 char *alloca ();
16627 #    endif
16628 #   endif
16629 #  endif
16630 # endif
16631 #endif
16632
16633 int
16634 main ()
16635 {
16636 char *p = (char *) alloca (1);
16637   ;
16638   return 0;
16639 }
16640 _ACEOF
16641 rm -f conftest.$ac_objext conftest$ac_exeext
16642 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16643   (eval $ac_link) 2>&5
16644   ac_status=$?
16645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16646   (exit $ac_status); } &&
16647          { ac_try='test -s conftest$ac_exeext'
16648   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16649   (eval $ac_try) 2>&5
16650   ac_status=$?
16651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16652   (exit $ac_status); }; }; then
16653   ac_cv_func_alloca_works=yes
16654 else
16655   echo "$as_me: failed program was:" >&5
16656 sed 's/^/| /' conftest.$ac_ext >&5
16657
16658 ac_cv_func_alloca_works=no
16659 fi
16660 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16661 fi
16662 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
16663 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
16664
16665 if test $ac_cv_func_alloca_works = yes; then
16666
16667 cat >>confdefs.h <<\_ACEOF
16668 #define HAVE_ALLOCA 1
16669 _ACEOF
16670
16671 else
16672   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16673 # that cause trouble.  Some versions do not even contain alloca or
16674 # contain a buggy version.  If you still want to use their alloca,
16675 # use ar to extract alloca.o from them instead of compiling alloca.c.
16676
16677 ALLOCA=alloca.$ac_objext
16678
16679 cat >>confdefs.h <<\_ACEOF
16680 #define C_ALLOCA 1
16681 _ACEOF
16682
16683
16684 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
16685 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
16686 if test "${ac_cv_os_cray+set}" = set; then
16687   echo $ECHO_N "(cached) $ECHO_C" >&6
16688 else
16689   cat >conftest.$ac_ext <<_ACEOF
16690 #line $LINENO "configure"
16691 /* confdefs.h.  */
16692 _ACEOF
16693 cat confdefs.h >>conftest.$ac_ext
16694 cat >>conftest.$ac_ext <<_ACEOF
16695 /* end confdefs.h.  */
16696 #if defined(CRAY) && ! defined(CRAY2)
16697 webecray
16698 #else
16699 wenotbecray
16700 #endif
16701
16702 _ACEOF
16703 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16704   $EGREP "webecray" >/dev/null 2>&1; then
16705   ac_cv_os_cray=yes
16706 else
16707   ac_cv_os_cray=no
16708 fi
16709 rm -f conftest*
16710
16711 fi
16712 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
16713 echo "${ECHO_T}$ac_cv_os_cray" >&6
16714 if test $ac_cv_os_cray = yes; then
16715   for ac_func in _getb67 GETB67 getb67; do
16716     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16717 echo "$as_me:$LINENO: checking for $ac_func" >&5
16718 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16719 if eval "test \"\${$as_ac_var+set}\" = set"; then
16720   echo $ECHO_N "(cached) $ECHO_C" >&6
16721 else
16722   cat >conftest.$ac_ext <<_ACEOF
16723 #line $LINENO "configure"
16724 /* confdefs.h.  */
16725 _ACEOF
16726 cat confdefs.h >>conftest.$ac_ext
16727 cat >>conftest.$ac_ext <<_ACEOF
16728 /* end confdefs.h.  */
16729 /* System header to define __stub macros and hopefully few prototypes,
16730     which can conflict with char $ac_func (); below.
16731     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16732     <limits.h> exists even on freestanding compilers.  */
16733 #ifdef __STDC__
16734 # include <limits.h>
16735 #else
16736 # include <assert.h>
16737 #endif
16738 /* Override any gcc2 internal prototype to avoid an error.  */
16739 #ifdef __cplusplus
16740 extern "C"
16741 {
16742 #endif
16743 /* We use char because int might match the return type of a gcc2
16744    builtin and then its argument prototype would still apply.  */
16745 char $ac_func ();
16746 /* The GNU C library defines this for functions which it implements
16747     to always fail with ENOSYS.  Some functions are actually named
16748     something starting with __ and the normal name is an alias.  */
16749 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16750 choke me
16751 #else
16752 char (*f) () = $ac_func;
16753 #endif
16754 #ifdef __cplusplus
16755 }
16756 #endif
16757
16758 int
16759 main ()
16760 {
16761 return f != $ac_func;
16762   ;
16763   return 0;
16764 }
16765 _ACEOF
16766 rm -f conftest.$ac_objext conftest$ac_exeext
16767 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16768   (eval $ac_link) 2>&5
16769   ac_status=$?
16770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16771   (exit $ac_status); } &&
16772          { ac_try='test -s conftest$ac_exeext'
16773   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16774   (eval $ac_try) 2>&5
16775   ac_status=$?
16776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16777   (exit $ac_status); }; }; then
16778   eval "$as_ac_var=yes"
16779 else
16780   echo "$as_me: failed program was:" >&5
16781 sed 's/^/| /' conftest.$ac_ext >&5
16782
16783 eval "$as_ac_var=no"
16784 fi
16785 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16786 fi
16787 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16788 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16789 if test `eval echo '${'$as_ac_var'}'` = yes; then
16790
16791 cat >>confdefs.h <<_ACEOF
16792 #define CRAY_STACKSEG_END $ac_func
16793 _ACEOF
16794
16795     break
16796 fi
16797
16798   done
16799 fi
16800
16801 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
16802 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
16803 if test "${ac_cv_c_stack_direction+set}" = set; then
16804   echo $ECHO_N "(cached) $ECHO_C" >&6
16805 else
16806   if test "$cross_compiling" = yes; then
16807   ac_cv_c_stack_direction=0
16808 else
16809   cat >conftest.$ac_ext <<_ACEOF
16810 #line $LINENO "configure"
16811 /* confdefs.h.  */
16812 _ACEOF
16813 cat confdefs.h >>conftest.$ac_ext
16814 cat >>conftest.$ac_ext <<_ACEOF
16815 /* end confdefs.h.  */
16816 int
16817 find_stack_direction ()
16818 {
16819   static char *addr = 0;
16820   auto char dummy;
16821   if (addr == 0)
16822     {
16823       addr = &dummy;
16824       return find_stack_direction ();
16825     }
16826   else
16827     return (&dummy > addr) ? 1 : -1;
16828 }
16829
16830 int
16831 main ()
16832 {
16833   exit (find_stack_direction () < 0);
16834 }
16835 _ACEOF
16836 rm -f conftest$ac_exeext
16837 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16838   (eval $ac_link) 2>&5
16839   ac_status=$?
16840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16841   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16842   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16843   (eval $ac_try) 2>&5
16844   ac_status=$?
16845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16846   (exit $ac_status); }; }; then
16847   ac_cv_c_stack_direction=1
16848 else
16849   echo "$as_me: program exited with status $ac_status" >&5
16850 echo "$as_me: failed program was:" >&5
16851 sed 's/^/| /' conftest.$ac_ext >&5
16852
16853 ( exit $ac_status )
16854 ac_cv_c_stack_direction=-1
16855 fi
16856 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16857 fi
16858 fi
16859 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
16860 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
16861
16862 cat >>confdefs.h <<_ACEOF
16863 #define STACK_DIRECTION $ac_cv_c_stack_direction
16864 _ACEOF
16865
16866
16867 fi
16868
16869 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
16870 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
16871 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
16872 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
16873   echo $ECHO_N "(cached) $ECHO_C" >&6
16874 else
16875   ac_check_lib_save_LIBS=$LIBS
16876 LIBS="-lsun  $LIBS"
16877 cat >conftest.$ac_ext <<_ACEOF
16878 #line $LINENO "configure"
16879 /* confdefs.h.  */
16880 _ACEOF
16881 cat confdefs.h >>conftest.$ac_ext
16882 cat >>conftest.$ac_ext <<_ACEOF
16883 /* end confdefs.h.  */
16884
16885 /* Override any gcc2 internal prototype to avoid an error.  */
16886 #ifdef __cplusplus
16887 extern "C"
16888 #endif
16889 /* We use char because int might match the return type of a gcc2
16890    builtin and then its argument prototype would still apply.  */
16891 char getmntent ();
16892 int
16893 main ()
16894 {
16895 getmntent ();
16896   ;
16897   return 0;
16898 }
16899 _ACEOF
16900 rm -f conftest.$ac_objext conftest$ac_exeext
16901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16902   (eval $ac_link) 2>&5
16903   ac_status=$?
16904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16905   (exit $ac_status); } &&
16906          { ac_try='test -s conftest$ac_exeext'
16907   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16908   (eval $ac_try) 2>&5
16909   ac_status=$?
16910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16911   (exit $ac_status); }; }; then
16912   ac_cv_lib_sun_getmntent=yes
16913 else
16914   echo "$as_me: failed program was:" >&5
16915 sed 's/^/| /' conftest.$ac_ext >&5
16916
16917 ac_cv_lib_sun_getmntent=no
16918 fi
16919 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16920 LIBS=$ac_check_lib_save_LIBS
16921 fi
16922 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
16923 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
16924 if test $ac_cv_lib_sun_getmntent = yes; then
16925   LIBS="-lsun $LIBS"
16926 else
16927   echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
16928 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
16929 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
16930   echo $ECHO_N "(cached) $ECHO_C" >&6
16931 else
16932   ac_check_lib_save_LIBS=$LIBS
16933 LIBS="-lseq  $LIBS"
16934 cat >conftest.$ac_ext <<_ACEOF
16935 #line $LINENO "configure"
16936 /* confdefs.h.  */
16937 _ACEOF
16938 cat confdefs.h >>conftest.$ac_ext
16939 cat >>conftest.$ac_ext <<_ACEOF
16940 /* end confdefs.h.  */
16941
16942 /* Override any gcc2 internal prototype to avoid an error.  */
16943 #ifdef __cplusplus
16944 extern "C"
16945 #endif
16946 /* We use char because int might match the return type of a gcc2
16947    builtin and then its argument prototype would still apply.  */
16948 char getmntent ();
16949 int
16950 main ()
16951 {
16952 getmntent ();
16953   ;
16954   return 0;
16955 }
16956 _ACEOF
16957 rm -f conftest.$ac_objext conftest$ac_exeext
16958 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16959   (eval $ac_link) 2>&5
16960   ac_status=$?
16961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16962   (exit $ac_status); } &&
16963          { ac_try='test -s conftest$ac_exeext'
16964   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16965   (eval $ac_try) 2>&5
16966   ac_status=$?
16967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16968   (exit $ac_status); }; }; then
16969   ac_cv_lib_seq_getmntent=yes
16970 else
16971   echo "$as_me: failed program was:" >&5
16972 sed 's/^/| /' conftest.$ac_ext >&5
16973
16974 ac_cv_lib_seq_getmntent=no
16975 fi
16976 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16977 LIBS=$ac_check_lib_save_LIBS
16978 fi
16979 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
16980 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
16981 if test $ac_cv_lib_seq_getmntent = yes; then
16982   LIBS="-lseq $LIBS"
16983 else
16984   echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
16985 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
16986 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
16987   echo $ECHO_N "(cached) $ECHO_C" >&6
16988 else
16989   ac_check_lib_save_LIBS=$LIBS
16990 LIBS="-lgen  $LIBS"
16991 cat >conftest.$ac_ext <<_ACEOF
16992 #line $LINENO "configure"
16993 /* confdefs.h.  */
16994 _ACEOF
16995 cat confdefs.h >>conftest.$ac_ext
16996 cat >>conftest.$ac_ext <<_ACEOF
16997 /* end confdefs.h.  */
16998
16999 /* Override any gcc2 internal prototype to avoid an error.  */
17000 #ifdef __cplusplus
17001 extern "C"
17002 #endif
17003 /* We use char because int might match the return type of a gcc2
17004    builtin and then its argument prototype would still apply.  */
17005 char getmntent ();
17006 int
17007 main ()
17008 {
17009 getmntent ();
17010   ;
17011   return 0;
17012 }
17013 _ACEOF
17014 rm -f conftest.$ac_objext conftest$ac_exeext
17015 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17016   (eval $ac_link) 2>&5
17017   ac_status=$?
17018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17019   (exit $ac_status); } &&
17020          { ac_try='test -s conftest$ac_exeext'
17021   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17022   (eval $ac_try) 2>&5
17023   ac_status=$?
17024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17025   (exit $ac_status); }; }; then
17026   ac_cv_lib_gen_getmntent=yes
17027 else
17028   echo "$as_me: failed program was:" >&5
17029 sed 's/^/| /' conftest.$ac_ext >&5
17030
17031 ac_cv_lib_gen_getmntent=no
17032 fi
17033 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17034 LIBS=$ac_check_lib_save_LIBS
17035 fi
17036 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
17037 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
17038 if test $ac_cv_lib_gen_getmntent = yes; then
17039   LIBS="-lgen $LIBS"
17040 fi
17041
17042 fi
17043
17044 fi
17045
17046
17047 for ac_func in getmntent
17048 do
17049 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17050 echo "$as_me:$LINENO: checking for $ac_func" >&5
17051 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17052 if eval "test \"\${$as_ac_var+set}\" = set"; then
17053   echo $ECHO_N "(cached) $ECHO_C" >&6
17054 else
17055   cat >conftest.$ac_ext <<_ACEOF
17056 #line $LINENO "configure"
17057 /* confdefs.h.  */
17058 _ACEOF
17059 cat confdefs.h >>conftest.$ac_ext
17060 cat >>conftest.$ac_ext <<_ACEOF
17061 /* end confdefs.h.  */
17062 /* System header to define __stub macros and hopefully few prototypes,
17063     which can conflict with char $ac_func (); below.
17064     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17065     <limits.h> exists even on freestanding compilers.  */
17066 #ifdef __STDC__
17067 # include <limits.h>
17068 #else
17069 # include <assert.h>
17070 #endif
17071 /* Override any gcc2 internal prototype to avoid an error.  */
17072 #ifdef __cplusplus
17073 extern "C"
17074 {
17075 #endif
17076 /* We use char because int might match the return type of a gcc2
17077    builtin and then its argument prototype would still apply.  */
17078 char $ac_func ();
17079 /* The GNU C library defines this for functions which it implements
17080     to always fail with ENOSYS.  Some functions are actually named
17081     something starting with __ and the normal name is an alias.  */
17082 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17083 choke me
17084 #else
17085 char (*f) () = $ac_func;
17086 #endif
17087 #ifdef __cplusplus
17088 }
17089 #endif
17090
17091 int
17092 main ()
17093 {
17094 return f != $ac_func;
17095   ;
17096   return 0;
17097 }
17098 _ACEOF
17099 rm -f conftest.$ac_objext conftest$ac_exeext
17100 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17101   (eval $ac_link) 2>&5
17102   ac_status=$?
17103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17104   (exit $ac_status); } &&
17105          { ac_try='test -s conftest$ac_exeext'
17106   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17107   (eval $ac_try) 2>&5
17108   ac_status=$?
17109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17110   (exit $ac_status); }; }; then
17111   eval "$as_ac_var=yes"
17112 else
17113   echo "$as_me: failed program was:" >&5
17114 sed 's/^/| /' conftest.$ac_ext >&5
17115
17116 eval "$as_ac_var=no"
17117 fi
17118 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17119 fi
17120 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17121 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17122 if test `eval echo '${'$as_ac_var'}'` = yes; then
17123   cat >>confdefs.h <<_ACEOF
17124 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17125 _ACEOF
17126
17127 fi
17128 done
17129
17130
17131 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
17132 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
17133 if test "${ac_cv_func_closedir_void+set}" = set; then
17134   echo $ECHO_N "(cached) $ECHO_C" >&6
17135 else
17136   if test "$cross_compiling" = yes; then
17137   ac_cv_func_closedir_void=yes
17138 else
17139   cat >conftest.$ac_ext <<_ACEOF
17140 #line $LINENO "configure"
17141 /* confdefs.h.  */
17142 _ACEOF
17143 cat confdefs.h >>conftest.$ac_ext
17144 cat >>conftest.$ac_ext <<_ACEOF
17145 /* end confdefs.h.  */
17146 $ac_includes_default
17147 #include <$ac_header_dirent>
17148 #ifndef __cplusplus
17149 int closedir ();
17150 #endif
17151
17152 int
17153 main ()
17154 {
17155 exit (closedir (opendir (".")) != 0);
17156   ;
17157   return 0;
17158 }
17159 _ACEOF
17160 rm -f conftest$ac_exeext
17161 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17162   (eval $ac_link) 2>&5
17163   ac_status=$?
17164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17165   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17166   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17167   (eval $ac_try) 2>&5
17168   ac_status=$?
17169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17170   (exit $ac_status); }; }; then
17171   ac_cv_func_closedir_void=no
17172 else
17173   echo "$as_me: program exited with status $ac_status" >&5
17174 echo "$as_me: failed program was:" >&5
17175 sed 's/^/| /' conftest.$ac_ext >&5
17176
17177 ( exit $ac_status )
17178 ac_cv_func_closedir_void=yes
17179 fi
17180 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17181 fi
17182 fi
17183 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
17184 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
17185 if test $ac_cv_func_closedir_void = yes; then
17186
17187 cat >>confdefs.h <<\_ACEOF
17188 #define CLOSEDIR_VOID 1
17189 _ACEOF
17190
17191 fi
17192
17193 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
17194 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
17195 if test "${ac_cv_func_setpgrp_void+set}" = set; then
17196   echo $ECHO_N "(cached) $ECHO_C" >&6
17197 else
17198   if test "$cross_compiling" = yes; then
17199   { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
17200 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
17201    { (exit 1); exit 1; }; }
17202 else
17203   cat >conftest.$ac_ext <<_ACEOF
17204 #line $LINENO "configure"
17205 /* confdefs.h.  */
17206 _ACEOF
17207 cat confdefs.h >>conftest.$ac_ext
17208 cat >>conftest.$ac_ext <<_ACEOF
17209 /* end confdefs.h.  */
17210 #if HAVE_UNISTD_H
17211 # include <unistd.h>
17212 #endif
17213
17214 int
17215 main ()
17216 {
17217 /* If this system has a BSD-style setpgrp which takes arguments,
17218   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
17219   exit successfully. */
17220   exit (setpgrp (1,1) == -1 ? 0 : 1);
17221   ;
17222   return 0;
17223 }
17224 _ACEOF
17225 rm -f conftest$ac_exeext
17226 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17227   (eval $ac_link) 2>&5
17228   ac_status=$?
17229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17230   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17231   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17232   (eval $ac_try) 2>&5
17233   ac_status=$?
17234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17235   (exit $ac_status); }; }; then
17236   ac_cv_func_setpgrp_void=no
17237 else
17238   echo "$as_me: program exited with status $ac_status" >&5
17239 echo "$as_me: failed program was:" >&5
17240 sed 's/^/| /' conftest.$ac_ext >&5
17241
17242 ( exit $ac_status )
17243 ac_cv_func_setpgrp_void=yes
17244 fi
17245 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17246 fi
17247 fi
17248 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
17249 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
17250 if test $ac_cv_func_setpgrp_void = yes; then
17251
17252 cat >>confdefs.h <<\_ACEOF
17253 #define SETPGRP_VOID 1
17254 _ACEOF
17255
17256 fi
17257                       echo "$as_me:$LINENO: checking for working POSIX fnmatch" >&5
17258 echo $ECHO_N "checking for working POSIX fnmatch... $ECHO_C" >&6
17259 if test "${ac_cv_func_fnmatch_works+set}" = set; then
17260   echo $ECHO_N "(cached) $ECHO_C" >&6
17261 else
17262   # Some versions of Solaris, SCO, and the GNU C Library
17263    # have a broken or incompatible fnmatch.
17264    # So we run a test program.  If we are cross-compiling, take no chance.
17265    # Thanks to John Oleynick, Franc,ois Pinard, and Paul Eggert for this test.
17266    if test "$cross_compiling" = yes; then
17267   ac_cv_func_fnmatch_works=cross
17268 else
17269   cat >conftest.$ac_ext <<_ACEOF
17270 #line $LINENO "configure"
17271 /* confdefs.h.  */
17272 _ACEOF
17273 cat confdefs.h >>conftest.$ac_ext
17274 cat >>conftest.$ac_ext <<_ACEOF
17275 /* end confdefs.h.  */
17276 #include <fnmatch.h>
17277 #          define y(a, b, c) (fnmatch (a, b, c) == 0)
17278 #          define n(a, b, c) (fnmatch (a, b, c) == FNM_NOMATCH)
17279
17280 int
17281 main ()
17282 {
17283 exit
17284            (!(y ("a*", "abc", 0)
17285               && n ("d*/*1", "d/s/1", FNM_PATHNAME)
17286               && y ("a\\\\bc", "abc", 0)
17287               && n ("a\\\\bc", "abc", FNM_NOESCAPE)
17288               && y ("*x", ".x", 0)
17289               && n ("*x", ".x", FNM_PERIOD)
17290               && 1));
17291   ;
17292   return 0;
17293 }
17294 _ACEOF
17295 rm -f conftest$ac_exeext
17296 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17297   (eval $ac_link) 2>&5
17298   ac_status=$?
17299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17300   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17302   (eval $ac_try) 2>&5
17303   ac_status=$?
17304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17305   (exit $ac_status); }; }; then
17306   ac_cv_func_fnmatch_works=yes
17307 else
17308   echo "$as_me: program exited with status $ac_status" >&5
17309 echo "$as_me: failed program was:" >&5
17310 sed 's/^/| /' conftest.$ac_ext >&5
17311
17312 ( exit $ac_status )
17313 ac_cv_func_fnmatch_works=no
17314 fi
17315 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17316 fi
17317 fi
17318 echo "$as_me:$LINENO: result: $ac_cv_func_fnmatch_works" >&5
17319 echo "${ECHO_T}$ac_cv_func_fnmatch_works" >&6
17320 if test $ac_cv_func_fnmatch_works = yes; then
17321
17322 cat >>confdefs.h <<\_ACEOF
17323 #define HAVE_FNMATCH 1
17324 _ACEOF
17325
17326 fi
17327
17328
17329
17330
17331
17332 echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
17333 echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
17334 if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
17335   echo $ECHO_N "(cached) $ECHO_C" >&6
17336 else
17337   ac_check_lib_save_LIBS=$LIBS
17338 LIBS="-lxpg4  $LIBS"
17339 cat >conftest.$ac_ext <<_ACEOF
17340 #line $LINENO "configure"
17341 /* confdefs.h.  */
17342 _ACEOF
17343 cat confdefs.h >>conftest.$ac_ext
17344 cat >>conftest.$ac_ext <<_ACEOF
17345 /* end confdefs.h.  */
17346
17347 /* Override any gcc2 internal prototype to avoid an error.  */
17348 #ifdef __cplusplus
17349 extern "C"
17350 #endif
17351 /* We use char because int might match the return type of a gcc2
17352    builtin and then its argument prototype would still apply.  */
17353 char setlocale ();
17354 int
17355 main ()
17356 {
17357 setlocale ();
17358   ;
17359   return 0;
17360 }
17361 _ACEOF
17362 rm -f conftest.$ac_objext conftest$ac_exeext
17363 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17364   (eval $ac_link) 2>&5
17365   ac_status=$?
17366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17367   (exit $ac_status); } &&
17368          { ac_try='test -s conftest$ac_exeext'
17369   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17370   (eval $ac_try) 2>&5
17371   ac_status=$?
17372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17373   (exit $ac_status); }; }; then
17374   ac_cv_lib_xpg4_setlocale=yes
17375 else
17376   echo "$as_me: failed program was:" >&5
17377 sed 's/^/| /' conftest.$ac_ext >&5
17378
17379 ac_cv_lib_xpg4_setlocale=no
17380 fi
17381 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17382 LIBS=$ac_check_lib_save_LIBS
17383 fi
17384 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
17385 echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
17386 if test $ac_cv_lib_xpg4_setlocale = yes; then
17387   LIBS="$LIBS -lxpg4"
17388 fi
17389
17390
17391
17392
17393 echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
17394 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6
17395 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
17396   echo $ECHO_N "(cached) $ECHO_C" >&6
17397 else
17398   ac_check_lib_save_LIBS=$LIBS
17399 LIBS="-lsun  $LIBS"
17400 cat >conftest.$ac_ext <<_ACEOF
17401 #line $LINENO "configure"
17402 /* confdefs.h.  */
17403 _ACEOF
17404 cat confdefs.h >>conftest.$ac_ext
17405 cat >>conftest.$ac_ext <<_ACEOF
17406 /* end confdefs.h.  */
17407
17408 /* Override any gcc2 internal prototype to avoid an error.  */
17409 #ifdef __cplusplus
17410 extern "C"
17411 #endif
17412 /* We use char because int might match the return type of a gcc2
17413    builtin and then its argument prototype would still apply.  */
17414 char getpwnam ();
17415 int
17416 main ()
17417 {
17418 getpwnam ();
17419   ;
17420   return 0;
17421 }
17422 _ACEOF
17423 rm -f conftest.$ac_objext conftest$ac_exeext
17424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17425   (eval $ac_link) 2>&5
17426   ac_status=$?
17427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17428   (exit $ac_status); } &&
17429          { ac_try='test -s conftest$ac_exeext'
17430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17431   (eval $ac_try) 2>&5
17432   ac_status=$?
17433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17434   (exit $ac_status); }; }; then
17435   ac_cv_lib_sun_getpwnam=yes
17436 else
17437   echo "$as_me: failed program was:" >&5
17438 sed 's/^/| /' conftest.$ac_ext >&5
17439
17440 ac_cv_lib_sun_getpwnam=no
17441 fi
17442 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17443 LIBS=$ac_check_lib_save_LIBS
17444 fi
17445 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
17446 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6
17447 if test $ac_cv_lib_sun_getpwnam = yes; then
17448   cat >>confdefs.h <<_ACEOF
17449 #define HAVE_LIBSUN 1
17450 _ACEOF
17451
17452   LIBS="-lsun $LIBS"
17453
17454 fi
17455
17456
17457
17458 for ac_header in zlib.h
17459 do
17460 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17461 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17462   echo "$as_me:$LINENO: checking for $ac_header" >&5
17463 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17464 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17465   echo $ECHO_N "(cached) $ECHO_C" >&6
17466 fi
17467 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17468 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17469 else
17470   # Is the header compilable?
17471 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17472 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17473 cat >conftest.$ac_ext <<_ACEOF
17474 #line $LINENO "configure"
17475 /* confdefs.h.  */
17476 _ACEOF
17477 cat confdefs.h >>conftest.$ac_ext
17478 cat >>conftest.$ac_ext <<_ACEOF
17479 /* end confdefs.h.  */
17480 $ac_includes_default
17481 #include <$ac_header>
17482 _ACEOF
17483 rm -f conftest.$ac_objext
17484 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17485   (eval $ac_compile) 2>&5
17486   ac_status=$?
17487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17488   (exit $ac_status); } &&
17489          { ac_try='test -s conftest.$ac_objext'
17490   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17491   (eval $ac_try) 2>&5
17492   ac_status=$?
17493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17494   (exit $ac_status); }; }; then
17495   ac_header_compiler=yes
17496 else
17497   echo "$as_me: failed program was:" >&5
17498 sed 's/^/| /' conftest.$ac_ext >&5
17499
17500 ac_header_compiler=no
17501 fi
17502 rm -f conftest.$ac_objext conftest.$ac_ext
17503 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17504 echo "${ECHO_T}$ac_header_compiler" >&6
17505
17506 # Is the header present?
17507 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17508 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17509 cat >conftest.$ac_ext <<_ACEOF
17510 #line $LINENO "configure"
17511 /* confdefs.h.  */
17512 _ACEOF
17513 cat confdefs.h >>conftest.$ac_ext
17514 cat >>conftest.$ac_ext <<_ACEOF
17515 /* end confdefs.h.  */
17516 #include <$ac_header>
17517 _ACEOF
17518 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17519   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17520   ac_status=$?
17521   grep -v '^ *+' conftest.er1 >conftest.err
17522   rm -f conftest.er1
17523   cat conftest.err >&5
17524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17525   (exit $ac_status); } >/dev/null; then
17526   if test -s conftest.err; then
17527     ac_cpp_err=$ac_c_preproc_warn_flag
17528   else
17529     ac_cpp_err=
17530   fi
17531 else
17532   ac_cpp_err=yes
17533 fi
17534 if test -z "$ac_cpp_err"; then
17535   ac_header_preproc=yes
17536 else
17537   echo "$as_me: failed program was:" >&5
17538 sed 's/^/| /' conftest.$ac_ext >&5
17539
17540   ac_header_preproc=no
17541 fi
17542 rm -f conftest.err conftest.$ac_ext
17543 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17544 echo "${ECHO_T}$ac_header_preproc" >&6
17545
17546 # So?  What about this header?
17547 case $ac_header_compiler:$ac_header_preproc in
17548   yes:no )
17549     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17550 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17551     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17552 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17553     (
17554       cat <<\_ASBOX
17555 ## ------------------------------------ ##
17556 ## Report this to bug-autoconf@gnu.org. ##
17557 ## ------------------------------------ ##
17558 _ASBOX
17559     ) |
17560       sed "s/^/$as_me: WARNING:     /" >&2
17561     ;;
17562   no:yes )
17563     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17564 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17565     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17566 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17567     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17568 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17569     (
17570       cat <<\_ASBOX
17571 ## ------------------------------------ ##
17572 ## Report this to bug-autoconf@gnu.org. ##
17573 ## ------------------------------------ ##
17574 _ASBOX
17575     ) |
17576       sed "s/^/$as_me: WARNING:     /" >&2
17577     ;;
17578 esac
17579 echo "$as_me:$LINENO: checking for $ac_header" >&5
17580 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17581 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17582   echo $ECHO_N "(cached) $ECHO_C" >&6
17583 else
17584   eval "$as_ac_Header=$ac_header_preproc"
17585 fi
17586 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17587 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17588
17589 fi
17590 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17591   cat >>confdefs.h <<_ACEOF
17592 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17593 _ACEOF
17594
17595 fi
17596
17597 done
17598
17599 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
17600 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
17601 if test "${ac_cv_lib_z_deflate+set}" = set; then
17602   echo $ECHO_N "(cached) $ECHO_C" >&6
17603 else
17604   ac_check_lib_save_LIBS=$LIBS
17605 LIBS="-lz  $LIBS"
17606 cat >conftest.$ac_ext <<_ACEOF
17607 #line $LINENO "configure"
17608 /* confdefs.h.  */
17609 _ACEOF
17610 cat confdefs.h >>conftest.$ac_ext
17611 cat >>conftest.$ac_ext <<_ACEOF
17612 /* end confdefs.h.  */
17613
17614 /* Override any gcc2 internal prototype to avoid an error.  */
17615 #ifdef __cplusplus
17616 extern "C"
17617 #endif
17618 /* We use char because int might match the return type of a gcc2
17619    builtin and then its argument prototype would still apply.  */
17620 char deflate ();
17621 int
17622 main ()
17623 {
17624 deflate ();
17625   ;
17626   return 0;
17627 }
17628 _ACEOF
17629 rm -f conftest.$ac_objext conftest$ac_exeext
17630 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17631   (eval $ac_link) 2>&5
17632   ac_status=$?
17633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17634   (exit $ac_status); } &&
17635          { ac_try='test -s conftest$ac_exeext'
17636   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17637   (eval $ac_try) 2>&5
17638   ac_status=$?
17639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17640   (exit $ac_status); }; }; then
17641   ac_cv_lib_z_deflate=yes
17642 else
17643   echo "$as_me: failed program was:" >&5
17644 sed 's/^/| /' conftest.$ac_ext >&5
17645
17646 ac_cv_lib_z_deflate=no
17647 fi
17648 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17649 LIBS=$ac_check_lib_save_LIBS
17650 fi
17651 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
17652 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
17653 if test $ac_cv_lib_z_deflate = yes; then
17654   FDLIBS="-lz"
17655 fi
17656
17657 have_zlib=no
17658 if test x$FDLIBS = x-lz; then
17659   cat >>confdefs.h <<\_ACEOF
17660 #define HAVE_LIBZ 1
17661 _ACEOF
17662
17663   have_zlib=yes
17664 fi
17665
17666 if test "${ac_cv_header_sys_acl_h+set}" = set; then
17667   echo "$as_me:$LINENO: checking for sys/acl.h" >&5
17668 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
17669 if test "${ac_cv_header_sys_acl_h+set}" = set; then
17670   echo $ECHO_N "(cached) $ECHO_C" >&6
17671 fi
17672 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
17673 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
17674 else
17675   # Is the header compilable?
17676 echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
17677 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6
17678 cat >conftest.$ac_ext <<_ACEOF
17679 #line $LINENO "configure"
17680 /* confdefs.h.  */
17681 _ACEOF
17682 cat confdefs.h >>conftest.$ac_ext
17683 cat >>conftest.$ac_ext <<_ACEOF
17684 /* end confdefs.h.  */
17685 $ac_includes_default
17686 #include <sys/acl.h>
17687 _ACEOF
17688 rm -f conftest.$ac_objext
17689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17690   (eval $ac_compile) 2>&5
17691   ac_status=$?
17692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17693   (exit $ac_status); } &&
17694          { ac_try='test -s conftest.$ac_objext'
17695   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17696   (eval $ac_try) 2>&5
17697   ac_status=$?
17698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17699   (exit $ac_status); }; }; then
17700   ac_header_compiler=yes
17701 else
17702   echo "$as_me: failed program was:" >&5
17703 sed 's/^/| /' conftest.$ac_ext >&5
17704
17705 ac_header_compiler=no
17706 fi
17707 rm -f conftest.$ac_objext conftest.$ac_ext
17708 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17709 echo "${ECHO_T}$ac_header_compiler" >&6
17710
17711 # Is the header present?
17712 echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
17713 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6
17714 cat >conftest.$ac_ext <<_ACEOF
17715 #line $LINENO "configure"
17716 /* confdefs.h.  */
17717 _ACEOF
17718 cat confdefs.h >>conftest.$ac_ext
17719 cat >>conftest.$ac_ext <<_ACEOF
17720 /* end confdefs.h.  */
17721 #include <sys/acl.h>
17722 _ACEOF
17723 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17724   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17725   ac_status=$?
17726   grep -v '^ *+' conftest.er1 >conftest.err
17727   rm -f conftest.er1
17728   cat conftest.err >&5
17729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17730   (exit $ac_status); } >/dev/null; then
17731   if test -s conftest.err; then
17732     ac_cpp_err=$ac_c_preproc_warn_flag
17733   else
17734     ac_cpp_err=
17735   fi
17736 else
17737   ac_cpp_err=yes
17738 fi
17739 if test -z "$ac_cpp_err"; then
17740   ac_header_preproc=yes
17741 else
17742   echo "$as_me: failed program was:" >&5
17743 sed 's/^/| /' conftest.$ac_ext >&5
17744
17745   ac_header_preproc=no
17746 fi
17747 rm -f conftest.err conftest.$ac_ext
17748 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17749 echo "${ECHO_T}$ac_header_preproc" >&6
17750
17751 # So?  What about this header?
17752 case $ac_header_compiler:$ac_header_preproc in
17753   yes:no )
17754     { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
17755 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17756     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
17757 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
17758     (
17759       cat <<\_ASBOX
17760 ## ------------------------------------ ##
17761 ## Report this to bug-autoconf@gnu.org. ##
17762 ## ------------------------------------ ##
17763 _ASBOX
17764     ) |
17765       sed "s/^/$as_me: WARNING:     /" >&2
17766     ;;
17767   no:yes )
17768     { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
17769 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
17770     { echo "$as_me:$LINENO: WARNING: sys/acl.h: check for missing prerequisite headers?" >&5
17771 echo "$as_me: WARNING: sys/acl.h: check for missing prerequisite headers?" >&2;}
17772     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
17773 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
17774     (
17775       cat <<\_ASBOX
17776 ## ------------------------------------ ##
17777 ## Report this to bug-autoconf@gnu.org. ##
17778 ## ------------------------------------ ##
17779 _ASBOX
17780     ) |
17781       sed "s/^/$as_me: WARNING:     /" >&2
17782     ;;
17783 esac
17784 echo "$as_me:$LINENO: checking for sys/acl.h" >&5
17785 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
17786 if test "${ac_cv_header_sys_acl_h+set}" = set; then
17787   echo $ECHO_N "(cached) $ECHO_C" >&6
17788 else
17789   ac_cv_header_sys_acl_h=$ac_header_preproc
17790 fi
17791 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
17792 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
17793
17794 fi
17795
17796
17797 echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
17798 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6
17799 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
17800   echo $ECHO_N "(cached) $ECHO_C" >&6
17801 else
17802   ac_check_lib_save_LIBS=$LIBS
17803 LIBS="-lacl  $LIBS"
17804 cat >conftest.$ac_ext <<_ACEOF
17805 #line $LINENO "configure"
17806 /* confdefs.h.  */
17807 _ACEOF
17808 cat confdefs.h >>conftest.$ac_ext
17809 cat >>conftest.$ac_ext <<_ACEOF
17810 /* end confdefs.h.  */
17811
17812 /* Override any gcc2 internal prototype to avoid an error.  */
17813 #ifdef __cplusplus
17814 extern "C"
17815 #endif
17816 /* We use char because int might match the return type of a gcc2
17817    builtin and then its argument prototype would still apply.  */
17818 char acl_get_file ();
17819 int
17820 main ()
17821 {
17822 acl_get_file ();
17823   ;
17824   return 0;
17825 }
17826 _ACEOF
17827 rm -f conftest.$ac_objext conftest$ac_exeext
17828 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17829   (eval $ac_link) 2>&5
17830   ac_status=$?
17831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17832   (exit $ac_status); } &&
17833          { ac_try='test -s conftest$ac_exeext'
17834   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17835   (eval $ac_try) 2>&5
17836   ac_status=$?
17837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17838   (exit $ac_status); }; }; then
17839   ac_cv_lib_acl_acl_get_file=yes
17840 else
17841   echo "$as_me: failed program was:" >&5
17842 sed 's/^/| /' conftest.$ac_ext >&5
17843
17844 ac_cv_lib_acl_acl_get_file=no
17845 fi
17846 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17847 LIBS=$ac_check_lib_save_LIBS
17848 fi
17849 echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
17850 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6
17851 if test $ac_cv_lib_acl_acl_get_file = yes; then
17852   FDLIBS="-lacl $FDLIBS"
17853 fi
17854
17855 have_acl=no
17856 if test $ac_cv_lib_acl_acl_get_file = yes; then
17857    cat >>confdefs.h <<\_ACEOF
17858 #define HAVE_ACL 1
17859 _ACEOF
17860
17861    have_acl=yes
17862 fi
17863
17864 PTHREAD_LIB=""
17865 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
17866 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
17867 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
17868   echo $ECHO_N "(cached) $ECHO_C" >&6
17869 else
17870   ac_check_lib_save_LIBS=$LIBS
17871 LIBS="-lpthread  $LIBS"
17872 cat >conftest.$ac_ext <<_ACEOF
17873 #line $LINENO "configure"
17874 /* confdefs.h.  */
17875 _ACEOF
17876 cat confdefs.h >>conftest.$ac_ext
17877 cat >>conftest.$ac_ext <<_ACEOF
17878 /* end confdefs.h.  */
17879
17880 /* Override any gcc2 internal prototype to avoid an error.  */
17881 #ifdef __cplusplus
17882 extern "C"
17883 #endif
17884 /* We use char because int might match the return type of a gcc2
17885    builtin and then its argument prototype would still apply.  */
17886 char pthread_create ();
17887 int
17888 main ()
17889 {
17890 pthread_create ();
17891   ;
17892   return 0;
17893 }
17894 _ACEOF
17895 rm -f conftest.$ac_objext conftest$ac_exeext
17896 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17897   (eval $ac_link) 2>&5
17898   ac_status=$?
17899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17900   (exit $ac_status); } &&
17901          { ac_try='test -s conftest$ac_exeext'
17902   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17903   (eval $ac_try) 2>&5
17904   ac_status=$?
17905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17906   (exit $ac_status); }; }; then
17907   ac_cv_lib_pthread_pthread_create=yes
17908 else
17909   echo "$as_me: failed program was:" >&5
17910 sed 's/^/| /' conftest.$ac_ext >&5
17911
17912 ac_cv_lib_pthread_pthread_create=no
17913 fi
17914 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17915 LIBS=$ac_check_lib_save_LIBS
17916 fi
17917 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
17918 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
17919 if test $ac_cv_lib_pthread_pthread_create = yes; then
17920   PTHREAD_LIB="-lpthread"
17921 else
17922   echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
17923 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
17924 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
17925   echo $ECHO_N "(cached) $ECHO_C" >&6
17926 else
17927   ac_check_lib_save_LIBS=$LIBS
17928 LIBS="-lpthreads  $LIBS"
17929 cat >conftest.$ac_ext <<_ACEOF
17930 #line $LINENO "configure"
17931 /* confdefs.h.  */
17932 _ACEOF
17933 cat confdefs.h >>conftest.$ac_ext
17934 cat >>conftest.$ac_ext <<_ACEOF
17935 /* end confdefs.h.  */
17936
17937 /* Override any gcc2 internal prototype to avoid an error.  */
17938 #ifdef __cplusplus
17939 extern "C"
17940 #endif
17941 /* We use char because int might match the return type of a gcc2
17942    builtin and then its argument prototype would still apply.  */
17943 char pthread_create ();
17944 int
17945 main ()
17946 {
17947 pthread_create ();
17948   ;
17949   return 0;
17950 }
17951 _ACEOF
17952 rm -f conftest.$ac_objext conftest$ac_exeext
17953 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17954   (eval $ac_link) 2>&5
17955   ac_status=$?
17956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17957   (exit $ac_status); } &&
17958          { ac_try='test -s conftest$ac_exeext'
17959   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17960   (eval $ac_try) 2>&5
17961   ac_status=$?
17962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17963   (exit $ac_status); }; }; then
17964   ac_cv_lib_pthreads_pthread_create=yes
17965 else
17966   echo "$as_me: failed program was:" >&5
17967 sed 's/^/| /' conftest.$ac_ext >&5
17968
17969 ac_cv_lib_pthreads_pthread_create=no
17970 fi
17971 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17972 LIBS=$ac_check_lib_save_LIBS
17973 fi
17974 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
17975 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
17976 if test $ac_cv_lib_pthreads_pthread_create = yes; then
17977   PTHREAD_LIB="-lpthreads"
17978 else
17979   echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
17980 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
17981 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
17982   echo $ECHO_N "(cached) $ECHO_C" >&6
17983 else
17984   ac_check_lib_save_LIBS=$LIBS
17985 LIBS="-lc_r  $LIBS"
17986 cat >conftest.$ac_ext <<_ACEOF
17987 #line $LINENO "configure"
17988 /* confdefs.h.  */
17989 _ACEOF
17990 cat confdefs.h >>conftest.$ac_ext
17991 cat >>conftest.$ac_ext <<_ACEOF
17992 /* end confdefs.h.  */
17993
17994 /* Override any gcc2 internal prototype to avoid an error.  */
17995 #ifdef __cplusplus
17996 extern "C"
17997 #endif
17998 /* We use char because int might match the return type of a gcc2
17999    builtin and then its argument prototype would still apply.  */
18000 char pthread_create ();
18001 int
18002 main ()
18003 {
18004 pthread_create ();
18005   ;
18006   return 0;
18007 }
18008 _ACEOF
18009 rm -f conftest.$ac_objext conftest$ac_exeext
18010 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18011   (eval $ac_link) 2>&5
18012   ac_status=$?
18013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18014   (exit $ac_status); } &&
18015          { ac_try='test -s conftest$ac_exeext'
18016   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18017   (eval $ac_try) 2>&5
18018   ac_status=$?
18019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18020   (exit $ac_status); }; }; then
18021   ac_cv_lib_c_r_pthread_create=yes
18022 else
18023   echo "$as_me: failed program was:" >&5
18024 sed 's/^/| /' conftest.$ac_ext >&5
18025
18026 ac_cv_lib_c_r_pthread_create=no
18027 fi
18028 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18029 LIBS=$ac_check_lib_save_LIBS
18030 fi
18031 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
18032 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
18033 if test $ac_cv_lib_c_r_pthread_create = yes; then
18034   PTHREAD_LIB="-lc_r"
18035 else
18036   echo "$as_me:$LINENO: checking for pthread_create" >&5
18037 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6
18038 if test "${ac_cv_func_pthread_create+set}" = set; then
18039   echo $ECHO_N "(cached) $ECHO_C" >&6
18040 else
18041   cat >conftest.$ac_ext <<_ACEOF
18042 #line $LINENO "configure"
18043 /* confdefs.h.  */
18044 _ACEOF
18045 cat confdefs.h >>conftest.$ac_ext
18046 cat >>conftest.$ac_ext <<_ACEOF
18047 /* end confdefs.h.  */
18048 /* System header to define __stub macros and hopefully few prototypes,
18049     which can conflict with char pthread_create (); below.
18050     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18051     <limits.h> exists even on freestanding compilers.  */
18052 #ifdef __STDC__
18053 # include <limits.h>
18054 #else
18055 # include <assert.h>
18056 #endif
18057 /* Override any gcc2 internal prototype to avoid an error.  */
18058 #ifdef __cplusplus
18059 extern "C"
18060 {
18061 #endif
18062 /* We use char because int might match the return type of a gcc2
18063    builtin and then its argument prototype would still apply.  */
18064 char pthread_create ();
18065 /* The GNU C library defines this for functions which it implements
18066     to always fail with ENOSYS.  Some functions are actually named
18067     something starting with __ and the normal name is an alias.  */
18068 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
18069 choke me
18070 #else
18071 char (*f) () = pthread_create;
18072 #endif
18073 #ifdef __cplusplus
18074 }
18075 #endif
18076
18077 int
18078 main ()
18079 {
18080 return f != pthread_create;
18081   ;
18082   return 0;
18083 }
18084 _ACEOF
18085 rm -f conftest.$ac_objext conftest$ac_exeext
18086 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18087   (eval $ac_link) 2>&5
18088   ac_status=$?
18089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18090   (exit $ac_status); } &&
18091          { ac_try='test -s conftest$ac_exeext'
18092   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18093   (eval $ac_try) 2>&5
18094   ac_status=$?
18095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18096   (exit $ac_status); }; }; then
18097   ac_cv_func_pthread_create=yes
18098 else
18099   echo "$as_me: failed program was:" >&5
18100 sed 's/^/| /' conftest.$ac_ext >&5
18101
18102 ac_cv_func_pthread_create=no
18103 fi
18104 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18105 fi
18106 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
18107 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6
18108
18109
18110 fi
18111
18112
18113 fi
18114
18115
18116 fi
18117
18118
18119
18120 cat >>confdefs.h <<\_ACEOF
18121 #define FDLIBS 1
18122 _ACEOF
18123
18124
18125
18126 CFLAGS=${CFLAGS--O}
18127 LDFLAGS=${LDFLAGS--O}
18128 DB_LIBS="${SQL_LFLAGS}"
18129
18130 CPPFLAGS="$CPPFLAGS"
18131
18132
18133
18134
18135
18136
18137
18138
18139
18140
18141
18142
18143
18144
18145 OBJLIST=
18146
18147
18148 lld="lld"
18149 llu="llu"
18150
18151 WCFLAGS=
18152 WLDFLAGS=
18153
18154 #
18155 # Finally we set appropriate distribution specific
18156 #  variables and defaults
18157 #
18158 # PFILES are platform specific files
18159 PFILES="platforms/Makefile"
18160 PSCMD="ps -e"
18161 WIN32=
18162 MACOSX=
18163 hostname=`uname -n | cut -d '.' -f 1`
18164 case "$DISTNAME" in
18165 aix)
18166         DISTVER=`uname -r`
18167         PSCMD="ps -e -o pid,comm"
18168         PFILES="${PFILES} \
18169            platforms/aix/Makefile"
18170         TAPEDRIVE="/dev/rmt0.1"
18171   ;;
18172 alpha)
18173         DISTVER=`uname -r`
18174         PTHREAD_LIB="-lpthread -lexc"
18175         if test "${CC}" = "gcc" ; then
18176            lld="lld"
18177            llu="llu"
18178         else
18179            lld="ld"
18180            llu="lu"
18181         fi
18182         TAPEDRIVE="/dev/nrmt0"
18183   ;;
18184 bsdi)
18185         DISTVER=`uname -a |awk '{print $3}'`
18186         TAPEDRIVE="/dev/nrmt0"
18187         PTHREAD_LIB="-pthread"
18188         CFLAGS="${CFLAGS} -pthread"
18189         PSCMD="ps -x -o pid,command"
18190         lld="qd"
18191         llu="qu"
18192         PFILES="${PFILES} \
18193             platforms/bsdi/Makefile \
18194             platforms/bsdi/bacula-fd \
18195             platforms/bsdi/bacula-sd \
18196             platforms/bsdi/bacula-dir"
18197         largefile_support="yes"
18198   ;;
18199 cygwin)
18200         DISTVER=`uname -a |awk '{print $3}'`
18201         TAPEDRIVE="/dev/nrst0"
18202         WIN32=win32
18203         WCFLAGS="-mwindows"
18204         WLDFLAGS="-mwindows"
18205   ;;
18206 darwin)
18207         DISTVER=`uname -r`
18208         TAPEDRIVE="/dev/nst0"
18209         PSCMD="ps -e -o pid,command"
18210         MACOSX=macosx
18211         PFILES="${PFILES} \
18212            platforms/darwin/Makefile"
18213   ;;
18214 debian)
18215         DISTVER=`cat /etc/debian_version`
18216         TAPEDRIVE="/dev/nrst0"
18217         PSCMD="ps -e -o pid,command"
18218   ;;
18219 freebsd)
18220         DISTVER=`uname -a |awk '{print $3}'`
18221         VER=`echo $DISTVER | cut -c 1`
18222         if test x$VER = x4 ; then
18223            PTHREAD_LIB="-pthread"
18224            CFLAGS="${CFLAGS} -pthread"
18225         fi
18226         lld="qd"
18227         llu="qu"
18228         TAPEDRIVE="/dev/nrsa0"
18229         PSCMD="ps -x -o pid,command"
18230         PFILES="${PFILES} \
18231             platforms/freebsd/Makefile \
18232             platforms/freebsd/bacula-fd \
18233             platforms/freebsd/bacula-sd \
18234             platforms/freebsd/bacula-dir"
18235         largefile_support="yes"
18236   ;;
18237 hpux)
18238         PSCMD="UNIX95=1 ps -e -o pid,comm"
18239         CFLAGS="$(CFLAGS) -D_XOPEN_SOURCE_EXTENDED=1"
18240         DISTVER=`uname -r`
18241         TAPEDRIVE="/dev/rmt/0hnb"
18242   ;;
18243 irix)
18244         DISTVER=`uname -r`
18245         TAPEDRIVE="/dev/rmt/0cbn"
18246         PSCMD="ps -e -o pid,comm"
18247         PFILES="${PFILES} \
18248             platforms/irix/Makefile \
18249             platforms/irix/bacula-fd \
18250             platforms/irix/bacula-sd \
18251             platforms/irix/bacula-dir"
18252   ;;
18253 netbsd)
18254         DISTVER=`uname -a |awk '{print $3}'`
18255         lld="qd"
18256         llu="qu"
18257         TAPEDRIVE="/dev/nrst0"
18258         PSCMD="ps -a -o pid,command"
18259         PTHREAD_LIB="-pthread"
18260         CFLAGS="${CFLAGS} -pthread"
18261   ;;
18262 openbsd)
18263         DISTVER=`uname -a |awk '{print $3}'`
18264         lld="qd"
18265         llu="qu"
18266         TAPEDRIVE="/dev/nrst0"
18267         PSCMD="ps -a -o pid,command"
18268         PTHREAD_LIB="-pthread"
18269         CFLAGS="${CFLAGS} -pthread"
18270         PFILES="${PFILES} \
18271             platforms/openbsd/Makefile \
18272             platforms/openbsd/bacula-fd \
18273             platforms/openbsd/bacula-sd \
18274             platforms/openbsd/bacula-dir"
18275   ;;
18276 redhat)
18277         if test `cat /etc/redhat-release | grep release |\
18278                    cut -f 3 -d ' '`x = "Enterprise"x ; then
18279            DISTVER="Enterprise "`cat /etc/redhat-release | grep release |\
18280                     cut -f 6 -d ' '`
18281         else
18282             DISTVER=`cat /etc/redhat-release | grep release |\
18283                      cut -f 5 -d ' '`
18284         fi
18285         TAPEDRIVE="/dev/nst0"
18286         PSCMD="ps -e -o pid,command"
18287         PFILES="${PFILES} \
18288             platforms/redhat/Makefile \
18289             platforms/redhat/bacula-fd \
18290             platforms/redhat/bacula-sd \
18291             platforms/redhat/bacula-dir \
18292             platforms/redhat/bacula.spec \
18293             "
18294         hostname=`hostname -s`
18295   ;;
18296 mandrake)
18297         DISTVER=`cat /etc/mandrake-release | grep release |\
18298            cut -f 5 -d ' '`
18299         TAPEDRIVE="/dev/nst0"
18300         PSCMD="ps -e -o pid,command"
18301         PFILES="${PFILES} \
18302             platforms/mandrake/Makefile \
18303             platforms/mandrake/bacula-fd \
18304             platforms/mandrake/bacula-sd \
18305             platforms/mandrake/bacula-dir \
18306             platforms/mandrake/bacula.spec \
18307             "
18308   ;;
18309 gentoo)
18310         DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
18311         TAPEDRIVE="/dev/nst0"
18312         PSCMD="ps -e -o pid,command"
18313         PFILES="${PFILES} \
18314             platforms/gentoo/Makefile \
18315             platforms/gentoo/bacula-fd \
18316             platforms/gentoo/bacula-sd \
18317             platforms/gentoo/bacula-dir"
18318   ;;
18319 slackware)
18320         DISTVER=`cat /etc/slackware-version`
18321         TAPEDRIVE="/dev/nst0"
18322         PSCMD="ps -e -o pid,command"
18323         PFILES="${PFILES} \
18324             platforms/slackware/Makefile \
18325             platforms/slackware/rc.bacula-fd \
18326             platforms/slackware/rc.bacula-sd \
18327             platforms/slackware/rc.bacula-dir\
18328             platforms/slackware/functions.bacula"
18329   ;;
18330 solaris)
18331         DISTVER=`uname -r`
18332         TAPEDRIVE="/dev/rmt/0cbn"
18333         PSCMD="ps -e -o pid,comm"
18334         PFILES="${PFILES} \
18335             platforms/solaris/Makefile \
18336             platforms/solaris/bacula-fd \
18337             platforms/solaris/bacula-sd \
18338             platforms/solaris/bacula-dir"
18339         if test x$DISTVER = x5.6 ; then
18340             cat >>confdefs.h <<\_ACEOF
18341 #define HAVE_OLD_SOCKOPT 1
18342 _ACEOF
18343
18344         fi
18345   ;;
18346 suse)
18347         DISTVER=`cat /etc/SuSE-release |grep VERSION|\
18348             cut -f 3 -d ' '`
18349         TAPEDRIVE="/dev/nst0"
18350         PSCMD="ps -e -o pid,command"
18351         PFILES="${PFILES} \
18352             platforms/suse/Makefile \
18353             platforms/suse/bacula-fd \
18354             platforms/suse/bacula-sd \
18355             platforms/suse/bacula-dir \
18356             platforms/suse/bacula \
18357             platforms/suse/bacula.spec"
18358   ;;
18359 suse5)
18360         DISTNAME=suse
18361         DISTVER=5.x
18362         TAPEDRIVE="/dev/nst0"
18363         PSCMD="ps -e -o pid,command"
18364         PFILES="${PFILES} \
18365             platforms/suse/Makefile \
18366             platforms/suse/bacula-fd \
18367             platforms/suse/bacula-sd \
18368             platforms/suse/bacula-dir"
18369   ;;
18370 unknown)
18371         DISTVER=unknown
18372         TAPEDRIVE="/dev/nst0"
18373   ;;
18374 *)
18375   echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
18376   ;;
18377 esac
18378
18379
18380
18381 LIBS="$PTHREAD_LIB $LIBS"
18382
18383 cat >>confdefs.h <<_ACEOF
18384 #define lld "$lld"
18385 _ACEOF
18386
18387 cat >>confdefs.h <<_ACEOF
18388 #define llu "$llu"
18389 _ACEOF
18390
18391
18392
18393
18394
18395
18396
18397
18398 MCOMMON=./autoconf/Make.common
18399
18400
18401 if test "x${subsysdir}" = "x${sbindir}" ; then
18402    echo " "
18403    echo " "
18404    echo "You have set both --sbindir and --with-subsys-dir"
18405    echo "  equal to: ${subsysdir} "
18406    echo "This is not permitted. Please reconfigure."
18407    echo " "
18408    echo "Aborting configuration ..."
18409    echo " "
18410    echo " "
18411    exit 1
18412 fi
18413
18414                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 ac_config_files="$ac_config_files autoconf/Make.common Makefile rescue/Makefile rescue/linux/Makefile rescue/freebsd/Makefile rescue/solaris/Makefile scripts/startmysql scripts/stopmysql scripts/btraceback scripts/startit scripts/stopit scripts/bconsole scripts/gconsole scripts/bacula scripts/devel_bacula scripts/fd scripts/Makefile scripts/logrotate scripts/bacula.desktop.gnome1 scripts/bacula.desktop.gnome2 scripts/bacula.desktop.gnome1.consolehelper scripts/bacula.desktop.gnome2.consolehelper scripts/bacula.desktop.gnome1.xsu scripts/bacula.desktop.gnome2.xsu scripts/gnome-console.console_apps scripts/mtx-changer doc/Makefile src/Makefile src/host.h src/console/Makefile src/console/bconsole.conf src/gnome-console/Makefile src/gnome-console/gnome-console.conf src/gnome2-console/Makefile src/gnome2-console/gnome-console.conf src/wx-console/Makefile src/wx-console/wx-console.conf src/dird/Makefile src/dird/bacula-dir.conf src/lib/Makefile src/stored/Makefile src/stored/bacula-sd.conf src/filed/Makefile src/filed/bacula-fd.conf src/filed/win32/Makefile src/cats/Makefile src/cats/make_catalog_backup src/cats/delete_catalog_backup src/cats/create_postgresql_database src/cats/update_postgresql_tables src/cats/make_postgresql_tables src/cats/grant_postgresql_privileges src/cats/drop_postgresql_tables src/cats/drop_postgresql_database src/cats/create_mysql_database src/cats/update_mysql_tables src/cats/make_mysql_tables src/cats/grant_mysql_privileges src/cats/drop_mysql_tables src/cats/drop_mysql_database src/cats/create_sqlite_database src/cats/update_sqlite_tables src/cats/make_sqlite_tables src/cats/grant_sqlite_privileges src/cats/drop_sqlite_tables src/cats/drop_sqlite_database src/cats/sqlite src/cats/mysql src/cats/create_bdb_database src/cats/update_bdb_tables src/cats/make_bdb_tables src/cats/grant_bdb_privileges src/cats/drop_bdb_tables src/cats/drop_bdb_database src/cats/create_bacula_database src/cats/update_bacula_tables src/cats/grant_bacula_privileges src/cats/make_bacula_tables src/cats/drop_bacula_tables src/cats/drop_bacula_database src/findlib/Makefile src/tools/Makefile src/win32/winbacula.nsi src/win32/baculafd/bacula-fd.conf src/win32/Makefile src/win32/console/bconsole.conf src/win32/wx-console/wx-console.conf $PFILES"
18415           ac_config_commands="$ac_config_commands default"
18416 cat >confcache <<\_ACEOF
18417 # This file is a shell script that caches the results of configure
18418 # tests run on this system so they can be shared between configure
18419 # scripts and configure runs, see configure's option --config-cache.
18420 # It is not useful on other systems.  If it contains results you don't
18421 # want to keep, you may remove or edit it.
18422 #
18423 # config.status only pays attention to the cache file if you give it
18424 # the --recheck option to rerun configure.
18425 #
18426 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18427 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18428 # following values.
18429
18430 _ACEOF
18431
18432 # The following way of writing the cache mishandles newlines in values,
18433 # but we know of no workaround that is simple, portable, and efficient.
18434 # So, don't put newlines in cache variables' values.
18435 # Ultrix sh set writes to stderr and can't be redirected directly,
18436 # and sets the high bit in the cache file unless we assign to the vars.
18437 {
18438   (set) 2>&1 |
18439     case `(ac_space=' '; set | grep ac_space) 2>&1` in
18440     *ac_space=\ *)
18441       # `set' does not quote correctly, so add quotes (double-quote
18442       # substitution turns \\\\ into \\, and sed turns \\ into \).
18443       sed -n \
18444         "s/'/'\\\\''/g;
18445           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18446       ;;
18447     *)
18448       # `set' quotes correctly as required by POSIX, so do not add quotes.
18449       sed -n \
18450         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
18451       ;;
18452     esac;
18453 } |
18454   sed '
18455      t clear
18456      : clear
18457      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18458      t end
18459      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18460      : end' >>confcache
18461 if diff $cache_file confcache >/dev/null 2>&1; then :; else
18462   if test -w $cache_file; then
18463     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
18464     cat confcache >$cache_file
18465   else
18466     echo "not updating unwritable cache $cache_file"
18467   fi
18468 fi
18469 rm -f confcache
18470
18471 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18472 # Let make expand exec_prefix.
18473 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18474
18475 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18476 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18477 # trailing colons and then remove the whole line if VPATH becomes empty
18478 # (actually we leave an empty line to preserve line numbers).
18479 if test "x$srcdir" = x.; then
18480   ac_vpsub='/^[         ]*VPATH[        ]*=/{
18481 s/:*\$(srcdir):*/:/;
18482 s/:*\${srcdir}:*/:/;
18483 s/:*@srcdir@:*/:/;
18484 s/^\([^=]*=[    ]*\):*/\1/;
18485 s/:*$//;
18486 s/^[^=]*=[      ]*$//;
18487 }'
18488 fi
18489
18490 DEFS=-DHAVE_CONFIG_H
18491
18492 ac_libobjs=
18493 ac_ltlibobjs=
18494 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18495   # 1. Remove the extension, and $U if already installed.
18496   ac_i=`echo "$ac_i" |
18497          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
18498   # 2. Add them.
18499   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
18500   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
18501 done
18502 LIBOBJS=$ac_libobjs
18503
18504 LTLIBOBJS=$ac_ltlibobjs
18505
18506
18507
18508 : ${CONFIG_STATUS=./config.status}
18509 ac_clean_files_save=$ac_clean_files
18510 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18511 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
18512 echo "$as_me: creating $CONFIG_STATUS" >&6;}
18513 cat >$CONFIG_STATUS <<_ACEOF
18514 #! $SHELL
18515 # Generated by $as_me.
18516 # Run this file to recreate the current configuration.
18517 # Compiler output produced by configure, useful for debugging
18518 # configure, is in config.log if it exists.
18519
18520 debug=false
18521 ac_cs_recheck=false
18522 ac_cs_silent=false
18523 SHELL=\${CONFIG_SHELL-$SHELL}
18524 _ACEOF
18525
18526 cat >>$CONFIG_STATUS <<\_ACEOF
18527 ## --------------------- ##
18528 ## M4sh Initialization.  ##
18529 ## --------------------- ##
18530
18531 # Be Bourne compatible
18532 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18533   emulate sh
18534   NULLCMD=:
18535   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18536   # is contrary to our usage.  Disable this feature.
18537   alias -g '${1+"$@"}'='"$@"'
18538 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
18539   set -o posix
18540 fi
18541
18542 # Support unset when possible.
18543 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
18544   as_unset=unset
18545 else
18546   as_unset=false
18547 fi
18548
18549
18550 # Work around bugs in pre-3.0 UWIN ksh.
18551 $as_unset ENV MAIL MAILPATH
18552 PS1='$ '
18553 PS2='> '
18554 PS4='+ '
18555
18556 # NLS nuisances.
18557 for as_var in \
18558   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
18559   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
18560   LC_TELEPHONE LC_TIME
18561 do
18562   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
18563     eval $as_var=C; export $as_var
18564   else
18565     $as_unset $as_var
18566   fi
18567 done
18568
18569 # Required to use basename.
18570 if expr a : '\(a\)' >/dev/null 2>&1; then
18571   as_expr=expr
18572 else
18573   as_expr=false
18574 fi
18575
18576 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
18577   as_basename=basename
18578 else
18579   as_basename=false
18580 fi
18581
18582
18583 # Name of the executable.
18584 as_me=`$as_basename "$0" ||
18585 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18586          X"$0" : 'X\(//\)$' \| \
18587          X"$0" : 'X\(/\)$' \| \
18588          .     : '\(.\)' 2>/dev/null ||
18589 echo X/"$0" |
18590     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
18591           /^X\/\(\/\/\)$/{ s//\1/; q; }
18592           /^X\/\(\/\).*/{ s//\1/; q; }
18593           s/.*/./; q'`
18594
18595
18596 # PATH needs CR, and LINENO needs CR and PATH.
18597 # Avoid depending upon Character Ranges.
18598 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18599 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18600 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18601 as_cr_digits='0123456789'
18602 as_cr_alnum=$as_cr_Letters$as_cr_digits
18603
18604 # The user is always right.
18605 if test "${PATH_SEPARATOR+set}" != set; then
18606   echo "#! /bin/sh" >conf$$.sh
18607   echo  "exit 0"   >>conf$$.sh
18608   chmod +x conf$$.sh
18609   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
18610     PATH_SEPARATOR=';'
18611   else
18612     PATH_SEPARATOR=:
18613   fi
18614   rm -f conf$$.sh
18615 fi
18616
18617
18618   as_lineno_1=$LINENO
18619   as_lineno_2=$LINENO
18620   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
18621   test "x$as_lineno_1" != "x$as_lineno_2" &&
18622   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
18623   # Find who we are.  Look in the path if we contain no path at all
18624   # relative or not.
18625   case $0 in
18626     *[\\/]* ) as_myself=$0 ;;
18627     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18628 for as_dir in $PATH
18629 do
18630   IFS=$as_save_IFS
18631   test -z "$as_dir" && as_dir=.
18632   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18633 done
18634
18635        ;;
18636   esac
18637   # We did not find ourselves, most probably we were run as `sh COMMAND'
18638   # in which case we are not to be found in the path.
18639   if test "x$as_myself" = x; then
18640     as_myself=$0
18641   fi
18642   if test ! -f "$as_myself"; then
18643     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
18644 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
18645    { (exit 1); exit 1; }; }
18646   fi
18647   case $CONFIG_SHELL in
18648   '')
18649     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18650 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
18651 do
18652   IFS=$as_save_IFS
18653   test -z "$as_dir" && as_dir=.
18654   for as_base in sh bash ksh sh5; do
18655          case $as_dir in
18656          /*)
18657            if ("$as_dir/$as_base" -c '
18658   as_lineno_1=$LINENO
18659   as_lineno_2=$LINENO
18660   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
18661   test "x$as_lineno_1" != "x$as_lineno_2" &&
18662   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
18663              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
18664              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
18665              CONFIG_SHELL=$as_dir/$as_base
18666              export CONFIG_SHELL
18667              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
18668            fi;;
18669          esac
18670        done
18671 done
18672 ;;
18673   esac
18674
18675   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
18676   # uniformly replaced by the line number.  The first 'sed' inserts a
18677   # line-number line before each line; the second 'sed' does the real
18678   # work.  The second script uses 'N' to pair each line-number line
18679   # with the numbered line, and appends trailing '-' during
18680   # substitution so that $LINENO is not a special case at line end.
18681   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
18682   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
18683   sed '=' <$as_myself |
18684     sed '
18685       N
18686       s,$,-,
18687       : loop
18688       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
18689       t loop
18690       s,-$,,
18691       s,^['$as_cr_digits']*\n,,
18692     ' >$as_me.lineno &&
18693   chmod +x $as_me.lineno ||
18694     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
18695 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
18696    { (exit 1); exit 1; }; }
18697
18698   # Don't try to exec as it changes $[0], causing all sort of problems
18699   # (the dirname of $[0] is not the place where we might find the
18700   # original and so on.  Autoconf is especially sensible to this).
18701   . ./$as_me.lineno
18702   # Exit status is that of the last command.
18703   exit
18704 }
18705
18706
18707 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
18708   *c*,-n*) ECHO_N= ECHO_C='
18709 ' ECHO_T='      ' ;;
18710   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
18711   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
18712 esac
18713
18714 if expr a : '\(a\)' >/dev/null 2>&1; then
18715   as_expr=expr
18716 else
18717   as_expr=false
18718 fi
18719
18720 rm -f conf$$ conf$$.exe conf$$.file
18721 echo >conf$$.file
18722 if ln -s conf$$.file conf$$ 2>/dev/null; then
18723   # We could just check for DJGPP; but this test a) works b) is more generic
18724   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
18725   if test -f conf$$.exe; then
18726     # Don't use ln at all; we don't have any links
18727     as_ln_s='cp -p'
18728   else
18729     as_ln_s='ln -s'
18730   fi
18731 elif ln conf$$.file conf$$ 2>/dev/null; then
18732   as_ln_s=ln
18733 else
18734   as_ln_s='cp -p'
18735 fi
18736 rm -f conf$$ conf$$.exe conf$$.file
18737
18738 if mkdir -p . 2>/dev/null; then
18739   as_mkdir_p=:
18740 else
18741   as_mkdir_p=false
18742 fi
18743
18744 as_executable_p="test -f"
18745
18746 # Sed expression to map a string onto a valid CPP name.
18747 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
18748
18749 # Sed expression to map a string onto a valid variable name.
18750 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
18751
18752
18753 # IFS
18754 # We need space, tab and new line, in precisely that order.
18755 as_nl='
18756 '
18757 IFS="   $as_nl"
18758
18759 # CDPATH.
18760 $as_unset CDPATH
18761
18762 exec 6>&1
18763
18764 # Open the log real soon, to keep \$[0] and so on meaningful, and to
18765 # report actual input values of CONFIG_FILES etc. instead of their
18766 # values after options handling.  Logging --version etc. is OK.
18767 exec 5>>config.log
18768 {
18769   echo
18770   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18771 ## Running $as_me. ##
18772 _ASBOX
18773 } >&5
18774 cat >&5 <<_CSEOF
18775
18776 This file was extended by $as_me, which was
18777 generated by GNU Autoconf 2.57.  Invocation command line was
18778
18779   CONFIG_FILES    = $CONFIG_FILES
18780   CONFIG_HEADERS  = $CONFIG_HEADERS
18781   CONFIG_LINKS    = $CONFIG_LINKS
18782   CONFIG_COMMANDS = $CONFIG_COMMANDS
18783   $ $0 $@
18784
18785 _CSEOF
18786 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
18787 echo >&5
18788 _ACEOF
18789
18790 # Files that config.status was made for.
18791 if test -n "$ac_config_files"; then
18792   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
18793 fi
18794
18795 if test -n "$ac_config_headers"; then
18796   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
18797 fi
18798
18799 if test -n "$ac_config_links"; then
18800   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
18801 fi
18802
18803 if test -n "$ac_config_commands"; then
18804   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
18805 fi
18806
18807 cat >>$CONFIG_STATUS <<\_ACEOF
18808
18809 ac_cs_usage="\
18810 \`$as_me' instantiates files from templates according to the
18811 current configuration.
18812
18813 Usage: $0 [OPTIONS] [FILE]...
18814
18815   -h, --help       print this help, then exit
18816   -V, --version    print version number, then exit
18817   -q, --quiet      do not print progress messages
18818   -d, --debug      don't remove temporary files
18819       --recheck    update $as_me by reconfiguring in the same conditions
18820   --file=FILE[:TEMPLATE]
18821                    instantiate the configuration file FILE
18822   --header=FILE[:TEMPLATE]
18823                    instantiate the configuration header FILE
18824
18825 Configuration files:
18826 $config_files
18827
18828 Configuration headers:
18829 $config_headers
18830
18831 Configuration commands:
18832 $config_commands
18833
18834 Report bugs to <bug-autoconf@gnu.org>."
18835 _ACEOF
18836
18837 cat >>$CONFIG_STATUS <<_ACEOF
18838 ac_cs_version="\\
18839 config.status
18840 configured by $0, generated by GNU Autoconf 2.57,
18841   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
18842
18843 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
18844 Free Software Foundation, Inc.
18845 This config.status script is free software; the Free Software Foundation
18846 gives unlimited permission to copy, distribute and modify it."
18847 srcdir=$srcdir
18848 INSTALL="$INSTALL"
18849 _ACEOF
18850
18851 cat >>$CONFIG_STATUS <<\_ACEOF
18852 # If no file are specified by the user, then we need to provide default
18853 # value.  By we need to know if files were specified by the user.
18854 ac_need_defaults=:
18855 while test $# != 0
18856 do
18857   case $1 in
18858   --*=*)
18859     ac_option=`expr "x$1" : 'x\([^=]*\)='`
18860     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
18861     ac_shift=:
18862     ;;
18863   -*)
18864     ac_option=$1
18865     ac_optarg=$2
18866     ac_shift=shift
18867     ;;
18868   *) # This is not an option, so the user has probably given explicit
18869      # arguments.
18870      ac_option=$1
18871      ac_need_defaults=false;;
18872   esac
18873
18874   case $ac_option in
18875   # Handling of the options.
18876 _ACEOF
18877 cat >>$CONFIG_STATUS <<\_ACEOF
18878   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18879     ac_cs_recheck=: ;;
18880   --version | --vers* | -V )
18881     echo "$ac_cs_version"; exit 0 ;;
18882   --he | --h)
18883     # Conflict between --help and --header
18884     { { echo "$as_me:$LINENO: error: ambiguous option: $1
18885 Try \`$0 --help' for more information." >&5
18886 echo "$as_me: error: ambiguous option: $1
18887 Try \`$0 --help' for more information." >&2;}
18888    { (exit 1); exit 1; }; };;
18889   --help | --hel | -h )
18890     echo "$ac_cs_usage"; exit 0 ;;
18891   --debug | --d* | -d )
18892     debug=: ;;
18893   --file | --fil | --fi | --f )
18894     $ac_shift
18895     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
18896     ac_need_defaults=false;;
18897   --header | --heade | --head | --hea )
18898     $ac_shift
18899     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
18900     ac_need_defaults=false;;
18901   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18902   | -silent | --silent | --silen | --sile | --sil | --si | --s)
18903     ac_cs_silent=: ;;
18904
18905   # This is an error.
18906   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
18907 Try \`$0 --help' for more information." >&5
18908 echo "$as_me: error: unrecognized option: $1
18909 Try \`$0 --help' for more information." >&2;}
18910    { (exit 1); exit 1; }; } ;;
18911
18912   *) ac_config_targets="$ac_config_targets $1" ;;
18913
18914   esac
18915   shift
18916 done
18917
18918 ac_configure_extra_args=
18919
18920 if $ac_cs_silent; then
18921   exec 6>/dev/null
18922   ac_configure_extra_args="$ac_configure_extra_args --silent"
18923 fi
18924
18925 _ACEOF
18926 cat >>$CONFIG_STATUS <<_ACEOF
18927 if \$ac_cs_recheck; then
18928   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
18929   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18930 fi
18931
18932 _ACEOF
18933
18934
18935
18936
18937
18938 cat >>$CONFIG_STATUS <<\_ACEOF
18939 for ac_config_target in $ac_config_targets
18940 do
18941   case "$ac_config_target" in
18942   # Handling of arguments.
18943   "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
18944   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18945   "rescue/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/Makefile" ;;
18946   "rescue/linux/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/linux/Makefile" ;;
18947   "rescue/freebsd/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/freebsd/Makefile" ;;
18948   "rescue/solaris/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/solaris/Makefile" ;;
18949   "scripts/startmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
18950   "scripts/stopmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
18951   "scripts/btraceback" ) CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
18952   "scripts/startit" ) CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
18953   "scripts/stopit" ) CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
18954   "scripts/bconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
18955   "scripts/gconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
18956   "scripts/bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
18957   "scripts/devel_bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
18958   "scripts/fd" ) CONFIG_FILES="$CONFIG_FILES scripts/fd" ;;
18959   "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
18960   "scripts/logrotate" ) CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
18961   "scripts/bacula.desktop.gnome1" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
18962   "scripts/bacula.desktop.gnome2" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
18963   "scripts/bacula.desktop.gnome1.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
18964   "scripts/bacula.desktop.gnome2.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
18965   "scripts/bacula.desktop.gnome1.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
18966   "scripts/bacula.desktop.gnome2.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
18967   "scripts/gnome-console.console_apps" ) CONFIG_FILES="$CONFIG_FILES scripts/gnome-console.console_apps" ;;
18968   "scripts/mtx-changer" ) CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
18969   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
18970   "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
18971   "src/host.h" ) CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
18972   "src/console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
18973   "src/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
18974   "src/gnome-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/Makefile" ;;
18975   "src/gnome-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/gnome-console.conf" ;;
18976   "src/gnome2-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
18977   "src/gnome2-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/gnome-console.conf" ;;
18978   "src/wx-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
18979   "src/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/wx-console.conf" ;;
18980   "src/dird/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
18981   "src/dird/bacula-dir.conf" ) CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
18982   "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
18983   "src/stored/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
18984   "src/stored/bacula-sd.conf" ) CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
18985   "src/filed/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
18986   "src/filed/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
18987   "src/filed/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/win32/Makefile" ;;
18988   "src/cats/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
18989   "src/cats/make_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
18990   "src/cats/delete_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
18991   "src/cats/create_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
18992   "src/cats/update_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
18993   "src/cats/make_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
18994   "src/cats/grant_postgresql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
18995   "src/cats/drop_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
18996   "src/cats/drop_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
18997   "src/cats/create_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
18998   "src/cats/update_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
18999   "src/cats/make_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
19000   "src/cats/grant_mysql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
19001   "src/cats/drop_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
19002   "src/cats/drop_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
19003   "src/cats/create_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
19004   "src/cats/update_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
19005   "src/cats/make_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
19006   "src/cats/grant_sqlite_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
19007   "src/cats/drop_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
19008   "src/cats/drop_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
19009   "src/cats/sqlite" ) CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
19010   "src/cats/mysql" ) CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
19011   "src/cats/create_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
19012   "src/cats/update_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
19013   "src/cats/make_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
19014   "src/cats/grant_bdb_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
19015   "src/cats/drop_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
19016   "src/cats/drop_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
19017   "src/cats/create_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
19018   "src/cats/update_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
19019   "src/cats/grant_bacula_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
19020   "src/cats/make_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
19021   "src/cats/drop_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
19022   "src/cats/drop_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
19023   "src/findlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
19024   "src/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
19025   "src/win32/winbacula.nsi" ) CONFIG_FILES="$CONFIG_FILES src/win32/winbacula.nsi" ;;
19026   "src/win32/baculafd/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/baculafd/bacula-fd.conf" ;;
19027   "src/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/win32/Makefile" ;;
19028   "src/win32/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/console/bconsole.conf" ;;
19029   "src/win32/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/wx-console/wx-console.conf" ;;
19030   "$PFILES" ) CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
19031   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
19032   "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
19033   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
19034 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
19035    { (exit 1); exit 1; }; };;
19036   esac
19037 done
19038
19039 # If the user did not use the arguments to specify the items to instantiate,
19040 # then the envvar interface is used.  Set only those that are not.
19041 # We use the long form for the default assignment because of an extremely
19042 # bizarre bug on SunOS 4.1.3.
19043 if $ac_need_defaults; then
19044   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19045   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19046   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19047 fi
19048
19049 # Have a temporary directory for convenience.  Make it in the build tree
19050 # simply because there is no reason to put it here, and in addition,
19051 # creating and moving files from /tmp can sometimes cause problems.
19052 # Create a temporary directory, and hook for its removal unless debugging.
19053 $debug ||
19054 {
19055   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
19056   trap '{ (exit 1); exit 1; }' 1 2 13 15
19057 }
19058
19059 # Create a (secure) tmp directory for tmp files.
19060
19061 {
19062   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
19063   test -n "$tmp" && test -d "$tmp"
19064 }  ||
19065 {
19066   tmp=./confstat$$-$RANDOM
19067   (umask 077 && mkdir $tmp)
19068 } ||
19069 {
19070    echo "$me: cannot create a temporary directory in ." >&2
19071    { (exit 1); exit 1; }
19072 }
19073
19074 _ACEOF
19075
19076 cat >>$CONFIG_STATUS <<_ACEOF
19077
19078 #
19079 # CONFIG_FILES section.
19080 #
19081
19082 # No need to generate the scripts if there are no CONFIG_FILES.
19083 # This happens for instance when ./config.status config.h
19084 if test -n "\$CONFIG_FILES"; then
19085   # Protect against being on the right side of a sed subst in config.status.
19086   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
19087    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
19088 s,@SHELL@,$SHELL,;t t
19089 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
19090 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
19091 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
19092 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
19093 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
19094 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
19095 s,@exec_prefix@,$exec_prefix,;t t
19096 s,@prefix@,$prefix,;t t
19097 s,@program_transform_name@,$program_transform_name,;t t
19098 s,@bindir@,$bindir,;t t
19099 s,@sbindir@,$sbindir,;t t
19100 s,@libexecdir@,$libexecdir,;t t
19101 s,@datadir@,$datadir,;t t
19102 s,@sysconfdir@,$sysconfdir,;t t
19103 s,@sharedstatedir@,$sharedstatedir,;t t
19104 s,@localstatedir@,$localstatedir,;t t
19105 s,@libdir@,$libdir,;t t
19106 s,@includedir@,$includedir,;t t
19107 s,@oldincludedir@,$oldincludedir,;t t
19108 s,@infodir@,$infodir,;t t
19109 s,@mandir@,$mandir,;t t
19110 s,@build_alias@,$build_alias,;t t
19111 s,@host_alias@,$host_alias,;t t
19112 s,@target_alias@,$target_alias,;t t
19113 s,@DEFS@,$DEFS,;t t
19114 s,@ECHO_C@,$ECHO_C,;t t
19115 s,@ECHO_N@,$ECHO_N,;t t
19116 s,@ECHO_T@,$ECHO_T,;t t
19117 s,@LIBS@,$LIBS,;t t
19118 s,@BUILD_DIR@,$BUILD_DIR,;t t
19119 s,@TRUEPRG@,$TRUEPRG,;t t
19120 s,@FALSEPRG@,$FALSEPRG,;t t
19121 s,@VERSION@,$VERSION,;t t
19122 s,@DATE@,$DATE,;t t
19123 s,@LSMDATE@,$LSMDATE,;t t
19124 s,@CC@,$CC,;t t
19125 s,@CFLAGS@,$CFLAGS,;t t
19126 s,@LDFLAGS@,$LDFLAGS,;t t
19127 s,@CPPFLAGS@,$CPPFLAGS,;t t
19128 s,@ac_ct_CC@,$ac_ct_CC,;t t
19129 s,@EXEEXT@,$EXEEXT,;t t
19130 s,@OBJEXT@,$OBJEXT,;t t
19131 s,@CXX@,$CXX,;t t
19132 s,@CXXFLAGS@,$CXXFLAGS,;t t
19133 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
19134 s,@CPP@,$CPP,;t t
19135 s,@EGREP@,$EGREP,;t t
19136 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
19137 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
19138 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
19139 s,@RANLIB@,$RANLIB,;t t
19140 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
19141 s,@MV@,$MV,;t t
19142 s,@RM@,$RM,;t t
19143 s,@CP@,$CP,;t t
19144 s,@SED@,$SED,;t t
19145 s,@AWK@,$AWK,;t t
19146 s,@ECHO@,$ECHO,;t t
19147 s,@CMP@,$CMP,;t t
19148 s,@TBL@,$TBL,;t t
19149 s,@AR@,$AR,;t t
19150 s,@OPENSSL@,$OPENSSL,;t t
19151 s,@MTX@,$MTX,;t t
19152 s,@PKGCONFIG@,$PKGCONFIG,;t t
19153 s,@WXCONFIG@,$WXCONFIG,;t t
19154 s,@ARFLAGS@,$ARFLAGS,;t t
19155 s,@MAKE_SHELL@,$MAKE_SHELL,;t t
19156 s,@LOCAL_LIBS@,$LOCAL_LIBS,;t t
19157 s,@LOCAL_CFLAGS@,$LOCAL_CFLAGS,;t t
19158 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
19159 s,@LOCAL_DEFS@,$LOCAL_DEFS,;t t
19160 s,@build@,$build,;t t
19161 s,@build_cpu@,$build_cpu,;t t
19162 s,@build_vendor@,$build_vendor,;t t
19163 s,@build_os@,$build_os,;t t
19164 s,@host@,$host,;t t
19165 s,@host_cpu@,$host_cpu,;t t
19166 s,@host_vendor@,$host_vendor,;t t
19167 s,@host_os@,$host_os,;t t
19168 s,@HAVE_SUN_OS_TRUE@,$HAVE_SUN_OS_TRUE,;t t
19169 s,@HAVE_SUN_OS_FALSE@,$HAVE_SUN_OS_FALSE,;t t
19170 s,@HAVE_OSF1_OS_TRUE@,$HAVE_OSF1_OS_TRUE,;t t
19171 s,@HAVE_OSF1_OS_FALSE@,$HAVE_OSF1_OS_FALSE,;t t
19172 s,@HAVE_AIX_OS_TRUE@,$HAVE_AIX_OS_TRUE,;t t
19173 s,@HAVE_AIX_OS_FALSE@,$HAVE_AIX_OS_FALSE,;t t
19174 s,@HAVE_HPUX_OS_TRUE@,$HAVE_HPUX_OS_TRUE,;t t
19175 s,@HAVE_HPUX_OS_FALSE@,$HAVE_HPUX_OS_FALSE,;t t
19176 s,@HAVE_LINUX_OS_TRUE@,$HAVE_LINUX_OS_TRUE,;t t
19177 s,@HAVE_LINUX_OS_FALSE@,$HAVE_LINUX_OS_FALSE,;t t
19178 s,@HAVE_FREEBSD_OS_TRUE@,$HAVE_FREEBSD_OS_TRUE,;t t
19179 s,@HAVE_FREEBSD_OS_FALSE@,$HAVE_FREEBSD_OS_FALSE,;t t
19180 s,@HAVE_NETBSD_OS_TRUE@,$HAVE_NETBSD_OS_TRUE,;t t
19181 s,@HAVE_NETBSD_OS_FALSE@,$HAVE_NETBSD_OS_FALSE,;t t
19182 s,@HAVE_OPENBSD_OS_TRUE@,$HAVE_OPENBSD_OS_TRUE,;t t
19183 s,@HAVE_OPENBSD_OS_FALSE@,$HAVE_OPENBSD_OS_FALSE,;t t
19184 s,@HAVE_BSDI_OS_TRUE@,$HAVE_BSDI_OS_TRUE,;t t
19185 s,@HAVE_BSDI_OS_FALSE@,$HAVE_BSDI_OS_FALSE,;t t
19186 s,@HAVE_SGI_OS_TRUE@,$HAVE_SGI_OS_TRUE,;t t
19187 s,@HAVE_SGI_OS_FALSE@,$HAVE_SGI_OS_FALSE,;t t
19188 s,@HAVE_IRIX_OS_TRUE@,$HAVE_IRIX_OS_TRUE,;t t
19189 s,@HAVE_IRIX_OS_FALSE@,$HAVE_IRIX_OS_FALSE,;t t
19190 s,@HAVE_DARWIN_OS_TRUE@,$HAVE_DARWIN_OS_TRUE,;t t
19191 s,@HAVE_DARWIN_OS_FALSE@,$HAVE_DARWIN_OS_FALSE,;t t
19192 s,@INSIDE_GNOME_COMMON_TRUE@,$INSIDE_GNOME_COMMON_TRUE,;t t
19193 s,@INSIDE_GNOME_COMMON_FALSE@,$INSIDE_GNOME_COMMON_FALSE,;t t
19194 s,@MSGFMT@,$MSGFMT,;t t
19195 s,@GNOME_INCLUDEDIR@,$GNOME_INCLUDEDIR,;t t
19196 s,@GNOMEUI_LIBS@,$GNOMEUI_LIBS,;t t
19197 s,@GNOME_LIBDIR@,$GNOME_LIBDIR,;t t
19198 s,@GNOME_LIBS@,$GNOME_LIBS,;t t
19199 s,@GNOMEGNORBA_LIBS@,$GNOMEGNORBA_LIBS,;t t
19200 s,@GTKXMHTML_LIBS@,$GTKXMHTML_LIBS,;t t
19201 s,@ZVT_LIBS@,$ZVT_LIBS,;t t
19202 s,@GNOME_CONFIG@,$GNOME_CONFIG,;t t
19203 s,@ORBIT_CONFIG@,$ORBIT_CONFIG,;t t
19204 s,@ORBIT_IDL@,$ORBIT_IDL,;t t
19205 s,@HAVE_ORBIT_TRUE@,$HAVE_ORBIT_TRUE,;t t
19206 s,@HAVE_ORBIT_FALSE@,$HAVE_ORBIT_FALSE,;t t
19207 s,@ORBIT_CFLAGS@,$ORBIT_CFLAGS,;t t
19208 s,@ORBIT_LIBS@,$ORBIT_LIBS,;t t
19209 s,@HAVE_GNORBA_TRUE@,$HAVE_GNORBA_TRUE,;t t
19210 s,@HAVE_GNORBA_FALSE@,$HAVE_GNORBA_FALSE,;t t
19211 s,@GNORBA_CFLAGS@,$GNORBA_CFLAGS,;t t
19212 s,@GNORBA_LIBS@,$GNORBA_LIBS,;t t
19213 s,@GNOME_APPLETS_LIBS@,$GNOME_APPLETS_LIBS,;t t
19214 s,@GNOME_DOCKLETS_LIBS@,$GNOME_DOCKLETS_LIBS,;t t
19215 s,@GNOME_CAPPLET_LIBS@,$GNOME_CAPPLET_LIBS,;t t
19216 s,@GNOME_DIR@,$GNOME_DIR,;t t
19217 s,@WXCONS_CPPFLAGS@,$WXCONS_CPPFLAGS,;t t
19218 s,@WXCONS_LDFLAGS@,$WXCONS_LDFLAGS,;t t
19219 s,@WX_DIR@,$WX_DIR,;t t
19220 s,@TTOOL_LDFLAGS@,$TTOOL_LDFLAGS,;t t
19221 s,@STATIC_FD@,$STATIC_FD,;t t
19222 s,@STATIC_SD@,$STATIC_SD,;t t
19223 s,@STATIC_DIR@,$STATIC_DIR,;t t
19224 s,@STATIC_CONS@,$STATIC_CONS,;t t
19225 s,@STATIC_GNOME_CONS@,$STATIC_GNOME_CONS,;t t
19226 s,@STATIC_WX_CONS@,$STATIC_WX_CONS,;t t
19227 s,@ALL_DIRS@,$ALL_DIRS,;t t
19228 s,@CONS_INC@,$CONS_INC,;t t
19229 s,@CONS_OBJ@,$CONS_OBJ,;t t
19230 s,@CONS_SRC@,$CONS_SRC,;t t
19231 s,@CONS_LIBS@,$CONS_LIBS,;t t
19232 s,@CONS_LDFLAGS@,$CONS_LDFLAGS,;t t
19233 s,@READLINE_SRC@,$READLINE_SRC,;t t
19234 s,@working_dir@,$working_dir,;t t
19235 s,@scriptdir@,$scriptdir,;t t
19236 s,@dump_email@,$dump_email,;t t
19237 s,@job_email@,$job_email,;t t
19238 s,@smtp_host@,$smtp_host,;t t
19239 s,@piddir@,$piddir,;t t
19240 s,@subsysdir@,$subsysdir,;t t
19241 s,@baseport@,$baseport,;t t
19242 s,@dir_port@,$dir_port,;t t
19243 s,@fd_port@,$fd_port,;t t
19244 s,@sd_port@,$sd_port,;t t
19245 s,@dir_password@,$dir_password,;t t
19246 s,@fd_password@,$fd_password,;t t
19247 s,@sd_password@,$sd_password,;t t
19248 s,@dir_user@,$dir_user,;t t
19249 s,@dir_group@,$dir_group,;t t
19250 s,@sd_user@,$sd_user,;t t
19251 s,@sd_group@,$sd_group,;t t
19252 s,@fd_user@,$fd_user,;t t
19253 s,@fd_group@,$fd_group,;t t
19254 s,@SBINPERM@,$SBINPERM,;t t
19255 s,@SQL_LFLAGS@,$SQL_LFLAGS,;t t
19256 s,@SQL_INCLUDE@,$SQL_INCLUDE,;t t
19257 s,@SQL_BINDIR@,$SQL_BINDIR,;t t
19258 s,@cats@,$cats,;t t
19259 s,@DB_NAME@,$DB_NAME,;t t
19260 s,@GETCONF@,$GETCONF,;t t
19261 s,@ac_ct_GETCONF@,$ac_ct_GETCONF,;t t
19262 s,@X_CFLAGS@,$X_CFLAGS,;t t
19263 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
19264 s,@X_LIBS@,$X_LIBS,;t t
19265 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
19266 s,@LIBOBJS@,$LIBOBJS,;t t
19267 s,@ALLOCA@,$ALLOCA,;t t
19268 s,@FDLIBS@,$FDLIBS,;t t
19269 s,@DEBUG@,$DEBUG,;t t
19270 s,@DINCLUDE@,$DINCLUDE,;t t
19271 s,@DLIB@,$DLIB,;t t
19272 s,@DB_LIBS@,$DB_LIBS,;t t
19273 s,@WCFLAGS@,$WCFLAGS,;t t
19274 s,@WLDFLAGS@,$WLDFLAGS,;t t
19275 s,@OBJLIST@,$OBJLIST,;t t
19276 s,@hostname@,$hostname,;t t
19277 s,@TAPEDRIVE@,$TAPEDRIVE,;t t
19278 s,@PSCMD@,$PSCMD,;t t
19279 s,@WIN32@,$WIN32,;t t
19280 s,@MACOSX@,$MACOSX,;t t
19281 s,@DISTNAME@,$DISTNAME,;t t
19282 s,@DISTVER@,$DISTVER,;t t
19283 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
19284 /@MCOMMON@/r $MCOMMON
19285 s,@MCOMMON@,,;t t
19286 CEOF
19287
19288 _ACEOF
19289
19290   cat >>$CONFIG_STATUS <<\_ACEOF
19291   # Split the substitutions into bite-sized pieces for seds with
19292   # small command number limits, like on Digital OSF/1 and HP-UX.
19293   ac_max_sed_lines=48
19294   ac_sed_frag=1 # Number of current file.
19295   ac_beg=1 # First line for current file.
19296   ac_end=$ac_max_sed_lines # Line after last line for current file.
19297   ac_more_lines=:
19298   ac_sed_cmds=
19299   while $ac_more_lines; do
19300     if test $ac_beg -gt 1; then
19301       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19302     else
19303       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19304     fi
19305     if test ! -s $tmp/subs.frag; then
19306       ac_more_lines=false
19307     else
19308       # The purpose of the label and of the branching condition is to
19309       # speed up the sed processing (if there are no `@' at all, there
19310       # is no need to browse any of the substitutions).
19311       # These are the two extra sed commands mentioned above.
19312       (echo ':t
19313   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
19314       if test -z "$ac_sed_cmds"; then
19315         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
19316       else
19317         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
19318       fi
19319       ac_sed_frag=`expr $ac_sed_frag + 1`
19320       ac_beg=$ac_end
19321       ac_end=`expr $ac_end + $ac_max_sed_lines`
19322     fi
19323   done
19324   if test -z "$ac_sed_cmds"; then
19325     ac_sed_cmds=cat
19326   fi
19327 fi # test -n "$CONFIG_FILES"
19328
19329 _ACEOF
19330 cat >>$CONFIG_STATUS <<\_ACEOF
19331 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
19332   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19333   case $ac_file in
19334   - | *:- | *:-:* ) # input from stdin
19335         cat >$tmp/stdin
19336         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19337         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19338   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19339         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19340   * )   ac_file_in=$ac_file.in ;;
19341   esac
19342
19343   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
19344   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
19345 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19346          X"$ac_file" : 'X\(//\)[^/]' \| \
19347          X"$ac_file" : 'X\(//\)$' \| \
19348          X"$ac_file" : 'X\(/\)' \| \
19349          .     : '\(.\)' 2>/dev/null ||
19350 echo X"$ac_file" |
19351     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19352           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19353           /^X\(\/\/\)$/{ s//\1/; q; }
19354           /^X\(\/\).*/{ s//\1/; q; }
19355           s/.*/./; q'`
19356   { if $as_mkdir_p; then
19357     mkdir -p "$ac_dir"
19358   else
19359     as_dir="$ac_dir"
19360     as_dirs=
19361     while test ! -d "$as_dir"; do
19362       as_dirs="$as_dir $as_dirs"
19363       as_dir=`(dirname "$as_dir") 2>/dev/null ||
19364 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19365          X"$as_dir" : 'X\(//\)[^/]' \| \
19366          X"$as_dir" : 'X\(//\)$' \| \
19367          X"$as_dir" : 'X\(/\)' \| \
19368          .     : '\(.\)' 2>/dev/null ||
19369 echo X"$as_dir" |
19370     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19371           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19372           /^X\(\/\/\)$/{ s//\1/; q; }
19373           /^X\(\/\).*/{ s//\1/; q; }
19374           s/.*/./; q'`
19375     done
19376     test ! -n "$as_dirs" || mkdir $as_dirs
19377   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19378 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19379    { (exit 1); exit 1; }; }; }
19380
19381   ac_builddir=.
19382
19383 if test "$ac_dir" != .; then
19384   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19385   # A "../" for each directory in $ac_dir_suffix.
19386   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19387 else
19388   ac_dir_suffix= ac_top_builddir=
19389 fi
19390
19391 case $srcdir in
19392   .)  # No --srcdir option.  We are building in place.
19393     ac_srcdir=.
19394     if test -z "$ac_top_builddir"; then
19395        ac_top_srcdir=.
19396     else
19397        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19398     fi ;;
19399   [\\/]* | ?:[\\/]* )  # Absolute path.
19400     ac_srcdir=$srcdir$ac_dir_suffix;
19401     ac_top_srcdir=$srcdir ;;
19402   *) # Relative path.
19403     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19404     ac_top_srcdir=$ac_top_builddir$srcdir ;;
19405 esac
19406 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
19407 # absolute.
19408 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
19409 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
19410 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
19411 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
19412
19413
19414   case $INSTALL in
19415   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19416   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
19417   esac
19418
19419   if test x"$ac_file" != x-; then
19420     { echo "$as_me:$LINENO: creating $ac_file" >&5
19421 echo "$as_me: creating $ac_file" >&6;}
19422     rm -f "$ac_file"
19423   fi
19424   # Let's still pretend it is `configure' which instantiates (i.e., don't
19425   # use $as_me), people would be surprised to read:
19426   #    /* config.h.  Generated by config.status.  */
19427   if test x"$ac_file" = x-; then
19428     configure_input=
19429   else
19430     configure_input="$ac_file.  "
19431   fi
19432   configure_input=$configure_input"Generated from `echo $ac_file_in |
19433                                      sed 's,.*/,,'` by configure."
19434
19435   # First look for the input files in the build tree, otherwise in the
19436   # src tree.
19437   ac_file_inputs=`IFS=:
19438     for f in $ac_file_in; do
19439       case $f in
19440       -) echo $tmp/stdin ;;
19441       [\\/$]*)
19442          # Absolute (can't be DOS-style, as IFS=:)
19443          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19444 echo "$as_me: error: cannot find input file: $f" >&2;}
19445    { (exit 1); exit 1; }; }
19446          echo $f;;
19447       *) # Relative
19448          if test -f "$f"; then
19449            # Build tree
19450            echo $f
19451          elif test -f "$srcdir/$f"; then
19452            # Source tree
19453            echo $srcdir/$f
19454          else
19455            # /dev/null tree
19456            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19457 echo "$as_me: error: cannot find input file: $f" >&2;}
19458    { (exit 1); exit 1; }; }
19459          fi;;
19460       esac
19461     done` || { (exit 1); exit 1; }
19462 _ACEOF
19463 cat >>$CONFIG_STATUS <<_ACEOF
19464   sed "$ac_vpsub
19465 $extrasub
19466 _ACEOF
19467 cat >>$CONFIG_STATUS <<\_ACEOF
19468 :t
19469 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19470 s,@configure_input@,$configure_input,;t t
19471 s,@srcdir@,$ac_srcdir,;t t
19472 s,@abs_srcdir@,$ac_abs_srcdir,;t t
19473 s,@top_srcdir@,$ac_top_srcdir,;t t
19474 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
19475 s,@builddir@,$ac_builddir,;t t
19476 s,@abs_builddir@,$ac_abs_builddir,;t t
19477 s,@top_builddir@,$ac_top_builddir,;t t
19478 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
19479 s,@INSTALL@,$ac_INSTALL,;t t
19480 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
19481   rm -f $tmp/stdin
19482   if test x"$ac_file" != x-; then
19483     mv $tmp/out $ac_file
19484   else
19485     cat $tmp/out
19486     rm -f $tmp/out
19487   fi
19488
19489 done
19490 _ACEOF
19491 cat >>$CONFIG_STATUS <<\_ACEOF
19492
19493 #
19494 # CONFIG_HEADER section.
19495 #
19496
19497 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
19498 # NAME is the cpp macro being defined and VALUE is the value it is being given.
19499 #
19500 # ac_d sets the value in "#define NAME VALUE" lines.
19501 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
19502 ac_dB='[        ].*$,\1#\2'
19503 ac_dC=' '
19504 ac_dD=',;t'
19505 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
19506 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
19507 ac_uB='$,\1#\2define\3'
19508 ac_uC=' '
19509 ac_uD=',;t'
19510
19511 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
19512   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19513   case $ac_file in
19514   - | *:- | *:-:* ) # input from stdin
19515         cat >$tmp/stdin
19516         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19517         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19518   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19519         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19520   * )   ac_file_in=$ac_file.in ;;
19521   esac
19522
19523   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
19524 echo "$as_me: creating $ac_file" >&6;}
19525
19526   # First look for the input files in the build tree, otherwise in the
19527   # src tree.
19528   ac_file_inputs=`IFS=:
19529     for f in $ac_file_in; do
19530       case $f in
19531       -) echo $tmp/stdin ;;
19532       [\\/$]*)
19533          # Absolute (can't be DOS-style, as IFS=:)
19534          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19535 echo "$as_me: error: cannot find input file: $f" >&2;}
19536    { (exit 1); exit 1; }; }
19537          echo $f;;
19538       *) # Relative
19539          if test -f "$f"; then
19540            # Build tree
19541            echo $f
19542          elif test -f "$srcdir/$f"; then
19543            # Source tree
19544            echo $srcdir/$f
19545          else
19546            # /dev/null tree
19547            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19548 echo "$as_me: error: cannot find input file: $f" >&2;}
19549    { (exit 1); exit 1; }; }
19550          fi;;
19551       esac
19552     done` || { (exit 1); exit 1; }
19553   # Remove the trailing spaces.
19554   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
19555
19556 _ACEOF
19557
19558 # Transform confdefs.h into two sed scripts, `conftest.defines' and
19559 # `conftest.undefs', that substitutes the proper values into
19560 # config.h.in to produce config.h.  The first handles `#define'
19561 # templates, and the second `#undef' templates.
19562 # And first: Protect against being on the right side of a sed subst in
19563 # config.status.  Protect against being in an unquoted here document
19564 # in config.status.
19565 rm -f conftest.defines conftest.undefs
19566 # Using a here document instead of a string reduces the quoting nightmare.
19567 # Putting comments in sed scripts is not portable.
19568 #
19569 # `end' is used to avoid that the second main sed command (meant for
19570 # 0-ary CPP macros) applies to n-ary macro definitions.
19571 # See the Autoconf documentation for `clear'.
19572 cat >confdef2sed.sed <<\_ACEOF
19573 s/[\\&,]/\\&/g
19574 s,[\\$`],\\&,g
19575 t clear
19576 : clear
19577 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
19578 t end
19579 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
19580 : end
19581 _ACEOF
19582 # If some macros were called several times there might be several times
19583 # the same #defines, which is useless.  Nevertheless, we may not want to
19584 # sort them, since we want the *last* AC-DEFINE to be honored.
19585 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
19586 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
19587 rm -f confdef2sed.sed
19588
19589 # This sed command replaces #undef with comments.  This is necessary, for
19590 # example, in the case of _POSIX_SOURCE, which is predefined and required
19591 # on some systems where configure will not decide to define it.
19592 cat >>conftest.undefs <<\_ACEOF
19593 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
19594 _ACEOF
19595
19596 # Break up conftest.defines because some shells have a limit on the size
19597 # of here documents, and old seds have small limits too (100 cmds).
19598 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
19599 echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
19600 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
19601 echo '  :' >>$CONFIG_STATUS
19602 rm -f conftest.tail
19603 while grep . conftest.defines >/dev/null
19604 do
19605   # Write a limited-size here document to $tmp/defines.sed.
19606   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
19607   # Speed up: don't consider the non `#define' lines.
19608   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
19609   # Work around the forget-to-reset-the-flag bug.
19610   echo 't clr' >>$CONFIG_STATUS
19611   echo ': clr' >>$CONFIG_STATUS
19612   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
19613   echo 'CEOF
19614   sed -f $tmp/defines.sed $tmp/in >$tmp/out
19615   rm -f $tmp/in
19616   mv $tmp/out $tmp/in
19617 ' >>$CONFIG_STATUS
19618   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
19619   rm -f conftest.defines
19620   mv conftest.tail conftest.defines
19621 done
19622 rm -f conftest.defines
19623 echo '  fi # grep' >>$CONFIG_STATUS
19624 echo >>$CONFIG_STATUS
19625
19626 # Break up conftest.undefs because some shells have a limit on the size
19627 # of here documents, and old seds have small limits too (100 cmds).
19628 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
19629 rm -f conftest.tail
19630 while grep . conftest.undefs >/dev/null
19631 do
19632   # Write a limited-size here document to $tmp/undefs.sed.
19633   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
19634   # Speed up: don't consider the non `#undef'
19635   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
19636   # Work around the forget-to-reset-the-flag bug.
19637   echo 't clr' >>$CONFIG_STATUS
19638   echo ': clr' >>$CONFIG_STATUS
19639   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
19640   echo 'CEOF
19641   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
19642   rm -f $tmp/in
19643   mv $tmp/out $tmp/in
19644 ' >>$CONFIG_STATUS
19645   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
19646   rm -f conftest.undefs
19647   mv conftest.tail conftest.undefs
19648 done
19649 rm -f conftest.undefs
19650
19651 cat >>$CONFIG_STATUS <<\_ACEOF
19652   # Let's still pretend it is `configure' which instantiates (i.e., don't
19653   # use $as_me), people would be surprised to read:
19654   #    /* config.h.  Generated by config.status.  */
19655   if test x"$ac_file" = x-; then
19656     echo "/* Generated by configure.  */" >$tmp/config.h
19657   else
19658     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
19659   fi
19660   cat $tmp/in >>$tmp/config.h
19661   rm -f $tmp/in
19662   if test x"$ac_file" != x-; then
19663     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
19664       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
19665 echo "$as_me: $ac_file is unchanged" >&6;}
19666     else
19667       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
19668 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19669          X"$ac_file" : 'X\(//\)[^/]' \| \
19670          X"$ac_file" : 'X\(//\)$' \| \
19671          X"$ac_file" : 'X\(/\)' \| \
19672          .     : '\(.\)' 2>/dev/null ||
19673 echo X"$ac_file" |
19674     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19675           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19676           /^X\(\/\/\)$/{ s//\1/; q; }
19677           /^X\(\/\).*/{ s//\1/; q; }
19678           s/.*/./; q'`
19679       { if $as_mkdir_p; then
19680     mkdir -p "$ac_dir"
19681   else
19682     as_dir="$ac_dir"
19683     as_dirs=
19684     while test ! -d "$as_dir"; do
19685       as_dirs="$as_dir $as_dirs"
19686       as_dir=`(dirname "$as_dir") 2>/dev/null ||
19687 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19688          X"$as_dir" : 'X\(//\)[^/]' \| \
19689          X"$as_dir" : 'X\(//\)$' \| \
19690          X"$as_dir" : 'X\(/\)' \| \
19691          .     : '\(.\)' 2>/dev/null ||
19692 echo X"$as_dir" |
19693     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19694           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19695           /^X\(\/\/\)$/{ s//\1/; q; }
19696           /^X\(\/\).*/{ s//\1/; q; }
19697           s/.*/./; q'`
19698     done
19699     test ! -n "$as_dirs" || mkdir $as_dirs
19700   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19701 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19702    { (exit 1); exit 1; }; }; }
19703
19704       rm -f $ac_file
19705       mv $tmp/config.h $ac_file
19706     fi
19707   else
19708     cat $tmp/config.h
19709     rm -f $tmp/config.h
19710   fi
19711 done
19712 _ACEOF
19713 cat >>$CONFIG_STATUS <<\_ACEOF
19714
19715 #
19716 # CONFIG_COMMANDS section.
19717 #
19718 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
19719   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
19720   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
19721   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
19722 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19723          X"$ac_dest" : 'X\(//\)[^/]' \| \
19724          X"$ac_dest" : 'X\(//\)$' \| \
19725          X"$ac_dest" : 'X\(/\)' \| \
19726          .     : '\(.\)' 2>/dev/null ||
19727 echo X"$ac_dest" |
19728     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19729           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19730           /^X\(\/\/\)$/{ s//\1/; q; }
19731           /^X\(\/\).*/{ s//\1/; q; }
19732           s/.*/./; q'`
19733   ac_builddir=.
19734
19735 if test "$ac_dir" != .; then
19736   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19737   # A "../" for each directory in $ac_dir_suffix.
19738   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19739 else
19740   ac_dir_suffix= ac_top_builddir=
19741 fi
19742
19743 case $srcdir in
19744   .)  # No --srcdir option.  We are building in place.
19745     ac_srcdir=.
19746     if test -z "$ac_top_builddir"; then
19747        ac_top_srcdir=.
19748     else
19749        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19750     fi ;;
19751   [\\/]* | ?:[\\/]* )  # Absolute path.
19752     ac_srcdir=$srcdir$ac_dir_suffix;
19753     ac_top_srcdir=$srcdir ;;
19754   *) # Relative path.
19755     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19756     ac_top_srcdir=$ac_top_builddir$srcdir ;;
19757 esac
19758 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
19759 # absolute.
19760 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
19761 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
19762 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
19763 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
19764
19765
19766   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
19767 echo "$as_me: executing $ac_dest commands" >&6;}
19768   case $ac_dest in
19769     default ) (echo "Doing make of dependencies"; make depend;)
19770  ;;
19771   esac
19772 done
19773 _ACEOF
19774
19775 cat >>$CONFIG_STATUS <<\_ACEOF
19776
19777 { (exit 0); exit 0; }
19778 _ACEOF
19779 chmod +x $CONFIG_STATUS
19780 ac_clean_files=$ac_clean_files_save
19781
19782
19783 # configure is writing to config.log, and then calls config.status.
19784 # config.status does its own redirection, appending to config.log.
19785 # Unfortunately, on DOS this fails, as config.log is still kept open
19786 # by configure, so config.status won't be able to write to it; its
19787 # output is simply discarded.  So we exec the FD to /dev/null,
19788 # effectively closing config.log, so it can be properly (re)opened and
19789 # appended to by config.status.  When coming back to configure, we
19790 # need to make the FD available again.
19791 if test "$no_create" != yes; then
19792   ac_cs_success=:
19793   ac_config_status_args=
19794   test "$silent" = yes &&
19795     ac_config_status_args="$ac_config_status_args --quiet"
19796   exec 5>/dev/null
19797   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19798   exec 5>>config.log
19799   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19800   # would make configure fail if this is the last instruction.
19801   $ac_cs_success || { (exit 1); exit 1; }
19802 fi
19803
19804
19805 cd scripts
19806 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
19807 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
19808 cd ..
19809
19810 c=src/cats
19811
19812 chmod 755 $c/create_bacula_database   $c/update_bacula_tables  $c/make_bacula_tables
19813 chmod 755 $c/grant_bacula_privileges  $c/drop_bacula_tables    $c/drop_bacula_database
19814
19815 chmod 755 $c/create_bdb_database      $c/update_bdb_tables     $c/make_bdb_tables
19816 chmod 755 $c/grant_bdb_privileges     $c/drop_bdb_tables       $c/drop_bdb_database
19817
19818 chmod 755 $c/create_mysql_database    $c/update_mysql_tables   $c/make_mysql_tables
19819 chmod 755 $c/grant_mysql_privileges   $c/drop_mysql_tables     $c/drop_mysql_database
19820
19821 chmod 755 $c/create_sqlite_database   $c/update_sqlite_tables  $c/make_sqlite_tables
19822 chmod 755 $c/grant_sqlite_privileges  $c/drop_sqlite_tables    $c/drop_sqlite_database
19823
19824 chmod 755 $c/create_postgresql_database  $c/update_postgresql_tables $c/make_postgresql_tables
19825 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables   $c/drop_postgresql_database
19826
19827 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
19828 chmod 755 $c/sqlite
19829 chmod 755 $c/mysql
19830
19831 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
19832    largefile_support="yes"
19833 fi
19834
19835 #
19836 # A whole lot of hand springs to get the compiler version.
19837 #  This is because gcc changed the output in version 3.0
19838 #
19839 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
19840 if test "x${CCVERSION}" = "x" ; then
19841   CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
19842 fi
19843 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
19844 if test x"${CXXVERSION}" = x ; then
19845   CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
19846 fi
19847
19848 if test "x${subsysdir}" = "x${sbindir}" ; then
19849    echo " "
19850    echo " "
19851    echo "You have set --sbindir and --with-subsys-dir"
19852    echo "  both equal to: ${subsysdir} "
19853    echo "  This is not permitted. Please reconfigure."
19854    echo "Aborting configuration ..."
19855    echo " "
19856    echo " "
19857    exit 1
19858 fi
19859
19860 echo "
19861 Configuration on `date`:
19862
19863   Host:                       $host -- ${DISTNAME} ${DISTVER}
19864   Bacula version:             ${VERSION} (${DATE})
19865   Source code location:       ${srcdir}
19866   Install binaries:           ${sbindir}
19867   Install config files:       ${sysconfdir}
19868   Scripts directory:          ${scriptdir}
19869   Working directory:          ${working_dir}
19870   PID directory:              ${piddir}
19871   Subsys directory:           ${subsysdir}
19872   C Compiler:                 ${CC} ${CCVERSION}
19873   C++ Compiler:               ${CXX} ${CXXVERSION}
19874   Compiler flags:             ${WCFLAGS} ${CFLAGS}
19875   Linker flags:               ${WLDFLAGS} ${LDFLAGS}
19876   Libraries:                  ${LIBS}
19877   Statically Linked Tools:    ${support_static_tools}
19878   Statically Linked FD:       ${support_static_fd}
19879   Statically Linked SD:       ${support_static_sd}
19880   Statically Linked DIR:      ${support_static_dir}
19881   Statically Linked CONS:     ${support_static_cons}
19882   Database type:              ${db_name}
19883   Database lib:               ${DB_LIBS}
19884
19885   Job Output Email:           ${job_email}
19886   Traceback Email:            ${dump_email}
19887   SMTP Host Address:          ${smtp_host}
19888
19889   Director Port:              ${dir_port}
19890   File daemon Port:           ${fd_port}
19891   Storage daemon Port:        ${sd_port}
19892
19893   Director User:              ${dir_user}
19894   Director Group:             ${dir_group}
19895   Storage Daemon User:        ${sd_user}
19896   Storage DaemonGroup:        ${sd_group}
19897   File Daemon User:           ${fd_user}
19898   File Daemon Group:          ${fd_group}
19899
19900   SQL binaries Directory      ${SQL_BINDIR}
19901
19902   Large file support:         $largefile_support
19903   Bacula conio support:       ${got_conio} ${CONS_LIBS}
19904   readline support:           ${got_readline} ${PRTREADLINE_SRC}
19905   TCP Wrappers support:       ${TCPW_MSG}
19906   ZLIB support:               ${have_zlib}
19907   enable-smartalloc:          ${support_smartalloc}
19908   enable-gnome:               ${support_gnome} ${gnome_version}
19909   enable-wx-console:          ${support_wx_console}
19910   client-only:                ${build_client_only}
19911   ACL support:                ${have_acl}
19912
19913   " > config.out
19914
19915 cat config.out
19916
19917 # old stuff
19918 # cweb support:               ${got_cweb} ${CWEB_SRC}
19919 # gmp support:                ${got_gmp} ${GMP_SRC}