]> git.sur5r.net Git - bacula/bacula/blob - bacula/configure
Rewrite spool error cod + level keyword for estimate
[bacula/bacula] / bacula / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57.
4 #
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization.  ##
11 ## --------------------- ##
12
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15   emulate sh
16   NULLCMD=:
17   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18   # is contrary to our usage.  Disable this feature.
19   alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21   set -o posix
22 fi
23
24 # Support unset when possible.
25 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
26   as_unset=unset
27 else
28   as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42   LC_TELEPHONE LC_TIME
43 do
44   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
45     eval $as_var=C; export $as_var
46   else
47     $as_unset $as_var
48   fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53   as_expr=expr
54 else
55   as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59   as_basename=basename
60 else
61   as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68          X"$0" : 'X\(//\)$' \| \
69          X"$0" : 'X\(/\)$' \| \
70          .     : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73           /^X\/\(\/\/\)$/{ s//\1/; q; }
74           /^X\/\(\/\).*/{ s//\1/; q; }
75           s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88   echo "#! /bin/sh" >conf$$.sh
89   echo  "exit 0"   >>conf$$.sh
90   chmod +x conf$$.sh
91   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92     PATH_SEPARATOR=';'
93   else
94     PATH_SEPARATOR=:
95   fi
96   rm -f conf$$.sh
97 fi
98
99
100   as_lineno_1=$LINENO
101   as_lineno_2=$LINENO
102   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103   test "x$as_lineno_1" != "x$as_lineno_2" &&
104   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105   # Find who we are.  Look in the path if we contain no path at all
106   # relative or not.
107   case $0 in
108     *[\\/]* ) as_myself=$0 ;;
109     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112   IFS=$as_save_IFS
113   test -z "$as_dir" && as_dir=.
114   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117        ;;
118   esac
119   # We did not find ourselves, most probably we were run as `sh COMMAND'
120   # in which case we are not to be found in the path.
121   if test "x$as_myself" = x; then
122     as_myself=$0
123   fi
124   if test ! -f "$as_myself"; then
125     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126    { (exit 1); exit 1; }; }
127   fi
128   case $CONFIG_SHELL in
129   '')
130     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133   IFS=$as_save_IFS
134   test -z "$as_dir" && as_dir=.
135   for as_base in sh bash ksh sh5; do
136          case $as_dir in
137          /*)
138            if ("$as_dir/$as_base" -c '
139   as_lineno_1=$LINENO
140   as_lineno_2=$LINENO
141   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142   test "x$as_lineno_1" != "x$as_lineno_2" &&
143   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146              CONFIG_SHELL=$as_dir/$as_base
147              export CONFIG_SHELL
148              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149            fi;;
150          esac
151        done
152 done
153 ;;
154   esac
155
156   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157   # uniformly replaced by the line number.  The first 'sed' inserts a
158   # line-number line before each line; the second 'sed' does the real
159   # work.  The second script uses 'N' to pair each line-number line
160   # with the numbered line, and appends trailing '-' during
161   # substitution so that $LINENO is not a special case at line end.
162   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164   sed '=' <$as_myself |
165     sed '
166       N
167       s,$,-,
168       : loop
169       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170       t loop
171       s,-$,,
172       s,^['$as_cr_digits']*\n,,
173     ' >$as_me.lineno &&
174   chmod +x $as_me.lineno ||
175     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176    { (exit 1); exit 1; }; }
177
178   # Don't try to exec as it changes $[0], causing all sort of problems
179   # (the dirname of $[0] is not the place where we might find the
180   # original and so on.  Autoconf is especially sensible to this).
181   . ./$as_me.lineno
182   # Exit status is that of the last command.
183   exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188   *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T='      ' ;;
190   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195   as_expr=expr
196 else
197   as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203   # We could just check for DJGPP; but this test a) works b) is more generic
204   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205   if test -f conf$$.exe; then
206     # Don't use ln at all; we don't have any links
207     as_ln_s='cp -p'
208   else
209     as_ln_s='ln -s'
210   fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212   as_ln_s=ln
213 else
214   as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219   as_mkdir_p=:
220 else
221   as_mkdir_p=false
222 fi
223
224 as_executable_p="test -f"
225
226 # Sed expression to map a string onto a valid CPP name.
227 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
228
229 # Sed expression to map a string onto a valid variable name.
230 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
231
232
233 # IFS
234 # We need space, tab and new line, in precisely that order.
235 as_nl='
236 '
237 IFS="   $as_nl"
238
239 # CDPATH.
240 $as_unset CDPATH
241
242
243 # Name of the host.
244 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
245 # so uname gets run too.
246 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
247
248 exec 6>&1
249
250 #
251 # Initializations.
252 #
253 ac_default_prefix=/usr/local
254 ac_config_libobj_dir=.
255 cross_compiling=no
256 subdirs=
257 MFLAGS=
258 MAKEFLAGS=
259 SHELL=${CONFIG_SHELL-/bin/sh}
260
261 # Maximum number of lines to put in a shell here document.
262 # This variable seems obsolete.  It should probably be removed, and
263 # only ac_max_sed_lines should be used.
264 : ${ac_max_here_lines=38}
265
266 # Identity of this package.
267 PACKAGE_NAME=
268 PACKAGE_TARNAME=
269 PACKAGE_VERSION=
270 PACKAGE_STRING=
271 PACKAGE_BUGREPORT=
272
273 ac_unique_file="src/version.h"
274 # Factoring default headers for most tests.
275 ac_includes_default="\
276 #include <stdio.h>
277 #if HAVE_SYS_TYPES_H
278 # include <sys/types.h>
279 #endif
280 #if HAVE_SYS_STAT_H
281 # include <sys/stat.h>
282 #endif
283 #if STDC_HEADERS
284 # include <stdlib.h>
285 # include <stddef.h>
286 #else
287 # if HAVE_STDLIB_H
288 #  include <stdlib.h>
289 # endif
290 #endif
291 #if HAVE_STRING_H
292 # if !STDC_HEADERS && HAVE_MEMORY_H
293 #  include <memory.h>
294 # endif
295 # include <string.h>
296 #endif
297 #if HAVE_STRINGS_H
298 # include <strings.h>
299 #endif
300 #if HAVE_INTTYPES_H
301 # include <inttypes.h>
302 #else
303 # if HAVE_STDINT_H
304 #  include <stdint.h>
305 # endif
306 #endif
307 #if HAVE_UNISTD_H
308 # include <unistd.h>
309 #endif"
310
311 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS BUILD_DIR TRUEPRG FALSEPRG VERSION DATE LSMDATE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX CPP EGREP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA RANLIB ac_ct_RANLIB MV RM CP SED AWK ECHO CMP TBL AR OPENSSL MTX PKGCONFIG WXCONFIG ARFLAGS MAKE_SHELL LOCAL_LIBS LOCAL_CFLAGS LOCAL_LDFLAGS LOCAL_DEFS build build_cpu build_vendor build_os host host_cpu host_vendor host_os HAVE_SUN_OS_TRUE HAVE_SUN_OS_FALSE HAVE_OSF1_OS_TRUE HAVE_OSF1_OS_FALSE HAVE_AIX_OS_TRUE HAVE_AIX_OS_FALSE HAVE_HPUX_OS_TRUE HAVE_HPUX_OS_FALSE HAVE_LINUX_OS_TRUE HAVE_LINUX_OS_FALSE HAVE_FREEBSD_OS_TRUE HAVE_FREEBSD_OS_FALSE HAVE_NETBSD_OS_TRUE HAVE_NETBSD_OS_FALSE HAVE_OPENBSD_OS_TRUE HAVE_OPENBSD_OS_FALSE HAVE_BSDI_OS_TRUE HAVE_BSDI_OS_FALSE HAVE_SGI_OS_TRUE HAVE_SGI_OS_FALSE HAVE_IRIX_OS_TRUE HAVE_IRIX_OS_FALSE HAVE_DARWIN_OS_TRUE HAVE_DARWIN_OS_FALSE INSIDE_GNOME_COMMON_TRUE INSIDE_GNOME_COMMON_FALSE MSGFMT GNOME_INCLUDEDIR GNOMEUI_LIBS GNOME_LIBDIR GNOME_LIBS GNOMEGNORBA_LIBS GTKXMHTML_LIBS ZVT_LIBS GNOME_CONFIG ORBIT_CONFIG ORBIT_IDL HAVE_ORBIT_TRUE HAVE_ORBIT_FALSE ORBIT_CFLAGS ORBIT_LIBS HAVE_GNORBA_TRUE HAVE_GNORBA_FALSE GNORBA_CFLAGS GNORBA_LIBS GNOME_APPLETS_LIBS GNOME_DOCKLETS_LIBS GNOME_CAPPLET_LIBS GNOME_DIR WXCONS_CPPFLAGS WXCONS_LDFLAGS WX_DIR TTOOL_LDFLAGS STATIC_FD STATIC_SD STATIC_DIR STATIC_CONS STATIC_GNOME_CONS STATIC_WX_CONS ALL_DIRS CONS_INC CONS_OBJ CONS_SRC CONS_LIBS CONS_LDFLAGS READLINE_SRC working_dir scriptdir dump_email job_email smtp_host piddir subsysdir baseport dir_port fd_port sd_port dir_password fd_password sd_password dir_user dir_group sd_user sd_group fd_user fd_group SBINPERM SQL_LFLAGS SQL_INCLUDE SQL_BINDIR cats DB_NAME GETCONF ac_ct_GETCONF X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS LIBOBJS ALLOCA FDLIBS DEBUG DINCLUDE DLIB DB_LIBS WCFLAGS WLDFLAGS OBJLIST hostname TAPEDRIVE PSCMD WIN32 MACOSX DISTNAME DISTVER LTLIBOBJS'
312 ac_subst_files='MCOMMON'
313
314 # Initialize some variables set by options.
315 ac_init_help=
316 ac_init_version=false
317 # The variables have the same names as the options, with
318 # dashes changed to underlines.
319 cache_file=/dev/null
320 exec_prefix=NONE
321 no_create=
322 no_recursion=
323 prefix=NONE
324 program_prefix=NONE
325 program_suffix=NONE
326 program_transform_name=s,x,x,
327 silent=
328 site=
329 srcdir=
330 verbose=
331 x_includes=NONE
332 x_libraries=NONE
333
334 # Installation directory options.
335 # These are left unexpanded so users can "make install exec_prefix=/foo"
336 # and all the variables that are supposed to be based on exec_prefix
337 # by default will actually change.
338 # Use braces instead of parens because sh, perl, etc. also accept them.
339 bindir='${exec_prefix}/bin'
340 sbindir='${exec_prefix}/sbin'
341 libexecdir='${exec_prefix}/libexec'
342 datadir='${prefix}/share'
343 sysconfdir='${prefix}/etc'
344 sharedstatedir='${prefix}/com'
345 localstatedir='${prefix}/var'
346 libdir='${exec_prefix}/lib'
347 includedir='${prefix}/include'
348 oldincludedir='/usr/include'
349 infodir='${prefix}/info'
350 mandir='${prefix}/man'
351
352 ac_prev=
353 for ac_option
354 do
355   # If the previous option needs an argument, assign it.
356   if test -n "$ac_prev"; then
357     eval "$ac_prev=\$ac_option"
358     ac_prev=
359     continue
360   fi
361
362   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
363
364   # Accept the important Cygnus configure options, so we can diagnose typos.
365
366   case $ac_option in
367
368   -bindir | --bindir | --bindi | --bind | --bin | --bi)
369     ac_prev=bindir ;;
370   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
371     bindir=$ac_optarg ;;
372
373   -build | --build | --buil | --bui | --bu)
374     ac_prev=build_alias ;;
375   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
376     build_alias=$ac_optarg ;;
377
378   -cache-file | --cache-file | --cache-fil | --cache-fi \
379   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
380     ac_prev=cache_file ;;
381   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
382   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
383     cache_file=$ac_optarg ;;
384
385   --config-cache | -C)
386     cache_file=config.cache ;;
387
388   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
389     ac_prev=datadir ;;
390   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
391   | --da=*)
392     datadir=$ac_optarg ;;
393
394   -disable-* | --disable-*)
395     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
396     # Reject names that are not valid shell variable names.
397     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
398       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
399    { (exit 1); exit 1; }; }
400     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
401     eval "enable_$ac_feature=no" ;;
402
403   -enable-* | --enable-*)
404     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
405     # Reject names that are not valid shell variable names.
406     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
407       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
408    { (exit 1); exit 1; }; }
409     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
410     case $ac_option in
411       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
412       *) ac_optarg=yes ;;
413     esac
414     eval "enable_$ac_feature='$ac_optarg'" ;;
415
416   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
417   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
418   | --exec | --exe | --ex)
419     ac_prev=exec_prefix ;;
420   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
421   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
422   | --exec=* | --exe=* | --ex=*)
423     exec_prefix=$ac_optarg ;;
424
425   -gas | --gas | --ga | --g)
426     # Obsolete; use --with-gas.
427     with_gas=yes ;;
428
429   -help | --help | --hel | --he | -h)
430     ac_init_help=long ;;
431   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
432     ac_init_help=recursive ;;
433   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
434     ac_init_help=short ;;
435
436   -host | --host | --hos | --ho)
437     ac_prev=host_alias ;;
438   -host=* | --host=* | --hos=* | --ho=*)
439     host_alias=$ac_optarg ;;
440
441   -includedir | --includedir | --includedi | --included | --include \
442   | --includ | --inclu | --incl | --inc)
443     ac_prev=includedir ;;
444   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
445   | --includ=* | --inclu=* | --incl=* | --inc=*)
446     includedir=$ac_optarg ;;
447
448   -infodir | --infodir | --infodi | --infod | --info | --inf)
449     ac_prev=infodir ;;
450   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
451     infodir=$ac_optarg ;;
452
453   -libdir | --libdir | --libdi | --libd)
454     ac_prev=libdir ;;
455   -libdir=* | --libdir=* | --libdi=* | --libd=*)
456     libdir=$ac_optarg ;;
457
458   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
459   | --libexe | --libex | --libe)
460     ac_prev=libexecdir ;;
461   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
462   | --libexe=* | --libex=* | --libe=*)
463     libexecdir=$ac_optarg ;;
464
465   -localstatedir | --localstatedir | --localstatedi | --localstated \
466   | --localstate | --localstat | --localsta | --localst \
467   | --locals | --local | --loca | --loc | --lo)
468     ac_prev=localstatedir ;;
469   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
470   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
471   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
472     localstatedir=$ac_optarg ;;
473
474   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
475     ac_prev=mandir ;;
476   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
477     mandir=$ac_optarg ;;
478
479   -nfp | --nfp | --nf)
480     # Obsolete; use --without-fp.
481     with_fp=no ;;
482
483   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
484   | --no-cr | --no-c | -n)
485     no_create=yes ;;
486
487   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
488   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
489     no_recursion=yes ;;
490
491   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
492   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
493   | --oldin | --oldi | --old | --ol | --o)
494     ac_prev=oldincludedir ;;
495   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
496   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
497   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
498     oldincludedir=$ac_optarg ;;
499
500   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
501     ac_prev=prefix ;;
502   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
503     prefix=$ac_optarg ;;
504
505   -program-prefix | --program-prefix | --program-prefi | --program-pref \
506   | --program-pre | --program-pr | --program-p)
507     ac_prev=program_prefix ;;
508   -program-prefix=* | --program-prefix=* | --program-prefi=* \
509   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
510     program_prefix=$ac_optarg ;;
511
512   -program-suffix | --program-suffix | --program-suffi | --program-suff \
513   | --program-suf | --program-su | --program-s)
514     ac_prev=program_suffix ;;
515   -program-suffix=* | --program-suffix=* | --program-suffi=* \
516   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
517     program_suffix=$ac_optarg ;;
518
519   -program-transform-name | --program-transform-name \
520   | --program-transform-nam | --program-transform-na \
521   | --program-transform-n | --program-transform- \
522   | --program-transform | --program-transfor \
523   | --program-transfo | --program-transf \
524   | --program-trans | --program-tran \
525   | --progr-tra | --program-tr | --program-t)
526     ac_prev=program_transform_name ;;
527   -program-transform-name=* | --program-transform-name=* \
528   | --program-transform-nam=* | --program-transform-na=* \
529   | --program-transform-n=* | --program-transform-=* \
530   | --program-transform=* | --program-transfor=* \
531   | --program-transfo=* | --program-transf=* \
532   | --program-trans=* | --program-tran=* \
533   | --progr-tra=* | --program-tr=* | --program-t=*)
534     program_transform_name=$ac_optarg ;;
535
536   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
537   | -silent | --silent | --silen | --sile | --sil)
538     silent=yes ;;
539
540   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
541     ac_prev=sbindir ;;
542   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
543   | --sbi=* | --sb=*)
544     sbindir=$ac_optarg ;;
545
546   -sharedstatedir | --sharedstatedir | --sharedstatedi \
547   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
548   | --sharedst | --shareds | --shared | --share | --shar \
549   | --sha | --sh)
550     ac_prev=sharedstatedir ;;
551   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
552   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
553   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
554   | --sha=* | --sh=*)
555     sharedstatedir=$ac_optarg ;;
556
557   -site | --site | --sit)
558     ac_prev=site ;;
559   -site=* | --site=* | --sit=*)
560     site=$ac_optarg ;;
561
562   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
563     ac_prev=srcdir ;;
564   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
565     srcdir=$ac_optarg ;;
566
567   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
568   | --syscon | --sysco | --sysc | --sys | --sy)
569     ac_prev=sysconfdir ;;
570   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
571   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
572     sysconfdir=$ac_optarg ;;
573
574   -target | --target | --targe | --targ | --tar | --ta | --t)
575     ac_prev=target_alias ;;
576   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
577     target_alias=$ac_optarg ;;
578
579   -v | -verbose | --verbose | --verbos | --verbo | --verb)
580     verbose=yes ;;
581
582   -version | --version | --versio | --versi | --vers | -V)
583     ac_init_version=: ;;
584
585   -with-* | --with-*)
586     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
587     # Reject names that are not valid shell variable names.
588     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
589       { echo "$as_me: error: invalid package name: $ac_package" >&2
590    { (exit 1); exit 1; }; }
591     ac_package=`echo $ac_package| sed 's/-/_/g'`
592     case $ac_option in
593       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
594       *) ac_optarg=yes ;;
595     esac
596     eval "with_$ac_package='$ac_optarg'" ;;
597
598   -without-* | --without-*)
599     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
600     # Reject names that are not valid shell variable names.
601     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
602       { echo "$as_me: error: invalid package name: $ac_package" >&2
603    { (exit 1); exit 1; }; }
604     ac_package=`echo $ac_package | sed 's/-/_/g'`
605     eval "with_$ac_package=no" ;;
606
607   --x)
608     # Obsolete; use --with-x.
609     with_x=yes ;;
610
611   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
612   | --x-incl | --x-inc | --x-in | --x-i)
613     ac_prev=x_includes ;;
614   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
615   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
616     x_includes=$ac_optarg ;;
617
618   -x-libraries | --x-libraries | --x-librarie | --x-librari \
619   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
620     ac_prev=x_libraries ;;
621   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
622   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
623     x_libraries=$ac_optarg ;;
624
625   -*) { echo "$as_me: error: unrecognized option: $ac_option
626 Try \`$0 --help' for more information." >&2
627    { (exit 1); exit 1; }; }
628     ;;
629
630   *=*)
631     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
632     # Reject names that are not valid shell variable names.
633     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
634       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
635    { (exit 1); exit 1; }; }
636     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
637     eval "$ac_envvar='$ac_optarg'"
638     export $ac_envvar ;;
639
640   *)
641     # FIXME: should be removed in autoconf 3.0.
642     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
643     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
644       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
645     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
646     ;;
647
648   esac
649 done
650
651 if test -n "$ac_prev"; then
652   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
653   { echo "$as_me: error: missing argument to $ac_option" >&2
654    { (exit 1); exit 1; }; }
655 fi
656
657 # Be sure to have absolute paths.
658 for ac_var in exec_prefix prefix
659 do
660   eval ac_val=$`echo $ac_var`
661   case $ac_val in
662     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
663     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
664    { (exit 1); exit 1; }; };;
665   esac
666 done
667
668 # Be sure to have absolute paths.
669 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
670               localstatedir libdir includedir oldincludedir infodir mandir
671 do
672   eval ac_val=$`echo $ac_var`
673   case $ac_val in
674     [\\/$]* | ?:[\\/]* ) ;;
675     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
676    { (exit 1); exit 1; }; };;
677   esac
678 done
679
680 # There might be people who depend on the old broken behavior: `$host'
681 # used to hold the argument of --host etc.
682 # FIXME: To remove some day.
683 build=$build_alias
684 host=$host_alias
685 target=$target_alias
686
687 # FIXME: To remove some day.
688 if test "x$host_alias" != x; then
689   if test "x$build_alias" = x; then
690     cross_compiling=maybe
691     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
692     If a cross compiler is detected then cross compile mode will be used." >&2
693   elif test "x$build_alias" != "x$host_alias"; then
694     cross_compiling=yes
695   fi
696 fi
697
698 ac_tool_prefix=
699 test -n "$host_alias" && ac_tool_prefix=$host_alias-
700
701 test "$silent" = yes && exec 6>/dev/null
702
703
704 # Find the source files, if location was not specified.
705 if test -z "$srcdir"; then
706   ac_srcdir_defaulted=yes
707   # Try the directory containing this script, then its parent.
708   ac_confdir=`(dirname "$0") 2>/dev/null ||
709 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
710          X"$0" : 'X\(//\)[^/]' \| \
711          X"$0" : 'X\(//\)$' \| \
712          X"$0" : 'X\(/\)' \| \
713          .     : '\(.\)' 2>/dev/null ||
714 echo X"$0" |
715     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
716           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
717           /^X\(\/\/\)$/{ s//\1/; q; }
718           /^X\(\/\).*/{ s//\1/; q; }
719           s/.*/./; q'`
720   srcdir=$ac_confdir
721   if test ! -r $srcdir/$ac_unique_file; then
722     srcdir=..
723   fi
724 else
725   ac_srcdir_defaulted=no
726 fi
727 if test ! -r $srcdir/$ac_unique_file; then
728   if test "$ac_srcdir_defaulted" = yes; then
729     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
730    { (exit 1); exit 1; }; }
731   else
732     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
733    { (exit 1); exit 1; }; }
734   fi
735 fi
736 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
737   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
738    { (exit 1); exit 1; }; }
739 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
740 ac_env_build_alias_set=${build_alias+set}
741 ac_env_build_alias_value=$build_alias
742 ac_cv_env_build_alias_set=${build_alias+set}
743 ac_cv_env_build_alias_value=$build_alias
744 ac_env_host_alias_set=${host_alias+set}
745 ac_env_host_alias_value=$host_alias
746 ac_cv_env_host_alias_set=${host_alias+set}
747 ac_cv_env_host_alias_value=$host_alias
748 ac_env_target_alias_set=${target_alias+set}
749 ac_env_target_alias_value=$target_alias
750 ac_cv_env_target_alias_set=${target_alias+set}
751 ac_cv_env_target_alias_value=$target_alias
752 ac_env_CC_set=${CC+set}
753 ac_env_CC_value=$CC
754 ac_cv_env_CC_set=${CC+set}
755 ac_cv_env_CC_value=$CC
756 ac_env_CFLAGS_set=${CFLAGS+set}
757 ac_env_CFLAGS_value=$CFLAGS
758 ac_cv_env_CFLAGS_set=${CFLAGS+set}
759 ac_cv_env_CFLAGS_value=$CFLAGS
760 ac_env_LDFLAGS_set=${LDFLAGS+set}
761 ac_env_LDFLAGS_value=$LDFLAGS
762 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_cv_env_LDFLAGS_value=$LDFLAGS
764 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
765 ac_env_CPPFLAGS_value=$CPPFLAGS
766 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
768 ac_env_CXX_set=${CXX+set}
769 ac_env_CXX_value=$CXX
770 ac_cv_env_CXX_set=${CXX+set}
771 ac_cv_env_CXX_value=$CXX
772 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
773 ac_env_CXXFLAGS_value=$CXXFLAGS
774 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
775 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
776 ac_env_CPP_set=${CPP+set}
777 ac_env_CPP_value=$CPP
778 ac_cv_env_CPP_set=${CPP+set}
779 ac_cv_env_CPP_value=$CPP
780
781 #
782 # Report the --help message.
783 #
784 if test "$ac_init_help" = "long"; then
785   # Omit some internal or obsolete options to make the list less imposing.
786   # This message is too long to be a string in the A/UX 3.1 sh.
787   cat <<_ACEOF
788 \`configure' configures this package to adapt to many kinds of systems.
789
790 Usage: $0 [OPTION]... [VAR=VALUE]...
791
792 To assign environment variables (e.g., CC, CFLAGS...), specify them as
793 VAR=VALUE.  See below for descriptions of some of the useful variables.
794
795 Defaults for the options are specified in brackets.
796
797 Configuration:
798   -h, --help              display this help and exit
799       --help=short        display options specific to this package
800       --help=recursive    display the short help of all the included packages
801   -V, --version           display version information and exit
802   -q, --quiet, --silent   do not print \`checking...' messages
803       --cache-file=FILE   cache test results in FILE [disabled]
804   -C, --config-cache      alias for \`--cache-file=config.cache'
805   -n, --no-create         do not create output files
806       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
807
808 _ACEOF
809
810   cat <<_ACEOF
811 Installation directories:
812   --prefix=PREFIX         install architecture-independent files in PREFIX
813                           [$ac_default_prefix]
814   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
815                           [PREFIX]
816
817 By default, \`make install' will install all the files in
818 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
819 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
820 for instance \`--prefix=\$HOME'.
821
822 For better control, use the options below.
823
824 Fine tuning of the installation directories:
825   --bindir=DIR           user executables [EPREFIX/bin]
826   --sbindir=DIR          system admin executables [EPREFIX/sbin]
827   --libexecdir=DIR       program executables [EPREFIX/libexec]
828   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
829   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
830   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
831   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
832   --libdir=DIR           object code libraries [EPREFIX/lib]
833   --includedir=DIR       C header files [PREFIX/include]
834   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
835   --infodir=DIR          info documentation [PREFIX/info]
836   --mandir=DIR           man documentation [PREFIX/man]
837 _ACEOF
838
839   cat <<\_ACEOF
840
841 X features:
842   --x-includes=DIR    X include files are in DIR
843   --x-libraries=DIR   X library files are in DIR
844
845 System types:
846   --build=BUILD     configure for building on BUILD [guessed]
847   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
848 _ACEOF
849 fi
850
851 if test -n "$ac_init_help"; then
852
853   cat <<\_ACEOF
854
855 Optional Features:
856   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
857   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
858   --enable-gnome          enable build of gnome-console GUI disabled
859   --enable-wx-console      enable build of wxWidgets console disabled
860   --enable-smartalloc     enable smartalloc debugging support disabled
861   --enable-static-tools   enable static tape tools disabled
862   --enable-static-fd      enable static File daemon disabled
863   --enable-static-sd      enable static Storage daemon disabled
864   --enable-static-dir     enable static Director disabled
865   --enable-static-cons    enable static Console disabled
866   --enable-client-only    build client (File daemon) only disabled
867   --disable-conio            disable conio support enabled
868
869   --disable-readline      disable readline support disable
870
871   --disable-largefile     omit support for large files
872
873 Optional Packages:
874   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
875   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
876   --with-gnome-includes   Specify location of GNOME headers
877   --with-gnome-libs       Specify location of GNOME libs
878   --with-gnome            Specify prefix for GNOME files
879  --with-readline=DIR             specify readline library directory
880   --with-tcp-wrappers=DIR        enable tcpwrappers support
881   --with-working-dir=PATH        specify path of Bacula working directory
882   --with-scriptdir=PATH    specify path of Bacula scripts directory
883   --with-dump-email=EMAIL        dump email address
884   --with-job-email=EMAIL         job output email address
885   --with-smtp-host=HOST          SMTP mail host address
886   --with-pid-dir=PATH            specify location of Bacula pid files
887   --with-subsys-dir=PATH         specify location of Bacula subsys file
888   --with-baseport=PORT           specify base port address for daemons
889   --with-dir-password=PASSWORD   specify Director's password
890   --with-fd-password=PASSWORD    specify Client's password
891   --with-sd-password=PASSWORD    specify Storage daemon's password
892   --with-dir-user=USER           specify user for Director daemon
893   --with-dir-group=GROUP                 specify group for Director daemon
894   --with-sd-user=USER            specify user for Storage daemon
895   --with-sd-group=GROUP          specify group for Storage daemon
896   --with-fd-user=USER            specify user for File daemon
897   --with-fd-group=GROUP          specify group for File daemon
898   --with-sbin-perm=MODE          specify permissions for sbin binaries (0754)
899   --with-postgresql=DIR      Include PostgreSQL support.  DIR is the PostgreSQL
900                           base install directory, defaults to /usr/local/pgsql
901
902   --with-mysql=DIR      Include MySQL support.  DIR is the MySQL base
903                           install directory, default is to search through
904                           a number of common places for the MySQL files.
905
906   --with-embedded-mysql=DIR Include MySQL support.  DIR is the MySQL base
907                           install directory, default is to search through
908                           a number of common places for the MySQL files.
909
910   --with-sqlite=DIR     Include SQLite support.  DIR is the SQLite base
911                           install directory, default is to search through
912                           a number of common places for the SQLite files.
913   --with-x                use the X Window System
914
915 Some influential environment variables:
916   CC          C compiler command
917   CFLAGS      C compiler flags
918   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
919               nonstandard directory <lib dir>
920   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
921               headers in a nonstandard directory <include dir>
922   CXX         C++ compiler command
923   CXXFLAGS    C++ compiler flags
924   CPP         C preprocessor
925
926 Use these variables to override the choices made by `configure' or to help
927 it to find libraries and programs with nonstandard names/locations.
928
929 _ACEOF
930 fi
931
932 if test "$ac_init_help" = "recursive"; then
933   # If there are subdirs, report their specific --help.
934   ac_popdir=`pwd`
935   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
936     test -d $ac_dir || continue
937     ac_builddir=.
938
939 if test "$ac_dir" != .; then
940   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
941   # A "../" for each directory in $ac_dir_suffix.
942   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
943 else
944   ac_dir_suffix= ac_top_builddir=
945 fi
946
947 case $srcdir in
948   .)  # No --srcdir option.  We are building in place.
949     ac_srcdir=.
950     if test -z "$ac_top_builddir"; then
951        ac_top_srcdir=.
952     else
953        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
954     fi ;;
955   [\\/]* | ?:[\\/]* )  # Absolute path.
956     ac_srcdir=$srcdir$ac_dir_suffix;
957     ac_top_srcdir=$srcdir ;;
958   *) # Relative path.
959     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
960     ac_top_srcdir=$ac_top_builddir$srcdir ;;
961 esac
962 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
963 # absolute.
964 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
965 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
966 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
967 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
968
969     cd $ac_dir
970     # Check for guested configure; otherwise get Cygnus style configure.
971     if test -f $ac_srcdir/configure.gnu; then
972       echo
973       $SHELL $ac_srcdir/configure.gnu  --help=recursive
974     elif test -f $ac_srcdir/configure; then
975       echo
976       $SHELL $ac_srcdir/configure  --help=recursive
977     elif test -f $ac_srcdir/configure.ac ||
978            test -f $ac_srcdir/configure.in; then
979       echo
980       $ac_configure --help
981     else
982       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
983     fi
984     cd $ac_popdir
985   done
986 fi
987
988 test -n "$ac_init_help" && exit 0
989 if $ac_init_version; then
990   cat <<\_ACEOF
991
992 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
993 Free Software Foundation, Inc.
994 This configure script is free software; the Free Software Foundation
995 gives unlimited permission to copy, distribute and modify it.
996 _ACEOF
997   exit 0
998 fi
999 exec 5>config.log
1000 cat >&5 <<_ACEOF
1001 This file contains any messages produced by compilers while
1002 running configure, to aid debugging if configure makes a mistake.
1003
1004 It was created by $as_me, which was
1005 generated by GNU Autoconf 2.57.  Invocation command line was
1006
1007   $ $0 $@
1008
1009 _ACEOF
1010 {
1011 cat <<_ASUNAME
1012 ## --------- ##
1013 ## Platform. ##
1014 ## --------- ##
1015
1016 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1017 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1018 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1019 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1020 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1021
1022 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1023 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1024
1025 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1026 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1027 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1028 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1029 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1030 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1031 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1032
1033 _ASUNAME
1034
1035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1036 for as_dir in $PATH
1037 do
1038   IFS=$as_save_IFS
1039   test -z "$as_dir" && as_dir=.
1040   echo "PATH: $as_dir"
1041 done
1042
1043 } >&5
1044
1045 cat >&5 <<_ACEOF
1046
1047
1048 ## ----------- ##
1049 ## Core tests. ##
1050 ## ----------- ##
1051
1052 _ACEOF
1053
1054
1055 # Keep a trace of the command line.
1056 # Strip out --no-create and --no-recursion so they do not pile up.
1057 # Strip out --silent because we don't want to record it for future runs.
1058 # Also quote any args containing shell meta-characters.
1059 # Make two passes to allow for proper duplicate-argument suppression.
1060 ac_configure_args=
1061 ac_configure_args0=
1062 ac_configure_args1=
1063 ac_sep=
1064 ac_must_keep_next=false
1065 for ac_pass in 1 2
1066 do
1067   for ac_arg
1068   do
1069     case $ac_arg in
1070     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1071     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1072     | -silent | --silent | --silen | --sile | --sil)
1073       continue ;;
1074     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1075       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1076     esac
1077     case $ac_pass in
1078     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1079     2)
1080       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1081       if test $ac_must_keep_next = true; then
1082         ac_must_keep_next=false # Got value, back to normal.
1083       else
1084         case $ac_arg in
1085           *=* | --config-cache | -C | -disable-* | --disable-* \
1086           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1087           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1088           | -with-* | --with-* | -without-* | --without-* | --x)
1089             case "$ac_configure_args0 " in
1090               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1091             esac
1092             ;;
1093           -* ) ac_must_keep_next=true ;;
1094         esac
1095       fi
1096       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1097       # Get rid of the leading space.
1098       ac_sep=" "
1099       ;;
1100     esac
1101   done
1102 done
1103 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1104 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1105
1106 # When interrupted or exit'd, cleanup temporary files, and complete
1107 # config.log.  We remove comments because anyway the quotes in there
1108 # would cause problems or look ugly.
1109 # WARNING: Be sure not to use single quotes in there, as some shells,
1110 # such as our DU 5.0 friend, will then `close' the trap.
1111 trap 'exit_status=$?
1112   # Save into config.log some information that might help in debugging.
1113   {
1114     echo
1115
1116     cat <<\_ASBOX
1117 ## ---------------- ##
1118 ## Cache variables. ##
1119 ## ---------------- ##
1120 _ASBOX
1121     echo
1122     # The following way of writing the cache mishandles newlines in values,
1123 {
1124   (set) 2>&1 |
1125     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1126     *ac_space=\ *)
1127       sed -n \
1128         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1129           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1130       ;;
1131     *)
1132       sed -n \
1133         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1134       ;;
1135     esac;
1136 }
1137     echo
1138
1139     cat <<\_ASBOX
1140 ## ----------------- ##
1141 ## Output variables. ##
1142 ## ----------------- ##
1143 _ASBOX
1144     echo
1145     for ac_var in $ac_subst_vars
1146     do
1147       eval ac_val=$`echo $ac_var`
1148       echo "$ac_var='"'"'$ac_val'"'"'"
1149     done | sort
1150     echo
1151
1152     if test -n "$ac_subst_files"; then
1153       cat <<\_ASBOX
1154 ## ------------- ##
1155 ## Output files. ##
1156 ## ------------- ##
1157 _ASBOX
1158       echo
1159       for ac_var in $ac_subst_files
1160       do
1161         eval ac_val=$`echo $ac_var`
1162         echo "$ac_var='"'"'$ac_val'"'"'"
1163       done | sort
1164       echo
1165     fi
1166
1167     if test -s confdefs.h; then
1168       cat <<\_ASBOX
1169 ## ----------- ##
1170 ## confdefs.h. ##
1171 ## ----------- ##
1172 _ASBOX
1173       echo
1174       sed "/^$/d" confdefs.h | sort
1175       echo
1176     fi
1177     test "$ac_signal" != 0 &&
1178       echo "$as_me: caught signal $ac_signal"
1179     echo "$as_me: exit $exit_status"
1180   } >&5
1181   rm -f core core.* *.core &&
1182   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1183     exit $exit_status
1184      ' 0
1185 for ac_signal in 1 2 13 15; do
1186   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1187 done
1188 ac_signal=0
1189
1190 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1191 rm -rf conftest* confdefs.h
1192 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1193 echo >confdefs.h
1194
1195 # Predefined preprocessor variables.
1196
1197 cat >>confdefs.h <<_ACEOF
1198 #define PACKAGE_NAME "$PACKAGE_NAME"
1199 _ACEOF
1200
1201
1202 cat >>confdefs.h <<_ACEOF
1203 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1204 _ACEOF
1205
1206
1207 cat >>confdefs.h <<_ACEOF
1208 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1209 _ACEOF
1210
1211
1212 cat >>confdefs.h <<_ACEOF
1213 #define PACKAGE_STRING "$PACKAGE_STRING"
1214 _ACEOF
1215
1216
1217 cat >>confdefs.h <<_ACEOF
1218 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1219 _ACEOF
1220
1221
1222 # Let the site file select an alternate cache file if it wants to.
1223 # Prefer explicitly selected file to automatically selected ones.
1224 if test -z "$CONFIG_SITE"; then
1225   if test "x$prefix" != xNONE; then
1226     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1227   else
1228     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1229   fi
1230 fi
1231 for ac_site_file in $CONFIG_SITE; do
1232   if test -r "$ac_site_file"; then
1233     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1234 echo "$as_me: loading site script $ac_site_file" >&6;}
1235     sed 's/^/| /' "$ac_site_file" >&5
1236     . "$ac_site_file"
1237   fi
1238 done
1239
1240 if test -r "$cache_file"; then
1241   # Some versions of bash will fail to source /dev/null (special
1242   # files actually), so we avoid doing that.
1243   if test -f "$cache_file"; then
1244     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1245 echo "$as_me: loading cache $cache_file" >&6;}
1246     case $cache_file in
1247       [\\/]* | ?:[\\/]* ) . $cache_file;;
1248       *)                      . ./$cache_file;;
1249     esac
1250   fi
1251 else
1252   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1253 echo "$as_me: creating cache $cache_file" >&6;}
1254   >$cache_file
1255 fi
1256
1257 # Check that the precious variables saved in the cache have kept the same
1258 # value.
1259 ac_cache_corrupted=false
1260 for ac_var in `(set) 2>&1 |
1261                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1262   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1263   eval ac_new_set=\$ac_env_${ac_var}_set
1264   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1265   eval ac_new_val="\$ac_env_${ac_var}_value"
1266   case $ac_old_set,$ac_new_set in
1267     set,)
1268       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1269 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1270       ac_cache_corrupted=: ;;
1271     ,set)
1272       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1273 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1274       ac_cache_corrupted=: ;;
1275     ,);;
1276     *)
1277       if test "x$ac_old_val" != "x$ac_new_val"; then
1278         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1279 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1280         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1281 echo "$as_me:   former value:  $ac_old_val" >&2;}
1282         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1283 echo "$as_me:   current value: $ac_new_val" >&2;}
1284         ac_cache_corrupted=:
1285       fi;;
1286   esac
1287   # Pass precious variables to config.status.
1288   if test "$ac_new_set" = set; then
1289     case $ac_new_val in
1290     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1291       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1292     *) ac_arg=$ac_var=$ac_new_val ;;
1293     esac
1294     case " $ac_configure_args " in
1295       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1296       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1297     esac
1298   fi
1299 done
1300 if $ac_cache_corrupted; then
1301   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1302 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1303   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1304 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1305    { (exit 1); exit 1; }; }
1306 fi
1307
1308 ac_ext=c
1309 ac_cpp='$CPP $CPPFLAGS'
1310 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1311 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1312 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332 BUILD_DIR=`pwd`
1333 cd ..
1334 TOP_DIR=`pwd`
1335 cd ${BUILD_DIR}
1336
1337 ac_aux_dir=
1338 for ac_dir in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf; do
1339   if test -f $ac_dir/install-sh; then
1340     ac_aux_dir=$ac_dir
1341     ac_install_sh="$ac_aux_dir/install-sh -c"
1342     break
1343   elif test -f $ac_dir/install.sh; then
1344     ac_aux_dir=$ac_dir
1345     ac_install_sh="$ac_aux_dir/install.sh -c"
1346     break
1347   elif test -f $ac_dir/shtool; then
1348     ac_aux_dir=$ac_dir
1349     ac_install_sh="$ac_aux_dir/shtool install -c"
1350     break
1351   fi
1352 done
1353 if test -z "$ac_aux_dir"; then
1354   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&5
1355 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&2;}
1356    { (exit 1); exit 1; }; }
1357 fi
1358 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1359 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1360 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1361
1362           ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
1363
1364
1365
1366
1367
1368 for ac_prog in true
1369 do
1370   # Extract the first word of "$ac_prog", so it can be a program name with args.
1371 set dummy $ac_prog; ac_word=$2
1372 echo "$as_me:$LINENO: checking for $ac_word" >&5
1373 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1374 if test "${ac_cv_path_TRUEPRG+set}" = set; then
1375   echo $ECHO_N "(cached) $ECHO_C" >&6
1376 else
1377   case $TRUEPRG in
1378   [\\/]* | ?:[\\/]*)
1379   ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
1380   ;;
1381   *)
1382   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1383 for as_dir in $PATH
1384 do
1385   IFS=$as_save_IFS
1386   test -z "$as_dir" && as_dir=.
1387   for ac_exec_ext in '' $ac_executable_extensions; do
1388   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1389     ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
1390     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1391     break 2
1392   fi
1393 done
1394 done
1395
1396   ;;
1397 esac
1398 fi
1399 TRUEPRG=$ac_cv_path_TRUEPRG
1400
1401 if test -n "$TRUEPRG"; then
1402   echo "$as_me:$LINENO: result: $TRUEPRG" >&5
1403 echo "${ECHO_T}$TRUEPRG" >&6
1404 else
1405   echo "$as_me:$LINENO: result: no" >&5
1406 echo "${ECHO_T}no" >&6
1407 fi
1408
1409   test -n "$TRUEPRG" && break
1410 done
1411 test -n "$TRUEPRG" || TRUEPRG=":"
1412
1413 for ac_prog in false
1414 do
1415   # Extract the first word of "$ac_prog", so it can be a program name with args.
1416 set dummy $ac_prog; ac_word=$2
1417 echo "$as_me:$LINENO: checking for $ac_word" >&5
1418 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1419 if test "${ac_cv_path_FALSEPRG+set}" = set; then
1420   echo $ECHO_N "(cached) $ECHO_C" >&6
1421 else
1422   case $FALSEPRG in
1423   [\\/]* | ?:[\\/]*)
1424   ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
1425   ;;
1426   *)
1427   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1428 for as_dir in $PATH
1429 do
1430   IFS=$as_save_IFS
1431   test -z "$as_dir" && as_dir=.
1432   for ac_exec_ext in '' $ac_executable_extensions; do
1433   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1434     ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
1435     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1436     break 2
1437   fi
1438 done
1439 done
1440
1441   ;;
1442 esac
1443 fi
1444 FALSEPRG=$ac_cv_path_FALSEPRG
1445
1446 if test -n "$FALSEPRG"; then
1447   echo "$as_me:$LINENO: result: $FALSEPRG" >&5
1448 echo "${ECHO_T}$FALSEPRG" >&6
1449 else
1450   echo "$as_me:$LINENO: result: no" >&5
1451 echo "${ECHO_T}no" >&6
1452 fi
1453
1454   test -n "$FALSEPRG" && break
1455 done
1456 test -n "$FALSEPRG" || FALSEPRG=":"
1457
1458
1459 #AC_CANONICAL_HOST
1460
1461 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1462 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1463 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1464 echo "configuring for bacula $VERSION ($DATE)"
1465
1466
1467
1468 ac_ext=c
1469 ac_cpp='$CPP $CPPFLAGS'
1470 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1471 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1472 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1473 if test -n "$ac_tool_prefix"; then
1474   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1475 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1476 echo "$as_me:$LINENO: checking for $ac_word" >&5
1477 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1478 if test "${ac_cv_prog_CC+set}" = set; then
1479   echo $ECHO_N "(cached) $ECHO_C" >&6
1480 else
1481   if test -n "$CC"; then
1482   ac_cv_prog_CC="$CC" # Let the user override the test.
1483 else
1484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1485 for as_dir in $PATH
1486 do
1487   IFS=$as_save_IFS
1488   test -z "$as_dir" && as_dir=.
1489   for ac_exec_ext in '' $ac_executable_extensions; do
1490   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1491     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1492     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1493     break 2
1494   fi
1495 done
1496 done
1497
1498 fi
1499 fi
1500 CC=$ac_cv_prog_CC
1501 if test -n "$CC"; then
1502   echo "$as_me:$LINENO: result: $CC" >&5
1503 echo "${ECHO_T}$CC" >&6
1504 else
1505   echo "$as_me:$LINENO: result: no" >&5
1506 echo "${ECHO_T}no" >&6
1507 fi
1508
1509 fi
1510 if test -z "$ac_cv_prog_CC"; then
1511   ac_ct_CC=$CC
1512   # Extract the first word of "gcc", so it can be a program name with args.
1513 set dummy gcc; ac_word=$2
1514 echo "$as_me:$LINENO: checking for $ac_word" >&5
1515 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1516 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1517   echo $ECHO_N "(cached) $ECHO_C" >&6
1518 else
1519   if test -n "$ac_ct_CC"; then
1520   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1521 else
1522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1523 for as_dir in $PATH
1524 do
1525   IFS=$as_save_IFS
1526   test -z "$as_dir" && as_dir=.
1527   for ac_exec_ext in '' $ac_executable_extensions; do
1528   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1529     ac_cv_prog_ac_ct_CC="gcc"
1530     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1531     break 2
1532   fi
1533 done
1534 done
1535
1536 fi
1537 fi
1538 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1539 if test -n "$ac_ct_CC"; then
1540   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1541 echo "${ECHO_T}$ac_ct_CC" >&6
1542 else
1543   echo "$as_me:$LINENO: result: no" >&5
1544 echo "${ECHO_T}no" >&6
1545 fi
1546
1547   CC=$ac_ct_CC
1548 else
1549   CC="$ac_cv_prog_CC"
1550 fi
1551
1552 if test -z "$CC"; then
1553   if test -n "$ac_tool_prefix"; then
1554   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1555 set dummy ${ac_tool_prefix}cc; ac_word=$2
1556 echo "$as_me:$LINENO: checking for $ac_word" >&5
1557 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1558 if test "${ac_cv_prog_CC+set}" = set; then
1559   echo $ECHO_N "(cached) $ECHO_C" >&6
1560 else
1561   if test -n "$CC"; then
1562   ac_cv_prog_CC="$CC" # Let the user override the test.
1563 else
1564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1565 for as_dir in $PATH
1566 do
1567   IFS=$as_save_IFS
1568   test -z "$as_dir" && as_dir=.
1569   for ac_exec_ext in '' $ac_executable_extensions; do
1570   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1571     ac_cv_prog_CC="${ac_tool_prefix}cc"
1572     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1573     break 2
1574   fi
1575 done
1576 done
1577
1578 fi
1579 fi
1580 CC=$ac_cv_prog_CC
1581 if test -n "$CC"; then
1582   echo "$as_me:$LINENO: result: $CC" >&5
1583 echo "${ECHO_T}$CC" >&6
1584 else
1585   echo "$as_me:$LINENO: result: no" >&5
1586 echo "${ECHO_T}no" >&6
1587 fi
1588
1589 fi
1590 if test -z "$ac_cv_prog_CC"; then
1591   ac_ct_CC=$CC
1592   # Extract the first word of "cc", so it can be a program name with args.
1593 set dummy cc; ac_word=$2
1594 echo "$as_me:$LINENO: checking for $ac_word" >&5
1595 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1596 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1597   echo $ECHO_N "(cached) $ECHO_C" >&6
1598 else
1599   if test -n "$ac_ct_CC"; then
1600   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1601 else
1602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1603 for as_dir in $PATH
1604 do
1605   IFS=$as_save_IFS
1606   test -z "$as_dir" && as_dir=.
1607   for ac_exec_ext in '' $ac_executable_extensions; do
1608   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1609     ac_cv_prog_ac_ct_CC="cc"
1610     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1611     break 2
1612   fi
1613 done
1614 done
1615
1616 fi
1617 fi
1618 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1619 if test -n "$ac_ct_CC"; then
1620   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1621 echo "${ECHO_T}$ac_ct_CC" >&6
1622 else
1623   echo "$as_me:$LINENO: result: no" >&5
1624 echo "${ECHO_T}no" >&6
1625 fi
1626
1627   CC=$ac_ct_CC
1628 else
1629   CC="$ac_cv_prog_CC"
1630 fi
1631
1632 fi
1633 if test -z "$CC"; then
1634   # Extract the first word of "cc", so it can be a program name with args.
1635 set dummy cc; ac_word=$2
1636 echo "$as_me:$LINENO: checking for $ac_word" >&5
1637 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1638 if test "${ac_cv_prog_CC+set}" = set; then
1639   echo $ECHO_N "(cached) $ECHO_C" >&6
1640 else
1641   if test -n "$CC"; then
1642   ac_cv_prog_CC="$CC" # Let the user override the test.
1643 else
1644   ac_prog_rejected=no
1645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1646 for as_dir in $PATH
1647 do
1648   IFS=$as_save_IFS
1649   test -z "$as_dir" && as_dir=.
1650   for ac_exec_ext in '' $ac_executable_extensions; do
1651   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1652     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1653        ac_prog_rejected=yes
1654        continue
1655      fi
1656     ac_cv_prog_CC="cc"
1657     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1658     break 2
1659   fi
1660 done
1661 done
1662
1663 if test $ac_prog_rejected = yes; then
1664   # We found a bogon in the path, so make sure we never use it.
1665   set dummy $ac_cv_prog_CC
1666   shift
1667   if test $# != 0; then
1668     # We chose a different compiler from the bogus one.
1669     # However, it has the same basename, so the bogon will be chosen
1670     # first if we set CC to just the basename; use the full file name.
1671     shift
1672     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1673   fi
1674 fi
1675 fi
1676 fi
1677 CC=$ac_cv_prog_CC
1678 if test -n "$CC"; then
1679   echo "$as_me:$LINENO: result: $CC" >&5
1680 echo "${ECHO_T}$CC" >&6
1681 else
1682   echo "$as_me:$LINENO: result: no" >&5
1683 echo "${ECHO_T}no" >&6
1684 fi
1685
1686 fi
1687 if test -z "$CC"; then
1688   if test -n "$ac_tool_prefix"; then
1689   for ac_prog in cl
1690   do
1691     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1692 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1693 echo "$as_me:$LINENO: checking for $ac_word" >&5
1694 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1695 if test "${ac_cv_prog_CC+set}" = set; then
1696   echo $ECHO_N "(cached) $ECHO_C" >&6
1697 else
1698   if test -n "$CC"; then
1699   ac_cv_prog_CC="$CC" # Let the user override the test.
1700 else
1701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1702 for as_dir in $PATH
1703 do
1704   IFS=$as_save_IFS
1705   test -z "$as_dir" && as_dir=.
1706   for ac_exec_ext in '' $ac_executable_extensions; do
1707   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1708     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1709     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1710     break 2
1711   fi
1712 done
1713 done
1714
1715 fi
1716 fi
1717 CC=$ac_cv_prog_CC
1718 if test -n "$CC"; then
1719   echo "$as_me:$LINENO: result: $CC" >&5
1720 echo "${ECHO_T}$CC" >&6
1721 else
1722   echo "$as_me:$LINENO: result: no" >&5
1723 echo "${ECHO_T}no" >&6
1724 fi
1725
1726     test -n "$CC" && break
1727   done
1728 fi
1729 if test -z "$CC"; then
1730   ac_ct_CC=$CC
1731   for ac_prog in cl
1732 do
1733   # Extract the first word of "$ac_prog", so it can be a program name with args.
1734 set dummy $ac_prog; ac_word=$2
1735 echo "$as_me:$LINENO: checking for $ac_word" >&5
1736 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1737 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1738   echo $ECHO_N "(cached) $ECHO_C" >&6
1739 else
1740   if test -n "$ac_ct_CC"; then
1741   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1742 else
1743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1744 for as_dir in $PATH
1745 do
1746   IFS=$as_save_IFS
1747   test -z "$as_dir" && as_dir=.
1748   for ac_exec_ext in '' $ac_executable_extensions; do
1749   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1750     ac_cv_prog_ac_ct_CC="$ac_prog"
1751     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1752     break 2
1753   fi
1754 done
1755 done
1756
1757 fi
1758 fi
1759 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1760 if test -n "$ac_ct_CC"; then
1761   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1762 echo "${ECHO_T}$ac_ct_CC" >&6
1763 else
1764   echo "$as_me:$LINENO: result: no" >&5
1765 echo "${ECHO_T}no" >&6
1766 fi
1767
1768   test -n "$ac_ct_CC" && break
1769 done
1770
1771   CC=$ac_ct_CC
1772 fi
1773
1774 fi
1775
1776
1777 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1778 See \`config.log' for more details." >&5
1779 echo "$as_me: error: no acceptable C compiler found in \$PATH
1780 See \`config.log' for more details." >&2;}
1781    { (exit 1); exit 1; }; }
1782
1783 # Provide some information about the compiler.
1784 echo "$as_me:$LINENO:" \
1785      "checking for C compiler version" >&5
1786 ac_compiler=`set X $ac_compile; echo $2`
1787 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1788   (eval $ac_compiler --version </dev/null >&5) 2>&5
1789   ac_status=$?
1790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1791   (exit $ac_status); }
1792 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1793   (eval $ac_compiler -v </dev/null >&5) 2>&5
1794   ac_status=$?
1795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1796   (exit $ac_status); }
1797 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1798   (eval $ac_compiler -V </dev/null >&5) 2>&5
1799   ac_status=$?
1800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1801   (exit $ac_status); }
1802
1803 cat >conftest.$ac_ext <<_ACEOF
1804 #line $LINENO "configure"
1805 /* confdefs.h.  */
1806 _ACEOF
1807 cat confdefs.h >>conftest.$ac_ext
1808 cat >>conftest.$ac_ext <<_ACEOF
1809 /* end confdefs.h.  */
1810
1811 int
1812 main ()
1813 {
1814
1815   ;
1816   return 0;
1817 }
1818 _ACEOF
1819 ac_clean_files_save=$ac_clean_files
1820 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1821 # Try to create an executable without -o first, disregard a.out.
1822 # It will help us diagnose broken compilers, and finding out an intuition
1823 # of exeext.
1824 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1825 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1826 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1827 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1828   (eval $ac_link_default) 2>&5
1829   ac_status=$?
1830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1831   (exit $ac_status); }; then
1832   # Find the output, starting from the most likely.  This scheme is
1833 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1834 # resort.
1835
1836 # Be careful to initialize this variable, since it used to be cached.
1837 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1838 ac_cv_exeext=
1839 # b.out is created by i960 compilers.
1840 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1841 do
1842   test -f "$ac_file" || continue
1843   case $ac_file in
1844     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1845         ;;
1846     conftest.$ac_ext )
1847         # This is the source file.
1848         ;;
1849     [ab].out )
1850         # We found the default executable, but exeext='' is most
1851         # certainly right.
1852         break;;
1853     *.* )
1854         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1855         # FIXME: I believe we export ac_cv_exeext for Libtool,
1856         # but it would be cool to find out if it's true.  Does anybody
1857         # maintain Libtool? --akim.
1858         export ac_cv_exeext
1859         break;;
1860     * )
1861         break;;
1862   esac
1863 done
1864 else
1865   echo "$as_me: failed program was:" >&5
1866 sed 's/^/| /' conftest.$ac_ext >&5
1867
1868 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1869 See \`config.log' for more details." >&5
1870 echo "$as_me: error: C compiler cannot create executables
1871 See \`config.log' for more details." >&2;}
1872    { (exit 77); exit 77; }; }
1873 fi
1874
1875 ac_exeext=$ac_cv_exeext
1876 echo "$as_me:$LINENO: result: $ac_file" >&5
1877 echo "${ECHO_T}$ac_file" >&6
1878
1879 # Check the compiler produces executables we can run.  If not, either
1880 # the compiler is broken, or we cross compile.
1881 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1882 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1883 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1884 # If not cross compiling, check that we can run a simple program.
1885 if test "$cross_compiling" != yes; then
1886   if { ac_try='./$ac_file'
1887   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1888   (eval $ac_try) 2>&5
1889   ac_status=$?
1890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1891   (exit $ac_status); }; }; then
1892     cross_compiling=no
1893   else
1894     if test "$cross_compiling" = maybe; then
1895         cross_compiling=yes
1896     else
1897         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1898 If you meant to cross compile, use \`--host'.
1899 See \`config.log' for more details." >&5
1900 echo "$as_me: error: cannot run C compiled programs.
1901 If you meant to cross compile, use \`--host'.
1902 See \`config.log' for more details." >&2;}
1903    { (exit 1); exit 1; }; }
1904     fi
1905   fi
1906 fi
1907 echo "$as_me:$LINENO: result: yes" >&5
1908 echo "${ECHO_T}yes" >&6
1909
1910 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1911 ac_clean_files=$ac_clean_files_save
1912 # Check the compiler produces executables we can run.  If not, either
1913 # the compiler is broken, or we cross compile.
1914 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1915 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1916 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1917 echo "${ECHO_T}$cross_compiling" >&6
1918
1919 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1920 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1921 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1922   (eval $ac_link) 2>&5
1923   ac_status=$?
1924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1925   (exit $ac_status); }; then
1926   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1927 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1928 # work properly (i.e., refer to `conftest.exe'), while it won't with
1929 # `rm'.
1930 for ac_file in conftest.exe conftest conftest.*; do
1931   test -f "$ac_file" || continue
1932   case $ac_file in
1933     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1934     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1935           export ac_cv_exeext
1936           break;;
1937     * ) break;;
1938   esac
1939 done
1940 else
1941   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1942 See \`config.log' for more details." >&5
1943 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1944 See \`config.log' for more details." >&2;}
1945    { (exit 1); exit 1; }; }
1946 fi
1947
1948 rm -f conftest$ac_cv_exeext
1949 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1950 echo "${ECHO_T}$ac_cv_exeext" >&6
1951
1952 rm -f conftest.$ac_ext
1953 EXEEXT=$ac_cv_exeext
1954 ac_exeext=$EXEEXT
1955 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1956 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1957 if test "${ac_cv_objext+set}" = set; then
1958   echo $ECHO_N "(cached) $ECHO_C" >&6
1959 else
1960   cat >conftest.$ac_ext <<_ACEOF
1961 #line $LINENO "configure"
1962 /* confdefs.h.  */
1963 _ACEOF
1964 cat confdefs.h >>conftest.$ac_ext
1965 cat >>conftest.$ac_ext <<_ACEOF
1966 /* end confdefs.h.  */
1967
1968 int
1969 main ()
1970 {
1971
1972   ;
1973   return 0;
1974 }
1975 _ACEOF
1976 rm -f conftest.o conftest.obj
1977 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1978   (eval $ac_compile) 2>&5
1979   ac_status=$?
1980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1981   (exit $ac_status); }; then
1982   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1983   case $ac_file in
1984     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1985     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1986        break;;
1987   esac
1988 done
1989 else
1990   echo "$as_me: failed program was:" >&5
1991 sed 's/^/| /' conftest.$ac_ext >&5
1992
1993 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1994 See \`config.log' for more details." >&5
1995 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1996 See \`config.log' for more details." >&2;}
1997    { (exit 1); exit 1; }; }
1998 fi
1999
2000 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2001 fi
2002 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2003 echo "${ECHO_T}$ac_cv_objext" >&6
2004 OBJEXT=$ac_cv_objext
2005 ac_objext=$OBJEXT
2006 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2007 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2008 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2009   echo $ECHO_N "(cached) $ECHO_C" >&6
2010 else
2011   cat >conftest.$ac_ext <<_ACEOF
2012 #line $LINENO "configure"
2013 /* confdefs.h.  */
2014 _ACEOF
2015 cat confdefs.h >>conftest.$ac_ext
2016 cat >>conftest.$ac_ext <<_ACEOF
2017 /* end confdefs.h.  */
2018
2019 int
2020 main ()
2021 {
2022 #ifndef __GNUC__
2023        choke me
2024 #endif
2025
2026   ;
2027   return 0;
2028 }
2029 _ACEOF
2030 rm -f conftest.$ac_objext
2031 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2032   (eval $ac_compile) 2>&5
2033   ac_status=$?
2034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2035   (exit $ac_status); } &&
2036          { ac_try='test -s conftest.$ac_objext'
2037   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2038   (eval $ac_try) 2>&5
2039   ac_status=$?
2040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2041   (exit $ac_status); }; }; then
2042   ac_compiler_gnu=yes
2043 else
2044   echo "$as_me: failed program was:" >&5
2045 sed 's/^/| /' conftest.$ac_ext >&5
2046
2047 ac_compiler_gnu=no
2048 fi
2049 rm -f conftest.$ac_objext conftest.$ac_ext
2050 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2051
2052 fi
2053 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2054 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2055 GCC=`test $ac_compiler_gnu = yes && echo yes`
2056 ac_test_CFLAGS=${CFLAGS+set}
2057 ac_save_CFLAGS=$CFLAGS
2058 CFLAGS="-g"
2059 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2060 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2061 if test "${ac_cv_prog_cc_g+set}" = set; then
2062   echo $ECHO_N "(cached) $ECHO_C" >&6
2063 else
2064   cat >conftest.$ac_ext <<_ACEOF
2065 #line $LINENO "configure"
2066 /* confdefs.h.  */
2067 _ACEOF
2068 cat confdefs.h >>conftest.$ac_ext
2069 cat >>conftest.$ac_ext <<_ACEOF
2070 /* end confdefs.h.  */
2071
2072 int
2073 main ()
2074 {
2075
2076   ;
2077   return 0;
2078 }
2079 _ACEOF
2080 rm -f conftest.$ac_objext
2081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2082   (eval $ac_compile) 2>&5
2083   ac_status=$?
2084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2085   (exit $ac_status); } &&
2086          { ac_try='test -s conftest.$ac_objext'
2087   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2088   (eval $ac_try) 2>&5
2089   ac_status=$?
2090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2091   (exit $ac_status); }; }; then
2092   ac_cv_prog_cc_g=yes
2093 else
2094   echo "$as_me: failed program was:" >&5
2095 sed 's/^/| /' conftest.$ac_ext >&5
2096
2097 ac_cv_prog_cc_g=no
2098 fi
2099 rm -f conftest.$ac_objext conftest.$ac_ext
2100 fi
2101 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2102 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2103 if test "$ac_test_CFLAGS" = set; then
2104   CFLAGS=$ac_save_CFLAGS
2105 elif test $ac_cv_prog_cc_g = yes; then
2106   if test "$GCC" = yes; then
2107     CFLAGS="-g -O2"
2108   else
2109     CFLAGS="-g"
2110   fi
2111 else
2112   if test "$GCC" = yes; then
2113     CFLAGS="-O2"
2114   else
2115     CFLAGS=
2116   fi
2117 fi
2118 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2119 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2120 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2121   echo $ECHO_N "(cached) $ECHO_C" >&6
2122 else
2123   ac_cv_prog_cc_stdc=no
2124 ac_save_CC=$CC
2125 cat >conftest.$ac_ext <<_ACEOF
2126 #line $LINENO "configure"
2127 /* confdefs.h.  */
2128 _ACEOF
2129 cat confdefs.h >>conftest.$ac_ext
2130 cat >>conftest.$ac_ext <<_ACEOF
2131 /* end confdefs.h.  */
2132 #include <stdarg.h>
2133 #include <stdio.h>
2134 #include <sys/types.h>
2135 #include <sys/stat.h>
2136 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2137 struct buf { int x; };
2138 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2139 static char *e (p, i)
2140      char **p;
2141      int i;
2142 {
2143   return p[i];
2144 }
2145 static char *f (char * (*g) (char **, int), char **p, ...)
2146 {
2147   char *s;
2148   va_list v;
2149   va_start (v,p);
2150   s = g (p, va_arg (v,int));
2151   va_end (v);
2152   return s;
2153 }
2154 int test (int i, double x);
2155 struct s1 {int (*f) (int a);};
2156 struct s2 {int (*f) (double a);};
2157 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2158 int argc;
2159 char **argv;
2160 int
2161 main ()
2162 {
2163 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2164   ;
2165   return 0;
2166 }
2167 _ACEOF
2168 # Don't try gcc -ansi; that turns off useful extensions and
2169 # breaks some systems' header files.
2170 # AIX                   -qlanglvl=ansi
2171 # Ultrix and OSF/1      -std1
2172 # HP-UX 10.20 and later -Ae
2173 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2174 # SVR4                  -Xc -D__EXTENSIONS__
2175 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2176 do
2177   CC="$ac_save_CC $ac_arg"
2178   rm -f conftest.$ac_objext
2179 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2180   (eval $ac_compile) 2>&5
2181   ac_status=$?
2182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2183   (exit $ac_status); } &&
2184          { ac_try='test -s conftest.$ac_objext'
2185   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2186   (eval $ac_try) 2>&5
2187   ac_status=$?
2188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2189   (exit $ac_status); }; }; then
2190   ac_cv_prog_cc_stdc=$ac_arg
2191 break
2192 else
2193   echo "$as_me: failed program was:" >&5
2194 sed 's/^/| /' conftest.$ac_ext >&5
2195
2196 fi
2197 rm -f conftest.$ac_objext
2198 done
2199 rm -f conftest.$ac_ext conftest.$ac_objext
2200 CC=$ac_save_CC
2201
2202 fi
2203
2204 case "x$ac_cv_prog_cc_stdc" in
2205   x|xno)
2206     echo "$as_me:$LINENO: result: none needed" >&5
2207 echo "${ECHO_T}none needed" >&6 ;;
2208   *)
2209     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2210 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2211     CC="$CC $ac_cv_prog_cc_stdc" ;;
2212 esac
2213
2214 # Some people use a C++ compiler to compile C.  Since we use `exit',
2215 # in C++ we need to declare it.  In case someone uses the same compiler
2216 # for both compiling C and C++ we need to have the C++ compiler decide
2217 # the declaration of exit, since it's the most demanding environment.
2218 cat >conftest.$ac_ext <<_ACEOF
2219 #ifndef __cplusplus
2220   choke me
2221 #endif
2222 _ACEOF
2223 rm -f conftest.$ac_objext
2224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2225   (eval $ac_compile) 2>&5
2226   ac_status=$?
2227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2228   (exit $ac_status); } &&
2229          { ac_try='test -s conftest.$ac_objext'
2230   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2231   (eval $ac_try) 2>&5
2232   ac_status=$?
2233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2234   (exit $ac_status); }; }; then
2235   for ac_declaration in \
2236    ''\
2237    '#include <stdlib.h>' \
2238    'extern "C" void std::exit (int) throw (); using std::exit;' \
2239    'extern "C" void std::exit (int); using std::exit;' \
2240    'extern "C" void exit (int) throw ();' \
2241    'extern "C" void exit (int);' \
2242    'void exit (int);'
2243 do
2244   cat >conftest.$ac_ext <<_ACEOF
2245 #line $LINENO "configure"
2246 /* confdefs.h.  */
2247 _ACEOF
2248 cat confdefs.h >>conftest.$ac_ext
2249 cat >>conftest.$ac_ext <<_ACEOF
2250 /* end confdefs.h.  */
2251 #include <stdlib.h>
2252 $ac_declaration
2253 int
2254 main ()
2255 {
2256 exit (42);
2257   ;
2258   return 0;
2259 }
2260 _ACEOF
2261 rm -f conftest.$ac_objext
2262 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2263   (eval $ac_compile) 2>&5
2264   ac_status=$?
2265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2266   (exit $ac_status); } &&
2267          { ac_try='test -s conftest.$ac_objext'
2268   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2269   (eval $ac_try) 2>&5
2270   ac_status=$?
2271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2272   (exit $ac_status); }; }; then
2273   :
2274 else
2275   echo "$as_me: failed program was:" >&5
2276 sed 's/^/| /' conftest.$ac_ext >&5
2277
2278 continue
2279 fi
2280 rm -f conftest.$ac_objext conftest.$ac_ext
2281   cat >conftest.$ac_ext <<_ACEOF
2282 #line $LINENO "configure"
2283 /* confdefs.h.  */
2284 _ACEOF
2285 cat confdefs.h >>conftest.$ac_ext
2286 cat >>conftest.$ac_ext <<_ACEOF
2287 /* end confdefs.h.  */
2288 $ac_declaration
2289 int
2290 main ()
2291 {
2292 exit (42);
2293   ;
2294   return 0;
2295 }
2296 _ACEOF
2297 rm -f conftest.$ac_objext
2298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2299   (eval $ac_compile) 2>&5
2300   ac_status=$?
2301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2302   (exit $ac_status); } &&
2303          { ac_try='test -s conftest.$ac_objext'
2304   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2305   (eval $ac_try) 2>&5
2306   ac_status=$?
2307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2308   (exit $ac_status); }; }; then
2309   break
2310 else
2311   echo "$as_me: failed program was:" >&5
2312 sed 's/^/| /' conftest.$ac_ext >&5
2313
2314 fi
2315 rm -f conftest.$ac_objext conftest.$ac_ext
2316 done
2317 rm -f conftest*
2318 if test -n "$ac_declaration"; then
2319   echo '#ifdef __cplusplus' >>confdefs.h
2320   echo $ac_declaration      >>confdefs.h
2321   echo '#endif'             >>confdefs.h
2322 fi
2323
2324 else
2325   echo "$as_me: failed program was:" >&5
2326 sed 's/^/| /' conftest.$ac_ext >&5
2327
2328 fi
2329 rm -f conftest.$ac_objext conftest.$ac_ext
2330 ac_ext=c
2331 ac_cpp='$CPP $CPPFLAGS'
2332 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2333 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2334 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2335
2336 ac_ext=cc
2337 ac_cpp='$CXXCPP $CPPFLAGS'
2338 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2339 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2340 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2341 if test -n "$ac_tool_prefix"; then
2342   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2343   do
2344     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2345 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2346 echo "$as_me:$LINENO: checking for $ac_word" >&5
2347 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2348 if test "${ac_cv_prog_CXX+set}" = set; then
2349   echo $ECHO_N "(cached) $ECHO_C" >&6
2350 else
2351   if test -n "$CXX"; then
2352   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2353 else
2354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2355 for as_dir in $PATH
2356 do
2357   IFS=$as_save_IFS
2358   test -z "$as_dir" && as_dir=.
2359   for ac_exec_ext in '' $ac_executable_extensions; do
2360   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2361     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2362     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2363     break 2
2364   fi
2365 done
2366 done
2367
2368 fi
2369 fi
2370 CXX=$ac_cv_prog_CXX
2371 if test -n "$CXX"; then
2372   echo "$as_me:$LINENO: result: $CXX" >&5
2373 echo "${ECHO_T}$CXX" >&6
2374 else
2375   echo "$as_me:$LINENO: result: no" >&5
2376 echo "${ECHO_T}no" >&6
2377 fi
2378
2379     test -n "$CXX" && break
2380   done
2381 fi
2382 if test -z "$CXX"; then
2383   ac_ct_CXX=$CXX
2384   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2385 do
2386   # Extract the first word of "$ac_prog", so it can be a program name with args.
2387 set dummy $ac_prog; ac_word=$2
2388 echo "$as_me:$LINENO: checking for $ac_word" >&5
2389 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2390 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2391   echo $ECHO_N "(cached) $ECHO_C" >&6
2392 else
2393   if test -n "$ac_ct_CXX"; then
2394   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2395 else
2396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2397 for as_dir in $PATH
2398 do
2399   IFS=$as_save_IFS
2400   test -z "$as_dir" && as_dir=.
2401   for ac_exec_ext in '' $ac_executable_extensions; do
2402   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2403     ac_cv_prog_ac_ct_CXX="$ac_prog"
2404     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2405     break 2
2406   fi
2407 done
2408 done
2409
2410 fi
2411 fi
2412 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2413 if test -n "$ac_ct_CXX"; then
2414   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2415 echo "${ECHO_T}$ac_ct_CXX" >&6
2416 else
2417   echo "$as_me:$LINENO: result: no" >&5
2418 echo "${ECHO_T}no" >&6
2419 fi
2420
2421   test -n "$ac_ct_CXX" && break
2422 done
2423 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2424
2425   CXX=$ac_ct_CXX
2426 fi
2427
2428
2429 # Provide some information about the compiler.
2430 echo "$as_me:$LINENO:" \
2431      "checking for C++ compiler version" >&5
2432 ac_compiler=`set X $ac_compile; echo $2`
2433 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2434   (eval $ac_compiler --version </dev/null >&5) 2>&5
2435   ac_status=$?
2436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2437   (exit $ac_status); }
2438 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2439   (eval $ac_compiler -v </dev/null >&5) 2>&5
2440   ac_status=$?
2441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2442   (exit $ac_status); }
2443 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2444   (eval $ac_compiler -V </dev/null >&5) 2>&5
2445   ac_status=$?
2446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2447   (exit $ac_status); }
2448
2449 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2450 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2451 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2452   echo $ECHO_N "(cached) $ECHO_C" >&6
2453 else
2454   cat >conftest.$ac_ext <<_ACEOF
2455 #line $LINENO "configure"
2456 /* confdefs.h.  */
2457 _ACEOF
2458 cat confdefs.h >>conftest.$ac_ext
2459 cat >>conftest.$ac_ext <<_ACEOF
2460 /* end confdefs.h.  */
2461
2462 int
2463 main ()
2464 {
2465 #ifndef __GNUC__
2466        choke me
2467 #endif
2468
2469   ;
2470   return 0;
2471 }
2472 _ACEOF
2473 rm -f conftest.$ac_objext
2474 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2475   (eval $ac_compile) 2>&5
2476   ac_status=$?
2477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2478   (exit $ac_status); } &&
2479          { ac_try='test -s conftest.$ac_objext'
2480   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2481   (eval $ac_try) 2>&5
2482   ac_status=$?
2483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2484   (exit $ac_status); }; }; then
2485   ac_compiler_gnu=yes
2486 else
2487   echo "$as_me: failed program was:" >&5
2488 sed 's/^/| /' conftest.$ac_ext >&5
2489
2490 ac_compiler_gnu=no
2491 fi
2492 rm -f conftest.$ac_objext conftest.$ac_ext
2493 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2494
2495 fi
2496 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2497 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2498 GXX=`test $ac_compiler_gnu = yes && echo yes`
2499 ac_test_CXXFLAGS=${CXXFLAGS+set}
2500 ac_save_CXXFLAGS=$CXXFLAGS
2501 CXXFLAGS="-g"
2502 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2503 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2504 if test "${ac_cv_prog_cxx_g+set}" = set; then
2505   echo $ECHO_N "(cached) $ECHO_C" >&6
2506 else
2507   cat >conftest.$ac_ext <<_ACEOF
2508 #line $LINENO "configure"
2509 /* confdefs.h.  */
2510 _ACEOF
2511 cat confdefs.h >>conftest.$ac_ext
2512 cat >>conftest.$ac_ext <<_ACEOF
2513 /* end confdefs.h.  */
2514
2515 int
2516 main ()
2517 {
2518
2519   ;
2520   return 0;
2521 }
2522 _ACEOF
2523 rm -f conftest.$ac_objext
2524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2525   (eval $ac_compile) 2>&5
2526   ac_status=$?
2527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2528   (exit $ac_status); } &&
2529          { ac_try='test -s conftest.$ac_objext'
2530   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2531   (eval $ac_try) 2>&5
2532   ac_status=$?
2533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2534   (exit $ac_status); }; }; then
2535   ac_cv_prog_cxx_g=yes
2536 else
2537   echo "$as_me: failed program was:" >&5
2538 sed 's/^/| /' conftest.$ac_ext >&5
2539
2540 ac_cv_prog_cxx_g=no
2541 fi
2542 rm -f conftest.$ac_objext conftest.$ac_ext
2543 fi
2544 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2545 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2546 if test "$ac_test_CXXFLAGS" = set; then
2547   CXXFLAGS=$ac_save_CXXFLAGS
2548 elif test $ac_cv_prog_cxx_g = yes; then
2549   if test "$GXX" = yes; then
2550     CXXFLAGS="-g -O2"
2551   else
2552     CXXFLAGS="-g"
2553   fi
2554 else
2555   if test "$GXX" = yes; then
2556     CXXFLAGS="-O2"
2557   else
2558     CXXFLAGS=
2559   fi
2560 fi
2561 for ac_declaration in \
2562    ''\
2563    '#include <stdlib.h>' \
2564    'extern "C" void std::exit (int) throw (); using std::exit;' \
2565    'extern "C" void std::exit (int); using std::exit;' \
2566    'extern "C" void exit (int) throw ();' \
2567    'extern "C" void exit (int);' \
2568    'void exit (int);'
2569 do
2570   cat >conftest.$ac_ext <<_ACEOF
2571 #line $LINENO "configure"
2572 /* confdefs.h.  */
2573 _ACEOF
2574 cat confdefs.h >>conftest.$ac_ext
2575 cat >>conftest.$ac_ext <<_ACEOF
2576 /* end confdefs.h.  */
2577 #include <stdlib.h>
2578 $ac_declaration
2579 int
2580 main ()
2581 {
2582 exit (42);
2583   ;
2584   return 0;
2585 }
2586 _ACEOF
2587 rm -f conftest.$ac_objext
2588 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2589   (eval $ac_compile) 2>&5
2590   ac_status=$?
2591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2592   (exit $ac_status); } &&
2593          { ac_try='test -s conftest.$ac_objext'
2594   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2595   (eval $ac_try) 2>&5
2596   ac_status=$?
2597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2598   (exit $ac_status); }; }; then
2599   :
2600 else
2601   echo "$as_me: failed program was:" >&5
2602 sed 's/^/| /' conftest.$ac_ext >&5
2603
2604 continue
2605 fi
2606 rm -f conftest.$ac_objext conftest.$ac_ext
2607   cat >conftest.$ac_ext <<_ACEOF
2608 #line $LINENO "configure"
2609 /* confdefs.h.  */
2610 _ACEOF
2611 cat confdefs.h >>conftest.$ac_ext
2612 cat >>conftest.$ac_ext <<_ACEOF
2613 /* end confdefs.h.  */
2614 $ac_declaration
2615 int
2616 main ()
2617 {
2618 exit (42);
2619   ;
2620   return 0;
2621 }
2622 _ACEOF
2623 rm -f conftest.$ac_objext
2624 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2625   (eval $ac_compile) 2>&5
2626   ac_status=$?
2627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2628   (exit $ac_status); } &&
2629          { ac_try='test -s conftest.$ac_objext'
2630   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2631   (eval $ac_try) 2>&5
2632   ac_status=$?
2633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2634   (exit $ac_status); }; }; then
2635   break
2636 else
2637   echo "$as_me: failed program was:" >&5
2638 sed 's/^/| /' conftest.$ac_ext >&5
2639
2640 fi
2641 rm -f conftest.$ac_objext conftest.$ac_ext
2642 done
2643 rm -f conftest*
2644 if test -n "$ac_declaration"; then
2645   echo '#ifdef __cplusplus' >>confdefs.h
2646   echo $ac_declaration      >>confdefs.h
2647   echo '#endif'             >>confdefs.h
2648 fi
2649
2650 ac_ext=c
2651 ac_cpp='$CPP $CPPFLAGS'
2652 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2653 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2654 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2655
2656 if test "x$CC" != xcc; then
2657   echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2658 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2659 else
2660   echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2661 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2662 fi
2663 set dummy $CC; ac_cc=`echo $2 |
2664                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2665 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2666   echo $ECHO_N "(cached) $ECHO_C" >&6
2667 else
2668   cat >conftest.$ac_ext <<_ACEOF
2669 #line $LINENO "configure"
2670 /* confdefs.h.  */
2671 _ACEOF
2672 cat confdefs.h >>conftest.$ac_ext
2673 cat >>conftest.$ac_ext <<_ACEOF
2674 /* end confdefs.h.  */
2675
2676 int
2677 main ()
2678 {
2679
2680   ;
2681   return 0;
2682 }
2683 _ACEOF
2684 # Make sure it works both with $CC and with simple cc.
2685 # We do the test twice because some compilers refuse to overwrite an
2686 # existing .o file with -o, though they will create one.
2687 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2688 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2689   (eval $ac_try) 2>&5
2690   ac_status=$?
2691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2692   (exit $ac_status); } &&
2693    test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2694   (eval $ac_try) 2>&5
2695   ac_status=$?
2696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2697   (exit $ac_status); };
2698 then
2699   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2700   if test "x$CC" != xcc; then
2701     # Test first that cc exists at all.
2702     if { ac_try='cc -c conftest.$ac_ext >&5'
2703   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2704   (eval $ac_try) 2>&5
2705   ac_status=$?
2706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2707   (exit $ac_status); }; }; then
2708       ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2709       if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2710   (eval $ac_try) 2>&5
2711   ac_status=$?
2712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2713   (exit $ac_status); } &&
2714          test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2715   (eval $ac_try) 2>&5
2716   ac_status=$?
2717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2718   (exit $ac_status); };
2719       then
2720         # cc works too.
2721         :
2722       else
2723         # cc exists but doesn't like -o.
2724         eval ac_cv_prog_cc_${ac_cc}_c_o=no
2725       fi
2726     fi
2727   fi
2728 else
2729   eval ac_cv_prog_cc_${ac_cc}_c_o=no
2730 fi
2731 rm -f conftest*
2732
2733 fi
2734 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2735   echo "$as_me:$LINENO: result: yes" >&5
2736 echo "${ECHO_T}yes" >&6
2737 else
2738   echo "$as_me:$LINENO: result: no" >&5
2739 echo "${ECHO_T}no" >&6
2740
2741 cat >>confdefs.h <<\_ACEOF
2742 #define NO_MINUS_C_MINUS_O 1
2743 _ACEOF
2744
2745 fi
2746
2747 ac_ext=c
2748 ac_cpp='$CPP $CPPFLAGS'
2749 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2750 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2751 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2752 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2753 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2754 # On Suns, sometimes $CPP names a directory.
2755 if test -n "$CPP" && test -d "$CPP"; then
2756   CPP=
2757 fi
2758 if test -z "$CPP"; then
2759   if test "${ac_cv_prog_CPP+set}" = set; then
2760   echo $ECHO_N "(cached) $ECHO_C" >&6
2761 else
2762       # Double quotes because CPP needs to be expanded
2763     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2764     do
2765       ac_preproc_ok=false
2766 for ac_c_preproc_warn_flag in '' yes
2767 do
2768   # Use a header file that comes with gcc, so configuring glibc
2769   # with a fresh cross-compiler works.
2770   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2771   # <limits.h> exists even on freestanding compilers.
2772   # On the NeXT, cc -E runs the code through the compiler's parser,
2773   # not just through cpp. "Syntax error" is here to catch this case.
2774   cat >conftest.$ac_ext <<_ACEOF
2775 #line $LINENO "configure"
2776 /* confdefs.h.  */
2777 _ACEOF
2778 cat confdefs.h >>conftest.$ac_ext
2779 cat >>conftest.$ac_ext <<_ACEOF
2780 /* end confdefs.h.  */
2781 #ifdef __STDC__
2782 # include <limits.h>
2783 #else
2784 # include <assert.h>
2785 #endif
2786                      Syntax error
2787 _ACEOF
2788 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2789   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2790   ac_status=$?
2791   grep -v '^ *+' conftest.er1 >conftest.err
2792   rm -f conftest.er1
2793   cat conftest.err >&5
2794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2795   (exit $ac_status); } >/dev/null; then
2796   if test -s conftest.err; then
2797     ac_cpp_err=$ac_c_preproc_warn_flag
2798   else
2799     ac_cpp_err=
2800   fi
2801 else
2802   ac_cpp_err=yes
2803 fi
2804 if test -z "$ac_cpp_err"; then
2805   :
2806 else
2807   echo "$as_me: failed program was:" >&5
2808 sed 's/^/| /' conftest.$ac_ext >&5
2809
2810   # Broken: fails on valid input.
2811 continue
2812 fi
2813 rm -f conftest.err conftest.$ac_ext
2814
2815   # OK, works on sane cases.  Now check whether non-existent headers
2816   # can be detected and how.
2817   cat >conftest.$ac_ext <<_ACEOF
2818 #line $LINENO "configure"
2819 /* confdefs.h.  */
2820 _ACEOF
2821 cat confdefs.h >>conftest.$ac_ext
2822 cat >>conftest.$ac_ext <<_ACEOF
2823 /* end confdefs.h.  */
2824 #include <ac_nonexistent.h>
2825 _ACEOF
2826 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2827   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2828   ac_status=$?
2829   grep -v '^ *+' conftest.er1 >conftest.err
2830   rm -f conftest.er1
2831   cat conftest.err >&5
2832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2833   (exit $ac_status); } >/dev/null; then
2834   if test -s conftest.err; then
2835     ac_cpp_err=$ac_c_preproc_warn_flag
2836   else
2837     ac_cpp_err=
2838   fi
2839 else
2840   ac_cpp_err=yes
2841 fi
2842 if test -z "$ac_cpp_err"; then
2843   # Broken: success on invalid input.
2844 continue
2845 else
2846   echo "$as_me: failed program was:" >&5
2847 sed 's/^/| /' conftest.$ac_ext >&5
2848
2849   # Passes both tests.
2850 ac_preproc_ok=:
2851 break
2852 fi
2853 rm -f conftest.err conftest.$ac_ext
2854
2855 done
2856 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2857 rm -f conftest.err conftest.$ac_ext
2858 if $ac_preproc_ok; then
2859   break
2860 fi
2861
2862     done
2863     ac_cv_prog_CPP=$CPP
2864
2865 fi
2866   CPP=$ac_cv_prog_CPP
2867 else
2868   ac_cv_prog_CPP=$CPP
2869 fi
2870 echo "$as_me:$LINENO: result: $CPP" >&5
2871 echo "${ECHO_T}$CPP" >&6
2872 ac_preproc_ok=false
2873 for ac_c_preproc_warn_flag in '' yes
2874 do
2875   # Use a header file that comes with gcc, so configuring glibc
2876   # with a fresh cross-compiler works.
2877   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2878   # <limits.h> exists even on freestanding compilers.
2879   # On the NeXT, cc -E runs the code through the compiler's parser,
2880   # not just through cpp. "Syntax error" is here to catch this case.
2881   cat >conftest.$ac_ext <<_ACEOF
2882 #line $LINENO "configure"
2883 /* confdefs.h.  */
2884 _ACEOF
2885 cat confdefs.h >>conftest.$ac_ext
2886 cat >>conftest.$ac_ext <<_ACEOF
2887 /* end confdefs.h.  */
2888 #ifdef __STDC__
2889 # include <limits.h>
2890 #else
2891 # include <assert.h>
2892 #endif
2893                      Syntax error
2894 _ACEOF
2895 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2896   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2897   ac_status=$?
2898   grep -v '^ *+' conftest.er1 >conftest.err
2899   rm -f conftest.er1
2900   cat conftest.err >&5
2901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2902   (exit $ac_status); } >/dev/null; then
2903   if test -s conftest.err; then
2904     ac_cpp_err=$ac_c_preproc_warn_flag
2905   else
2906     ac_cpp_err=
2907   fi
2908 else
2909   ac_cpp_err=yes
2910 fi
2911 if test -z "$ac_cpp_err"; then
2912   :
2913 else
2914   echo "$as_me: failed program was:" >&5
2915 sed 's/^/| /' conftest.$ac_ext >&5
2916
2917   # Broken: fails on valid input.
2918 continue
2919 fi
2920 rm -f conftest.err conftest.$ac_ext
2921
2922   # OK, works on sane cases.  Now check whether non-existent headers
2923   # can be detected and how.
2924   cat >conftest.$ac_ext <<_ACEOF
2925 #line $LINENO "configure"
2926 /* confdefs.h.  */
2927 _ACEOF
2928 cat confdefs.h >>conftest.$ac_ext
2929 cat >>conftest.$ac_ext <<_ACEOF
2930 /* end confdefs.h.  */
2931 #include <ac_nonexistent.h>
2932 _ACEOF
2933 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2934   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2935   ac_status=$?
2936   grep -v '^ *+' conftest.er1 >conftest.err
2937   rm -f conftest.er1
2938   cat conftest.err >&5
2939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2940   (exit $ac_status); } >/dev/null; then
2941   if test -s conftest.err; then
2942     ac_cpp_err=$ac_c_preproc_warn_flag
2943   else
2944     ac_cpp_err=
2945   fi
2946 else
2947   ac_cpp_err=yes
2948 fi
2949 if test -z "$ac_cpp_err"; then
2950   # Broken: success on invalid input.
2951 continue
2952 else
2953   echo "$as_me: failed program was:" >&5
2954 sed 's/^/| /' conftest.$ac_ext >&5
2955
2956   # Passes both tests.
2957 ac_preproc_ok=:
2958 break
2959 fi
2960 rm -f conftest.err conftest.$ac_ext
2961
2962 done
2963 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2964 rm -f conftest.err conftest.$ac_ext
2965 if $ac_preproc_ok; then
2966   :
2967 else
2968   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2969 See \`config.log' for more details." >&5
2970 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2971 See \`config.log' for more details." >&2;}
2972    { (exit 1); exit 1; }; }
2973 fi
2974
2975 ac_ext=c
2976 ac_cpp='$CPP $CPPFLAGS'
2977 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2978 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2979 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2980
2981
2982 echo "$as_me:$LINENO: checking for egrep" >&5
2983 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2984 if test "${ac_cv_prog_egrep+set}" = set; then
2985   echo $ECHO_N "(cached) $ECHO_C" >&6
2986 else
2987   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2988     then ac_cv_prog_egrep='grep -E'
2989     else ac_cv_prog_egrep='egrep'
2990     fi
2991 fi
2992 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2993 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2994  EGREP=$ac_cv_prog_egrep
2995
2996
2997 if test $ac_cv_c_compiler_gnu = yes; then
2998     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
2999 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3000 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3001   echo $ECHO_N "(cached) $ECHO_C" >&6
3002 else
3003     ac_pattern="Autoconf.*'x'"
3004   cat >conftest.$ac_ext <<_ACEOF
3005 #line $LINENO "configure"
3006 /* confdefs.h.  */
3007 _ACEOF
3008 cat confdefs.h >>conftest.$ac_ext
3009 cat >>conftest.$ac_ext <<_ACEOF
3010 /* end confdefs.h.  */
3011 #include <sgtty.h>
3012 Autoconf TIOCGETP
3013 _ACEOF
3014 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3015   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3016   ac_cv_prog_gcc_traditional=yes
3017 else
3018   ac_cv_prog_gcc_traditional=no
3019 fi
3020 rm -f conftest*
3021
3022
3023   if test $ac_cv_prog_gcc_traditional = no; then
3024     cat >conftest.$ac_ext <<_ACEOF
3025 #line $LINENO "configure"
3026 /* confdefs.h.  */
3027 _ACEOF
3028 cat confdefs.h >>conftest.$ac_ext
3029 cat >>conftest.$ac_ext <<_ACEOF
3030 /* end confdefs.h.  */
3031 #include <termio.h>
3032 Autoconf TCGETA
3033 _ACEOF
3034 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3035   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3036   ac_cv_prog_gcc_traditional=yes
3037 fi
3038 rm -f conftest*
3039
3040   fi
3041 fi
3042 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3043 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3044   if test $ac_cv_prog_gcc_traditional = yes; then
3045     CC="$CC -traditional"
3046   fi
3047 fi
3048
3049 if test x$CC = xgcc
3050 then
3051    cat >>confdefs.h <<\_ACEOF
3052 #define HAVE_GCC 1
3053 _ACEOF
3054
3055 fi
3056
3057 # Find a good install program.  We prefer a C program (faster),
3058 # so one script is as good as another.  But avoid the broken or
3059 # incompatible versions:
3060 # SysV /etc/install, /usr/sbin/install
3061 # SunOS /usr/etc/install
3062 # IRIX /sbin/install
3063 # AIX /bin/install
3064 # AmigaOS /C/install, which installs bootblocks on floppy discs
3065 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3066 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3067 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3068 # ./install, which can be erroneously created by make from ./install.sh.
3069 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3070 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3071 if test -z "$INSTALL"; then
3072 if test "${ac_cv_path_install+set}" = set; then
3073   echo $ECHO_N "(cached) $ECHO_C" >&6
3074 else
3075   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3076 for as_dir in $PATH
3077 do
3078   IFS=$as_save_IFS
3079   test -z "$as_dir" && as_dir=.
3080   # Account for people who put trailing slashes in PATH elements.
3081 case $as_dir/ in
3082   ./ | .// | /cC/* | \
3083   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3084   /usr/ucb/* ) ;;
3085   *)
3086     # OSF1 and SCO ODT 3.0 have their own names for install.
3087     # Don't use installbsd from OSF since it installs stuff as root
3088     # by default.
3089     for ac_prog in ginstall scoinst install; do
3090       for ac_exec_ext in '' $ac_executable_extensions; do
3091         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3092           if test $ac_prog = install &&
3093             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3094             # AIX install.  It has an incompatible calling convention.
3095             :
3096           elif test $ac_prog = install &&
3097             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3098             # program-specific install script used by HP pwplus--don't use.
3099             :
3100           else
3101             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3102             break 3
3103           fi
3104         fi
3105       done
3106     done
3107     ;;
3108 esac
3109 done
3110
3111
3112 fi
3113   if test "${ac_cv_path_install+set}" = set; then
3114     INSTALL=$ac_cv_path_install
3115   else
3116     # As a last resort, use the slow shell script.  We don't cache a
3117     # path for INSTALL within a source directory, because that will
3118     # break other packages using the cache if that directory is
3119     # removed, or if the path is relative.
3120     INSTALL=$ac_install_sh
3121   fi
3122 fi
3123 echo "$as_me:$LINENO: result: $INSTALL" >&5
3124 echo "${ECHO_T}$INSTALL" >&6
3125
3126 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3127 # It thinks the first close brace ends the variable substitution.
3128 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3129
3130 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3131
3132 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3133
3134 if test -n "$ac_tool_prefix"; then
3135   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3136 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3137 echo "$as_me:$LINENO: checking for $ac_word" >&5
3138 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3139 if test "${ac_cv_prog_RANLIB+set}" = set; then
3140   echo $ECHO_N "(cached) $ECHO_C" >&6
3141 else
3142   if test -n "$RANLIB"; then
3143   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3144 else
3145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3146 for as_dir in $PATH
3147 do
3148   IFS=$as_save_IFS
3149   test -z "$as_dir" && as_dir=.
3150   for ac_exec_ext in '' $ac_executable_extensions; do
3151   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3152     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3153     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3154     break 2
3155   fi
3156 done
3157 done
3158
3159 fi
3160 fi
3161 RANLIB=$ac_cv_prog_RANLIB
3162 if test -n "$RANLIB"; then
3163   echo "$as_me:$LINENO: result: $RANLIB" >&5
3164 echo "${ECHO_T}$RANLIB" >&6
3165 else
3166   echo "$as_me:$LINENO: result: no" >&5
3167 echo "${ECHO_T}no" >&6
3168 fi
3169
3170 fi
3171 if test -z "$ac_cv_prog_RANLIB"; then
3172   ac_ct_RANLIB=$RANLIB
3173   # Extract the first word of "ranlib", so it can be a program name with args.
3174 set dummy ranlib; ac_word=$2
3175 echo "$as_me:$LINENO: checking for $ac_word" >&5
3176 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3177 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3178   echo $ECHO_N "(cached) $ECHO_C" >&6
3179 else
3180   if test -n "$ac_ct_RANLIB"; then
3181   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3182 else
3183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3184 for as_dir in $PATH
3185 do
3186   IFS=$as_save_IFS
3187   test -z "$as_dir" && as_dir=.
3188   for ac_exec_ext in '' $ac_executable_extensions; do
3189   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3190     ac_cv_prog_ac_ct_RANLIB="ranlib"
3191     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3192     break 2
3193   fi
3194 done
3195 done
3196
3197   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3198 fi
3199 fi
3200 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3201 if test -n "$ac_ct_RANLIB"; then
3202   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3203 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3204 else
3205   echo "$as_me:$LINENO: result: no" >&5
3206 echo "${ECHO_T}no" >&6
3207 fi
3208
3209   RANLIB=$ac_ct_RANLIB
3210 else
3211   RANLIB="$ac_cv_prog_RANLIB"
3212 fi
3213
3214 # Extract the first word of "mv", so it can be a program name with args.
3215 set dummy mv; ac_word=$2
3216 echo "$as_me:$LINENO: checking for $ac_word" >&5
3217 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3218 if test "${ac_cv_path_MV+set}" = set; then
3219   echo $ECHO_N "(cached) $ECHO_C" >&6
3220 else
3221   case $MV in
3222   [\\/]* | ?:[\\/]*)
3223   ac_cv_path_MV="$MV" # Let the user override the test with a path.
3224   ;;
3225   *)
3226   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3227 for as_dir in $PATH
3228 do
3229   IFS=$as_save_IFS
3230   test -z "$as_dir" && as_dir=.
3231   for ac_exec_ext in '' $ac_executable_extensions; do
3232   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3233     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
3234     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3235     break 2
3236   fi
3237 done
3238 done
3239
3240   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
3241   ;;
3242 esac
3243 fi
3244 MV=$ac_cv_path_MV
3245
3246 if test -n "$MV"; then
3247   echo "$as_me:$LINENO: result: $MV" >&5
3248 echo "${ECHO_T}$MV" >&6
3249 else
3250   echo "$as_me:$LINENO: result: no" >&5
3251 echo "${ECHO_T}no" >&6
3252 fi
3253
3254 # Extract the first word of "rm", so it can be a program name with args.
3255 set dummy rm; ac_word=$2
3256 echo "$as_me:$LINENO: checking for $ac_word" >&5
3257 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3258 if test "${ac_cv_path_RM+set}" = set; then
3259   echo $ECHO_N "(cached) $ECHO_C" >&6
3260 else
3261   case $RM in
3262   [\\/]* | ?:[\\/]*)
3263   ac_cv_path_RM="$RM" # Let the user override the test with a path.
3264   ;;
3265   *)
3266   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3267 for as_dir in $PATH
3268 do
3269   IFS=$as_save_IFS
3270   test -z "$as_dir" && as_dir=.
3271   for ac_exec_ext in '' $ac_executable_extensions; do
3272   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3273     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
3274     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3275     break 2
3276   fi
3277 done
3278 done
3279
3280   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
3281   ;;
3282 esac
3283 fi
3284 RM=$ac_cv_path_RM
3285
3286 if test -n "$RM"; then
3287   echo "$as_me:$LINENO: result: $RM" >&5
3288 echo "${ECHO_T}$RM" >&6
3289 else
3290   echo "$as_me:$LINENO: result: no" >&5
3291 echo "${ECHO_T}no" >&6
3292 fi
3293
3294 # Extract the first word of "cp", so it can be a program name with args.
3295 set dummy cp; ac_word=$2
3296 echo "$as_me:$LINENO: checking for $ac_word" >&5
3297 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3298 if test "${ac_cv_path_CP+set}" = set; then
3299   echo $ECHO_N "(cached) $ECHO_C" >&6
3300 else
3301   case $CP in
3302   [\\/]* | ?:[\\/]*)
3303   ac_cv_path_CP="$CP" # Let the user override the test with a path.
3304   ;;
3305   *)
3306   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3307 for as_dir in $PATH
3308 do
3309   IFS=$as_save_IFS
3310   test -z "$as_dir" && as_dir=.
3311   for ac_exec_ext in '' $ac_executable_extensions; do
3312   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3313     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
3314     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3315     break 2
3316   fi
3317 done
3318 done
3319
3320   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
3321   ;;
3322 esac
3323 fi
3324 CP=$ac_cv_path_CP
3325
3326 if test -n "$CP"; then
3327   echo "$as_me:$LINENO: result: $CP" >&5
3328 echo "${ECHO_T}$CP" >&6
3329 else
3330   echo "$as_me:$LINENO: result: no" >&5
3331 echo "${ECHO_T}no" >&6
3332 fi
3333
3334 # Extract the first word of "sed", so it can be a program name with args.
3335 set dummy sed; ac_word=$2
3336 echo "$as_me:$LINENO: checking for $ac_word" >&5
3337 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3338 if test "${ac_cv_path_SED+set}" = set; then
3339   echo $ECHO_N "(cached) $ECHO_C" >&6
3340 else
3341   case $SED in
3342   [\\/]* | ?:[\\/]*)
3343   ac_cv_path_SED="$SED" # Let the user override the test with a path.
3344   ;;
3345   *)
3346   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3347 for as_dir in $PATH
3348 do
3349   IFS=$as_save_IFS
3350   test -z "$as_dir" && as_dir=.
3351   for ac_exec_ext in '' $ac_executable_extensions; do
3352   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3353     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
3354     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3355     break 2
3356   fi
3357 done
3358 done
3359
3360   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
3361   ;;
3362 esac
3363 fi
3364 SED=$ac_cv_path_SED
3365
3366 if test -n "$SED"; then
3367   echo "$as_me:$LINENO: result: $SED" >&5
3368 echo "${ECHO_T}$SED" >&6
3369 else
3370   echo "$as_me:$LINENO: result: no" >&5
3371 echo "${ECHO_T}no" >&6
3372 fi
3373
3374 # Extract the first word of "awk", so it can be a program name with args.
3375 set dummy awk; ac_word=$2
3376 echo "$as_me:$LINENO: checking for $ac_word" >&5
3377 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3378 if test "${ac_cv_path_AWK+set}" = set; then
3379   echo $ECHO_N "(cached) $ECHO_C" >&6
3380 else
3381   case $AWK in
3382   [\\/]* | ?:[\\/]*)
3383   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
3384   ;;
3385   *)
3386   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3387 for as_dir in $PATH
3388 do
3389   IFS=$as_save_IFS
3390   test -z "$as_dir" && as_dir=.
3391   for ac_exec_ext in '' $ac_executable_extensions; do
3392   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3393     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
3394     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3395     break 2
3396   fi
3397 done
3398 done
3399
3400   test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="awk"
3401   ;;
3402 esac
3403 fi
3404 AWK=$ac_cv_path_AWK
3405
3406 if test -n "$AWK"; then
3407   echo "$as_me:$LINENO: result: $AWK" >&5
3408 echo "${ECHO_T}$AWK" >&6
3409 else
3410   echo "$as_me:$LINENO: result: no" >&5
3411 echo "${ECHO_T}no" >&6
3412 fi
3413
3414 # Extract the first word of "echo", so it can be a program name with args.
3415 set dummy echo; ac_word=$2
3416 echo "$as_me:$LINENO: checking for $ac_word" >&5
3417 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3418 if test "${ac_cv_path_ECHO+set}" = set; then
3419   echo $ECHO_N "(cached) $ECHO_C" >&6
3420 else
3421   case $ECHO in
3422   [\\/]* | ?:[\\/]*)
3423   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
3424   ;;
3425   *)
3426   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3427 for as_dir in $PATH
3428 do
3429   IFS=$as_save_IFS
3430   test -z "$as_dir" && as_dir=.
3431   for ac_exec_ext in '' $ac_executable_extensions; do
3432   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3433     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
3434     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3435     break 2
3436   fi
3437 done
3438 done
3439
3440   test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
3441   ;;
3442 esac
3443 fi
3444 ECHO=$ac_cv_path_ECHO
3445
3446 if test -n "$ECHO"; then
3447   echo "$as_me:$LINENO: result: $ECHO" >&5
3448 echo "${ECHO_T}$ECHO" >&6
3449 else
3450   echo "$as_me:$LINENO: result: no" >&5
3451 echo "${ECHO_T}no" >&6
3452 fi
3453
3454 # Extract the first word of "cmp", so it can be a program name with args.
3455 set dummy cmp; ac_word=$2
3456 echo "$as_me:$LINENO: checking for $ac_word" >&5
3457 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3458 if test "${ac_cv_path_CMP+set}" = set; then
3459   echo $ECHO_N "(cached) $ECHO_C" >&6
3460 else
3461   case $CMP in
3462   [\\/]* | ?:[\\/]*)
3463   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
3464   ;;
3465   *)
3466   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3467 for as_dir in $PATH
3468 do
3469   IFS=$as_save_IFS
3470   test -z "$as_dir" && as_dir=.
3471   for ac_exec_ext in '' $ac_executable_extensions; do
3472   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3473     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
3474     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3475     break 2
3476   fi
3477 done
3478 done
3479
3480   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
3481   ;;
3482 esac
3483 fi
3484 CMP=$ac_cv_path_CMP
3485
3486 if test -n "$CMP"; then
3487   echo "$as_me:$LINENO: result: $CMP" >&5
3488 echo "${ECHO_T}$CMP" >&6
3489 else
3490   echo "$as_me:$LINENO: result: no" >&5
3491 echo "${ECHO_T}no" >&6
3492 fi
3493
3494 # Extract the first word of "tbl", so it can be a program name with args.
3495 set dummy tbl; ac_word=$2
3496 echo "$as_me:$LINENO: checking for $ac_word" >&5
3497 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3498 if test "${ac_cv_path_TBL+set}" = set; then
3499   echo $ECHO_N "(cached) $ECHO_C" >&6
3500 else
3501   case $TBL in
3502   [\\/]* | ?:[\\/]*)
3503   ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
3504   ;;
3505   *)
3506   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3507 for as_dir in $PATH
3508 do
3509   IFS=$as_save_IFS
3510   test -z "$as_dir" && as_dir=.
3511   for ac_exec_ext in '' $ac_executable_extensions; do
3512   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3513     ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
3514     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3515     break 2
3516   fi
3517 done
3518 done
3519
3520   test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
3521   ;;
3522 esac
3523 fi
3524 TBL=$ac_cv_path_TBL
3525
3526 if test -n "$TBL"; then
3527   echo "$as_me:$LINENO: result: $TBL" >&5
3528 echo "${ECHO_T}$TBL" >&6
3529 else
3530   echo "$as_me:$LINENO: result: no" >&5
3531 echo "${ECHO_T}no" >&6
3532 fi
3533
3534 # Extract the first word of "ar", so it can be a program name with args.
3535 set dummy ar; ac_word=$2
3536 echo "$as_me:$LINENO: checking for $ac_word" >&5
3537 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3538 if test "${ac_cv_path_AR+set}" = set; then
3539   echo $ECHO_N "(cached) $ECHO_C" >&6
3540 else
3541   case $AR in
3542   [\\/]* | ?:[\\/]*)
3543   ac_cv_path_AR="$AR" # Let the user override the test with a path.
3544   ;;
3545   *)
3546   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3547 for as_dir in $PATH
3548 do
3549   IFS=$as_save_IFS
3550   test -z "$as_dir" && as_dir=.
3551   for ac_exec_ext in '' $ac_executable_extensions; do
3552   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3553     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3554     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3555     break 2
3556   fi
3557 done
3558 done
3559
3560   test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
3561   ;;
3562 esac
3563 fi
3564 AR=$ac_cv_path_AR
3565
3566 if test -n "$AR"; then
3567   echo "$as_me:$LINENO: result: $AR" >&5
3568 echo "${ECHO_T}$AR" >&6
3569 else
3570   echo "$as_me:$LINENO: result: no" >&5
3571 echo "${ECHO_T}no" >&6
3572 fi
3573
3574 # Extract the first word of "openssl", so it can be a program name with args.
3575 set dummy openssl; ac_word=$2
3576 echo "$as_me:$LINENO: checking for $ac_word" >&5
3577 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3578 if test "${ac_cv_path_OPENSSL+set}" = set; then
3579   echo $ECHO_N "(cached) $ECHO_C" >&6
3580 else
3581   case $OPENSSL in
3582   [\\/]* | ?:[\\/]*)
3583   ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
3584   ;;
3585   *)
3586   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3587 for as_dir in $PATH
3588 do
3589   IFS=$as_save_IFS
3590   test -z "$as_dir" && as_dir=.
3591   for ac_exec_ext in '' $ac_executable_extensions; do
3592   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3593     ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
3594     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3595     break 2
3596   fi
3597 done
3598 done
3599
3600   test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
3601   ;;
3602 esac
3603 fi
3604 OPENSSL=$ac_cv_path_OPENSSL
3605
3606 if test -n "$OPENSSL"; then
3607   echo "$as_me:$LINENO: result: $OPENSSL" >&5
3608 echo "${ECHO_T}$OPENSSL" >&6
3609 else
3610   echo "$as_me:$LINENO: result: no" >&5
3611 echo "${ECHO_T}no" >&6
3612 fi
3613
3614 # Extract the first word of "mtx", so it can be a program name with args.
3615 set dummy mtx; ac_word=$2
3616 echo "$as_me:$LINENO: checking for $ac_word" >&5
3617 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3618 if test "${ac_cv_path_MTX+set}" = set; then
3619   echo $ECHO_N "(cached) $ECHO_C" >&6
3620 else
3621   case $MTX in
3622   [\\/]* | ?:[\\/]*)
3623   ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
3624   ;;
3625   *)
3626   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3627 for as_dir in $PATH
3628 do
3629   IFS=$as_save_IFS
3630   test -z "$as_dir" && as_dir=.
3631   for ac_exec_ext in '' $ac_executable_extensions; do
3632   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3633     ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
3634     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3635     break 2
3636   fi
3637 done
3638 done
3639
3640   test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
3641   ;;
3642 esac
3643 fi
3644 MTX=$ac_cv_path_MTX
3645
3646 if test -n "$MTX"; then
3647   echo "$as_me:$LINENO: result: $MTX" >&5
3648 echo "${ECHO_T}$MTX" >&6
3649 else
3650   echo "$as_me:$LINENO: result: no" >&5
3651 echo "${ECHO_T}no" >&6
3652 fi
3653
3654 # Extract the first word of "pkg-config", so it can be a program name with args.
3655 set dummy pkg-config; ac_word=$2
3656 echo "$as_me:$LINENO: checking for $ac_word" >&5
3657 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3658 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
3659   echo $ECHO_N "(cached) $ECHO_C" >&6
3660 else
3661   case $PKGCONFIG in
3662   [\\/]* | ?:[\\/]*)
3663   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
3664   ;;
3665   *)
3666   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3667 for as_dir in $PATH
3668 do
3669   IFS=$as_save_IFS
3670   test -z "$as_dir" && as_dir=.
3671   for ac_exec_ext in '' $ac_executable_extensions; do
3672   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3673     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
3674     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3675     break 2
3676   fi
3677 done
3678 done
3679
3680   test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
3681   ;;
3682 esac
3683 fi
3684 PKGCONFIG=$ac_cv_path_PKGCONFIG
3685
3686 if test -n "$PKGCONFIG"; then
3687   echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
3688 echo "${ECHO_T}$PKGCONFIG" >&6
3689 else
3690   echo "$as_me:$LINENO: result: no" >&5
3691 echo "${ECHO_T}no" >&6
3692 fi
3693
3694 # Extract the first word of "wx-config", so it can be a program name with args.
3695 set dummy wx-config; ac_word=$2
3696 echo "$as_me:$LINENO: checking for $ac_word" >&5
3697 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3698 if test "${ac_cv_path_WXCONFIG+set}" = set; then
3699   echo $ECHO_N "(cached) $ECHO_C" >&6
3700 else
3701   case $WXCONFIG in
3702   [\\/]* | ?:[\\/]*)
3703   ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
3704   ;;
3705   *)
3706   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3707 for as_dir in $PATH
3708 do
3709   IFS=$as_save_IFS
3710   test -z "$as_dir" && as_dir=.
3711   for ac_exec_ext in '' $ac_executable_extensions; do
3712   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3713     ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
3714     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3715     break 2
3716   fi
3717 done
3718 done
3719
3720   test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="wx-config"
3721   ;;
3722 esac
3723 fi
3724 WXCONFIG=$ac_cv_path_WXCONFIG
3725
3726 if test -n "$WXCONFIG"; then
3727   echo "$as_me:$LINENO: result: $WXCONFIG" >&5
3728 echo "${ECHO_T}$WXCONFIG" >&6
3729 else
3730   echo "$as_me:$LINENO: result: no" >&5
3731 echo "${ECHO_T}no" >&6
3732 fi
3733
3734
3735 test -n "$ARFLAG" || ARFLAGS="cr"
3736
3737
3738 MAKE_SHELL=/bin/sh
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748 # Make sure we can run config.sub.
3749 $ac_config_sub sun4 >/dev/null 2>&1 ||
3750   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3751 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3752    { (exit 1); exit 1; }; }
3753
3754 echo "$as_me:$LINENO: checking build system type" >&5
3755 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3756 if test "${ac_cv_build+set}" = set; then
3757   echo $ECHO_N "(cached) $ECHO_C" >&6
3758 else
3759   ac_cv_build_alias=$build_alias
3760 test -z "$ac_cv_build_alias" &&
3761   ac_cv_build_alias=`$ac_config_guess`
3762 test -z "$ac_cv_build_alias" &&
3763   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3764 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3765    { (exit 1); exit 1; }; }
3766 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3767   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3768 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3769    { (exit 1); exit 1; }; }
3770
3771 fi
3772 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3773 echo "${ECHO_T}$ac_cv_build" >&6
3774 build=$ac_cv_build
3775 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3776 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3777 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3778
3779
3780 echo "$as_me:$LINENO: checking for Operating System" >&5
3781 echo $ECHO_N "checking for Operating System... $ECHO_C" >&6
3782 echo "$as_me:$LINENO: checking host system type" >&5
3783 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3784 if test "${ac_cv_host+set}" = set; then
3785   echo $ECHO_N "(cached) $ECHO_C" >&6
3786 else
3787   ac_cv_host_alias=$host_alias
3788 test -z "$ac_cv_host_alias" &&
3789   ac_cv_host_alias=$ac_cv_build_alias
3790 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3791   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3792 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3793    { (exit 1); exit 1; }; }
3794
3795 fi
3796 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3797 echo "${ECHO_T}$ac_cv_host" >&6
3798 host=$ac_cv_host
3799 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3800 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3801 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3802
3803
3804 case $host_os in
3805   *cygwin* ) CYGWIN=yes;;
3806          * ) CYGWIN=no;;
3807 esac
3808
3809 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
3810 then
3811
3812
3813 if $TRUEPRG; then
3814   HAVE_SUN_OS_TRUE=
3815   HAVE_SUN_OS_FALSE='#'
3816 else
3817   HAVE_SUN_OS_TRUE='#'
3818   HAVE_SUN_OS_FALSE=
3819 fi
3820         cat >>confdefs.h <<\_ACEOF
3821 #define HAVE_SUN_OS 1
3822 _ACEOF
3823
3824 else
3825
3826
3827 if $FALSEPRG; then
3828   HAVE_SUN_OS_TRUE=
3829   HAVE_SUN_OS_FALSE='#'
3830 else
3831   HAVE_SUN_OS_TRUE='#'
3832   HAVE_SUN_OS_FALSE=
3833 fi
3834 fi
3835
3836 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
3837 then
3838
3839
3840 if $TRUEPRG; then
3841   HAVE_OSF1_OS_TRUE=
3842   HAVE_OSF1_OS_FALSE='#'
3843 else
3844   HAVE_OSF1_OS_TRUE='#'
3845   HAVE_OSF1_OS_FALSE=
3846 fi
3847         cat >>confdefs.h <<\_ACEOF
3848 #define HAVE_OSF1_OS 1
3849 _ACEOF
3850
3851 else
3852
3853
3854 if $FALSEPRG; then
3855   HAVE_OSF1_OS_TRUE=
3856   HAVE_OSF1_OS_FALSE='#'
3857 else
3858   HAVE_OSF1_OS_TRUE='#'
3859   HAVE_OSF1_OS_FALSE=
3860 fi
3861 fi
3862
3863 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
3864 then
3865
3866
3867 if $TRUEPRG; then
3868   HAVE_AIX_OS_TRUE=
3869   HAVE_AIX_OS_FALSE='#'
3870 else
3871   HAVE_AIX_OS_TRUE='#'
3872   HAVE_AIX_OS_FALSE=
3873 fi
3874         cat >>confdefs.h <<\_ACEOF
3875 #define HAVE_AIX_OS 1
3876 _ACEOF
3877
3878 else
3879
3880
3881 if $FALSEPRG; then
3882   HAVE_AIX_OS_TRUE=
3883   HAVE_AIX_OS_FALSE='#'
3884 else
3885   HAVE_AIX_OS_TRUE='#'
3886   HAVE_AIX_OS_FALSE=
3887 fi
3888 fi
3889
3890 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
3891 then
3892
3893
3894 if $TRUEPRG; then
3895   HAVE_HPUX_OS_TRUE=
3896   HAVE_HPUX_OS_FALSE='#'
3897 else
3898   HAVE_HPUX_OS_TRUE='#'
3899   HAVE_HPUX_OS_FALSE=
3900 fi
3901         cat >>confdefs.h <<\_ACEOF
3902 #define HAVE_HPUX_OS 1
3903 _ACEOF
3904
3905 else
3906
3907
3908 if $FALSEPRG; then
3909   HAVE_HPUX_OS_TRUE=
3910   HAVE_HPUX_OS_FALSE='#'
3911 else
3912   HAVE_HPUX_OS_TRUE='#'
3913   HAVE_HPUX_OS_FALSE=
3914 fi
3915 fi
3916
3917 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
3918 then
3919
3920
3921 if $TRUEPRG; then
3922   HAVE_LINUX_OS_TRUE=
3923   HAVE_LINUX_OS_FALSE='#'
3924 else
3925   HAVE_LINUX_OS_TRUE='#'
3926   HAVE_LINUX_OS_FALSE=
3927 fi
3928         cat >>confdefs.h <<\_ACEOF
3929 #define HAVE_LINUX_OS 1
3930 _ACEOF
3931
3932 else
3933
3934
3935 if $FALSEPRG; then
3936   HAVE_LINUX_OS_TRUE=
3937   HAVE_LINUX_OS_FALSE='#'
3938 else
3939   HAVE_LINUX_OS_TRUE='#'
3940   HAVE_LINUX_OS_FALSE=
3941 fi
3942 fi
3943
3944 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
3945 then
3946
3947
3948 if $TRUEPRG; then
3949   HAVE_FREEBSD_OS_TRUE=
3950   HAVE_FREEBSD_OS_FALSE='#'
3951 else
3952   HAVE_FREEBSD_OS_TRUE='#'
3953   HAVE_FREEBSD_OS_FALSE=
3954 fi
3955         cat >>confdefs.h <<\_ACEOF
3956 #define HAVE_FREEBSD_OS 1
3957 _ACEOF
3958
3959 else
3960
3961
3962 if $FALSEPRG; then
3963   HAVE_FREEBSD_OS_TRUE=
3964   HAVE_FREEBSD_OS_FALSE='#'
3965 else
3966   HAVE_FREEBSD_OS_TRUE='#'
3967   HAVE_FREEBSD_OS_FALSE=
3968 fi
3969 fi
3970
3971 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
3972 then
3973
3974
3975 if $TRUEPRG; then
3976   HAVE_NETBSD_OS_TRUE=
3977   HAVE_NETBSD_OS_FALSE='#'
3978 else
3979   HAVE_NETBSD_OS_TRUE='#'
3980   HAVE_NETBSD_OS_FALSE=
3981 fi
3982         cat >>confdefs.h <<\_ACEOF
3983 #define HAVE_NETBSD_OS 1
3984 _ACEOF
3985
3986 else
3987
3988
3989 if $FALSEPRG; then
3990   HAVE_NETBSD_OS_TRUE=
3991   HAVE_NETBSD_OS_FALSE='#'
3992 else
3993   HAVE_NETBSD_OS_TRUE='#'
3994   HAVE_NETBSD_OS_FALSE=
3995 fi
3996 fi
3997
3998 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
3999 then
4000
4001
4002 if $TRUEPRG; then
4003   HAVE_OPENBSD_OS_TRUE=
4004   HAVE_OPENBSD_OS_FALSE='#'
4005 else
4006   HAVE_OPENBSD_OS_TRUE='#'
4007   HAVE_OPENBSD_OS_FALSE=
4008 fi
4009         cat >>confdefs.h <<\_ACEOF
4010 #define HAVE_OPENBSD_OS 1
4011 _ACEOF
4012
4013 else
4014
4015
4016 if $FALSEPRG; then
4017   HAVE_OPENBSD_OS_TRUE=
4018   HAVE_OPENBSD_OS_FALSE='#'
4019 else
4020   HAVE_OPENBSD_OS_TRUE='#'
4021   HAVE_OPENBSD_OS_FALSE=
4022 fi
4023 fi
4024
4025 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4026 then
4027
4028
4029 if $TRUEPRG; then
4030   HAVE_BSDI_OS_TRUE=
4031   HAVE_BSDI_OS_FALSE='#'
4032 else
4033   HAVE_BSDI_OS_TRUE='#'
4034   HAVE_BSDI_OS_FALSE=
4035 fi
4036         cat >>confdefs.h <<\_ACEOF
4037 #define HAVE_BSDI_OS 1
4038 _ACEOF
4039
4040 else
4041
4042
4043 if $FALSEPRG; then
4044   HAVE_BSDI_OS_TRUE=
4045   HAVE_BSDI_OS_FALSE='#'
4046 else
4047   HAVE_BSDI_OS_TRUE='#'
4048   HAVE_BSDI_OS_FALSE=
4049 fi
4050 fi
4051
4052 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
4053 then
4054
4055
4056 if $TRUEPRG; then
4057   HAVE_SGI_OS_TRUE=
4058   HAVE_SGI_OS_FALSE='#'
4059 else
4060   HAVE_SGI_OS_TRUE='#'
4061   HAVE_SGI_OS_FALSE=
4062 fi
4063         cat >>confdefs.h <<\_ACEOF
4064 #define HAVE_SGI_OS 1
4065 _ACEOF
4066
4067 else
4068
4069
4070 if $FALSEPRG; then
4071   HAVE_SGI_OS_TRUE=
4072   HAVE_SGI_OS_FALSE='#'
4073 else
4074   HAVE_SGI_OS_TRUE='#'
4075   HAVE_SGI_OS_FALSE=
4076 fi
4077 fi
4078
4079 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4080 then
4081
4082
4083 if $TRUEPRG; then
4084   HAVE_IRIX_OS_TRUE=
4085   HAVE_IRIX_OS_FALSE='#'
4086 else
4087   HAVE_IRIX_OS_TRUE='#'
4088   HAVE_IRIX_OS_FALSE=
4089 fi
4090         cat >>confdefs.h <<\_ACEOF
4091 #define HAVE_IRIX_OS 1
4092 _ACEOF
4093
4094 else
4095
4096
4097 if $FALSEPRG; then
4098   HAVE_IRIX_OS_TRUE=
4099   HAVE_IRIX_OS_FALSE='#'
4100 else
4101   HAVE_IRIX_OS_TRUE='#'
4102   HAVE_IRIX_OS_FALSE=
4103 fi
4104 fi
4105
4106 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4107 then
4108
4109
4110 if $TRUEPRG; then
4111   HAVE_DARWIN_OS_TRUE=
4112   HAVE_DARWIN_OS_FALSE='#'
4113 else
4114   HAVE_DARWIN_OS_TRUE='#'
4115   HAVE_DARWIN_OS_FALSE=
4116 fi
4117     cat >>confdefs.h <<\_ACEOF
4118 #define HAVE_DARWIN_OS 1
4119 _ACEOF
4120
4121 else
4122
4123
4124 if $FALSEPRG; then
4125   HAVE_DARWIN_OS_TRUE=
4126   HAVE_DARWIN_OS_FALSE='#'
4127 else
4128   HAVE_DARWIN_OS_TRUE='#'
4129   HAVE_DARWIN_OS_FALSE=
4130 fi
4131 fi
4132
4133 echo "$as_me:$LINENO: result: \" \"" >&5
4134 echo "${ECHO_T}\" \"" >&6
4135
4136
4137 # -----------------------------------------------------------
4138 # ----------------------------------------------------------
4139 echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
4140 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6
4141 if test "x$DISTNAME" != "x"
4142 then
4143         echo "distname set to $DISTNAME"
4144 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4145 then
4146         DISTNAME=alpha
4147 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4148 then
4149         DISTNAME=aix
4150 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4151 then
4152         DISTNAME=hpux
4153 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4154 then
4155         DISTNAME=solaris
4156 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4157 then
4158         DISTNAME=freebsd
4159 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4160 then
4161         DISTNAME=netbsd
4162 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4163 then
4164         DISTNAME=openbsd
4165 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4166 then
4167         DISTNAME=irix
4168 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4169 then
4170         DISTNAME=bsdi
4171 elif test -f /etc/SuSE-release
4172 then
4173         DISTNAME=suse
4174 elif test -d /etc/SuSEconfig
4175 then
4176         DISTNAME=suse5
4177 elif test -f /etc/mandrake-release
4178 then
4179         DISTNAME=mandrake
4180 elif test -f /etc/whitebox-release
4181 then
4182        DISTNAME=redhat
4183 elif test -f /etc/redhat-release
4184 then
4185         DISTNAME=redhat
4186 elif test -f /etc/gentoo-release
4187 then
4188         DISTNAME=gentoo
4189 elif test -f /etc/debian_version
4190 then
4191         DISTNAME=debian
4192 elif test -f /etc/slackware-version
4193 then
4194         DISTNAME=slackware
4195 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4196 then
4197     DISTNAME=darwin
4198 elif test -f /etc/engarde-version
4199 then
4200         DISTNAME=engarde
4201 elif test "$CYGWIN" = yes
4202 then
4203         DISTNAME=cygwin
4204         cat >>confdefs.h <<\_ACEOF
4205 #define HAVE_CYGWIN 1
4206 _ACEOF
4207
4208 else
4209         DISTNAME=unknown
4210 fi
4211 echo "$as_me:$LINENO: result: \" \"" >&5
4212 echo "${ECHO_T}\" \"" >&6
4213
4214
4215 # -----------------------------------------------------------
4216 # ----------------------------------------------------------
4217
4218
4219
4220 if false; then
4221   INSIDE_GNOME_COMMON_TRUE=
4222   INSIDE_GNOME_COMMON_FALSE='#'
4223 else
4224   INSIDE_GNOME_COMMON_TRUE='#'
4225   INSIDE_GNOME_COMMON_FALSE=
4226 fi
4227
4228         test -n "$ACLOCAL_FLAGS" && ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
4229
4230         for k in gnome-macros ; do ACLOCAL="$ACLOCAL -I $k" ; done
4231
4232
4233 # ------------------------------------------------------------------
4234 #  If the user has not set --prefix, we set our default to nothing.
4235 #  In this case, if the user has not set --sysconfdir, we set it
4236 #  to the package default of /etc/bacula.  If either --prefix or
4237 #  --sysconfdir is set, we leave sysconfdir alone except to eval it.
4238 # ------------------------------------------------------------------
4239 if test x${prefix} = xNONE ; then
4240     if test `eval echo ${sysconfdir}` = NONE/etc ; then
4241         sysconfdir=/etc/bacula
4242     fi
4243     prefix=
4244 fi
4245 sysconfdir=`eval echo ${sysconfdir}`
4246
4247 # -------------------------------------------------------------------------
4248 #  If the user has not set --exec-prefix, we default to ${prefix}
4249 # -------------------------------------------------------------------------
4250 if test x${exec_prefix} = xNONE ; then
4251     exec_prefix=${prefix}
4252 fi
4253
4254 # ------------------------------------------------------------------
4255 # If the user has not set --sbindir, we set our default as /sbin
4256 # ------------------------------------------------------------------
4257 if test x$sbindir = x'${exec_prefix}/sbin' ; then
4258     sbindir=${exec_prefix}/sbin
4259 fi
4260 sbindir=`eval echo ${sbindir}`
4261
4262 # ------------------------------------------------------------------
4263 # All list of languages for which a translation exist. Each
4264 #  language is separated by a space.
4265 # ------------------------------------------------------------------
4266 ALL_LINGUAS=""
4267
4268 for ac_prog in msgfmt
4269 do
4270   # Extract the first word of "$ac_prog", so it can be a program name with args.
4271 set dummy $ac_prog; ac_word=$2
4272 echo "$as_me:$LINENO: checking for $ac_word" >&5
4273 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4274 if test "${ac_cv_path_MSGFMT+set}" = set; then
4275   echo $ECHO_N "(cached) $ECHO_C" >&6
4276 else
4277   case $MSGFMT in
4278   [\\/]* | ?:[\\/]*)
4279   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4280   ;;
4281   *)
4282   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4283 for as_dir in $PATH
4284 do
4285   IFS=$as_save_IFS
4286   test -z "$as_dir" && as_dir=.
4287   for ac_exec_ext in '' $ac_executable_extensions; do
4288   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4289     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
4290     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4291     break 2
4292   fi
4293 done
4294 done
4295
4296   ;;
4297 esac
4298 fi
4299 MSGFMT=$ac_cv_path_MSGFMT
4300
4301 if test -n "$MSGFMT"; then
4302   echo "$as_me:$LINENO: result: $MSGFMT" >&5
4303 echo "${ECHO_T}$MSGFMT" >&6
4304 else
4305   echo "$as_me:$LINENO: result: no" >&5
4306 echo "${ECHO_T}no" >&6
4307 fi
4308
4309   test -n "$MSGFMT" && break
4310 done
4311 test -n "$MSGFMT" || MSGFMT="no"
4312
4313 if test "$MSGFMT" = "no"
4314 then
4315    echo 'msgfmt program not found, disabling NLS !'
4316    USE_NLS=no
4317    USE_INCLUDED_LIBINTL=no
4318 #else
4319 #   AM_GNU_GETTEXT
4320 fi
4321
4322
4323 support_mysql=no
4324 support_sqlite=no
4325 support_postgresql=no
4326 support_smartalloc=yes
4327 support_readline=yes
4328 support_conio=yes
4329 support_gnome=no
4330 support_wx_console=no
4331 gnome_version=
4332 support_static_tools=no
4333 support_static_fd=no
4334 support_static_sd=no
4335 support_static_dir=no
4336 support_static_cons=no
4337 build_client_only=no
4338 cats=
4339 db_name=Internal
4340 DB_NAME=bdb
4341
4342
4343 # -------------------------------------------
4344 # gnome (default off)
4345 # -------------------------------------------
4346 # Check whether --enable-gnome or --disable-gnome was given.
4347 if test "${enable_gnome+set}" = set; then
4348   enableval="$enable_gnome"
4349   if test x$enableval = xyes; then
4350     support_gnome=yes
4351   fi
4352 fi;
4353
4354 GNOME_DIR=
4355 if test x$support_gnome = xyes; then
4356   abc=`$PKGCONFIG --exists libgnomeui-2.0`
4357   pkg=$?
4358   if test $pkg = 0; then
4359      GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
4360      GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
4361      GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
4362      GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
4363
4364
4365
4366
4367      GNOME_DIR=src/gnome2-console
4368      gnome_version="Version 2.x"
4369   else
4370
4371
4372
4373
4374
4375
4376
4377
4378
4379
4380
4381 # Check whether --with-gnome-includes or --without-gnome-includes was given.
4382 if test "${with_gnome_includes+set}" = set; then
4383   withval="$with_gnome_includes"
4384
4385         CFLAGS="$CFLAGS -I$withval"
4386
4387 fi;
4388
4389
4390 # Check whether --with-gnome-libs or --without-gnome-libs was given.
4391 if test "${with_gnome_libs+set}" = set; then
4392   withval="$with_gnome_libs"
4393
4394         LDFLAGS="$LDFLAGS -L$withval"
4395         gnome_prefix=$withval
4396
4397 fi;
4398
4399
4400 # Check whether --with-gnome or --without-gnome was given.
4401 if test "${with_gnome+set}" = set; then
4402   withval="$with_gnome"
4403   if test x$withval = xyes; then
4404                         want_gnome=yes
4405                                                                         :
4406                 else
4407                         if test "x$withval" = xno; then
4408                                 want_gnome=no
4409                         else
4410                                 want_gnome=yes
4411                                 LDFLAGS="$LDFLAGS -L$withval/lib"
4412                                 CFLAGS="$CFLAGS -I$withval/include"
4413                                 gnome_prefix=$withval/lib
4414                         fi
4415                 fi
4416 else
4417   want_gnome=yes
4418 fi;
4419
4420         if test "x$want_gnome" = xyes; then
4421
4422             # Extract the first word of "gnome-config", so it can be a program name with args.
4423 set dummy gnome-config; ac_word=$2
4424 echo "$as_me:$LINENO: checking for $ac_word" >&5
4425 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4426 if test "${ac_cv_path_GNOME_CONFIG+set}" = set; then
4427   echo $ECHO_N "(cached) $ECHO_C" >&6
4428 else
4429   case $GNOME_CONFIG in
4430   [\\/]* | ?:[\\/]*)
4431   ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
4432   ;;
4433   *)
4434   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4435 for as_dir in $PATH
4436 do
4437   IFS=$as_save_IFS
4438   test -z "$as_dir" && as_dir=.
4439   for ac_exec_ext in '' $ac_executable_extensions; do
4440   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4441     ac_cv_path_GNOME_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4442     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4443     break 2
4444   fi
4445 done
4446 done
4447
4448   test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
4449   ;;
4450 esac
4451 fi
4452 GNOME_CONFIG=$ac_cv_path_GNOME_CONFIG
4453
4454 if test -n "$GNOME_CONFIG"; then
4455   echo "$as_me:$LINENO: result: $GNOME_CONFIG" >&5
4456 echo "${ECHO_T}$GNOME_CONFIG" >&6
4457 else
4458   echo "$as_me:$LINENO: result: no" >&5
4459 echo "${ECHO_T}no" >&6
4460 fi
4461
4462             if test "$GNOME_CONFIG" = "no"; then
4463               no_gnome_config="yes"
4464             else
4465               echo "$as_me:$LINENO: checking if $GNOME_CONFIG works" >&5
4466 echo $ECHO_N "checking if $GNOME_CONFIG works... $ECHO_C" >&6
4467               if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then
4468                 echo "$as_me:$LINENO: result: yes" >&5
4469 echo "${ECHO_T}yes" >&6
4470
4471
4472         # Extract the first word of "orbit-config", so it can be a program name with args.
4473 set dummy orbit-config; ac_word=$2
4474 echo "$as_me:$LINENO: checking for $ac_word" >&5
4475 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4476 if test "${ac_cv_path_ORBIT_CONFIG+set}" = set; then
4477   echo $ECHO_N "(cached) $ECHO_C" >&6
4478 else
4479   case $ORBIT_CONFIG in
4480   [\\/]* | ?:[\\/]*)
4481   ac_cv_path_ORBIT_CONFIG="$ORBIT_CONFIG" # Let the user override the test with a path.
4482   ;;
4483   *)
4484   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4485 for as_dir in $PATH
4486 do
4487   IFS=$as_save_IFS
4488   test -z "$as_dir" && as_dir=.
4489   for ac_exec_ext in '' $ac_executable_extensions; do
4490   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4491     ac_cv_path_ORBIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4492     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4493     break 2
4494   fi
4495 done
4496 done
4497
4498   test -z "$ac_cv_path_ORBIT_CONFIG" && ac_cv_path_ORBIT_CONFIG="no"
4499   ;;
4500 esac
4501 fi
4502 ORBIT_CONFIG=$ac_cv_path_ORBIT_CONFIG
4503
4504 if test -n "$ORBIT_CONFIG"; then
4505   echo "$as_me:$LINENO: result: $ORBIT_CONFIG" >&5
4506 echo "${ECHO_T}$ORBIT_CONFIG" >&6
4507 else
4508   echo "$as_me:$LINENO: result: no" >&5
4509 echo "${ECHO_T}no" >&6
4510 fi
4511
4512         # Extract the first word of "orbit-idl", so it can be a program name with args.
4513 set dummy orbit-idl; ac_word=$2
4514 echo "$as_me:$LINENO: checking for $ac_word" >&5
4515 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4516 if test "${ac_cv_path_ORBIT_IDL+set}" = set; then
4517   echo $ECHO_N "(cached) $ECHO_C" >&6
4518 else
4519   case $ORBIT_IDL in
4520   [\\/]* | ?:[\\/]*)
4521   ac_cv_path_ORBIT_IDL="$ORBIT_IDL" # Let the user override the test with a path.
4522   ;;
4523   *)
4524   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4525 for as_dir in $PATH
4526 do
4527   IFS=$as_save_IFS
4528   test -z "$as_dir" && as_dir=.
4529   for ac_exec_ext in '' $ac_executable_extensions; do
4530   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4531     ac_cv_path_ORBIT_IDL="$as_dir/$ac_word$ac_exec_ext"
4532     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4533     break 2
4534   fi
4535 done
4536 done
4537
4538   test -z "$ac_cv_path_ORBIT_IDL" && ac_cv_path_ORBIT_IDL="no"
4539   ;;
4540 esac
4541 fi
4542 ORBIT_IDL=$ac_cv_path_ORBIT_IDL
4543
4544 if test -n "$ORBIT_IDL"; then
4545   echo "$as_me:$LINENO: result: $ORBIT_IDL" >&5
4546 echo "${ECHO_T}$ORBIT_IDL" >&6
4547 else
4548   echo "$as_me:$LINENO: result: no" >&5
4549 echo "${ECHO_T}no" >&6
4550 fi
4551
4552         echo "$as_me:$LINENO: checking for working ORBit environment" >&5
4553 echo $ECHO_N "checking for working ORBit environment... $ECHO_C" >&6
4554 if test "${gnome_cv_orbit_found+set}" = set; then
4555   echo $ECHO_N "(cached) $ECHO_C" >&6
4556 else
4557
4558                 if test x$ORBIT_CONFIG = xno -o x$ORBIT_IDL = xno; then
4559                         gnome_cv_orbit_found=no
4560                 else
4561                         gnome_cv_orbit_found=yes
4562                 fi
4563
4564 fi
4565 echo "$as_me:$LINENO: result: $gnome_cv_orbit_found" >&5
4566 echo "${ECHO_T}$gnome_cv_orbit_found" >&6
4567
4568
4569 if test x$gnome_cv_orbit_found = xyes; then
4570   HAVE_ORBIT_TRUE=
4571   HAVE_ORBIT_FALSE='#'
4572 else
4573   HAVE_ORBIT_TRUE='#'
4574   HAVE_ORBIT_FALSE=
4575 fi
4576         if test x$gnome_cv_orbit_found = xyes; then
4577
4578                 ORBIT_CFLAGS=`orbit-config --cflags client server`
4579                 ORBIT_LIBS=`orbit-config --use-service=name --libs client server`
4580
4581
4582         else
4583                 if test xfail = xfailure; then
4584                         { { echo "$as_me:$LINENO: error: ORBit not installed or installation problem" >&5
4585 echo "$as_me: error: ORBit not installed or installation problem" >&2;}
4586    { (exit 1); exit 1; }; }
4587                 fi
4588         fi
4589
4590         echo "$as_me:$LINENO: checking for gnorba libraries" >&5
4591 echo $ECHO_N "checking for gnorba libraries... $ECHO_C" >&6
4592 if test "${gnome_cv_gnorba_found+set}" = set; then
4593   echo $ECHO_N "(cached) $ECHO_C" >&6
4594 else
4595
4596                 gnome_cv_gnorba_found=no
4597                 if test x$gnome_cv_orbit_found = xyes; then
4598                         GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
4599                         GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
4600                         if test -n "$GNORBA_LIBS"; then
4601                                 gnome_cv_gnorba_found=yes
4602                         fi
4603                 fi
4604
4605 fi
4606 echo "$as_me:$LINENO: result: $gnome_cv_gnorba_found" >&5
4607 echo "${ECHO_T}$gnome_cv_gnorba_found" >&6
4608
4609
4610 if test x$gnome_cv_gnorba_found = xyes; then
4611   HAVE_GNORBA_TRUE=
4612   HAVE_GNORBA_FALSE='#'
4613 else
4614   HAVE_GNORBA_TRUE='#'
4615   HAVE_GNORBA_FALSE=
4616 fi
4617         if test x$gnome_cv_orbit_found = xyes; then
4618
4619                 GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
4620                 GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
4621
4622
4623         else
4624                 if test xfail = xfailure; then
4625                         { { echo "$as_me:$LINENO: error: gnorba library not installed or installation problem" >&5
4626 echo "$as_me: error: gnorba library not installed or installation problem" >&2;}
4627    { (exit 1); exit 1; }; }
4628                 fi
4629         fi
4630
4631                 GNOME_LIBS="`$GNOME_CONFIG --libs-only-l gnome`"
4632                 GNOMEUI_LIBS="`$GNOME_CONFIG --libs-only-l gnomeui`"
4633                 GNOMEGNORBA_LIBS="`$GNOME_CONFIG --libs-only-l gnorba gnomeui`"
4634                 GTKXMHTML_LIBS="`$GNOME_CONFIG --libs-only-l gtkxmhtml`"
4635                 ZVT_LIBS="`$GNOME_CONFIG --libs-only-l zvt`"
4636                 GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui`"
4637                 GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui`"
4638
4639               else
4640                 echo "$as_me:$LINENO: result: no" >&5
4641 echo "${ECHO_T}no" >&6
4642                 no_gnome_config="yes"
4643               fi
4644             fi
4645
4646             if test x$exec_prefix = xNONE; then
4647                 if test x$prefix = xNONE; then
4648                     gnome_prefix=$ac_default_prefix/lib
4649                 else
4650                     gnome_prefix=$prefix/lib
4651                 fi
4652             else
4653                 gnome_prefix=`eval echo \`echo $libdir\``
4654             fi
4655
4656             if test "$no_gnome_config" = "yes"; then
4657               echo "$as_me:$LINENO: checking for gnomeConf.sh file in $gnome_prefix" >&5
4658 echo $ECHO_N "checking for gnomeConf.sh file in $gnome_prefix... $ECHO_C" >&6
4659               if test -f $gnome_prefix/gnomeConf.sh; then
4660                 echo "$as_me:$LINENO: result: found" >&5
4661 echo "${ECHO_T}found" >&6
4662                 echo "loading gnome configuration from" \
4663                      "$gnome_prefix/gnomeConf.sh"
4664                 . $gnome_prefix/gnomeConf.sh
4665
4666               else
4667                 echo "$as_me:$LINENO: result: not found" >&5
4668 echo "${ECHO_T}not found" >&6
4669                 if test xfail = xfail; then
4670                   { { echo "$as_me:$LINENO: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&5
4671 echo "$as_me: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&2;}
4672    { (exit 1); exit 1; }; }
4673                 fi
4674               fi
4675             fi
4676         fi
4677
4678         if test -n ""; then
4679           n=""
4680           for i in $n; do
4681             echo "$as_me:$LINENO: checking extra library \"$i\"" >&5
4682 echo $ECHO_N "checking extra library \"$i\"... $ECHO_C" >&6
4683             case $i in
4684               applets)
4685
4686                 GNOME_APPLETS_LIBS=`$GNOME_CONFIG --libs-only-l applets`
4687                 echo "$as_me:$LINENO: result: $GNOME_APPLETS_LIBS" >&5
4688 echo "${ECHO_T}$GNOME_APPLETS_LIBS" >&6;;
4689               docklets)
4690
4691                 GNOME_DOCKLETS_LIBS=`$GNOME_CONFIG --libs-only-l docklets`
4692                 echo "$as_me:$LINENO: result: $GNOME_DOCKLETS_LIBS" >&5
4693 echo "${ECHO_T}$GNOME_DOCKLETS_LIBS" >&6;;
4694               capplet)
4695
4696                 GNOME_CAPPLET_LIBS=`$GNOME_CONFIG --libs-only-l capplet`
4697                 echo "$as_me:$LINENO: result: $GNOME_CAPPLET_LIBS" >&5
4698 echo "${ECHO_T}$GNOME_CAPPLET_LIBS" >&6;;
4699               *)
4700                 echo "$as_me:$LINENO: result: unknown library" >&5
4701 echo "${ECHO_T}unknown library" >&6
4702             esac
4703             EXTRA_INCLUDEDIR=`$GNOME_CONFIG --cflags $i`
4704             GNOME_INCLUDEDIR="$GNOME_INCLUDEDIR $EXTRA_INCLUDEDIR"
4705           done
4706         fi
4707
4708
4709      GNOME_DIR=src/gnome-console
4710      gnome_version="Version 1.4"
4711   fi
4712 fi
4713
4714
4715
4716 # -------------------------------------------
4717 # wx-console (default off)
4718 # -------------------------------------------
4719 # Check whether --enable-wx-console or --disable-wx-console was given.
4720 if test "${enable_wx_console+set}" = set; then
4721   enableval="$enable_wx_console"
4722   if test x$enableval = xyes; then
4723     support_wx_console=yes
4724   fi
4725 fi;
4726
4727 WX_DIR=
4728 if test x$support_wx_console = xyes; then
4729   abc=`$WXCONFIG --cppflags`
4730   pkg=$?
4731   if test $pkg = 0; then
4732      WXCONS_CPPFLAGS=`$WXCONFIG --cppflags`
4733      WXCONS_LDFLAGS=`$WXCONFIG --libs`
4734
4735
4736      WX_DIR=src/wx-console
4737   else
4738      echo " "
4739      echo "wx-config program not found. wx-console disabled."
4740      echo " "
4741      support_wx_console=no
4742   fi
4743 fi
4744
4745
4746
4747
4748 # -------------------------------------------
4749 # smartalloc (default off)
4750 # -------------------------------------------
4751 # Check whether --enable-smartalloc or --disable-smartalloc was given.
4752 if test "${enable_smartalloc+set}" = set; then
4753   enableval="$enable_smartalloc"
4754   if test x$enableval = xno; then
4755     support_smartalloc=no
4756   fi
4757 fi;
4758
4759 if test x$support_smartalloc = xyes; then
4760    cat >>confdefs.h <<\_ACEOF
4761 #define SMARTALLOC 1
4762 _ACEOF
4763
4764 fi
4765
4766 # -------------------------------------------
4767 # static-tools (default off)
4768 # -------------------------------------------
4769 # Check whether --enable-static-tools or --disable-static-tools was given.
4770 if test "${enable_static_tools+set}" = set; then
4771   enableval="$enable_static_tools"
4772   if test x$enableval = xyes; then
4773      support_static_tools=yes
4774    fi
4775 fi;
4776
4777 TTOOL_LDFLAGS=
4778 if test x$support_static_tools = xyes; then
4779    TTOOL_LDFLAGS="-static"
4780 fi
4781
4782
4783 # -------------------------------------------
4784 # static-fd    (default off)
4785 # -------------------------------------------
4786 # Check whether --enable-static-fd or --disable-static-fd was given.
4787 if test "${enable_static_fd+set}" = set; then
4788   enableval="$enable_static_fd"
4789   if test x$enableval = xyes; then
4790      support_static_fd=yes
4791    fi
4792 fi;
4793
4794 STATIC_FD=
4795 if test x$support_static_fd = xyes; then
4796    STATIC_FD="static-bacula-fd"
4797 fi
4798
4799
4800 # -------------------------------------------
4801 # static-sd    (default off)
4802 # -------------------------------------------
4803 # Check whether --enable-static-sd or --disable-static-sd was given.
4804 if test "${enable_static_sd+set}" = set; then
4805   enableval="$enable_static_sd"
4806   if test x$enableval = xyes; then
4807      support_static_sd=yes
4808    fi
4809 fi;
4810
4811 STATIC_SD=
4812 if test x$support_static_sd = xyes; then
4813    STATIC_SD="static-bacula-sd"
4814 fi
4815
4816
4817 # -------------------------------------------
4818 # static-dir   (default off)
4819 # -------------------------------------------
4820 # Check whether --enable-static-dir or --disable-static-dir was given.
4821 if test "${enable_static_dir+set}" = set; then
4822   enableval="$enable_static_dir"
4823   if test x$enableval = xyes; then
4824      support_static_dir=yes
4825    fi
4826 fi;
4827
4828 STATIC_DIR=
4829 if test x$support_static_dir = xyes; then
4830    STATIC_DIR="static-bacula-dir"
4831 fi
4832
4833
4834 # -------------------------------------------
4835 # static-cons  (default off)
4836 # -------------------------------------------
4837 # Check whether --enable-static-cons or --disable-static-cons was given.
4838 if test "${enable_static_cons+set}" = set; then
4839   enableval="$enable_static_cons"
4840   if test x$enableval = xyes; then
4841      support_static_cons=yes
4842    fi
4843 fi;
4844
4845 STATIC_CONS=
4846 STATIC_GNOME_CONS=
4847 STATIC_WX_CONS=
4848 if test x$support_static_cons = xyes; then
4849    STATIC_CONS="static-bconsole"
4850    STATIC_GNOME_CONS="static-gnome-console"
4851    STATIC_WX_CONS="static-wx-console"
4852 fi
4853
4854
4855
4856
4857 # -------------------------------------------
4858 # client_only  (default off)
4859 # -------------------------------------------
4860 # Check whether --enable-client-only or --disable-client-only was given.
4861 if test "${enable_client_only+set}" = set; then
4862   enableval="$enable_client_only"
4863   if test x$enableval = xyes; then
4864      build_client_only=yes
4865     db_name=None
4866     DB_NAME=none
4867    fi
4868 fi;
4869 if test x$build_client_only = xno; then
4870    ALL_DIRS="subdirs"
4871 else
4872    ALL_DIRS=""
4873 fi
4874
4875
4876 # ---------------------------------------------------
4877 # Check for conio (Bacula readline substitute)(
4878 # ---------------------------------------------------
4879 # this allows you to turn it completely off
4880 # Check whether --enable-conio or --disable-conio was given.
4881 if test "${enable_conio+set}" = set; then
4882   enableval="$enable_conio"
4883   if test x$enableval = xno; then
4884     support_conio=no
4885   fi
4886 fi;
4887
4888 got_conio="no"
4889 if test x$support_conio = xyes; then
4890    echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4891 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4892 if test "${ac_cv_header_stdc+set}" = set; then
4893   echo $ECHO_N "(cached) $ECHO_C" >&6
4894 else
4895   cat >conftest.$ac_ext <<_ACEOF
4896 #line $LINENO "configure"
4897 /* confdefs.h.  */
4898 _ACEOF
4899 cat confdefs.h >>conftest.$ac_ext
4900 cat >>conftest.$ac_ext <<_ACEOF
4901 /* end confdefs.h.  */
4902 #include <stdlib.h>
4903 #include <stdarg.h>
4904 #include <string.h>
4905 #include <float.h>
4906
4907 int
4908 main ()
4909 {
4910
4911   ;
4912   return 0;
4913 }
4914 _ACEOF
4915 rm -f conftest.$ac_objext
4916 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4917   (eval $ac_compile) 2>&5
4918   ac_status=$?
4919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4920   (exit $ac_status); } &&
4921          { ac_try='test -s conftest.$ac_objext'
4922   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4923   (eval $ac_try) 2>&5
4924   ac_status=$?
4925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4926   (exit $ac_status); }; }; then
4927   ac_cv_header_stdc=yes
4928 else
4929   echo "$as_me: failed program was:" >&5
4930 sed 's/^/| /' conftest.$ac_ext >&5
4931
4932 ac_cv_header_stdc=no
4933 fi
4934 rm -f conftest.$ac_objext conftest.$ac_ext
4935
4936 if test $ac_cv_header_stdc = yes; then
4937   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4938   cat >conftest.$ac_ext <<_ACEOF
4939 #line $LINENO "configure"
4940 /* confdefs.h.  */
4941 _ACEOF
4942 cat confdefs.h >>conftest.$ac_ext
4943 cat >>conftest.$ac_ext <<_ACEOF
4944 /* end confdefs.h.  */
4945 #include <string.h>
4946
4947 _ACEOF
4948 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4949   $EGREP "memchr" >/dev/null 2>&1; then
4950   :
4951 else
4952   ac_cv_header_stdc=no
4953 fi
4954 rm -f conftest*
4955
4956 fi
4957
4958 if test $ac_cv_header_stdc = yes; then
4959   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4960   cat >conftest.$ac_ext <<_ACEOF
4961 #line $LINENO "configure"
4962 /* confdefs.h.  */
4963 _ACEOF
4964 cat confdefs.h >>conftest.$ac_ext
4965 cat >>conftest.$ac_ext <<_ACEOF
4966 /* end confdefs.h.  */
4967 #include <stdlib.h>
4968
4969 _ACEOF
4970 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4971   $EGREP "free" >/dev/null 2>&1; then
4972   :
4973 else
4974   ac_cv_header_stdc=no
4975 fi
4976 rm -f conftest*
4977
4978 fi
4979
4980 if test $ac_cv_header_stdc = yes; then
4981   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4982   if test "$cross_compiling" = yes; then
4983   :
4984 else
4985   cat >conftest.$ac_ext <<_ACEOF
4986 #line $LINENO "configure"
4987 /* confdefs.h.  */
4988 _ACEOF
4989 cat confdefs.h >>conftest.$ac_ext
4990 cat >>conftest.$ac_ext <<_ACEOF
4991 /* end confdefs.h.  */
4992 #include <ctype.h>
4993 #if ((' ' & 0x0FF) == 0x020)
4994 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4995 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4996 #else
4997 # define ISLOWER(c) \
4998                    (('a' <= (c) && (c) <= 'i') \
4999                      || ('j' <= (c) && (c) <= 'r') \
5000                      || ('s' <= (c) && (c) <= 'z'))
5001 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5002 #endif
5003
5004 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5005 int
5006 main ()
5007 {
5008   int i;
5009   for (i = 0; i < 256; i++)
5010     if (XOR (islower (i), ISLOWER (i))
5011         || toupper (i) != TOUPPER (i))
5012       exit(2);
5013   exit (0);
5014 }
5015 _ACEOF
5016 rm -f conftest$ac_exeext
5017 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5018   (eval $ac_link) 2>&5
5019   ac_status=$?
5020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5021   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5022   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5023   (eval $ac_try) 2>&5
5024   ac_status=$?
5025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5026   (exit $ac_status); }; }; then
5027   :
5028 else
5029   echo "$as_me: program exited with status $ac_status" >&5
5030 echo "$as_me: failed program was:" >&5
5031 sed 's/^/| /' conftest.$ac_ext >&5
5032
5033 ( exit $ac_status )
5034 ac_cv_header_stdc=no
5035 fi
5036 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5037 fi
5038 fi
5039 fi
5040 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5041 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5042 if test $ac_cv_header_stdc = yes; then
5043
5044 cat >>confdefs.h <<\_ACEOF
5045 #define STDC_HEADERS 1
5046 _ACEOF
5047
5048 fi
5049
5050 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5051
5052
5053
5054
5055
5056
5057
5058
5059
5060 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5061                   inttypes.h stdint.h unistd.h
5062 do
5063 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5064 echo "$as_me:$LINENO: checking for $ac_header" >&5
5065 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5066 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5067   echo $ECHO_N "(cached) $ECHO_C" >&6
5068 else
5069   cat >conftest.$ac_ext <<_ACEOF
5070 #line $LINENO "configure"
5071 /* confdefs.h.  */
5072 _ACEOF
5073 cat confdefs.h >>conftest.$ac_ext
5074 cat >>conftest.$ac_ext <<_ACEOF
5075 /* end confdefs.h.  */
5076 $ac_includes_default
5077
5078 #include <$ac_header>
5079 _ACEOF
5080 rm -f conftest.$ac_objext
5081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5082   (eval $ac_compile) 2>&5
5083   ac_status=$?
5084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5085   (exit $ac_status); } &&
5086          { ac_try='test -s conftest.$ac_objext'
5087   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5088   (eval $ac_try) 2>&5
5089   ac_status=$?
5090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5091   (exit $ac_status); }; }; then
5092   eval "$as_ac_Header=yes"
5093 else
5094   echo "$as_me: failed program was:" >&5
5095 sed 's/^/| /' conftest.$ac_ext >&5
5096
5097 eval "$as_ac_Header=no"
5098 fi
5099 rm -f conftest.$ac_objext conftest.$ac_ext
5100 fi
5101 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5102 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5103 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5104   cat >>confdefs.h <<_ACEOF
5105 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5106 _ACEOF
5107
5108 fi
5109
5110 done
5111
5112
5113 if test "${ac_cv_header_termcap_h+set}" = set; then
5114   echo "$as_me:$LINENO: checking for termcap.h" >&5
5115 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
5116 if test "${ac_cv_header_termcap_h+set}" = set; then
5117   echo $ECHO_N "(cached) $ECHO_C" >&6
5118 fi
5119 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
5120 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
5121 else
5122   # Is the header compilable?
5123 echo "$as_me:$LINENO: checking termcap.h usability" >&5
5124 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6
5125 cat >conftest.$ac_ext <<_ACEOF
5126 #line $LINENO "configure"
5127 /* confdefs.h.  */
5128 _ACEOF
5129 cat confdefs.h >>conftest.$ac_ext
5130 cat >>conftest.$ac_ext <<_ACEOF
5131 /* end confdefs.h.  */
5132 $ac_includes_default
5133 #include <termcap.h>
5134 _ACEOF
5135 rm -f conftest.$ac_objext
5136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5137   (eval $ac_compile) 2>&5
5138   ac_status=$?
5139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5140   (exit $ac_status); } &&
5141          { ac_try='test -s conftest.$ac_objext'
5142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5143   (eval $ac_try) 2>&5
5144   ac_status=$?
5145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5146   (exit $ac_status); }; }; then
5147   ac_header_compiler=yes
5148 else
5149   echo "$as_me: failed program was:" >&5
5150 sed 's/^/| /' conftest.$ac_ext >&5
5151
5152 ac_header_compiler=no
5153 fi
5154 rm -f conftest.$ac_objext conftest.$ac_ext
5155 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5156 echo "${ECHO_T}$ac_header_compiler" >&6
5157
5158 # Is the header present?
5159 echo "$as_me:$LINENO: checking termcap.h presence" >&5
5160 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6
5161 cat >conftest.$ac_ext <<_ACEOF
5162 #line $LINENO "configure"
5163 /* confdefs.h.  */
5164 _ACEOF
5165 cat confdefs.h >>conftest.$ac_ext
5166 cat >>conftest.$ac_ext <<_ACEOF
5167 /* end confdefs.h.  */
5168 #include <termcap.h>
5169 _ACEOF
5170 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5171   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5172   ac_status=$?
5173   grep -v '^ *+' conftest.er1 >conftest.err
5174   rm -f conftest.er1
5175   cat conftest.err >&5
5176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5177   (exit $ac_status); } >/dev/null; then
5178   if test -s conftest.err; then
5179     ac_cpp_err=$ac_c_preproc_warn_flag
5180   else
5181     ac_cpp_err=
5182   fi
5183 else
5184   ac_cpp_err=yes
5185 fi
5186 if test -z "$ac_cpp_err"; then
5187   ac_header_preproc=yes
5188 else
5189   echo "$as_me: failed program was:" >&5
5190 sed 's/^/| /' conftest.$ac_ext >&5
5191
5192   ac_header_preproc=no
5193 fi
5194 rm -f conftest.err conftest.$ac_ext
5195 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5196 echo "${ECHO_T}$ac_header_preproc" >&6
5197
5198 # So?  What about this header?
5199 case $ac_header_compiler:$ac_header_preproc in
5200   yes:no )
5201     { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
5202 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5203     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
5204 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
5205     (
5206       cat <<\_ASBOX
5207 ## ------------------------------------ ##
5208 ## Report this to bug-autoconf@gnu.org. ##
5209 ## ------------------------------------ ##
5210 _ASBOX
5211     ) |
5212       sed "s/^/$as_me: WARNING:     /" >&2
5213     ;;
5214   no:yes )
5215     { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
5216 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
5217     { echo "$as_me:$LINENO: WARNING: termcap.h: check for missing prerequisite headers?" >&5
5218 echo "$as_me: WARNING: termcap.h: check for missing prerequisite headers?" >&2;}
5219     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
5220 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
5221     (
5222       cat <<\_ASBOX
5223 ## ------------------------------------ ##
5224 ## Report this to bug-autoconf@gnu.org. ##
5225 ## ------------------------------------ ##
5226 _ASBOX
5227     ) |
5228       sed "s/^/$as_me: WARNING:     /" >&2
5229     ;;
5230 esac
5231 echo "$as_me:$LINENO: checking for termcap.h" >&5
5232 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
5233 if test "${ac_cv_header_termcap_h+set}" = set; then
5234   echo $ECHO_N "(cached) $ECHO_C" >&6
5235 else
5236   ac_cv_header_termcap_h=$ac_header_preproc
5237 fi
5238 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
5239 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
5240
5241 fi
5242 if test $ac_cv_header_termcap_h = yes; then
5243    echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
5244 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
5245 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
5246   echo $ECHO_N "(cached) $ECHO_C" >&6
5247 else
5248   ac_check_lib_save_LIBS=$LIBS
5249 LIBS="-ltermcap  $LIBS"
5250 cat >conftest.$ac_ext <<_ACEOF
5251 #line $LINENO "configure"
5252 /* confdefs.h.  */
5253 _ACEOF
5254 cat confdefs.h >>conftest.$ac_ext
5255 cat >>conftest.$ac_ext <<_ACEOF
5256 /* end confdefs.h.  */
5257
5258 /* Override any gcc2 internal prototype to avoid an error.  */
5259 #ifdef __cplusplus
5260 extern "C"
5261 #endif
5262 /* We use char because int might match the return type of a gcc2
5263    builtin and then its argument prototype would still apply.  */
5264 char tgetent ();
5265 int
5266 main ()
5267 {
5268 tgetent ();
5269   ;
5270   return 0;
5271 }
5272 _ACEOF
5273 rm -f conftest.$ac_objext conftest$ac_exeext
5274 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5275   (eval $ac_link) 2>&5
5276   ac_status=$?
5277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5278   (exit $ac_status); } &&
5279          { ac_try='test -s conftest$ac_exeext'
5280   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5281   (eval $ac_try) 2>&5
5282   ac_status=$?
5283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5284   (exit $ac_status); }; }; then
5285   ac_cv_lib_termcap_tgetent=yes
5286 else
5287   echo "$as_me: failed program was:" >&5
5288 sed 's/^/| /' conftest.$ac_ext >&5
5289
5290 ac_cv_lib_termcap_tgetent=no
5291 fi
5292 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5293 LIBS=$ac_check_lib_save_LIBS
5294 fi
5295 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
5296 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
5297 if test $ac_cv_lib_termcap_tgetent = yes; then
5298    CONS_LIBS="-ltermcap"
5299          CONS_OBJ="conio.o"
5300          CONS_SRC="conio.c"
5301          got_conio="yes"
5302          support_readline=no
5303
5304 cat >>confdefs.h <<\_ACEOF
5305 #define HAVE_CONIO 1
5306 _ACEOF
5307
5308
5309 else
5310    echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
5311 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6
5312 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
5313   echo $ECHO_N "(cached) $ECHO_C" >&6
5314 else
5315   ac_check_lib_save_LIBS=$LIBS
5316 LIBS="-lncurses  $LIBS"
5317 cat >conftest.$ac_ext <<_ACEOF
5318 #line $LINENO "configure"
5319 /* confdefs.h.  */
5320 _ACEOF
5321 cat confdefs.h >>conftest.$ac_ext
5322 cat >>conftest.$ac_ext <<_ACEOF
5323 /* end confdefs.h.  */
5324
5325 /* Override any gcc2 internal prototype to avoid an error.  */
5326 #ifdef __cplusplus
5327 extern "C"
5328 #endif
5329 /* We use char because int might match the return type of a gcc2
5330    builtin and then its argument prototype would still apply.  */
5331 char tgetent ();
5332 int
5333 main ()
5334 {
5335 tgetent ();
5336   ;
5337   return 0;
5338 }
5339 _ACEOF
5340 rm -f conftest.$ac_objext conftest$ac_exeext
5341 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5342   (eval $ac_link) 2>&5
5343   ac_status=$?
5344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5345   (exit $ac_status); } &&
5346          { ac_try='test -s conftest$ac_exeext'
5347   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5348   (eval $ac_try) 2>&5
5349   ac_status=$?
5350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5351   (exit $ac_status); }; }; then
5352   ac_cv_lib_ncurses_tgetent=yes
5353 else
5354   echo "$as_me: failed program was:" >&5
5355 sed 's/^/| /' conftest.$ac_ext >&5
5356
5357 ac_cv_lib_ncurses_tgetent=no
5358 fi
5359 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5360 LIBS=$ac_check_lib_save_LIBS
5361 fi
5362 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
5363 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6
5364 if test $ac_cv_lib_ncurses_tgetent = yes; then
5365    CONS_LIBS="-lncurses"
5366            CONS_OBJ="conio.o"
5367            CONS_SRC="conio.c"
5368            got_conio="yes"
5369            support_readline=no
5370
5371 cat >>confdefs.h <<\_ACEOF
5372 #define HAVE_CONIO 1
5373 _ACEOF
5374
5375
5376 else
5377    echo " "; echo "Neither termcap nor ncurses library found. CONIO turned off ..."; echo " "
5378 fi
5379
5380
5381 fi
5382
5383
5384 else
5385   echo " "; echo "termcap.h not found. CONIO turned off ..."; echo " "
5386 fi
5387
5388
5389 fi
5390
5391
5392 # ---------------------------------------------------
5393 # Check for readline support/directory (default off)
5394 # ---------------------------------------------------
5395 # this allows you to turn it completely off
5396 # Check whether --enable-readline or --disable-readline was given.
5397 if test "${enable_readline+set}" = set; then
5398   enableval="$enable_readline"
5399   if test x$enableval = xno; then
5400     support_readline=no
5401   fi
5402 fi;
5403
5404 got_readline="no"
5405 READLINE_SRC=
5406 if test x$support_readline = xyes; then
5407
5408 # Check whether --with-readline or --without-readline was given.
5409 if test "${with_readline+set}" = set; then
5410   withval="$with_readline"
5411
5412         case "$with_readline" in
5413         no) : ;;
5414         yes|*)
5415           if test "$with_readline" != "yes"; then
5416             CONS_INC="-I${with_readline}"
5417             CONS_LDFLAGS="-L$with_readline"
5418           else
5419              with_readline="/usr/include/readline"
5420           fi
5421           as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
5422 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5423   echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
5424 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
5425 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5426   echo $ECHO_N "(cached) $ECHO_C" >&6
5427 fi
5428 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5429 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5430 else
5431   # Is the header compilable?
5432 echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
5433 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6
5434 cat >conftest.$ac_ext <<_ACEOF
5435 #line $LINENO "configure"
5436 /* confdefs.h.  */
5437 _ACEOF
5438 cat confdefs.h >>conftest.$ac_ext
5439 cat >>conftest.$ac_ext <<_ACEOF
5440 /* end confdefs.h.  */
5441 $ac_includes_default
5442 #include <${with_readline}/readline.h>
5443 _ACEOF
5444 rm -f conftest.$ac_objext
5445 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5446   (eval $ac_compile) 2>&5
5447   ac_status=$?
5448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5449   (exit $ac_status); } &&
5450          { ac_try='test -s conftest.$ac_objext'
5451   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5452   (eval $ac_try) 2>&5
5453   ac_status=$?
5454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5455   (exit $ac_status); }; }; then
5456   ac_header_compiler=yes
5457 else
5458   echo "$as_me: failed program was:" >&5
5459 sed 's/^/| /' conftest.$ac_ext >&5
5460
5461 ac_header_compiler=no
5462 fi
5463 rm -f conftest.$ac_objext conftest.$ac_ext
5464 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5465 echo "${ECHO_T}$ac_header_compiler" >&6
5466
5467 # Is the header present?
5468 echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
5469 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6
5470 cat >conftest.$ac_ext <<_ACEOF
5471 #line $LINENO "configure"
5472 /* confdefs.h.  */
5473 _ACEOF
5474 cat confdefs.h >>conftest.$ac_ext
5475 cat >>conftest.$ac_ext <<_ACEOF
5476 /* end confdefs.h.  */
5477 #include <${with_readline}/readline.h>
5478 _ACEOF
5479 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5480   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5481   ac_status=$?
5482   grep -v '^ *+' conftest.er1 >conftest.err
5483   rm -f conftest.er1
5484   cat conftest.err >&5
5485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5486   (exit $ac_status); } >/dev/null; then
5487   if test -s conftest.err; then
5488     ac_cpp_err=$ac_c_preproc_warn_flag
5489   else
5490     ac_cpp_err=
5491   fi
5492 else
5493   ac_cpp_err=yes
5494 fi
5495 if test -z "$ac_cpp_err"; then
5496   ac_header_preproc=yes
5497 else
5498   echo "$as_me: failed program was:" >&5
5499 sed 's/^/| /' conftest.$ac_ext >&5
5500
5501   ac_header_preproc=no
5502 fi
5503 rm -f conftest.err conftest.$ac_ext
5504 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5505 echo "${ECHO_T}$ac_header_preproc" >&6
5506
5507 # So?  What about this header?
5508 case $ac_header_compiler:$ac_header_preproc in
5509   yes:no )
5510     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5511 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5512     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
5513 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
5514     (
5515       cat <<\_ASBOX
5516 ## ------------------------------------ ##
5517 ## Report this to bug-autoconf@gnu.org. ##
5518 ## ------------------------------------ ##
5519 _ASBOX
5520     ) |
5521       sed "s/^/$as_me: WARNING:     /" >&2
5522     ;;
5523   no:yes )
5524     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
5525 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
5526     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&5
5527 echo "$as_me: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&2;}
5528     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
5529 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
5530     (
5531       cat <<\_ASBOX
5532 ## ------------------------------------ ##
5533 ## Report this to bug-autoconf@gnu.org. ##
5534 ## ------------------------------------ ##
5535 _ASBOX
5536     ) |
5537       sed "s/^/$as_me: WARNING:     /" >&2
5538     ;;
5539 esac
5540 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
5541 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
5542 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5543   echo $ECHO_N "(cached) $ECHO_C" >&6
5544 else
5545   eval "$as_ac_Header=$ac_header_preproc"
5546 fi
5547 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5548 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5549
5550 fi
5551 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5552    cat >>confdefs.h <<\_ACEOF
5553 #define HAVE_READLINE 1
5554 _ACEOF
5555
5556                CONS_LIBS="-lreadline -ltermcap"
5557                got_readline="yes"
5558
5559 else
5560    echo " "
5561                echo "readline.h not found. readline turned off ..."
5562                echo " "
5563
5564
5565 fi
5566
5567
5568           ;;
5569         esac
5570
5571 else
5572
5573        # check for standard readline library
5574        if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5575   echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
5576 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
5577 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5578   echo $ECHO_N "(cached) $ECHO_C" >&6
5579 fi
5580 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
5581 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
5582 else
5583   # Is the header compilable?
5584 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
5585 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6
5586 cat >conftest.$ac_ext <<_ACEOF
5587 #line $LINENO "configure"
5588 /* confdefs.h.  */
5589 _ACEOF
5590 cat confdefs.h >>conftest.$ac_ext
5591 cat >>conftest.$ac_ext <<_ACEOF
5592 /* end confdefs.h.  */
5593 $ac_includes_default
5594 #include </usr/include/readline/readline.h>
5595 _ACEOF
5596 rm -f conftest.$ac_objext
5597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5598   (eval $ac_compile) 2>&5
5599   ac_status=$?
5600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5601   (exit $ac_status); } &&
5602          { ac_try='test -s conftest.$ac_objext'
5603   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5604   (eval $ac_try) 2>&5
5605   ac_status=$?
5606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5607   (exit $ac_status); }; }; then
5608   ac_header_compiler=yes
5609 else
5610   echo "$as_me: failed program was:" >&5
5611 sed 's/^/| /' conftest.$ac_ext >&5
5612
5613 ac_header_compiler=no
5614 fi
5615 rm -f conftest.$ac_objext conftest.$ac_ext
5616 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5617 echo "${ECHO_T}$ac_header_compiler" >&6
5618
5619 # Is the header present?
5620 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
5621 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6
5622 cat >conftest.$ac_ext <<_ACEOF
5623 #line $LINENO "configure"
5624 /* confdefs.h.  */
5625 _ACEOF
5626 cat confdefs.h >>conftest.$ac_ext
5627 cat >>conftest.$ac_ext <<_ACEOF
5628 /* end confdefs.h.  */
5629 #include </usr/include/readline/readline.h>
5630 _ACEOF
5631 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5632   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5633   ac_status=$?
5634   grep -v '^ *+' conftest.er1 >conftest.err
5635   rm -f conftest.er1
5636   cat conftest.err >&5
5637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5638   (exit $ac_status); } >/dev/null; then
5639   if test -s conftest.err; then
5640     ac_cpp_err=$ac_c_preproc_warn_flag
5641   else
5642     ac_cpp_err=
5643   fi
5644 else
5645   ac_cpp_err=yes
5646 fi
5647 if test -z "$ac_cpp_err"; then
5648   ac_header_preproc=yes
5649 else
5650   echo "$as_me: failed program was:" >&5
5651 sed 's/^/| /' conftest.$ac_ext >&5
5652
5653   ac_header_preproc=no
5654 fi
5655 rm -f conftest.err conftest.$ac_ext
5656 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5657 echo "${ECHO_T}$ac_header_preproc" >&6
5658
5659 # So?  What about this header?
5660 case $ac_header_compiler:$ac_header_preproc in
5661   yes:no )
5662     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5663 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5664     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
5665 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5666     (
5667       cat <<\_ASBOX
5668 ## ------------------------------------ ##
5669 ## Report this to bug-autoconf@gnu.org. ##
5670 ## ------------------------------------ ##
5671 _ASBOX
5672     ) |
5673       sed "s/^/$as_me: WARNING:     /" >&2
5674     ;;
5675   no:yes )
5676     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
5677 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
5678     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&5
5679 echo "$as_me: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&2;}
5680     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
5681 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5682     (
5683       cat <<\_ASBOX
5684 ## ------------------------------------ ##
5685 ## Report this to bug-autoconf@gnu.org. ##
5686 ## ------------------------------------ ##
5687 _ASBOX
5688     ) |
5689       sed "s/^/$as_me: WARNING:     /" >&2
5690     ;;
5691 esac
5692 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
5693 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
5694 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5695   echo $ECHO_N "(cached) $ECHO_C" >&6
5696 else
5697   ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
5698 fi
5699 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
5700 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
5701
5702 fi
5703 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
5704    cat >>confdefs.h <<\_ACEOF
5705 #define HAVE_READLINE 1
5706 _ACEOF
5707
5708            got_readline="yes"
5709            CONS_INC="-I/usr/include/readline"
5710            CONS_LIBS="-lreadline -ltermcap"
5711
5712 else
5713
5714            # Did not find standard library, so try Bacula's default
5715             as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
5716 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5717   echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
5718 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
5719 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5720   echo $ECHO_N "(cached) $ECHO_C" >&6
5721 fi
5722 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5723 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5724 else
5725   # Is the header compilable?
5726 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
5727 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6
5728 cat >conftest.$ac_ext <<_ACEOF
5729 #line $LINENO "configure"
5730 /* confdefs.h.  */
5731 _ACEOF
5732 cat confdefs.h >>conftest.$ac_ext
5733 cat >>conftest.$ac_ext <<_ACEOF
5734 /* end confdefs.h.  */
5735 $ac_includes_default
5736 #include <${TOP_DIR}/depkgs/readline/readline.h>
5737 _ACEOF
5738 rm -f conftest.$ac_objext
5739 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5740   (eval $ac_compile) 2>&5
5741   ac_status=$?
5742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5743   (exit $ac_status); } &&
5744          { ac_try='test -s conftest.$ac_objext'
5745   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5746   (eval $ac_try) 2>&5
5747   ac_status=$?
5748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5749   (exit $ac_status); }; }; then
5750   ac_header_compiler=yes
5751 else
5752   echo "$as_me: failed program was:" >&5
5753 sed 's/^/| /' conftest.$ac_ext >&5
5754
5755 ac_header_compiler=no
5756 fi
5757 rm -f conftest.$ac_objext conftest.$ac_ext
5758 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5759 echo "${ECHO_T}$ac_header_compiler" >&6
5760
5761 # Is the header present?
5762 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
5763 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6
5764 cat >conftest.$ac_ext <<_ACEOF
5765 #line $LINENO "configure"
5766 /* confdefs.h.  */
5767 _ACEOF
5768 cat confdefs.h >>conftest.$ac_ext
5769 cat >>conftest.$ac_ext <<_ACEOF
5770 /* end confdefs.h.  */
5771 #include <${TOP_DIR}/depkgs/readline/readline.h>
5772 _ACEOF
5773 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5774   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5775   ac_status=$?
5776   grep -v '^ *+' conftest.er1 >conftest.err
5777   rm -f conftest.er1
5778   cat conftest.err >&5
5779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5780   (exit $ac_status); } >/dev/null; then
5781   if test -s conftest.err; then
5782     ac_cpp_err=$ac_c_preproc_warn_flag
5783   else
5784     ac_cpp_err=
5785   fi
5786 else
5787   ac_cpp_err=yes
5788 fi
5789 if test -z "$ac_cpp_err"; then
5790   ac_header_preproc=yes
5791 else
5792   echo "$as_me: failed program was:" >&5
5793 sed 's/^/| /' conftest.$ac_ext >&5
5794
5795   ac_header_preproc=no
5796 fi
5797 rm -f conftest.err conftest.$ac_ext
5798 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5799 echo "${ECHO_T}$ac_header_preproc" >&6
5800
5801 # So?  What about this header?
5802 case $ac_header_compiler:$ac_header_preproc in
5803   yes:no )
5804     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5805 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5806     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
5807 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5808     (
5809       cat <<\_ASBOX
5810 ## ------------------------------------ ##
5811 ## Report this to bug-autoconf@gnu.org. ##
5812 ## ------------------------------------ ##
5813 _ASBOX
5814     ) |
5815       sed "s/^/$as_me: WARNING:     /" >&2
5816     ;;
5817   no:yes )
5818     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
5819 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
5820     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&5
5821 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&2;}
5822     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
5823 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5824     (
5825       cat <<\_ASBOX
5826 ## ------------------------------------ ##
5827 ## Report this to bug-autoconf@gnu.org. ##
5828 ## ------------------------------------ ##
5829 _ASBOX
5830     ) |
5831       sed "s/^/$as_me: WARNING:     /" >&2
5832     ;;
5833 esac
5834 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
5835 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
5836 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5837   echo $ECHO_N "(cached) $ECHO_C" >&6
5838 else
5839   eval "$as_ac_Header=$ac_header_preproc"
5840 fi
5841 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5842 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5843
5844 fi
5845 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5846    cat >>confdefs.h <<\_ACEOF
5847 #define HAVE_READLINE 1
5848 _ACEOF
5849
5850                  got_readline="yes"
5851                  CONS_INC="-I${TOP_DIR}/depkgs/readline"
5852                  CONS_LIBS="-lreadline -lhistory -ltermcap"
5853                  CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
5854                  PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
5855
5856 else
5857    echo " "
5858                 echo "readline.h not found. readline turned off ..."
5859                 echo " "
5860
5861
5862 fi
5863
5864
5865
5866
5867 fi
5868
5869
5870
5871
5872 fi;
5873 fi
5874
5875
5876
5877
5878
5879
5880
5881
5882
5883
5884 # Minimal stuff for readline Makefile configuration
5885 MAKE_SHELL=/bin/sh
5886
5887
5888 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
5889 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
5890 if test "${ac_cv_header_stat_broken+set}" = set; then
5891   echo $ECHO_N "(cached) $ECHO_C" >&6
5892 else
5893   cat >conftest.$ac_ext <<_ACEOF
5894 #line $LINENO "configure"
5895 /* confdefs.h.  */
5896 _ACEOF
5897 cat confdefs.h >>conftest.$ac_ext
5898 cat >>conftest.$ac_ext <<_ACEOF
5899 /* end confdefs.h.  */
5900 #include <sys/types.h>
5901 #include <sys/stat.h>
5902
5903 #if defined(S_ISBLK) && defined(S_IFDIR)
5904 # if S_ISBLK (S_IFDIR)
5905 You lose.
5906 # endif
5907 #endif
5908
5909 #if defined(S_ISBLK) && defined(S_IFCHR)
5910 # if S_ISBLK (S_IFCHR)
5911 You lose.
5912 # endif
5913 #endif
5914
5915 #if defined(S_ISLNK) && defined(S_IFREG)
5916 # if S_ISLNK (S_IFREG)
5917 You lose.
5918 # endif
5919 #endif
5920
5921 #if defined(S_ISSOCK) && defined(S_IFREG)
5922 # if S_ISSOCK (S_IFREG)
5923 You lose.
5924 # endif
5925 #endif
5926
5927 _ACEOF
5928 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5929   $EGREP "You lose" >/dev/null 2>&1; then
5930   ac_cv_header_stat_broken=yes
5931 else
5932   ac_cv_header_stat_broken=no
5933 fi
5934 rm -f conftest*
5935
5936 fi
5937 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
5938 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
5939 if test $ac_cv_header_stat_broken = yes; then
5940
5941 cat >>confdefs.h <<\_ACEOF
5942 #define STAT_MACROS_BROKEN 1
5943 _ACEOF
5944
5945 fi
5946
5947
5948
5949
5950
5951
5952 ac_header_dirent=no
5953 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5954   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5955 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5956 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
5957 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5958   echo $ECHO_N "(cached) $ECHO_C" >&6
5959 else
5960   cat >conftest.$ac_ext <<_ACEOF
5961 #line $LINENO "configure"
5962 /* confdefs.h.  */
5963 _ACEOF
5964 cat confdefs.h >>conftest.$ac_ext
5965 cat >>conftest.$ac_ext <<_ACEOF
5966 /* end confdefs.h.  */
5967 #include <sys/types.h>
5968 #include <$ac_hdr>
5969
5970 int
5971 main ()
5972 {
5973 if ((DIR *) 0)
5974 return 0;
5975   ;
5976   return 0;
5977 }
5978 _ACEOF
5979 rm -f conftest.$ac_objext
5980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5981   (eval $ac_compile) 2>&5
5982   ac_status=$?
5983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5984   (exit $ac_status); } &&
5985          { ac_try='test -s conftest.$ac_objext'
5986   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5987   (eval $ac_try) 2>&5
5988   ac_status=$?
5989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5990   (exit $ac_status); }; }; then
5991   eval "$as_ac_Header=yes"
5992 else
5993   echo "$as_me: failed program was:" >&5
5994 sed 's/^/| /' conftest.$ac_ext >&5
5995
5996 eval "$as_ac_Header=no"
5997 fi
5998 rm -f conftest.$ac_objext conftest.$ac_ext
5999 fi
6000 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6001 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6002 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6003   cat >>confdefs.h <<_ACEOF
6004 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6005 _ACEOF
6006
6007 ac_header_dirent=$ac_hdr; break
6008 fi
6009
6010 done
6011 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6012 if test $ac_header_dirent = dirent.h; then
6013   echo "$as_me:$LINENO: checking for library containing opendir" >&5
6014 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6015 if test "${ac_cv_search_opendir+set}" = set; then
6016   echo $ECHO_N "(cached) $ECHO_C" >&6
6017 else
6018   ac_func_search_save_LIBS=$LIBS
6019 ac_cv_search_opendir=no
6020 cat >conftest.$ac_ext <<_ACEOF
6021 #line $LINENO "configure"
6022 /* confdefs.h.  */
6023 _ACEOF
6024 cat confdefs.h >>conftest.$ac_ext
6025 cat >>conftest.$ac_ext <<_ACEOF
6026 /* end confdefs.h.  */
6027
6028 /* Override any gcc2 internal prototype to avoid an error.  */
6029 #ifdef __cplusplus
6030 extern "C"
6031 #endif
6032 /* We use char because int might match the return type of a gcc2
6033    builtin and then its argument prototype would still apply.  */
6034 char opendir ();
6035 int
6036 main ()
6037 {
6038 opendir ();
6039   ;
6040   return 0;
6041 }
6042 _ACEOF
6043 rm -f conftest.$ac_objext conftest$ac_exeext
6044 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6045   (eval $ac_link) 2>&5
6046   ac_status=$?
6047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6048   (exit $ac_status); } &&
6049          { ac_try='test -s conftest$ac_exeext'
6050   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6051   (eval $ac_try) 2>&5
6052   ac_status=$?
6053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6054   (exit $ac_status); }; }; then
6055   ac_cv_search_opendir="none required"
6056 else
6057   echo "$as_me: failed program was:" >&5
6058 sed 's/^/| /' conftest.$ac_ext >&5
6059
6060 fi
6061 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6062 if test "$ac_cv_search_opendir" = no; then
6063   for ac_lib in dir; do
6064     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6065     cat >conftest.$ac_ext <<_ACEOF
6066 #line $LINENO "configure"
6067 /* confdefs.h.  */
6068 _ACEOF
6069 cat confdefs.h >>conftest.$ac_ext
6070 cat >>conftest.$ac_ext <<_ACEOF
6071 /* end confdefs.h.  */
6072
6073 /* Override any gcc2 internal prototype to avoid an error.  */
6074 #ifdef __cplusplus
6075 extern "C"
6076 #endif
6077 /* We use char because int might match the return type of a gcc2
6078    builtin and then its argument prototype would still apply.  */
6079 char opendir ();
6080 int
6081 main ()
6082 {
6083 opendir ();
6084   ;
6085   return 0;
6086 }
6087 _ACEOF
6088 rm -f conftest.$ac_objext conftest$ac_exeext
6089 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6090   (eval $ac_link) 2>&5
6091   ac_status=$?
6092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6093   (exit $ac_status); } &&
6094          { ac_try='test -s conftest$ac_exeext'
6095   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6096   (eval $ac_try) 2>&5
6097   ac_status=$?
6098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6099   (exit $ac_status); }; }; then
6100   ac_cv_search_opendir="-l$ac_lib"
6101 break
6102 else
6103   echo "$as_me: failed program was:" >&5
6104 sed 's/^/| /' conftest.$ac_ext >&5
6105
6106 fi
6107 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6108   done
6109 fi
6110 LIBS=$ac_func_search_save_LIBS
6111 fi
6112 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6113 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6114 if test "$ac_cv_search_opendir" != no; then
6115   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6116
6117 fi
6118
6119 else
6120   echo "$as_me:$LINENO: checking for library containing opendir" >&5
6121 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6122 if test "${ac_cv_search_opendir+set}" = set; then
6123   echo $ECHO_N "(cached) $ECHO_C" >&6
6124 else
6125   ac_func_search_save_LIBS=$LIBS
6126 ac_cv_search_opendir=no
6127 cat >conftest.$ac_ext <<_ACEOF
6128 #line $LINENO "configure"
6129 /* confdefs.h.  */
6130 _ACEOF
6131 cat confdefs.h >>conftest.$ac_ext
6132 cat >>conftest.$ac_ext <<_ACEOF
6133 /* end confdefs.h.  */
6134
6135 /* Override any gcc2 internal prototype to avoid an error.  */
6136 #ifdef __cplusplus
6137 extern "C"
6138 #endif
6139 /* We use char because int might match the return type of a gcc2
6140    builtin and then its argument prototype would still apply.  */
6141 char opendir ();
6142 int
6143 main ()
6144 {
6145 opendir ();
6146   ;
6147   return 0;
6148 }
6149 _ACEOF
6150 rm -f conftest.$ac_objext conftest$ac_exeext
6151 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6152   (eval $ac_link) 2>&5
6153   ac_status=$?
6154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6155   (exit $ac_status); } &&
6156          { ac_try='test -s conftest$ac_exeext'
6157   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6158   (eval $ac_try) 2>&5
6159   ac_status=$?
6160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6161   (exit $ac_status); }; }; then
6162   ac_cv_search_opendir="none required"
6163 else
6164   echo "$as_me: failed program was:" >&5
6165 sed 's/^/| /' conftest.$ac_ext >&5
6166
6167 fi
6168 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6169 if test "$ac_cv_search_opendir" = no; then
6170   for ac_lib in x; do
6171     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6172     cat >conftest.$ac_ext <<_ACEOF
6173 #line $LINENO "configure"
6174 /* confdefs.h.  */
6175 _ACEOF
6176 cat confdefs.h >>conftest.$ac_ext
6177 cat >>conftest.$ac_ext <<_ACEOF
6178 /* end confdefs.h.  */
6179
6180 /* Override any gcc2 internal prototype to avoid an error.  */
6181 #ifdef __cplusplus
6182 extern "C"
6183 #endif
6184 /* We use char because int might match the return type of a gcc2
6185    builtin and then its argument prototype would still apply.  */
6186 char opendir ();
6187 int
6188 main ()
6189 {
6190 opendir ();
6191   ;
6192   return 0;
6193 }
6194 _ACEOF
6195 rm -f conftest.$ac_objext conftest$ac_exeext
6196 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6197   (eval $ac_link) 2>&5
6198   ac_status=$?
6199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6200   (exit $ac_status); } &&
6201          { ac_try='test -s conftest$ac_exeext'
6202   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6203   (eval $ac_try) 2>&5
6204   ac_status=$?
6205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6206   (exit $ac_status); }; }; then
6207   ac_cv_search_opendir="-l$ac_lib"
6208 break
6209 else
6210   echo "$as_me: failed program was:" >&5
6211 sed 's/^/| /' conftest.$ac_ext >&5
6212
6213 fi
6214 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6215   done
6216 fi
6217 LIBS=$ac_func_search_save_LIBS
6218 fi
6219 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6220 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6221 if test "$ac_cv_search_opendir" != no; then
6222   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6223
6224 fi
6225
6226 fi
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237 for ac_func in strcasecmp select setenv putenv tcgetattr setlocale lstat lchown
6238 do
6239 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6240 echo "$as_me:$LINENO: checking for $ac_func" >&5
6241 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6242 if eval "test \"\${$as_ac_var+set}\" = set"; then
6243   echo $ECHO_N "(cached) $ECHO_C" >&6
6244 else
6245   cat >conftest.$ac_ext <<_ACEOF
6246 #line $LINENO "configure"
6247 /* confdefs.h.  */
6248 _ACEOF
6249 cat confdefs.h >>conftest.$ac_ext
6250 cat >>conftest.$ac_ext <<_ACEOF
6251 /* end confdefs.h.  */
6252 /* System header to define __stub macros and hopefully few prototypes,
6253     which can conflict with char $ac_func (); below.
6254     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6255     <limits.h> exists even on freestanding compilers.  */
6256 #ifdef __STDC__
6257 # include <limits.h>
6258 #else
6259 # include <assert.h>
6260 #endif
6261 /* Override any gcc2 internal prototype to avoid an error.  */
6262 #ifdef __cplusplus
6263 extern "C"
6264 {
6265 #endif
6266 /* We use char because int might match the return type of a gcc2
6267    builtin and then its argument prototype would still apply.  */
6268 char $ac_func ();
6269 /* The GNU C library defines this for functions which it implements
6270     to always fail with ENOSYS.  Some functions are actually named
6271     something starting with __ and the normal name is an alias.  */
6272 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6273 choke me
6274 #else
6275 char (*f) () = $ac_func;
6276 #endif
6277 #ifdef __cplusplus
6278 }
6279 #endif
6280
6281 int
6282 main ()
6283 {
6284 return f != $ac_func;
6285   ;
6286   return 0;
6287 }
6288 _ACEOF
6289 rm -f conftest.$ac_objext conftest$ac_exeext
6290 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6291   (eval $ac_link) 2>&5
6292   ac_status=$?
6293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6294   (exit $ac_status); } &&
6295          { ac_try='test -s conftest$ac_exeext'
6296   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6297   (eval $ac_try) 2>&5
6298   ac_status=$?
6299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6300   (exit $ac_status); }; }; then
6301   eval "$as_ac_var=yes"
6302 else
6303   echo "$as_me: failed program was:" >&5
6304 sed 's/^/| /' conftest.$ac_ext >&5
6305
6306 eval "$as_ac_var=no"
6307 fi
6308 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6309 fi
6310 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6311 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6312 if test `eval echo '${'$as_ac_var'}'` = yes; then
6313   cat >>confdefs.h <<_ACEOF
6314 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6315 _ACEOF
6316
6317 fi
6318 done
6319
6320
6321
6322 for ac_func in nanosleep nl_langinfo
6323 do
6324 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6325 echo "$as_me:$LINENO: checking for $ac_func" >&5
6326 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6327 if eval "test \"\${$as_ac_var+set}\" = set"; then
6328   echo $ECHO_N "(cached) $ECHO_C" >&6
6329 else
6330   cat >conftest.$ac_ext <<_ACEOF
6331 #line $LINENO "configure"
6332 /* confdefs.h.  */
6333 _ACEOF
6334 cat confdefs.h >>conftest.$ac_ext
6335 cat >>conftest.$ac_ext <<_ACEOF
6336 /* end confdefs.h.  */
6337 /* System header to define __stub macros and hopefully few prototypes,
6338     which can conflict with char $ac_func (); below.
6339     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6340     <limits.h> exists even on freestanding compilers.  */
6341 #ifdef __STDC__
6342 # include <limits.h>
6343 #else
6344 # include <assert.h>
6345 #endif
6346 /* Override any gcc2 internal prototype to avoid an error.  */
6347 #ifdef __cplusplus
6348 extern "C"
6349 {
6350 #endif
6351 /* We use char because int might match the return type of a gcc2
6352    builtin and then its argument prototype would still apply.  */
6353 char $ac_func ();
6354 /* The GNU C library defines this for functions which it implements
6355     to always fail with ENOSYS.  Some functions are actually named
6356     something starting with __ and the normal name is an alias.  */
6357 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6358 choke me
6359 #else
6360 char (*f) () = $ac_func;
6361 #endif
6362 #ifdef __cplusplus
6363 }
6364 #endif
6365
6366 int
6367 main ()
6368 {
6369 return f != $ac_func;
6370   ;
6371   return 0;
6372 }
6373 _ACEOF
6374 rm -f conftest.$ac_objext conftest$ac_exeext
6375 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6376   (eval $ac_link) 2>&5
6377   ac_status=$?
6378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6379   (exit $ac_status); } &&
6380          { ac_try='test -s conftest$ac_exeext'
6381   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6382   (eval $ac_try) 2>&5
6383   ac_status=$?
6384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6385   (exit $ac_status); }; }; then
6386   eval "$as_ac_var=yes"
6387 else
6388   echo "$as_me: failed program was:" >&5
6389 sed 's/^/| /' conftest.$ac_ext >&5
6390
6391 eval "$as_ac_var=no"
6392 fi
6393 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6394 fi
6395 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6396 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6397 if test `eval echo '${'$as_ac_var'}'` = yes; then
6398   cat >>confdefs.h <<_ACEOF
6399 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6400 _ACEOF
6401
6402 fi
6403 done
6404
6405
6406
6407 for ac_header in varargs.h
6408 do
6409 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6410 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6411   echo "$as_me:$LINENO: checking for $ac_header" >&5
6412 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6413 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6414   echo $ECHO_N "(cached) $ECHO_C" >&6
6415 fi
6416 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6417 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6418 else
6419   # Is the header compilable?
6420 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6421 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6422 cat >conftest.$ac_ext <<_ACEOF
6423 #line $LINENO "configure"
6424 /* confdefs.h.  */
6425 _ACEOF
6426 cat confdefs.h >>conftest.$ac_ext
6427 cat >>conftest.$ac_ext <<_ACEOF
6428 /* end confdefs.h.  */
6429 $ac_includes_default
6430 #include <$ac_header>
6431 _ACEOF
6432 rm -f conftest.$ac_objext
6433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6434   (eval $ac_compile) 2>&5
6435   ac_status=$?
6436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6437   (exit $ac_status); } &&
6438          { ac_try='test -s conftest.$ac_objext'
6439   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6440   (eval $ac_try) 2>&5
6441   ac_status=$?
6442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6443   (exit $ac_status); }; }; then
6444   ac_header_compiler=yes
6445 else
6446   echo "$as_me: failed program was:" >&5
6447 sed 's/^/| /' conftest.$ac_ext >&5
6448
6449 ac_header_compiler=no
6450 fi
6451 rm -f conftest.$ac_objext conftest.$ac_ext
6452 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6453 echo "${ECHO_T}$ac_header_compiler" >&6
6454
6455 # Is the header present?
6456 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6457 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6458 cat >conftest.$ac_ext <<_ACEOF
6459 #line $LINENO "configure"
6460 /* confdefs.h.  */
6461 _ACEOF
6462 cat confdefs.h >>conftest.$ac_ext
6463 cat >>conftest.$ac_ext <<_ACEOF
6464 /* end confdefs.h.  */
6465 #include <$ac_header>
6466 _ACEOF
6467 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6468   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6469   ac_status=$?
6470   grep -v '^ *+' conftest.er1 >conftest.err
6471   rm -f conftest.er1
6472   cat conftest.err >&5
6473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6474   (exit $ac_status); } >/dev/null; then
6475   if test -s conftest.err; then
6476     ac_cpp_err=$ac_c_preproc_warn_flag
6477   else
6478     ac_cpp_err=
6479   fi
6480 else
6481   ac_cpp_err=yes
6482 fi
6483 if test -z "$ac_cpp_err"; then
6484   ac_header_preproc=yes
6485 else
6486   echo "$as_me: failed program was:" >&5
6487 sed 's/^/| /' conftest.$ac_ext >&5
6488
6489   ac_header_preproc=no
6490 fi
6491 rm -f conftest.err conftest.$ac_ext
6492 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6493 echo "${ECHO_T}$ac_header_preproc" >&6
6494
6495 # So?  What about this header?
6496 case $ac_header_compiler:$ac_header_preproc in
6497   yes:no )
6498     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6499 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6500     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6501 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6502     (
6503       cat <<\_ASBOX
6504 ## ------------------------------------ ##
6505 ## Report this to bug-autoconf@gnu.org. ##
6506 ## ------------------------------------ ##
6507 _ASBOX
6508     ) |
6509       sed "s/^/$as_me: WARNING:     /" >&2
6510     ;;
6511   no:yes )
6512     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6513 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6514     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6515 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6516     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6517 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6518     (
6519       cat <<\_ASBOX
6520 ## ------------------------------------ ##
6521 ## Report this to bug-autoconf@gnu.org. ##
6522 ## ------------------------------------ ##
6523 _ASBOX
6524     ) |
6525       sed "s/^/$as_me: WARNING:     /" >&2
6526     ;;
6527 esac
6528 echo "$as_me:$LINENO: checking for $ac_header" >&5
6529 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6530 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6531   echo $ECHO_N "(cached) $ECHO_C" >&6
6532 else
6533   eval "$as_ac_Header=$ac_header_preproc"
6534 fi
6535 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6536 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6537
6538 fi
6539 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6540   cat >>confdefs.h <<_ACEOF
6541 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6542 _ACEOF
6543
6544 fi
6545
6546 done
6547
6548
6549 # End of readline/conio stuff
6550 # -----------------------------------------------------------------------
6551
6552
6553 # ---------------------------------------------------
6554 # Check for GMP support/directory
6555 # ---------------------------------------------------
6556 #GMP_SRC=
6557 #local_gmp="no"
6558 #AC_ARG_WITH(gmp,
6559 #  [  --with-gmp[=DIR]   Specify gmp library directory],
6560 #  [
6561 #     case "$with_gmp" in
6562 #     no) : ;;
6563 #     yes|*)
6564 #       if test "$with_gmp" != "yes"; then
6565 #         GMP_INC="-I$with_gmp"
6566 #         GMP_LIBS="-lgmp"
6567 #         GMP_LDFLAGS="-L$with_gmp"
6568 #       else
6569 #          with_gmp="/usr/include"
6570 #       fi
6571 #       AC_CHECK_HEADER($with_gmp/gmp.h,
6572 #          [ AC_MSG_RESULT(yes)
6573 #            AC_DEFINE(HAVE_GMP)
6574 #            GMP_LIBS="-lgmp"
6575 #            got_gmp="yes"
6576 #          ],
6577 #          [ AC_MSG_ERROR([*** gmp library missing])
6578 #          ]
6579 #       )
6580 #       ;;
6581 #     esac
6582 #  ],[
6583 #    # check for standard gmp library
6584 #    AC_CHECK_HEADER(/usr/include/gmp.h,
6585 #    [ AC_MSG_RESULT(yes)
6586 #      AC_DEFINE(HAVE_GMP)
6587 #      got_gmp="yes"
6588 #      GMP_INC=
6589 #      GMP_LIBS="-lgmp"
6590 #    ], [
6591 #      # Did not find standard library, so use our own
6592 #      AC_MSG_RESULT(yes)
6593 #      AC_DEFINE(HAVE_GMP)
6594 #      got_gmp="yes"
6595 #      local_gmp="yes"
6596 #      GMP_INC="-I${TOP_DIR}/depkgs/gmp"
6597 #      GMP_LIBS="-lgmp"
6598 #      GMP_LDFLAGS="-L${TOP_DIR}/depkgs/gmp"
6599 #      GMP_SRC="${TOP_DIR}/depkgs/gmp"
6600 #    ])
6601 #  ]
6602 #)
6603 #AC_SUBST(GMP_INC)
6604 #AC_SUBST(GMP_LIBS)
6605 #AC_SUBST(GMP_LDFLAGS)
6606 #AC_SUBST(GMP_SRC)
6607
6608 # End of GMP stuff
6609 # -----------------------------------------------------------------------
6610
6611
6612 # ---------------------------------------------------
6613 # Check for CWEB support/directory
6614 # ---------------------------------------------------
6615 #CWEB_SRC=
6616 #CWEB=/bin
6617 #local_cweb="no"
6618 #AC_ARG_WITH(cweb,
6619 #  [  --with-cweb[=DIR]   Specify cweb library directory],
6620 #  [
6621 #     case "$with_cweb" in
6622 #     no) : ;;
6623 #     yes|*)
6624 #       if test "$with_cweb" != "yes"; then
6625 #         CWEB_INC="-I$with_cweb"
6626 #         CWEB_LIBS="-lcweb"
6627 #         CWEB_LDFLAGS="-L$with_cweb"
6628 #       else
6629 #          with_cweb="/usr/include"
6630 #       fi
6631 #       AC_CHECK_HEADER($with_cweb/cweb.h,
6632 #          [ AC_MSG_RESULT(yes)
6633 #            AC_DEFINE(HAVE_CWEB)
6634 #            CWEB_LIBS="-lcweb"
6635 #            got_cweb="yes"
6636 #          ],
6637 #          [ AC_MSG_ERROR([*** cweb library missing])
6638 #          ]
6639 #       )
6640 #       ;;
6641 #     esac
6642 #  ],[
6643 #    # check for standard cweb library
6644 #    AC_CHECK_HEADER(/usr/include/cweb.h,
6645 #    [ AC_MSG_RESULT(yes)
6646 #      AC_DEFINE(HAVE_CWEB)
6647 #      got_cweb="yes"
6648 #      CWEB_INC=
6649 #      CWEB_LIBS="-lcweb"
6650 #    ], [
6651 #      # Did not find starndard library, so use our own
6652 #      AC_MSG_RESULT(yes)
6653 #      AC_DEFINE(HAVE_CWEB)
6654 #      got_cweb="yes"
6655 #      local_cweb="yes"
6656 #      CWEB=${TOP_DIR}/depkgs/cweb
6657 #      CWEB_INC="-I${TOP_DIR}/depkgs/cweb"
6658 #      CWEB_LIBS="-lcweb"
6659 #      CWEB_LDFLAGS="-L${TOP_DIR}/depkgs/cweb"
6660 #      CWEB_SRC="${TOP_DIR}/depkgs/cweb"
6661 #    ])
6662 #  ]
6663 #)
6664 #AC_SUBST(CWEB)
6665 #AC_SUBST(CWEB_INC)
6666 #AC_SUBST(CWEB_LIBS)
6667 #AC_SUBST(CWEB_LDFLAGS)
6668 #AC_SUBST(CWEB_SRC)
6669
6670 # End of CWEB stuff
6671 # -----------------------------------------------------------------------
6672
6673
6674
6675 # -----------------------------------------------------------
6676 # Check whether user wants TCP wrappers support (default off)
6677 # -----------------------------------------------------------
6678 TCPW_MSG="no"
6679
6680 # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
6681 if test "${with_tcp_wrappers+set}" = set; then
6682   withval="$with_tcp_wrappers"
6683
6684     if test "x$withval" != "xno" ; then
6685        saved_LIBS="$LIBS"
6686        LIBS="$saved_LIBS -lwrap"
6687        echo "$as_me:$LINENO: checking for libwrap" >&5
6688 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6
6689        cat >conftest.$ac_ext <<_ACEOF
6690 #line $LINENO "configure"
6691 /* confdefs.h.  */
6692 _ACEOF
6693 cat confdefs.h >>conftest.$ac_ext
6694 cat >>conftest.$ac_ext <<_ACEOF
6695 /* end confdefs.h.  */
6696  #include <tcpd.h>
6697              int deny_severity = 0;
6698              int allow_severity = 0;
6699              struct request_info *req;
6700 int
6701 main ()
6702 {
6703  hosts_access(req);
6704   ;
6705   return 0;
6706 }
6707 _ACEOF
6708 rm -f conftest.$ac_objext conftest$ac_exeext
6709 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6710   (eval $ac_link) 2>&5
6711   ac_status=$?
6712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6713   (exit $ac_status); } &&
6714          { ac_try='test -s conftest$ac_exeext'
6715   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6716   (eval $ac_try) 2>&5
6717   ac_status=$?
6718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6719   (exit $ac_status); }; }; then
6720
6721             echo "$as_me:$LINENO: result: yes" >&5
6722 echo "${ECHO_T}yes" >&6
6723             cat >>confdefs.h <<\_ACEOF
6724 #define HAVE_LIBWRAP 1
6725 _ACEOF
6726
6727             TCPW_MSG="yes"
6728
6729 else
6730   echo "$as_me: failed program was:" >&5
6731 sed 's/^/| /' conftest.$ac_ext >&5
6732
6733
6734             LIBS="$saved_LIBS -lwrap -lnsl"
6735             cat >conftest.$ac_ext <<_ACEOF
6736 #line $LINENO "configure"
6737 /* confdefs.h.  */
6738 _ACEOF
6739 cat confdefs.h >>conftest.$ac_ext
6740 cat >>conftest.$ac_ext <<_ACEOF
6741 /* end confdefs.h.  */
6742  #include <tcpd.h>
6743                  int deny_severity = 0;
6744                  int allow_severity = 0;
6745                  struct request_info *req;
6746 int
6747 main ()
6748 {
6749  hosts_access(req);
6750   ;
6751   return 0;
6752 }
6753 _ACEOF
6754 rm -f conftest.$ac_objext conftest$ac_exeext
6755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6756   (eval $ac_link) 2>&5
6757   ac_status=$?
6758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6759   (exit $ac_status); } &&
6760          { ac_try='test -s conftest$ac_exeext'
6761   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6762   (eval $ac_try) 2>&5
6763   ac_status=$?
6764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6765   (exit $ac_status); }; }; then
6766
6767                  echo "$as_me:$LINENO: result: yes" >&5
6768 echo "${ECHO_T}yes" >&6
6769                  cat >>confdefs.h <<\_ACEOF
6770 #define HAVE_LIBWRAP 1
6771 _ACEOF
6772
6773                  TCPW_MSG="yes"
6774
6775 else
6776   echo "$as_me: failed program was:" >&5
6777 sed 's/^/| /' conftest.$ac_ext >&5
6778
6779 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
6780 echo "$as_me: error: *** libwrap missing" >&2;}
6781    { (exit 1); exit 1; }; }
6782
6783 fi
6784 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6785
6786 fi
6787 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6788     fi
6789
6790
6791 fi;
6792
6793 # ------------------------------------------
6794 # Where to place working dir
6795 # ------------------------------------------
6796 working_dir=`eval echo ${prefix}/var/bacula/working`
6797
6798 # Check whether --with-working-dir or --without-working-dir was given.
6799 if test "${with_working_dir+set}" = set; then
6800   withval="$with_working_dir"
6801
6802        if test "x$withval" != "xno" ; then
6803               working_dir=$withval
6804        fi
6805
6806
6807 fi;
6808
6809
6810
6811
6812 # ------------------------------------------
6813 # Where to place scriptdir (script files)
6814 # ------------------------------------------
6815 scriptdir=`eval echo ${sysconfdir}`
6816
6817 # Check whether --with-scriptdir or --without-scriptdir was given.
6818 if test "${with_scriptdir+set}" = set; then
6819   withval="$with_scriptdir"
6820
6821        if test "x$withval" != "xno" ; then
6822               scriptdir=$withval
6823        fi
6824
6825
6826 fi;
6827
6828
6829
6830
6831 # ------------------------------------------
6832 # Where to send dump email
6833 # ------------------------------------------
6834 dump_email=root@localhost
6835
6836 # Check whether --with-dump-email or --without-dump-email was given.
6837 if test "${with_dump_email+set}" = set; then
6838   withval="$with_dump_email"
6839
6840        if test "x$withval" != "xno" ; then
6841               dump_email=$withval
6842        fi
6843
6844
6845 fi;
6846
6847
6848
6849 # ------------------------------------------
6850 # Where to send job email
6851 # ------------------------------------------
6852 job_email=root@localhost
6853
6854 # Check whether --with-job-email or --without-job-email was given.
6855 if test "${with_job_email+set}" = set; then
6856   withval="$with_job_email"
6857
6858        if test "x$withval" != "xno" ; then
6859               job_email=$withval
6860        fi
6861
6862
6863 fi;
6864
6865
6866
6867 # ------------------------------------------
6868 # Where to find smtp host
6869 # ------------------------------------------
6870 smtp_host=localhost
6871
6872 # Check whether --with-smtp_host or --without-smtp_host was given.
6873 if test "${with_smtp_host+set}" = set; then
6874   withval="$with_smtp_host"
6875
6876        if test "x$withval" != "xno" ; then
6877               smtp_host=$withval
6878        fi
6879
6880
6881 fi;
6882
6883
6884
6885
6886 # ------------------------------------
6887 # Where to place pid files
6888 # ------------------------------------
6889 piddir=/var/run
6890
6891 # Check whether --with-pid-dir or --without-pid-dir was given.
6892 if test "${with_pid_dir+set}" = set; then
6893   withval="$with_pid_dir"
6894
6895         if test "x$withval" != "xno" ; then
6896             piddir=$withval
6897         fi
6898
6899
6900 fi;
6901
6902 cat >>confdefs.h <<_ACEOF
6903 #define _PATH_BACULA_PIDDIR "$piddir"
6904 _ACEOF
6905
6906
6907
6908
6909 # ------------------------------------
6910 # Where to place subsys "lock file"
6911 # ------------------------------------
6912 subsysdir=/var/run/subsys
6913
6914 # Check whether --with-subsys-dir or --without-subsys-dir was given.
6915 if test "${with_subsys_dir+set}" = set; then
6916   withval="$with_subsys_dir"
6917
6918         if test "x$withval" != "xno" ; then
6919             subsysdir=$withval
6920         fi
6921
6922
6923 fi;
6924
6925
6926
6927
6928
6929 # ------------------------------------
6930 # Where to start assigning ports
6931 # ------------------------------------
6932 baseport=9101
6933
6934 # Check whether --with-baseport or --without-baseport was given.
6935 if test "${with_baseport+set}" = set; then
6936   withval="$with_baseport"
6937
6938         if test "x$withval" != "xno" ; then
6939              baseport=$withval
6940         fi
6941
6942
6943 fi;
6944
6945
6946 dir_port=`expr $baseport`
6947 fd_port=`expr $baseport + 1`
6948 sd_port=`expr $fd_port + 1`
6949
6950
6951
6952
6953
6954
6955 # ------------------------------------------
6956 # Generate passwords
6957 # ------------------------------------------
6958 dir_password=
6959
6960 # Check whether --with-dir-password or --without-dir-password was given.
6961 if test "${with_dir_password+set}" = set; then
6962   withval="$with_dir_password"
6963
6964        if test "x$withval" != "xno" ; then
6965            dir_password=$withval
6966        fi
6967
6968
6969 fi;
6970
6971 if test "x$dir_password" = "x" ; then
6972    if test "x$OPENSSL" = "xnone" ; then
6973 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" abcdefghijklmnopqrst | awk '{getline} {print} {exit}'`
6974       key=`autoconf/randpass 33`
6975    else
6976       key=`openssl rand -base64 33`
6977    fi
6978    dir_password=$key
6979 fi
6980
6981 fd_password=
6982
6983 # Check whether --with-fd-password or --without-fd-password was given.
6984 if test "${with_fd_password+set}" = set; then
6985   withval="$with_fd_password"
6986
6987        if test "x$withval" != "xno" ; then
6988            fd_password=$withval
6989        fi
6990
6991
6992 fi;
6993
6994 if test "x$fd_password" = "x" ; then
6995    if test "x$OPENSSL" = "xnone" ; then
6996 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" tsrqponmlkjihgfedcba | awk '{getline} {print} {exit}'`
6997       key=`autoconf/randpass 37`
6998    else
6999       key=`openssl rand -base64 33`
7000    fi
7001    fd_password=$key
7002 fi
7003
7004 sd_password=
7005
7006 # Check whether --with-sd-password or --without-sd-password was given.
7007 if test "${with_sd_password+set}" = set; then
7008   withval="$with_sd_password"
7009
7010        if test "x$withval" != "xno" ; then
7011            sd_password=$withval
7012        fi
7013
7014
7015 fi;
7016
7017 if test "x$sd_password" = "x" ; then
7018    if test "x$OPENSSL" = "xnone" ; then
7019 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" 123456789uvwxyzabcdef | awk '{getline} {print} {exit}'`
7020       key=`autoconf/randpass 41`
7021    else
7022       key=`openssl rand -base64 33`
7023    fi
7024    sd_password=$key
7025 fi
7026
7027
7028
7029
7030
7031
7032
7033 #
7034 # Handle users and groups for each daemon
7035 #
7036 dir_user=
7037
7038 # Check whether --with-dir_user or --without-dir_user was given.
7039 if test "${with_dir_user+set}" = set; then
7040   withval="$with_dir_user"
7041
7042         if test "x$withval" != "x" ; then
7043              dir_user=$withval
7044         fi
7045
7046
7047 fi;
7048
7049 dir_group=
7050
7051 # Check whether --with-dir_group or --without-dir_group was given.
7052 if test "${with_dir_group+set}" = set; then
7053   withval="$with_dir_group"
7054
7055         if test "x$withval" != "x" ; then
7056              dir_group=$withval
7057         fi
7058
7059
7060 fi;
7061
7062 sd_user=
7063
7064 # Check whether --with-sd_user or --without-sd_user was given.
7065 if test "${with_sd_user+set}" = set; then
7066   withval="$with_sd_user"
7067
7068         if test "x$withval" != "x" ; then
7069              sd_user=$withval
7070         fi
7071
7072
7073 fi;
7074
7075 sd_group=
7076
7077 # Check whether --with-sd_group or --without-sd_group was given.
7078 if test "${with_sd_group+set}" = set; then
7079   withval="$with_sd_group"
7080
7081         if test "x$withval" != "x" ; then
7082              sd_group=$withval
7083         fi
7084
7085
7086 fi;
7087
7088 fd_user=
7089
7090 # Check whether --with-fd_user or --without-fd_user was given.
7091 if test "${with_fd_user+set}" = set; then
7092   withval="$with_fd_user"
7093
7094         if test "x$withval" != "x" ; then
7095              fd_user=$withval
7096         fi
7097
7098
7099 fi;
7100
7101 fd_group=
7102
7103 # Check whether --with-fd_group or --without-fd_group was given.
7104 if test "${with_fd_group+set}" = set; then
7105   withval="$with_fd_group"
7106
7107         if test "x$withval" != "x" ; then
7108              fd_group=$withval
7109         fi
7110
7111
7112 fi;
7113
7114
7115
7116
7117
7118
7119
7120
7121
7122
7123
7124 #
7125 # allow setting default executable permissions
7126 #
7127 SBINPERM=0754
7128
7129 # Check whether --with-sbin-perm or --without-sbin-perm was given.
7130 if test "${with_sbin_perm+set}" = set; then
7131   withval="$with_sbin_perm"
7132
7133         if test "x$withval" != "x" ; then
7134             SBINPERM=$withval
7135         fi
7136
7137
7138 fi;
7139
7140
7141
7142 # ------------------------------------------------
7143 # Bacula check for various SQL database engines
7144 # ------------------------------------------------
7145
7146 db_found=no
7147 echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
7148 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6
7149
7150 # Check whether --with-postgresql or --without-postgresql was given.
7151 if test "${with_postgresql+set}" = set; then
7152   withval="$with_postgresql"
7153
7154   if test "$withval" != "no"; then
7155       if test "$db_found" = "yes"; then
7156           echo "$as_me:$LINENO: result: error" >&5
7157 echo "${ECHO_T}error" >&6
7158           { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
7159 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
7160    { (exit 1); exit 1; }; };
7161       fi
7162       if test "$withval" = "yes"; then
7163           if test -f /usr/local/include/libpq-fe.h; then
7164               POSTGRESQL_INCDIR=/usr/local/include
7165               POSTGRESQL_LIBDIR=/usr/local/lib
7166               POSTGRESQL_BINDIR=/usr/local/bin
7167           elif test -f /usr/include/libpq-fe.h; then
7168               POSTGRESQL_INCDIR=/usr/include
7169               POSTGRESQL_LIBDIR=/usr/lib
7170               POSTGRESQL_BINDIR=/usr/bin
7171           elif test -f /usr/include/pgsql/libpq-fe.h; then
7172               POSTGRESQL_INCDIR=/usr/include/pgsql
7173               POSTGRESQL_LIBDIR=/usr/lib/pgsql
7174               POSTGRESQL_BINDIR=/usr/bin
7175           elif test -f /usr/include/postgresql/libpq-fe.h; then
7176               POSTGRESQL_INCDIR=/usr/include/postgresql
7177               POSTGRESQL_LIBDIR=/usr/lib/postgresql
7178               POSTGRESQL_BINDIR=/usr/bin
7179           else
7180               echo "$as_me:$LINENO: result: no" >&5
7181 echo "${ECHO_T}no" >&6
7182               { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
7183 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
7184    { (exit 1); exit 1; }; }
7185           fi
7186       elif test -f $withval/include/libpq-fe.h; then
7187           POSTGRESQL_INCDIR=$withval/include
7188           POSTGRESQL_LIBDIR=$withval/lib
7189           POSTGRESQL_BINDIR=$withval/bin
7190       else
7191           echo "$as_me:$LINENO: result: no" >&5
7192 echo "${ECHO_T}no" >&6
7193           { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
7194 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
7195    { (exit 1); exit 1; }; }
7196       fi
7197       POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
7198       echo "$as_me:$LINENO: checking for crypt" >&5
7199 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
7200 if test "${ac_cv_func_crypt+set}" = set; then
7201   echo $ECHO_N "(cached) $ECHO_C" >&6
7202 else
7203   cat >conftest.$ac_ext <<_ACEOF
7204 #line $LINENO "configure"
7205 /* confdefs.h.  */
7206 _ACEOF
7207 cat confdefs.h >>conftest.$ac_ext
7208 cat >>conftest.$ac_ext <<_ACEOF
7209 /* end confdefs.h.  */
7210 /* System header to define __stub macros and hopefully few prototypes,
7211     which can conflict with char crypt (); below.
7212     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7213     <limits.h> exists even on freestanding compilers.  */
7214 #ifdef __STDC__
7215 # include <limits.h>
7216 #else
7217 # include <assert.h>
7218 #endif
7219 /* Override any gcc2 internal prototype to avoid an error.  */
7220 #ifdef __cplusplus
7221 extern "C"
7222 {
7223 #endif
7224 /* We use char because int might match the return type of a gcc2
7225    builtin and then its argument prototype would still apply.  */
7226 char crypt ();
7227 /* The GNU C library defines this for functions which it implements
7228     to always fail with ENOSYS.  Some functions are actually named
7229     something starting with __ and the normal name is an alias.  */
7230 #if defined (__stub_crypt) || defined (__stub___crypt)
7231 choke me
7232 #else
7233 char (*f) () = crypt;
7234 #endif
7235 #ifdef __cplusplus
7236 }
7237 #endif
7238
7239 int
7240 main ()
7241 {
7242 return f != crypt;
7243   ;
7244   return 0;
7245 }
7246 _ACEOF
7247 rm -f conftest.$ac_objext conftest$ac_exeext
7248 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7249   (eval $ac_link) 2>&5
7250   ac_status=$?
7251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7252   (exit $ac_status); } &&
7253          { ac_try='test -s conftest$ac_exeext'
7254   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7255   (eval $ac_try) 2>&5
7256   ac_status=$?
7257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7258   (exit $ac_status); }; }; then
7259   ac_cv_func_crypt=yes
7260 else
7261   echo "$as_me: failed program was:" >&5
7262 sed 's/^/| /' conftest.$ac_ext >&5
7263
7264 ac_cv_func_crypt=no
7265 fi
7266 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7267 fi
7268 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
7269 echo "${ECHO_T}$ac_cv_func_crypt" >&6
7270 if test $ac_cv_func_crypt = yes; then
7271   :
7272 else
7273   echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
7274 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
7275 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
7276   echo $ECHO_N "(cached) $ECHO_C" >&6
7277 else
7278   ac_check_lib_save_LIBS=$LIBS
7279 LIBS="-lcrypt  $LIBS"
7280 cat >conftest.$ac_ext <<_ACEOF
7281 #line $LINENO "configure"
7282 /* confdefs.h.  */
7283 _ACEOF
7284 cat confdefs.h >>conftest.$ac_ext
7285 cat >>conftest.$ac_ext <<_ACEOF
7286 /* end confdefs.h.  */
7287
7288 /* Override any gcc2 internal prototype to avoid an error.  */
7289 #ifdef __cplusplus
7290 extern "C"
7291 #endif
7292 /* We use char because int might match the return type of a gcc2
7293    builtin and then its argument prototype would still apply.  */
7294 char crypt ();
7295 int
7296 main ()
7297 {
7298 crypt ();
7299   ;
7300   return 0;
7301 }
7302 _ACEOF
7303 rm -f conftest.$ac_objext conftest$ac_exeext
7304 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7305   (eval $ac_link) 2>&5
7306   ac_status=$?
7307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7308   (exit $ac_status); } &&
7309          { ac_try='test -s conftest$ac_exeext'
7310   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7311   (eval $ac_try) 2>&5
7312   ac_status=$?
7313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7314   (exit $ac_status); }; }; then
7315   ac_cv_lib_crypt_crypt=yes
7316 else
7317   echo "$as_me: failed program was:" >&5
7318 sed 's/^/| /' conftest.$ac_ext >&5
7319
7320 ac_cv_lib_crypt_crypt=no
7321 fi
7322 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7323 LIBS=$ac_check_lib_save_LIBS
7324 fi
7325 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
7326 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
7327 if test $ac_cv_lib_crypt_crypt = yes; then
7328   POSTGRESQL_LFLAGS="-lcrypt $POSTGRESQL_LFLAGS"
7329 fi
7330
7331 fi
7332
7333       SQL_INCLUDE=-I$POSTGRESQL_INCDIR
7334       SQL_LFLAGS=$POSTGRESQL_LFLAGS
7335       SQL_BINDIR=$POSTGRESQL_BINDIR
7336       cat >>confdefs.h <<\_ACEOF
7337 #define HAVE_POSTGRESQL 1
7338 _ACEOF
7339
7340       echo "$as_me:$LINENO: result: yes" >&5
7341 echo "${ECHO_T}yes" >&6
7342       db_found=yes
7343       support_postgresql=yes
7344       db_name=PostgreSQL
7345       DB_NAME=postgresql
7346   else
7347       echo "$as_me:$LINENO: result: no" >&5
7348 echo "${ECHO_T}no" >&6
7349   fi
7350
7351 else
7352
7353   echo "$as_me:$LINENO: result: no" >&5
7354 echo "${ECHO_T}no" >&6
7355
7356 fi;
7357
7358
7359
7360
7361
7362
7363
7364 db_found=no
7365 echo "$as_me:$LINENO: checking for MySQL support" >&5
7366 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6
7367
7368 # Check whether --with-mysql or --without-mysql was given.
7369 if test "${with_mysql+set}" = set; then
7370   withval="$with_mysql"
7371
7372   if test "$withval" != "no"; then
7373         if test "$withval" = "yes"; then
7374                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
7375                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
7376                         MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
7377                         MYSQL_BINDIR=/usr/local/mysql/bin
7378                 elif test -f /usr/include/mysql/mysql.h; then
7379                         MYSQL_INCDIR=/usr/include/mysql
7380                         MYSQL_LIBDIR=/usr/lib/mysql
7381                         MYSQL_BINDIR=/usr/bin
7382                 elif test -f /usr/include/mysql.h; then
7383                         MYSQL_INCDIR=/usr/include
7384                         MYSQL_LIBDIR=/usr/lib
7385                         MYSQL_BINDIR=/usr/bin
7386                 elif test -f /usr/local/include/mysql/mysql.h; then
7387                         MYSQL_INCDIR=/usr/local/include/mysql
7388                         MYSQL_LIBDIR=/usr/local/lib/mysql
7389                         MYSQL_BINDIR=/usr/local/bin
7390                 elif test -f /usr/local/include/mysql.h; then
7391                         MYSQL_INCDIR=/usr/local/include
7392                         MYSQL_LIBDIR=/usr/local/lib
7393                         MYSQL_BINDIR=/usr/local/bin
7394                 else
7395                    echo "$as_me:$LINENO: result: no" >&5
7396 echo "${ECHO_T}no" >&6
7397                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
7398 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
7399    { (exit 1); exit 1; }; }
7400                 fi
7401         else
7402                 if test -f $withval/include/mysql/mysql.h; then
7403                         MYSQL_INCDIR=$withval/include/mysql
7404                         MYSQL_LIBDIR=$withval/lib/mysql
7405                         MYSQL_BINDIR=$withval/bin
7406                 elif test -f $withval/include/mysql.h; then
7407                         MYSQL_INCDIR=$withval/include
7408                         MYSQL_LIBDIR=$withval/lib
7409                         MYSQL_BINDIR=$withval/bin
7410                 else
7411                    echo "$as_me:$LINENO: result: no" >&5
7412 echo "${ECHO_T}no" >&6
7413                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
7414 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
7415    { (exit 1); exit 1; }; }
7416                 fi
7417         fi
7418     SQL_INCLUDE=-I$MYSQL_INCDIR
7419     if test -f $MYSQL_LIBDIR/libmysqlclient_r.a; then
7420        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
7421        cat >>confdefs.h <<\_ACEOF
7422 #define HAVE_THREAD_SAFE_MYSQL 1
7423 _ACEOF
7424
7425     else
7426        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient -lz"
7427     fi
7428     SQL_BINDIR=$MYSQL_BINDIR
7429
7430     cat >>confdefs.h <<\_ACEOF
7431 #define HAVE_MYSQL 1
7432 _ACEOF
7433
7434     echo "$as_me:$LINENO: result: yes" >&5
7435 echo "${ECHO_T}yes" >&6
7436     db_found=yes
7437     support_mysql=yes
7438     db_name=MySQL
7439     DB_NAME=mysql
7440
7441   else
7442         echo "$as_me:$LINENO: result: no" >&5
7443 echo "${ECHO_T}no" >&6
7444   fi
7445
7446 else
7447
7448     echo "$as_me:$LINENO: result: no" >&5
7449 echo "${ECHO_T}no" >&6
7450
7451 fi;
7452
7453
7454 # Check whether --with-embedded-mysql or --without-embedded-mysql was given.
7455 if test "${with_embedded_mysql+set}" = set; then
7456   withval="$with_embedded_mysql"
7457
7458   if test "$withval" != "no"; then
7459         if test "$withval" = "yes"; then
7460                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
7461                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
7462                         MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
7463                         MYSQL_BINDIR=/usr/local/mysql/bin
7464                 elif test -f /usr/include/mysql/mysql.h; then
7465                         MYSQL_INCDIR=/usr/include/mysql
7466                         MYSQL_LIBDIR=/usr/lib/mysql
7467                         MYSQL_BINDIR=/usr/bin
7468                 elif test -f /usr/include/mysql.h; then
7469                         MYSQL_INCDIR=/usr/include
7470                         MYSQL_LIBDIR=/usr/lib
7471                         MYSQL_BINDIR=/usr/bin
7472                 elif test -f /usr/local/include/mysql/mysql.h; then
7473                         MYSQL_INCDIR=/usr/local/include/mysql
7474                         MYSQL_LIBDIR=/usr/local/lib/mysql
7475                         MYSQL_BINDIR=/usr/local/bin
7476                 elif test -f /usr/local/include/mysql.h; then
7477                         MYSQL_INCDIR=/usr/local/include
7478                         MYSQL_LIBDIR=/usr/local/lib
7479                         MYSQL_BINDIR=/usr/local/bin
7480                 else
7481                    echo "$as_me:$LINENO: result: no" >&5
7482 echo "${ECHO_T}no" >&6
7483                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
7484 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
7485    { (exit 1); exit 1; }; }
7486                 fi
7487         else
7488                 if test -f $withval/include/mysql/mysql.h; then
7489                         MYSQL_INCDIR=$withval/include/mysql
7490                         MYSQL_LIBDIR=$withval/lib/mysql
7491                         MYSQL_BINDIR=$withval/bin
7492                 elif test -f $withval/include/mysql.h; then
7493                         MYSQL_INCDIR=$withval/include
7494                         MYSQL_LIBDIR=$withval/lib
7495                         MYSQL_BINDIR=$withval/bin
7496                 else
7497                    echo "$as_me:$LINENO: result: no" >&5
7498 echo "${ECHO_T}no" >&6
7499                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
7500 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
7501    { (exit 1); exit 1; }; }
7502                 fi
7503         fi
7504     SQL_INCLUDE=-I$MYSQL_INCDIR
7505     SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
7506     SQL_BINDIR=$MYSQL_BINDIR
7507
7508     cat >>confdefs.h <<\_ACEOF
7509 #define HAVE_MYSQL 1
7510 _ACEOF
7511
7512     cat >>confdefs.h <<\_ACEOF
7513 #define HAVE_EMBEDDED_MYSQL 1
7514 _ACEOF
7515
7516     echo "$as_me:$LINENO: result: yes" >&5
7517 echo "${ECHO_T}yes" >&6
7518     db_found=yes
7519     support_mysql=yes
7520     db_name=MySQL
7521     DB_NAME=mysql
7522
7523   else
7524         echo "$as_me:$LINENO: result: no" >&5
7525 echo "${ECHO_T}no" >&6
7526   fi
7527
7528 else
7529
7530   echo "$as_me:$LINENO: result: no" >&5
7531 echo "${ECHO_T}no" >&6
7532
7533 fi;
7534
7535
7536
7537
7538
7539
7540
7541
7542
7543 db_found=no
7544 echo "$as_me:$LINENO: checking for SQLite support" >&5
7545 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6
7546
7547 # Check whether --with-sqlite or --without-sqlite was given.
7548 if test "${with_sqlite+set}" = set; then
7549   withval="$with_sqlite"
7550
7551   if test "$withval" != "no"; then
7552         if test "$withval" = "yes"; then
7553                 if test -f /usr/local/include/sqlite.h; then
7554                         SQLITE_INCDIR=/usr/local/include
7555                         SQLITE_LIBDIR=/usr/local/lib
7556                         SQLITE_BINDIR=/usr/local/bin
7557                 elif test -f /usr/include/sqlite.h; then
7558                         SQLITE_INCDIR=/usr/include
7559                         SQLITE_LIBDIR=/usr/lib
7560                         SQLITE_BINDIR=/usr/bin
7561                 else
7562                    echo "$as_me:$LINENO: result: no" >&5
7563 echo "${ECHO_T}no" >&6
7564                    { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
7565 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
7566    { (exit 1); exit 1; }; }
7567                 fi
7568         else
7569                 if test -f $withval/sqlite.h; then
7570                         SQLITE_INCDIR=$withval
7571                         SQLITE_LIBDIR=$withval
7572                         SQLITE_BINDIR=$withval
7573                 else
7574                    echo "$as_me:$LINENO: result: no" >&5
7575 echo "${ECHO_T}no" >&6
7576                    { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
7577 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
7578    { (exit 1); exit 1; }; }
7579                 fi
7580         fi
7581     SQL_INCLUDE=-I$SQLITE_INCDIR
7582     SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
7583     SQL_BINDIR=$SQLITE_BINDIR
7584
7585     cat >>confdefs.h <<\_ACEOF
7586 #define HAVE_SQLITE 1
7587 _ACEOF
7588
7589     echo "$as_me:$LINENO: result: yes" >&5
7590 echo "${ECHO_T}yes" >&6
7591     db_found=yes
7592     support_sqlite=yes
7593     db_name=SQLite
7594     DB_NAME=sqlite
7595
7596   else
7597         echo "$as_me:$LINENO: result: no" >&5
7598 echo "${ECHO_T}no" >&6
7599   fi
7600
7601 else
7602
7603   echo "$as_me:$LINENO: result: no" >&5
7604 echo "${ECHO_T}no" >&6
7605
7606 fi;
7607
7608
7609
7610
7611
7612
7613
7614
7615
7616 cat >>confdefs.h <<\_ACEOF
7617 #define PROTOTYPES 1
7618 _ACEOF
7619
7620
7621 if test -z "$CFLAGS"; then
7622     if test -z "$CCOPTS"; then
7623         CCOPTS='-g -O2'
7624     fi
7625     CFLAGS="$CCOPTS"
7626 fi
7627
7628
7629
7630
7631 largefile_support="no"
7632
7633    # Check whether --enable-largefile or --disable-largefile was given.
7634 if test "${enable_largefile+set}" = set; then
7635   enableval="$enable_largefile"
7636
7637 fi;
7638    if test "$enable_largefile" != no; then
7639      if test -n "$ac_tool_prefix"; then
7640   # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
7641 set dummy ${ac_tool_prefix}getconf; ac_word=$2
7642 echo "$as_me:$LINENO: checking for $ac_word" >&5
7643 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7644 if test "${ac_cv_prog_GETCONF+set}" = set; then
7645   echo $ECHO_N "(cached) $ECHO_C" >&6
7646 else
7647   if test -n "$GETCONF"; then
7648   ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
7649 else
7650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7651 for as_dir in $PATH
7652 do
7653   IFS=$as_save_IFS
7654   test -z "$as_dir" && as_dir=.
7655   for ac_exec_ext in '' $ac_executable_extensions; do
7656   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7657     ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
7658     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7659     break 2
7660   fi
7661 done
7662 done
7663
7664 fi
7665 fi
7666 GETCONF=$ac_cv_prog_GETCONF
7667 if test -n "$GETCONF"; then
7668   echo "$as_me:$LINENO: result: $GETCONF" >&5
7669 echo "${ECHO_T}$GETCONF" >&6
7670 else
7671   echo "$as_me:$LINENO: result: no" >&5
7672 echo "${ECHO_T}no" >&6
7673 fi
7674
7675 fi
7676 if test -z "$ac_cv_prog_GETCONF"; then
7677   ac_ct_GETCONF=$GETCONF
7678   # Extract the first word of "getconf", so it can be a program name with args.
7679 set dummy getconf; ac_word=$2
7680 echo "$as_me:$LINENO: checking for $ac_word" >&5
7681 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7682 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
7683   echo $ECHO_N "(cached) $ECHO_C" >&6
7684 else
7685   if test -n "$ac_ct_GETCONF"; then
7686   ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
7687 else
7688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7689 for as_dir in $PATH
7690 do
7691   IFS=$as_save_IFS
7692   test -z "$as_dir" && as_dir=.
7693   for ac_exec_ext in '' $ac_executable_extensions; do
7694   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7695     ac_cv_prog_ac_ct_GETCONF="getconf"
7696     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7697     break 2
7698   fi
7699 done
7700 done
7701
7702 fi
7703 fi
7704 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
7705 if test -n "$ac_ct_GETCONF"; then
7706   echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
7707 echo "${ECHO_T}$ac_ct_GETCONF" >&6
7708 else
7709   echo "$as_me:$LINENO: result: no" >&5
7710 echo "${ECHO_T}no" >&6
7711 fi
7712
7713   GETCONF=$ac_ct_GETCONF
7714 else
7715   GETCONF="$ac_cv_prog_GETCONF"
7716 fi
7717
7718      echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
7719 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6
7720 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
7721   echo $ECHO_N "(cached) $ECHO_C" >&6
7722 else
7723   ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
7724         ac_cv_sys_largefile_CFLAGS=no
7725         case "$host_os" in
7726            # IRIX 6.2 and later require cc -n32.
7727            irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
7728              if test "$GCC" != yes; then
7729                ac_cv_sys_largefile_CFLAGS=-n32
7730              fi
7731              ac_save_CC="$CC"
7732              CC="$CC $ac_cv_sys_largefile_CFLAGS"
7733              cat >conftest.$ac_ext <<_ACEOF
7734 #line $LINENO "configure"
7735 /* confdefs.h.  */
7736 _ACEOF
7737 cat confdefs.h >>conftest.$ac_ext
7738 cat >>conftest.$ac_ext <<_ACEOF
7739 /* end confdefs.h.  */
7740
7741 int
7742 main ()
7743 {
7744
7745   ;
7746   return 0;
7747 }
7748 _ACEOF
7749 rm -f conftest.$ac_objext conftest$ac_exeext
7750 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7751   (eval $ac_link) 2>&5
7752   ac_status=$?
7753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7754   (exit $ac_status); } &&
7755          { ac_try='test -s conftest$ac_exeext'
7756   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7757   (eval $ac_try) 2>&5
7758   ac_status=$?
7759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7760   (exit $ac_status); }; }; then
7761   :
7762 else
7763   echo "$as_me: failed program was:" >&5
7764 sed 's/^/| /' conftest.$ac_ext >&5
7765
7766 ac_cv_sys_largefile_CFLAGS=no
7767 fi
7768 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7769              CC="$ac_save_CC"
7770            esac
7771       }
7772 fi
7773 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
7774 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6
7775      echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
7776 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6
7777 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
7778   echo $ECHO_N "(cached) $ECHO_C" >&6
7779 else
7780   ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
7781         ac_cv_sys_largefile_LDFLAGS=no
7782
7783       }
7784 fi
7785 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
7786 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6
7787      echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
7788 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6
7789 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
7790   echo $ECHO_N "(cached) $ECHO_C" >&6
7791 else
7792   ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
7793         ac_cv_sys_largefile_LIBS=no
7794
7795       }
7796 fi
7797 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
7798 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6
7799
7800      for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7801        case "$ac_flag" in
7802        no) ;;
7803        -D_FILE_OFFSET_BITS=*) ;;
7804        -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
7805        -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
7806        -D?* | -I?*)
7807          case "$ac_flag" in
7808    no) ;;
7809    ?*)
7810      case "$CPPFLAGS" in
7811      '') CPPFLAGS="$ac_flag" ;;
7812      *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
7813      esac ;;
7814    esac ;;
7815        *)
7816          case "$ac_flag" in
7817    no) ;;
7818    ?*)
7819      case "$CFLAGS" in
7820      '') CFLAGS="$ac_flag" ;;
7821      *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
7822      esac ;;
7823    esac ;;
7824        esac
7825      done
7826      case "$ac_cv_sys_largefile_LDFLAGS" in
7827    no) ;;
7828    ?*)
7829      case "$LDFLAGS" in
7830      '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
7831      *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
7832      esac ;;
7833    esac
7834      case "$ac_cv_sys_largefile_LIBS" in
7835    no) ;;
7836    ?*)
7837      case "$LIBS" in
7838      '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
7839      *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
7840      esac ;;
7841    esac
7842      echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
7843 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6
7844 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
7845   echo $ECHO_N "(cached) $ECHO_C" >&6
7846 else
7847   ac_cv_sys_file_offset_bits=no
7848       case "$host_os" in
7849         # HP-UX 10.20 and later
7850         hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
7851           ac_cv_sys_file_offset_bits=64 ;;
7852         esac
7853       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7854         case "$ac_flag" in
7855         -D_FILE_OFFSET_BITS)
7856           ac_cv_sys_file_offset_bits=1 ;;
7857         -D_FILE_OFFSET_BITS=*)
7858           ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
7859         esac
7860       done
7861
7862 fi
7863 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
7864 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
7865    if test "$ac_cv_sys_file_offset_bits" != no; then
7866
7867 cat >>confdefs.h <<_ACEOF
7868 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7869 _ACEOF
7870
7871    fi
7872      echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
7873 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6
7874 if test "${ac_cv_sys_largefile_source+set}" = set; then
7875   echo $ECHO_N "(cached) $ECHO_C" >&6
7876 else
7877   ac_cv_sys_largefile_source=no
7878       case "$host_os" in
7879         # HP-UX 10.20 and later
7880         hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
7881           ac_cv_sys_largefile_source=1 ;;
7882         esac
7883       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7884         case "$ac_flag" in
7885         -D_LARGEFILE_SOURCE)
7886           ac_cv_sys_largefile_source=1 ;;
7887         -D_LARGEFILE_SOURCE=*)
7888           ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
7889         esac
7890       done
7891
7892 fi
7893 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
7894 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
7895    if test "$ac_cv_sys_largefile_source" != no; then
7896
7897 cat >>confdefs.h <<_ACEOF
7898 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
7899 _ACEOF
7900
7901    fi
7902      echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
7903 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6
7904 if test "${ac_cv_sys_large_files+set}" = set; then
7905   echo $ECHO_N "(cached) $ECHO_C" >&6
7906 else
7907   ac_cv_sys_large_files=no
7908       case "$host_os" in
7909         # AIX 4.2 and later
7910         aix4.[2-9]* | aix4.1[0-9]* | aix[5-9].* | aix[1-9][0-9]*)
7911           ac_cv_sys_large_files=1 ;;
7912         esac
7913       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7914         case "$ac_flag" in
7915         -D_LARGE_FILES)
7916           ac_cv_sys_large_files=1 ;;
7917         -D_LARGE_FILES=*)
7918           ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
7919         esac
7920       done
7921
7922 fi
7923 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
7924 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
7925    if test "$ac_cv_sys_large_files" != no; then
7926
7927 cat >>confdefs.h <<_ACEOF
7928 #define _LARGE_FILES $ac_cv_sys_large_files
7929 _ACEOF
7930
7931    fi
7932    fi
7933
7934
7935
7936 echo "$as_me:$LINENO: checking for X" >&5
7937 echo $ECHO_N "checking for X... $ECHO_C" >&6
7938
7939
7940 # Check whether --with-x or --without-x was given.
7941 if test "${with_x+set}" = set; then
7942   withval="$with_x"
7943
7944 fi;
7945 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7946 if test "x$with_x" = xno; then
7947   # The user explicitly disabled X.
7948   have_x=disabled
7949 else
7950   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
7951     # Both variables are already set.
7952     have_x=yes
7953   else
7954     if test "${ac_cv_have_x+set}" = set; then
7955   echo $ECHO_N "(cached) $ECHO_C" >&6
7956 else
7957   # One or both of the vars are not set, and there is no cached value.
7958 ac_x_includes=no ac_x_libraries=no
7959 rm -fr conftest.dir
7960 if mkdir conftest.dir; then
7961   cd conftest.dir
7962   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7963   cat >Imakefile <<'_ACEOF'
7964 acfindx:
7965         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7966 _ACEOF
7967   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
7968     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7969     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7970     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7971     for ac_extension in a so sl; do
7972       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
7973          test -f $ac_im_libdir/libX11.$ac_extension; then
7974         ac_im_usrlibdir=$ac_im_libdir; break
7975       fi
7976     done
7977     # Screen out bogus values from the imake configuration.  They are
7978     # bogus both because they are the default anyway, and because
7979     # using them would break gcc on systems where it needs fixed includes.
7980     case $ac_im_incroot in
7981         /usr/include) ;;
7982         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7983     esac
7984     case $ac_im_usrlibdir in
7985         /usr/lib | /lib) ;;
7986         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7987     esac
7988   fi
7989   cd ..
7990   rm -fr conftest.dir
7991 fi
7992
7993 # Standard set of common directories for X headers.
7994 # Check X11 before X11Rn because it is often a symlink to the current release.
7995 ac_x_header_dirs='
7996 /usr/X11/include
7997 /usr/X11R6/include
7998 /usr/X11R5/include
7999 /usr/X11R4/include
8000
8001 /usr/include/X11
8002 /usr/include/X11R6
8003 /usr/include/X11R5
8004 /usr/include/X11R4
8005
8006 /usr/local/X11/include
8007 /usr/local/X11R6/include
8008 /usr/local/X11R5/include
8009 /usr/local/X11R4/include
8010
8011 /usr/local/include/X11
8012 /usr/local/include/X11R6
8013 /usr/local/include/X11R5
8014 /usr/local/include/X11R4
8015
8016 /usr/X386/include
8017 /usr/x386/include
8018 /usr/XFree86/include/X11
8019
8020 /usr/include
8021 /usr/local/include
8022 /usr/unsupported/include
8023 /usr/athena/include
8024 /usr/local/x11r5/include
8025 /usr/lpp/Xamples/include
8026
8027 /usr/openwin/include
8028 /usr/openwin/share/include'
8029
8030 if test "$ac_x_includes" = no; then
8031   # Guess where to find include files, by looking for Intrinsic.h.
8032   # First, try using that file with no special directory specified.
8033   cat >conftest.$ac_ext <<_ACEOF
8034 #line $LINENO "configure"
8035 /* confdefs.h.  */
8036 _ACEOF
8037 cat confdefs.h >>conftest.$ac_ext
8038 cat >>conftest.$ac_ext <<_ACEOF
8039 /* end confdefs.h.  */
8040 #include <X11/Intrinsic.h>
8041 _ACEOF
8042 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8043   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8044   ac_status=$?
8045   grep -v '^ *+' conftest.er1 >conftest.err
8046   rm -f conftest.er1
8047   cat conftest.err >&5
8048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8049   (exit $ac_status); } >/dev/null; then
8050   if test -s conftest.err; then
8051     ac_cpp_err=$ac_c_preproc_warn_flag
8052   else
8053     ac_cpp_err=
8054   fi
8055 else
8056   ac_cpp_err=yes
8057 fi
8058 if test -z "$ac_cpp_err"; then
8059   # We can compile using X headers with no special include directory.
8060 ac_x_includes=
8061 else
8062   echo "$as_me: failed program was:" >&5
8063 sed 's/^/| /' conftest.$ac_ext >&5
8064
8065   for ac_dir in $ac_x_header_dirs; do
8066   if test -r "$ac_dir/X11/Intrinsic.h"; then
8067     ac_x_includes=$ac_dir
8068     break
8069   fi
8070 done
8071 fi
8072 rm -f conftest.err conftest.$ac_ext
8073 fi # $ac_x_includes = no
8074
8075 if test "$ac_x_libraries" = no; then
8076   # Check for the libraries.
8077   # See if we find them without any special options.
8078   # Don't add to $LIBS permanently.
8079   ac_save_LIBS=$LIBS
8080   LIBS="-lXt $LIBS"
8081   cat >conftest.$ac_ext <<_ACEOF
8082 #line $LINENO "configure"
8083 /* confdefs.h.  */
8084 _ACEOF
8085 cat confdefs.h >>conftest.$ac_ext
8086 cat >>conftest.$ac_ext <<_ACEOF
8087 /* end confdefs.h.  */
8088 #include <X11/Intrinsic.h>
8089 int
8090 main ()
8091 {
8092 XtMalloc (0)
8093   ;
8094   return 0;
8095 }
8096 _ACEOF
8097 rm -f conftest.$ac_objext conftest$ac_exeext
8098 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8099   (eval $ac_link) 2>&5
8100   ac_status=$?
8101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8102   (exit $ac_status); } &&
8103          { ac_try='test -s conftest$ac_exeext'
8104   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8105   (eval $ac_try) 2>&5
8106   ac_status=$?
8107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8108   (exit $ac_status); }; }; then
8109   LIBS=$ac_save_LIBS
8110 # We can link X programs with no special library path.
8111 ac_x_libraries=
8112 else
8113   echo "$as_me: failed program was:" >&5
8114 sed 's/^/| /' conftest.$ac_ext >&5
8115
8116 LIBS=$ac_save_LIBS
8117 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8118 do
8119   # Don't even attempt the hair of trying to link an X program!
8120   for ac_extension in a so sl; do
8121     if test -r $ac_dir/libXt.$ac_extension; then
8122       ac_x_libraries=$ac_dir
8123       break 2
8124     fi
8125   done
8126 done
8127 fi
8128 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8129 fi # $ac_x_libraries = no
8130
8131 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
8132   # Didn't find X anywhere.  Cache the known absence of X.
8133   ac_cv_have_x="have_x=no"
8134 else
8135   # Record where we found X for the cache.
8136   ac_cv_have_x="have_x=yes \
8137                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8138 fi
8139 fi
8140
8141   fi
8142   eval "$ac_cv_have_x"
8143 fi # $with_x != no
8144
8145 if test "$have_x" != yes; then
8146   echo "$as_me:$LINENO: result: $have_x" >&5
8147 echo "${ECHO_T}$have_x" >&6
8148   no_x=yes
8149 else
8150   # If each of the values was on the command line, it overrides each guess.
8151   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8152   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8153   # Update the cache value to reflect the command line values.
8154   ac_cv_have_x="have_x=yes \
8155                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8156   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
8157 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
8158 fi
8159
8160 if test "$no_x" = yes; then
8161   # Not all programs may use this symbol, but it does not hurt to define it.
8162
8163 cat >>confdefs.h <<\_ACEOF
8164 #define X_DISPLAY_MISSING 1
8165 _ACEOF
8166
8167   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
8168 else
8169   if test -n "$x_includes"; then
8170     X_CFLAGS="$X_CFLAGS -I$x_includes"
8171   fi
8172
8173   # It would also be nice to do this for all -L options, not just this one.
8174   if test -n "$x_libraries"; then
8175     X_LIBS="$X_LIBS -L$x_libraries"
8176     # For Solaris; some versions of Sun CC require a space after -R and
8177     # others require no space.  Words are not sufficient . . . .
8178     case `(uname -sr) 2>/dev/null` in
8179     "SunOS 5"*)
8180       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
8181 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
8182       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
8183       cat >conftest.$ac_ext <<_ACEOF
8184 #line $LINENO "configure"
8185 /* confdefs.h.  */
8186 _ACEOF
8187 cat confdefs.h >>conftest.$ac_ext
8188 cat >>conftest.$ac_ext <<_ACEOF
8189 /* end confdefs.h.  */
8190
8191 int
8192 main ()
8193 {
8194
8195   ;
8196   return 0;
8197 }
8198 _ACEOF
8199 rm -f conftest.$ac_objext conftest$ac_exeext
8200 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8201   (eval $ac_link) 2>&5
8202   ac_status=$?
8203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8204   (exit $ac_status); } &&
8205          { ac_try='test -s conftest$ac_exeext'
8206   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8207   (eval $ac_try) 2>&5
8208   ac_status=$?
8209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8210   (exit $ac_status); }; }; then
8211   ac_R_nospace=yes
8212 else
8213   echo "$as_me: failed program was:" >&5
8214 sed 's/^/| /' conftest.$ac_ext >&5
8215
8216 ac_R_nospace=no
8217 fi
8218 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8219       if test $ac_R_nospace = yes; then
8220         echo "$as_me:$LINENO: result: no" >&5
8221 echo "${ECHO_T}no" >&6
8222         X_LIBS="$X_LIBS -R$x_libraries"
8223       else
8224         LIBS="$ac_xsave_LIBS -R $x_libraries"
8225         cat >conftest.$ac_ext <<_ACEOF
8226 #line $LINENO "configure"
8227 /* confdefs.h.  */
8228 _ACEOF
8229 cat confdefs.h >>conftest.$ac_ext
8230 cat >>conftest.$ac_ext <<_ACEOF
8231 /* end confdefs.h.  */
8232
8233 int
8234 main ()
8235 {
8236
8237   ;
8238   return 0;
8239 }
8240 _ACEOF
8241 rm -f conftest.$ac_objext conftest$ac_exeext
8242 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8243   (eval $ac_link) 2>&5
8244   ac_status=$?
8245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8246   (exit $ac_status); } &&
8247          { ac_try='test -s conftest$ac_exeext'
8248   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8249   (eval $ac_try) 2>&5
8250   ac_status=$?
8251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8252   (exit $ac_status); }; }; then
8253   ac_R_space=yes
8254 else
8255   echo "$as_me: failed program was:" >&5
8256 sed 's/^/| /' conftest.$ac_ext >&5
8257
8258 ac_R_space=no
8259 fi
8260 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8261         if test $ac_R_space = yes; then
8262           echo "$as_me:$LINENO: result: yes" >&5
8263 echo "${ECHO_T}yes" >&6
8264           X_LIBS="$X_LIBS -R $x_libraries"
8265         else
8266           echo "$as_me:$LINENO: result: neither works" >&5
8267 echo "${ECHO_T}neither works" >&6
8268         fi
8269       fi
8270       LIBS=$ac_xsave_LIBS
8271     esac
8272   fi
8273
8274   # Check for system-dependent libraries X programs must link with.
8275   # Do this before checking for the system-independent R6 libraries
8276   # (-lICE), since we may need -lsocket or whatever for X linking.
8277
8278   if test "$ISC" = yes; then
8279     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
8280   else
8281     # Martyn Johnson says this is needed for Ultrix, if the X
8282     # libraries were built with DECnet support.  And Karl Berry says
8283     # the Alpha needs dnet_stub (dnet does not exist).
8284     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
8285     cat >conftest.$ac_ext <<_ACEOF
8286 #line $LINENO "configure"
8287 /* confdefs.h.  */
8288 _ACEOF
8289 cat confdefs.h >>conftest.$ac_ext
8290 cat >>conftest.$ac_ext <<_ACEOF
8291 /* end confdefs.h.  */
8292
8293 /* Override any gcc2 internal prototype to avoid an error.  */
8294 #ifdef __cplusplus
8295 extern "C"
8296 #endif
8297 /* We use char because int might match the return type of a gcc2
8298    builtin and then its argument prototype would still apply.  */
8299 char XOpenDisplay ();
8300 int
8301 main ()
8302 {
8303 XOpenDisplay ();
8304   ;
8305   return 0;
8306 }
8307 _ACEOF
8308 rm -f conftest.$ac_objext conftest$ac_exeext
8309 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8310   (eval $ac_link) 2>&5
8311   ac_status=$?
8312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8313   (exit $ac_status); } &&
8314          { ac_try='test -s conftest$ac_exeext'
8315   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8316   (eval $ac_try) 2>&5
8317   ac_status=$?
8318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8319   (exit $ac_status); }; }; then
8320   :
8321 else
8322   echo "$as_me: failed program was:" >&5
8323 sed 's/^/| /' conftest.$ac_ext >&5
8324
8325 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
8326 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
8327 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
8328   echo $ECHO_N "(cached) $ECHO_C" >&6
8329 else
8330   ac_check_lib_save_LIBS=$LIBS
8331 LIBS="-ldnet  $LIBS"
8332 cat >conftest.$ac_ext <<_ACEOF
8333 #line $LINENO "configure"
8334 /* confdefs.h.  */
8335 _ACEOF
8336 cat confdefs.h >>conftest.$ac_ext
8337 cat >>conftest.$ac_ext <<_ACEOF
8338 /* end confdefs.h.  */
8339
8340 /* Override any gcc2 internal prototype to avoid an error.  */
8341 #ifdef __cplusplus
8342 extern "C"
8343 #endif
8344 /* We use char because int might match the return type of a gcc2
8345    builtin and then its argument prototype would still apply.  */
8346 char dnet_ntoa ();
8347 int
8348 main ()
8349 {
8350 dnet_ntoa ();
8351   ;
8352   return 0;
8353 }
8354 _ACEOF
8355 rm -f conftest.$ac_objext conftest$ac_exeext
8356 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8357   (eval $ac_link) 2>&5
8358   ac_status=$?
8359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8360   (exit $ac_status); } &&
8361          { ac_try='test -s conftest$ac_exeext'
8362   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8363   (eval $ac_try) 2>&5
8364   ac_status=$?
8365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8366   (exit $ac_status); }; }; then
8367   ac_cv_lib_dnet_dnet_ntoa=yes
8368 else
8369   echo "$as_me: failed program was:" >&5
8370 sed 's/^/| /' conftest.$ac_ext >&5
8371
8372 ac_cv_lib_dnet_dnet_ntoa=no
8373 fi
8374 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8375 LIBS=$ac_check_lib_save_LIBS
8376 fi
8377 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8378 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
8379 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
8380   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
8381 fi
8382
8383     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
8384       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
8385 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
8386 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
8387   echo $ECHO_N "(cached) $ECHO_C" >&6
8388 else
8389   ac_check_lib_save_LIBS=$LIBS
8390 LIBS="-ldnet_stub  $LIBS"
8391 cat >conftest.$ac_ext <<_ACEOF
8392 #line $LINENO "configure"
8393 /* confdefs.h.  */
8394 _ACEOF
8395 cat confdefs.h >>conftest.$ac_ext
8396 cat >>conftest.$ac_ext <<_ACEOF
8397 /* end confdefs.h.  */
8398
8399 /* Override any gcc2 internal prototype to avoid an error.  */
8400 #ifdef __cplusplus
8401 extern "C"
8402 #endif
8403 /* We use char because int might match the return type of a gcc2
8404    builtin and then its argument prototype would still apply.  */
8405 char dnet_ntoa ();
8406 int
8407 main ()
8408 {
8409 dnet_ntoa ();
8410   ;
8411   return 0;
8412 }
8413 _ACEOF
8414 rm -f conftest.$ac_objext conftest$ac_exeext
8415 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8416   (eval $ac_link) 2>&5
8417   ac_status=$?
8418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8419   (exit $ac_status); } &&
8420          { ac_try='test -s conftest$ac_exeext'
8421   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8422   (eval $ac_try) 2>&5
8423   ac_status=$?
8424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8425   (exit $ac_status); }; }; then
8426   ac_cv_lib_dnet_stub_dnet_ntoa=yes
8427 else
8428   echo "$as_me: failed program was:" >&5
8429 sed 's/^/| /' conftest.$ac_ext >&5
8430
8431 ac_cv_lib_dnet_stub_dnet_ntoa=no
8432 fi
8433 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8434 LIBS=$ac_check_lib_save_LIBS
8435 fi
8436 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
8437 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
8438 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
8439   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
8440 fi
8441
8442     fi
8443 fi
8444 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8445     LIBS="$ac_xsave_LIBS"
8446
8447     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
8448     # to get the SysV transport functions.
8449     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
8450     # needs -lnsl.
8451     # The nsl library prevents programs from opening the X display
8452     # on Irix 5.2, according to T.E. Dickey.
8453     # The functions gethostbyname, getservbyname, and inet_addr are
8454     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
8455     echo "$as_me:$LINENO: checking for gethostbyname" >&5
8456 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
8457 if test "${ac_cv_func_gethostbyname+set}" = set; then
8458   echo $ECHO_N "(cached) $ECHO_C" >&6
8459 else
8460   cat >conftest.$ac_ext <<_ACEOF
8461 #line $LINENO "configure"
8462 /* confdefs.h.  */
8463 _ACEOF
8464 cat confdefs.h >>conftest.$ac_ext
8465 cat >>conftest.$ac_ext <<_ACEOF
8466 /* end confdefs.h.  */
8467 /* System header to define __stub macros and hopefully few prototypes,
8468     which can conflict with char gethostbyname (); below.
8469     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8470     <limits.h> exists even on freestanding compilers.  */
8471 #ifdef __STDC__
8472 # include <limits.h>
8473 #else
8474 # include <assert.h>
8475 #endif
8476 /* Override any gcc2 internal prototype to avoid an error.  */
8477 #ifdef __cplusplus
8478 extern "C"
8479 {
8480 #endif
8481 /* We use char because int might match the return type of a gcc2
8482    builtin and then its argument prototype would still apply.  */
8483 char gethostbyname ();
8484 /* The GNU C library defines this for functions which it implements
8485     to always fail with ENOSYS.  Some functions are actually named
8486     something starting with __ and the normal name is an alias.  */
8487 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
8488 choke me
8489 #else
8490 char (*f) () = gethostbyname;
8491 #endif
8492 #ifdef __cplusplus
8493 }
8494 #endif
8495
8496 int
8497 main ()
8498 {
8499 return f != gethostbyname;
8500   ;
8501   return 0;
8502 }
8503 _ACEOF
8504 rm -f conftest.$ac_objext conftest$ac_exeext
8505 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8506   (eval $ac_link) 2>&5
8507   ac_status=$?
8508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8509   (exit $ac_status); } &&
8510          { ac_try='test -s conftest$ac_exeext'
8511   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8512   (eval $ac_try) 2>&5
8513   ac_status=$?
8514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8515   (exit $ac_status); }; }; then
8516   ac_cv_func_gethostbyname=yes
8517 else
8518   echo "$as_me: failed program was:" >&5
8519 sed 's/^/| /' conftest.$ac_ext >&5
8520
8521 ac_cv_func_gethostbyname=no
8522 fi
8523 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8524 fi
8525 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
8526 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
8527
8528     if test $ac_cv_func_gethostbyname = no; then
8529       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
8530 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
8531 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
8532   echo $ECHO_N "(cached) $ECHO_C" >&6
8533 else
8534   ac_check_lib_save_LIBS=$LIBS
8535 LIBS="-lnsl  $LIBS"
8536 cat >conftest.$ac_ext <<_ACEOF
8537 #line $LINENO "configure"
8538 /* confdefs.h.  */
8539 _ACEOF
8540 cat confdefs.h >>conftest.$ac_ext
8541 cat >>conftest.$ac_ext <<_ACEOF
8542 /* end confdefs.h.  */
8543
8544 /* Override any gcc2 internal prototype to avoid an error.  */
8545 #ifdef __cplusplus
8546 extern "C"
8547 #endif
8548 /* We use char because int might match the return type of a gcc2
8549    builtin and then its argument prototype would still apply.  */
8550 char gethostbyname ();
8551 int
8552 main ()
8553 {
8554 gethostbyname ();
8555   ;
8556   return 0;
8557 }
8558 _ACEOF
8559 rm -f conftest.$ac_objext conftest$ac_exeext
8560 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8561   (eval $ac_link) 2>&5
8562   ac_status=$?
8563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8564   (exit $ac_status); } &&
8565          { ac_try='test -s conftest$ac_exeext'
8566   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8567   (eval $ac_try) 2>&5
8568   ac_status=$?
8569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8570   (exit $ac_status); }; }; then
8571   ac_cv_lib_nsl_gethostbyname=yes
8572 else
8573   echo "$as_me: failed program was:" >&5
8574 sed 's/^/| /' conftest.$ac_ext >&5
8575
8576 ac_cv_lib_nsl_gethostbyname=no
8577 fi
8578 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8579 LIBS=$ac_check_lib_save_LIBS
8580 fi
8581 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
8582 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
8583 if test $ac_cv_lib_nsl_gethostbyname = yes; then
8584   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
8585 fi
8586
8587       if test $ac_cv_lib_nsl_gethostbyname = no; then
8588         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
8589 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
8590 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
8591   echo $ECHO_N "(cached) $ECHO_C" >&6
8592 else
8593   ac_check_lib_save_LIBS=$LIBS
8594 LIBS="-lbsd  $LIBS"
8595 cat >conftest.$ac_ext <<_ACEOF
8596 #line $LINENO "configure"
8597 /* confdefs.h.  */
8598 _ACEOF
8599 cat confdefs.h >>conftest.$ac_ext
8600 cat >>conftest.$ac_ext <<_ACEOF
8601 /* end confdefs.h.  */
8602
8603 /* Override any gcc2 internal prototype to avoid an error.  */
8604 #ifdef __cplusplus
8605 extern "C"
8606 #endif
8607 /* We use char because int might match the return type of a gcc2
8608    builtin and then its argument prototype would still apply.  */
8609 char gethostbyname ();
8610 int
8611 main ()
8612 {
8613 gethostbyname ();
8614   ;
8615   return 0;
8616 }
8617 _ACEOF
8618 rm -f conftest.$ac_objext conftest$ac_exeext
8619 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8620   (eval $ac_link) 2>&5
8621   ac_status=$?
8622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8623   (exit $ac_status); } &&
8624          { ac_try='test -s conftest$ac_exeext'
8625   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8626   (eval $ac_try) 2>&5
8627   ac_status=$?
8628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8629   (exit $ac_status); }; }; then
8630   ac_cv_lib_bsd_gethostbyname=yes
8631 else
8632   echo "$as_me: failed program was:" >&5
8633 sed 's/^/| /' conftest.$ac_ext >&5
8634
8635 ac_cv_lib_bsd_gethostbyname=no
8636 fi
8637 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8638 LIBS=$ac_check_lib_save_LIBS
8639 fi
8640 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
8641 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
8642 if test $ac_cv_lib_bsd_gethostbyname = yes; then
8643   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
8644 fi
8645
8646       fi
8647     fi
8648
8649     # lieder@skyler.mavd.honeywell.com says without -lsocket,
8650     # socket/setsockopt and other routines are undefined under SCO ODT
8651     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
8652     # on later versions), says Simon Leinen: it contains gethostby*
8653     # variants that don't use the name server (or something).  -lsocket
8654     # must be given before -lnsl if both are needed.  We assume that
8655     # if connect needs -lnsl, so does gethostbyname.
8656     echo "$as_me:$LINENO: checking for connect" >&5
8657 echo $ECHO_N "checking for connect... $ECHO_C" >&6
8658 if test "${ac_cv_func_connect+set}" = set; then
8659   echo $ECHO_N "(cached) $ECHO_C" >&6
8660 else
8661   cat >conftest.$ac_ext <<_ACEOF
8662 #line $LINENO "configure"
8663 /* confdefs.h.  */
8664 _ACEOF
8665 cat confdefs.h >>conftest.$ac_ext
8666 cat >>conftest.$ac_ext <<_ACEOF
8667 /* end confdefs.h.  */
8668 /* System header to define __stub macros and hopefully few prototypes,
8669     which can conflict with char connect (); below.
8670     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8671     <limits.h> exists even on freestanding compilers.  */
8672 #ifdef __STDC__
8673 # include <limits.h>
8674 #else
8675 # include <assert.h>
8676 #endif
8677 /* Override any gcc2 internal prototype to avoid an error.  */
8678 #ifdef __cplusplus
8679 extern "C"
8680 {
8681 #endif
8682 /* We use char because int might match the return type of a gcc2
8683    builtin and then its argument prototype would still apply.  */
8684 char connect ();
8685 /* The GNU C library defines this for functions which it implements
8686     to always fail with ENOSYS.  Some functions are actually named
8687     something starting with __ and the normal name is an alias.  */
8688 #if defined (__stub_connect) || defined (__stub___connect)
8689 choke me
8690 #else
8691 char (*f) () = connect;
8692 #endif
8693 #ifdef __cplusplus
8694 }
8695 #endif
8696
8697 int
8698 main ()
8699 {
8700 return f != connect;
8701   ;
8702   return 0;
8703 }
8704 _ACEOF
8705 rm -f conftest.$ac_objext conftest$ac_exeext
8706 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8707   (eval $ac_link) 2>&5
8708   ac_status=$?
8709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8710   (exit $ac_status); } &&
8711          { ac_try='test -s conftest$ac_exeext'
8712   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8713   (eval $ac_try) 2>&5
8714   ac_status=$?
8715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8716   (exit $ac_status); }; }; then
8717   ac_cv_func_connect=yes
8718 else
8719   echo "$as_me: failed program was:" >&5
8720 sed 's/^/| /' conftest.$ac_ext >&5
8721
8722 ac_cv_func_connect=no
8723 fi
8724 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8725 fi
8726 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
8727 echo "${ECHO_T}$ac_cv_func_connect" >&6
8728
8729     if test $ac_cv_func_connect = no; then
8730       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
8731 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
8732 if test "${ac_cv_lib_socket_connect+set}" = set; then
8733   echo $ECHO_N "(cached) $ECHO_C" >&6
8734 else
8735   ac_check_lib_save_LIBS=$LIBS
8736 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
8737 cat >conftest.$ac_ext <<_ACEOF
8738 #line $LINENO "configure"
8739 /* confdefs.h.  */
8740 _ACEOF
8741 cat confdefs.h >>conftest.$ac_ext
8742 cat >>conftest.$ac_ext <<_ACEOF
8743 /* end confdefs.h.  */
8744
8745 /* Override any gcc2 internal prototype to avoid an error.  */
8746 #ifdef __cplusplus
8747 extern "C"
8748 #endif
8749 /* We use char because int might match the return type of a gcc2
8750    builtin and then its argument prototype would still apply.  */
8751 char connect ();
8752 int
8753 main ()
8754 {
8755 connect ();
8756   ;
8757   return 0;
8758 }
8759 _ACEOF
8760 rm -f conftest.$ac_objext conftest$ac_exeext
8761 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8762   (eval $ac_link) 2>&5
8763   ac_status=$?
8764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8765   (exit $ac_status); } &&
8766          { ac_try='test -s conftest$ac_exeext'
8767   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8768   (eval $ac_try) 2>&5
8769   ac_status=$?
8770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8771   (exit $ac_status); }; }; then
8772   ac_cv_lib_socket_connect=yes
8773 else
8774   echo "$as_me: failed program was:" >&5
8775 sed 's/^/| /' conftest.$ac_ext >&5
8776
8777 ac_cv_lib_socket_connect=no
8778 fi
8779 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8780 LIBS=$ac_check_lib_save_LIBS
8781 fi
8782 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
8783 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
8784 if test $ac_cv_lib_socket_connect = yes; then
8785   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
8786 fi
8787
8788     fi
8789
8790     # Guillermo Gomez says -lposix is necessary on A/UX.
8791     echo "$as_me:$LINENO: checking for remove" >&5
8792 echo $ECHO_N "checking for remove... $ECHO_C" >&6
8793 if test "${ac_cv_func_remove+set}" = set; then
8794   echo $ECHO_N "(cached) $ECHO_C" >&6
8795 else
8796   cat >conftest.$ac_ext <<_ACEOF
8797 #line $LINENO "configure"
8798 /* confdefs.h.  */
8799 _ACEOF
8800 cat confdefs.h >>conftest.$ac_ext
8801 cat >>conftest.$ac_ext <<_ACEOF
8802 /* end confdefs.h.  */
8803 /* System header to define __stub macros and hopefully few prototypes,
8804     which can conflict with char remove (); below.
8805     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8806     <limits.h> exists even on freestanding compilers.  */
8807 #ifdef __STDC__
8808 # include <limits.h>
8809 #else
8810 # include <assert.h>
8811 #endif
8812 /* Override any gcc2 internal prototype to avoid an error.  */
8813 #ifdef __cplusplus
8814 extern "C"
8815 {
8816 #endif
8817 /* We use char because int might match the return type of a gcc2
8818    builtin and then its argument prototype would still apply.  */
8819 char remove ();
8820 /* The GNU C library defines this for functions which it implements
8821     to always fail with ENOSYS.  Some functions are actually named
8822     something starting with __ and the normal name is an alias.  */
8823 #if defined (__stub_remove) || defined (__stub___remove)
8824 choke me
8825 #else
8826 char (*f) () = remove;
8827 #endif
8828 #ifdef __cplusplus
8829 }
8830 #endif
8831
8832 int
8833 main ()
8834 {
8835 return f != remove;
8836   ;
8837   return 0;
8838 }
8839 _ACEOF
8840 rm -f conftest.$ac_objext conftest$ac_exeext
8841 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8842   (eval $ac_link) 2>&5
8843   ac_status=$?
8844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8845   (exit $ac_status); } &&
8846          { ac_try='test -s conftest$ac_exeext'
8847   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8848   (eval $ac_try) 2>&5
8849   ac_status=$?
8850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8851   (exit $ac_status); }; }; then
8852   ac_cv_func_remove=yes
8853 else
8854   echo "$as_me: failed program was:" >&5
8855 sed 's/^/| /' conftest.$ac_ext >&5
8856
8857 ac_cv_func_remove=no
8858 fi
8859 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8860 fi
8861 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
8862 echo "${ECHO_T}$ac_cv_func_remove" >&6
8863
8864     if test $ac_cv_func_remove = no; then
8865       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
8866 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
8867 if test "${ac_cv_lib_posix_remove+set}" = set; then
8868   echo $ECHO_N "(cached) $ECHO_C" >&6
8869 else
8870   ac_check_lib_save_LIBS=$LIBS
8871 LIBS="-lposix  $LIBS"
8872 cat >conftest.$ac_ext <<_ACEOF
8873 #line $LINENO "configure"
8874 /* confdefs.h.  */
8875 _ACEOF
8876 cat confdefs.h >>conftest.$ac_ext
8877 cat >>conftest.$ac_ext <<_ACEOF
8878 /* end confdefs.h.  */
8879
8880 /* Override any gcc2 internal prototype to avoid an error.  */
8881 #ifdef __cplusplus
8882 extern "C"
8883 #endif
8884 /* We use char because int might match the return type of a gcc2
8885    builtin and then its argument prototype would still apply.  */
8886 char remove ();
8887 int
8888 main ()
8889 {
8890 remove ();
8891   ;
8892   return 0;
8893 }
8894 _ACEOF
8895 rm -f conftest.$ac_objext conftest$ac_exeext
8896 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8897   (eval $ac_link) 2>&5
8898   ac_status=$?
8899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8900   (exit $ac_status); } &&
8901          { ac_try='test -s conftest$ac_exeext'
8902   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8903   (eval $ac_try) 2>&5
8904   ac_status=$?
8905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8906   (exit $ac_status); }; }; then
8907   ac_cv_lib_posix_remove=yes
8908 else
8909   echo "$as_me: failed program was:" >&5
8910 sed 's/^/| /' conftest.$ac_ext >&5
8911
8912 ac_cv_lib_posix_remove=no
8913 fi
8914 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8915 LIBS=$ac_check_lib_save_LIBS
8916 fi
8917 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
8918 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
8919 if test $ac_cv_lib_posix_remove = yes; then
8920   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
8921 fi
8922
8923     fi
8924
8925     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
8926     echo "$as_me:$LINENO: checking for shmat" >&5
8927 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
8928 if test "${ac_cv_func_shmat+set}" = set; then
8929   echo $ECHO_N "(cached) $ECHO_C" >&6
8930 else
8931   cat >conftest.$ac_ext <<_ACEOF
8932 #line $LINENO "configure"
8933 /* confdefs.h.  */
8934 _ACEOF
8935 cat confdefs.h >>conftest.$ac_ext
8936 cat >>conftest.$ac_ext <<_ACEOF
8937 /* end confdefs.h.  */
8938 /* System header to define __stub macros and hopefully few prototypes,
8939     which can conflict with char shmat (); below.
8940     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8941     <limits.h> exists even on freestanding compilers.  */
8942 #ifdef __STDC__
8943 # include <limits.h>
8944 #else
8945 # include <assert.h>
8946 #endif
8947 /* Override any gcc2 internal prototype to avoid an error.  */
8948 #ifdef __cplusplus
8949 extern "C"
8950 {
8951 #endif
8952 /* We use char because int might match the return type of a gcc2
8953    builtin and then its argument prototype would still apply.  */
8954 char shmat ();
8955 /* The GNU C library defines this for functions which it implements
8956     to always fail with ENOSYS.  Some functions are actually named
8957     something starting with __ and the normal name is an alias.  */
8958 #if defined (__stub_shmat) || defined (__stub___shmat)
8959 choke me
8960 #else
8961 char (*f) () = shmat;
8962 #endif
8963 #ifdef __cplusplus
8964 }
8965 #endif
8966
8967 int
8968 main ()
8969 {
8970 return f != shmat;
8971   ;
8972   return 0;
8973 }
8974 _ACEOF
8975 rm -f conftest.$ac_objext conftest$ac_exeext
8976 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8977   (eval $ac_link) 2>&5
8978   ac_status=$?
8979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8980   (exit $ac_status); } &&
8981          { ac_try='test -s conftest$ac_exeext'
8982   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8983   (eval $ac_try) 2>&5
8984   ac_status=$?
8985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8986   (exit $ac_status); }; }; then
8987   ac_cv_func_shmat=yes
8988 else
8989   echo "$as_me: failed program was:" >&5
8990 sed 's/^/| /' conftest.$ac_ext >&5
8991
8992 ac_cv_func_shmat=no
8993 fi
8994 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8995 fi
8996 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
8997 echo "${ECHO_T}$ac_cv_func_shmat" >&6
8998
8999     if test $ac_cv_func_shmat = no; then
9000       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
9001 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
9002 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
9003   echo $ECHO_N "(cached) $ECHO_C" >&6
9004 else
9005   ac_check_lib_save_LIBS=$LIBS
9006 LIBS="-lipc  $LIBS"
9007 cat >conftest.$ac_ext <<_ACEOF
9008 #line $LINENO "configure"
9009 /* confdefs.h.  */
9010 _ACEOF
9011 cat confdefs.h >>conftest.$ac_ext
9012 cat >>conftest.$ac_ext <<_ACEOF
9013 /* end confdefs.h.  */
9014
9015 /* Override any gcc2 internal prototype to avoid an error.  */
9016 #ifdef __cplusplus
9017 extern "C"
9018 #endif
9019 /* We use char because int might match the return type of a gcc2
9020    builtin and then its argument prototype would still apply.  */
9021 char shmat ();
9022 int
9023 main ()
9024 {
9025 shmat ();
9026   ;
9027   return 0;
9028 }
9029 _ACEOF
9030 rm -f conftest.$ac_objext conftest$ac_exeext
9031 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9032   (eval $ac_link) 2>&5
9033   ac_status=$?
9034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9035   (exit $ac_status); } &&
9036          { ac_try='test -s conftest$ac_exeext'
9037   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9038   (eval $ac_try) 2>&5
9039   ac_status=$?
9040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9041   (exit $ac_status); }; }; then
9042   ac_cv_lib_ipc_shmat=yes
9043 else
9044   echo "$as_me: failed program was:" >&5
9045 sed 's/^/| /' conftest.$ac_ext >&5
9046
9047 ac_cv_lib_ipc_shmat=no
9048 fi
9049 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9050 LIBS=$ac_check_lib_save_LIBS
9051 fi
9052 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
9053 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
9054 if test $ac_cv_lib_ipc_shmat = yes; then
9055   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
9056 fi
9057
9058     fi
9059   fi
9060
9061   # Check for libraries that X11R6 Xt/Xaw programs need.
9062   ac_save_LDFLAGS=$LDFLAGS
9063   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
9064   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
9065   # check for ICE first), but we must link in the order -lSM -lICE or
9066   # we get undefined symbols.  So assume we have SM if we have ICE.
9067   # These have to be linked with before -lX11, unlike the other
9068   # libraries we check for below, so use a different variable.
9069   # John Interrante, Karl Berry
9070   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
9071 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
9072 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
9073   echo $ECHO_N "(cached) $ECHO_C" >&6
9074 else
9075   ac_check_lib_save_LIBS=$LIBS
9076 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
9077 cat >conftest.$ac_ext <<_ACEOF
9078 #line $LINENO "configure"
9079 /* confdefs.h.  */
9080 _ACEOF
9081 cat confdefs.h >>conftest.$ac_ext
9082 cat >>conftest.$ac_ext <<_ACEOF
9083 /* end confdefs.h.  */
9084
9085 /* Override any gcc2 internal prototype to avoid an error.  */
9086 #ifdef __cplusplus
9087 extern "C"
9088 #endif
9089 /* We use char because int might match the return type of a gcc2
9090    builtin and then its argument prototype would still apply.  */
9091 char IceConnectionNumber ();
9092 int
9093 main ()
9094 {
9095 IceConnectionNumber ();
9096   ;
9097   return 0;
9098 }
9099 _ACEOF
9100 rm -f conftest.$ac_objext conftest$ac_exeext
9101 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9102   (eval $ac_link) 2>&5
9103   ac_status=$?
9104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9105   (exit $ac_status); } &&
9106          { ac_try='test -s conftest$ac_exeext'
9107   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9108   (eval $ac_try) 2>&5
9109   ac_status=$?
9110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9111   (exit $ac_status); }; }; then
9112   ac_cv_lib_ICE_IceConnectionNumber=yes
9113 else
9114   echo "$as_me: failed program was:" >&5
9115 sed 's/^/| /' conftest.$ac_ext >&5
9116
9117 ac_cv_lib_ICE_IceConnectionNumber=no
9118 fi
9119 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9120 LIBS=$ac_check_lib_save_LIBS
9121 fi
9122 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
9123 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
9124 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
9125   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
9126 fi
9127
9128   LDFLAGS=$ac_save_LDFLAGS
9129
9130 fi
9131
9132
9133
9134
9135
9136
9137
9138
9139
9140
9141
9142
9143
9144
9145
9146
9147
9148
9149
9150
9151
9152
9153
9154
9155 for ac_header in \
9156         assert.h \
9157         fcntl.h \
9158         grp.h \
9159         pwd.h \
9160         libc.h \
9161         limits.h \
9162         stdarg.h \
9163         stdlib.h \
9164         stdint.h \
9165         string.h \
9166         termios.h \
9167         unistd.h \
9168         sys/byteorder.h \
9169         sys/ioctl.h \
9170         sys/select.h \
9171         sys/sockio.h \
9172         sys/time.h \
9173         sys/socket.h \
9174         arpa/nameser.h \
9175         resolv.h \
9176         mtio.h \
9177         sys/mtio.h \
9178
9179 do
9180 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9181 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9182   echo "$as_me:$LINENO: checking for $ac_header" >&5
9183 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9184 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9185   echo $ECHO_N "(cached) $ECHO_C" >&6
9186 fi
9187 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9188 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9189 else
9190   # Is the header compilable?
9191 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9192 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9193 cat >conftest.$ac_ext <<_ACEOF
9194 #line $LINENO "configure"
9195 /* confdefs.h.  */
9196 _ACEOF
9197 cat confdefs.h >>conftest.$ac_ext
9198 cat >>conftest.$ac_ext <<_ACEOF
9199 /* end confdefs.h.  */
9200 $ac_includes_default
9201 #include <$ac_header>
9202 _ACEOF
9203 rm -f conftest.$ac_objext
9204 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9205   (eval $ac_compile) 2>&5
9206   ac_status=$?
9207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9208   (exit $ac_status); } &&
9209          { ac_try='test -s conftest.$ac_objext'
9210   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9211   (eval $ac_try) 2>&5
9212   ac_status=$?
9213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9214   (exit $ac_status); }; }; then
9215   ac_header_compiler=yes
9216 else
9217   echo "$as_me: failed program was:" >&5
9218 sed 's/^/| /' conftest.$ac_ext >&5
9219
9220 ac_header_compiler=no
9221 fi
9222 rm -f conftest.$ac_objext conftest.$ac_ext
9223 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9224 echo "${ECHO_T}$ac_header_compiler" >&6
9225
9226 # Is the header present?
9227 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9228 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9229 cat >conftest.$ac_ext <<_ACEOF
9230 #line $LINENO "configure"
9231 /* confdefs.h.  */
9232 _ACEOF
9233 cat confdefs.h >>conftest.$ac_ext
9234 cat >>conftest.$ac_ext <<_ACEOF
9235 /* end confdefs.h.  */
9236 #include <$ac_header>
9237 _ACEOF
9238 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9239   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9240   ac_status=$?
9241   grep -v '^ *+' conftest.er1 >conftest.err
9242   rm -f conftest.er1
9243   cat conftest.err >&5
9244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9245   (exit $ac_status); } >/dev/null; then
9246   if test -s conftest.err; then
9247     ac_cpp_err=$ac_c_preproc_warn_flag
9248   else
9249     ac_cpp_err=
9250   fi
9251 else
9252   ac_cpp_err=yes
9253 fi
9254 if test -z "$ac_cpp_err"; then
9255   ac_header_preproc=yes
9256 else
9257   echo "$as_me: failed program was:" >&5
9258 sed 's/^/| /' conftest.$ac_ext >&5
9259
9260   ac_header_preproc=no
9261 fi
9262 rm -f conftest.err conftest.$ac_ext
9263 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9264 echo "${ECHO_T}$ac_header_preproc" >&6
9265
9266 # So?  What about this header?
9267 case $ac_header_compiler:$ac_header_preproc in
9268   yes:no )
9269     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9270 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9271     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9272 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9273     (
9274       cat <<\_ASBOX
9275 ## ------------------------------------ ##
9276 ## Report this to bug-autoconf@gnu.org. ##
9277 ## ------------------------------------ ##
9278 _ASBOX
9279     ) |
9280       sed "s/^/$as_me: WARNING:     /" >&2
9281     ;;
9282   no:yes )
9283     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9284 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9285     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9286 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9287     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9288 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9289     (
9290       cat <<\_ASBOX
9291 ## ------------------------------------ ##
9292 ## Report this to bug-autoconf@gnu.org. ##
9293 ## ------------------------------------ ##
9294 _ASBOX
9295     ) |
9296       sed "s/^/$as_me: WARNING:     /" >&2
9297     ;;
9298 esac
9299 echo "$as_me:$LINENO: checking for $ac_header" >&5
9300 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9301 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9302   echo $ECHO_N "(cached) $ECHO_C" >&6
9303 else
9304   eval "$as_ac_Header=$ac_header_preproc"
9305 fi
9306 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9307 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9308
9309 fi
9310 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9311   cat >>confdefs.h <<_ACEOF
9312 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9313 _ACEOF
9314
9315 fi
9316
9317 done
9318
9319 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9320 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9321 if test "${ac_cv_header_stdc+set}" = set; then
9322   echo $ECHO_N "(cached) $ECHO_C" >&6
9323 else
9324   cat >conftest.$ac_ext <<_ACEOF
9325 #line $LINENO "configure"
9326 /* confdefs.h.  */
9327 _ACEOF
9328 cat confdefs.h >>conftest.$ac_ext
9329 cat >>conftest.$ac_ext <<_ACEOF
9330 /* end confdefs.h.  */
9331 #include <stdlib.h>
9332 #include <stdarg.h>
9333 #include <string.h>
9334 #include <float.h>
9335
9336 int
9337 main ()
9338 {
9339
9340   ;
9341   return 0;
9342 }
9343 _ACEOF
9344 rm -f conftest.$ac_objext
9345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9346   (eval $ac_compile) 2>&5
9347   ac_status=$?
9348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9349   (exit $ac_status); } &&
9350          { ac_try='test -s conftest.$ac_objext'
9351   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9352   (eval $ac_try) 2>&5
9353   ac_status=$?
9354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9355   (exit $ac_status); }; }; then
9356   ac_cv_header_stdc=yes
9357 else
9358   echo "$as_me: failed program was:" >&5
9359 sed 's/^/| /' conftest.$ac_ext >&5
9360
9361 ac_cv_header_stdc=no
9362 fi
9363 rm -f conftest.$ac_objext conftest.$ac_ext
9364
9365 if test $ac_cv_header_stdc = yes; then
9366   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9367   cat >conftest.$ac_ext <<_ACEOF
9368 #line $LINENO "configure"
9369 /* confdefs.h.  */
9370 _ACEOF
9371 cat confdefs.h >>conftest.$ac_ext
9372 cat >>conftest.$ac_ext <<_ACEOF
9373 /* end confdefs.h.  */
9374 #include <string.h>
9375
9376 _ACEOF
9377 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9378   $EGREP "memchr" >/dev/null 2>&1; then
9379   :
9380 else
9381   ac_cv_header_stdc=no
9382 fi
9383 rm -f conftest*
9384
9385 fi
9386
9387 if test $ac_cv_header_stdc = yes; then
9388   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9389   cat >conftest.$ac_ext <<_ACEOF
9390 #line $LINENO "configure"
9391 /* confdefs.h.  */
9392 _ACEOF
9393 cat confdefs.h >>conftest.$ac_ext
9394 cat >>conftest.$ac_ext <<_ACEOF
9395 /* end confdefs.h.  */
9396 #include <stdlib.h>
9397
9398 _ACEOF
9399 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9400   $EGREP "free" >/dev/null 2>&1; then
9401   :
9402 else
9403   ac_cv_header_stdc=no
9404 fi
9405 rm -f conftest*
9406
9407 fi
9408
9409 if test $ac_cv_header_stdc = yes; then
9410   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9411   if test "$cross_compiling" = yes; then
9412   :
9413 else
9414   cat >conftest.$ac_ext <<_ACEOF
9415 #line $LINENO "configure"
9416 /* confdefs.h.  */
9417 _ACEOF
9418 cat confdefs.h >>conftest.$ac_ext
9419 cat >>conftest.$ac_ext <<_ACEOF
9420 /* end confdefs.h.  */
9421 #include <ctype.h>
9422 #if ((' ' & 0x0FF) == 0x020)
9423 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9424 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9425 #else
9426 # define ISLOWER(c) \
9427                    (('a' <= (c) && (c) <= 'i') \
9428                      || ('j' <= (c) && (c) <= 'r') \
9429                      || ('s' <= (c) && (c) <= 'z'))
9430 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9431 #endif
9432
9433 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9434 int
9435 main ()
9436 {
9437   int i;
9438   for (i = 0; i < 256; i++)
9439     if (XOR (islower (i), ISLOWER (i))
9440         || toupper (i) != TOUPPER (i))
9441       exit(2);
9442   exit (0);
9443 }
9444 _ACEOF
9445 rm -f conftest$ac_exeext
9446 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9447   (eval $ac_link) 2>&5
9448   ac_status=$?
9449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9450   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9451   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9452   (eval $ac_try) 2>&5
9453   ac_status=$?
9454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9455   (exit $ac_status); }; }; then
9456   :
9457 else
9458   echo "$as_me: program exited with status $ac_status" >&5
9459 echo "$as_me: failed program was:" >&5
9460 sed 's/^/| /' conftest.$ac_ext >&5
9461
9462 ( exit $ac_status )
9463 ac_cv_header_stdc=no
9464 fi
9465 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9466 fi
9467 fi
9468 fi
9469 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9470 echo "${ECHO_T}$ac_cv_header_stdc" >&6
9471 if test $ac_cv_header_stdc = yes; then
9472
9473 cat >>confdefs.h <<\_ACEOF
9474 #define STDC_HEADERS 1
9475 _ACEOF
9476
9477 fi
9478
9479 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
9480 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
9481 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
9482   echo $ECHO_N "(cached) $ECHO_C" >&6
9483 else
9484   cat >conftest.$ac_ext <<_ACEOF
9485 #line $LINENO "configure"
9486 /* confdefs.h.  */
9487 _ACEOF
9488 cat confdefs.h >>conftest.$ac_ext
9489 cat >>conftest.$ac_ext <<_ACEOF
9490 /* end confdefs.h.  */
9491 #include <sys/types.h>
9492 int
9493 main ()
9494 {
9495 return makedev(0, 0);
9496   ;
9497   return 0;
9498 }
9499 _ACEOF
9500 rm -f conftest.$ac_objext conftest$ac_exeext
9501 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9502   (eval $ac_link) 2>&5
9503   ac_status=$?
9504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9505   (exit $ac_status); } &&
9506          { ac_try='test -s conftest$ac_exeext'
9507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9508   (eval $ac_try) 2>&5
9509   ac_status=$?
9510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9511   (exit $ac_status); }; }; then
9512   ac_cv_header_sys_types_h_makedev=yes
9513 else
9514   echo "$as_me: failed program was:" >&5
9515 sed 's/^/| /' conftest.$ac_ext >&5
9516
9517 ac_cv_header_sys_types_h_makedev=no
9518 fi
9519 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9520
9521 fi
9522 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
9523 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
9524
9525 if test $ac_cv_header_sys_types_h_makedev = no; then
9526 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
9527   echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
9528 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
9529 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
9530   echo $ECHO_N "(cached) $ECHO_C" >&6
9531 fi
9532 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
9533 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
9534 else
9535   # Is the header compilable?
9536 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
9537 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
9538 cat >conftest.$ac_ext <<_ACEOF
9539 #line $LINENO "configure"
9540 /* confdefs.h.  */
9541 _ACEOF
9542 cat confdefs.h >>conftest.$ac_ext
9543 cat >>conftest.$ac_ext <<_ACEOF
9544 /* end confdefs.h.  */
9545 $ac_includes_default
9546 #include <sys/mkdev.h>
9547 _ACEOF
9548 rm -f conftest.$ac_objext
9549 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9550   (eval $ac_compile) 2>&5
9551   ac_status=$?
9552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9553   (exit $ac_status); } &&
9554          { ac_try='test -s conftest.$ac_objext'
9555   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9556   (eval $ac_try) 2>&5
9557   ac_status=$?
9558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9559   (exit $ac_status); }; }; then
9560   ac_header_compiler=yes
9561 else
9562   echo "$as_me: failed program was:" >&5
9563 sed 's/^/| /' conftest.$ac_ext >&5
9564
9565 ac_header_compiler=no
9566 fi
9567 rm -f conftest.$ac_objext conftest.$ac_ext
9568 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9569 echo "${ECHO_T}$ac_header_compiler" >&6
9570
9571 # Is the header present?
9572 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
9573 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
9574 cat >conftest.$ac_ext <<_ACEOF
9575 #line $LINENO "configure"
9576 /* confdefs.h.  */
9577 _ACEOF
9578 cat confdefs.h >>conftest.$ac_ext
9579 cat >>conftest.$ac_ext <<_ACEOF
9580 /* end confdefs.h.  */
9581 #include <sys/mkdev.h>
9582 _ACEOF
9583 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9584   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9585   ac_status=$?
9586   grep -v '^ *+' conftest.er1 >conftest.err
9587   rm -f conftest.er1
9588   cat conftest.err >&5
9589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9590   (exit $ac_status); } >/dev/null; then
9591   if test -s conftest.err; then
9592     ac_cpp_err=$ac_c_preproc_warn_flag
9593   else
9594     ac_cpp_err=
9595   fi
9596 else
9597   ac_cpp_err=yes
9598 fi
9599 if test -z "$ac_cpp_err"; then
9600   ac_header_preproc=yes
9601 else
9602   echo "$as_me: failed program was:" >&5
9603 sed 's/^/| /' conftest.$ac_ext >&5
9604
9605   ac_header_preproc=no
9606 fi
9607 rm -f conftest.err conftest.$ac_ext
9608 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9609 echo "${ECHO_T}$ac_header_preproc" >&6
9610
9611 # So?  What about this header?
9612 case $ac_header_compiler:$ac_header_preproc in
9613   yes:no )
9614     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
9615 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9616     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
9617 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
9618     (
9619       cat <<\_ASBOX
9620 ## ------------------------------------ ##
9621 ## Report this to bug-autoconf@gnu.org. ##
9622 ## ------------------------------------ ##
9623 _ASBOX
9624     ) |
9625       sed "s/^/$as_me: WARNING:     /" >&2
9626     ;;
9627   no:yes )
9628     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
9629 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
9630     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
9631 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
9632     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
9633 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
9634     (
9635       cat <<\_ASBOX
9636 ## ------------------------------------ ##
9637 ## Report this to bug-autoconf@gnu.org. ##
9638 ## ------------------------------------ ##
9639 _ASBOX
9640     ) |
9641       sed "s/^/$as_me: WARNING:     /" >&2
9642     ;;
9643 esac
9644 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
9645 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
9646 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
9647   echo $ECHO_N "(cached) $ECHO_C" >&6
9648 else
9649   ac_cv_header_sys_mkdev_h=$ac_header_preproc
9650 fi
9651 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
9652 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
9653
9654 fi
9655 if test $ac_cv_header_sys_mkdev_h = yes; then
9656
9657 cat >>confdefs.h <<\_ACEOF
9658 #define MAJOR_IN_MKDEV 1
9659 _ACEOF
9660
9661 fi
9662
9663
9664
9665   if test $ac_cv_header_sys_mkdev_h = no; then
9666     if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
9667   echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
9668 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
9669 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
9670   echo $ECHO_N "(cached) $ECHO_C" >&6
9671 fi
9672 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
9673 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
9674 else
9675   # Is the header compilable?
9676 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
9677 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
9678 cat >conftest.$ac_ext <<_ACEOF
9679 #line $LINENO "configure"
9680 /* confdefs.h.  */
9681 _ACEOF
9682 cat confdefs.h >>conftest.$ac_ext
9683 cat >>conftest.$ac_ext <<_ACEOF
9684 /* end confdefs.h.  */
9685 $ac_includes_default
9686 #include <sys/sysmacros.h>
9687 _ACEOF
9688 rm -f conftest.$ac_objext
9689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9690   (eval $ac_compile) 2>&5
9691   ac_status=$?
9692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9693   (exit $ac_status); } &&
9694          { ac_try='test -s conftest.$ac_objext'
9695   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9696   (eval $ac_try) 2>&5
9697   ac_status=$?
9698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9699   (exit $ac_status); }; }; then
9700   ac_header_compiler=yes
9701 else
9702   echo "$as_me: failed program was:" >&5
9703 sed 's/^/| /' conftest.$ac_ext >&5
9704
9705 ac_header_compiler=no
9706 fi
9707 rm -f conftest.$ac_objext conftest.$ac_ext
9708 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9709 echo "${ECHO_T}$ac_header_compiler" >&6
9710
9711 # Is the header present?
9712 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
9713 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
9714 cat >conftest.$ac_ext <<_ACEOF
9715 #line $LINENO "configure"
9716 /* confdefs.h.  */
9717 _ACEOF
9718 cat confdefs.h >>conftest.$ac_ext
9719 cat >>conftest.$ac_ext <<_ACEOF
9720 /* end confdefs.h.  */
9721 #include <sys/sysmacros.h>
9722 _ACEOF
9723 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9724   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9725   ac_status=$?
9726   grep -v '^ *+' conftest.er1 >conftest.err
9727   rm -f conftest.er1
9728   cat conftest.err >&5
9729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9730   (exit $ac_status); } >/dev/null; then
9731   if test -s conftest.err; then
9732     ac_cpp_err=$ac_c_preproc_warn_flag
9733   else
9734     ac_cpp_err=
9735   fi
9736 else
9737   ac_cpp_err=yes
9738 fi
9739 if test -z "$ac_cpp_err"; then
9740   ac_header_preproc=yes
9741 else
9742   echo "$as_me: failed program was:" >&5
9743 sed 's/^/| /' conftest.$ac_ext >&5
9744
9745   ac_header_preproc=no
9746 fi
9747 rm -f conftest.err conftest.$ac_ext
9748 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9749 echo "${ECHO_T}$ac_header_preproc" >&6
9750
9751 # So?  What about this header?
9752 case $ac_header_compiler:$ac_header_preproc in
9753   yes:no )
9754     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
9755 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9756     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
9757 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
9758     (
9759       cat <<\_ASBOX
9760 ## ------------------------------------ ##
9761 ## Report this to bug-autoconf@gnu.org. ##
9762 ## ------------------------------------ ##
9763 _ASBOX
9764     ) |
9765       sed "s/^/$as_me: WARNING:     /" >&2
9766     ;;
9767   no:yes )
9768     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
9769 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
9770     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
9771 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
9772     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
9773 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
9774     (
9775       cat <<\_ASBOX
9776 ## ------------------------------------ ##
9777 ## Report this to bug-autoconf@gnu.org. ##
9778 ## ------------------------------------ ##
9779 _ASBOX
9780     ) |
9781       sed "s/^/$as_me: WARNING:     /" >&2
9782     ;;
9783 esac
9784 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
9785 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
9786 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
9787   echo $ECHO_N "(cached) $ECHO_C" >&6
9788 else
9789   ac_cv_header_sys_sysmacros_h=$ac_header_preproc
9790 fi
9791 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
9792 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
9793
9794 fi
9795 if test $ac_cv_header_sys_sysmacros_h = yes; then
9796
9797 cat >>confdefs.h <<\_ACEOF
9798 #define MAJOR_IN_SYSMACROS 1
9799 _ACEOF
9800
9801 fi
9802
9803
9804   fi
9805 fi
9806
9807
9808
9809
9810
9811
9812 ac_header_dirent=no
9813 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9814   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9815 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9816 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
9817 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9818   echo $ECHO_N "(cached) $ECHO_C" >&6
9819 else
9820   cat >conftest.$ac_ext <<_ACEOF
9821 #line $LINENO "configure"
9822 /* confdefs.h.  */
9823 _ACEOF
9824 cat confdefs.h >>conftest.$ac_ext
9825 cat >>conftest.$ac_ext <<_ACEOF
9826 /* end confdefs.h.  */
9827 #include <sys/types.h>
9828 #include <$ac_hdr>
9829
9830 int
9831 main ()
9832 {
9833 if ((DIR *) 0)
9834 return 0;
9835   ;
9836   return 0;
9837 }
9838 _ACEOF
9839 rm -f conftest.$ac_objext
9840 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9841   (eval $ac_compile) 2>&5
9842   ac_status=$?
9843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9844   (exit $ac_status); } &&
9845          { ac_try='test -s conftest.$ac_objext'
9846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9847   (eval $ac_try) 2>&5
9848   ac_status=$?
9849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9850   (exit $ac_status); }; }; then
9851   eval "$as_ac_Header=yes"
9852 else
9853   echo "$as_me: failed program was:" >&5
9854 sed 's/^/| /' conftest.$ac_ext >&5
9855
9856 eval "$as_ac_Header=no"
9857 fi
9858 rm -f conftest.$ac_objext conftest.$ac_ext
9859 fi
9860 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9861 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9862 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9863   cat >>confdefs.h <<_ACEOF
9864 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9865 _ACEOF
9866
9867 ac_header_dirent=$ac_hdr; break
9868 fi
9869
9870 done
9871 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9872 if test $ac_header_dirent = dirent.h; then
9873   echo "$as_me:$LINENO: checking for library containing opendir" >&5
9874 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9875 if test "${ac_cv_search_opendir+set}" = set; then
9876   echo $ECHO_N "(cached) $ECHO_C" >&6
9877 else
9878   ac_func_search_save_LIBS=$LIBS
9879 ac_cv_search_opendir=no
9880 cat >conftest.$ac_ext <<_ACEOF
9881 #line $LINENO "configure"
9882 /* confdefs.h.  */
9883 _ACEOF
9884 cat confdefs.h >>conftest.$ac_ext
9885 cat >>conftest.$ac_ext <<_ACEOF
9886 /* end confdefs.h.  */
9887
9888 /* Override any gcc2 internal prototype to avoid an error.  */
9889 #ifdef __cplusplus
9890 extern "C"
9891 #endif
9892 /* We use char because int might match the return type of a gcc2
9893    builtin and then its argument prototype would still apply.  */
9894 char opendir ();
9895 int
9896 main ()
9897 {
9898 opendir ();
9899   ;
9900   return 0;
9901 }
9902 _ACEOF
9903 rm -f conftest.$ac_objext conftest$ac_exeext
9904 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9905   (eval $ac_link) 2>&5
9906   ac_status=$?
9907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9908   (exit $ac_status); } &&
9909          { ac_try='test -s conftest$ac_exeext'
9910   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9911   (eval $ac_try) 2>&5
9912   ac_status=$?
9913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9914   (exit $ac_status); }; }; then
9915   ac_cv_search_opendir="none required"
9916 else
9917   echo "$as_me: failed program was:" >&5
9918 sed 's/^/| /' conftest.$ac_ext >&5
9919
9920 fi
9921 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9922 if test "$ac_cv_search_opendir" = no; then
9923   for ac_lib in dir; do
9924     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9925     cat >conftest.$ac_ext <<_ACEOF
9926 #line $LINENO "configure"
9927 /* confdefs.h.  */
9928 _ACEOF
9929 cat confdefs.h >>conftest.$ac_ext
9930 cat >>conftest.$ac_ext <<_ACEOF
9931 /* end confdefs.h.  */
9932
9933 /* Override any gcc2 internal prototype to avoid an error.  */
9934 #ifdef __cplusplus
9935 extern "C"
9936 #endif
9937 /* We use char because int might match the return type of a gcc2
9938    builtin and then its argument prototype would still apply.  */
9939 char opendir ();
9940 int
9941 main ()
9942 {
9943 opendir ();
9944   ;
9945   return 0;
9946 }
9947 _ACEOF
9948 rm -f conftest.$ac_objext conftest$ac_exeext
9949 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9950   (eval $ac_link) 2>&5
9951   ac_status=$?
9952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9953   (exit $ac_status); } &&
9954          { ac_try='test -s conftest$ac_exeext'
9955   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9956   (eval $ac_try) 2>&5
9957   ac_status=$?
9958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9959   (exit $ac_status); }; }; then
9960   ac_cv_search_opendir="-l$ac_lib"
9961 break
9962 else
9963   echo "$as_me: failed program was:" >&5
9964 sed 's/^/| /' conftest.$ac_ext >&5
9965
9966 fi
9967 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9968   done
9969 fi
9970 LIBS=$ac_func_search_save_LIBS
9971 fi
9972 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9973 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9974 if test "$ac_cv_search_opendir" != no; then
9975   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9976
9977 fi
9978
9979 else
9980   echo "$as_me:$LINENO: checking for library containing opendir" >&5
9981 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9982 if test "${ac_cv_search_opendir+set}" = set; then
9983   echo $ECHO_N "(cached) $ECHO_C" >&6
9984 else
9985   ac_func_search_save_LIBS=$LIBS
9986 ac_cv_search_opendir=no
9987 cat >conftest.$ac_ext <<_ACEOF
9988 #line $LINENO "configure"
9989 /* confdefs.h.  */
9990 _ACEOF
9991 cat confdefs.h >>conftest.$ac_ext
9992 cat >>conftest.$ac_ext <<_ACEOF
9993 /* end confdefs.h.  */
9994
9995 /* Override any gcc2 internal prototype to avoid an error.  */
9996 #ifdef __cplusplus
9997 extern "C"
9998 #endif
9999 /* We use char because int might match the return type of a gcc2
10000    builtin and then its argument prototype would still apply.  */
10001 char opendir ();
10002 int
10003 main ()
10004 {
10005 opendir ();
10006   ;
10007   return 0;
10008 }
10009 _ACEOF
10010 rm -f conftest.$ac_objext conftest$ac_exeext
10011 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10012   (eval $ac_link) 2>&5
10013   ac_status=$?
10014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10015   (exit $ac_status); } &&
10016          { ac_try='test -s conftest$ac_exeext'
10017   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10018   (eval $ac_try) 2>&5
10019   ac_status=$?
10020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10021   (exit $ac_status); }; }; then
10022   ac_cv_search_opendir="none required"
10023 else
10024   echo "$as_me: failed program was:" >&5
10025 sed 's/^/| /' conftest.$ac_ext >&5
10026
10027 fi
10028 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10029 if test "$ac_cv_search_opendir" = no; then
10030   for ac_lib in x; do
10031     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10032     cat >conftest.$ac_ext <<_ACEOF
10033 #line $LINENO "configure"
10034 /* confdefs.h.  */
10035 _ACEOF
10036 cat confdefs.h >>conftest.$ac_ext
10037 cat >>conftest.$ac_ext <<_ACEOF
10038 /* end confdefs.h.  */
10039
10040 /* Override any gcc2 internal prototype to avoid an error.  */
10041 #ifdef __cplusplus
10042 extern "C"
10043 #endif
10044 /* We use char because int might match the return type of a gcc2
10045    builtin and then its argument prototype would still apply.  */
10046 char opendir ();
10047 int
10048 main ()
10049 {
10050 opendir ();
10051   ;
10052   return 0;
10053 }
10054 _ACEOF
10055 rm -f conftest.$ac_objext conftest$ac_exeext
10056 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10057   (eval $ac_link) 2>&5
10058   ac_status=$?
10059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10060   (exit $ac_status); } &&
10061          { ac_try='test -s conftest$ac_exeext'
10062   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10063   (eval $ac_try) 2>&5
10064   ac_status=$?
10065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10066   (exit $ac_status); }; }; then
10067   ac_cv_search_opendir="-l$ac_lib"
10068 break
10069 else
10070   echo "$as_me: failed program was:" >&5
10071 sed 's/^/| /' conftest.$ac_ext >&5
10072
10073 fi
10074 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10075   done
10076 fi
10077 LIBS=$ac_func_search_save_LIBS
10078 fi
10079 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10080 echo "${ECHO_T}$ac_cv_search_opendir" >&6
10081 if test "$ac_cv_search_opendir" != no; then
10082   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
10083
10084 fi
10085
10086 fi
10087
10088 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
10089 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
10090 if test "${ac_cv_header_stat_broken+set}" = set; then
10091   echo $ECHO_N "(cached) $ECHO_C" >&6
10092 else
10093   cat >conftest.$ac_ext <<_ACEOF
10094 #line $LINENO "configure"
10095 /* confdefs.h.  */
10096 _ACEOF
10097 cat confdefs.h >>conftest.$ac_ext
10098 cat >>conftest.$ac_ext <<_ACEOF
10099 /* end confdefs.h.  */
10100 #include <sys/types.h>
10101 #include <sys/stat.h>
10102
10103 #if defined(S_ISBLK) && defined(S_IFDIR)
10104 # if S_ISBLK (S_IFDIR)
10105 You lose.
10106 # endif
10107 #endif
10108
10109 #if defined(S_ISBLK) && defined(S_IFCHR)
10110 # if S_ISBLK (S_IFCHR)
10111 You lose.
10112 # endif
10113 #endif
10114
10115 #if defined(S_ISLNK) && defined(S_IFREG)
10116 # if S_ISLNK (S_IFREG)
10117 You lose.
10118 # endif
10119 #endif
10120
10121 #if defined(S_ISSOCK) && defined(S_IFREG)
10122 # if S_ISSOCK (S_IFREG)
10123 You lose.
10124 # endif
10125 #endif
10126
10127 _ACEOF
10128 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10129   $EGREP "You lose" >/dev/null 2>&1; then
10130   ac_cv_header_stat_broken=yes
10131 else
10132   ac_cv_header_stat_broken=no
10133 fi
10134 rm -f conftest*
10135
10136 fi
10137 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
10138 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
10139 if test $ac_cv_header_stat_broken = yes; then
10140
10141 cat >>confdefs.h <<\_ACEOF
10142 #define STAT_MACROS_BROKEN 1
10143 _ACEOF
10144
10145 fi
10146
10147 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
10148 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
10149 if test "${ac_cv_header_sys_wait_h+set}" = set; then
10150   echo $ECHO_N "(cached) $ECHO_C" >&6
10151 else
10152   cat >conftest.$ac_ext <<_ACEOF
10153 #line $LINENO "configure"
10154 /* confdefs.h.  */
10155 _ACEOF
10156 cat confdefs.h >>conftest.$ac_ext
10157 cat >>conftest.$ac_ext <<_ACEOF
10158 /* end confdefs.h.  */
10159 #include <sys/types.h>
10160 #include <sys/wait.h>
10161 #ifndef WEXITSTATUS
10162 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
10163 #endif
10164 #ifndef WIFEXITED
10165 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
10166 #endif
10167
10168 int
10169 main ()
10170 {
10171   int s;
10172   wait (&s);
10173   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
10174   ;
10175   return 0;
10176 }
10177 _ACEOF
10178 rm -f conftest.$ac_objext
10179 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10180   (eval $ac_compile) 2>&5
10181   ac_status=$?
10182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10183   (exit $ac_status); } &&
10184          { ac_try='test -s conftest.$ac_objext'
10185   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10186   (eval $ac_try) 2>&5
10187   ac_status=$?
10188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10189   (exit $ac_status); }; }; then
10190   ac_cv_header_sys_wait_h=yes
10191 else
10192   echo "$as_me: failed program was:" >&5
10193 sed 's/^/| /' conftest.$ac_ext >&5
10194
10195 ac_cv_header_sys_wait_h=no
10196 fi
10197 rm -f conftest.$ac_objext conftest.$ac_ext
10198 fi
10199 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
10200 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
10201 if test $ac_cv_header_sys_wait_h = yes; then
10202
10203 cat >>confdefs.h <<\_ACEOF
10204 #define HAVE_SYS_WAIT_H 1
10205 _ACEOF
10206
10207 fi
10208
10209 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
10210 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
10211 if test "${ac_cv_header_time+set}" = set; then
10212   echo $ECHO_N "(cached) $ECHO_C" >&6
10213 else
10214   cat >conftest.$ac_ext <<_ACEOF
10215 #line $LINENO "configure"
10216 /* confdefs.h.  */
10217 _ACEOF
10218 cat confdefs.h >>conftest.$ac_ext
10219 cat >>conftest.$ac_ext <<_ACEOF
10220 /* end confdefs.h.  */
10221 #include <sys/types.h>
10222 #include <sys/time.h>
10223 #include <time.h>
10224
10225 int
10226 main ()
10227 {
10228 if ((struct tm *) 0)
10229 return 0;
10230   ;
10231   return 0;
10232 }
10233 _ACEOF
10234 rm -f conftest.$ac_objext
10235 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10236   (eval $ac_compile) 2>&5
10237   ac_status=$?
10238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10239   (exit $ac_status); } &&
10240          { ac_try='test -s conftest.$ac_objext'
10241   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10242   (eval $ac_try) 2>&5
10243   ac_status=$?
10244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10245   (exit $ac_status); }; }; then
10246   ac_cv_header_time=yes
10247 else
10248   echo "$as_me: failed program was:" >&5
10249 sed 's/^/| /' conftest.$ac_ext >&5
10250
10251 ac_cv_header_time=no
10252 fi
10253 rm -f conftest.$ac_objext conftest.$ac_ext
10254 fi
10255 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
10256 echo "${ECHO_T}$ac_cv_header_time" >&6
10257 if test $ac_cv_header_time = yes; then
10258
10259 cat >>confdefs.h <<\_ACEOF
10260 #define TIME_WITH_SYS_TIME 1
10261 _ACEOF
10262
10263 fi
10264
10265
10266 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
10267 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
10268 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
10269   echo $ECHO_N "(cached) $ECHO_C" >&6
10270 else
10271   cat >conftest.$ac_ext <<_ACEOF
10272 #line $LINENO "configure"
10273 /* confdefs.h.  */
10274 _ACEOF
10275 cat confdefs.h >>conftest.$ac_ext
10276 cat >>conftest.$ac_ext <<_ACEOF
10277 /* end confdefs.h.  */
10278 $ac_includes_default
10279 int
10280 main ()
10281 {
10282 static struct stat ac_aggr;
10283 if (ac_aggr.st_blksize)
10284 return 0;
10285   ;
10286   return 0;
10287 }
10288 _ACEOF
10289 rm -f conftest.$ac_objext
10290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10291   (eval $ac_compile) 2>&5
10292   ac_status=$?
10293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10294   (exit $ac_status); } &&
10295          { ac_try='test -s conftest.$ac_objext'
10296   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10297   (eval $ac_try) 2>&5
10298   ac_status=$?
10299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10300   (exit $ac_status); }; }; then
10301   ac_cv_member_struct_stat_st_blksize=yes
10302 else
10303   echo "$as_me: failed program was:" >&5
10304 sed 's/^/| /' conftest.$ac_ext >&5
10305
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 (sizeof 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 ac_cv_member_struct_stat_st_blksize=no
10342 fi
10343 rm -f conftest.$ac_objext conftest.$ac_ext
10344 fi
10345 rm -f conftest.$ac_objext conftest.$ac_ext
10346 fi
10347 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
10348 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
10349 if test $ac_cv_member_struct_stat_st_blksize = yes; then
10350
10351 cat >>confdefs.h <<_ACEOF
10352 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
10353 _ACEOF
10354
10355
10356 cat >>confdefs.h <<\_ACEOF
10357 #define HAVE_ST_BLKSIZE 1
10358 _ACEOF
10359
10360 fi
10361
10362
10363 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
10364 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
10365 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
10366   echo $ECHO_N "(cached) $ECHO_C" >&6
10367 else
10368   cat >conftest.$ac_ext <<_ACEOF
10369 #line $LINENO "configure"
10370 /* confdefs.h.  */
10371 _ACEOF
10372 cat confdefs.h >>conftest.$ac_ext
10373 cat >>conftest.$ac_ext <<_ACEOF
10374 /* end confdefs.h.  */
10375 $ac_includes_default
10376 int
10377 main ()
10378 {
10379 static struct stat ac_aggr;
10380 if (ac_aggr.st_blocks)
10381 return 0;
10382   ;
10383   return 0;
10384 }
10385 _ACEOF
10386 rm -f conftest.$ac_objext
10387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10388   (eval $ac_compile) 2>&5
10389   ac_status=$?
10390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10391   (exit $ac_status); } &&
10392          { ac_try='test -s conftest.$ac_objext'
10393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10394   (eval $ac_try) 2>&5
10395   ac_status=$?
10396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10397   (exit $ac_status); }; }; then
10398   ac_cv_member_struct_stat_st_blocks=yes
10399 else
10400   echo "$as_me: failed program was:" >&5
10401 sed 's/^/| /' conftest.$ac_ext >&5
10402
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 (sizeof 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 ac_cv_member_struct_stat_st_blocks=no
10439 fi
10440 rm -f conftest.$ac_objext conftest.$ac_ext
10441 fi
10442 rm -f conftest.$ac_objext conftest.$ac_ext
10443 fi
10444 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
10445 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
10446 if test $ac_cv_member_struct_stat_st_blocks = yes; then
10447
10448 cat >>confdefs.h <<_ACEOF
10449 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
10450 _ACEOF
10451
10452
10453 cat >>confdefs.h <<\_ACEOF
10454 #define HAVE_ST_BLOCKS 1
10455 _ACEOF
10456
10457 else
10458   LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
10459 fi
10460
10461
10462 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
10463 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
10464 if test "${ac_cv_struct_tm+set}" = set; then
10465   echo $ECHO_N "(cached) $ECHO_C" >&6
10466 else
10467   cat >conftest.$ac_ext <<_ACEOF
10468 #line $LINENO "configure"
10469 /* confdefs.h.  */
10470 _ACEOF
10471 cat confdefs.h >>conftest.$ac_ext
10472 cat >>conftest.$ac_ext <<_ACEOF
10473 /* end confdefs.h.  */
10474 #include <sys/types.h>
10475 #include <time.h>
10476
10477 int
10478 main ()
10479 {
10480 struct tm *tp; tp->tm_sec;
10481   ;
10482   return 0;
10483 }
10484 _ACEOF
10485 rm -f conftest.$ac_objext
10486 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10487   (eval $ac_compile) 2>&5
10488   ac_status=$?
10489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10490   (exit $ac_status); } &&
10491          { ac_try='test -s conftest.$ac_objext'
10492   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10493   (eval $ac_try) 2>&5
10494   ac_status=$?
10495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10496   (exit $ac_status); }; }; then
10497   ac_cv_struct_tm=time.h
10498 else
10499   echo "$as_me: failed program was:" >&5
10500 sed 's/^/| /' conftest.$ac_ext >&5
10501
10502 ac_cv_struct_tm=sys/time.h
10503 fi
10504 rm -f conftest.$ac_objext conftest.$ac_ext
10505 fi
10506 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
10507 echo "${ECHO_T}$ac_cv_struct_tm" >&6
10508 if test $ac_cv_struct_tm = sys/time.h; then
10509
10510 cat >>confdefs.h <<\_ACEOF
10511 #define TM_IN_SYS_TIME 1
10512 _ACEOF
10513
10514 fi
10515
10516 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
10517 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
10518 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
10519   echo $ECHO_N "(cached) $ECHO_C" >&6
10520 else
10521   cat >conftest.$ac_ext <<_ACEOF
10522 #line $LINENO "configure"
10523 /* confdefs.h.  */
10524 _ACEOF
10525 cat confdefs.h >>conftest.$ac_ext
10526 cat >>conftest.$ac_ext <<_ACEOF
10527 /* end confdefs.h.  */
10528 #include <sys/types.h>
10529 #include <$ac_cv_struct_tm>
10530
10531
10532 int
10533 main ()
10534 {
10535 static struct tm ac_aggr;
10536 if (ac_aggr.tm_zone)
10537 return 0;
10538   ;
10539   return 0;
10540 }
10541 _ACEOF
10542 rm -f conftest.$ac_objext
10543 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10544   (eval $ac_compile) 2>&5
10545   ac_status=$?
10546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10547   (exit $ac_status); } &&
10548          { ac_try='test -s conftest.$ac_objext'
10549   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10550   (eval $ac_try) 2>&5
10551   ac_status=$?
10552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10553   (exit $ac_status); }; }; then
10554   ac_cv_member_struct_tm_tm_zone=yes
10555 else
10556   echo "$as_me: failed program was:" >&5
10557 sed 's/^/| /' conftest.$ac_ext >&5
10558
10559 cat >conftest.$ac_ext <<_ACEOF
10560 #line $LINENO "configure"
10561 /* confdefs.h.  */
10562 _ACEOF
10563 cat confdefs.h >>conftest.$ac_ext
10564 cat >>conftest.$ac_ext <<_ACEOF
10565 /* end confdefs.h.  */
10566 #include <sys/types.h>
10567 #include <$ac_cv_struct_tm>
10568
10569
10570 int
10571 main ()
10572 {
10573 static struct tm ac_aggr;
10574 if (sizeof ac_aggr.tm_zone)
10575 return 0;
10576   ;
10577   return 0;
10578 }
10579 _ACEOF
10580 rm -f conftest.$ac_objext
10581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10582   (eval $ac_compile) 2>&5
10583   ac_status=$?
10584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10585   (exit $ac_status); } &&
10586          { ac_try='test -s conftest.$ac_objext'
10587   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10588   (eval $ac_try) 2>&5
10589   ac_status=$?
10590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10591   (exit $ac_status); }; }; then
10592   ac_cv_member_struct_tm_tm_zone=yes
10593 else
10594   echo "$as_me: failed program was:" >&5
10595 sed 's/^/| /' conftest.$ac_ext >&5
10596
10597 ac_cv_member_struct_tm_tm_zone=no
10598 fi
10599 rm -f conftest.$ac_objext conftest.$ac_ext
10600 fi
10601 rm -f conftest.$ac_objext conftest.$ac_ext
10602 fi
10603 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
10604 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
10605 if test $ac_cv_member_struct_tm_tm_zone = yes; then
10606
10607 cat >>confdefs.h <<_ACEOF
10608 #define HAVE_STRUCT_TM_TM_ZONE 1
10609 _ACEOF
10610
10611
10612 fi
10613
10614 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
10615
10616 cat >>confdefs.h <<\_ACEOF
10617 #define HAVE_TM_ZONE 1
10618 _ACEOF
10619
10620 else
10621   echo "$as_me:$LINENO: checking for tzname" >&5
10622 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
10623 if test "${ac_cv_var_tzname+set}" = set; then
10624   echo $ECHO_N "(cached) $ECHO_C" >&6
10625 else
10626   cat >conftest.$ac_ext <<_ACEOF
10627 #line $LINENO "configure"
10628 /* confdefs.h.  */
10629 _ACEOF
10630 cat confdefs.h >>conftest.$ac_ext
10631 cat >>conftest.$ac_ext <<_ACEOF
10632 /* end confdefs.h.  */
10633 #include <time.h>
10634 #ifndef tzname /* For SGI.  */
10635 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
10636 #endif
10637
10638 int
10639 main ()
10640 {
10641 atoi(*tzname);
10642   ;
10643   return 0;
10644 }
10645 _ACEOF
10646 rm -f conftest.$ac_objext conftest$ac_exeext
10647 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10648   (eval $ac_link) 2>&5
10649   ac_status=$?
10650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10651   (exit $ac_status); } &&
10652          { ac_try='test -s conftest$ac_exeext'
10653   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10654   (eval $ac_try) 2>&5
10655   ac_status=$?
10656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10657   (exit $ac_status); }; }; then
10658   ac_cv_var_tzname=yes
10659 else
10660   echo "$as_me: failed program was:" >&5
10661 sed 's/^/| /' conftest.$ac_ext >&5
10662
10663 ac_cv_var_tzname=no
10664 fi
10665 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10666 fi
10667 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
10668 echo "${ECHO_T}$ac_cv_var_tzname" >&6
10669   if test $ac_cv_var_tzname = yes; then
10670
10671 cat >>confdefs.h <<\_ACEOF
10672 #define HAVE_TZNAME 1
10673 _ACEOF
10674
10675   fi
10676 fi
10677
10678
10679 echo "$as_me:$LINENO: checking for utime.h" >&5
10680 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6
10681 if test "${ba_cv_header_utime_h+set}" = set; then
10682   echo $ECHO_N "(cached) $ECHO_C" >&6
10683 else
10684   cat >conftest.$ac_ext <<_ACEOF
10685 #line $LINENO "configure"
10686 /* confdefs.h.  */
10687 _ACEOF
10688 cat confdefs.h >>conftest.$ac_ext
10689 cat >>conftest.$ac_ext <<_ACEOF
10690 /* end confdefs.h.  */
10691
10692 #include <sys/types.h>
10693 #include <utime.h>
10694 int
10695 main ()
10696 {
10697 struct utimbuf foo
10698   ;
10699   return 0;
10700 }
10701 _ACEOF
10702 rm -f conftest.$ac_objext
10703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10704   (eval $ac_compile) 2>&5
10705   ac_status=$?
10706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10707   (exit $ac_status); } &&
10708          { ac_try='test -s conftest.$ac_objext'
10709   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10710   (eval $ac_try) 2>&5
10711   ac_status=$?
10712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10713   (exit $ac_status); }; }; then
10714   ba_cv_header_utime_h=yes
10715 else
10716   echo "$as_me: failed program was:" >&5
10717 sed 's/^/| /' conftest.$ac_ext >&5
10718
10719 ba_cv_header_utime_h=no
10720 fi
10721 rm -f conftest.$ac_objext conftest.$ac_ext
10722 fi
10723 echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
10724 echo "${ECHO_T}$ba_cv_header_utime_h" >&6
10725 test $ba_cv_header_utime_h = yes && cat >>confdefs.h <<\_ACEOF
10726 #define HAVE_UTIME_H 1
10727 _ACEOF
10728
10729
10730 echo "$as_me:$LINENO: checking for socklen_t" >&5
10731 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
10732 if test "${ba_cv_header_socklen_t+set}" = set; then
10733   echo $ECHO_N "(cached) $ECHO_C" >&6
10734 else
10735   cat >conftest.$ac_ext <<_ACEOF
10736 #line $LINENO "configure"
10737 /* confdefs.h.  */
10738 _ACEOF
10739 cat confdefs.h >>conftest.$ac_ext
10740 cat >>conftest.$ac_ext <<_ACEOF
10741 /* end confdefs.h.  */
10742
10743 #include <sys/types.h>
10744 #include <sys/socket.h>
10745 int
10746 main ()
10747 {
10748 socklen_t x
10749   ;
10750   return 0;
10751 }
10752 _ACEOF
10753 rm -f conftest.$ac_objext
10754 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10755   (eval $ac_compile) 2>&5
10756   ac_status=$?
10757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10758   (exit $ac_status); } &&
10759          { ac_try='test -s conftest.$ac_objext'
10760   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10761   (eval $ac_try) 2>&5
10762   ac_status=$?
10763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10764   (exit $ac_status); }; }; then
10765   ba_cv_header_socklen_t=yes
10766 else
10767   echo "$as_me: failed program was:" >&5
10768 sed 's/^/| /' conftest.$ac_ext >&5
10769
10770 ba_cv_header_socklen_t=no
10771 fi
10772 rm -f conftest.$ac_objext conftest.$ac_ext
10773 fi
10774 echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
10775 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6
10776 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
10777 #define HAVE_SOCKLEN_T 1
10778 _ACEOF
10779
10780
10781 echo "$as_me:$LINENO: checking for bigendian" >&5
10782 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6
10783 if test "${ba_cv_bigendian+set}" = set; then
10784   echo $ECHO_N "(cached) $ECHO_C" >&6
10785 else
10786   if test "$cross_compiling" = yes; then
10787   ba_cv_bigendian=no
10788 else
10789   cat >conftest.$ac_ext <<_ACEOF
10790 #line $LINENO "configure"
10791 /* confdefs.h.  */
10792 _ACEOF
10793 cat confdefs.h >>conftest.$ac_ext
10794 cat >>conftest.$ac_ext <<_ACEOF
10795 /* end confdefs.h.  */
10796 main(){long a=1L; char *p=(char *)&a; exit(*p);}
10797 _ACEOF
10798 rm -f conftest$ac_exeext
10799 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10800   (eval $ac_link) 2>&5
10801   ac_status=$?
10802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10803   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10805   (eval $ac_try) 2>&5
10806   ac_status=$?
10807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10808   (exit $ac_status); }; }; then
10809   ba_cv_bigendian=yes
10810 else
10811   echo "$as_me: program exited with status $ac_status" >&5
10812 echo "$as_me: failed program was:" >&5
10813 sed 's/^/| /' conftest.$ac_ext >&5
10814
10815 ( exit $ac_status )
10816 ba_cv_bigendian=no
10817 fi
10818 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10819 fi
10820 fi
10821 echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
10822 echo "${ECHO_T}$ba_cv_bigendian" >&6
10823 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
10824 #define HAVE_BIGENDIAN 1
10825 _ACEOF
10826
10827
10828
10829 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
10830 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
10831 if test "${ac_cv_c_const+set}" = set; then
10832   echo $ECHO_N "(cached) $ECHO_C" >&6
10833 else
10834   cat >conftest.$ac_ext <<_ACEOF
10835 #line $LINENO "configure"
10836 /* confdefs.h.  */
10837 _ACEOF
10838 cat confdefs.h >>conftest.$ac_ext
10839 cat >>conftest.$ac_ext <<_ACEOF
10840 /* end confdefs.h.  */
10841
10842 int
10843 main ()
10844 {
10845 /* FIXME: Include the comments suggested by Paul. */
10846 #ifndef __cplusplus
10847   /* Ultrix mips cc rejects this.  */
10848   typedef int charset[2];
10849   const charset x;
10850   /* SunOS 4.1.1 cc rejects this.  */
10851   char const *const *ccp;
10852   char **p;
10853   /* NEC SVR4.0.2 mips cc rejects this.  */
10854   struct point {int x, y;};
10855   static struct point const zero = {0,0};
10856   /* AIX XL C 1.02.0.0 rejects this.
10857      It does not let you subtract one const X* pointer from another in
10858      an arm of an if-expression whose if-part is not a constant
10859      expression */
10860   const char *g = "string";
10861   ccp = &g + (g ? g-g : 0);
10862   /* HPUX 7.0 cc rejects these. */
10863   ++ccp;
10864   p = (char**) ccp;
10865   ccp = (char const *const *) p;
10866   { /* SCO 3.2v4 cc rejects this.  */
10867     char *t;
10868     char const *s = 0 ? (char *) 0 : (char const *) 0;
10869
10870     *t++ = 0;
10871   }
10872   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
10873     int x[] = {25, 17};
10874     const int *foo = &x[0];
10875     ++foo;
10876   }
10877   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10878     typedef const int *iptr;
10879     iptr p = 0;
10880     ++p;
10881   }
10882   { /* AIX XL C 1.02.0.0 rejects this saying
10883        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10884     struct s { int j; const int *ap[3]; };
10885     struct s *b; b->j = 5;
10886   }
10887   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10888     const int foo = 10;
10889   }
10890 #endif
10891
10892   ;
10893   return 0;
10894 }
10895 _ACEOF
10896 rm -f conftest.$ac_objext
10897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10898   (eval $ac_compile) 2>&5
10899   ac_status=$?
10900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10901   (exit $ac_status); } &&
10902          { ac_try='test -s conftest.$ac_objext'
10903   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10904   (eval $ac_try) 2>&5
10905   ac_status=$?
10906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10907   (exit $ac_status); }; }; then
10908   ac_cv_c_const=yes
10909 else
10910   echo "$as_me: failed program was:" >&5
10911 sed 's/^/| /' conftest.$ac_ext >&5
10912
10913 ac_cv_c_const=no
10914 fi
10915 rm -f conftest.$ac_objext conftest.$ac_ext
10916 fi
10917 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
10918 echo "${ECHO_T}$ac_cv_c_const" >&6
10919 if test $ac_cv_c_const = no; then
10920
10921 cat >>confdefs.h <<\_ACEOF
10922 #define const
10923 _ACEOF
10924
10925 fi
10926
10927
10928
10929 echo "$as_me:$LINENO: checking how to get filesystem type" >&5
10930 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6
10931 fstype=no
10932 # The order of these tests is important.
10933 cat >conftest.$ac_ext <<_ACEOF
10934 #line $LINENO "configure"
10935 /* confdefs.h.  */
10936 _ACEOF
10937 cat confdefs.h >>conftest.$ac_ext
10938 cat >>conftest.$ac_ext <<_ACEOF
10939 /* end confdefs.h.  */
10940 #include <sys/statvfs.h>
10941 #include <sys/fstyp.h>
10942 _ACEOF
10943 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10944   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10945   ac_status=$?
10946   grep -v '^ *+' conftest.er1 >conftest.err
10947   rm -f conftest.er1
10948   cat conftest.err >&5
10949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10950   (exit $ac_status); } >/dev/null; then
10951   if test -s conftest.err; then
10952     ac_cpp_err=$ac_c_preproc_warn_flag
10953   else
10954     ac_cpp_err=
10955   fi
10956 else
10957   ac_cpp_err=yes
10958 fi
10959 if test -z "$ac_cpp_err"; then
10960   cat >>confdefs.h <<\_ACEOF
10961 #define FSTYPE_STATVFS 1
10962 _ACEOF
10963  fstype=SVR4
10964 else
10965   echo "$as_me: failed program was:" >&5
10966 sed 's/^/| /' conftest.$ac_ext >&5
10967
10968
10969 fi
10970 rm -f conftest.err conftest.$ac_ext
10971 if test $fstype = no; then
10972 cat >conftest.$ac_ext <<_ACEOF
10973 #line $LINENO "configure"
10974 /* confdefs.h.  */
10975 _ACEOF
10976 cat confdefs.h >>conftest.$ac_ext
10977 cat >>conftest.$ac_ext <<_ACEOF
10978 /* end confdefs.h.  */
10979 #include <sys/statfs.h>
10980 #include <sys/fstyp.h>
10981 _ACEOF
10982 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10983   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10984   ac_status=$?
10985   grep -v '^ *+' conftest.er1 >conftest.err
10986   rm -f conftest.er1
10987   cat conftest.err >&5
10988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10989   (exit $ac_status); } >/dev/null; then
10990   if test -s conftest.err; then
10991     ac_cpp_err=$ac_c_preproc_warn_flag
10992   else
10993     ac_cpp_err=
10994   fi
10995 else
10996   ac_cpp_err=yes
10997 fi
10998 if test -z "$ac_cpp_err"; then
10999   cat >>confdefs.h <<\_ACEOF
11000 #define FSTYPE_USG_STATFS 1
11001 _ACEOF
11002  fstype=SVR3
11003 else
11004   echo "$as_me: failed program was:" >&5
11005 sed 's/^/| /' conftest.$ac_ext >&5
11006
11007
11008 fi
11009 rm -f conftest.err conftest.$ac_ext
11010 fi
11011 if test $fstype = no; then
11012 cat >conftest.$ac_ext <<_ACEOF
11013 #line $LINENO "configure"
11014 /* confdefs.h.  */
11015 _ACEOF
11016 cat confdefs.h >>conftest.$ac_ext
11017 cat >>conftest.$ac_ext <<_ACEOF
11018 /* end confdefs.h.  */
11019 #include <sys/statfs.h>
11020 #include <sys/vmount.h>
11021 _ACEOF
11022 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11023   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11024   ac_status=$?
11025   grep -v '^ *+' conftest.er1 >conftest.err
11026   rm -f conftest.er1
11027   cat conftest.err >&5
11028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11029   (exit $ac_status); } >/dev/null; then
11030   if test -s conftest.err; then
11031     ac_cpp_err=$ac_c_preproc_warn_flag
11032   else
11033     ac_cpp_err=
11034   fi
11035 else
11036   ac_cpp_err=yes
11037 fi
11038 if test -z "$ac_cpp_err"; then
11039   cat >>confdefs.h <<\_ACEOF
11040 #define FSTYPE_AIX_STATFS 1
11041 _ACEOF
11042  fstype=AIX
11043 else
11044   echo "$as_me: failed program was:" >&5
11045 sed 's/^/| /' conftest.$ac_ext >&5
11046
11047
11048 fi
11049 rm -f conftest.err conftest.$ac_ext
11050 fi
11051 if test $fstype = no; then
11052 cat >conftest.$ac_ext <<_ACEOF
11053 #line $LINENO "configure"
11054 /* confdefs.h.  */
11055 _ACEOF
11056 cat confdefs.h >>conftest.$ac_ext
11057 cat >>conftest.$ac_ext <<_ACEOF
11058 /* end confdefs.h.  */
11059 #include <mntent.h>
11060 _ACEOF
11061 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11062   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11063   ac_status=$?
11064   grep -v '^ *+' conftest.er1 >conftest.err
11065   rm -f conftest.er1
11066   cat conftest.err >&5
11067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11068   (exit $ac_status); } >/dev/null; then
11069   if test -s conftest.err; then
11070     ac_cpp_err=$ac_c_preproc_warn_flag
11071   else
11072     ac_cpp_err=
11073   fi
11074 else
11075   ac_cpp_err=yes
11076 fi
11077 if test -z "$ac_cpp_err"; then
11078   cat >>confdefs.h <<\_ACEOF
11079 #define FSTYPE_MNTENT 1
11080 _ACEOF
11081  fstype=4.3BSD
11082 else
11083   echo "$as_me: failed program was:" >&5
11084 sed 's/^/| /' conftest.$ac_ext >&5
11085
11086
11087 fi
11088 rm -f conftest.err conftest.$ac_ext
11089 fi
11090 if test $fstype = no; then
11091 cat >conftest.$ac_ext <<_ACEOF
11092 #line $LINENO "configure"
11093 /* confdefs.h.  */
11094 _ACEOF
11095 cat confdefs.h >>conftest.$ac_ext
11096 cat >>conftest.$ac_ext <<_ACEOF
11097 /* end confdefs.h.  */
11098 #include <sys/mount.h>
11099
11100 _ACEOF
11101 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11102   $EGREP "f_type;" >/dev/null 2>&1; then
11103   cat >>confdefs.h <<\_ACEOF
11104 #define FSTYPE_STATFS 1
11105 _ACEOF
11106  fstype=4.4BSD/OSF1
11107 fi
11108 rm -f conftest*
11109
11110 fi
11111 if test $fstype = no; then
11112 cat >conftest.$ac_ext <<_ACEOF
11113 #line $LINENO "configure"
11114 /* confdefs.h.  */
11115 _ACEOF
11116 cat confdefs.h >>conftest.$ac_ext
11117 cat >>conftest.$ac_ext <<_ACEOF
11118 /* end confdefs.h.  */
11119 #include <sys/mount.h>
11120 #include <sys/fs_types.h>
11121 _ACEOF
11122 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11123   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11124   ac_status=$?
11125   grep -v '^ *+' conftest.er1 >conftest.err
11126   rm -f conftest.er1
11127   cat conftest.err >&5
11128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11129   (exit $ac_status); } >/dev/null; then
11130   if test -s conftest.err; then
11131     ac_cpp_err=$ac_c_preproc_warn_flag
11132   else
11133     ac_cpp_err=
11134   fi
11135 else
11136   ac_cpp_err=yes
11137 fi
11138 if test -z "$ac_cpp_err"; then
11139   cat >>confdefs.h <<\_ACEOF
11140 #define FSTYPE_GETMNT 1
11141 _ACEOF
11142  fstype=Ultrix
11143 else
11144   echo "$as_me: failed program was:" >&5
11145 sed 's/^/| /' conftest.$ac_ext >&5
11146
11147
11148 fi
11149 rm -f conftest.err conftest.$ac_ext
11150 fi
11151 echo "$as_me:$LINENO: result: $fstype" >&5
11152 echo "${ECHO_T}$fstype" >&6
11153
11154 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
11155 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
11156 if test "${ac_cv_type_signal+set}" = set; then
11157   echo $ECHO_N "(cached) $ECHO_C" >&6
11158 else
11159   cat >conftest.$ac_ext <<_ACEOF
11160 #line $LINENO "configure"
11161 /* confdefs.h.  */
11162 _ACEOF
11163 cat confdefs.h >>conftest.$ac_ext
11164 cat >>conftest.$ac_ext <<_ACEOF
11165 /* end confdefs.h.  */
11166 #include <sys/types.h>
11167 #include <signal.h>
11168 #ifdef signal
11169 # undef signal
11170 #endif
11171 #ifdef __cplusplus
11172 extern "C" void (*signal (int, void (*)(int)))(int);
11173 #else
11174 void (*signal ()) ();
11175 #endif
11176
11177 int
11178 main ()
11179 {
11180 int i;
11181   ;
11182   return 0;
11183 }
11184 _ACEOF
11185 rm -f conftest.$ac_objext
11186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11187   (eval $ac_compile) 2>&5
11188   ac_status=$?
11189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11190   (exit $ac_status); } &&
11191          { ac_try='test -s conftest.$ac_objext'
11192   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11193   (eval $ac_try) 2>&5
11194   ac_status=$?
11195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11196   (exit $ac_status); }; }; then
11197   ac_cv_type_signal=void
11198 else
11199   echo "$as_me: failed program was:" >&5
11200 sed 's/^/| /' conftest.$ac_ext >&5
11201
11202 ac_cv_type_signal=int
11203 fi
11204 rm -f conftest.$ac_objext conftest.$ac_ext
11205 fi
11206 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
11207 echo "${ECHO_T}$ac_cv_type_signal" >&6
11208
11209 cat >>confdefs.h <<_ACEOF
11210 #define RETSIGTYPE $ac_cv_type_signal
11211 _ACEOF
11212
11213
11214
11215 echo "$as_me:$LINENO: checking for type of signal functions" >&5
11216 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6
11217 if test "${bash_cv_signal_vintage+set}" = set; then
11218   echo $ECHO_N "(cached) $ECHO_C" >&6
11219 else
11220
11221   cat >conftest.$ac_ext <<_ACEOF
11222 #line $LINENO "configure"
11223 /* confdefs.h.  */
11224 _ACEOF
11225 cat confdefs.h >>conftest.$ac_ext
11226 cat >>conftest.$ac_ext <<_ACEOF
11227 /* end confdefs.h.  */
11228 #include <signal.h>
11229 int
11230 main ()
11231 {
11232
11233     sigset_t ss;
11234     struct sigaction sa;
11235     sigemptyset(&ss); sigsuspend(&ss);
11236     sigaction(SIGINT, &sa, (struct sigaction *) 0);
11237     sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
11238
11239   ;
11240   return 0;
11241 }
11242 _ACEOF
11243 rm -f conftest.$ac_objext conftest$ac_exeext
11244 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11245   (eval $ac_link) 2>&5
11246   ac_status=$?
11247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11248   (exit $ac_status); } &&
11249          { ac_try='test -s conftest$ac_exeext'
11250   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11251   (eval $ac_try) 2>&5
11252   ac_status=$?
11253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11254   (exit $ac_status); }; }; then
11255   bash_cv_signal_vintage=posix
11256 else
11257   echo "$as_me: failed program was:" >&5
11258 sed 's/^/| /' conftest.$ac_ext >&5
11259
11260
11261     cat >conftest.$ac_ext <<_ACEOF
11262 #line $LINENO "configure"
11263 /* confdefs.h.  */
11264 _ACEOF
11265 cat confdefs.h >>conftest.$ac_ext
11266 cat >>conftest.$ac_ext <<_ACEOF
11267 /* end confdefs.h.  */
11268 #include <signal.h>
11269 int
11270 main ()
11271 {
11272
11273         int mask = sigmask(SIGINT);
11274         sigsetmask(mask); sigblock(mask); sigpause(mask);
11275
11276   ;
11277   return 0;
11278 }
11279 _ACEOF
11280 rm -f conftest.$ac_objext conftest$ac_exeext
11281 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11282   (eval $ac_link) 2>&5
11283   ac_status=$?
11284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11285   (exit $ac_status); } &&
11286          { ac_try='test -s conftest$ac_exeext'
11287   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11288   (eval $ac_try) 2>&5
11289   ac_status=$?
11290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11291   (exit $ac_status); }; }; then
11292   bash_cv_signal_vintage=4.2bsd
11293 else
11294   echo "$as_me: failed program was:" >&5
11295 sed 's/^/| /' conftest.$ac_ext >&5
11296
11297
11298       cat >conftest.$ac_ext <<_ACEOF
11299 #line $LINENO "configure"
11300 /* confdefs.h.  */
11301 _ACEOF
11302 cat confdefs.h >>conftest.$ac_ext
11303 cat >>conftest.$ac_ext <<_ACEOF
11304 /* end confdefs.h.  */
11305
11306         #include <signal.h>
11307         RETSIGTYPE foo() { }
11308 int
11309 main ()
11310 {
11311
11312                 int mask = sigmask(SIGINT);
11313                 sigset(SIGINT, foo); sigrelse(SIGINT);
11314                 sighold(SIGINT); sigpause(SIGINT);
11315
11316   ;
11317   return 0;
11318 }
11319 _ACEOF
11320 rm -f conftest.$ac_objext conftest$ac_exeext
11321 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11322   (eval $ac_link) 2>&5
11323   ac_status=$?
11324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11325   (exit $ac_status); } &&
11326          { ac_try='test -s conftest$ac_exeext'
11327   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11328   (eval $ac_try) 2>&5
11329   ac_status=$?
11330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11331   (exit $ac_status); }; }; then
11332   bash_cv_signal_vintage=svr3
11333 else
11334   echo "$as_me: failed program was:" >&5
11335 sed 's/^/| /' conftest.$ac_ext >&5
11336
11337 bash_cv_signal_vintage=v7
11338
11339 fi
11340 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11341
11342 fi
11343 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11344
11345 fi
11346 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11347
11348 fi
11349
11350 echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
11351 echo "${ECHO_T}$bash_cv_signal_vintage" >&6
11352 if test "$bash_cv_signal_vintage" = posix; then
11353 cat >>confdefs.h <<\_ACEOF
11354 #define HAVE_POSIX_SIGNALS 1
11355 _ACEOF
11356
11357 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
11358 cat >>confdefs.h <<\_ACEOF
11359 #define HAVE_BSD_SIGNALS 1
11360 _ACEOF
11361
11362 elif test "$bash_cv_signal_vintage" = svr3; then
11363 cat >>confdefs.h <<\_ACEOF
11364 #define HAVE_USG_SIGHOLD 1
11365 _ACEOF
11366
11367 fi
11368
11369 echo "$as_me:$LINENO: checking for mode_t" >&5
11370 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
11371 if test "${ac_cv_type_mode_t+set}" = set; then
11372   echo $ECHO_N "(cached) $ECHO_C" >&6
11373 else
11374   cat >conftest.$ac_ext <<_ACEOF
11375 #line $LINENO "configure"
11376 /* confdefs.h.  */
11377 _ACEOF
11378 cat confdefs.h >>conftest.$ac_ext
11379 cat >>conftest.$ac_ext <<_ACEOF
11380 /* end confdefs.h.  */
11381 $ac_includes_default
11382 int
11383 main ()
11384 {
11385 if ((mode_t *) 0)
11386   return 0;
11387 if (sizeof (mode_t))
11388   return 0;
11389   ;
11390   return 0;
11391 }
11392 _ACEOF
11393 rm -f conftest.$ac_objext
11394 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11395   (eval $ac_compile) 2>&5
11396   ac_status=$?
11397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11398   (exit $ac_status); } &&
11399          { ac_try='test -s conftest.$ac_objext'
11400   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11401   (eval $ac_try) 2>&5
11402   ac_status=$?
11403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11404   (exit $ac_status); }; }; then
11405   ac_cv_type_mode_t=yes
11406 else
11407   echo "$as_me: failed program was:" >&5
11408 sed 's/^/| /' conftest.$ac_ext >&5
11409
11410 ac_cv_type_mode_t=no
11411 fi
11412 rm -f conftest.$ac_objext conftest.$ac_ext
11413 fi
11414 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
11415 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
11416 if test $ac_cv_type_mode_t = yes; then
11417   :
11418 else
11419
11420 cat >>confdefs.h <<_ACEOF
11421 #define mode_t int
11422 _ACEOF
11423
11424 fi
11425
11426 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
11427 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
11428 if test "${ac_cv_type_uid_t+set}" = set; then
11429   echo $ECHO_N "(cached) $ECHO_C" >&6
11430 else
11431   cat >conftest.$ac_ext <<_ACEOF
11432 #line $LINENO "configure"
11433 /* confdefs.h.  */
11434 _ACEOF
11435 cat confdefs.h >>conftest.$ac_ext
11436 cat >>conftest.$ac_ext <<_ACEOF
11437 /* end confdefs.h.  */
11438 #include <sys/types.h>
11439
11440 _ACEOF
11441 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11442   $EGREP "uid_t" >/dev/null 2>&1; then
11443   ac_cv_type_uid_t=yes
11444 else
11445   ac_cv_type_uid_t=no
11446 fi
11447 rm -f conftest*
11448
11449 fi
11450 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
11451 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
11452 if test $ac_cv_type_uid_t = no; then
11453
11454 cat >>confdefs.h <<\_ACEOF
11455 #define uid_t int
11456 _ACEOF
11457
11458
11459 cat >>confdefs.h <<\_ACEOF
11460 #define gid_t int
11461 _ACEOF
11462
11463 fi
11464
11465 echo "$as_me:$LINENO: checking for size_t" >&5
11466 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
11467 if test "${ac_cv_type_size_t+set}" = set; then
11468   echo $ECHO_N "(cached) $ECHO_C" >&6
11469 else
11470   cat >conftest.$ac_ext <<_ACEOF
11471 #line $LINENO "configure"
11472 /* confdefs.h.  */
11473 _ACEOF
11474 cat confdefs.h >>conftest.$ac_ext
11475 cat >>conftest.$ac_ext <<_ACEOF
11476 /* end confdefs.h.  */
11477 $ac_includes_default
11478 int
11479 main ()
11480 {
11481 if ((size_t *) 0)
11482   return 0;
11483 if (sizeof (size_t))
11484   return 0;
11485   ;
11486   return 0;
11487 }
11488 _ACEOF
11489 rm -f conftest.$ac_objext
11490 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11491   (eval $ac_compile) 2>&5
11492   ac_status=$?
11493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11494   (exit $ac_status); } &&
11495          { ac_try='test -s conftest.$ac_objext'
11496   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11497   (eval $ac_try) 2>&5
11498   ac_status=$?
11499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11500   (exit $ac_status); }; }; then
11501   ac_cv_type_size_t=yes
11502 else
11503   echo "$as_me: failed program was:" >&5
11504 sed 's/^/| /' conftest.$ac_ext >&5
11505
11506 ac_cv_type_size_t=no
11507 fi
11508 rm -f conftest.$ac_objext conftest.$ac_ext
11509 fi
11510 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
11511 echo "${ECHO_T}$ac_cv_type_size_t" >&6
11512 if test $ac_cv_type_size_t = yes; then
11513   :
11514 else
11515
11516 cat >>confdefs.h <<_ACEOF
11517 #define size_t unsigned
11518 _ACEOF
11519
11520 fi
11521
11522 echo "$as_me:$LINENO: checking for pid_t" >&5
11523 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
11524 if test "${ac_cv_type_pid_t+set}" = set; then
11525   echo $ECHO_N "(cached) $ECHO_C" >&6
11526 else
11527   cat >conftest.$ac_ext <<_ACEOF
11528 #line $LINENO "configure"
11529 /* confdefs.h.  */
11530 _ACEOF
11531 cat confdefs.h >>conftest.$ac_ext
11532 cat >>conftest.$ac_ext <<_ACEOF
11533 /* end confdefs.h.  */
11534 $ac_includes_default
11535 int
11536 main ()
11537 {
11538 if ((pid_t *) 0)
11539   return 0;
11540 if (sizeof (pid_t))
11541   return 0;
11542   ;
11543   return 0;
11544 }
11545 _ACEOF
11546 rm -f conftest.$ac_objext
11547 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11548   (eval $ac_compile) 2>&5
11549   ac_status=$?
11550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11551   (exit $ac_status); } &&
11552          { ac_try='test -s conftest.$ac_objext'
11553   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11554   (eval $ac_try) 2>&5
11555   ac_status=$?
11556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11557   (exit $ac_status); }; }; then
11558   ac_cv_type_pid_t=yes
11559 else
11560   echo "$as_me: failed program was:" >&5
11561 sed 's/^/| /' conftest.$ac_ext >&5
11562
11563 ac_cv_type_pid_t=no
11564 fi
11565 rm -f conftest.$ac_objext conftest.$ac_ext
11566 fi
11567 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
11568 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
11569 if test $ac_cv_type_pid_t = yes; then
11570   :
11571 else
11572
11573 cat >>confdefs.h <<_ACEOF
11574 #define pid_t int
11575 _ACEOF
11576
11577 fi
11578
11579 echo "$as_me:$LINENO: checking for off_t" >&5
11580 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
11581 if test "${ac_cv_type_off_t+set}" = set; then
11582   echo $ECHO_N "(cached) $ECHO_C" >&6
11583 else
11584   cat >conftest.$ac_ext <<_ACEOF
11585 #line $LINENO "configure"
11586 /* confdefs.h.  */
11587 _ACEOF
11588 cat confdefs.h >>conftest.$ac_ext
11589 cat >>conftest.$ac_ext <<_ACEOF
11590 /* end confdefs.h.  */
11591 $ac_includes_default
11592 int
11593 main ()
11594 {
11595 if ((off_t *) 0)
11596   return 0;
11597 if (sizeof (off_t))
11598   return 0;
11599   ;
11600   return 0;
11601 }
11602 _ACEOF
11603 rm -f conftest.$ac_objext
11604 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11605   (eval $ac_compile) 2>&5
11606   ac_status=$?
11607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11608   (exit $ac_status); } &&
11609          { ac_try='test -s conftest.$ac_objext'
11610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11611   (eval $ac_try) 2>&5
11612   ac_status=$?
11613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11614   (exit $ac_status); }; }; then
11615   ac_cv_type_off_t=yes
11616 else
11617   echo "$as_me: failed program was:" >&5
11618 sed 's/^/| /' conftest.$ac_ext >&5
11619
11620 ac_cv_type_off_t=no
11621 fi
11622 rm -f conftest.$ac_objext conftest.$ac_ext
11623 fi
11624 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
11625 echo "${ECHO_T}$ac_cv_type_off_t" >&6
11626 if test $ac_cv_type_off_t = yes; then
11627   :
11628 else
11629
11630 cat >>confdefs.h <<_ACEOF
11631 #define off_t long
11632 _ACEOF
11633
11634 fi
11635
11636 echo "$as_me:$LINENO: checking for ino_t" >&5
11637 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
11638 if test "${ac_cv_type_ino_t+set}" = set; then
11639   echo $ECHO_N "(cached) $ECHO_C" >&6
11640 else
11641   cat >conftest.$ac_ext <<_ACEOF
11642 #line $LINENO "configure"
11643 /* confdefs.h.  */
11644 _ACEOF
11645 cat confdefs.h >>conftest.$ac_ext
11646 cat >>conftest.$ac_ext <<_ACEOF
11647 /* end confdefs.h.  */
11648 $ac_includes_default
11649 int
11650 main ()
11651 {
11652 if ((ino_t *) 0)
11653   return 0;
11654 if (sizeof (ino_t))
11655   return 0;
11656   ;
11657   return 0;
11658 }
11659 _ACEOF
11660 rm -f conftest.$ac_objext
11661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11662   (eval $ac_compile) 2>&5
11663   ac_status=$?
11664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11665   (exit $ac_status); } &&
11666          { ac_try='test -s conftest.$ac_objext'
11667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11668   (eval $ac_try) 2>&5
11669   ac_status=$?
11670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11671   (exit $ac_status); }; }; then
11672   ac_cv_type_ino_t=yes
11673 else
11674   echo "$as_me: failed program was:" >&5
11675 sed 's/^/| /' conftest.$ac_ext >&5
11676
11677 ac_cv_type_ino_t=no
11678 fi
11679 rm -f conftest.$ac_objext conftest.$ac_ext
11680 fi
11681 echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
11682 echo "${ECHO_T}$ac_cv_type_ino_t" >&6
11683 if test $ac_cv_type_ino_t = yes; then
11684   :
11685 else
11686
11687 cat >>confdefs.h <<_ACEOF
11688 #define ino_t unsigned long
11689 _ACEOF
11690
11691 fi
11692
11693 echo "$as_me:$LINENO: checking for dev_t" >&5
11694 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6
11695 if test "${ac_cv_type_dev_t+set}" = set; then
11696   echo $ECHO_N "(cached) $ECHO_C" >&6
11697 else
11698   cat >conftest.$ac_ext <<_ACEOF
11699 #line $LINENO "configure"
11700 /* confdefs.h.  */
11701 _ACEOF
11702 cat confdefs.h >>conftest.$ac_ext
11703 cat >>conftest.$ac_ext <<_ACEOF
11704 /* end confdefs.h.  */
11705 $ac_includes_default
11706 int
11707 main ()
11708 {
11709 if ((dev_t *) 0)
11710   return 0;
11711 if (sizeof (dev_t))
11712   return 0;
11713   ;
11714   return 0;
11715 }
11716 _ACEOF
11717 rm -f conftest.$ac_objext
11718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11719   (eval $ac_compile) 2>&5
11720   ac_status=$?
11721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11722   (exit $ac_status); } &&
11723          { ac_try='test -s conftest.$ac_objext'
11724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11725   (eval $ac_try) 2>&5
11726   ac_status=$?
11727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11728   (exit $ac_status); }; }; then
11729   ac_cv_type_dev_t=yes
11730 else
11731   echo "$as_me: failed program was:" >&5
11732 sed 's/^/| /' conftest.$ac_ext >&5
11733
11734 ac_cv_type_dev_t=no
11735 fi
11736 rm -f conftest.$ac_objext conftest.$ac_ext
11737 fi
11738 echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
11739 echo "${ECHO_T}$ac_cv_type_dev_t" >&6
11740 if test $ac_cv_type_dev_t = yes; then
11741   :
11742 else
11743
11744 cat >>confdefs.h <<_ACEOF
11745 #define dev_t unsigned long
11746 _ACEOF
11747
11748 fi
11749
11750 echo "$as_me:$LINENO: checking for daddr_t" >&5
11751 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6
11752 if test "${ac_cv_type_daddr_t+set}" = set; then
11753   echo $ECHO_N "(cached) $ECHO_C" >&6
11754 else
11755   cat >conftest.$ac_ext <<_ACEOF
11756 #line $LINENO "configure"
11757 /* confdefs.h.  */
11758 _ACEOF
11759 cat confdefs.h >>conftest.$ac_ext
11760 cat >>conftest.$ac_ext <<_ACEOF
11761 /* end confdefs.h.  */
11762 $ac_includes_default
11763 int
11764 main ()
11765 {
11766 if ((daddr_t *) 0)
11767   return 0;
11768 if (sizeof (daddr_t))
11769   return 0;
11770   ;
11771   return 0;
11772 }
11773 _ACEOF
11774 rm -f conftest.$ac_objext
11775 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11776   (eval $ac_compile) 2>&5
11777   ac_status=$?
11778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11779   (exit $ac_status); } &&
11780          { ac_try='test -s conftest.$ac_objext'
11781   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11782   (eval $ac_try) 2>&5
11783   ac_status=$?
11784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11785   (exit $ac_status); }; }; then
11786   ac_cv_type_daddr_t=yes
11787 else
11788   echo "$as_me: failed program was:" >&5
11789 sed 's/^/| /' conftest.$ac_ext >&5
11790
11791 ac_cv_type_daddr_t=no
11792 fi
11793 rm -f conftest.$ac_objext conftest.$ac_ext
11794 fi
11795 echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
11796 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6
11797 if test $ac_cv_type_daddr_t = yes; then
11798   :
11799 else
11800
11801 cat >>confdefs.h <<_ACEOF
11802 #define daddr_t long
11803 _ACEOF
11804
11805 fi
11806
11807 echo "$as_me:$LINENO: checking for major_t" >&5
11808 echo $ECHO_N "checking for major_t... $ECHO_C" >&6
11809 if test "${ac_cv_type_major_t+set}" = set; then
11810   echo $ECHO_N "(cached) $ECHO_C" >&6
11811 else
11812   cat >conftest.$ac_ext <<_ACEOF
11813 #line $LINENO "configure"
11814 /* confdefs.h.  */
11815 _ACEOF
11816 cat confdefs.h >>conftest.$ac_ext
11817 cat >>conftest.$ac_ext <<_ACEOF
11818 /* end confdefs.h.  */
11819 $ac_includes_default
11820 int
11821 main ()
11822 {
11823 if ((major_t *) 0)
11824   return 0;
11825 if (sizeof (major_t))
11826   return 0;
11827   ;
11828   return 0;
11829 }
11830 _ACEOF
11831 rm -f conftest.$ac_objext
11832 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11833   (eval $ac_compile) 2>&5
11834   ac_status=$?
11835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11836   (exit $ac_status); } &&
11837          { ac_try='test -s conftest.$ac_objext'
11838   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11839   (eval $ac_try) 2>&5
11840   ac_status=$?
11841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11842   (exit $ac_status); }; }; then
11843   ac_cv_type_major_t=yes
11844 else
11845   echo "$as_me: failed program was:" >&5
11846 sed 's/^/| /' conftest.$ac_ext >&5
11847
11848 ac_cv_type_major_t=no
11849 fi
11850 rm -f conftest.$ac_objext conftest.$ac_ext
11851 fi
11852 echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
11853 echo "${ECHO_T}$ac_cv_type_major_t" >&6
11854 if test $ac_cv_type_major_t = yes; then
11855   :
11856 else
11857
11858 cat >>confdefs.h <<_ACEOF
11859 #define major_t int
11860 _ACEOF
11861
11862 fi
11863
11864 echo "$as_me:$LINENO: checking for minor_t" >&5
11865 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6
11866 if test "${ac_cv_type_minor_t+set}" = set; then
11867   echo $ECHO_N "(cached) $ECHO_C" >&6
11868 else
11869   cat >conftest.$ac_ext <<_ACEOF
11870 #line $LINENO "configure"
11871 /* confdefs.h.  */
11872 _ACEOF
11873 cat confdefs.h >>conftest.$ac_ext
11874 cat >>conftest.$ac_ext <<_ACEOF
11875 /* end confdefs.h.  */
11876 $ac_includes_default
11877 int
11878 main ()
11879 {
11880 if ((minor_t *) 0)
11881   return 0;
11882 if (sizeof (minor_t))
11883   return 0;
11884   ;
11885   return 0;
11886 }
11887 _ACEOF
11888 rm -f conftest.$ac_objext
11889 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11890   (eval $ac_compile) 2>&5
11891   ac_status=$?
11892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11893   (exit $ac_status); } &&
11894          { ac_try='test -s conftest.$ac_objext'
11895   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11896   (eval $ac_try) 2>&5
11897   ac_status=$?
11898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11899   (exit $ac_status); }; }; then
11900   ac_cv_type_minor_t=yes
11901 else
11902   echo "$as_me: failed program was:" >&5
11903 sed 's/^/| /' conftest.$ac_ext >&5
11904
11905 ac_cv_type_minor_t=no
11906 fi
11907 rm -f conftest.$ac_objext conftest.$ac_ext
11908 fi
11909 echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
11910 echo "${ECHO_T}$ac_cv_type_minor_t" >&6
11911 if test $ac_cv_type_minor_t = yes; then
11912   :
11913 else
11914
11915 cat >>confdefs.h <<_ACEOF
11916 #define minor_t int
11917 _ACEOF
11918
11919 fi
11920
11921 echo "$as_me:$LINENO: checking for ssize_t" >&5
11922 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
11923 if test "${ac_cv_type_ssize_t+set}" = set; then
11924   echo $ECHO_N "(cached) $ECHO_C" >&6
11925 else
11926   cat >conftest.$ac_ext <<_ACEOF
11927 #line $LINENO "configure"
11928 /* confdefs.h.  */
11929 _ACEOF
11930 cat confdefs.h >>conftest.$ac_ext
11931 cat >>conftest.$ac_ext <<_ACEOF
11932 /* end confdefs.h.  */
11933 $ac_includes_default
11934 int
11935 main ()
11936 {
11937 if ((ssize_t *) 0)
11938   return 0;
11939 if (sizeof (ssize_t))
11940   return 0;
11941   ;
11942   return 0;
11943 }
11944 _ACEOF
11945 rm -f conftest.$ac_objext
11946 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11947   (eval $ac_compile) 2>&5
11948   ac_status=$?
11949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11950   (exit $ac_status); } &&
11951          { ac_try='test -s conftest.$ac_objext'
11952   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11953   (eval $ac_try) 2>&5
11954   ac_status=$?
11955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11956   (exit $ac_status); }; }; then
11957   ac_cv_type_ssize_t=yes
11958 else
11959   echo "$as_me: failed program was:" >&5
11960 sed 's/^/| /' conftest.$ac_ext >&5
11961
11962 ac_cv_type_ssize_t=no
11963 fi
11964 rm -f conftest.$ac_objext conftest.$ac_ext
11965 fi
11966 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
11967 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
11968 if test $ac_cv_type_ssize_t = yes; then
11969   :
11970 else
11971
11972 cat >>confdefs.h <<_ACEOF
11973 #define ssize_t int
11974 _ACEOF
11975
11976 fi
11977
11978 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
11979 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
11980 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
11981   echo $ECHO_N "(cached) $ECHO_C" >&6
11982 else
11983   cat >conftest.$ac_ext <<_ACEOF
11984 #line $LINENO "configure"
11985 /* confdefs.h.  */
11986 _ACEOF
11987 cat confdefs.h >>conftest.$ac_ext
11988 cat >>conftest.$ac_ext <<_ACEOF
11989 /* end confdefs.h.  */
11990 $ac_includes_default
11991 int
11992 main ()
11993 {
11994 static struct stat ac_aggr;
11995 if (ac_aggr.st_blocks)
11996 return 0;
11997   ;
11998   return 0;
11999 }
12000 _ACEOF
12001 rm -f conftest.$ac_objext
12002 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12003   (eval $ac_compile) 2>&5
12004   ac_status=$?
12005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12006   (exit $ac_status); } &&
12007          { ac_try='test -s conftest.$ac_objext'
12008   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12009   (eval $ac_try) 2>&5
12010   ac_status=$?
12011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12012   (exit $ac_status); }; }; then
12013   ac_cv_member_struct_stat_st_blocks=yes
12014 else
12015   echo "$as_me: failed program was:" >&5
12016 sed 's/^/| /' conftest.$ac_ext >&5
12017
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 (sizeof 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 ac_cv_member_struct_stat_st_blocks=no
12054 fi
12055 rm -f conftest.$ac_objext conftest.$ac_ext
12056 fi
12057 rm -f conftest.$ac_objext conftest.$ac_ext
12058 fi
12059 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
12060 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
12061 if test $ac_cv_member_struct_stat_st_blocks = yes; then
12062
12063 cat >>confdefs.h <<_ACEOF
12064 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
12065 _ACEOF
12066
12067
12068 cat >>confdefs.h <<\_ACEOF
12069 #define HAVE_ST_BLOCKS 1
12070 _ACEOF
12071
12072 else
12073   LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
12074 fi
12075
12076
12077
12078 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
12079 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
12080 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
12081   echo $ECHO_N "(cached) $ECHO_C" >&6
12082 else
12083   cat >conftest.$ac_ext <<_ACEOF
12084 #line $LINENO "configure"
12085 /* confdefs.h.  */
12086 _ACEOF
12087 cat confdefs.h >>conftest.$ac_ext
12088 cat >>conftest.$ac_ext <<_ACEOF
12089 /* end confdefs.h.  */
12090 $ac_includes_default
12091 int
12092 main ()
12093 {
12094 static struct stat ac_aggr;
12095 if (ac_aggr.st_rdev)
12096 return 0;
12097   ;
12098   return 0;
12099 }
12100 _ACEOF
12101 rm -f conftest.$ac_objext
12102 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12103   (eval $ac_compile) 2>&5
12104   ac_status=$?
12105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12106   (exit $ac_status); } &&
12107          { ac_try='test -s conftest.$ac_objext'
12108   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12109   (eval $ac_try) 2>&5
12110   ac_status=$?
12111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12112   (exit $ac_status); }; }; then
12113   ac_cv_member_struct_stat_st_rdev=yes
12114 else
12115   echo "$as_me: failed program was:" >&5
12116 sed 's/^/| /' conftest.$ac_ext >&5
12117
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 (sizeof 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 ac_cv_member_struct_stat_st_rdev=no
12154 fi
12155 rm -f conftest.$ac_objext conftest.$ac_ext
12156 fi
12157 rm -f conftest.$ac_objext conftest.$ac_ext
12158 fi
12159 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
12160 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
12161 if test $ac_cv_member_struct_stat_st_rdev = yes; then
12162
12163 cat >>confdefs.h <<_ACEOF
12164 #define HAVE_STRUCT_STAT_ST_RDEV 1
12165 _ACEOF
12166
12167
12168 cat >>confdefs.h <<\_ACEOF
12169 #define HAVE_ST_RDEV 1
12170 _ACEOF
12171
12172 fi
12173
12174
12175 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
12176 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
12177 if test "${ac_cv_struct_tm+set}" = set; then
12178   echo $ECHO_N "(cached) $ECHO_C" >&6
12179 else
12180   cat >conftest.$ac_ext <<_ACEOF
12181 #line $LINENO "configure"
12182 /* confdefs.h.  */
12183 _ACEOF
12184 cat confdefs.h >>conftest.$ac_ext
12185 cat >>conftest.$ac_ext <<_ACEOF
12186 /* end confdefs.h.  */
12187 #include <sys/types.h>
12188 #include <time.h>
12189
12190 int
12191 main ()
12192 {
12193 struct tm *tp; tp->tm_sec;
12194   ;
12195   return 0;
12196 }
12197 _ACEOF
12198 rm -f conftest.$ac_objext
12199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12200   (eval $ac_compile) 2>&5
12201   ac_status=$?
12202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12203   (exit $ac_status); } &&
12204          { ac_try='test -s conftest.$ac_objext'
12205   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12206   (eval $ac_try) 2>&5
12207   ac_status=$?
12208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12209   (exit $ac_status); }; }; then
12210   ac_cv_struct_tm=time.h
12211 else
12212   echo "$as_me: failed program was:" >&5
12213 sed 's/^/| /' conftest.$ac_ext >&5
12214
12215 ac_cv_struct_tm=sys/time.h
12216 fi
12217 rm -f conftest.$ac_objext conftest.$ac_ext
12218 fi
12219 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
12220 echo "${ECHO_T}$ac_cv_struct_tm" >&6
12221 if test $ac_cv_struct_tm = sys/time.h; then
12222
12223 cat >>confdefs.h <<\_ACEOF
12224 #define TM_IN_SYS_TIME 1
12225 _ACEOF
12226
12227 fi
12228
12229 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
12230 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
12231 if test "${ac_cv_c_const+set}" = set; then
12232   echo $ECHO_N "(cached) $ECHO_C" >&6
12233 else
12234   cat >conftest.$ac_ext <<_ACEOF
12235 #line $LINENO "configure"
12236 /* confdefs.h.  */
12237 _ACEOF
12238 cat confdefs.h >>conftest.$ac_ext
12239 cat >>conftest.$ac_ext <<_ACEOF
12240 /* end confdefs.h.  */
12241
12242 int
12243 main ()
12244 {
12245 /* FIXME: Include the comments suggested by Paul. */
12246 #ifndef __cplusplus
12247   /* Ultrix mips cc rejects this.  */
12248   typedef int charset[2];
12249   const charset x;
12250   /* SunOS 4.1.1 cc rejects this.  */
12251   char const *const *ccp;
12252   char **p;
12253   /* NEC SVR4.0.2 mips cc rejects this.  */
12254   struct point {int x, y;};
12255   static struct point const zero = {0,0};
12256   /* AIX XL C 1.02.0.0 rejects this.
12257      It does not let you subtract one const X* pointer from another in
12258      an arm of an if-expression whose if-part is not a constant
12259      expression */
12260   const char *g = "string";
12261   ccp = &g + (g ? g-g : 0);
12262   /* HPUX 7.0 cc rejects these. */
12263   ++ccp;
12264   p = (char**) ccp;
12265   ccp = (char const *const *) p;
12266   { /* SCO 3.2v4 cc rejects this.  */
12267     char *t;
12268     char const *s = 0 ? (char *) 0 : (char const *) 0;
12269
12270     *t++ = 0;
12271   }
12272   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
12273     int x[] = {25, 17};
12274     const int *foo = &x[0];
12275     ++foo;
12276   }
12277   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12278     typedef const int *iptr;
12279     iptr p = 0;
12280     ++p;
12281   }
12282   { /* AIX XL C 1.02.0.0 rejects this saying
12283        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12284     struct s { int j; const int *ap[3]; };
12285     struct s *b; b->j = 5;
12286   }
12287   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12288     const int foo = 10;
12289   }
12290 #endif
12291
12292   ;
12293   return 0;
12294 }
12295 _ACEOF
12296 rm -f conftest.$ac_objext
12297 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12298   (eval $ac_compile) 2>&5
12299   ac_status=$?
12300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12301   (exit $ac_status); } &&
12302          { ac_try='test -s conftest.$ac_objext'
12303   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12304   (eval $ac_try) 2>&5
12305   ac_status=$?
12306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12307   (exit $ac_status); }; }; then
12308   ac_cv_c_const=yes
12309 else
12310   echo "$as_me: failed program was:" >&5
12311 sed 's/^/| /' conftest.$ac_ext >&5
12312
12313 ac_cv_c_const=no
12314 fi
12315 rm -f conftest.$ac_objext conftest.$ac_ext
12316 fi
12317 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
12318 echo "${ECHO_T}$ac_cv_c_const" >&6
12319 if test $ac_cv_c_const = no; then
12320
12321 cat >>confdefs.h <<\_ACEOF
12322 #define const
12323 _ACEOF
12324
12325 fi
12326
12327
12328
12329 echo "$as_me:$LINENO: checking for char" >&5
12330 echo $ECHO_N "checking for char... $ECHO_C" >&6
12331 if test "${ac_cv_type_char+set}" = set; then
12332   echo $ECHO_N "(cached) $ECHO_C" >&6
12333 else
12334   cat >conftest.$ac_ext <<_ACEOF
12335 #line $LINENO "configure"
12336 /* confdefs.h.  */
12337 _ACEOF
12338 cat confdefs.h >>conftest.$ac_ext
12339 cat >>conftest.$ac_ext <<_ACEOF
12340 /* end confdefs.h.  */
12341 $ac_includes_default
12342 int
12343 main ()
12344 {
12345 if ((char *) 0)
12346   return 0;
12347 if (sizeof (char))
12348   return 0;
12349   ;
12350   return 0;
12351 }
12352 _ACEOF
12353 rm -f conftest.$ac_objext
12354 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12355   (eval $ac_compile) 2>&5
12356   ac_status=$?
12357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12358   (exit $ac_status); } &&
12359          { ac_try='test -s conftest.$ac_objext'
12360   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12361   (eval $ac_try) 2>&5
12362   ac_status=$?
12363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12364   (exit $ac_status); }; }; then
12365   ac_cv_type_char=yes
12366 else
12367   echo "$as_me: failed program was:" >&5
12368 sed 's/^/| /' conftest.$ac_ext >&5
12369
12370 ac_cv_type_char=no
12371 fi
12372 rm -f conftest.$ac_objext conftest.$ac_ext
12373 fi
12374 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
12375 echo "${ECHO_T}$ac_cv_type_char" >&6
12376
12377 echo "$as_me:$LINENO: checking size of char" >&5
12378 echo $ECHO_N "checking size of char... $ECHO_C" >&6
12379 if test "${ac_cv_sizeof_char+set}" = set; then
12380   echo $ECHO_N "(cached) $ECHO_C" >&6
12381 else
12382   if test "$ac_cv_type_char" = yes; then
12383   # The cast to unsigned long works around a bug in the HP C Compiler
12384   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12385   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12386   # This bug is HP SR number 8606223364.
12387   if test "$cross_compiling" = yes; then
12388   # Depending upon the size, compute the lo and hi bounds.
12389 cat >conftest.$ac_ext <<_ACEOF
12390 #line $LINENO "configure"
12391 /* confdefs.h.  */
12392 _ACEOF
12393 cat confdefs.h >>conftest.$ac_ext
12394 cat >>conftest.$ac_ext <<_ACEOF
12395 /* end confdefs.h.  */
12396 $ac_includes_default
12397 int
12398 main ()
12399 {
12400 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
12401 test_array [0] = 0
12402
12403   ;
12404   return 0;
12405 }
12406 _ACEOF
12407 rm -f conftest.$ac_objext
12408 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12409   (eval $ac_compile) 2>&5
12410   ac_status=$?
12411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12412   (exit $ac_status); } &&
12413          { ac_try='test -s conftest.$ac_objext'
12414   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12415   (eval $ac_try) 2>&5
12416   ac_status=$?
12417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12418   (exit $ac_status); }; }; then
12419   ac_lo=0 ac_mid=0
12420   while :; do
12421     cat >conftest.$ac_ext <<_ACEOF
12422 #line $LINENO "configure"
12423 /* confdefs.h.  */
12424 _ACEOF
12425 cat confdefs.h >>conftest.$ac_ext
12426 cat >>conftest.$ac_ext <<_ACEOF
12427 /* end confdefs.h.  */
12428 $ac_includes_default
12429 int
12430 main ()
12431 {
12432 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
12433 test_array [0] = 0
12434
12435   ;
12436   return 0;
12437 }
12438 _ACEOF
12439 rm -f conftest.$ac_objext
12440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12441   (eval $ac_compile) 2>&5
12442   ac_status=$?
12443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12444   (exit $ac_status); } &&
12445          { ac_try='test -s conftest.$ac_objext'
12446   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12447   (eval $ac_try) 2>&5
12448   ac_status=$?
12449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12450   (exit $ac_status); }; }; then
12451   ac_hi=$ac_mid; break
12452 else
12453   echo "$as_me: failed program was:" >&5
12454 sed 's/^/| /' conftest.$ac_ext >&5
12455
12456 ac_lo=`expr $ac_mid + 1`
12457                     if test $ac_lo -le $ac_mid; then
12458                       ac_lo= ac_hi=
12459                       break
12460                     fi
12461                     ac_mid=`expr 2 '*' $ac_mid + 1`
12462 fi
12463 rm -f conftest.$ac_objext conftest.$ac_ext
12464   done
12465 else
12466   echo "$as_me: failed program was:" >&5
12467 sed 's/^/| /' conftest.$ac_ext >&5
12468
12469 cat >conftest.$ac_ext <<_ACEOF
12470 #line $LINENO "configure"
12471 /* confdefs.h.  */
12472 _ACEOF
12473 cat confdefs.h >>conftest.$ac_ext
12474 cat >>conftest.$ac_ext <<_ACEOF
12475 /* end confdefs.h.  */
12476 $ac_includes_default
12477 int
12478 main ()
12479 {
12480 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
12481 test_array [0] = 0
12482
12483   ;
12484   return 0;
12485 }
12486 _ACEOF
12487 rm -f conftest.$ac_objext
12488 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12489   (eval $ac_compile) 2>&5
12490   ac_status=$?
12491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12492   (exit $ac_status); } &&
12493          { ac_try='test -s conftest.$ac_objext'
12494   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12495   (eval $ac_try) 2>&5
12496   ac_status=$?
12497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12498   (exit $ac_status); }; }; then
12499   ac_hi=-1 ac_mid=-1
12500   while :; do
12501     cat >conftest.$ac_ext <<_ACEOF
12502 #line $LINENO "configure"
12503 /* confdefs.h.  */
12504 _ACEOF
12505 cat confdefs.h >>conftest.$ac_ext
12506 cat >>conftest.$ac_ext <<_ACEOF
12507 /* end confdefs.h.  */
12508 $ac_includes_default
12509 int
12510 main ()
12511 {
12512 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
12513 test_array [0] = 0
12514
12515   ;
12516   return 0;
12517 }
12518 _ACEOF
12519 rm -f conftest.$ac_objext
12520 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12521   (eval $ac_compile) 2>&5
12522   ac_status=$?
12523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12524   (exit $ac_status); } &&
12525          { ac_try='test -s conftest.$ac_objext'
12526   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12527   (eval $ac_try) 2>&5
12528   ac_status=$?
12529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12530   (exit $ac_status); }; }; then
12531   ac_lo=$ac_mid; break
12532 else
12533   echo "$as_me: failed program was:" >&5
12534 sed 's/^/| /' conftest.$ac_ext >&5
12535
12536 ac_hi=`expr '(' $ac_mid ')' - 1`
12537                        if test $ac_mid -le $ac_hi; then
12538                          ac_lo= ac_hi=
12539                          break
12540                        fi
12541                        ac_mid=`expr 2 '*' $ac_mid`
12542 fi
12543 rm -f conftest.$ac_objext conftest.$ac_ext
12544   done
12545 else
12546   echo "$as_me: failed program was:" >&5
12547 sed 's/^/| /' conftest.$ac_ext >&5
12548
12549 ac_lo= ac_hi=
12550 fi
12551 rm -f conftest.$ac_objext conftest.$ac_ext
12552 fi
12553 rm -f conftest.$ac_objext conftest.$ac_ext
12554 # Binary search between lo and hi bounds.
12555 while test "x$ac_lo" != "x$ac_hi"; do
12556   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12557   cat >conftest.$ac_ext <<_ACEOF
12558 #line $LINENO "configure"
12559 /* confdefs.h.  */
12560 _ACEOF
12561 cat confdefs.h >>conftest.$ac_ext
12562 cat >>conftest.$ac_ext <<_ACEOF
12563 /* end confdefs.h.  */
12564 $ac_includes_default
12565 int
12566 main ()
12567 {
12568 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
12569 test_array [0] = 0
12570
12571   ;
12572   return 0;
12573 }
12574 _ACEOF
12575 rm -f conftest.$ac_objext
12576 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12577   (eval $ac_compile) 2>&5
12578   ac_status=$?
12579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12580   (exit $ac_status); } &&
12581          { ac_try='test -s conftest.$ac_objext'
12582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12583   (eval $ac_try) 2>&5
12584   ac_status=$?
12585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12586   (exit $ac_status); }; }; then
12587   ac_hi=$ac_mid
12588 else
12589   echo "$as_me: failed program was:" >&5
12590 sed 's/^/| /' conftest.$ac_ext >&5
12591
12592 ac_lo=`expr '(' $ac_mid ')' + 1`
12593 fi
12594 rm -f conftest.$ac_objext conftest.$ac_ext
12595 done
12596 case $ac_lo in
12597 ?*) ac_cv_sizeof_char=$ac_lo;;
12598 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
12599 See \`config.log' for more details." >&5
12600 echo "$as_me: error: cannot compute sizeof (char), 77
12601 See \`config.log' for more details." >&2;}
12602    { (exit 1); exit 1; }; } ;;
12603 esac
12604 else
12605   if test "$cross_compiling" = yes; then
12606   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12607 See \`config.log' for more details." >&5
12608 echo "$as_me: error: cannot run test program while cross compiling
12609 See \`config.log' for more details." >&2;}
12610    { (exit 1); exit 1; }; }
12611 else
12612   cat >conftest.$ac_ext <<_ACEOF
12613 #line $LINENO "configure"
12614 /* confdefs.h.  */
12615 _ACEOF
12616 cat confdefs.h >>conftest.$ac_ext
12617 cat >>conftest.$ac_ext <<_ACEOF
12618 /* end confdefs.h.  */
12619 $ac_includes_default
12620 long longval () { return (long) (sizeof (char)); }
12621 unsigned long ulongval () { return (long) (sizeof (char)); }
12622 #include <stdio.h>
12623 #include <stdlib.h>
12624 int
12625 main ()
12626 {
12627
12628   FILE *f = fopen ("conftest.val", "w");
12629   if (! f)
12630     exit (1);
12631   if (((long) (sizeof (char))) < 0)
12632     {
12633       long i = longval ();
12634       if (i != ((long) (sizeof (char))))
12635         exit (1);
12636       fprintf (f, "%ld\n", i);
12637     }
12638   else
12639     {
12640       unsigned long i = ulongval ();
12641       if (i != ((long) (sizeof (char))))
12642         exit (1);
12643       fprintf (f, "%lu\n", i);
12644     }
12645   exit (ferror (f) || fclose (f) != 0);
12646
12647   ;
12648   return 0;
12649 }
12650 _ACEOF
12651 rm -f conftest$ac_exeext
12652 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12653   (eval $ac_link) 2>&5
12654   ac_status=$?
12655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12656   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12657   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12658   (eval $ac_try) 2>&5
12659   ac_status=$?
12660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12661   (exit $ac_status); }; }; then
12662   ac_cv_sizeof_char=`cat conftest.val`
12663 else
12664   echo "$as_me: program exited with status $ac_status" >&5
12665 echo "$as_me: failed program was:" >&5
12666 sed 's/^/| /' conftest.$ac_ext >&5
12667
12668 ( exit $ac_status )
12669 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
12670 See \`config.log' for more details." >&5
12671 echo "$as_me: error: cannot compute sizeof (char), 77
12672 See \`config.log' for more details." >&2;}
12673    { (exit 1); exit 1; }; }
12674 fi
12675 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12676 fi
12677 fi
12678 rm -f conftest.val
12679 else
12680   ac_cv_sizeof_char=0
12681 fi
12682 fi
12683 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
12684 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
12685 cat >>confdefs.h <<_ACEOF
12686 #define SIZEOF_CHAR $ac_cv_sizeof_char
12687 _ACEOF
12688
12689
12690 echo "$as_me:$LINENO: checking for short int" >&5
12691 echo $ECHO_N "checking for short int... $ECHO_C" >&6
12692 if test "${ac_cv_type_short_int+set}" = set; then
12693   echo $ECHO_N "(cached) $ECHO_C" >&6
12694 else
12695   cat >conftest.$ac_ext <<_ACEOF
12696 #line $LINENO "configure"
12697 /* confdefs.h.  */
12698 _ACEOF
12699 cat confdefs.h >>conftest.$ac_ext
12700 cat >>conftest.$ac_ext <<_ACEOF
12701 /* end confdefs.h.  */
12702 $ac_includes_default
12703 int
12704 main ()
12705 {
12706 if ((short int *) 0)
12707   return 0;
12708 if (sizeof (short int))
12709   return 0;
12710   ;
12711   return 0;
12712 }
12713 _ACEOF
12714 rm -f conftest.$ac_objext
12715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12716   (eval $ac_compile) 2>&5
12717   ac_status=$?
12718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12719   (exit $ac_status); } &&
12720          { ac_try='test -s conftest.$ac_objext'
12721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12722   (eval $ac_try) 2>&5
12723   ac_status=$?
12724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12725   (exit $ac_status); }; }; then
12726   ac_cv_type_short_int=yes
12727 else
12728   echo "$as_me: failed program was:" >&5
12729 sed 's/^/| /' conftest.$ac_ext >&5
12730
12731 ac_cv_type_short_int=no
12732 fi
12733 rm -f conftest.$ac_objext conftest.$ac_ext
12734 fi
12735 echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
12736 echo "${ECHO_T}$ac_cv_type_short_int" >&6
12737
12738 echo "$as_me:$LINENO: checking size of short int" >&5
12739 echo $ECHO_N "checking size of short int... $ECHO_C" >&6
12740 if test "${ac_cv_sizeof_short_int+set}" = set; then
12741   echo $ECHO_N "(cached) $ECHO_C" >&6
12742 else
12743   if test "$ac_cv_type_short_int" = yes; then
12744   # The cast to unsigned long works around a bug in the HP C Compiler
12745   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12746   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12747   # This bug is HP SR number 8606223364.
12748   if test "$cross_compiling" = yes; then
12749   # Depending upon the size, compute the lo and hi bounds.
12750 cat >conftest.$ac_ext <<_ACEOF
12751 #line $LINENO "configure"
12752 /* confdefs.h.  */
12753 _ACEOF
12754 cat confdefs.h >>conftest.$ac_ext
12755 cat >>conftest.$ac_ext <<_ACEOF
12756 /* end confdefs.h.  */
12757 $ac_includes_default
12758 int
12759 main ()
12760 {
12761 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= 0)];
12762 test_array [0] = 0
12763
12764   ;
12765   return 0;
12766 }
12767 _ACEOF
12768 rm -f conftest.$ac_objext
12769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12770   (eval $ac_compile) 2>&5
12771   ac_status=$?
12772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12773   (exit $ac_status); } &&
12774          { ac_try='test -s conftest.$ac_objext'
12775   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12776   (eval $ac_try) 2>&5
12777   ac_status=$?
12778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12779   (exit $ac_status); }; }; then
12780   ac_lo=0 ac_mid=0
12781   while :; do
12782     cat >conftest.$ac_ext <<_ACEOF
12783 #line $LINENO "configure"
12784 /* confdefs.h.  */
12785 _ACEOF
12786 cat confdefs.h >>conftest.$ac_ext
12787 cat >>conftest.$ac_ext <<_ACEOF
12788 /* end confdefs.h.  */
12789 $ac_includes_default
12790 int
12791 main ()
12792 {
12793 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
12794 test_array [0] = 0
12795
12796   ;
12797   return 0;
12798 }
12799 _ACEOF
12800 rm -f conftest.$ac_objext
12801 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12802   (eval $ac_compile) 2>&5
12803   ac_status=$?
12804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12805   (exit $ac_status); } &&
12806          { ac_try='test -s conftest.$ac_objext'
12807   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12808   (eval $ac_try) 2>&5
12809   ac_status=$?
12810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12811   (exit $ac_status); }; }; then
12812   ac_hi=$ac_mid; break
12813 else
12814   echo "$as_me: failed program was:" >&5
12815 sed 's/^/| /' conftest.$ac_ext >&5
12816
12817 ac_lo=`expr $ac_mid + 1`
12818                     if test $ac_lo -le $ac_mid; then
12819                       ac_lo= ac_hi=
12820                       break
12821                     fi
12822                     ac_mid=`expr 2 '*' $ac_mid + 1`
12823 fi
12824 rm -f conftest.$ac_objext conftest.$ac_ext
12825   done
12826 else
12827   echo "$as_me: failed program was:" >&5
12828 sed 's/^/| /' conftest.$ac_ext >&5
12829
12830 cat >conftest.$ac_ext <<_ACEOF
12831 #line $LINENO "configure"
12832 /* confdefs.h.  */
12833 _ACEOF
12834 cat confdefs.h >>conftest.$ac_ext
12835 cat >>conftest.$ac_ext <<_ACEOF
12836 /* end confdefs.h.  */
12837 $ac_includes_default
12838 int
12839 main ()
12840 {
12841 static int test_array [1 - 2 * !(((long) (sizeof (short int))) < 0)];
12842 test_array [0] = 0
12843
12844   ;
12845   return 0;
12846 }
12847 _ACEOF
12848 rm -f conftest.$ac_objext
12849 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12850   (eval $ac_compile) 2>&5
12851   ac_status=$?
12852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12853   (exit $ac_status); } &&
12854          { ac_try='test -s conftest.$ac_objext'
12855   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12856   (eval $ac_try) 2>&5
12857   ac_status=$?
12858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12859   (exit $ac_status); }; }; then
12860   ac_hi=-1 ac_mid=-1
12861   while :; do
12862     cat >conftest.$ac_ext <<_ACEOF
12863 #line $LINENO "configure"
12864 /* confdefs.h.  */
12865 _ACEOF
12866 cat confdefs.h >>conftest.$ac_ext
12867 cat >>conftest.$ac_ext <<_ACEOF
12868 /* end confdefs.h.  */
12869 $ac_includes_default
12870 int
12871 main ()
12872 {
12873 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= $ac_mid)];
12874 test_array [0] = 0
12875
12876   ;
12877   return 0;
12878 }
12879 _ACEOF
12880 rm -f conftest.$ac_objext
12881 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12882   (eval $ac_compile) 2>&5
12883   ac_status=$?
12884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12885   (exit $ac_status); } &&
12886          { ac_try='test -s conftest.$ac_objext'
12887   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12888   (eval $ac_try) 2>&5
12889   ac_status=$?
12890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12891   (exit $ac_status); }; }; then
12892   ac_lo=$ac_mid; break
12893 else
12894   echo "$as_me: failed program was:" >&5
12895 sed 's/^/| /' conftest.$ac_ext >&5
12896
12897 ac_hi=`expr '(' $ac_mid ')' - 1`
12898                        if test $ac_mid -le $ac_hi; then
12899                          ac_lo= ac_hi=
12900                          break
12901                        fi
12902                        ac_mid=`expr 2 '*' $ac_mid`
12903 fi
12904 rm -f conftest.$ac_objext conftest.$ac_ext
12905   done
12906 else
12907   echo "$as_me: failed program was:" >&5
12908 sed 's/^/| /' conftest.$ac_ext >&5
12909
12910 ac_lo= ac_hi=
12911 fi
12912 rm -f conftest.$ac_objext conftest.$ac_ext
12913 fi
12914 rm -f conftest.$ac_objext conftest.$ac_ext
12915 # Binary search between lo and hi bounds.
12916 while test "x$ac_lo" != "x$ac_hi"; do
12917   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12918   cat >conftest.$ac_ext <<_ACEOF
12919 #line $LINENO "configure"
12920 /* confdefs.h.  */
12921 _ACEOF
12922 cat confdefs.h >>conftest.$ac_ext
12923 cat >>conftest.$ac_ext <<_ACEOF
12924 /* end confdefs.h.  */
12925 $ac_includes_default
12926 int
12927 main ()
12928 {
12929 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
12930 test_array [0] = 0
12931
12932   ;
12933   return 0;
12934 }
12935 _ACEOF
12936 rm -f conftest.$ac_objext
12937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12938   (eval $ac_compile) 2>&5
12939   ac_status=$?
12940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12941   (exit $ac_status); } &&
12942          { ac_try='test -s conftest.$ac_objext'
12943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12944   (eval $ac_try) 2>&5
12945   ac_status=$?
12946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12947   (exit $ac_status); }; }; then
12948   ac_hi=$ac_mid
12949 else
12950   echo "$as_me: failed program was:" >&5
12951 sed 's/^/| /' conftest.$ac_ext >&5
12952
12953 ac_lo=`expr '(' $ac_mid ')' + 1`
12954 fi
12955 rm -f conftest.$ac_objext conftest.$ac_ext
12956 done
12957 case $ac_lo in
12958 ?*) ac_cv_sizeof_short_int=$ac_lo;;
12959 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
12960 See \`config.log' for more details." >&5
12961 echo "$as_me: error: cannot compute sizeof (short int), 77
12962 See \`config.log' for more details." >&2;}
12963    { (exit 1); exit 1; }; } ;;
12964 esac
12965 else
12966   if test "$cross_compiling" = yes; then
12967   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12968 See \`config.log' for more details." >&5
12969 echo "$as_me: error: cannot run test program while cross compiling
12970 See \`config.log' for more details." >&2;}
12971    { (exit 1); exit 1; }; }
12972 else
12973   cat >conftest.$ac_ext <<_ACEOF
12974 #line $LINENO "configure"
12975 /* confdefs.h.  */
12976 _ACEOF
12977 cat confdefs.h >>conftest.$ac_ext
12978 cat >>conftest.$ac_ext <<_ACEOF
12979 /* end confdefs.h.  */
12980 $ac_includes_default
12981 long longval () { return (long) (sizeof (short int)); }
12982 unsigned long ulongval () { return (long) (sizeof (short int)); }
12983 #include <stdio.h>
12984 #include <stdlib.h>
12985 int
12986 main ()
12987 {
12988
12989   FILE *f = fopen ("conftest.val", "w");
12990   if (! f)
12991     exit (1);
12992   if (((long) (sizeof (short int))) < 0)
12993     {
12994       long i = longval ();
12995       if (i != ((long) (sizeof (short int))))
12996         exit (1);
12997       fprintf (f, "%ld\n", i);
12998     }
12999   else
13000     {
13001       unsigned long i = ulongval ();
13002       if (i != ((long) (sizeof (short int))))
13003         exit (1);
13004       fprintf (f, "%lu\n", i);
13005     }
13006   exit (ferror (f) || fclose (f) != 0);
13007
13008   ;
13009   return 0;
13010 }
13011 _ACEOF
13012 rm -f conftest$ac_exeext
13013 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13014   (eval $ac_link) 2>&5
13015   ac_status=$?
13016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13017   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13018   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13019   (eval $ac_try) 2>&5
13020   ac_status=$?
13021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13022   (exit $ac_status); }; }; then
13023   ac_cv_sizeof_short_int=`cat conftest.val`
13024 else
13025   echo "$as_me: program exited with status $ac_status" >&5
13026 echo "$as_me: failed program was:" >&5
13027 sed 's/^/| /' conftest.$ac_ext >&5
13028
13029 ( exit $ac_status )
13030 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
13031 See \`config.log' for more details." >&5
13032 echo "$as_me: error: cannot compute sizeof (short int), 77
13033 See \`config.log' for more details." >&2;}
13034    { (exit 1); exit 1; }; }
13035 fi
13036 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13037 fi
13038 fi
13039 rm -f conftest.val
13040 else
13041   ac_cv_sizeof_short_int=0
13042 fi
13043 fi
13044 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
13045 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6
13046 cat >>confdefs.h <<_ACEOF
13047 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
13048 _ACEOF
13049
13050
13051 echo "$as_me:$LINENO: checking for int" >&5
13052 echo $ECHO_N "checking for int... $ECHO_C" >&6
13053 if test "${ac_cv_type_int+set}" = set; then
13054   echo $ECHO_N "(cached) $ECHO_C" >&6
13055 else
13056   cat >conftest.$ac_ext <<_ACEOF
13057 #line $LINENO "configure"
13058 /* confdefs.h.  */
13059 _ACEOF
13060 cat confdefs.h >>conftest.$ac_ext
13061 cat >>conftest.$ac_ext <<_ACEOF
13062 /* end confdefs.h.  */
13063 $ac_includes_default
13064 int
13065 main ()
13066 {
13067 if ((int *) 0)
13068   return 0;
13069 if (sizeof (int))
13070   return 0;
13071   ;
13072   return 0;
13073 }
13074 _ACEOF
13075 rm -f conftest.$ac_objext
13076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13077   (eval $ac_compile) 2>&5
13078   ac_status=$?
13079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13080   (exit $ac_status); } &&
13081          { ac_try='test -s conftest.$ac_objext'
13082   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13083   (eval $ac_try) 2>&5
13084   ac_status=$?
13085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13086   (exit $ac_status); }; }; then
13087   ac_cv_type_int=yes
13088 else
13089   echo "$as_me: failed program was:" >&5
13090 sed 's/^/| /' conftest.$ac_ext >&5
13091
13092 ac_cv_type_int=no
13093 fi
13094 rm -f conftest.$ac_objext conftest.$ac_ext
13095 fi
13096 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
13097 echo "${ECHO_T}$ac_cv_type_int" >&6
13098
13099 echo "$as_me:$LINENO: checking size of int" >&5
13100 echo $ECHO_N "checking size of int... $ECHO_C" >&6
13101 if test "${ac_cv_sizeof_int+set}" = set; then
13102   echo $ECHO_N "(cached) $ECHO_C" >&6
13103 else
13104   if test "$ac_cv_type_int" = yes; then
13105   # The cast to unsigned long works around a bug in the HP C Compiler
13106   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13107   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13108   # This bug is HP SR number 8606223364.
13109   if test "$cross_compiling" = yes; then
13110   # Depending upon the size, compute the lo and hi bounds.
13111 cat >conftest.$ac_ext <<_ACEOF
13112 #line $LINENO "configure"
13113 /* confdefs.h.  */
13114 _ACEOF
13115 cat confdefs.h >>conftest.$ac_ext
13116 cat >>conftest.$ac_ext <<_ACEOF
13117 /* end confdefs.h.  */
13118 $ac_includes_default
13119 int
13120 main ()
13121 {
13122 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
13123 test_array [0] = 0
13124
13125   ;
13126   return 0;
13127 }
13128 _ACEOF
13129 rm -f conftest.$ac_objext
13130 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13131   (eval $ac_compile) 2>&5
13132   ac_status=$?
13133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13134   (exit $ac_status); } &&
13135          { ac_try='test -s conftest.$ac_objext'
13136   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13137   (eval $ac_try) 2>&5
13138   ac_status=$?
13139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13140   (exit $ac_status); }; }; then
13141   ac_lo=0 ac_mid=0
13142   while :; do
13143     cat >conftest.$ac_ext <<_ACEOF
13144 #line $LINENO "configure"
13145 /* confdefs.h.  */
13146 _ACEOF
13147 cat confdefs.h >>conftest.$ac_ext
13148 cat >>conftest.$ac_ext <<_ACEOF
13149 /* end confdefs.h.  */
13150 $ac_includes_default
13151 int
13152 main ()
13153 {
13154 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
13155 test_array [0] = 0
13156
13157   ;
13158   return 0;
13159 }
13160 _ACEOF
13161 rm -f conftest.$ac_objext
13162 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13163   (eval $ac_compile) 2>&5
13164   ac_status=$?
13165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13166   (exit $ac_status); } &&
13167          { ac_try='test -s conftest.$ac_objext'
13168   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13169   (eval $ac_try) 2>&5
13170   ac_status=$?
13171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13172   (exit $ac_status); }; }; then
13173   ac_hi=$ac_mid; break
13174 else
13175   echo "$as_me: failed program was:" >&5
13176 sed 's/^/| /' conftest.$ac_ext >&5
13177
13178 ac_lo=`expr $ac_mid + 1`
13179                     if test $ac_lo -le $ac_mid; then
13180                       ac_lo= ac_hi=
13181                       break
13182                     fi
13183                     ac_mid=`expr 2 '*' $ac_mid + 1`
13184 fi
13185 rm -f conftest.$ac_objext conftest.$ac_ext
13186   done
13187 else
13188   echo "$as_me: failed program was:" >&5
13189 sed 's/^/| /' conftest.$ac_ext >&5
13190
13191 cat >conftest.$ac_ext <<_ACEOF
13192 #line $LINENO "configure"
13193 /* confdefs.h.  */
13194 _ACEOF
13195 cat confdefs.h >>conftest.$ac_ext
13196 cat >>conftest.$ac_ext <<_ACEOF
13197 /* end confdefs.h.  */
13198 $ac_includes_default
13199 int
13200 main ()
13201 {
13202 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
13203 test_array [0] = 0
13204
13205   ;
13206   return 0;
13207 }
13208 _ACEOF
13209 rm -f conftest.$ac_objext
13210 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13211   (eval $ac_compile) 2>&5
13212   ac_status=$?
13213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13214   (exit $ac_status); } &&
13215          { ac_try='test -s conftest.$ac_objext'
13216   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13217   (eval $ac_try) 2>&5
13218   ac_status=$?
13219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13220   (exit $ac_status); }; }; then
13221   ac_hi=-1 ac_mid=-1
13222   while :; do
13223     cat >conftest.$ac_ext <<_ACEOF
13224 #line $LINENO "configure"
13225 /* confdefs.h.  */
13226 _ACEOF
13227 cat confdefs.h >>conftest.$ac_ext
13228 cat >>conftest.$ac_ext <<_ACEOF
13229 /* end confdefs.h.  */
13230 $ac_includes_default
13231 int
13232 main ()
13233 {
13234 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
13235 test_array [0] = 0
13236
13237   ;
13238   return 0;
13239 }
13240 _ACEOF
13241 rm -f conftest.$ac_objext
13242 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13243   (eval $ac_compile) 2>&5
13244   ac_status=$?
13245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13246   (exit $ac_status); } &&
13247          { ac_try='test -s conftest.$ac_objext'
13248   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13249   (eval $ac_try) 2>&5
13250   ac_status=$?
13251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13252   (exit $ac_status); }; }; then
13253   ac_lo=$ac_mid; break
13254 else
13255   echo "$as_me: failed program was:" >&5
13256 sed 's/^/| /' conftest.$ac_ext >&5
13257
13258 ac_hi=`expr '(' $ac_mid ')' - 1`
13259                        if test $ac_mid -le $ac_hi; then
13260                          ac_lo= ac_hi=
13261                          break
13262                        fi
13263                        ac_mid=`expr 2 '*' $ac_mid`
13264 fi
13265 rm -f conftest.$ac_objext conftest.$ac_ext
13266   done
13267 else
13268   echo "$as_me: failed program was:" >&5
13269 sed 's/^/| /' conftest.$ac_ext >&5
13270
13271 ac_lo= ac_hi=
13272 fi
13273 rm -f conftest.$ac_objext conftest.$ac_ext
13274 fi
13275 rm -f conftest.$ac_objext conftest.$ac_ext
13276 # Binary search between lo and hi bounds.
13277 while test "x$ac_lo" != "x$ac_hi"; do
13278   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13279   cat >conftest.$ac_ext <<_ACEOF
13280 #line $LINENO "configure"
13281 /* confdefs.h.  */
13282 _ACEOF
13283 cat confdefs.h >>conftest.$ac_ext
13284 cat >>conftest.$ac_ext <<_ACEOF
13285 /* end confdefs.h.  */
13286 $ac_includes_default
13287 int
13288 main ()
13289 {
13290 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
13291 test_array [0] = 0
13292
13293   ;
13294   return 0;
13295 }
13296 _ACEOF
13297 rm -f conftest.$ac_objext
13298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13299   (eval $ac_compile) 2>&5
13300   ac_status=$?
13301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13302   (exit $ac_status); } &&
13303          { ac_try='test -s conftest.$ac_objext'
13304   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13305   (eval $ac_try) 2>&5
13306   ac_status=$?
13307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13308   (exit $ac_status); }; }; then
13309   ac_hi=$ac_mid
13310 else
13311   echo "$as_me: failed program was:" >&5
13312 sed 's/^/| /' conftest.$ac_ext >&5
13313
13314 ac_lo=`expr '(' $ac_mid ')' + 1`
13315 fi
13316 rm -f conftest.$ac_objext conftest.$ac_ext
13317 done
13318 case $ac_lo in
13319 ?*) ac_cv_sizeof_int=$ac_lo;;
13320 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
13321 See \`config.log' for more details." >&5
13322 echo "$as_me: error: cannot compute sizeof (int), 77
13323 See \`config.log' for more details." >&2;}
13324    { (exit 1); exit 1; }; } ;;
13325 esac
13326 else
13327   if test "$cross_compiling" = yes; then
13328   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13329 See \`config.log' for more details." >&5
13330 echo "$as_me: error: cannot run test program while cross compiling
13331 See \`config.log' for more details." >&2;}
13332    { (exit 1); exit 1; }; }
13333 else
13334   cat >conftest.$ac_ext <<_ACEOF
13335 #line $LINENO "configure"
13336 /* confdefs.h.  */
13337 _ACEOF
13338 cat confdefs.h >>conftest.$ac_ext
13339 cat >>conftest.$ac_ext <<_ACEOF
13340 /* end confdefs.h.  */
13341 $ac_includes_default
13342 long longval () { return (long) (sizeof (int)); }
13343 unsigned long ulongval () { return (long) (sizeof (int)); }
13344 #include <stdio.h>
13345 #include <stdlib.h>
13346 int
13347 main ()
13348 {
13349
13350   FILE *f = fopen ("conftest.val", "w");
13351   if (! f)
13352     exit (1);
13353   if (((long) (sizeof (int))) < 0)
13354     {
13355       long i = longval ();
13356       if (i != ((long) (sizeof (int))))
13357         exit (1);
13358       fprintf (f, "%ld\n", i);
13359     }
13360   else
13361     {
13362       unsigned long i = ulongval ();
13363       if (i != ((long) (sizeof (int))))
13364         exit (1);
13365       fprintf (f, "%lu\n", i);
13366     }
13367   exit (ferror (f) || fclose (f) != 0);
13368
13369   ;
13370   return 0;
13371 }
13372 _ACEOF
13373 rm -f conftest$ac_exeext
13374 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13375   (eval $ac_link) 2>&5
13376   ac_status=$?
13377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13378   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13379   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13380   (eval $ac_try) 2>&5
13381   ac_status=$?
13382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13383   (exit $ac_status); }; }; then
13384   ac_cv_sizeof_int=`cat conftest.val`
13385 else
13386   echo "$as_me: program exited with status $ac_status" >&5
13387 echo "$as_me: failed program was:" >&5
13388 sed 's/^/| /' conftest.$ac_ext >&5
13389
13390 ( exit $ac_status )
13391 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
13392 See \`config.log' for more details." >&5
13393 echo "$as_me: error: cannot compute sizeof (int), 77
13394 See \`config.log' for more details." >&2;}
13395    { (exit 1); exit 1; }; }
13396 fi
13397 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13398 fi
13399 fi
13400 rm -f conftest.val
13401 else
13402   ac_cv_sizeof_int=0
13403 fi
13404 fi
13405 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
13406 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
13407 cat >>confdefs.h <<_ACEOF
13408 #define SIZEOF_INT $ac_cv_sizeof_int
13409 _ACEOF
13410
13411
13412 echo "$as_me:$LINENO: checking for long int" >&5
13413 echo $ECHO_N "checking for long int... $ECHO_C" >&6
13414 if test "${ac_cv_type_long_int+set}" = set; then
13415   echo $ECHO_N "(cached) $ECHO_C" >&6
13416 else
13417   cat >conftest.$ac_ext <<_ACEOF
13418 #line $LINENO "configure"
13419 /* confdefs.h.  */
13420 _ACEOF
13421 cat confdefs.h >>conftest.$ac_ext
13422 cat >>conftest.$ac_ext <<_ACEOF
13423 /* end confdefs.h.  */
13424 $ac_includes_default
13425 int
13426 main ()
13427 {
13428 if ((long int *) 0)
13429   return 0;
13430 if (sizeof (long int))
13431   return 0;
13432   ;
13433   return 0;
13434 }
13435 _ACEOF
13436 rm -f conftest.$ac_objext
13437 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13438   (eval $ac_compile) 2>&5
13439   ac_status=$?
13440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13441   (exit $ac_status); } &&
13442          { ac_try='test -s conftest.$ac_objext'
13443   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13444   (eval $ac_try) 2>&5
13445   ac_status=$?
13446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13447   (exit $ac_status); }; }; then
13448   ac_cv_type_long_int=yes
13449 else
13450   echo "$as_me: failed program was:" >&5
13451 sed 's/^/| /' conftest.$ac_ext >&5
13452
13453 ac_cv_type_long_int=no
13454 fi
13455 rm -f conftest.$ac_objext conftest.$ac_ext
13456 fi
13457 echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
13458 echo "${ECHO_T}$ac_cv_type_long_int" >&6
13459
13460 echo "$as_me:$LINENO: checking size of long int" >&5
13461 echo $ECHO_N "checking size of long int... $ECHO_C" >&6
13462 if test "${ac_cv_sizeof_long_int+set}" = set; then
13463   echo $ECHO_N "(cached) $ECHO_C" >&6
13464 else
13465   if test "$ac_cv_type_long_int" = yes; then
13466   # The cast to unsigned long works around a bug in the HP C Compiler
13467   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13468   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13469   # This bug is HP SR number 8606223364.
13470   if test "$cross_compiling" = yes; then
13471   # Depending upon the size, compute the lo and hi bounds.
13472 cat >conftest.$ac_ext <<_ACEOF
13473 #line $LINENO "configure"
13474 /* confdefs.h.  */
13475 _ACEOF
13476 cat confdefs.h >>conftest.$ac_ext
13477 cat >>conftest.$ac_ext <<_ACEOF
13478 /* end confdefs.h.  */
13479 $ac_includes_default
13480 int
13481 main ()
13482 {
13483 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= 0)];
13484 test_array [0] = 0
13485
13486   ;
13487   return 0;
13488 }
13489 _ACEOF
13490 rm -f conftest.$ac_objext
13491 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13492   (eval $ac_compile) 2>&5
13493   ac_status=$?
13494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13495   (exit $ac_status); } &&
13496          { ac_try='test -s conftest.$ac_objext'
13497   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13498   (eval $ac_try) 2>&5
13499   ac_status=$?
13500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13501   (exit $ac_status); }; }; then
13502   ac_lo=0 ac_mid=0
13503   while :; do
13504     cat >conftest.$ac_ext <<_ACEOF
13505 #line $LINENO "configure"
13506 /* confdefs.h.  */
13507 _ACEOF
13508 cat confdefs.h >>conftest.$ac_ext
13509 cat >>conftest.$ac_ext <<_ACEOF
13510 /* end confdefs.h.  */
13511 $ac_includes_default
13512 int
13513 main ()
13514 {
13515 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
13516 test_array [0] = 0
13517
13518   ;
13519   return 0;
13520 }
13521 _ACEOF
13522 rm -f conftest.$ac_objext
13523 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13524   (eval $ac_compile) 2>&5
13525   ac_status=$?
13526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13527   (exit $ac_status); } &&
13528          { ac_try='test -s conftest.$ac_objext'
13529   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13530   (eval $ac_try) 2>&5
13531   ac_status=$?
13532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13533   (exit $ac_status); }; }; then
13534   ac_hi=$ac_mid; break
13535 else
13536   echo "$as_me: failed program was:" >&5
13537 sed 's/^/| /' conftest.$ac_ext >&5
13538
13539 ac_lo=`expr $ac_mid + 1`
13540                     if test $ac_lo -le $ac_mid; then
13541                       ac_lo= ac_hi=
13542                       break
13543                     fi
13544                     ac_mid=`expr 2 '*' $ac_mid + 1`
13545 fi
13546 rm -f conftest.$ac_objext conftest.$ac_ext
13547   done
13548 else
13549   echo "$as_me: failed program was:" >&5
13550 sed 's/^/| /' conftest.$ac_ext >&5
13551
13552 cat >conftest.$ac_ext <<_ACEOF
13553 #line $LINENO "configure"
13554 /* confdefs.h.  */
13555 _ACEOF
13556 cat confdefs.h >>conftest.$ac_ext
13557 cat >>conftest.$ac_ext <<_ACEOF
13558 /* end confdefs.h.  */
13559 $ac_includes_default
13560 int
13561 main ()
13562 {
13563 static int test_array [1 - 2 * !(((long) (sizeof (long int))) < 0)];
13564 test_array [0] = 0
13565
13566   ;
13567   return 0;
13568 }
13569 _ACEOF
13570 rm -f conftest.$ac_objext
13571 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13572   (eval $ac_compile) 2>&5
13573   ac_status=$?
13574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13575   (exit $ac_status); } &&
13576          { ac_try='test -s conftest.$ac_objext'
13577   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13578   (eval $ac_try) 2>&5
13579   ac_status=$?
13580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13581   (exit $ac_status); }; }; then
13582   ac_hi=-1 ac_mid=-1
13583   while :; do
13584     cat >conftest.$ac_ext <<_ACEOF
13585 #line $LINENO "configure"
13586 /* confdefs.h.  */
13587 _ACEOF
13588 cat confdefs.h >>conftest.$ac_ext
13589 cat >>conftest.$ac_ext <<_ACEOF
13590 /* end confdefs.h.  */
13591 $ac_includes_default
13592 int
13593 main ()
13594 {
13595 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= $ac_mid)];
13596 test_array [0] = 0
13597
13598   ;
13599   return 0;
13600 }
13601 _ACEOF
13602 rm -f conftest.$ac_objext
13603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13604   (eval $ac_compile) 2>&5
13605   ac_status=$?
13606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13607   (exit $ac_status); } &&
13608          { ac_try='test -s conftest.$ac_objext'
13609   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13610   (eval $ac_try) 2>&5
13611   ac_status=$?
13612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13613   (exit $ac_status); }; }; then
13614   ac_lo=$ac_mid; break
13615 else
13616   echo "$as_me: failed program was:" >&5
13617 sed 's/^/| /' conftest.$ac_ext >&5
13618
13619 ac_hi=`expr '(' $ac_mid ')' - 1`
13620                        if test $ac_mid -le $ac_hi; then
13621                          ac_lo= ac_hi=
13622                          break
13623                        fi
13624                        ac_mid=`expr 2 '*' $ac_mid`
13625 fi
13626 rm -f conftest.$ac_objext conftest.$ac_ext
13627   done
13628 else
13629   echo "$as_me: failed program was:" >&5
13630 sed 's/^/| /' conftest.$ac_ext >&5
13631
13632 ac_lo= ac_hi=
13633 fi
13634 rm -f conftest.$ac_objext conftest.$ac_ext
13635 fi
13636 rm -f conftest.$ac_objext conftest.$ac_ext
13637 # Binary search between lo and hi bounds.
13638 while test "x$ac_lo" != "x$ac_hi"; do
13639   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13640   cat >conftest.$ac_ext <<_ACEOF
13641 #line $LINENO "configure"
13642 /* confdefs.h.  */
13643 _ACEOF
13644 cat confdefs.h >>conftest.$ac_ext
13645 cat >>conftest.$ac_ext <<_ACEOF
13646 /* end confdefs.h.  */
13647 $ac_includes_default
13648 int
13649 main ()
13650 {
13651 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
13652 test_array [0] = 0
13653
13654   ;
13655   return 0;
13656 }
13657 _ACEOF
13658 rm -f conftest.$ac_objext
13659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13660   (eval $ac_compile) 2>&5
13661   ac_status=$?
13662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13663   (exit $ac_status); } &&
13664          { ac_try='test -s conftest.$ac_objext'
13665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13666   (eval $ac_try) 2>&5
13667   ac_status=$?
13668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13669   (exit $ac_status); }; }; then
13670   ac_hi=$ac_mid
13671 else
13672   echo "$as_me: failed program was:" >&5
13673 sed 's/^/| /' conftest.$ac_ext >&5
13674
13675 ac_lo=`expr '(' $ac_mid ')' + 1`
13676 fi
13677 rm -f conftest.$ac_objext conftest.$ac_ext
13678 done
13679 case $ac_lo in
13680 ?*) ac_cv_sizeof_long_int=$ac_lo;;
13681 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
13682 See \`config.log' for more details." >&5
13683 echo "$as_me: error: cannot compute sizeof (long int), 77
13684 See \`config.log' for more details." >&2;}
13685    { (exit 1); exit 1; }; } ;;
13686 esac
13687 else
13688   if test "$cross_compiling" = yes; then
13689   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13690 See \`config.log' for more details." >&5
13691 echo "$as_me: error: cannot run test program while cross compiling
13692 See \`config.log' for more details." >&2;}
13693    { (exit 1); exit 1; }; }
13694 else
13695   cat >conftest.$ac_ext <<_ACEOF
13696 #line $LINENO "configure"
13697 /* confdefs.h.  */
13698 _ACEOF
13699 cat confdefs.h >>conftest.$ac_ext
13700 cat >>conftest.$ac_ext <<_ACEOF
13701 /* end confdefs.h.  */
13702 $ac_includes_default
13703 long longval () { return (long) (sizeof (long int)); }
13704 unsigned long ulongval () { return (long) (sizeof (long int)); }
13705 #include <stdio.h>
13706 #include <stdlib.h>
13707 int
13708 main ()
13709 {
13710
13711   FILE *f = fopen ("conftest.val", "w");
13712   if (! f)
13713     exit (1);
13714   if (((long) (sizeof (long int))) < 0)
13715     {
13716       long i = longval ();
13717       if (i != ((long) (sizeof (long int))))
13718         exit (1);
13719       fprintf (f, "%ld\n", i);
13720     }
13721   else
13722     {
13723       unsigned long i = ulongval ();
13724       if (i != ((long) (sizeof (long int))))
13725         exit (1);
13726       fprintf (f, "%lu\n", i);
13727     }
13728   exit (ferror (f) || fclose (f) != 0);
13729
13730   ;
13731   return 0;
13732 }
13733 _ACEOF
13734 rm -f conftest$ac_exeext
13735 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13736   (eval $ac_link) 2>&5
13737   ac_status=$?
13738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13739   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13740   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13741   (eval $ac_try) 2>&5
13742   ac_status=$?
13743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13744   (exit $ac_status); }; }; then
13745   ac_cv_sizeof_long_int=`cat conftest.val`
13746 else
13747   echo "$as_me: program exited with status $ac_status" >&5
13748 echo "$as_me: failed program was:" >&5
13749 sed 's/^/| /' conftest.$ac_ext >&5
13750
13751 ( exit $ac_status )
13752 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
13753 See \`config.log' for more details." >&5
13754 echo "$as_me: error: cannot compute sizeof (long int), 77
13755 See \`config.log' for more details." >&2;}
13756    { (exit 1); exit 1; }; }
13757 fi
13758 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13759 fi
13760 fi
13761 rm -f conftest.val
13762 else
13763   ac_cv_sizeof_long_int=0
13764 fi
13765 fi
13766 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
13767 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6
13768 cat >>confdefs.h <<_ACEOF
13769 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
13770 _ACEOF
13771
13772
13773 echo "$as_me:$LINENO: checking for long long int" >&5
13774 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
13775 if test "${ac_cv_type_long_long_int+set}" = set; then
13776   echo $ECHO_N "(cached) $ECHO_C" >&6
13777 else
13778   cat >conftest.$ac_ext <<_ACEOF
13779 #line $LINENO "configure"
13780 /* confdefs.h.  */
13781 _ACEOF
13782 cat confdefs.h >>conftest.$ac_ext
13783 cat >>conftest.$ac_ext <<_ACEOF
13784 /* end confdefs.h.  */
13785 $ac_includes_default
13786 int
13787 main ()
13788 {
13789 if ((long long int *) 0)
13790   return 0;
13791 if (sizeof (long long int))
13792   return 0;
13793   ;
13794   return 0;
13795 }
13796 _ACEOF
13797 rm -f conftest.$ac_objext
13798 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13799   (eval $ac_compile) 2>&5
13800   ac_status=$?
13801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13802   (exit $ac_status); } &&
13803          { ac_try='test -s conftest.$ac_objext'
13804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13805   (eval $ac_try) 2>&5
13806   ac_status=$?
13807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13808   (exit $ac_status); }; }; then
13809   ac_cv_type_long_long_int=yes
13810 else
13811   echo "$as_me: failed program was:" >&5
13812 sed 's/^/| /' conftest.$ac_ext >&5
13813
13814 ac_cv_type_long_long_int=no
13815 fi
13816 rm -f conftest.$ac_objext conftest.$ac_ext
13817 fi
13818 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
13819 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
13820
13821 echo "$as_me:$LINENO: checking size of long long int" >&5
13822 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6
13823 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
13824   echo $ECHO_N "(cached) $ECHO_C" >&6
13825 else
13826   if test "$ac_cv_type_long_long_int" = yes; then
13827   # The cast to unsigned long works around a bug in the HP C Compiler
13828   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13829   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13830   # This bug is HP SR number 8606223364.
13831   if test "$cross_compiling" = yes; then
13832   # Depending upon the size, compute the lo and hi bounds.
13833 cat >conftest.$ac_ext <<_ACEOF
13834 #line $LINENO "configure"
13835 /* confdefs.h.  */
13836 _ACEOF
13837 cat confdefs.h >>conftest.$ac_ext
13838 cat >>conftest.$ac_ext <<_ACEOF
13839 /* end confdefs.h.  */
13840 $ac_includes_default
13841 int
13842 main ()
13843 {
13844 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= 0)];
13845 test_array [0] = 0
13846
13847   ;
13848   return 0;
13849 }
13850 _ACEOF
13851 rm -f conftest.$ac_objext
13852 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13853   (eval $ac_compile) 2>&5
13854   ac_status=$?
13855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13856   (exit $ac_status); } &&
13857          { ac_try='test -s conftest.$ac_objext'
13858   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13859   (eval $ac_try) 2>&5
13860   ac_status=$?
13861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13862   (exit $ac_status); }; }; then
13863   ac_lo=0 ac_mid=0
13864   while :; do
13865     cat >conftest.$ac_ext <<_ACEOF
13866 #line $LINENO "configure"
13867 /* confdefs.h.  */
13868 _ACEOF
13869 cat confdefs.h >>conftest.$ac_ext
13870 cat >>conftest.$ac_ext <<_ACEOF
13871 /* end confdefs.h.  */
13872 $ac_includes_default
13873 int
13874 main ()
13875 {
13876 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
13877 test_array [0] = 0
13878
13879   ;
13880   return 0;
13881 }
13882 _ACEOF
13883 rm -f conftest.$ac_objext
13884 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13885   (eval $ac_compile) 2>&5
13886   ac_status=$?
13887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13888   (exit $ac_status); } &&
13889          { ac_try='test -s conftest.$ac_objext'
13890   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13891   (eval $ac_try) 2>&5
13892   ac_status=$?
13893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13894   (exit $ac_status); }; }; then
13895   ac_hi=$ac_mid; break
13896 else
13897   echo "$as_me: failed program was:" >&5
13898 sed 's/^/| /' conftest.$ac_ext >&5
13899
13900 ac_lo=`expr $ac_mid + 1`
13901                     if test $ac_lo -le $ac_mid; then
13902                       ac_lo= ac_hi=
13903                       break
13904                     fi
13905                     ac_mid=`expr 2 '*' $ac_mid + 1`
13906 fi
13907 rm -f conftest.$ac_objext conftest.$ac_ext
13908   done
13909 else
13910   echo "$as_me: failed program was:" >&5
13911 sed 's/^/| /' conftest.$ac_ext >&5
13912
13913 cat >conftest.$ac_ext <<_ACEOF
13914 #line $LINENO "configure"
13915 /* confdefs.h.  */
13916 _ACEOF
13917 cat confdefs.h >>conftest.$ac_ext
13918 cat >>conftest.$ac_ext <<_ACEOF
13919 /* end confdefs.h.  */
13920 $ac_includes_default
13921 int
13922 main ()
13923 {
13924 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) < 0)];
13925 test_array [0] = 0
13926
13927   ;
13928   return 0;
13929 }
13930 _ACEOF
13931 rm -f conftest.$ac_objext
13932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13933   (eval $ac_compile) 2>&5
13934   ac_status=$?
13935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13936   (exit $ac_status); } &&
13937          { ac_try='test -s conftest.$ac_objext'
13938   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13939   (eval $ac_try) 2>&5
13940   ac_status=$?
13941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13942   (exit $ac_status); }; }; then
13943   ac_hi=-1 ac_mid=-1
13944   while :; do
13945     cat >conftest.$ac_ext <<_ACEOF
13946 #line $LINENO "configure"
13947 /* confdefs.h.  */
13948 _ACEOF
13949 cat confdefs.h >>conftest.$ac_ext
13950 cat >>conftest.$ac_ext <<_ACEOF
13951 /* end confdefs.h.  */
13952 $ac_includes_default
13953 int
13954 main ()
13955 {
13956 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= $ac_mid)];
13957 test_array [0] = 0
13958
13959   ;
13960   return 0;
13961 }
13962 _ACEOF
13963 rm -f conftest.$ac_objext
13964 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13965   (eval $ac_compile) 2>&5
13966   ac_status=$?
13967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13968   (exit $ac_status); } &&
13969          { ac_try='test -s conftest.$ac_objext'
13970   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13971   (eval $ac_try) 2>&5
13972   ac_status=$?
13973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13974   (exit $ac_status); }; }; then
13975   ac_lo=$ac_mid; break
13976 else
13977   echo "$as_me: failed program was:" >&5
13978 sed 's/^/| /' conftest.$ac_ext >&5
13979
13980 ac_hi=`expr '(' $ac_mid ')' - 1`
13981                        if test $ac_mid -le $ac_hi; then
13982                          ac_lo= ac_hi=
13983                          break
13984                        fi
13985                        ac_mid=`expr 2 '*' $ac_mid`
13986 fi
13987 rm -f conftest.$ac_objext conftest.$ac_ext
13988   done
13989 else
13990   echo "$as_me: failed program was:" >&5
13991 sed 's/^/| /' conftest.$ac_ext >&5
13992
13993 ac_lo= ac_hi=
13994 fi
13995 rm -f conftest.$ac_objext conftest.$ac_ext
13996 fi
13997 rm -f conftest.$ac_objext conftest.$ac_ext
13998 # Binary search between lo and hi bounds.
13999 while test "x$ac_lo" != "x$ac_hi"; do
14000   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14001   cat >conftest.$ac_ext <<_ACEOF
14002 #line $LINENO "configure"
14003 /* confdefs.h.  */
14004 _ACEOF
14005 cat confdefs.h >>conftest.$ac_ext
14006 cat >>conftest.$ac_ext <<_ACEOF
14007 /* end confdefs.h.  */
14008 $ac_includes_default
14009 int
14010 main ()
14011 {
14012 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
14013 test_array [0] = 0
14014
14015   ;
14016   return 0;
14017 }
14018 _ACEOF
14019 rm -f conftest.$ac_objext
14020 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14021   (eval $ac_compile) 2>&5
14022   ac_status=$?
14023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14024   (exit $ac_status); } &&
14025          { ac_try='test -s conftest.$ac_objext'
14026   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14027   (eval $ac_try) 2>&5
14028   ac_status=$?
14029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14030   (exit $ac_status); }; }; then
14031   ac_hi=$ac_mid
14032 else
14033   echo "$as_me: failed program was:" >&5
14034 sed 's/^/| /' conftest.$ac_ext >&5
14035
14036 ac_lo=`expr '(' $ac_mid ')' + 1`
14037 fi
14038 rm -f conftest.$ac_objext conftest.$ac_ext
14039 done
14040 case $ac_lo in
14041 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
14042 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
14043 See \`config.log' for more details." >&5
14044 echo "$as_me: error: cannot compute sizeof (long long int), 77
14045 See \`config.log' for more details." >&2;}
14046    { (exit 1); exit 1; }; } ;;
14047 esac
14048 else
14049   if test "$cross_compiling" = yes; then
14050   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14051 See \`config.log' for more details." >&5
14052 echo "$as_me: error: cannot run test program while cross compiling
14053 See \`config.log' for more details." >&2;}
14054    { (exit 1); exit 1; }; }
14055 else
14056   cat >conftest.$ac_ext <<_ACEOF
14057 #line $LINENO "configure"
14058 /* confdefs.h.  */
14059 _ACEOF
14060 cat confdefs.h >>conftest.$ac_ext
14061 cat >>conftest.$ac_ext <<_ACEOF
14062 /* end confdefs.h.  */
14063 $ac_includes_default
14064 long longval () { return (long) (sizeof (long long int)); }
14065 unsigned long ulongval () { return (long) (sizeof (long long int)); }
14066 #include <stdio.h>
14067 #include <stdlib.h>
14068 int
14069 main ()
14070 {
14071
14072   FILE *f = fopen ("conftest.val", "w");
14073   if (! f)
14074     exit (1);
14075   if (((long) (sizeof (long long int))) < 0)
14076     {
14077       long i = longval ();
14078       if (i != ((long) (sizeof (long long int))))
14079         exit (1);
14080       fprintf (f, "%ld\n", i);
14081     }
14082   else
14083     {
14084       unsigned long i = ulongval ();
14085       if (i != ((long) (sizeof (long long int))))
14086         exit (1);
14087       fprintf (f, "%lu\n", i);
14088     }
14089   exit (ferror (f) || fclose (f) != 0);
14090
14091   ;
14092   return 0;
14093 }
14094 _ACEOF
14095 rm -f conftest$ac_exeext
14096 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14097   (eval $ac_link) 2>&5
14098   ac_status=$?
14099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14100   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14101   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14102   (eval $ac_try) 2>&5
14103   ac_status=$?
14104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14105   (exit $ac_status); }; }; then
14106   ac_cv_sizeof_long_long_int=`cat conftest.val`
14107 else
14108   echo "$as_me: program exited with status $ac_status" >&5
14109 echo "$as_me: failed program was:" >&5
14110 sed 's/^/| /' conftest.$ac_ext >&5
14111
14112 ( exit $ac_status )
14113 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
14114 See \`config.log' for more details." >&5
14115 echo "$as_me: error: cannot compute sizeof (long long int), 77
14116 See \`config.log' for more details." >&2;}
14117    { (exit 1); exit 1; }; }
14118 fi
14119 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14120 fi
14121 fi
14122 rm -f conftest.val
14123 else
14124   ac_cv_sizeof_long_long_int=0
14125 fi
14126 fi
14127 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
14128 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6
14129 cat >>confdefs.h <<_ACEOF
14130 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
14131 _ACEOF
14132
14133
14134 echo "$as_me:$LINENO: checking for int *" >&5
14135 echo $ECHO_N "checking for int *... $ECHO_C" >&6
14136 if test "${ac_cv_type_int_p+set}" = set; then
14137   echo $ECHO_N "(cached) $ECHO_C" >&6
14138 else
14139   cat >conftest.$ac_ext <<_ACEOF
14140 #line $LINENO "configure"
14141 /* confdefs.h.  */
14142 _ACEOF
14143 cat confdefs.h >>conftest.$ac_ext
14144 cat >>conftest.$ac_ext <<_ACEOF
14145 /* end confdefs.h.  */
14146 $ac_includes_default
14147 int
14148 main ()
14149 {
14150 if ((int * *) 0)
14151   return 0;
14152 if (sizeof (int *))
14153   return 0;
14154   ;
14155   return 0;
14156 }
14157 _ACEOF
14158 rm -f conftest.$ac_objext
14159 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14160   (eval $ac_compile) 2>&5
14161   ac_status=$?
14162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14163   (exit $ac_status); } &&
14164          { ac_try='test -s conftest.$ac_objext'
14165   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14166   (eval $ac_try) 2>&5
14167   ac_status=$?
14168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14169   (exit $ac_status); }; }; then
14170   ac_cv_type_int_p=yes
14171 else
14172   echo "$as_me: failed program was:" >&5
14173 sed 's/^/| /' conftest.$ac_ext >&5
14174
14175 ac_cv_type_int_p=no
14176 fi
14177 rm -f conftest.$ac_objext conftest.$ac_ext
14178 fi
14179 echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
14180 echo "${ECHO_T}$ac_cv_type_int_p" >&6
14181
14182 echo "$as_me:$LINENO: checking size of int *" >&5
14183 echo $ECHO_N "checking size of int *... $ECHO_C" >&6
14184 if test "${ac_cv_sizeof_int_p+set}" = set; then
14185   echo $ECHO_N "(cached) $ECHO_C" >&6
14186 else
14187   if test "$ac_cv_type_int_p" = yes; then
14188   # The cast to unsigned long works around a bug in the HP C Compiler
14189   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14190   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14191   # This bug is HP SR number 8606223364.
14192   if test "$cross_compiling" = yes; then
14193   # Depending upon the size, compute the lo and hi bounds.
14194 cat >conftest.$ac_ext <<_ACEOF
14195 #line $LINENO "configure"
14196 /* confdefs.h.  */
14197 _ACEOF
14198 cat confdefs.h >>conftest.$ac_ext
14199 cat >>conftest.$ac_ext <<_ACEOF
14200 /* end confdefs.h.  */
14201 $ac_includes_default
14202 int
14203 main ()
14204 {
14205 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= 0)];
14206 test_array [0] = 0
14207
14208   ;
14209   return 0;
14210 }
14211 _ACEOF
14212 rm -f conftest.$ac_objext
14213 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14214   (eval $ac_compile) 2>&5
14215   ac_status=$?
14216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14217   (exit $ac_status); } &&
14218          { ac_try='test -s conftest.$ac_objext'
14219   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14220   (eval $ac_try) 2>&5
14221   ac_status=$?
14222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14223   (exit $ac_status); }; }; then
14224   ac_lo=0 ac_mid=0
14225   while :; do
14226     cat >conftest.$ac_ext <<_ACEOF
14227 #line $LINENO "configure"
14228 /* confdefs.h.  */
14229 _ACEOF
14230 cat confdefs.h >>conftest.$ac_ext
14231 cat >>conftest.$ac_ext <<_ACEOF
14232 /* end confdefs.h.  */
14233 $ac_includes_default
14234 int
14235 main ()
14236 {
14237 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
14238 test_array [0] = 0
14239
14240   ;
14241   return 0;
14242 }
14243 _ACEOF
14244 rm -f conftest.$ac_objext
14245 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14246   (eval $ac_compile) 2>&5
14247   ac_status=$?
14248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14249   (exit $ac_status); } &&
14250          { ac_try='test -s conftest.$ac_objext'
14251   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14252   (eval $ac_try) 2>&5
14253   ac_status=$?
14254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14255   (exit $ac_status); }; }; then
14256   ac_hi=$ac_mid; break
14257 else
14258   echo "$as_me: failed program was:" >&5
14259 sed 's/^/| /' conftest.$ac_ext >&5
14260
14261 ac_lo=`expr $ac_mid + 1`
14262                     if test $ac_lo -le $ac_mid; then
14263                       ac_lo= ac_hi=
14264                       break
14265                     fi
14266                     ac_mid=`expr 2 '*' $ac_mid + 1`
14267 fi
14268 rm -f conftest.$ac_objext conftest.$ac_ext
14269   done
14270 else
14271   echo "$as_me: failed program was:" >&5
14272 sed 's/^/| /' conftest.$ac_ext >&5
14273
14274 cat >conftest.$ac_ext <<_ACEOF
14275 #line $LINENO "configure"
14276 /* confdefs.h.  */
14277 _ACEOF
14278 cat confdefs.h >>conftest.$ac_ext
14279 cat >>conftest.$ac_ext <<_ACEOF
14280 /* end confdefs.h.  */
14281 $ac_includes_default
14282 int
14283 main ()
14284 {
14285 static int test_array [1 - 2 * !(((long) (sizeof (int *))) < 0)];
14286 test_array [0] = 0
14287
14288   ;
14289   return 0;
14290 }
14291 _ACEOF
14292 rm -f conftest.$ac_objext
14293 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14294   (eval $ac_compile) 2>&5
14295   ac_status=$?
14296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14297   (exit $ac_status); } &&
14298          { ac_try='test -s conftest.$ac_objext'
14299   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14300   (eval $ac_try) 2>&5
14301   ac_status=$?
14302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14303   (exit $ac_status); }; }; then
14304   ac_hi=-1 ac_mid=-1
14305   while :; do
14306     cat >conftest.$ac_ext <<_ACEOF
14307 #line $LINENO "configure"
14308 /* confdefs.h.  */
14309 _ACEOF
14310 cat confdefs.h >>conftest.$ac_ext
14311 cat >>conftest.$ac_ext <<_ACEOF
14312 /* end confdefs.h.  */
14313 $ac_includes_default
14314 int
14315 main ()
14316 {
14317 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= $ac_mid)];
14318 test_array [0] = 0
14319
14320   ;
14321   return 0;
14322 }
14323 _ACEOF
14324 rm -f conftest.$ac_objext
14325 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14326   (eval $ac_compile) 2>&5
14327   ac_status=$?
14328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14329   (exit $ac_status); } &&
14330          { ac_try='test -s conftest.$ac_objext'
14331   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14332   (eval $ac_try) 2>&5
14333   ac_status=$?
14334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14335   (exit $ac_status); }; }; then
14336   ac_lo=$ac_mid; break
14337 else
14338   echo "$as_me: failed program was:" >&5
14339 sed 's/^/| /' conftest.$ac_ext >&5
14340
14341 ac_hi=`expr '(' $ac_mid ')' - 1`
14342                        if test $ac_mid -le $ac_hi; then
14343                          ac_lo= ac_hi=
14344                          break
14345                        fi
14346                        ac_mid=`expr 2 '*' $ac_mid`
14347 fi
14348 rm -f conftest.$ac_objext conftest.$ac_ext
14349   done
14350 else
14351   echo "$as_me: failed program was:" >&5
14352 sed 's/^/| /' conftest.$ac_ext >&5
14353
14354 ac_lo= ac_hi=
14355 fi
14356 rm -f conftest.$ac_objext conftest.$ac_ext
14357 fi
14358 rm -f conftest.$ac_objext conftest.$ac_ext
14359 # Binary search between lo and hi bounds.
14360 while test "x$ac_lo" != "x$ac_hi"; do
14361   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14362   cat >conftest.$ac_ext <<_ACEOF
14363 #line $LINENO "configure"
14364 /* confdefs.h.  */
14365 _ACEOF
14366 cat confdefs.h >>conftest.$ac_ext
14367 cat >>conftest.$ac_ext <<_ACEOF
14368 /* end confdefs.h.  */
14369 $ac_includes_default
14370 int
14371 main ()
14372 {
14373 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
14374 test_array [0] = 0
14375
14376   ;
14377   return 0;
14378 }
14379 _ACEOF
14380 rm -f conftest.$ac_objext
14381 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14382   (eval $ac_compile) 2>&5
14383   ac_status=$?
14384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14385   (exit $ac_status); } &&
14386          { ac_try='test -s conftest.$ac_objext'
14387   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14388   (eval $ac_try) 2>&5
14389   ac_status=$?
14390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14391   (exit $ac_status); }; }; then
14392   ac_hi=$ac_mid
14393 else
14394   echo "$as_me: failed program was:" >&5
14395 sed 's/^/| /' conftest.$ac_ext >&5
14396
14397 ac_lo=`expr '(' $ac_mid ')' + 1`
14398 fi
14399 rm -f conftest.$ac_objext conftest.$ac_ext
14400 done
14401 case $ac_lo in
14402 ?*) ac_cv_sizeof_int_p=$ac_lo;;
14403 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
14404 See \`config.log' for more details." >&5
14405 echo "$as_me: error: cannot compute sizeof (int *), 77
14406 See \`config.log' for more details." >&2;}
14407    { (exit 1); exit 1; }; } ;;
14408 esac
14409 else
14410   if test "$cross_compiling" = yes; then
14411   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14412 See \`config.log' for more details." >&5
14413 echo "$as_me: error: cannot run test program while cross compiling
14414 See \`config.log' for more details." >&2;}
14415    { (exit 1); exit 1; }; }
14416 else
14417   cat >conftest.$ac_ext <<_ACEOF
14418 #line $LINENO "configure"
14419 /* confdefs.h.  */
14420 _ACEOF
14421 cat confdefs.h >>conftest.$ac_ext
14422 cat >>conftest.$ac_ext <<_ACEOF
14423 /* end confdefs.h.  */
14424 $ac_includes_default
14425 long longval () { return (long) (sizeof (int *)); }
14426 unsigned long ulongval () { return (long) (sizeof (int *)); }
14427 #include <stdio.h>
14428 #include <stdlib.h>
14429 int
14430 main ()
14431 {
14432
14433   FILE *f = fopen ("conftest.val", "w");
14434   if (! f)
14435     exit (1);
14436   if (((long) (sizeof (int *))) < 0)
14437     {
14438       long i = longval ();
14439       if (i != ((long) (sizeof (int *))))
14440         exit (1);
14441       fprintf (f, "%ld\n", i);
14442     }
14443   else
14444     {
14445       unsigned long i = ulongval ();
14446       if (i != ((long) (sizeof (int *))))
14447         exit (1);
14448       fprintf (f, "%lu\n", i);
14449     }
14450   exit (ferror (f) || fclose (f) != 0);
14451
14452   ;
14453   return 0;
14454 }
14455 _ACEOF
14456 rm -f conftest$ac_exeext
14457 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14458   (eval $ac_link) 2>&5
14459   ac_status=$?
14460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14461   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14462   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14463   (eval $ac_try) 2>&5
14464   ac_status=$?
14465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14466   (exit $ac_status); }; }; then
14467   ac_cv_sizeof_int_p=`cat conftest.val`
14468 else
14469   echo "$as_me: program exited with status $ac_status" >&5
14470 echo "$as_me: failed program was:" >&5
14471 sed 's/^/| /' conftest.$ac_ext >&5
14472
14473 ( exit $ac_status )
14474 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
14475 See \`config.log' for more details." >&5
14476 echo "$as_me: error: cannot compute sizeof (int *), 77
14477 See \`config.log' for more details." >&2;}
14478    { (exit 1); exit 1; }; }
14479 fi
14480 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14481 fi
14482 fi
14483 rm -f conftest.val
14484 else
14485   ac_cv_sizeof_int_p=0
14486 fi
14487 fi
14488 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
14489 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6
14490 cat >>confdefs.h <<_ACEOF
14491 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
14492 _ACEOF
14493
14494
14495
14496 # Check for sys/types.h types
14497 echo "$as_me:$LINENO: checking for u_int type" >&5
14498 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6
14499 if test "${ac_cv_have_u_int+set}" = set; then
14500   echo $ECHO_N "(cached) $ECHO_C" >&6
14501 else
14502
14503     cat >conftest.$ac_ext <<_ACEOF
14504 #line $LINENO "configure"
14505 /* confdefs.h.  */
14506 _ACEOF
14507 cat confdefs.h >>conftest.$ac_ext
14508 cat >>conftest.$ac_ext <<_ACEOF
14509 /* end confdefs.h.  */
14510  #include <sys/types.h>
14511 int
14512 main ()
14513 {
14514  u_int a; a = 1;
14515   ;
14516   return 0;
14517 }
14518 _ACEOF
14519 rm -f conftest.$ac_objext
14520 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14521   (eval $ac_compile) 2>&5
14522   ac_status=$?
14523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14524   (exit $ac_status); } &&
14525          { ac_try='test -s conftest.$ac_objext'
14526   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14527   (eval $ac_try) 2>&5
14528   ac_status=$?
14529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14530   (exit $ac_status); }; }; then
14531    ac_cv_have_u_int="yes"
14532 else
14533   echo "$as_me: failed program was:" >&5
14534 sed 's/^/| /' conftest.$ac_ext >&5
14535
14536  ac_cv_have_u_int="no"
14537
14538 fi
14539 rm -f conftest.$ac_objext conftest.$ac_ext
14540
14541 fi
14542 echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
14543 echo "${ECHO_T}$ac_cv_have_u_int" >&6
14544 if test "x$ac_cv_have_u_int" = "xyes" ; then
14545    cat >>confdefs.h <<\_ACEOF
14546 #define HAVE_U_INT 1
14547 _ACEOF
14548
14549    have_u_int=1
14550 fi
14551
14552 echo "$as_me:$LINENO: checking for intmax_t type" >&5
14553 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6
14554 if test "${ac_cv_have_intmax_t+set}" = set; then
14555   echo $ECHO_N "(cached) $ECHO_C" >&6
14556 else
14557
14558    cat >conftest.$ac_ext <<_ACEOF
14559 #line $LINENO "configure"
14560 /* confdefs.h.  */
14561 _ACEOF
14562 cat confdefs.h >>conftest.$ac_ext
14563 cat >>conftest.$ac_ext <<_ACEOF
14564 /* end confdefs.h.  */
14565  #include <sys/types.h>
14566 int
14567 main ()
14568 {
14569  intmax_t a; a = 1;
14570   ;
14571   return 0;
14572 }
14573 _ACEOF
14574 rm -f conftest.$ac_objext
14575 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14576   (eval $ac_compile) 2>&5
14577   ac_status=$?
14578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14579   (exit $ac_status); } &&
14580          { ac_try='test -s conftest.$ac_objext'
14581   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14582   (eval $ac_try) 2>&5
14583   ac_status=$?
14584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14585   (exit $ac_status); }; }; then
14586    ac_cv_have_intmax_t="yes"
14587 else
14588   echo "$as_me: failed program was:" >&5
14589 sed 's/^/| /' conftest.$ac_ext >&5
14590
14591
14592          cat >conftest.$ac_ext <<_ACEOF
14593 #line $LINENO "configure"
14594 /* confdefs.h.  */
14595 _ACEOF
14596 cat confdefs.h >>conftest.$ac_ext
14597 cat >>conftest.$ac_ext <<_ACEOF
14598 /* end confdefs.h.  */
14599  #include <stdint.h>
14600 int
14601 main ()
14602 {
14603  intmax_t a; a = 1;
14604   ;
14605   return 0;
14606 }
14607 _ACEOF
14608 rm -f conftest.$ac_objext
14609 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14610   (eval $ac_compile) 2>&5
14611   ac_status=$?
14612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14613   (exit $ac_status); } &&
14614          { ac_try='test -s conftest.$ac_objext'
14615   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14616   (eval $ac_try) 2>&5
14617   ac_status=$?
14618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14619   (exit $ac_status); }; }; then
14620    ac_cv_have_intmax_t="yes"
14621 else
14622   echo "$as_me: failed program was:" >&5
14623 sed 's/^/| /' conftest.$ac_ext >&5
14624
14625  ac_cv_have_intmax_t="no"
14626
14627 fi
14628 rm -f conftest.$ac_objext conftest.$ac_ext
14629
14630
14631 fi
14632 rm -f conftest.$ac_objext conftest.$ac_ext
14633
14634
14635 fi
14636 echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
14637 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6
14638 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
14639    cat >>confdefs.h <<\_ACEOF
14640 #define HAVE_INTMAX_T 1
14641 _ACEOF
14642
14643    have_intmax_t=1
14644 fi
14645
14646
14647 echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
14648 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6
14649 if test "${ac_cv_have_u_intmax_t+set}" = set; then
14650   echo $ECHO_N "(cached) $ECHO_C" >&6
14651 else
14652
14653    cat >conftest.$ac_ext <<_ACEOF
14654 #line $LINENO "configure"
14655 /* confdefs.h.  */
14656 _ACEOF
14657 cat confdefs.h >>conftest.$ac_ext
14658 cat >>conftest.$ac_ext <<_ACEOF
14659 /* end confdefs.h.  */
14660  #include <sys/types.h>
14661 int
14662 main ()
14663 {
14664  u_intmax_t a; a = 1;
14665   ;
14666   return 0;
14667 }
14668 _ACEOF
14669 rm -f conftest.$ac_objext
14670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14671   (eval $ac_compile) 2>&5
14672   ac_status=$?
14673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14674   (exit $ac_status); } &&
14675          { ac_try='test -s conftest.$ac_objext'
14676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14677   (eval $ac_try) 2>&5
14678   ac_status=$?
14679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14680   (exit $ac_status); }; }; then
14681    ac_cv_have_u_intmax_t="yes"
14682 else
14683   echo "$as_me: failed program was:" >&5
14684 sed 's/^/| /' conftest.$ac_ext >&5
14685
14686
14687          cat >conftest.$ac_ext <<_ACEOF
14688 #line $LINENO "configure"
14689 /* confdefs.h.  */
14690 _ACEOF
14691 cat confdefs.h >>conftest.$ac_ext
14692 cat >>conftest.$ac_ext <<_ACEOF
14693 /* end confdefs.h.  */
14694  #include <stdint.h>
14695 int
14696 main ()
14697 {
14698  u_intmax_t a; a = 1;
14699   ;
14700   return 0;
14701 }
14702 _ACEOF
14703 rm -f conftest.$ac_objext
14704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14705   (eval $ac_compile) 2>&5
14706   ac_status=$?
14707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14708   (exit $ac_status); } &&
14709          { ac_try='test -s conftest.$ac_objext'
14710   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14711   (eval $ac_try) 2>&5
14712   ac_status=$?
14713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14714   (exit $ac_status); }; }; then
14715    ac_cv_have_u_intmax_t="yes"
14716 else
14717   echo "$as_me: failed program was:" >&5
14718 sed 's/^/| /' conftest.$ac_ext >&5
14719
14720  ac_cv_have_u_intmax_t="no"
14721
14722 fi
14723 rm -f conftest.$ac_objext conftest.$ac_ext
14724
14725
14726 fi
14727 rm -f conftest.$ac_objext conftest.$ac_ext
14728
14729 fi
14730 echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
14731 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6
14732 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
14733    cat >>confdefs.h <<\_ACEOF
14734 #define HAVE_U_INTMAX_T 1
14735 _ACEOF
14736
14737    have_u_intmax_t=1
14738 fi
14739
14740
14741 echo "$as_me:$LINENO: checking for intXX_t types" >&5
14742 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6
14743 if test "${ac_cv_have_intxx_t+set}" = set; then
14744   echo $ECHO_N "(cached) $ECHO_C" >&6
14745 else
14746
14747    cat >conftest.$ac_ext <<_ACEOF
14748 #line $LINENO "configure"
14749 /* confdefs.h.  */
14750 _ACEOF
14751 cat confdefs.h >>conftest.$ac_ext
14752 cat >>conftest.$ac_ext <<_ACEOF
14753 /* end confdefs.h.  */
14754  #include <sys/types.h>
14755 int
14756 main ()
14757 {
14758  int8_t a; int16_t b; int32_t c; a = b = c = 1;
14759   ;
14760   return 0;
14761 }
14762 _ACEOF
14763 rm -f conftest.$ac_objext
14764 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14765   (eval $ac_compile) 2>&5
14766   ac_status=$?
14767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14768   (exit $ac_status); } &&
14769          { ac_try='test -s conftest.$ac_objext'
14770   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14771   (eval $ac_try) 2>&5
14772   ac_status=$?
14773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14774   (exit $ac_status); }; }; then
14775    ac_cv_have_intxx_t="yes"
14776 else
14777   echo "$as_me: failed program was:" >&5
14778 sed 's/^/| /' conftest.$ac_ext >&5
14779
14780  ac_cv_have_intxx_t="no"
14781
14782 fi
14783 rm -f conftest.$ac_objext conftest.$ac_ext
14784
14785 fi
14786 echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
14787 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6
14788 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
14789    cat >>confdefs.h <<\_ACEOF
14790 #define HAVE_INTXX_T 1
14791 _ACEOF
14792
14793    have_intxx_t=1
14794 fi
14795
14796 echo "$as_me:$LINENO: checking for int64_t type" >&5
14797 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6
14798 if test "${ac_cv_have_int64_t+set}" = set; then
14799   echo $ECHO_N "(cached) $ECHO_C" >&6
14800 else
14801
14802    cat >conftest.$ac_ext <<_ACEOF
14803 #line $LINENO "configure"
14804 /* confdefs.h.  */
14805 _ACEOF
14806 cat confdefs.h >>conftest.$ac_ext
14807 cat >>conftest.$ac_ext <<_ACEOF
14808 /* end confdefs.h.  */
14809  #include <sys/types.h>
14810 int
14811 main ()
14812 {
14813  int64_t a; a = 1;
14814   ;
14815   return 0;
14816 }
14817 _ACEOF
14818 rm -f conftest.$ac_objext
14819 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14820   (eval $ac_compile) 2>&5
14821   ac_status=$?
14822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14823   (exit $ac_status); } &&
14824          { ac_try='test -s conftest.$ac_objext'
14825   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14826   (eval $ac_try) 2>&5
14827   ac_status=$?
14828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14829   (exit $ac_status); }; }; then
14830    ac_cv_have_int64_t="yes"
14831 else
14832   echo "$as_me: failed program was:" >&5
14833 sed 's/^/| /' conftest.$ac_ext >&5
14834
14835  ac_cv_have_int64_t="no"
14836
14837 fi
14838 rm -f conftest.$ac_objext conftest.$ac_ext
14839
14840 fi
14841 echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
14842 echo "${ECHO_T}$ac_cv_have_int64_t" >&6
14843 if test "x$ac_cv_have_int64_t" = "xyes" ; then
14844    cat >>confdefs.h <<\_ACEOF
14845 #define HAVE_INT64_T 1
14846 _ACEOF
14847
14848    have_int64_t=1
14849 fi
14850
14851 echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
14852 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6
14853 if test "${ac_cv_have_u_intxx_t+set}" = set; then
14854   echo $ECHO_N "(cached) $ECHO_C" >&6
14855 else
14856
14857    cat >conftest.$ac_ext <<_ACEOF
14858 #line $LINENO "configure"
14859 /* confdefs.h.  */
14860 _ACEOF
14861 cat confdefs.h >>conftest.$ac_ext
14862 cat >>conftest.$ac_ext <<_ACEOF
14863 /* end confdefs.h.  */
14864  #include <sys/types.h>
14865 int
14866 main ()
14867 {
14868  u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
14869   ;
14870   return 0;
14871 }
14872 _ACEOF
14873 rm -f conftest.$ac_objext
14874 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14875   (eval $ac_compile) 2>&5
14876   ac_status=$?
14877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14878   (exit $ac_status); } &&
14879          { ac_try='test -s conftest.$ac_objext'
14880   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14881   (eval $ac_try) 2>&5
14882   ac_status=$?
14883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14884   (exit $ac_status); }; }; then
14885    ac_cv_have_u_intxx_t="yes"
14886 else
14887   echo "$as_me: failed program was:" >&5
14888 sed 's/^/| /' conftest.$ac_ext >&5
14889
14890  ac_cv_have_u_intxx_t="no"
14891
14892 fi
14893 rm -f conftest.$ac_objext conftest.$ac_ext
14894
14895 fi
14896 echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
14897 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6
14898 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
14899    cat >>confdefs.h <<\_ACEOF
14900 #define HAVE_U_INTXX_T 1
14901 _ACEOF
14902
14903    have_u_intxx_t=1
14904 fi
14905
14906 echo "$as_me:$LINENO: checking for u_int64_t types" >&5
14907 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6
14908 if test "${ac_cv_have_u_int64_t+set}" = set; then
14909   echo $ECHO_N "(cached) $ECHO_C" >&6
14910 else
14911
14912    cat >conftest.$ac_ext <<_ACEOF
14913 #line $LINENO "configure"
14914 /* confdefs.h.  */
14915 _ACEOF
14916 cat confdefs.h >>conftest.$ac_ext
14917 cat >>conftest.$ac_ext <<_ACEOF
14918 /* end confdefs.h.  */
14919  #include <sys/types.h>
14920 int
14921 main ()
14922 {
14923  u_int64_t a; a = 1;
14924   ;
14925   return 0;
14926 }
14927 _ACEOF
14928 rm -f conftest.$ac_objext
14929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14930   (eval $ac_compile) 2>&5
14931   ac_status=$?
14932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14933   (exit $ac_status); } &&
14934          { ac_try='test -s conftest.$ac_objext'
14935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14936   (eval $ac_try) 2>&5
14937   ac_status=$?
14938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14939   (exit $ac_status); }; }; then
14940    ac_cv_have_u_int64_t="yes"
14941 else
14942   echo "$as_me: failed program was:" >&5
14943 sed 's/^/| /' conftest.$ac_ext >&5
14944
14945  ac_cv_have_u_int64_t="no"
14946
14947 fi
14948 rm -f conftest.$ac_objext conftest.$ac_ext
14949
14950 fi
14951 echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
14952 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6
14953 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
14954    cat >>confdefs.h <<\_ACEOF
14955 #define HAVE_U_INT64_T 1
14956 _ACEOF
14957
14958    have_u_int64_t=1
14959 fi
14960
14961 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
14962            test "x$ac_cv_header_sys_bitypes_h" = "xyes")
14963 then
14964    echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
14965 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6
14966    cat >conftest.$ac_ext <<_ACEOF
14967 #line $LINENO "configure"
14968 /* confdefs.h.  */
14969 _ACEOF
14970 cat confdefs.h >>conftest.$ac_ext
14971 cat >>conftest.$ac_ext <<_ACEOF
14972 /* end confdefs.h.  */
14973  #include <sys/bitypes.h>
14974 int
14975 main ()
14976 {
14977  int8_t a; int16_t b; int32_t c;
14978         u_int8_t e; u_int16_t f; u_int32_t g;
14979         a = b = c = e = f = g = 1;
14980   ;
14981   return 0;
14982 }
14983 _ACEOF
14984 rm -f conftest.$ac_objext
14985 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14986   (eval $ac_compile) 2>&5
14987   ac_status=$?
14988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14989   (exit $ac_status); } &&
14990          { ac_try='test -s conftest.$ac_objext'
14991   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14992   (eval $ac_try) 2>&5
14993   ac_status=$?
14994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14995   (exit $ac_status); }; }; then
14996    cat >>confdefs.h <<\_ACEOF
14997 #define HAVE_U_INTXX_T 1
14998 _ACEOF
14999
15000         cat >>confdefs.h <<\_ACEOF
15001 #define HAVE_INTXX_T 1
15002 _ACEOF
15003
15004         cat >>confdefs.h <<\_ACEOF
15005 #define HAVE_SYS_BITYPES_H 1
15006 _ACEOF
15007
15008         echo "$as_me:$LINENO: result: yes" >&5
15009 echo "${ECHO_T}yes" >&6
15010 else
15011   echo "$as_me: failed program was:" >&5
15012 sed 's/^/| /' conftest.$ac_ext >&5
15013
15014  echo "$as_me:$LINENO: result: no" >&5
15015 echo "${ECHO_T}no" >&6
15016
15017 fi
15018 rm -f conftest.$ac_objext conftest.$ac_ext
15019 fi
15020
15021 if test -z "$have_u_intxx_t" ; then
15022    echo "$as_me:$LINENO: checking for uintXX_t types" >&5
15023 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6
15024 if test "${ac_cv_have_uintxx_t+set}" = set; then
15025   echo $ECHO_N "(cached) $ECHO_C" >&6
15026 else
15027
15028       cat >conftest.$ac_ext <<_ACEOF
15029 #line $LINENO "configure"
15030 /* confdefs.h.  */
15031 _ACEOF
15032 cat confdefs.h >>conftest.$ac_ext
15033 cat >>conftest.$ac_ext <<_ACEOF
15034 /* end confdefs.h.  */
15035  #include <sys/types.h>
15036 int
15037 main ()
15038 {
15039  uint8_t a; uint16_t b;
15040            uint32_t c; a = b = c = 1;
15041   ;
15042   return 0;
15043 }
15044 _ACEOF
15045 rm -f conftest.$ac_objext
15046 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15047   (eval $ac_compile) 2>&5
15048   ac_status=$?
15049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15050   (exit $ac_status); } &&
15051          { ac_try='test -s conftest.$ac_objext'
15052   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15053   (eval $ac_try) 2>&5
15054   ac_status=$?
15055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15056   (exit $ac_status); }; }; then
15057    ac_cv_have_uintxx_t="yes"
15058 else
15059   echo "$as_me: failed program was:" >&5
15060 sed 's/^/| /' conftest.$ac_ext >&5
15061
15062  ac_cv_have_uintxx_t="no"
15063
15064 fi
15065 rm -f conftest.$ac_objext conftest.$ac_ext
15066
15067 fi
15068 echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
15069 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6
15070    if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
15071       cat >>confdefs.h <<\_ACEOF
15072 #define HAVE_UINTXX_T 1
15073 _ACEOF
15074
15075    fi
15076 fi
15077
15078
15079
15080
15081
15082
15083
15084
15085
15086
15087
15088
15089
15090
15091
15092 for ac_func in \
15093         fork \
15094         getcwd \
15095         gethostname \
15096         getpid \
15097         gettimeofday \
15098         setpgid \
15099         setpgrp \
15100         setsid \
15101         signal \
15102         strerror \
15103         strncmp \
15104         strncpy \
15105         vfprintf \
15106
15107 do
15108 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15109 echo "$as_me:$LINENO: checking for $ac_func" >&5
15110 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15111 if eval "test \"\${$as_ac_var+set}\" = set"; then
15112   echo $ECHO_N "(cached) $ECHO_C" >&6
15113 else
15114   cat >conftest.$ac_ext <<_ACEOF
15115 #line $LINENO "configure"
15116 /* confdefs.h.  */
15117 _ACEOF
15118 cat confdefs.h >>conftest.$ac_ext
15119 cat >>conftest.$ac_ext <<_ACEOF
15120 /* end confdefs.h.  */
15121 /* System header to define __stub macros and hopefully few prototypes,
15122     which can conflict with char $ac_func (); below.
15123     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15124     <limits.h> exists even on freestanding compilers.  */
15125 #ifdef __STDC__
15126 # include <limits.h>
15127 #else
15128 # include <assert.h>
15129 #endif
15130 /* Override any gcc2 internal prototype to avoid an error.  */
15131 #ifdef __cplusplus
15132 extern "C"
15133 {
15134 #endif
15135 /* We use char because int might match the return type of a gcc2
15136    builtin and then its argument prototype would still apply.  */
15137 char $ac_func ();
15138 /* The GNU C library defines this for functions which it implements
15139     to always fail with ENOSYS.  Some functions are actually named
15140     something starting with __ and the normal name is an alias.  */
15141 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15142 choke me
15143 #else
15144 char (*f) () = $ac_func;
15145 #endif
15146 #ifdef __cplusplus
15147 }
15148 #endif
15149
15150 int
15151 main ()
15152 {
15153 return f != $ac_func;
15154   ;
15155   return 0;
15156 }
15157 _ACEOF
15158 rm -f conftest.$ac_objext conftest$ac_exeext
15159 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15160   (eval $ac_link) 2>&5
15161   ac_status=$?
15162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15163   (exit $ac_status); } &&
15164          { ac_try='test -s conftest$ac_exeext'
15165   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15166   (eval $ac_try) 2>&5
15167   ac_status=$?
15168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15169   (exit $ac_status); }; }; then
15170   eval "$as_ac_var=yes"
15171 else
15172   echo "$as_me: failed program was:" >&5
15173 sed 's/^/| /' conftest.$ac_ext >&5
15174
15175 eval "$as_ac_var=no"
15176 fi
15177 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15178 fi
15179 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15180 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15181 if test `eval echo '${'$as_ac_var'}'` = yes; then
15182   cat >>confdefs.h <<_ACEOF
15183 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15184 _ACEOF
15185
15186 else
15187   echo 'configure: cannot find needed function.'; exit 1
15188
15189 fi
15190 done
15191
15192
15193
15194 for ac_func in fchdir
15195 do
15196 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15197 echo "$as_me:$LINENO: checking for $ac_func" >&5
15198 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15199 if eval "test \"\${$as_ac_var+set}\" = set"; then
15200   echo $ECHO_N "(cached) $ECHO_C" >&6
15201 else
15202   cat >conftest.$ac_ext <<_ACEOF
15203 #line $LINENO "configure"
15204 /* confdefs.h.  */
15205 _ACEOF
15206 cat confdefs.h >>conftest.$ac_ext
15207 cat >>conftest.$ac_ext <<_ACEOF
15208 /* end confdefs.h.  */
15209 /* System header to define __stub macros and hopefully few prototypes,
15210     which can conflict with char $ac_func (); below.
15211     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15212     <limits.h> exists even on freestanding compilers.  */
15213 #ifdef __STDC__
15214 # include <limits.h>
15215 #else
15216 # include <assert.h>
15217 #endif
15218 /* Override any gcc2 internal prototype to avoid an error.  */
15219 #ifdef __cplusplus
15220 extern "C"
15221 {
15222 #endif
15223 /* We use char because int might match the return type of a gcc2
15224    builtin and then its argument prototype would still apply.  */
15225 char $ac_func ();
15226 /* The GNU C library defines this for functions which it implements
15227     to always fail with ENOSYS.  Some functions are actually named
15228     something starting with __ and the normal name is an alias.  */
15229 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15230 choke me
15231 #else
15232 char (*f) () = $ac_func;
15233 #endif
15234 #ifdef __cplusplus
15235 }
15236 #endif
15237
15238 int
15239 main ()
15240 {
15241 return f != $ac_func;
15242   ;
15243   return 0;
15244 }
15245 _ACEOF
15246 rm -f conftest.$ac_objext conftest$ac_exeext
15247 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15248   (eval $ac_link) 2>&5
15249   ac_status=$?
15250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15251   (exit $ac_status); } &&
15252          { ac_try='test -s conftest$ac_exeext'
15253   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15254   (eval $ac_try) 2>&5
15255   ac_status=$?
15256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15257   (exit $ac_status); }; }; then
15258   eval "$as_ac_var=yes"
15259 else
15260   echo "$as_me: failed program was:" >&5
15261 sed 's/^/| /' conftest.$ac_ext >&5
15262
15263 eval "$as_ac_var=no"
15264 fi
15265 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15266 fi
15267 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15268 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15269 if test `eval echo '${'$as_ac_var'}'` = yes; then
15270   cat >>confdefs.h <<_ACEOF
15271 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15272 _ACEOF
15273  cat >>confdefs.h <<\_ACEOF
15274 #define HAVE_FCHDIR 1
15275 _ACEOF
15276
15277 fi
15278 done
15279
15280
15281 for ac_func in strtoll
15282 do
15283 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15284 echo "$as_me:$LINENO: checking for $ac_func" >&5
15285 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15286 if eval "test \"\${$as_ac_var+set}\" = set"; then
15287   echo $ECHO_N "(cached) $ECHO_C" >&6
15288 else
15289   cat >conftest.$ac_ext <<_ACEOF
15290 #line $LINENO "configure"
15291 /* confdefs.h.  */
15292 _ACEOF
15293 cat confdefs.h >>conftest.$ac_ext
15294 cat >>conftest.$ac_ext <<_ACEOF
15295 /* end confdefs.h.  */
15296 /* System header to define __stub macros and hopefully few prototypes,
15297     which can conflict with char $ac_func (); below.
15298     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15299     <limits.h> exists even on freestanding compilers.  */
15300 #ifdef __STDC__
15301 # include <limits.h>
15302 #else
15303 # include <assert.h>
15304 #endif
15305 /* Override any gcc2 internal prototype to avoid an error.  */
15306 #ifdef __cplusplus
15307 extern "C"
15308 {
15309 #endif
15310 /* We use char because int might match the return type of a gcc2
15311    builtin and then its argument prototype would still apply.  */
15312 char $ac_func ();
15313 /* The GNU C library defines this for functions which it implements
15314     to always fail with ENOSYS.  Some functions are actually named
15315     something starting with __ and the normal name is an alias.  */
15316 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15317 choke me
15318 #else
15319 char (*f) () = $ac_func;
15320 #endif
15321 #ifdef __cplusplus
15322 }
15323 #endif
15324
15325 int
15326 main ()
15327 {
15328 return f != $ac_func;
15329   ;
15330   return 0;
15331 }
15332 _ACEOF
15333 rm -f conftest.$ac_objext conftest$ac_exeext
15334 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15335   (eval $ac_link) 2>&5
15336   ac_status=$?
15337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15338   (exit $ac_status); } &&
15339          { ac_try='test -s conftest$ac_exeext'
15340   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15341   (eval $ac_try) 2>&5
15342   ac_status=$?
15343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15344   (exit $ac_status); }; }; then
15345   eval "$as_ac_var=yes"
15346 else
15347   echo "$as_me: failed program was:" >&5
15348 sed 's/^/| /' conftest.$ac_ext >&5
15349
15350 eval "$as_ac_var=no"
15351 fi
15352 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15353 fi
15354 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15355 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15356 if test `eval echo '${'$as_ac_var'}'` = yes; then
15357   cat >>confdefs.h <<_ACEOF
15358 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15359 _ACEOF
15360  cat >>confdefs.h <<\_ACEOF
15361 #define HAVE_STRTOLL 1
15362 _ACEOF
15363
15364 fi
15365 done
15366
15367
15368
15369 for ac_func in chflags
15370 do
15371 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15372 echo "$as_me:$LINENO: checking for $ac_func" >&5
15373 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15374 if eval "test \"\${$as_ac_var+set}\" = set"; then
15375   echo $ECHO_N "(cached) $ECHO_C" >&6
15376 else
15377   cat >conftest.$ac_ext <<_ACEOF
15378 #line $LINENO "configure"
15379 /* confdefs.h.  */
15380 _ACEOF
15381 cat confdefs.h >>conftest.$ac_ext
15382 cat >>conftest.$ac_ext <<_ACEOF
15383 /* end confdefs.h.  */
15384 /* System header to define __stub macros and hopefully few prototypes,
15385     which can conflict with char $ac_func (); below.
15386     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15387     <limits.h> exists even on freestanding compilers.  */
15388 #ifdef __STDC__
15389 # include <limits.h>
15390 #else
15391 # include <assert.h>
15392 #endif
15393 /* Override any gcc2 internal prototype to avoid an error.  */
15394 #ifdef __cplusplus
15395 extern "C"
15396 {
15397 #endif
15398 /* We use char because int might match the return type of a gcc2
15399    builtin and then its argument prototype would still apply.  */
15400 char $ac_func ();
15401 /* The GNU C library defines this for functions which it implements
15402     to always fail with ENOSYS.  Some functions are actually named
15403     something starting with __ and the normal name is an alias.  */
15404 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15405 choke me
15406 #else
15407 char (*f) () = $ac_func;
15408 #endif
15409 #ifdef __cplusplus
15410 }
15411 #endif
15412
15413 int
15414 main ()
15415 {
15416 return f != $ac_func;
15417   ;
15418   return 0;
15419 }
15420 _ACEOF
15421 rm -f conftest.$ac_objext conftest$ac_exeext
15422 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15423   (eval $ac_link) 2>&5
15424   ac_status=$?
15425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15426   (exit $ac_status); } &&
15427          { ac_try='test -s conftest$ac_exeext'
15428   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15429   (eval $ac_try) 2>&5
15430   ac_status=$?
15431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15432   (exit $ac_status); }; }; then
15433   eval "$as_ac_var=yes"
15434 else
15435   echo "$as_me: failed program was:" >&5
15436 sed 's/^/| /' conftest.$ac_ext >&5
15437
15438 eval "$as_ac_var=no"
15439 fi
15440 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15441 fi
15442 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15443 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15444 if test `eval echo '${'$as_ac_var'}'` = yes; then
15445   cat >>confdefs.h <<_ACEOF
15446 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15447 _ACEOF
15448
15449 fi
15450 done
15451
15452
15453
15454
15455
15456
15457 for ac_func in snprintf vsnprintf gethostid getdomainname
15458 do
15459 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15460 echo "$as_me:$LINENO: checking for $ac_func" >&5
15461 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15462 if eval "test \"\${$as_ac_var+set}\" = set"; then
15463   echo $ECHO_N "(cached) $ECHO_C" >&6
15464 else
15465   cat >conftest.$ac_ext <<_ACEOF
15466 #line $LINENO "configure"
15467 /* confdefs.h.  */
15468 _ACEOF
15469 cat confdefs.h >>conftest.$ac_ext
15470 cat >>conftest.$ac_ext <<_ACEOF
15471 /* end confdefs.h.  */
15472 /* System header to define __stub macros and hopefully few prototypes,
15473     which can conflict with char $ac_func (); below.
15474     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15475     <limits.h> exists even on freestanding compilers.  */
15476 #ifdef __STDC__
15477 # include <limits.h>
15478 #else
15479 # include <assert.h>
15480 #endif
15481 /* Override any gcc2 internal prototype to avoid an error.  */
15482 #ifdef __cplusplus
15483 extern "C"
15484 {
15485 #endif
15486 /* We use char because int might match the return type of a gcc2
15487    builtin and then its argument prototype would still apply.  */
15488 char $ac_func ();
15489 /* The GNU C library defines this for functions which it implements
15490     to always fail with ENOSYS.  Some functions are actually named
15491     something starting with __ and the normal name is an alias.  */
15492 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15493 choke me
15494 #else
15495 char (*f) () = $ac_func;
15496 #endif
15497 #ifdef __cplusplus
15498 }
15499 #endif
15500
15501 int
15502 main ()
15503 {
15504 return f != $ac_func;
15505   ;
15506   return 0;
15507 }
15508 _ACEOF
15509 rm -f conftest.$ac_objext conftest$ac_exeext
15510 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15511   (eval $ac_link) 2>&5
15512   ac_status=$?
15513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15514   (exit $ac_status); } &&
15515          { ac_try='test -s conftest$ac_exeext'
15516   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15517   (eval $ac_try) 2>&5
15518   ac_status=$?
15519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15520   (exit $ac_status); }; }; then
15521   eval "$as_ac_var=yes"
15522 else
15523   echo "$as_me: failed program was:" >&5
15524 sed 's/^/| /' conftest.$ac_ext >&5
15525
15526 eval "$as_ac_var=no"
15527 fi
15528 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15529 fi
15530 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15531 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15532 if test `eval echo '${'$as_ac_var'}'` = yes; then
15533   cat >>confdefs.h <<_ACEOF
15534 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15535 _ACEOF
15536
15537 fi
15538 done
15539
15540
15541
15542
15543
15544
15545 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
15546 do
15547 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15548 echo "$as_me:$LINENO: checking for $ac_func" >&5
15549 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15550 if eval "test \"\${$as_ac_var+set}\" = set"; then
15551   echo $ECHO_N "(cached) $ECHO_C" >&6
15552 else
15553   cat >conftest.$ac_ext <<_ACEOF
15554 #line $LINENO "configure"
15555 /* confdefs.h.  */
15556 _ACEOF
15557 cat confdefs.h >>conftest.$ac_ext
15558 cat >>conftest.$ac_ext <<_ACEOF
15559 /* end confdefs.h.  */
15560 /* System header to define __stub macros and hopefully few prototypes,
15561     which can conflict with char $ac_func (); below.
15562     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15563     <limits.h> exists even on freestanding compilers.  */
15564 #ifdef __STDC__
15565 # include <limits.h>
15566 #else
15567 # include <assert.h>
15568 #endif
15569 /* Override any gcc2 internal prototype to avoid an error.  */
15570 #ifdef __cplusplus
15571 extern "C"
15572 {
15573 #endif
15574 /* We use char because int might match the return type of a gcc2
15575    builtin and then its argument prototype would still apply.  */
15576 char $ac_func ();
15577 /* The GNU C library defines this for functions which it implements
15578     to always fail with ENOSYS.  Some functions are actually named
15579     something starting with __ and the normal name is an alias.  */
15580 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15581 choke me
15582 #else
15583 char (*f) () = $ac_func;
15584 #endif
15585 #ifdef __cplusplus
15586 }
15587 #endif
15588
15589 int
15590 main ()
15591 {
15592 return f != $ac_func;
15593   ;
15594   return 0;
15595 }
15596 _ACEOF
15597 rm -f conftest.$ac_objext conftest$ac_exeext
15598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15599   (eval $ac_link) 2>&5
15600   ac_status=$?
15601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15602   (exit $ac_status); } &&
15603          { ac_try='test -s conftest$ac_exeext'
15604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15605   (eval $ac_try) 2>&5
15606   ac_status=$?
15607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15608   (exit $ac_status); }; }; then
15609   eval "$as_ac_var=yes"
15610 else
15611   echo "$as_me: failed program was:" >&5
15612 sed 's/^/| /' conftest.$ac_ext >&5
15613
15614 eval "$as_ac_var=no"
15615 fi
15616 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15617 fi
15618 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15619 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15620 if test `eval echo '${'$as_ac_var'}'` = yes; then
15621   cat >>confdefs.h <<_ACEOF
15622 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15623 _ACEOF
15624
15625 fi
15626 done
15627
15628
15629 # If resolver functions are not in libc check for -lnsl or -lresolv.
15630 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
15631 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
15632 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
15633   echo $ECHO_N "(cached) $ECHO_C" >&6
15634 else
15635   cat >conftest.$ac_ext <<_ACEOF
15636 #line $LINENO "configure"
15637 /* confdefs.h.  */
15638 _ACEOF
15639 cat confdefs.h >>conftest.$ac_ext
15640 cat >>conftest.$ac_ext <<_ACEOF
15641 /* end confdefs.h.  */
15642 /* System header to define __stub macros and hopefully few prototypes,
15643     which can conflict with char gethostbyname_r (); below.
15644     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15645     <limits.h> exists even on freestanding compilers.  */
15646 #ifdef __STDC__
15647 # include <limits.h>
15648 #else
15649 # include <assert.h>
15650 #endif
15651 /* Override any gcc2 internal prototype to avoid an error.  */
15652 #ifdef __cplusplus
15653 extern "C"
15654 {
15655 #endif
15656 /* We use char because int might match the return type of a gcc2
15657    builtin and then its argument prototype would still apply.  */
15658 char gethostbyname_r ();
15659 /* The GNU C library defines this for functions which it implements
15660     to always fail with ENOSYS.  Some functions are actually named
15661     something starting with __ and the normal name is an alias.  */
15662 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
15663 choke me
15664 #else
15665 char (*f) () = gethostbyname_r;
15666 #endif
15667 #ifdef __cplusplus
15668 }
15669 #endif
15670
15671 int
15672 main ()
15673 {
15674 return f != gethostbyname_r;
15675   ;
15676   return 0;
15677 }
15678 _ACEOF
15679 rm -f conftest.$ac_objext conftest$ac_exeext
15680 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15681   (eval $ac_link) 2>&5
15682   ac_status=$?
15683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15684   (exit $ac_status); } &&
15685          { ac_try='test -s conftest$ac_exeext'
15686   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15687   (eval $ac_try) 2>&5
15688   ac_status=$?
15689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15690   (exit $ac_status); }; }; then
15691   ac_cv_func_gethostbyname_r=yes
15692 else
15693   echo "$as_me: failed program was:" >&5
15694 sed 's/^/| /' conftest.$ac_ext >&5
15695
15696 ac_cv_func_gethostbyname_r=no
15697 fi
15698 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15699 fi
15700 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
15701 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
15702 if test $ac_cv_func_gethostbyname_r = yes; then
15703   echo "$as_me:$LINENO: result: using libc's resolver" >&5
15704 echo "${ECHO_T}using libc's resolver" >&6
15705 else
15706
15707 echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
15708 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6
15709 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
15710   echo $ECHO_N "(cached) $ECHO_C" >&6
15711 else
15712   ac_check_lib_save_LIBS=$LIBS
15713 LIBS="-lnsl  $LIBS"
15714 cat >conftest.$ac_ext <<_ACEOF
15715 #line $LINENO "configure"
15716 /* confdefs.h.  */
15717 _ACEOF
15718 cat confdefs.h >>conftest.$ac_ext
15719 cat >>conftest.$ac_ext <<_ACEOF
15720 /* end confdefs.h.  */
15721
15722 /* Override any gcc2 internal prototype to avoid an error.  */
15723 #ifdef __cplusplus
15724 extern "C"
15725 #endif
15726 /* We use char because int might match the return type of a gcc2
15727    builtin and then its argument prototype would still apply.  */
15728 char gethostbyname_r ();
15729 int
15730 main ()
15731 {
15732 gethostbyname_r ();
15733   ;
15734   return 0;
15735 }
15736 _ACEOF
15737 rm -f conftest.$ac_objext conftest$ac_exeext
15738 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15739   (eval $ac_link) 2>&5
15740   ac_status=$?
15741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15742   (exit $ac_status); } &&
15743          { ac_try='test -s conftest$ac_exeext'
15744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15745   (eval $ac_try) 2>&5
15746   ac_status=$?
15747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15748   (exit $ac_status); }; }; then
15749   ac_cv_lib_nsl_gethostbyname_r=yes
15750 else
15751   echo "$as_me: failed program was:" >&5
15752 sed 's/^/| /' conftest.$ac_ext >&5
15753
15754 ac_cv_lib_nsl_gethostbyname_r=no
15755 fi
15756 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15757 LIBS=$ac_check_lib_save_LIBS
15758 fi
15759 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
15760 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6
15761 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
15762   cat >>confdefs.h <<_ACEOF
15763 #define HAVE_LIBNSL 1
15764 _ACEOF
15765
15766   LIBS="-lnsl $LIBS"
15767
15768 fi
15769
15770
15771 echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
15772 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6
15773 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
15774   echo $ECHO_N "(cached) $ECHO_C" >&6
15775 else
15776   ac_check_lib_save_LIBS=$LIBS
15777 LIBS="-lresolv  $LIBS"
15778 cat >conftest.$ac_ext <<_ACEOF
15779 #line $LINENO "configure"
15780 /* confdefs.h.  */
15781 _ACEOF
15782 cat confdefs.h >>conftest.$ac_ext
15783 cat >>conftest.$ac_ext <<_ACEOF
15784 /* end confdefs.h.  */
15785
15786 /* Override any gcc2 internal prototype to avoid an error.  */
15787 #ifdef __cplusplus
15788 extern "C"
15789 #endif
15790 /* We use char because int might match the return type of a gcc2
15791    builtin and then its argument prototype would still apply.  */
15792 char gethostbyname_r ();
15793 int
15794 main ()
15795 {
15796 gethostbyname_r ();
15797   ;
15798   return 0;
15799 }
15800 _ACEOF
15801 rm -f conftest.$ac_objext conftest$ac_exeext
15802 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15803   (eval $ac_link) 2>&5
15804   ac_status=$?
15805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15806   (exit $ac_status); } &&
15807          { ac_try='test -s conftest$ac_exeext'
15808   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15809   (eval $ac_try) 2>&5
15810   ac_status=$?
15811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15812   (exit $ac_status); }; }; then
15813   ac_cv_lib_resolv_gethostbyname_r=yes
15814 else
15815   echo "$as_me: failed program was:" >&5
15816 sed 's/^/| /' conftest.$ac_ext >&5
15817
15818 ac_cv_lib_resolv_gethostbyname_r=no
15819 fi
15820 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15821 LIBS=$ac_check_lib_save_LIBS
15822 fi
15823 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
15824 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6
15825 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
15826   cat >>confdefs.h <<_ACEOF
15827 #define HAVE_LIBRESOLV 1
15828 _ACEOF
15829
15830   LIBS="-lresolv $LIBS"
15831
15832 fi
15833
15834 fi
15835
15836
15837
15838 # Find where sockets are (especially for Solaris)
15839 echo "$as_me:$LINENO: checking for socket" >&5
15840 echo $ECHO_N "checking for socket... $ECHO_C" >&6
15841 if test "${ac_cv_func_socket+set}" = set; then
15842   echo $ECHO_N "(cached) $ECHO_C" >&6
15843 else
15844   cat >conftest.$ac_ext <<_ACEOF
15845 #line $LINENO "configure"
15846 /* confdefs.h.  */
15847 _ACEOF
15848 cat confdefs.h >>conftest.$ac_ext
15849 cat >>conftest.$ac_ext <<_ACEOF
15850 /* end confdefs.h.  */
15851 /* System header to define __stub macros and hopefully few prototypes,
15852     which can conflict with char socket (); below.
15853     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15854     <limits.h> exists even on freestanding compilers.  */
15855 #ifdef __STDC__
15856 # include <limits.h>
15857 #else
15858 # include <assert.h>
15859 #endif
15860 /* Override any gcc2 internal prototype to avoid an error.  */
15861 #ifdef __cplusplus
15862 extern "C"
15863 {
15864 #endif
15865 /* We use char because int might match the return type of a gcc2
15866    builtin and then its argument prototype would still apply.  */
15867 char socket ();
15868 /* The GNU C library defines this for functions which it implements
15869     to always fail with ENOSYS.  Some functions are actually named
15870     something starting with __ and the normal name is an alias.  */
15871 #if defined (__stub_socket) || defined (__stub___socket)
15872 choke me
15873 #else
15874 char (*f) () = socket;
15875 #endif
15876 #ifdef __cplusplus
15877 }
15878 #endif
15879
15880 int
15881 main ()
15882 {
15883 return f != socket;
15884   ;
15885   return 0;
15886 }
15887 _ACEOF
15888 rm -f conftest.$ac_objext conftest$ac_exeext
15889 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15890   (eval $ac_link) 2>&5
15891   ac_status=$?
15892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15893   (exit $ac_status); } &&
15894          { ac_try='test -s conftest$ac_exeext'
15895   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15896   (eval $ac_try) 2>&5
15897   ac_status=$?
15898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15899   (exit $ac_status); }; }; then
15900   ac_cv_func_socket=yes
15901 else
15902   echo "$as_me: failed program was:" >&5
15903 sed 's/^/| /' conftest.$ac_ext >&5
15904
15905 ac_cv_func_socket=no
15906 fi
15907 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15908 fi
15909 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
15910 echo "${ECHO_T}$ac_cv_func_socket" >&6
15911 if test $ac_cv_func_socket = yes; then
15912   echo "$as_me:$LINENO: result: using libc's socket" >&5
15913 echo "${ECHO_T}using libc's socket" >&6
15914 else
15915
15916 echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
15917 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6
15918 if test "${ac_cv_lib_xnet_socket+set}" = set; then
15919   echo $ECHO_N "(cached) $ECHO_C" >&6
15920 else
15921   ac_check_lib_save_LIBS=$LIBS
15922 LIBS="-lxnet  $LIBS"
15923 cat >conftest.$ac_ext <<_ACEOF
15924 #line $LINENO "configure"
15925 /* confdefs.h.  */
15926 _ACEOF
15927 cat confdefs.h >>conftest.$ac_ext
15928 cat >>conftest.$ac_ext <<_ACEOF
15929 /* end confdefs.h.  */
15930
15931 /* Override any gcc2 internal prototype to avoid an error.  */
15932 #ifdef __cplusplus
15933 extern "C"
15934 #endif
15935 /* We use char because int might match the return type of a gcc2
15936    builtin and then its argument prototype would still apply.  */
15937 char socket ();
15938 int
15939 main ()
15940 {
15941 socket ();
15942   ;
15943   return 0;
15944 }
15945 _ACEOF
15946 rm -f conftest.$ac_objext conftest$ac_exeext
15947 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15948   (eval $ac_link) 2>&5
15949   ac_status=$?
15950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15951   (exit $ac_status); } &&
15952          { ac_try='test -s conftest$ac_exeext'
15953   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15954   (eval $ac_try) 2>&5
15955   ac_status=$?
15956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15957   (exit $ac_status); }; }; then
15958   ac_cv_lib_xnet_socket=yes
15959 else
15960   echo "$as_me: failed program was:" >&5
15961 sed 's/^/| /' conftest.$ac_ext >&5
15962
15963 ac_cv_lib_xnet_socket=no
15964 fi
15965 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15966 LIBS=$ac_check_lib_save_LIBS
15967 fi
15968 echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
15969 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6
15970 if test $ac_cv_lib_xnet_socket = yes; then
15971   cat >>confdefs.h <<_ACEOF
15972 #define HAVE_LIBXNET 1
15973 _ACEOF
15974
15975   LIBS="-lxnet $LIBS"
15976
15977 fi
15978
15979
15980 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
15981 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
15982 if test "${ac_cv_lib_socket_socket+set}" = set; then
15983   echo $ECHO_N "(cached) $ECHO_C" >&6
15984 else
15985   ac_check_lib_save_LIBS=$LIBS
15986 LIBS="-lsocket  $LIBS"
15987 cat >conftest.$ac_ext <<_ACEOF
15988 #line $LINENO "configure"
15989 /* confdefs.h.  */
15990 _ACEOF
15991 cat confdefs.h >>conftest.$ac_ext
15992 cat >>conftest.$ac_ext <<_ACEOF
15993 /* end confdefs.h.  */
15994
15995 /* Override any gcc2 internal prototype to avoid an error.  */
15996 #ifdef __cplusplus
15997 extern "C"
15998 #endif
15999 /* We use char because int might match the return type of a gcc2
16000    builtin and then its argument prototype would still apply.  */
16001 char socket ();
16002 int
16003 main ()
16004 {
16005 socket ();
16006   ;
16007   return 0;
16008 }
16009 _ACEOF
16010 rm -f conftest.$ac_objext conftest$ac_exeext
16011 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16012   (eval $ac_link) 2>&5
16013   ac_status=$?
16014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16015   (exit $ac_status); } &&
16016          { ac_try='test -s conftest$ac_exeext'
16017   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16018   (eval $ac_try) 2>&5
16019   ac_status=$?
16020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16021   (exit $ac_status); }; }; then
16022   ac_cv_lib_socket_socket=yes
16023 else
16024   echo "$as_me: failed program was:" >&5
16025 sed 's/^/| /' conftest.$ac_ext >&5
16026
16027 ac_cv_lib_socket_socket=no
16028 fi
16029 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16030 LIBS=$ac_check_lib_save_LIBS
16031 fi
16032 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
16033 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
16034 if test $ac_cv_lib_socket_socket = yes; then
16035   cat >>confdefs.h <<_ACEOF
16036 #define HAVE_LIBSOCKET 1
16037 _ACEOF
16038
16039   LIBS="-lsocket $LIBS"
16040
16041 fi
16042
16043
16044 echo "$as_me:$LINENO: checking for socket in -linet" >&5
16045 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
16046 if test "${ac_cv_lib_inet_socket+set}" = set; then
16047   echo $ECHO_N "(cached) $ECHO_C" >&6
16048 else
16049   ac_check_lib_save_LIBS=$LIBS
16050 LIBS="-linet  $LIBS"
16051 cat >conftest.$ac_ext <<_ACEOF
16052 #line $LINENO "configure"
16053 /* confdefs.h.  */
16054 _ACEOF
16055 cat confdefs.h >>conftest.$ac_ext
16056 cat >>conftest.$ac_ext <<_ACEOF
16057 /* end confdefs.h.  */
16058
16059 /* Override any gcc2 internal prototype to avoid an error.  */
16060 #ifdef __cplusplus
16061 extern "C"
16062 #endif
16063 /* We use char because int might match the return type of a gcc2
16064    builtin and then its argument prototype would still apply.  */
16065 char socket ();
16066 int
16067 main ()
16068 {
16069 socket ();
16070   ;
16071   return 0;
16072 }
16073 _ACEOF
16074 rm -f conftest.$ac_objext conftest$ac_exeext
16075 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16076   (eval $ac_link) 2>&5
16077   ac_status=$?
16078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16079   (exit $ac_status); } &&
16080          { ac_try='test -s conftest$ac_exeext'
16081   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16082   (eval $ac_try) 2>&5
16083   ac_status=$?
16084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16085   (exit $ac_status); }; }; then
16086   ac_cv_lib_inet_socket=yes
16087 else
16088   echo "$as_me: failed program was:" >&5
16089 sed 's/^/| /' conftest.$ac_ext >&5
16090
16091 ac_cv_lib_inet_socket=no
16092 fi
16093 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16094 LIBS=$ac_check_lib_save_LIBS
16095 fi
16096 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
16097 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
16098 if test $ac_cv_lib_inet_socket = yes; then
16099   cat >>confdefs.h <<_ACEOF
16100 #define HAVE_LIBINET 1
16101 _ACEOF
16102
16103   LIBS="-linet $LIBS"
16104
16105 fi
16106
16107 fi
16108
16109
16110
16111 for ac_func in inet_pton
16112 do
16113 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16114 echo "$as_me:$LINENO: checking for $ac_func" >&5
16115 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16116 if eval "test \"\${$as_ac_var+set}\" = set"; then
16117   echo $ECHO_N "(cached) $ECHO_C" >&6
16118 else
16119   cat >conftest.$ac_ext <<_ACEOF
16120 #line $LINENO "configure"
16121 /* confdefs.h.  */
16122 _ACEOF
16123 cat confdefs.h >>conftest.$ac_ext
16124 cat >>conftest.$ac_ext <<_ACEOF
16125 /* end confdefs.h.  */
16126 /* System header to define __stub macros and hopefully few prototypes,
16127     which can conflict with char $ac_func (); below.
16128     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16129     <limits.h> exists even on freestanding compilers.  */
16130 #ifdef __STDC__
16131 # include <limits.h>
16132 #else
16133 # include <assert.h>
16134 #endif
16135 /* Override any gcc2 internal prototype to avoid an error.  */
16136 #ifdef __cplusplus
16137 extern "C"
16138 {
16139 #endif
16140 /* We use char because int might match the return type of a gcc2
16141    builtin and then its argument prototype would still apply.  */
16142 char $ac_func ();
16143 /* The GNU C library defines this for functions which it implements
16144     to always fail with ENOSYS.  Some functions are actually named
16145     something starting with __ and the normal name is an alias.  */
16146 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16147 choke me
16148 #else
16149 char (*f) () = $ac_func;
16150 #endif
16151 #ifdef __cplusplus
16152 }
16153 #endif
16154
16155 int
16156 main ()
16157 {
16158 return f != $ac_func;
16159   ;
16160   return 0;
16161 }
16162 _ACEOF
16163 rm -f conftest.$ac_objext conftest$ac_exeext
16164 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16165   (eval $ac_link) 2>&5
16166   ac_status=$?
16167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16168   (exit $ac_status); } &&
16169          { ac_try='test -s conftest$ac_exeext'
16170   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16171   (eval $ac_try) 2>&5
16172   ac_status=$?
16173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16174   (exit $ac_status); }; }; then
16175   eval "$as_ac_var=yes"
16176 else
16177   echo "$as_me: failed program was:" >&5
16178 sed 's/^/| /' conftest.$ac_ext >&5
16179
16180 eval "$as_ac_var=no"
16181 fi
16182 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16183 fi
16184 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16185 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16186 if test `eval echo '${'$as_ac_var'}'` = yes; then
16187   cat >>confdefs.h <<_ACEOF
16188 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16189 _ACEOF
16190  cat >>confdefs.h <<\_ACEOF
16191 #define HAVE_INET_PTON 1
16192 _ACEOF
16193
16194 fi
16195 done
16196
16197
16198
16199 for ac_func in strftime
16200 do
16201 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16202 echo "$as_me:$LINENO: checking for $ac_func" >&5
16203 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16204 if eval "test \"\${$as_ac_var+set}\" = set"; then
16205   echo $ECHO_N "(cached) $ECHO_C" >&6
16206 else
16207   cat >conftest.$ac_ext <<_ACEOF
16208 #line $LINENO "configure"
16209 /* confdefs.h.  */
16210 _ACEOF
16211 cat confdefs.h >>conftest.$ac_ext
16212 cat >>conftest.$ac_ext <<_ACEOF
16213 /* end confdefs.h.  */
16214 /* System header to define __stub macros and hopefully few prototypes,
16215     which can conflict with char $ac_func (); below.
16216     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16217     <limits.h> exists even on freestanding compilers.  */
16218 #ifdef __STDC__
16219 # include <limits.h>
16220 #else
16221 # include <assert.h>
16222 #endif
16223 /* Override any gcc2 internal prototype to avoid an error.  */
16224 #ifdef __cplusplus
16225 extern "C"
16226 {
16227 #endif
16228 /* We use char because int might match the return type of a gcc2
16229    builtin and then its argument prototype would still apply.  */
16230 char $ac_func ();
16231 /* The GNU C library defines this for functions which it implements
16232     to always fail with ENOSYS.  Some functions are actually named
16233     something starting with __ and the normal name is an alias.  */
16234 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16235 choke me
16236 #else
16237 char (*f) () = $ac_func;
16238 #endif
16239 #ifdef __cplusplus
16240 }
16241 #endif
16242
16243 int
16244 main ()
16245 {
16246 return f != $ac_func;
16247   ;
16248   return 0;
16249 }
16250 _ACEOF
16251 rm -f conftest.$ac_objext conftest$ac_exeext
16252 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16253   (eval $ac_link) 2>&5
16254   ac_status=$?
16255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16256   (exit $ac_status); } &&
16257          { ac_try='test -s conftest$ac_exeext'
16258   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16259   (eval $ac_try) 2>&5
16260   ac_status=$?
16261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16262   (exit $ac_status); }; }; then
16263   eval "$as_ac_var=yes"
16264 else
16265   echo "$as_me: failed program was:" >&5
16266 sed 's/^/| /' conftest.$ac_ext >&5
16267
16268 eval "$as_ac_var=no"
16269 fi
16270 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16271 fi
16272 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16273 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16274 if test `eval echo '${'$as_ac_var'}'` = yes; then
16275   cat >>confdefs.h <<_ACEOF
16276 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16277 _ACEOF
16278
16279 else
16280   # strftime is in -lintl on SCO UNIX.
16281 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
16282 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
16283 if test "${ac_cv_lib_intl_strftime+set}" = set; then
16284   echo $ECHO_N "(cached) $ECHO_C" >&6
16285 else
16286   ac_check_lib_save_LIBS=$LIBS
16287 LIBS="-lintl  $LIBS"
16288 cat >conftest.$ac_ext <<_ACEOF
16289 #line $LINENO "configure"
16290 /* confdefs.h.  */
16291 _ACEOF
16292 cat confdefs.h >>conftest.$ac_ext
16293 cat >>conftest.$ac_ext <<_ACEOF
16294 /* end confdefs.h.  */
16295
16296 /* Override any gcc2 internal prototype to avoid an error.  */
16297 #ifdef __cplusplus
16298 extern "C"
16299 #endif
16300 /* We use char because int might match the return type of a gcc2
16301    builtin and then its argument prototype would still apply.  */
16302 char strftime ();
16303 int
16304 main ()
16305 {
16306 strftime ();
16307   ;
16308   return 0;
16309 }
16310 _ACEOF
16311 rm -f conftest.$ac_objext conftest$ac_exeext
16312 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16313   (eval $ac_link) 2>&5
16314   ac_status=$?
16315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16316   (exit $ac_status); } &&
16317          { ac_try='test -s conftest$ac_exeext'
16318   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16319   (eval $ac_try) 2>&5
16320   ac_status=$?
16321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16322   (exit $ac_status); }; }; then
16323   ac_cv_lib_intl_strftime=yes
16324 else
16325   echo "$as_me: failed program was:" >&5
16326 sed 's/^/| /' conftest.$ac_ext >&5
16327
16328 ac_cv_lib_intl_strftime=no
16329 fi
16330 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16331 LIBS=$ac_check_lib_save_LIBS
16332 fi
16333 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
16334 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
16335 if test $ac_cv_lib_intl_strftime = yes; then
16336   cat >>confdefs.h <<\_ACEOF
16337 #define HAVE_STRFTIME 1
16338 _ACEOF
16339
16340 LIBS="-lintl $LIBS"
16341 fi
16342
16343 fi
16344 done
16345
16346
16347 for ac_func in vprintf
16348 do
16349 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16350 echo "$as_me:$LINENO: checking for $ac_func" >&5
16351 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16352 if eval "test \"\${$as_ac_var+set}\" = set"; then
16353   echo $ECHO_N "(cached) $ECHO_C" >&6
16354 else
16355   cat >conftest.$ac_ext <<_ACEOF
16356 #line $LINENO "configure"
16357 /* confdefs.h.  */
16358 _ACEOF
16359 cat confdefs.h >>conftest.$ac_ext
16360 cat >>conftest.$ac_ext <<_ACEOF
16361 /* end confdefs.h.  */
16362 /* System header to define __stub macros and hopefully few prototypes,
16363     which can conflict with char $ac_func (); below.
16364     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16365     <limits.h> exists even on freestanding compilers.  */
16366 #ifdef __STDC__
16367 # include <limits.h>
16368 #else
16369 # include <assert.h>
16370 #endif
16371 /* Override any gcc2 internal prototype to avoid an error.  */
16372 #ifdef __cplusplus
16373 extern "C"
16374 {
16375 #endif
16376 /* We use char because int might match the return type of a gcc2
16377    builtin and then its argument prototype would still apply.  */
16378 char $ac_func ();
16379 /* The GNU C library defines this for functions which it implements
16380     to always fail with ENOSYS.  Some functions are actually named
16381     something starting with __ and the normal name is an alias.  */
16382 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16383 choke me
16384 #else
16385 char (*f) () = $ac_func;
16386 #endif
16387 #ifdef __cplusplus
16388 }
16389 #endif
16390
16391 int
16392 main ()
16393 {
16394 return f != $ac_func;
16395   ;
16396   return 0;
16397 }
16398 _ACEOF
16399 rm -f conftest.$ac_objext conftest$ac_exeext
16400 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16401   (eval $ac_link) 2>&5
16402   ac_status=$?
16403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16404   (exit $ac_status); } &&
16405          { ac_try='test -s conftest$ac_exeext'
16406   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16407   (eval $ac_try) 2>&5
16408   ac_status=$?
16409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16410   (exit $ac_status); }; }; then
16411   eval "$as_ac_var=yes"
16412 else
16413   echo "$as_me: failed program was:" >&5
16414 sed 's/^/| /' conftest.$ac_ext >&5
16415
16416 eval "$as_ac_var=no"
16417 fi
16418 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16419 fi
16420 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16421 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16422 if test `eval echo '${'$as_ac_var'}'` = yes; then
16423   cat >>confdefs.h <<_ACEOF
16424 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16425 _ACEOF
16426
16427 echo "$as_me:$LINENO: checking for _doprnt" >&5
16428 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
16429 if test "${ac_cv_func__doprnt+set}" = set; then
16430   echo $ECHO_N "(cached) $ECHO_C" >&6
16431 else
16432   cat >conftest.$ac_ext <<_ACEOF
16433 #line $LINENO "configure"
16434 /* confdefs.h.  */
16435 _ACEOF
16436 cat confdefs.h >>conftest.$ac_ext
16437 cat >>conftest.$ac_ext <<_ACEOF
16438 /* end confdefs.h.  */
16439 /* System header to define __stub macros and hopefully few prototypes,
16440     which can conflict with char _doprnt (); below.
16441     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16442     <limits.h> exists even on freestanding compilers.  */
16443 #ifdef __STDC__
16444 # include <limits.h>
16445 #else
16446 # include <assert.h>
16447 #endif
16448 /* Override any gcc2 internal prototype to avoid an error.  */
16449 #ifdef __cplusplus
16450 extern "C"
16451 {
16452 #endif
16453 /* We use char because int might match the return type of a gcc2
16454    builtin and then its argument prototype would still apply.  */
16455 char _doprnt ();
16456 /* The GNU C library defines this for functions which it implements
16457     to always fail with ENOSYS.  Some functions are actually named
16458     something starting with __ and the normal name is an alias.  */
16459 #if defined (__stub__doprnt) || defined (__stub____doprnt)
16460 choke me
16461 #else
16462 char (*f) () = _doprnt;
16463 #endif
16464 #ifdef __cplusplus
16465 }
16466 #endif
16467
16468 int
16469 main ()
16470 {
16471 return f != _doprnt;
16472   ;
16473   return 0;
16474 }
16475 _ACEOF
16476 rm -f conftest.$ac_objext conftest$ac_exeext
16477 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16478   (eval $ac_link) 2>&5
16479   ac_status=$?
16480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16481   (exit $ac_status); } &&
16482          { ac_try='test -s conftest$ac_exeext'
16483   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16484   (eval $ac_try) 2>&5
16485   ac_status=$?
16486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16487   (exit $ac_status); }; }; then
16488   ac_cv_func__doprnt=yes
16489 else
16490   echo "$as_me: failed program was:" >&5
16491 sed 's/^/| /' conftest.$ac_ext >&5
16492
16493 ac_cv_func__doprnt=no
16494 fi
16495 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16496 fi
16497 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
16498 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
16499 if test $ac_cv_func__doprnt = yes; then
16500
16501 cat >>confdefs.h <<\_ACEOF
16502 #define HAVE_DOPRNT 1
16503 _ACEOF
16504
16505 fi
16506
16507 fi
16508 done
16509
16510
16511 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16512 # for constant arguments.  Useless!
16513 echo "$as_me:$LINENO: checking for working alloca.h" >&5
16514 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
16515 if test "${ac_cv_working_alloca_h+set}" = set; then
16516   echo $ECHO_N "(cached) $ECHO_C" >&6
16517 else
16518   cat >conftest.$ac_ext <<_ACEOF
16519 #line $LINENO "configure"
16520 /* confdefs.h.  */
16521 _ACEOF
16522 cat confdefs.h >>conftest.$ac_ext
16523 cat >>conftest.$ac_ext <<_ACEOF
16524 /* end confdefs.h.  */
16525 #include <alloca.h>
16526 int
16527 main ()
16528 {
16529 char *p = (char *) alloca (2 * sizeof (int));
16530   ;
16531   return 0;
16532 }
16533 _ACEOF
16534 rm -f conftest.$ac_objext conftest$ac_exeext
16535 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16536   (eval $ac_link) 2>&5
16537   ac_status=$?
16538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16539   (exit $ac_status); } &&
16540          { ac_try='test -s conftest$ac_exeext'
16541   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16542   (eval $ac_try) 2>&5
16543   ac_status=$?
16544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16545   (exit $ac_status); }; }; then
16546   ac_cv_working_alloca_h=yes
16547 else
16548   echo "$as_me: failed program was:" >&5
16549 sed 's/^/| /' conftest.$ac_ext >&5
16550
16551 ac_cv_working_alloca_h=no
16552 fi
16553 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16554 fi
16555 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
16556 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
16557 if test $ac_cv_working_alloca_h = yes; then
16558
16559 cat >>confdefs.h <<\_ACEOF
16560 #define HAVE_ALLOCA_H 1
16561 _ACEOF
16562
16563 fi
16564
16565 echo "$as_me:$LINENO: checking for alloca" >&5
16566 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
16567 if test "${ac_cv_func_alloca_works+set}" = set; then
16568   echo $ECHO_N "(cached) $ECHO_C" >&6
16569 else
16570   cat >conftest.$ac_ext <<_ACEOF
16571 #line $LINENO "configure"
16572 /* confdefs.h.  */
16573 _ACEOF
16574 cat confdefs.h >>conftest.$ac_ext
16575 cat >>conftest.$ac_ext <<_ACEOF
16576 /* end confdefs.h.  */
16577 #ifdef __GNUC__
16578 # define alloca __builtin_alloca
16579 #else
16580 # ifdef _MSC_VER
16581 #  include <malloc.h>
16582 #  define alloca _alloca
16583 # else
16584 #  if HAVE_ALLOCA_H
16585 #   include <alloca.h>
16586 #  else
16587 #   ifdef _AIX
16588  #pragma alloca
16589 #   else
16590 #    ifndef alloca /* predefined by HP cc +Olibcalls */
16591 char *alloca ();
16592 #    endif
16593 #   endif
16594 #  endif
16595 # endif
16596 #endif
16597
16598 int
16599 main ()
16600 {
16601 char *p = (char *) alloca (1);
16602   ;
16603   return 0;
16604 }
16605 _ACEOF
16606 rm -f conftest.$ac_objext conftest$ac_exeext
16607 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16608   (eval $ac_link) 2>&5
16609   ac_status=$?
16610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16611   (exit $ac_status); } &&
16612          { ac_try='test -s conftest$ac_exeext'
16613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16614   (eval $ac_try) 2>&5
16615   ac_status=$?
16616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16617   (exit $ac_status); }; }; then
16618   ac_cv_func_alloca_works=yes
16619 else
16620   echo "$as_me: failed program was:" >&5
16621 sed 's/^/| /' conftest.$ac_ext >&5
16622
16623 ac_cv_func_alloca_works=no
16624 fi
16625 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16626 fi
16627 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
16628 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
16629
16630 if test $ac_cv_func_alloca_works = yes; then
16631
16632 cat >>confdefs.h <<\_ACEOF
16633 #define HAVE_ALLOCA 1
16634 _ACEOF
16635
16636 else
16637   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16638 # that cause trouble.  Some versions do not even contain alloca or
16639 # contain a buggy version.  If you still want to use their alloca,
16640 # use ar to extract alloca.o from them instead of compiling alloca.c.
16641
16642 ALLOCA=alloca.$ac_objext
16643
16644 cat >>confdefs.h <<\_ACEOF
16645 #define C_ALLOCA 1
16646 _ACEOF
16647
16648
16649 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
16650 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
16651 if test "${ac_cv_os_cray+set}" = set; then
16652   echo $ECHO_N "(cached) $ECHO_C" >&6
16653 else
16654   cat >conftest.$ac_ext <<_ACEOF
16655 #line $LINENO "configure"
16656 /* confdefs.h.  */
16657 _ACEOF
16658 cat confdefs.h >>conftest.$ac_ext
16659 cat >>conftest.$ac_ext <<_ACEOF
16660 /* end confdefs.h.  */
16661 #if defined(CRAY) && ! defined(CRAY2)
16662 webecray
16663 #else
16664 wenotbecray
16665 #endif
16666
16667 _ACEOF
16668 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16669   $EGREP "webecray" >/dev/null 2>&1; then
16670   ac_cv_os_cray=yes
16671 else
16672   ac_cv_os_cray=no
16673 fi
16674 rm -f conftest*
16675
16676 fi
16677 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
16678 echo "${ECHO_T}$ac_cv_os_cray" >&6
16679 if test $ac_cv_os_cray = yes; then
16680   for ac_func in _getb67 GETB67 getb67; do
16681     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16682 echo "$as_me:$LINENO: checking for $ac_func" >&5
16683 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16684 if eval "test \"\${$as_ac_var+set}\" = set"; then
16685   echo $ECHO_N "(cached) $ECHO_C" >&6
16686 else
16687   cat >conftest.$ac_ext <<_ACEOF
16688 #line $LINENO "configure"
16689 /* confdefs.h.  */
16690 _ACEOF
16691 cat confdefs.h >>conftest.$ac_ext
16692 cat >>conftest.$ac_ext <<_ACEOF
16693 /* end confdefs.h.  */
16694 /* System header to define __stub macros and hopefully few prototypes,
16695     which can conflict with char $ac_func (); below.
16696     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16697     <limits.h> exists even on freestanding compilers.  */
16698 #ifdef __STDC__
16699 # include <limits.h>
16700 #else
16701 # include <assert.h>
16702 #endif
16703 /* Override any gcc2 internal prototype to avoid an error.  */
16704 #ifdef __cplusplus
16705 extern "C"
16706 {
16707 #endif
16708 /* We use char because int might match the return type of a gcc2
16709    builtin and then its argument prototype would still apply.  */
16710 char $ac_func ();
16711 /* The GNU C library defines this for functions which it implements
16712     to always fail with ENOSYS.  Some functions are actually named
16713     something starting with __ and the normal name is an alias.  */
16714 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16715 choke me
16716 #else
16717 char (*f) () = $ac_func;
16718 #endif
16719 #ifdef __cplusplus
16720 }
16721 #endif
16722
16723 int
16724 main ()
16725 {
16726 return f != $ac_func;
16727   ;
16728   return 0;
16729 }
16730 _ACEOF
16731 rm -f conftest.$ac_objext conftest$ac_exeext
16732 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16733   (eval $ac_link) 2>&5
16734   ac_status=$?
16735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16736   (exit $ac_status); } &&
16737          { ac_try='test -s conftest$ac_exeext'
16738   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16739   (eval $ac_try) 2>&5
16740   ac_status=$?
16741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16742   (exit $ac_status); }; }; then
16743   eval "$as_ac_var=yes"
16744 else
16745   echo "$as_me: failed program was:" >&5
16746 sed 's/^/| /' conftest.$ac_ext >&5
16747
16748 eval "$as_ac_var=no"
16749 fi
16750 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16751 fi
16752 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16753 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16754 if test `eval echo '${'$as_ac_var'}'` = yes; then
16755
16756 cat >>confdefs.h <<_ACEOF
16757 #define CRAY_STACKSEG_END $ac_func
16758 _ACEOF
16759
16760     break
16761 fi
16762
16763   done
16764 fi
16765
16766 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
16767 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
16768 if test "${ac_cv_c_stack_direction+set}" = set; then
16769   echo $ECHO_N "(cached) $ECHO_C" >&6
16770 else
16771   if test "$cross_compiling" = yes; then
16772   ac_cv_c_stack_direction=0
16773 else
16774   cat >conftest.$ac_ext <<_ACEOF
16775 #line $LINENO "configure"
16776 /* confdefs.h.  */
16777 _ACEOF
16778 cat confdefs.h >>conftest.$ac_ext
16779 cat >>conftest.$ac_ext <<_ACEOF
16780 /* end confdefs.h.  */
16781 int
16782 find_stack_direction ()
16783 {
16784   static char *addr = 0;
16785   auto char dummy;
16786   if (addr == 0)
16787     {
16788       addr = &dummy;
16789       return find_stack_direction ();
16790     }
16791   else
16792     return (&dummy > addr) ? 1 : -1;
16793 }
16794
16795 int
16796 main ()
16797 {
16798   exit (find_stack_direction () < 0);
16799 }
16800 _ACEOF
16801 rm -f conftest$ac_exeext
16802 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16803   (eval $ac_link) 2>&5
16804   ac_status=$?
16805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16806   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16807   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16808   (eval $ac_try) 2>&5
16809   ac_status=$?
16810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16811   (exit $ac_status); }; }; then
16812   ac_cv_c_stack_direction=1
16813 else
16814   echo "$as_me: program exited with status $ac_status" >&5
16815 echo "$as_me: failed program was:" >&5
16816 sed 's/^/| /' conftest.$ac_ext >&5
16817
16818 ( exit $ac_status )
16819 ac_cv_c_stack_direction=-1
16820 fi
16821 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16822 fi
16823 fi
16824 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
16825 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
16826
16827 cat >>confdefs.h <<_ACEOF
16828 #define STACK_DIRECTION $ac_cv_c_stack_direction
16829 _ACEOF
16830
16831
16832 fi
16833
16834 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
16835 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
16836 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
16837 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
16838   echo $ECHO_N "(cached) $ECHO_C" >&6
16839 else
16840   ac_check_lib_save_LIBS=$LIBS
16841 LIBS="-lsun  $LIBS"
16842 cat >conftest.$ac_ext <<_ACEOF
16843 #line $LINENO "configure"
16844 /* confdefs.h.  */
16845 _ACEOF
16846 cat confdefs.h >>conftest.$ac_ext
16847 cat >>conftest.$ac_ext <<_ACEOF
16848 /* end confdefs.h.  */
16849
16850 /* Override any gcc2 internal prototype to avoid an error.  */
16851 #ifdef __cplusplus
16852 extern "C"
16853 #endif
16854 /* We use char because int might match the return type of a gcc2
16855    builtin and then its argument prototype would still apply.  */
16856 char getmntent ();
16857 int
16858 main ()
16859 {
16860 getmntent ();
16861   ;
16862   return 0;
16863 }
16864 _ACEOF
16865 rm -f conftest.$ac_objext conftest$ac_exeext
16866 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16867   (eval $ac_link) 2>&5
16868   ac_status=$?
16869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16870   (exit $ac_status); } &&
16871          { ac_try='test -s conftest$ac_exeext'
16872   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16873   (eval $ac_try) 2>&5
16874   ac_status=$?
16875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16876   (exit $ac_status); }; }; then
16877   ac_cv_lib_sun_getmntent=yes
16878 else
16879   echo "$as_me: failed program was:" >&5
16880 sed 's/^/| /' conftest.$ac_ext >&5
16881
16882 ac_cv_lib_sun_getmntent=no
16883 fi
16884 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16885 LIBS=$ac_check_lib_save_LIBS
16886 fi
16887 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
16888 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
16889 if test $ac_cv_lib_sun_getmntent = yes; then
16890   LIBS="-lsun $LIBS"
16891 else
16892   echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
16893 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
16894 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
16895   echo $ECHO_N "(cached) $ECHO_C" >&6
16896 else
16897   ac_check_lib_save_LIBS=$LIBS
16898 LIBS="-lseq  $LIBS"
16899 cat >conftest.$ac_ext <<_ACEOF
16900 #line $LINENO "configure"
16901 /* confdefs.h.  */
16902 _ACEOF
16903 cat confdefs.h >>conftest.$ac_ext
16904 cat >>conftest.$ac_ext <<_ACEOF
16905 /* end confdefs.h.  */
16906
16907 /* Override any gcc2 internal prototype to avoid an error.  */
16908 #ifdef __cplusplus
16909 extern "C"
16910 #endif
16911 /* We use char because int might match the return type of a gcc2
16912    builtin and then its argument prototype would still apply.  */
16913 char getmntent ();
16914 int
16915 main ()
16916 {
16917 getmntent ();
16918   ;
16919   return 0;
16920 }
16921 _ACEOF
16922 rm -f conftest.$ac_objext conftest$ac_exeext
16923 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16924   (eval $ac_link) 2>&5
16925   ac_status=$?
16926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16927   (exit $ac_status); } &&
16928          { ac_try='test -s conftest$ac_exeext'
16929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16930   (eval $ac_try) 2>&5
16931   ac_status=$?
16932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16933   (exit $ac_status); }; }; then
16934   ac_cv_lib_seq_getmntent=yes
16935 else
16936   echo "$as_me: failed program was:" >&5
16937 sed 's/^/| /' conftest.$ac_ext >&5
16938
16939 ac_cv_lib_seq_getmntent=no
16940 fi
16941 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16942 LIBS=$ac_check_lib_save_LIBS
16943 fi
16944 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
16945 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
16946 if test $ac_cv_lib_seq_getmntent = yes; then
16947   LIBS="-lseq $LIBS"
16948 else
16949   echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
16950 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
16951 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
16952   echo $ECHO_N "(cached) $ECHO_C" >&6
16953 else
16954   ac_check_lib_save_LIBS=$LIBS
16955 LIBS="-lgen  $LIBS"
16956 cat >conftest.$ac_ext <<_ACEOF
16957 #line $LINENO "configure"
16958 /* confdefs.h.  */
16959 _ACEOF
16960 cat confdefs.h >>conftest.$ac_ext
16961 cat >>conftest.$ac_ext <<_ACEOF
16962 /* end confdefs.h.  */
16963
16964 /* Override any gcc2 internal prototype to avoid an error.  */
16965 #ifdef __cplusplus
16966 extern "C"
16967 #endif
16968 /* We use char because int might match the return type of a gcc2
16969    builtin and then its argument prototype would still apply.  */
16970 char getmntent ();
16971 int
16972 main ()
16973 {
16974 getmntent ();
16975   ;
16976   return 0;
16977 }
16978 _ACEOF
16979 rm -f conftest.$ac_objext conftest$ac_exeext
16980 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16981   (eval $ac_link) 2>&5
16982   ac_status=$?
16983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16984   (exit $ac_status); } &&
16985          { ac_try='test -s conftest$ac_exeext'
16986   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16987   (eval $ac_try) 2>&5
16988   ac_status=$?
16989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16990   (exit $ac_status); }; }; then
16991   ac_cv_lib_gen_getmntent=yes
16992 else
16993   echo "$as_me: failed program was:" >&5
16994 sed 's/^/| /' conftest.$ac_ext >&5
16995
16996 ac_cv_lib_gen_getmntent=no
16997 fi
16998 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16999 LIBS=$ac_check_lib_save_LIBS
17000 fi
17001 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
17002 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
17003 if test $ac_cv_lib_gen_getmntent = yes; then
17004   LIBS="-lgen $LIBS"
17005 fi
17006
17007 fi
17008
17009 fi
17010
17011
17012 for ac_func in getmntent
17013 do
17014 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17015 echo "$as_me:$LINENO: checking for $ac_func" >&5
17016 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17017 if eval "test \"\${$as_ac_var+set}\" = set"; then
17018   echo $ECHO_N "(cached) $ECHO_C" >&6
17019 else
17020   cat >conftest.$ac_ext <<_ACEOF
17021 #line $LINENO "configure"
17022 /* confdefs.h.  */
17023 _ACEOF
17024 cat confdefs.h >>conftest.$ac_ext
17025 cat >>conftest.$ac_ext <<_ACEOF
17026 /* end confdefs.h.  */
17027 /* System header to define __stub macros and hopefully few prototypes,
17028     which can conflict with char $ac_func (); below.
17029     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17030     <limits.h> exists even on freestanding compilers.  */
17031 #ifdef __STDC__
17032 # include <limits.h>
17033 #else
17034 # include <assert.h>
17035 #endif
17036 /* Override any gcc2 internal prototype to avoid an error.  */
17037 #ifdef __cplusplus
17038 extern "C"
17039 {
17040 #endif
17041 /* We use char because int might match the return type of a gcc2
17042    builtin and then its argument prototype would still apply.  */
17043 char $ac_func ();
17044 /* The GNU C library defines this for functions which it implements
17045     to always fail with ENOSYS.  Some functions are actually named
17046     something starting with __ and the normal name is an alias.  */
17047 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17048 choke me
17049 #else
17050 char (*f) () = $ac_func;
17051 #endif
17052 #ifdef __cplusplus
17053 }
17054 #endif
17055
17056 int
17057 main ()
17058 {
17059 return f != $ac_func;
17060   ;
17061   return 0;
17062 }
17063 _ACEOF
17064 rm -f conftest.$ac_objext conftest$ac_exeext
17065 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17066   (eval $ac_link) 2>&5
17067   ac_status=$?
17068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17069   (exit $ac_status); } &&
17070          { ac_try='test -s conftest$ac_exeext'
17071   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17072   (eval $ac_try) 2>&5
17073   ac_status=$?
17074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17075   (exit $ac_status); }; }; then
17076   eval "$as_ac_var=yes"
17077 else
17078   echo "$as_me: failed program was:" >&5
17079 sed 's/^/| /' conftest.$ac_ext >&5
17080
17081 eval "$as_ac_var=no"
17082 fi
17083 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17084 fi
17085 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17086 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17087 if test `eval echo '${'$as_ac_var'}'` = yes; then
17088   cat >>confdefs.h <<_ACEOF
17089 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17090 _ACEOF
17091
17092 fi
17093 done
17094
17095
17096 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
17097 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
17098 if test "${ac_cv_func_closedir_void+set}" = set; then
17099   echo $ECHO_N "(cached) $ECHO_C" >&6
17100 else
17101   if test "$cross_compiling" = yes; then
17102   ac_cv_func_closedir_void=yes
17103 else
17104   cat >conftest.$ac_ext <<_ACEOF
17105 #line $LINENO "configure"
17106 /* confdefs.h.  */
17107 _ACEOF
17108 cat confdefs.h >>conftest.$ac_ext
17109 cat >>conftest.$ac_ext <<_ACEOF
17110 /* end confdefs.h.  */
17111 $ac_includes_default
17112 #include <$ac_header_dirent>
17113 #ifndef __cplusplus
17114 int closedir ();
17115 #endif
17116
17117 int
17118 main ()
17119 {
17120 exit (closedir (opendir (".")) != 0);
17121   ;
17122   return 0;
17123 }
17124 _ACEOF
17125 rm -f conftest$ac_exeext
17126 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17127   (eval $ac_link) 2>&5
17128   ac_status=$?
17129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17130   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17131   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17132   (eval $ac_try) 2>&5
17133   ac_status=$?
17134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17135   (exit $ac_status); }; }; then
17136   ac_cv_func_closedir_void=no
17137 else
17138   echo "$as_me: program exited with status $ac_status" >&5
17139 echo "$as_me: failed program was:" >&5
17140 sed 's/^/| /' conftest.$ac_ext >&5
17141
17142 ( exit $ac_status )
17143 ac_cv_func_closedir_void=yes
17144 fi
17145 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17146 fi
17147 fi
17148 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
17149 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
17150 if test $ac_cv_func_closedir_void = yes; then
17151
17152 cat >>confdefs.h <<\_ACEOF
17153 #define CLOSEDIR_VOID 1
17154 _ACEOF
17155
17156 fi
17157
17158 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
17159 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
17160 if test "${ac_cv_func_setpgrp_void+set}" = set; then
17161   echo $ECHO_N "(cached) $ECHO_C" >&6
17162 else
17163   if test "$cross_compiling" = yes; then
17164   { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
17165 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
17166    { (exit 1); exit 1; }; }
17167 else
17168   cat >conftest.$ac_ext <<_ACEOF
17169 #line $LINENO "configure"
17170 /* confdefs.h.  */
17171 _ACEOF
17172 cat confdefs.h >>conftest.$ac_ext
17173 cat >>conftest.$ac_ext <<_ACEOF
17174 /* end confdefs.h.  */
17175 #if HAVE_UNISTD_H
17176 # include <unistd.h>
17177 #endif
17178
17179 int
17180 main ()
17181 {
17182 /* If this system has a BSD-style setpgrp which takes arguments,
17183   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
17184   exit successfully. */
17185   exit (setpgrp (1,1) == -1 ? 0 : 1);
17186   ;
17187   return 0;
17188 }
17189 _ACEOF
17190 rm -f conftest$ac_exeext
17191 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17192   (eval $ac_link) 2>&5
17193   ac_status=$?
17194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17195   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17196   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17197   (eval $ac_try) 2>&5
17198   ac_status=$?
17199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17200   (exit $ac_status); }; }; then
17201   ac_cv_func_setpgrp_void=no
17202 else
17203   echo "$as_me: program exited with status $ac_status" >&5
17204 echo "$as_me: failed program was:" >&5
17205 sed 's/^/| /' conftest.$ac_ext >&5
17206
17207 ( exit $ac_status )
17208 ac_cv_func_setpgrp_void=yes
17209 fi
17210 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17211 fi
17212 fi
17213 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
17214 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
17215 if test $ac_cv_func_setpgrp_void = yes; then
17216
17217 cat >>confdefs.h <<\_ACEOF
17218 #define SETPGRP_VOID 1
17219 _ACEOF
17220
17221 fi
17222                       echo "$as_me:$LINENO: checking for working POSIX fnmatch" >&5
17223 echo $ECHO_N "checking for working POSIX fnmatch... $ECHO_C" >&6
17224 if test "${ac_cv_func_fnmatch_works+set}" = set; then
17225   echo $ECHO_N "(cached) $ECHO_C" >&6
17226 else
17227   # Some versions of Solaris, SCO, and the GNU C Library
17228    # have a broken or incompatible fnmatch.
17229    # So we run a test program.  If we are cross-compiling, take no chance.
17230    # Thanks to John Oleynick, Franc,ois Pinard, and Paul Eggert for this test.
17231    if test "$cross_compiling" = yes; then
17232   ac_cv_func_fnmatch_works=cross
17233 else
17234   cat >conftest.$ac_ext <<_ACEOF
17235 #line $LINENO "configure"
17236 /* confdefs.h.  */
17237 _ACEOF
17238 cat confdefs.h >>conftest.$ac_ext
17239 cat >>conftest.$ac_ext <<_ACEOF
17240 /* end confdefs.h.  */
17241 #include <fnmatch.h>
17242 #          define y(a, b, c) (fnmatch (a, b, c) == 0)
17243 #          define n(a, b, c) (fnmatch (a, b, c) == FNM_NOMATCH)
17244
17245 int
17246 main ()
17247 {
17248 exit
17249            (!(y ("a*", "abc", 0)
17250               && n ("d*/*1", "d/s/1", FNM_PATHNAME)
17251               && y ("a\\\\bc", "abc", 0)
17252               && n ("a\\\\bc", "abc", FNM_NOESCAPE)
17253               && y ("*x", ".x", 0)
17254               && n ("*x", ".x", FNM_PERIOD)
17255               && 1));
17256   ;
17257   return 0;
17258 }
17259 _ACEOF
17260 rm -f conftest$ac_exeext
17261 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17262   (eval $ac_link) 2>&5
17263   ac_status=$?
17264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17265   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17266   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17267   (eval $ac_try) 2>&5
17268   ac_status=$?
17269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17270   (exit $ac_status); }; }; then
17271   ac_cv_func_fnmatch_works=yes
17272 else
17273   echo "$as_me: program exited with status $ac_status" >&5
17274 echo "$as_me: failed program was:" >&5
17275 sed 's/^/| /' conftest.$ac_ext >&5
17276
17277 ( exit $ac_status )
17278 ac_cv_func_fnmatch_works=no
17279 fi
17280 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17281 fi
17282 fi
17283 echo "$as_me:$LINENO: result: $ac_cv_func_fnmatch_works" >&5
17284 echo "${ECHO_T}$ac_cv_func_fnmatch_works" >&6
17285 if test $ac_cv_func_fnmatch_works = yes; then
17286
17287 cat >>confdefs.h <<\_ACEOF
17288 #define HAVE_FNMATCH 1
17289 _ACEOF
17290
17291 fi
17292
17293
17294
17295
17296
17297 echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
17298 echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
17299 if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
17300   echo $ECHO_N "(cached) $ECHO_C" >&6
17301 else
17302   ac_check_lib_save_LIBS=$LIBS
17303 LIBS="-lxpg4  $LIBS"
17304 cat >conftest.$ac_ext <<_ACEOF
17305 #line $LINENO "configure"
17306 /* confdefs.h.  */
17307 _ACEOF
17308 cat confdefs.h >>conftest.$ac_ext
17309 cat >>conftest.$ac_ext <<_ACEOF
17310 /* end confdefs.h.  */
17311
17312 /* Override any gcc2 internal prototype to avoid an error.  */
17313 #ifdef __cplusplus
17314 extern "C"
17315 #endif
17316 /* We use char because int might match the return type of a gcc2
17317    builtin and then its argument prototype would still apply.  */
17318 char setlocale ();
17319 int
17320 main ()
17321 {
17322 setlocale ();
17323   ;
17324   return 0;
17325 }
17326 _ACEOF
17327 rm -f conftest.$ac_objext conftest$ac_exeext
17328 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17329   (eval $ac_link) 2>&5
17330   ac_status=$?
17331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17332   (exit $ac_status); } &&
17333          { ac_try='test -s conftest$ac_exeext'
17334   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17335   (eval $ac_try) 2>&5
17336   ac_status=$?
17337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17338   (exit $ac_status); }; }; then
17339   ac_cv_lib_xpg4_setlocale=yes
17340 else
17341   echo "$as_me: failed program was:" >&5
17342 sed 's/^/| /' conftest.$ac_ext >&5
17343
17344 ac_cv_lib_xpg4_setlocale=no
17345 fi
17346 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17347 LIBS=$ac_check_lib_save_LIBS
17348 fi
17349 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
17350 echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
17351 if test $ac_cv_lib_xpg4_setlocale = yes; then
17352   LIBS="$LIBS -lxpg4"
17353 fi
17354
17355
17356
17357
17358 echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
17359 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6
17360 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
17361   echo $ECHO_N "(cached) $ECHO_C" >&6
17362 else
17363   ac_check_lib_save_LIBS=$LIBS
17364 LIBS="-lsun  $LIBS"
17365 cat >conftest.$ac_ext <<_ACEOF
17366 #line $LINENO "configure"
17367 /* confdefs.h.  */
17368 _ACEOF
17369 cat confdefs.h >>conftest.$ac_ext
17370 cat >>conftest.$ac_ext <<_ACEOF
17371 /* end confdefs.h.  */
17372
17373 /* Override any gcc2 internal prototype to avoid an error.  */
17374 #ifdef __cplusplus
17375 extern "C"
17376 #endif
17377 /* We use char because int might match the return type of a gcc2
17378    builtin and then its argument prototype would still apply.  */
17379 char getpwnam ();
17380 int
17381 main ()
17382 {
17383 getpwnam ();
17384   ;
17385   return 0;
17386 }
17387 _ACEOF
17388 rm -f conftest.$ac_objext conftest$ac_exeext
17389 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17390   (eval $ac_link) 2>&5
17391   ac_status=$?
17392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17393   (exit $ac_status); } &&
17394          { ac_try='test -s conftest$ac_exeext'
17395   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17396   (eval $ac_try) 2>&5
17397   ac_status=$?
17398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17399   (exit $ac_status); }; }; then
17400   ac_cv_lib_sun_getpwnam=yes
17401 else
17402   echo "$as_me: failed program was:" >&5
17403 sed 's/^/| /' conftest.$ac_ext >&5
17404
17405 ac_cv_lib_sun_getpwnam=no
17406 fi
17407 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17408 LIBS=$ac_check_lib_save_LIBS
17409 fi
17410 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
17411 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6
17412 if test $ac_cv_lib_sun_getpwnam = yes; then
17413   cat >>confdefs.h <<_ACEOF
17414 #define HAVE_LIBSUN 1
17415 _ACEOF
17416
17417   LIBS="-lsun $LIBS"
17418
17419 fi
17420
17421
17422
17423 for ac_header in zlib.h
17424 do
17425 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17426 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17427   echo "$as_me:$LINENO: checking for $ac_header" >&5
17428 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17429 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17430   echo $ECHO_N "(cached) $ECHO_C" >&6
17431 fi
17432 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17433 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17434 else
17435   # Is the header compilable?
17436 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17437 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17438 cat >conftest.$ac_ext <<_ACEOF
17439 #line $LINENO "configure"
17440 /* confdefs.h.  */
17441 _ACEOF
17442 cat confdefs.h >>conftest.$ac_ext
17443 cat >>conftest.$ac_ext <<_ACEOF
17444 /* end confdefs.h.  */
17445 $ac_includes_default
17446 #include <$ac_header>
17447 _ACEOF
17448 rm -f conftest.$ac_objext
17449 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17450   (eval $ac_compile) 2>&5
17451   ac_status=$?
17452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17453   (exit $ac_status); } &&
17454          { ac_try='test -s conftest.$ac_objext'
17455   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17456   (eval $ac_try) 2>&5
17457   ac_status=$?
17458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17459   (exit $ac_status); }; }; then
17460   ac_header_compiler=yes
17461 else
17462   echo "$as_me: failed program was:" >&5
17463 sed 's/^/| /' conftest.$ac_ext >&5
17464
17465 ac_header_compiler=no
17466 fi
17467 rm -f conftest.$ac_objext conftest.$ac_ext
17468 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17469 echo "${ECHO_T}$ac_header_compiler" >&6
17470
17471 # Is the header present?
17472 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17473 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17474 cat >conftest.$ac_ext <<_ACEOF
17475 #line $LINENO "configure"
17476 /* confdefs.h.  */
17477 _ACEOF
17478 cat confdefs.h >>conftest.$ac_ext
17479 cat >>conftest.$ac_ext <<_ACEOF
17480 /* end confdefs.h.  */
17481 #include <$ac_header>
17482 _ACEOF
17483 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17484   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17485   ac_status=$?
17486   grep -v '^ *+' conftest.er1 >conftest.err
17487   rm -f conftest.er1
17488   cat conftest.err >&5
17489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17490   (exit $ac_status); } >/dev/null; then
17491   if test -s conftest.err; then
17492     ac_cpp_err=$ac_c_preproc_warn_flag
17493   else
17494     ac_cpp_err=
17495   fi
17496 else
17497   ac_cpp_err=yes
17498 fi
17499 if test -z "$ac_cpp_err"; then
17500   ac_header_preproc=yes
17501 else
17502   echo "$as_me: failed program was:" >&5
17503 sed 's/^/| /' conftest.$ac_ext >&5
17504
17505   ac_header_preproc=no
17506 fi
17507 rm -f conftest.err conftest.$ac_ext
17508 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17509 echo "${ECHO_T}$ac_header_preproc" >&6
17510
17511 # So?  What about this header?
17512 case $ac_header_compiler:$ac_header_preproc in
17513   yes:no )
17514     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17515 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17516     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17517 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17518     (
17519       cat <<\_ASBOX
17520 ## ------------------------------------ ##
17521 ## Report this to bug-autoconf@gnu.org. ##
17522 ## ------------------------------------ ##
17523 _ASBOX
17524     ) |
17525       sed "s/^/$as_me: WARNING:     /" >&2
17526     ;;
17527   no:yes )
17528     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17529 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17530     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17531 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17532     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17533 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17534     (
17535       cat <<\_ASBOX
17536 ## ------------------------------------ ##
17537 ## Report this to bug-autoconf@gnu.org. ##
17538 ## ------------------------------------ ##
17539 _ASBOX
17540     ) |
17541       sed "s/^/$as_me: WARNING:     /" >&2
17542     ;;
17543 esac
17544 echo "$as_me:$LINENO: checking for $ac_header" >&5
17545 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17546 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17547   echo $ECHO_N "(cached) $ECHO_C" >&6
17548 else
17549   eval "$as_ac_Header=$ac_header_preproc"
17550 fi
17551 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17552 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17553
17554 fi
17555 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17556   cat >>confdefs.h <<_ACEOF
17557 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17558 _ACEOF
17559
17560 fi
17561
17562 done
17563
17564 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
17565 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
17566 if test "${ac_cv_lib_z_deflate+set}" = set; then
17567   echo $ECHO_N "(cached) $ECHO_C" >&6
17568 else
17569   ac_check_lib_save_LIBS=$LIBS
17570 LIBS="-lz  $LIBS"
17571 cat >conftest.$ac_ext <<_ACEOF
17572 #line $LINENO "configure"
17573 /* confdefs.h.  */
17574 _ACEOF
17575 cat confdefs.h >>conftest.$ac_ext
17576 cat >>conftest.$ac_ext <<_ACEOF
17577 /* end confdefs.h.  */
17578
17579 /* Override any gcc2 internal prototype to avoid an error.  */
17580 #ifdef __cplusplus
17581 extern "C"
17582 #endif
17583 /* We use char because int might match the return type of a gcc2
17584    builtin and then its argument prototype would still apply.  */
17585 char deflate ();
17586 int
17587 main ()
17588 {
17589 deflate ();
17590   ;
17591   return 0;
17592 }
17593 _ACEOF
17594 rm -f conftest.$ac_objext conftest$ac_exeext
17595 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17596   (eval $ac_link) 2>&5
17597   ac_status=$?
17598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17599   (exit $ac_status); } &&
17600          { ac_try='test -s conftest$ac_exeext'
17601   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17602   (eval $ac_try) 2>&5
17603   ac_status=$?
17604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17605   (exit $ac_status); }; }; then
17606   ac_cv_lib_z_deflate=yes
17607 else
17608   echo "$as_me: failed program was:" >&5
17609 sed 's/^/| /' conftest.$ac_ext >&5
17610
17611 ac_cv_lib_z_deflate=no
17612 fi
17613 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17614 LIBS=$ac_check_lib_save_LIBS
17615 fi
17616 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
17617 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
17618 if test $ac_cv_lib_z_deflate = yes; then
17619   FDLIBS="-lz"
17620 fi
17621
17622 have_zlib=no
17623 if test x$FDLIBS = x-lz; then
17624   cat >>confdefs.h <<\_ACEOF
17625 #define HAVE_LIBZ 1
17626 _ACEOF
17627
17628   have_zlib=yes
17629 fi
17630
17631 if test "${ac_cv_header_sys_acl_h+set}" = set; then
17632   echo "$as_me:$LINENO: checking for sys/acl.h" >&5
17633 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
17634 if test "${ac_cv_header_sys_acl_h+set}" = set; then
17635   echo $ECHO_N "(cached) $ECHO_C" >&6
17636 fi
17637 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
17638 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
17639 else
17640   # Is the header compilable?
17641 echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
17642 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6
17643 cat >conftest.$ac_ext <<_ACEOF
17644 #line $LINENO "configure"
17645 /* confdefs.h.  */
17646 _ACEOF
17647 cat confdefs.h >>conftest.$ac_ext
17648 cat >>conftest.$ac_ext <<_ACEOF
17649 /* end confdefs.h.  */
17650 $ac_includes_default
17651 #include <sys/acl.h>
17652 _ACEOF
17653 rm -f conftest.$ac_objext
17654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17655   (eval $ac_compile) 2>&5
17656   ac_status=$?
17657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17658   (exit $ac_status); } &&
17659          { ac_try='test -s conftest.$ac_objext'
17660   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17661   (eval $ac_try) 2>&5
17662   ac_status=$?
17663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17664   (exit $ac_status); }; }; then
17665   ac_header_compiler=yes
17666 else
17667   echo "$as_me: failed program was:" >&5
17668 sed 's/^/| /' conftest.$ac_ext >&5
17669
17670 ac_header_compiler=no
17671 fi
17672 rm -f conftest.$ac_objext conftest.$ac_ext
17673 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17674 echo "${ECHO_T}$ac_header_compiler" >&6
17675
17676 # Is the header present?
17677 echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
17678 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6
17679 cat >conftest.$ac_ext <<_ACEOF
17680 #line $LINENO "configure"
17681 /* confdefs.h.  */
17682 _ACEOF
17683 cat confdefs.h >>conftest.$ac_ext
17684 cat >>conftest.$ac_ext <<_ACEOF
17685 /* end confdefs.h.  */
17686 #include <sys/acl.h>
17687 _ACEOF
17688 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17689   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17690   ac_status=$?
17691   grep -v '^ *+' conftest.er1 >conftest.err
17692   rm -f conftest.er1
17693   cat conftest.err >&5
17694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17695   (exit $ac_status); } >/dev/null; then
17696   if test -s conftest.err; then
17697     ac_cpp_err=$ac_c_preproc_warn_flag
17698   else
17699     ac_cpp_err=
17700   fi
17701 else
17702   ac_cpp_err=yes
17703 fi
17704 if test -z "$ac_cpp_err"; then
17705   ac_header_preproc=yes
17706 else
17707   echo "$as_me: failed program was:" >&5
17708 sed 's/^/| /' conftest.$ac_ext >&5
17709
17710   ac_header_preproc=no
17711 fi
17712 rm -f conftest.err conftest.$ac_ext
17713 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17714 echo "${ECHO_T}$ac_header_preproc" >&6
17715
17716 # So?  What about this header?
17717 case $ac_header_compiler:$ac_header_preproc in
17718   yes:no )
17719     { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
17720 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17721     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
17722 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
17723     (
17724       cat <<\_ASBOX
17725 ## ------------------------------------ ##
17726 ## Report this to bug-autoconf@gnu.org. ##
17727 ## ------------------------------------ ##
17728 _ASBOX
17729     ) |
17730       sed "s/^/$as_me: WARNING:     /" >&2
17731     ;;
17732   no:yes )
17733     { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
17734 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
17735     { echo "$as_me:$LINENO: WARNING: sys/acl.h: check for missing prerequisite headers?" >&5
17736 echo "$as_me: WARNING: sys/acl.h: check for missing prerequisite headers?" >&2;}
17737     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
17738 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
17739     (
17740       cat <<\_ASBOX
17741 ## ------------------------------------ ##
17742 ## Report this to bug-autoconf@gnu.org. ##
17743 ## ------------------------------------ ##
17744 _ASBOX
17745     ) |
17746       sed "s/^/$as_me: WARNING:     /" >&2
17747     ;;
17748 esac
17749 echo "$as_me:$LINENO: checking for sys/acl.h" >&5
17750 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
17751 if test "${ac_cv_header_sys_acl_h+set}" = set; then
17752   echo $ECHO_N "(cached) $ECHO_C" >&6
17753 else
17754   ac_cv_header_sys_acl_h=$ac_header_preproc
17755 fi
17756 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
17757 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
17758
17759 fi
17760
17761
17762 echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
17763 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6
17764 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
17765   echo $ECHO_N "(cached) $ECHO_C" >&6
17766 else
17767   ac_check_lib_save_LIBS=$LIBS
17768 LIBS="-lacl  $LIBS"
17769 cat >conftest.$ac_ext <<_ACEOF
17770 #line $LINENO "configure"
17771 /* confdefs.h.  */
17772 _ACEOF
17773 cat confdefs.h >>conftest.$ac_ext
17774 cat >>conftest.$ac_ext <<_ACEOF
17775 /* end confdefs.h.  */
17776
17777 /* Override any gcc2 internal prototype to avoid an error.  */
17778 #ifdef __cplusplus
17779 extern "C"
17780 #endif
17781 /* We use char because int might match the return type of a gcc2
17782    builtin and then its argument prototype would still apply.  */
17783 char acl_get_file ();
17784 int
17785 main ()
17786 {
17787 acl_get_file ();
17788   ;
17789   return 0;
17790 }
17791 _ACEOF
17792 rm -f conftest.$ac_objext conftest$ac_exeext
17793 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17794   (eval $ac_link) 2>&5
17795   ac_status=$?
17796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17797   (exit $ac_status); } &&
17798          { ac_try='test -s conftest$ac_exeext'
17799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17800   (eval $ac_try) 2>&5
17801   ac_status=$?
17802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17803   (exit $ac_status); }; }; then
17804   ac_cv_lib_acl_acl_get_file=yes
17805 else
17806   echo "$as_me: failed program was:" >&5
17807 sed 's/^/| /' conftest.$ac_ext >&5
17808
17809 ac_cv_lib_acl_acl_get_file=no
17810 fi
17811 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17812 LIBS=$ac_check_lib_save_LIBS
17813 fi
17814 echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
17815 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6
17816 if test $ac_cv_lib_acl_acl_get_file = yes; then
17817   FDLIBS="-lacl $FDLIBS"
17818 fi
17819
17820 have_acl=no
17821 if test $ac_cv_lib_acl_acl_get_file = yes; then
17822    cat >>confdefs.h <<\_ACEOF
17823 #define HAVE_ACL 1
17824 _ACEOF
17825
17826    have_acl=yes
17827 fi
17828
17829 PTHREAD_LIB=""
17830 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
17831 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
17832 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
17833   echo $ECHO_N "(cached) $ECHO_C" >&6
17834 else
17835   ac_check_lib_save_LIBS=$LIBS
17836 LIBS="-lpthread  $LIBS"
17837 cat >conftest.$ac_ext <<_ACEOF
17838 #line $LINENO "configure"
17839 /* confdefs.h.  */
17840 _ACEOF
17841 cat confdefs.h >>conftest.$ac_ext
17842 cat >>conftest.$ac_ext <<_ACEOF
17843 /* end confdefs.h.  */
17844
17845 /* Override any gcc2 internal prototype to avoid an error.  */
17846 #ifdef __cplusplus
17847 extern "C"
17848 #endif
17849 /* We use char because int might match the return type of a gcc2
17850    builtin and then its argument prototype would still apply.  */
17851 char pthread_create ();
17852 int
17853 main ()
17854 {
17855 pthread_create ();
17856   ;
17857   return 0;
17858 }
17859 _ACEOF
17860 rm -f conftest.$ac_objext conftest$ac_exeext
17861 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17862   (eval $ac_link) 2>&5
17863   ac_status=$?
17864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17865   (exit $ac_status); } &&
17866          { ac_try='test -s conftest$ac_exeext'
17867   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17868   (eval $ac_try) 2>&5
17869   ac_status=$?
17870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17871   (exit $ac_status); }; }; then
17872   ac_cv_lib_pthread_pthread_create=yes
17873 else
17874   echo "$as_me: failed program was:" >&5
17875 sed 's/^/| /' conftest.$ac_ext >&5
17876
17877 ac_cv_lib_pthread_pthread_create=no
17878 fi
17879 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17880 LIBS=$ac_check_lib_save_LIBS
17881 fi
17882 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
17883 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
17884 if test $ac_cv_lib_pthread_pthread_create = yes; then
17885   PTHREAD_LIB="-lpthread"
17886 else
17887   echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
17888 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
17889 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
17890   echo $ECHO_N "(cached) $ECHO_C" >&6
17891 else
17892   ac_check_lib_save_LIBS=$LIBS
17893 LIBS="-lpthreads  $LIBS"
17894 cat >conftest.$ac_ext <<_ACEOF
17895 #line $LINENO "configure"
17896 /* confdefs.h.  */
17897 _ACEOF
17898 cat confdefs.h >>conftest.$ac_ext
17899 cat >>conftest.$ac_ext <<_ACEOF
17900 /* end confdefs.h.  */
17901
17902 /* Override any gcc2 internal prototype to avoid an error.  */
17903 #ifdef __cplusplus
17904 extern "C"
17905 #endif
17906 /* We use char because int might match the return type of a gcc2
17907    builtin and then its argument prototype would still apply.  */
17908 char pthread_create ();
17909 int
17910 main ()
17911 {
17912 pthread_create ();
17913   ;
17914   return 0;
17915 }
17916 _ACEOF
17917 rm -f conftest.$ac_objext conftest$ac_exeext
17918 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17919   (eval $ac_link) 2>&5
17920   ac_status=$?
17921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17922   (exit $ac_status); } &&
17923          { ac_try='test -s conftest$ac_exeext'
17924   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17925   (eval $ac_try) 2>&5
17926   ac_status=$?
17927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17928   (exit $ac_status); }; }; then
17929   ac_cv_lib_pthreads_pthread_create=yes
17930 else
17931   echo "$as_me: failed program was:" >&5
17932 sed 's/^/| /' conftest.$ac_ext >&5
17933
17934 ac_cv_lib_pthreads_pthread_create=no
17935 fi
17936 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17937 LIBS=$ac_check_lib_save_LIBS
17938 fi
17939 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
17940 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
17941 if test $ac_cv_lib_pthreads_pthread_create = yes; then
17942   PTHREAD_LIB="-lpthreads"
17943 else
17944   echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
17945 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
17946 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
17947   echo $ECHO_N "(cached) $ECHO_C" >&6
17948 else
17949   ac_check_lib_save_LIBS=$LIBS
17950 LIBS="-lc_r  $LIBS"
17951 cat >conftest.$ac_ext <<_ACEOF
17952 #line $LINENO "configure"
17953 /* confdefs.h.  */
17954 _ACEOF
17955 cat confdefs.h >>conftest.$ac_ext
17956 cat >>conftest.$ac_ext <<_ACEOF
17957 /* end confdefs.h.  */
17958
17959 /* Override any gcc2 internal prototype to avoid an error.  */
17960 #ifdef __cplusplus
17961 extern "C"
17962 #endif
17963 /* We use char because int might match the return type of a gcc2
17964    builtin and then its argument prototype would still apply.  */
17965 char pthread_create ();
17966 int
17967 main ()
17968 {
17969 pthread_create ();
17970   ;
17971   return 0;
17972 }
17973 _ACEOF
17974 rm -f conftest.$ac_objext conftest$ac_exeext
17975 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17976   (eval $ac_link) 2>&5
17977   ac_status=$?
17978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17979   (exit $ac_status); } &&
17980          { ac_try='test -s conftest$ac_exeext'
17981   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17982   (eval $ac_try) 2>&5
17983   ac_status=$?
17984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17985   (exit $ac_status); }; }; then
17986   ac_cv_lib_c_r_pthread_create=yes
17987 else
17988   echo "$as_me: failed program was:" >&5
17989 sed 's/^/| /' conftest.$ac_ext >&5
17990
17991 ac_cv_lib_c_r_pthread_create=no
17992 fi
17993 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17994 LIBS=$ac_check_lib_save_LIBS
17995 fi
17996 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
17997 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
17998 if test $ac_cv_lib_c_r_pthread_create = yes; then
17999   PTHREAD_LIB="-lc_r"
18000 else
18001   echo "$as_me:$LINENO: checking for pthread_create" >&5
18002 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6
18003 if test "${ac_cv_func_pthread_create+set}" = set; then
18004   echo $ECHO_N "(cached) $ECHO_C" >&6
18005 else
18006   cat >conftest.$ac_ext <<_ACEOF
18007 #line $LINENO "configure"
18008 /* confdefs.h.  */
18009 _ACEOF
18010 cat confdefs.h >>conftest.$ac_ext
18011 cat >>conftest.$ac_ext <<_ACEOF
18012 /* end confdefs.h.  */
18013 /* System header to define __stub macros and hopefully few prototypes,
18014     which can conflict with char pthread_create (); below.
18015     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18016     <limits.h> exists even on freestanding compilers.  */
18017 #ifdef __STDC__
18018 # include <limits.h>
18019 #else
18020 # include <assert.h>
18021 #endif
18022 /* Override any gcc2 internal prototype to avoid an error.  */
18023 #ifdef __cplusplus
18024 extern "C"
18025 {
18026 #endif
18027 /* We use char because int might match the return type of a gcc2
18028    builtin and then its argument prototype would still apply.  */
18029 char pthread_create ();
18030 /* The GNU C library defines this for functions which it implements
18031     to always fail with ENOSYS.  Some functions are actually named
18032     something starting with __ and the normal name is an alias.  */
18033 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
18034 choke me
18035 #else
18036 char (*f) () = pthread_create;
18037 #endif
18038 #ifdef __cplusplus
18039 }
18040 #endif
18041
18042 int
18043 main ()
18044 {
18045 return f != pthread_create;
18046   ;
18047   return 0;
18048 }
18049 _ACEOF
18050 rm -f conftest.$ac_objext conftest$ac_exeext
18051 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18052   (eval $ac_link) 2>&5
18053   ac_status=$?
18054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18055   (exit $ac_status); } &&
18056          { ac_try='test -s conftest$ac_exeext'
18057   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18058   (eval $ac_try) 2>&5
18059   ac_status=$?
18060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18061   (exit $ac_status); }; }; then
18062   ac_cv_func_pthread_create=yes
18063 else
18064   echo "$as_me: failed program was:" >&5
18065 sed 's/^/| /' conftest.$ac_ext >&5
18066
18067 ac_cv_func_pthread_create=no
18068 fi
18069 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18070 fi
18071 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
18072 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6
18073
18074
18075 fi
18076
18077
18078 fi
18079
18080
18081 fi
18082
18083
18084
18085 cat >>confdefs.h <<\_ACEOF
18086 #define FDLIBS 1
18087 _ACEOF
18088
18089
18090
18091 CFLAGS=${CFLAGS--O}
18092 LDFLAGS=${LDFLAGS--O}
18093 DB_LIBS="${SQL_LFLAGS}"
18094
18095 CPPFLAGS="$CPPFLAGS"
18096
18097
18098
18099
18100
18101
18102
18103
18104
18105
18106
18107
18108
18109
18110 OBJLIST=
18111
18112
18113 lld="lld"
18114 llu="llu"
18115
18116 WCFLAGS=
18117 WLDFLAGS=
18118
18119 #
18120 # Finally we set appropriate distribution specific
18121 #  variables and defaults
18122 #
18123 # PFILES are platform specific files
18124 PFILES="platforms/Makefile"
18125 PSCMD="ps -e"
18126 WIN32=
18127 MACOSX=
18128 hostname=`uname -n | cut -d '.' -f 1`
18129 case "$DISTNAME" in
18130 aix)
18131         DISTVER=`uname -r`
18132         PSCMD="ps -e -o pid,comm"
18133         PFILES="${PFILES} \
18134            platforms/aix/Makefile"
18135         TAPEDRIVE="/dev/rmt0.1"
18136   ;;
18137 alpha)
18138         DISTVER=`uname -r`
18139         PTHREAD_LIB="-lpthread -lexc"
18140         if test "${CC}" = "gcc" ; then
18141            lld="lld"
18142            llu="llu"
18143         else
18144            lld="ld"
18145            llu="lu"
18146         fi
18147         TAPEDRIVE="/dev/nrmt0"
18148   ;;
18149 bsdi)
18150         DISTVER=`uname -a |awk '{print $3}'`
18151         TAPEDRIVE="/dev/nrmt0"
18152         PTHREAD_LIB="-pthread"
18153         CFLAGS="${CFLAGS} -pthread"
18154         PSCMD="ps -x -o pid,command"
18155         lld="qd"
18156         llu="qu"
18157         PFILES="${PFILES} \
18158             platforms/bsdi/Makefile \
18159             platforms/bsdi/bacula-fd \
18160             platforms/bsdi/bacula-sd \
18161             platforms/bsdi/bacula-dir"
18162         largefile_support="yes"
18163   ;;
18164 cygwin)
18165         DISTVER=`uname -a |awk '{print $3}'`
18166         TAPEDRIVE="/dev/nrst0"
18167         WIN32=win32
18168         WCFLAGS="-mwindows"
18169         WLDFLAGS="-mwindows"
18170   ;;
18171 darwin)
18172         DISTVER=`uname -r`
18173         TAPEDRIVE="/dev/nst0"
18174         PSCMD="ps -e -o pid,command"
18175         MACOSX=macosx
18176         PFILES="${PFILES} \
18177            platforms/darwin/Makefile"
18178   ;;
18179 debian)
18180         DISTVER=`cat /etc/debian_version`
18181         TAPEDRIVE="/dev/nrst0"
18182         PSCMD="ps -e -o pid,command"
18183   ;;
18184 freebsd)
18185         DISTVER=`uname -a |awk '{print $3}'`
18186         VER=`echo $DISTVER | cut -c 1`
18187         if test x$VER = x4 ; then
18188            PTHREAD_LIB="-pthread"
18189            CFLAGS="${CFLAGS} -pthread"
18190         fi
18191         lld="qd"
18192         llu="qu"
18193         TAPEDRIVE="/dev/nrsa0"
18194         PSCMD="ps -x -o pid,command"
18195         PFILES="${PFILES} \
18196             platforms/freebsd/Makefile \
18197             platforms/freebsd/bacula-fd \
18198             platforms/freebsd/bacula-sd \
18199             platforms/freebsd/bacula-dir"
18200         largefile_support="yes"
18201   ;;
18202 hpux)
18203         PSCMD="UNIX95=1 ps -e -o pid,comm"
18204         CFLAGS="$(CFLAGS) -D_XOPEN_SOURCE_EXTENDED=1"
18205         DISTVER=`uname -r`
18206         TAPEDRIVE="/dev/rmt/0hnb"
18207   ;;
18208 irix)
18209         DISTVER=`uname -r`
18210         TAPEDRIVE="/dev/rmt/0cbn"
18211         PSCMD="ps -e -o pid,comm"
18212         PFILES="${PFILES} \
18213             platforms/irix/Makefile \
18214             platforms/irix/bacula-fd \
18215             platforms/irix/bacula-sd \
18216             platforms/irix/bacula-dir"
18217   ;;
18218 netbsd)
18219         DISTVER=`uname -a |awk '{print $3}'`
18220         lld="qd"
18221         llu="qu"
18222         TAPEDRIVE="/dev/nrst0"
18223         PSCMD="ps -a -o pid,command"
18224         PTHREAD_LIB="-pthread"
18225         CFLAGS="${CFLAGS} -pthread"
18226   ;;
18227 openbsd)
18228         DISTVER=`uname -a |awk '{print $3}'`
18229         lld="qd"
18230         llu="qu"
18231         TAPEDRIVE="/dev/nrst0"
18232         PSCMD="ps -a -o pid,command"
18233         PTHREAD_LIB="-pthread"
18234         CFLAGS="${CFLAGS} -pthread"
18235         PFILES="${PFILES} \
18236             platforms/openbsd/Makefile \
18237             platforms/openbsd/bacula-fd \
18238             platforms/openbsd/bacula-sd \
18239             platforms/openbsd/bacula-dir"
18240   ;;
18241 redhat)
18242         if test -f /etc/whitebox-release ; then
18243            f=/etc/whitebox-release
18244         else
18245            f=/etc/redhat-release
18246         fi
18247         if test `cat $f | grep release |\
18248                    cut -f 3 -d ' '`x = "Enterprise"x ; then
18249            DISTVER="Enterprise "`cat $f | grep release |\
18250                     cut -f 6 -d ' '`
18251         else
18252             DISTVER=`cat /etc/redhat-release | grep release |\
18253                      cut -f 5 -d ' '`
18254         fi
18255         TAPEDRIVE="/dev/nst0"
18256         PSCMD="ps -e -o pid,command"
18257         PFILES="${PFILES} \
18258             platforms/redhat/Makefile \
18259             platforms/redhat/bacula-fd \
18260             platforms/redhat/bacula-sd \
18261             platforms/redhat/bacula-dir \
18262             platforms/redhat/bacula.spec \
18263             "
18264         hostname=`hostname -s`
18265   ;;
18266 mandrake)
18267         DISTVER=`cat /etc/mandrake-release | grep release |\
18268            cut -f 5 -d ' '`
18269         TAPEDRIVE="/dev/nst0"
18270         PSCMD="ps -e -o pid,command"
18271         PFILES="${PFILES} \
18272             platforms/mandrake/Makefile \
18273             platforms/mandrake/bacula-fd \
18274             platforms/mandrake/bacula-sd \
18275             platforms/mandrake/bacula-dir \
18276             platforms/mandrake/bacula.spec \
18277             "
18278   ;;
18279 gentoo)
18280         DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
18281         TAPEDRIVE="/dev/nst0"
18282         PSCMD="ps -e -o pid,command"
18283         PFILES="${PFILES} \
18284             platforms/gentoo/Makefile \
18285             platforms/gentoo/bacula-fd \
18286             platforms/gentoo/bacula-sd \
18287             platforms/gentoo/bacula-dir"
18288   ;;
18289 slackware)
18290         DISTVER=`cat /etc/slackware-version`
18291         TAPEDRIVE="/dev/nst0"
18292         PSCMD="ps -e -o pid,command"
18293         PFILES="${PFILES} \
18294             platforms/slackware/Makefile \
18295             platforms/slackware/rc.bacula-fd \
18296             platforms/slackware/rc.bacula-sd \
18297             platforms/slackware/rc.bacula-dir\
18298             platforms/slackware/functions.bacula"
18299   ;;
18300 solaris)
18301         DISTVER=`uname -r`
18302         TAPEDRIVE="/dev/rmt/0cbn"
18303         PSCMD="ps -e -o pid,comm"
18304         PFILES="${PFILES} \
18305             platforms/solaris/Makefile \
18306             platforms/solaris/bacula-fd \
18307             platforms/solaris/bacula-sd \
18308             platforms/solaris/bacula-dir"
18309         if test x$DISTVER = x5.6 ; then
18310             cat >>confdefs.h <<\_ACEOF
18311 #define HAVE_OLD_SOCKOPT 1
18312 _ACEOF
18313
18314         fi
18315   ;;
18316 suse)
18317         DISTVER=`cat /etc/SuSE-release |grep VERSION|\
18318             cut -f 3 -d ' '`
18319         TAPEDRIVE="/dev/nst0"
18320         PSCMD="ps -e -o pid,command"
18321         PFILES="${PFILES} \
18322             platforms/suse/Makefile \
18323             platforms/suse/bacula-fd \
18324             platforms/suse/bacula-sd \
18325             platforms/suse/bacula-dir \
18326             platforms/suse/bacula \
18327             platforms/suse/bacula.spec"
18328   ;;
18329 suse5)
18330         DISTNAME=suse
18331         DISTVER=5.x
18332         TAPEDRIVE="/dev/nst0"
18333         PSCMD="ps -e -o pid,command"
18334         PFILES="${PFILES} \
18335             platforms/suse/Makefile \
18336             platforms/suse/bacula-fd \
18337             platforms/suse/bacula-sd \
18338             platforms/suse/bacula-dir"
18339   ;;
18340 unknown)
18341         DISTVER=unknown
18342         TAPEDRIVE="/dev/nst0"
18343   ;;
18344 *)
18345   echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
18346   ;;
18347 esac
18348
18349
18350
18351 LIBS="$PTHREAD_LIB $LIBS"
18352
18353 cat >>confdefs.h <<_ACEOF
18354 #define lld "$lld"
18355 _ACEOF
18356
18357 cat >>confdefs.h <<_ACEOF
18358 #define llu "$llu"
18359 _ACEOF
18360
18361
18362
18363
18364
18365
18366
18367
18368 MCOMMON=./autoconf/Make.common
18369
18370
18371 if test "x${subsysdir}" = "x${sbindir}" ; then
18372    echo " "
18373    echo " "
18374    echo "You have set both --sbindir and --with-subsys-dir"
18375    echo "  equal to: ${subsysdir} "
18376    echo "This is not permitted. Please reconfigure."
18377    echo " "
18378    echo "Aborting configuration ..."
18379    echo " "
18380    echo " "
18381    exit 1
18382 fi
18383
18384                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 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"
18385           ac_config_commands="$ac_config_commands default"
18386 cat >confcache <<\_ACEOF
18387 # This file is a shell script that caches the results of configure
18388 # tests run on this system so they can be shared between configure
18389 # scripts and configure runs, see configure's option --config-cache.
18390 # It is not useful on other systems.  If it contains results you don't
18391 # want to keep, you may remove or edit it.
18392 #
18393 # config.status only pays attention to the cache file if you give it
18394 # the --recheck option to rerun configure.
18395 #
18396 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18397 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18398 # following values.
18399
18400 _ACEOF
18401
18402 # The following way of writing the cache mishandles newlines in values,
18403 # but we know of no workaround that is simple, portable, and efficient.
18404 # So, don't put newlines in cache variables' values.
18405 # Ultrix sh set writes to stderr and can't be redirected directly,
18406 # and sets the high bit in the cache file unless we assign to the vars.
18407 {
18408   (set) 2>&1 |
18409     case `(ac_space=' '; set | grep ac_space) 2>&1` in
18410     *ac_space=\ *)
18411       # `set' does not quote correctly, so add quotes (double-quote
18412       # substitution turns \\\\ into \\, and sed turns \\ into \).
18413       sed -n \
18414         "s/'/'\\\\''/g;
18415           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18416       ;;
18417     *)
18418       # `set' quotes correctly as required by POSIX, so do not add quotes.
18419       sed -n \
18420         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
18421       ;;
18422     esac;
18423 } |
18424   sed '
18425      t clear
18426      : clear
18427      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18428      t end
18429      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18430      : end' >>confcache
18431 if diff $cache_file confcache >/dev/null 2>&1; then :; else
18432   if test -w $cache_file; then
18433     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
18434     cat confcache >$cache_file
18435   else
18436     echo "not updating unwritable cache $cache_file"
18437   fi
18438 fi
18439 rm -f confcache
18440
18441 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18442 # Let make expand exec_prefix.
18443 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18444
18445 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18446 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18447 # trailing colons and then remove the whole line if VPATH becomes empty
18448 # (actually we leave an empty line to preserve line numbers).
18449 if test "x$srcdir" = x.; then
18450   ac_vpsub='/^[         ]*VPATH[        ]*=/{
18451 s/:*\$(srcdir):*/:/;
18452 s/:*\${srcdir}:*/:/;
18453 s/:*@srcdir@:*/:/;
18454 s/^\([^=]*=[    ]*\):*/\1/;
18455 s/:*$//;
18456 s/^[^=]*=[      ]*$//;
18457 }'
18458 fi
18459
18460 DEFS=-DHAVE_CONFIG_H
18461
18462 ac_libobjs=
18463 ac_ltlibobjs=
18464 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18465   # 1. Remove the extension, and $U if already installed.
18466   ac_i=`echo "$ac_i" |
18467          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
18468   # 2. Add them.
18469   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
18470   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
18471 done
18472 LIBOBJS=$ac_libobjs
18473
18474 LTLIBOBJS=$ac_ltlibobjs
18475
18476
18477
18478 : ${CONFIG_STATUS=./config.status}
18479 ac_clean_files_save=$ac_clean_files
18480 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18481 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
18482 echo "$as_me: creating $CONFIG_STATUS" >&6;}
18483 cat >$CONFIG_STATUS <<_ACEOF
18484 #! $SHELL
18485 # Generated by $as_me.
18486 # Run this file to recreate the current configuration.
18487 # Compiler output produced by configure, useful for debugging
18488 # configure, is in config.log if it exists.
18489
18490 debug=false
18491 ac_cs_recheck=false
18492 ac_cs_silent=false
18493 SHELL=\${CONFIG_SHELL-$SHELL}
18494 _ACEOF
18495
18496 cat >>$CONFIG_STATUS <<\_ACEOF
18497 ## --------------------- ##
18498 ## M4sh Initialization.  ##
18499 ## --------------------- ##
18500
18501 # Be Bourne compatible
18502 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18503   emulate sh
18504   NULLCMD=:
18505   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18506   # is contrary to our usage.  Disable this feature.
18507   alias -g '${1+"$@"}'='"$@"'
18508 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
18509   set -o posix
18510 fi
18511
18512 # Support unset when possible.
18513 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
18514   as_unset=unset
18515 else
18516   as_unset=false
18517 fi
18518
18519
18520 # Work around bugs in pre-3.0 UWIN ksh.
18521 $as_unset ENV MAIL MAILPATH
18522 PS1='$ '
18523 PS2='> '
18524 PS4='+ '
18525
18526 # NLS nuisances.
18527 for as_var in \
18528   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
18529   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
18530   LC_TELEPHONE LC_TIME
18531 do
18532   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
18533     eval $as_var=C; export $as_var
18534   else
18535     $as_unset $as_var
18536   fi
18537 done
18538
18539 # Required to use basename.
18540 if expr a : '\(a\)' >/dev/null 2>&1; then
18541   as_expr=expr
18542 else
18543   as_expr=false
18544 fi
18545
18546 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
18547   as_basename=basename
18548 else
18549   as_basename=false
18550 fi
18551
18552
18553 # Name of the executable.
18554 as_me=`$as_basename "$0" ||
18555 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18556          X"$0" : 'X\(//\)$' \| \
18557          X"$0" : 'X\(/\)$' \| \
18558          .     : '\(.\)' 2>/dev/null ||
18559 echo X/"$0" |
18560     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
18561           /^X\/\(\/\/\)$/{ s//\1/; q; }
18562           /^X\/\(\/\).*/{ s//\1/; q; }
18563           s/.*/./; q'`
18564
18565
18566 # PATH needs CR, and LINENO needs CR and PATH.
18567 # Avoid depending upon Character Ranges.
18568 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18569 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18570 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18571 as_cr_digits='0123456789'
18572 as_cr_alnum=$as_cr_Letters$as_cr_digits
18573
18574 # The user is always right.
18575 if test "${PATH_SEPARATOR+set}" != set; then
18576   echo "#! /bin/sh" >conf$$.sh
18577   echo  "exit 0"   >>conf$$.sh
18578   chmod +x conf$$.sh
18579   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
18580     PATH_SEPARATOR=';'
18581   else
18582     PATH_SEPARATOR=:
18583   fi
18584   rm -f conf$$.sh
18585 fi
18586
18587
18588   as_lineno_1=$LINENO
18589   as_lineno_2=$LINENO
18590   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
18591   test "x$as_lineno_1" != "x$as_lineno_2" &&
18592   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
18593   # Find who we are.  Look in the path if we contain no path at all
18594   # relative or not.
18595   case $0 in
18596     *[\\/]* ) as_myself=$0 ;;
18597     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18598 for as_dir in $PATH
18599 do
18600   IFS=$as_save_IFS
18601   test -z "$as_dir" && as_dir=.
18602   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18603 done
18604
18605        ;;
18606   esac
18607   # We did not find ourselves, most probably we were run as `sh COMMAND'
18608   # in which case we are not to be found in the path.
18609   if test "x$as_myself" = x; then
18610     as_myself=$0
18611   fi
18612   if test ! -f "$as_myself"; then
18613     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
18614 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
18615    { (exit 1); exit 1; }; }
18616   fi
18617   case $CONFIG_SHELL in
18618   '')
18619     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18620 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
18621 do
18622   IFS=$as_save_IFS
18623   test -z "$as_dir" && as_dir=.
18624   for as_base in sh bash ksh sh5; do
18625          case $as_dir in
18626          /*)
18627            if ("$as_dir/$as_base" -c '
18628   as_lineno_1=$LINENO
18629   as_lineno_2=$LINENO
18630   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
18631   test "x$as_lineno_1" != "x$as_lineno_2" &&
18632   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
18633              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
18634              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
18635              CONFIG_SHELL=$as_dir/$as_base
18636              export CONFIG_SHELL
18637              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
18638            fi;;
18639          esac
18640        done
18641 done
18642 ;;
18643   esac
18644
18645   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
18646   # uniformly replaced by the line number.  The first 'sed' inserts a
18647   # line-number line before each line; the second 'sed' does the real
18648   # work.  The second script uses 'N' to pair each line-number line
18649   # with the numbered line, and appends trailing '-' during
18650   # substitution so that $LINENO is not a special case at line end.
18651   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
18652   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
18653   sed '=' <$as_myself |
18654     sed '
18655       N
18656       s,$,-,
18657       : loop
18658       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
18659       t loop
18660       s,-$,,
18661       s,^['$as_cr_digits']*\n,,
18662     ' >$as_me.lineno &&
18663   chmod +x $as_me.lineno ||
18664     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
18665 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
18666    { (exit 1); exit 1; }; }
18667
18668   # Don't try to exec as it changes $[0], causing all sort of problems
18669   # (the dirname of $[0] is not the place where we might find the
18670   # original and so on.  Autoconf is especially sensible to this).
18671   . ./$as_me.lineno
18672   # Exit status is that of the last command.
18673   exit
18674 }
18675
18676
18677 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
18678   *c*,-n*) ECHO_N= ECHO_C='
18679 ' ECHO_T='      ' ;;
18680   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
18681   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
18682 esac
18683
18684 if expr a : '\(a\)' >/dev/null 2>&1; then
18685   as_expr=expr
18686 else
18687   as_expr=false
18688 fi
18689
18690 rm -f conf$$ conf$$.exe conf$$.file
18691 echo >conf$$.file
18692 if ln -s conf$$.file conf$$ 2>/dev/null; then
18693   # We could just check for DJGPP; but this test a) works b) is more generic
18694   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
18695   if test -f conf$$.exe; then
18696     # Don't use ln at all; we don't have any links
18697     as_ln_s='cp -p'
18698   else
18699     as_ln_s='ln -s'
18700   fi
18701 elif ln conf$$.file conf$$ 2>/dev/null; then
18702   as_ln_s=ln
18703 else
18704   as_ln_s='cp -p'
18705 fi
18706 rm -f conf$$ conf$$.exe conf$$.file
18707
18708 if mkdir -p . 2>/dev/null; then
18709   as_mkdir_p=:
18710 else
18711   as_mkdir_p=false
18712 fi
18713
18714 as_executable_p="test -f"
18715
18716 # Sed expression to map a string onto a valid CPP name.
18717 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
18718
18719 # Sed expression to map a string onto a valid variable name.
18720 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
18721
18722
18723 # IFS
18724 # We need space, tab and new line, in precisely that order.
18725 as_nl='
18726 '
18727 IFS="   $as_nl"
18728
18729 # CDPATH.
18730 $as_unset CDPATH
18731
18732 exec 6>&1
18733
18734 # Open the log real soon, to keep \$[0] and so on meaningful, and to
18735 # report actual input values of CONFIG_FILES etc. instead of their
18736 # values after options handling.  Logging --version etc. is OK.
18737 exec 5>>config.log
18738 {
18739   echo
18740   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18741 ## Running $as_me. ##
18742 _ASBOX
18743 } >&5
18744 cat >&5 <<_CSEOF
18745
18746 This file was extended by $as_me, which was
18747 generated by GNU Autoconf 2.57.  Invocation command line was
18748
18749   CONFIG_FILES    = $CONFIG_FILES
18750   CONFIG_HEADERS  = $CONFIG_HEADERS
18751   CONFIG_LINKS    = $CONFIG_LINKS
18752   CONFIG_COMMANDS = $CONFIG_COMMANDS
18753   $ $0 $@
18754
18755 _CSEOF
18756 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
18757 echo >&5
18758 _ACEOF
18759
18760 # Files that config.status was made for.
18761 if test -n "$ac_config_files"; then
18762   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
18763 fi
18764
18765 if test -n "$ac_config_headers"; then
18766   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
18767 fi
18768
18769 if test -n "$ac_config_links"; then
18770   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
18771 fi
18772
18773 if test -n "$ac_config_commands"; then
18774   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
18775 fi
18776
18777 cat >>$CONFIG_STATUS <<\_ACEOF
18778
18779 ac_cs_usage="\
18780 \`$as_me' instantiates files from templates according to the
18781 current configuration.
18782
18783 Usage: $0 [OPTIONS] [FILE]...
18784
18785   -h, --help       print this help, then exit
18786   -V, --version    print version number, then exit
18787   -q, --quiet      do not print progress messages
18788   -d, --debug      don't remove temporary files
18789       --recheck    update $as_me by reconfiguring in the same conditions
18790   --file=FILE[:TEMPLATE]
18791                    instantiate the configuration file FILE
18792   --header=FILE[:TEMPLATE]
18793                    instantiate the configuration header FILE
18794
18795 Configuration files:
18796 $config_files
18797
18798 Configuration headers:
18799 $config_headers
18800
18801 Configuration commands:
18802 $config_commands
18803
18804 Report bugs to <bug-autoconf@gnu.org>."
18805 _ACEOF
18806
18807 cat >>$CONFIG_STATUS <<_ACEOF
18808 ac_cs_version="\\
18809 config.status
18810 configured by $0, generated by GNU Autoconf 2.57,
18811   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
18812
18813 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
18814 Free Software Foundation, Inc.
18815 This config.status script is free software; the Free Software Foundation
18816 gives unlimited permission to copy, distribute and modify it."
18817 srcdir=$srcdir
18818 INSTALL="$INSTALL"
18819 _ACEOF
18820
18821 cat >>$CONFIG_STATUS <<\_ACEOF
18822 # If no file are specified by the user, then we need to provide default
18823 # value.  By we need to know if files were specified by the user.
18824 ac_need_defaults=:
18825 while test $# != 0
18826 do
18827   case $1 in
18828   --*=*)
18829     ac_option=`expr "x$1" : 'x\([^=]*\)='`
18830     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
18831     ac_shift=:
18832     ;;
18833   -*)
18834     ac_option=$1
18835     ac_optarg=$2
18836     ac_shift=shift
18837     ;;
18838   *) # This is not an option, so the user has probably given explicit
18839      # arguments.
18840      ac_option=$1
18841      ac_need_defaults=false;;
18842   esac
18843
18844   case $ac_option in
18845   # Handling of the options.
18846 _ACEOF
18847 cat >>$CONFIG_STATUS <<\_ACEOF
18848   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18849     ac_cs_recheck=: ;;
18850   --version | --vers* | -V )
18851     echo "$ac_cs_version"; exit 0 ;;
18852   --he | --h)
18853     # Conflict between --help and --header
18854     { { echo "$as_me:$LINENO: error: ambiguous option: $1
18855 Try \`$0 --help' for more information." >&5
18856 echo "$as_me: error: ambiguous option: $1
18857 Try \`$0 --help' for more information." >&2;}
18858    { (exit 1); exit 1; }; };;
18859   --help | --hel | -h )
18860     echo "$ac_cs_usage"; exit 0 ;;
18861   --debug | --d* | -d )
18862     debug=: ;;
18863   --file | --fil | --fi | --f )
18864     $ac_shift
18865     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
18866     ac_need_defaults=false;;
18867   --header | --heade | --head | --hea )
18868     $ac_shift
18869     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
18870     ac_need_defaults=false;;
18871   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18872   | -silent | --silent | --silen | --sile | --sil | --si | --s)
18873     ac_cs_silent=: ;;
18874
18875   # This is an error.
18876   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
18877 Try \`$0 --help' for more information." >&5
18878 echo "$as_me: error: unrecognized option: $1
18879 Try \`$0 --help' for more information." >&2;}
18880    { (exit 1); exit 1; }; } ;;
18881
18882   *) ac_config_targets="$ac_config_targets $1" ;;
18883
18884   esac
18885   shift
18886 done
18887
18888 ac_configure_extra_args=
18889
18890 if $ac_cs_silent; then
18891   exec 6>/dev/null
18892   ac_configure_extra_args="$ac_configure_extra_args --silent"
18893 fi
18894
18895 _ACEOF
18896 cat >>$CONFIG_STATUS <<_ACEOF
18897 if \$ac_cs_recheck; then
18898   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
18899   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18900 fi
18901
18902 _ACEOF
18903
18904
18905
18906
18907
18908 cat >>$CONFIG_STATUS <<\_ACEOF
18909 for ac_config_target in $ac_config_targets
18910 do
18911   case "$ac_config_target" in
18912   # Handling of arguments.
18913   "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
18914   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18915   "rescue/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/Makefile" ;;
18916   "rescue/linux/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/linux/Makefile" ;;
18917   "rescue/freebsd/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/freebsd/Makefile" ;;
18918   "rescue/solaris/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/solaris/Makefile" ;;
18919   "scripts/startmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
18920   "scripts/stopmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
18921   "scripts/btraceback" ) CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
18922   "scripts/startit" ) CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
18923   "scripts/stopit" ) CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
18924   "scripts/bconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
18925   "scripts/gconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
18926   "scripts/bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
18927   "scripts/devel_bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
18928   "scripts/fd" ) CONFIG_FILES="$CONFIG_FILES scripts/fd" ;;
18929   "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
18930   "scripts/logrotate" ) CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
18931   "scripts/bacula.desktop.gnome1" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
18932   "scripts/bacula.desktop.gnome2" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
18933   "scripts/bacula.desktop.gnome1.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
18934   "scripts/bacula.desktop.gnome2.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
18935   "scripts/bacula.desktop.gnome1.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
18936   "scripts/bacula.desktop.gnome2.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
18937   "scripts/gnome-console.console_apps" ) CONFIG_FILES="$CONFIG_FILES scripts/gnome-console.console_apps" ;;
18938   "scripts/mtx-changer" ) CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
18939   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
18940   "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
18941   "src/host.h" ) CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
18942   "src/console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
18943   "src/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
18944   "src/gnome-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/Makefile" ;;
18945   "src/gnome-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/gnome-console.conf" ;;
18946   "src/gnome2-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
18947   "src/gnome2-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/gnome-console.conf" ;;
18948   "src/wx-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
18949   "src/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/wx-console.conf" ;;
18950   "src/dird/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
18951   "src/dird/bacula-dir.conf" ) CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
18952   "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
18953   "src/stored/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
18954   "src/stored/bacula-sd.conf" ) CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
18955   "src/filed/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
18956   "src/filed/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
18957   "src/filed/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/win32/Makefile" ;;
18958   "src/cats/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
18959   "src/cats/make_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
18960   "src/cats/delete_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
18961   "src/cats/create_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
18962   "src/cats/update_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
18963   "src/cats/make_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
18964   "src/cats/grant_postgresql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
18965   "src/cats/drop_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
18966   "src/cats/drop_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
18967   "src/cats/create_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
18968   "src/cats/update_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
18969   "src/cats/make_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
18970   "src/cats/grant_mysql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
18971   "src/cats/drop_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
18972   "src/cats/drop_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
18973   "src/cats/create_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
18974   "src/cats/update_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
18975   "src/cats/make_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
18976   "src/cats/grant_sqlite_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
18977   "src/cats/drop_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
18978   "src/cats/drop_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
18979   "src/cats/sqlite" ) CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
18980   "src/cats/mysql" ) CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
18981   "src/cats/create_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
18982   "src/cats/update_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
18983   "src/cats/make_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
18984   "src/cats/grant_bdb_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
18985   "src/cats/drop_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
18986   "src/cats/drop_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
18987   "src/cats/create_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
18988   "src/cats/update_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
18989   "src/cats/grant_bacula_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
18990   "src/cats/make_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
18991   "src/cats/drop_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
18992   "src/cats/drop_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
18993   "src/findlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
18994   "src/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
18995   "src/win32/winbacula.nsi" ) CONFIG_FILES="$CONFIG_FILES src/win32/winbacula.nsi" ;;
18996   "src/win32/baculafd/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/baculafd/bacula-fd.conf" ;;
18997   "src/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/win32/Makefile" ;;
18998   "src/win32/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/console/bconsole.conf" ;;
18999   "src/win32/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/wx-console/wx-console.conf" ;;
19000   "$PFILES" ) CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
19001   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
19002   "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
19003   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
19004 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
19005    { (exit 1); exit 1; }; };;
19006   esac
19007 done
19008
19009 # If the user did not use the arguments to specify the items to instantiate,
19010 # then the envvar interface is used.  Set only those that are not.
19011 # We use the long form for the default assignment because of an extremely
19012 # bizarre bug on SunOS 4.1.3.
19013 if $ac_need_defaults; then
19014   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19015   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19016   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19017 fi
19018
19019 # Have a temporary directory for convenience.  Make it in the build tree
19020 # simply because there is no reason to put it here, and in addition,
19021 # creating and moving files from /tmp can sometimes cause problems.
19022 # Create a temporary directory, and hook for its removal unless debugging.
19023 $debug ||
19024 {
19025   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
19026   trap '{ (exit 1); exit 1; }' 1 2 13 15
19027 }
19028
19029 # Create a (secure) tmp directory for tmp files.
19030
19031 {
19032   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
19033   test -n "$tmp" && test -d "$tmp"
19034 }  ||
19035 {
19036   tmp=./confstat$$-$RANDOM
19037   (umask 077 && mkdir $tmp)
19038 } ||
19039 {
19040    echo "$me: cannot create a temporary directory in ." >&2
19041    { (exit 1); exit 1; }
19042 }
19043
19044 _ACEOF
19045
19046 cat >>$CONFIG_STATUS <<_ACEOF
19047
19048 #
19049 # CONFIG_FILES section.
19050 #
19051
19052 # No need to generate the scripts if there are no CONFIG_FILES.
19053 # This happens for instance when ./config.status config.h
19054 if test -n "\$CONFIG_FILES"; then
19055   # Protect against being on the right side of a sed subst in config.status.
19056   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
19057    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
19058 s,@SHELL@,$SHELL,;t t
19059 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
19060 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
19061 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
19062 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
19063 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
19064 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
19065 s,@exec_prefix@,$exec_prefix,;t t
19066 s,@prefix@,$prefix,;t t
19067 s,@program_transform_name@,$program_transform_name,;t t
19068 s,@bindir@,$bindir,;t t
19069 s,@sbindir@,$sbindir,;t t
19070 s,@libexecdir@,$libexecdir,;t t
19071 s,@datadir@,$datadir,;t t
19072 s,@sysconfdir@,$sysconfdir,;t t
19073 s,@sharedstatedir@,$sharedstatedir,;t t
19074 s,@localstatedir@,$localstatedir,;t t
19075 s,@libdir@,$libdir,;t t
19076 s,@includedir@,$includedir,;t t
19077 s,@oldincludedir@,$oldincludedir,;t t
19078 s,@infodir@,$infodir,;t t
19079 s,@mandir@,$mandir,;t t
19080 s,@build_alias@,$build_alias,;t t
19081 s,@host_alias@,$host_alias,;t t
19082 s,@target_alias@,$target_alias,;t t
19083 s,@DEFS@,$DEFS,;t t
19084 s,@ECHO_C@,$ECHO_C,;t t
19085 s,@ECHO_N@,$ECHO_N,;t t
19086 s,@ECHO_T@,$ECHO_T,;t t
19087 s,@LIBS@,$LIBS,;t t
19088 s,@BUILD_DIR@,$BUILD_DIR,;t t
19089 s,@TRUEPRG@,$TRUEPRG,;t t
19090 s,@FALSEPRG@,$FALSEPRG,;t t
19091 s,@VERSION@,$VERSION,;t t
19092 s,@DATE@,$DATE,;t t
19093 s,@LSMDATE@,$LSMDATE,;t t
19094 s,@CC@,$CC,;t t
19095 s,@CFLAGS@,$CFLAGS,;t t
19096 s,@LDFLAGS@,$LDFLAGS,;t t
19097 s,@CPPFLAGS@,$CPPFLAGS,;t t
19098 s,@ac_ct_CC@,$ac_ct_CC,;t t
19099 s,@EXEEXT@,$EXEEXT,;t t
19100 s,@OBJEXT@,$OBJEXT,;t t
19101 s,@CXX@,$CXX,;t t
19102 s,@CXXFLAGS@,$CXXFLAGS,;t t
19103 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
19104 s,@CPP@,$CPP,;t t
19105 s,@EGREP@,$EGREP,;t t
19106 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
19107 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
19108 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
19109 s,@RANLIB@,$RANLIB,;t t
19110 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
19111 s,@MV@,$MV,;t t
19112 s,@RM@,$RM,;t t
19113 s,@CP@,$CP,;t t
19114 s,@SED@,$SED,;t t
19115 s,@AWK@,$AWK,;t t
19116 s,@ECHO@,$ECHO,;t t
19117 s,@CMP@,$CMP,;t t
19118 s,@TBL@,$TBL,;t t
19119 s,@AR@,$AR,;t t
19120 s,@OPENSSL@,$OPENSSL,;t t
19121 s,@MTX@,$MTX,;t t
19122 s,@PKGCONFIG@,$PKGCONFIG,;t t
19123 s,@WXCONFIG@,$WXCONFIG,;t t
19124 s,@ARFLAGS@,$ARFLAGS,;t t
19125 s,@MAKE_SHELL@,$MAKE_SHELL,;t t
19126 s,@LOCAL_LIBS@,$LOCAL_LIBS,;t t
19127 s,@LOCAL_CFLAGS@,$LOCAL_CFLAGS,;t t
19128 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
19129 s,@LOCAL_DEFS@,$LOCAL_DEFS,;t t
19130 s,@build@,$build,;t t
19131 s,@build_cpu@,$build_cpu,;t t
19132 s,@build_vendor@,$build_vendor,;t t
19133 s,@build_os@,$build_os,;t t
19134 s,@host@,$host,;t t
19135 s,@host_cpu@,$host_cpu,;t t
19136 s,@host_vendor@,$host_vendor,;t t
19137 s,@host_os@,$host_os,;t t
19138 s,@HAVE_SUN_OS_TRUE@,$HAVE_SUN_OS_TRUE,;t t
19139 s,@HAVE_SUN_OS_FALSE@,$HAVE_SUN_OS_FALSE,;t t
19140 s,@HAVE_OSF1_OS_TRUE@,$HAVE_OSF1_OS_TRUE,;t t
19141 s,@HAVE_OSF1_OS_FALSE@,$HAVE_OSF1_OS_FALSE,;t t
19142 s,@HAVE_AIX_OS_TRUE@,$HAVE_AIX_OS_TRUE,;t t
19143 s,@HAVE_AIX_OS_FALSE@,$HAVE_AIX_OS_FALSE,;t t
19144 s,@HAVE_HPUX_OS_TRUE@,$HAVE_HPUX_OS_TRUE,;t t
19145 s,@HAVE_HPUX_OS_FALSE@,$HAVE_HPUX_OS_FALSE,;t t
19146 s,@HAVE_LINUX_OS_TRUE@,$HAVE_LINUX_OS_TRUE,;t t
19147 s,@HAVE_LINUX_OS_FALSE@,$HAVE_LINUX_OS_FALSE,;t t
19148 s,@HAVE_FREEBSD_OS_TRUE@,$HAVE_FREEBSD_OS_TRUE,;t t
19149 s,@HAVE_FREEBSD_OS_FALSE@,$HAVE_FREEBSD_OS_FALSE,;t t
19150 s,@HAVE_NETBSD_OS_TRUE@,$HAVE_NETBSD_OS_TRUE,;t t
19151 s,@HAVE_NETBSD_OS_FALSE@,$HAVE_NETBSD_OS_FALSE,;t t
19152 s,@HAVE_OPENBSD_OS_TRUE@,$HAVE_OPENBSD_OS_TRUE,;t t
19153 s,@HAVE_OPENBSD_OS_FALSE@,$HAVE_OPENBSD_OS_FALSE,;t t
19154 s,@HAVE_BSDI_OS_TRUE@,$HAVE_BSDI_OS_TRUE,;t t
19155 s,@HAVE_BSDI_OS_FALSE@,$HAVE_BSDI_OS_FALSE,;t t
19156 s,@HAVE_SGI_OS_TRUE@,$HAVE_SGI_OS_TRUE,;t t
19157 s,@HAVE_SGI_OS_FALSE@,$HAVE_SGI_OS_FALSE,;t t
19158 s,@HAVE_IRIX_OS_TRUE@,$HAVE_IRIX_OS_TRUE,;t t
19159 s,@HAVE_IRIX_OS_FALSE@,$HAVE_IRIX_OS_FALSE,;t t
19160 s,@HAVE_DARWIN_OS_TRUE@,$HAVE_DARWIN_OS_TRUE,;t t
19161 s,@HAVE_DARWIN_OS_FALSE@,$HAVE_DARWIN_OS_FALSE,;t t
19162 s,@INSIDE_GNOME_COMMON_TRUE@,$INSIDE_GNOME_COMMON_TRUE,;t t
19163 s,@INSIDE_GNOME_COMMON_FALSE@,$INSIDE_GNOME_COMMON_FALSE,;t t
19164 s,@MSGFMT@,$MSGFMT,;t t
19165 s,@GNOME_INCLUDEDIR@,$GNOME_INCLUDEDIR,;t t
19166 s,@GNOMEUI_LIBS@,$GNOMEUI_LIBS,;t t
19167 s,@GNOME_LIBDIR@,$GNOME_LIBDIR,;t t
19168 s,@GNOME_LIBS@,$GNOME_LIBS,;t t
19169 s,@GNOMEGNORBA_LIBS@,$GNOMEGNORBA_LIBS,;t t
19170 s,@GTKXMHTML_LIBS@,$GTKXMHTML_LIBS,;t t
19171 s,@ZVT_LIBS@,$ZVT_LIBS,;t t
19172 s,@GNOME_CONFIG@,$GNOME_CONFIG,;t t
19173 s,@ORBIT_CONFIG@,$ORBIT_CONFIG,;t t
19174 s,@ORBIT_IDL@,$ORBIT_IDL,;t t
19175 s,@HAVE_ORBIT_TRUE@,$HAVE_ORBIT_TRUE,;t t
19176 s,@HAVE_ORBIT_FALSE@,$HAVE_ORBIT_FALSE,;t t
19177 s,@ORBIT_CFLAGS@,$ORBIT_CFLAGS,;t t
19178 s,@ORBIT_LIBS@,$ORBIT_LIBS,;t t
19179 s,@HAVE_GNORBA_TRUE@,$HAVE_GNORBA_TRUE,;t t
19180 s,@HAVE_GNORBA_FALSE@,$HAVE_GNORBA_FALSE,;t t
19181 s,@GNORBA_CFLAGS@,$GNORBA_CFLAGS,;t t
19182 s,@GNORBA_LIBS@,$GNORBA_LIBS,;t t
19183 s,@GNOME_APPLETS_LIBS@,$GNOME_APPLETS_LIBS,;t t
19184 s,@GNOME_DOCKLETS_LIBS@,$GNOME_DOCKLETS_LIBS,;t t
19185 s,@GNOME_CAPPLET_LIBS@,$GNOME_CAPPLET_LIBS,;t t
19186 s,@GNOME_DIR@,$GNOME_DIR,;t t
19187 s,@WXCONS_CPPFLAGS@,$WXCONS_CPPFLAGS,;t t
19188 s,@WXCONS_LDFLAGS@,$WXCONS_LDFLAGS,;t t
19189 s,@WX_DIR@,$WX_DIR,;t t
19190 s,@TTOOL_LDFLAGS@,$TTOOL_LDFLAGS,;t t
19191 s,@STATIC_FD@,$STATIC_FD,;t t
19192 s,@STATIC_SD@,$STATIC_SD,;t t
19193 s,@STATIC_DIR@,$STATIC_DIR,;t t
19194 s,@STATIC_CONS@,$STATIC_CONS,;t t
19195 s,@STATIC_GNOME_CONS@,$STATIC_GNOME_CONS,;t t
19196 s,@STATIC_WX_CONS@,$STATIC_WX_CONS,;t t
19197 s,@ALL_DIRS@,$ALL_DIRS,;t t
19198 s,@CONS_INC@,$CONS_INC,;t t
19199 s,@CONS_OBJ@,$CONS_OBJ,;t t
19200 s,@CONS_SRC@,$CONS_SRC,;t t
19201 s,@CONS_LIBS@,$CONS_LIBS,;t t
19202 s,@CONS_LDFLAGS@,$CONS_LDFLAGS,;t t
19203 s,@READLINE_SRC@,$READLINE_SRC,;t t
19204 s,@working_dir@,$working_dir,;t t
19205 s,@scriptdir@,$scriptdir,;t t
19206 s,@dump_email@,$dump_email,;t t
19207 s,@job_email@,$job_email,;t t
19208 s,@smtp_host@,$smtp_host,;t t
19209 s,@piddir@,$piddir,;t t
19210 s,@subsysdir@,$subsysdir,;t t
19211 s,@baseport@,$baseport,;t t
19212 s,@dir_port@,$dir_port,;t t
19213 s,@fd_port@,$fd_port,;t t
19214 s,@sd_port@,$sd_port,;t t
19215 s,@dir_password@,$dir_password,;t t
19216 s,@fd_password@,$fd_password,;t t
19217 s,@sd_password@,$sd_password,;t t
19218 s,@dir_user@,$dir_user,;t t
19219 s,@dir_group@,$dir_group,;t t
19220 s,@sd_user@,$sd_user,;t t
19221 s,@sd_group@,$sd_group,;t t
19222 s,@fd_user@,$fd_user,;t t
19223 s,@fd_group@,$fd_group,;t t
19224 s,@SBINPERM@,$SBINPERM,;t t
19225 s,@SQL_LFLAGS@,$SQL_LFLAGS,;t t
19226 s,@SQL_INCLUDE@,$SQL_INCLUDE,;t t
19227 s,@SQL_BINDIR@,$SQL_BINDIR,;t t
19228 s,@cats@,$cats,;t t
19229 s,@DB_NAME@,$DB_NAME,;t t
19230 s,@GETCONF@,$GETCONF,;t t
19231 s,@ac_ct_GETCONF@,$ac_ct_GETCONF,;t t
19232 s,@X_CFLAGS@,$X_CFLAGS,;t t
19233 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
19234 s,@X_LIBS@,$X_LIBS,;t t
19235 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
19236 s,@LIBOBJS@,$LIBOBJS,;t t
19237 s,@ALLOCA@,$ALLOCA,;t t
19238 s,@FDLIBS@,$FDLIBS,;t t
19239 s,@DEBUG@,$DEBUG,;t t
19240 s,@DINCLUDE@,$DINCLUDE,;t t
19241 s,@DLIB@,$DLIB,;t t
19242 s,@DB_LIBS@,$DB_LIBS,;t t
19243 s,@WCFLAGS@,$WCFLAGS,;t t
19244 s,@WLDFLAGS@,$WLDFLAGS,;t t
19245 s,@OBJLIST@,$OBJLIST,;t t
19246 s,@hostname@,$hostname,;t t
19247 s,@TAPEDRIVE@,$TAPEDRIVE,;t t
19248 s,@PSCMD@,$PSCMD,;t t
19249 s,@WIN32@,$WIN32,;t t
19250 s,@MACOSX@,$MACOSX,;t t
19251 s,@DISTNAME@,$DISTNAME,;t t
19252 s,@DISTVER@,$DISTVER,;t t
19253 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
19254 /@MCOMMON@/r $MCOMMON
19255 s,@MCOMMON@,,;t t
19256 CEOF
19257
19258 _ACEOF
19259
19260   cat >>$CONFIG_STATUS <<\_ACEOF
19261   # Split the substitutions into bite-sized pieces for seds with
19262   # small command number limits, like on Digital OSF/1 and HP-UX.
19263   ac_max_sed_lines=48
19264   ac_sed_frag=1 # Number of current file.
19265   ac_beg=1 # First line for current file.
19266   ac_end=$ac_max_sed_lines # Line after last line for current file.
19267   ac_more_lines=:
19268   ac_sed_cmds=
19269   while $ac_more_lines; do
19270     if test $ac_beg -gt 1; then
19271       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19272     else
19273       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19274     fi
19275     if test ! -s $tmp/subs.frag; then
19276       ac_more_lines=false
19277     else
19278       # The purpose of the label and of the branching condition is to
19279       # speed up the sed processing (if there are no `@' at all, there
19280       # is no need to browse any of the substitutions).
19281       # These are the two extra sed commands mentioned above.
19282       (echo ':t
19283   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
19284       if test -z "$ac_sed_cmds"; then
19285         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
19286       else
19287         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
19288       fi
19289       ac_sed_frag=`expr $ac_sed_frag + 1`
19290       ac_beg=$ac_end
19291       ac_end=`expr $ac_end + $ac_max_sed_lines`
19292     fi
19293   done
19294   if test -z "$ac_sed_cmds"; then
19295     ac_sed_cmds=cat
19296   fi
19297 fi # test -n "$CONFIG_FILES"
19298
19299 _ACEOF
19300 cat >>$CONFIG_STATUS <<\_ACEOF
19301 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
19302   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19303   case $ac_file in
19304   - | *:- | *:-:* ) # input from stdin
19305         cat >$tmp/stdin
19306         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19307         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19308   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19309         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19310   * )   ac_file_in=$ac_file.in ;;
19311   esac
19312
19313   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
19314   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
19315 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19316          X"$ac_file" : 'X\(//\)[^/]' \| \
19317          X"$ac_file" : 'X\(//\)$' \| \
19318          X"$ac_file" : 'X\(/\)' \| \
19319          .     : '\(.\)' 2>/dev/null ||
19320 echo X"$ac_file" |
19321     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19322           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19323           /^X\(\/\/\)$/{ s//\1/; q; }
19324           /^X\(\/\).*/{ s//\1/; q; }
19325           s/.*/./; q'`
19326   { if $as_mkdir_p; then
19327     mkdir -p "$ac_dir"
19328   else
19329     as_dir="$ac_dir"
19330     as_dirs=
19331     while test ! -d "$as_dir"; do
19332       as_dirs="$as_dir $as_dirs"
19333       as_dir=`(dirname "$as_dir") 2>/dev/null ||
19334 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19335          X"$as_dir" : 'X\(//\)[^/]' \| \
19336          X"$as_dir" : 'X\(//\)$' \| \
19337          X"$as_dir" : 'X\(/\)' \| \
19338          .     : '\(.\)' 2>/dev/null ||
19339 echo X"$as_dir" |
19340     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19341           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19342           /^X\(\/\/\)$/{ s//\1/; q; }
19343           /^X\(\/\).*/{ s//\1/; q; }
19344           s/.*/./; q'`
19345     done
19346     test ! -n "$as_dirs" || mkdir $as_dirs
19347   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19348 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19349    { (exit 1); exit 1; }; }; }
19350
19351   ac_builddir=.
19352
19353 if test "$ac_dir" != .; then
19354   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19355   # A "../" for each directory in $ac_dir_suffix.
19356   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19357 else
19358   ac_dir_suffix= ac_top_builddir=
19359 fi
19360
19361 case $srcdir in
19362   .)  # No --srcdir option.  We are building in place.
19363     ac_srcdir=.
19364     if test -z "$ac_top_builddir"; then
19365        ac_top_srcdir=.
19366     else
19367        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19368     fi ;;
19369   [\\/]* | ?:[\\/]* )  # Absolute path.
19370     ac_srcdir=$srcdir$ac_dir_suffix;
19371     ac_top_srcdir=$srcdir ;;
19372   *) # Relative path.
19373     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19374     ac_top_srcdir=$ac_top_builddir$srcdir ;;
19375 esac
19376 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
19377 # absolute.
19378 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
19379 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
19380 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
19381 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
19382
19383
19384   case $INSTALL in
19385   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19386   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
19387   esac
19388
19389   if test x"$ac_file" != x-; then
19390     { echo "$as_me:$LINENO: creating $ac_file" >&5
19391 echo "$as_me: creating $ac_file" >&6;}
19392     rm -f "$ac_file"
19393   fi
19394   # Let's still pretend it is `configure' which instantiates (i.e., don't
19395   # use $as_me), people would be surprised to read:
19396   #    /* config.h.  Generated by config.status.  */
19397   if test x"$ac_file" = x-; then
19398     configure_input=
19399   else
19400     configure_input="$ac_file.  "
19401   fi
19402   configure_input=$configure_input"Generated from `echo $ac_file_in |
19403                                      sed 's,.*/,,'` by configure."
19404
19405   # First look for the input files in the build tree, otherwise in the
19406   # src tree.
19407   ac_file_inputs=`IFS=:
19408     for f in $ac_file_in; do
19409       case $f in
19410       -) echo $tmp/stdin ;;
19411       [\\/$]*)
19412          # Absolute (can't be DOS-style, as IFS=:)
19413          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19414 echo "$as_me: error: cannot find input file: $f" >&2;}
19415    { (exit 1); exit 1; }; }
19416          echo $f;;
19417       *) # Relative
19418          if test -f "$f"; then
19419            # Build tree
19420            echo $f
19421          elif test -f "$srcdir/$f"; then
19422            # Source tree
19423            echo $srcdir/$f
19424          else
19425            # /dev/null tree
19426            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19427 echo "$as_me: error: cannot find input file: $f" >&2;}
19428    { (exit 1); exit 1; }; }
19429          fi;;
19430       esac
19431     done` || { (exit 1); exit 1; }
19432 _ACEOF
19433 cat >>$CONFIG_STATUS <<_ACEOF
19434   sed "$ac_vpsub
19435 $extrasub
19436 _ACEOF
19437 cat >>$CONFIG_STATUS <<\_ACEOF
19438 :t
19439 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19440 s,@configure_input@,$configure_input,;t t
19441 s,@srcdir@,$ac_srcdir,;t t
19442 s,@abs_srcdir@,$ac_abs_srcdir,;t t
19443 s,@top_srcdir@,$ac_top_srcdir,;t t
19444 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
19445 s,@builddir@,$ac_builddir,;t t
19446 s,@abs_builddir@,$ac_abs_builddir,;t t
19447 s,@top_builddir@,$ac_top_builddir,;t t
19448 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
19449 s,@INSTALL@,$ac_INSTALL,;t t
19450 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
19451   rm -f $tmp/stdin
19452   if test x"$ac_file" != x-; then
19453     mv $tmp/out $ac_file
19454   else
19455     cat $tmp/out
19456     rm -f $tmp/out
19457   fi
19458
19459 done
19460 _ACEOF
19461 cat >>$CONFIG_STATUS <<\_ACEOF
19462
19463 #
19464 # CONFIG_HEADER section.
19465 #
19466
19467 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
19468 # NAME is the cpp macro being defined and VALUE is the value it is being given.
19469 #
19470 # ac_d sets the value in "#define NAME VALUE" lines.
19471 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
19472 ac_dB='[        ].*$,\1#\2'
19473 ac_dC=' '
19474 ac_dD=',;t'
19475 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
19476 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
19477 ac_uB='$,\1#\2define\3'
19478 ac_uC=' '
19479 ac_uD=',;t'
19480
19481 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
19482   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19483   case $ac_file in
19484   - | *:- | *:-:* ) # input from stdin
19485         cat >$tmp/stdin
19486         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19487         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19488   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19489         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19490   * )   ac_file_in=$ac_file.in ;;
19491   esac
19492
19493   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
19494 echo "$as_me: creating $ac_file" >&6;}
19495
19496   # First look for the input files in the build tree, otherwise in the
19497   # src tree.
19498   ac_file_inputs=`IFS=:
19499     for f in $ac_file_in; do
19500       case $f in
19501       -) echo $tmp/stdin ;;
19502       [\\/$]*)
19503          # Absolute (can't be DOS-style, as IFS=:)
19504          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19505 echo "$as_me: error: cannot find input file: $f" >&2;}
19506    { (exit 1); exit 1; }; }
19507          echo $f;;
19508       *) # Relative
19509          if test -f "$f"; then
19510            # Build tree
19511            echo $f
19512          elif test -f "$srcdir/$f"; then
19513            # Source tree
19514            echo $srcdir/$f
19515          else
19516            # /dev/null tree
19517            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19518 echo "$as_me: error: cannot find input file: $f" >&2;}
19519    { (exit 1); exit 1; }; }
19520          fi;;
19521       esac
19522     done` || { (exit 1); exit 1; }
19523   # Remove the trailing spaces.
19524   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
19525
19526 _ACEOF
19527
19528 # Transform confdefs.h into two sed scripts, `conftest.defines' and
19529 # `conftest.undefs', that substitutes the proper values into
19530 # config.h.in to produce config.h.  The first handles `#define'
19531 # templates, and the second `#undef' templates.
19532 # And first: Protect against being on the right side of a sed subst in
19533 # config.status.  Protect against being in an unquoted here document
19534 # in config.status.
19535 rm -f conftest.defines conftest.undefs
19536 # Using a here document instead of a string reduces the quoting nightmare.
19537 # Putting comments in sed scripts is not portable.
19538 #
19539 # `end' is used to avoid that the second main sed command (meant for
19540 # 0-ary CPP macros) applies to n-ary macro definitions.
19541 # See the Autoconf documentation for `clear'.
19542 cat >confdef2sed.sed <<\_ACEOF
19543 s/[\\&,]/\\&/g
19544 s,[\\$`],\\&,g
19545 t clear
19546 : clear
19547 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
19548 t end
19549 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
19550 : end
19551 _ACEOF
19552 # If some macros were called several times there might be several times
19553 # the same #defines, which is useless.  Nevertheless, we may not want to
19554 # sort them, since we want the *last* AC-DEFINE to be honored.
19555 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
19556 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
19557 rm -f confdef2sed.sed
19558
19559 # This sed command replaces #undef with comments.  This is necessary, for
19560 # example, in the case of _POSIX_SOURCE, which is predefined and required
19561 # on some systems where configure will not decide to define it.
19562 cat >>conftest.undefs <<\_ACEOF
19563 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
19564 _ACEOF
19565
19566 # Break up conftest.defines because some shells have a limit on the size
19567 # of here documents, and old seds have small limits too (100 cmds).
19568 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
19569 echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
19570 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
19571 echo '  :' >>$CONFIG_STATUS
19572 rm -f conftest.tail
19573 while grep . conftest.defines >/dev/null
19574 do
19575   # Write a limited-size here document to $tmp/defines.sed.
19576   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
19577   # Speed up: don't consider the non `#define' lines.
19578   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
19579   # Work around the forget-to-reset-the-flag bug.
19580   echo 't clr' >>$CONFIG_STATUS
19581   echo ': clr' >>$CONFIG_STATUS
19582   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
19583   echo 'CEOF
19584   sed -f $tmp/defines.sed $tmp/in >$tmp/out
19585   rm -f $tmp/in
19586   mv $tmp/out $tmp/in
19587 ' >>$CONFIG_STATUS
19588   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
19589   rm -f conftest.defines
19590   mv conftest.tail conftest.defines
19591 done
19592 rm -f conftest.defines
19593 echo '  fi # grep' >>$CONFIG_STATUS
19594 echo >>$CONFIG_STATUS
19595
19596 # Break up conftest.undefs 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 #undef templates' >>$CONFIG_STATUS
19599 rm -f conftest.tail
19600 while grep . conftest.undefs >/dev/null
19601 do
19602   # Write a limited-size here document to $tmp/undefs.sed.
19603   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
19604   # Speed up: don't consider the non `#undef'
19605   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
19606   # Work around the forget-to-reset-the-flag bug.
19607   echo 't clr' >>$CONFIG_STATUS
19608   echo ': clr' >>$CONFIG_STATUS
19609   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
19610   echo 'CEOF
19611   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
19612   rm -f $tmp/in
19613   mv $tmp/out $tmp/in
19614 ' >>$CONFIG_STATUS
19615   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
19616   rm -f conftest.undefs
19617   mv conftest.tail conftest.undefs
19618 done
19619 rm -f conftest.undefs
19620
19621 cat >>$CONFIG_STATUS <<\_ACEOF
19622   # Let's still pretend it is `configure' which instantiates (i.e., don't
19623   # use $as_me), people would be surprised to read:
19624   #    /* config.h.  Generated by config.status.  */
19625   if test x"$ac_file" = x-; then
19626     echo "/* Generated by configure.  */" >$tmp/config.h
19627   else
19628     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
19629   fi
19630   cat $tmp/in >>$tmp/config.h
19631   rm -f $tmp/in
19632   if test x"$ac_file" != x-; then
19633     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
19634       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
19635 echo "$as_me: $ac_file is unchanged" >&6;}
19636     else
19637       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
19638 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19639          X"$ac_file" : 'X\(//\)[^/]' \| \
19640          X"$ac_file" : 'X\(//\)$' \| \
19641          X"$ac_file" : 'X\(/\)' \| \
19642          .     : '\(.\)' 2>/dev/null ||
19643 echo X"$ac_file" |
19644     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19645           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19646           /^X\(\/\/\)$/{ s//\1/; q; }
19647           /^X\(\/\).*/{ s//\1/; q; }
19648           s/.*/./; q'`
19649       { if $as_mkdir_p; then
19650     mkdir -p "$ac_dir"
19651   else
19652     as_dir="$ac_dir"
19653     as_dirs=
19654     while test ! -d "$as_dir"; do
19655       as_dirs="$as_dir $as_dirs"
19656       as_dir=`(dirname "$as_dir") 2>/dev/null ||
19657 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19658          X"$as_dir" : 'X\(//\)[^/]' \| \
19659          X"$as_dir" : 'X\(//\)$' \| \
19660          X"$as_dir" : 'X\(/\)' \| \
19661          .     : '\(.\)' 2>/dev/null ||
19662 echo X"$as_dir" |
19663     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19664           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19665           /^X\(\/\/\)$/{ s//\1/; q; }
19666           /^X\(\/\).*/{ s//\1/; q; }
19667           s/.*/./; q'`
19668     done
19669     test ! -n "$as_dirs" || mkdir $as_dirs
19670   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19671 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19672    { (exit 1); exit 1; }; }; }
19673
19674       rm -f $ac_file
19675       mv $tmp/config.h $ac_file
19676     fi
19677   else
19678     cat $tmp/config.h
19679     rm -f $tmp/config.h
19680   fi
19681 done
19682 _ACEOF
19683 cat >>$CONFIG_STATUS <<\_ACEOF
19684
19685 #
19686 # CONFIG_COMMANDS section.
19687 #
19688 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
19689   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
19690   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
19691   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
19692 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19693          X"$ac_dest" : 'X\(//\)[^/]' \| \
19694          X"$ac_dest" : 'X\(//\)$' \| \
19695          X"$ac_dest" : 'X\(/\)' \| \
19696          .     : '\(.\)' 2>/dev/null ||
19697 echo X"$ac_dest" |
19698     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19699           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19700           /^X\(\/\/\)$/{ s//\1/; q; }
19701           /^X\(\/\).*/{ s//\1/; q; }
19702           s/.*/./; q'`
19703   ac_builddir=.
19704
19705 if test "$ac_dir" != .; then
19706   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19707   # A "../" for each directory in $ac_dir_suffix.
19708   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19709 else
19710   ac_dir_suffix= ac_top_builddir=
19711 fi
19712
19713 case $srcdir in
19714   .)  # No --srcdir option.  We are building in place.
19715     ac_srcdir=.
19716     if test -z "$ac_top_builddir"; then
19717        ac_top_srcdir=.
19718     else
19719        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19720     fi ;;
19721   [\\/]* | ?:[\\/]* )  # Absolute path.
19722     ac_srcdir=$srcdir$ac_dir_suffix;
19723     ac_top_srcdir=$srcdir ;;
19724   *) # Relative path.
19725     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19726     ac_top_srcdir=$ac_top_builddir$srcdir ;;
19727 esac
19728 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
19729 # absolute.
19730 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
19731 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
19732 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
19733 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
19734
19735
19736   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
19737 echo "$as_me: executing $ac_dest commands" >&6;}
19738   case $ac_dest in
19739     default ) (echo "Doing make of dependencies"; make depend;)
19740  ;;
19741   esac
19742 done
19743 _ACEOF
19744
19745 cat >>$CONFIG_STATUS <<\_ACEOF
19746
19747 { (exit 0); exit 0; }
19748 _ACEOF
19749 chmod +x $CONFIG_STATUS
19750 ac_clean_files=$ac_clean_files_save
19751
19752
19753 # configure is writing to config.log, and then calls config.status.
19754 # config.status does its own redirection, appending to config.log.
19755 # Unfortunately, on DOS this fails, as config.log is still kept open
19756 # by configure, so config.status won't be able to write to it; its
19757 # output is simply discarded.  So we exec the FD to /dev/null,
19758 # effectively closing config.log, so it can be properly (re)opened and
19759 # appended to by config.status.  When coming back to configure, we
19760 # need to make the FD available again.
19761 if test "$no_create" != yes; then
19762   ac_cs_success=:
19763   ac_config_status_args=
19764   test "$silent" = yes &&
19765     ac_config_status_args="$ac_config_status_args --quiet"
19766   exec 5>/dev/null
19767   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19768   exec 5>>config.log
19769   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19770   # would make configure fail if this is the last instruction.
19771   $ac_cs_success || { (exit 1); exit 1; }
19772 fi
19773
19774
19775 cd scripts
19776 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
19777 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
19778 cd ..
19779
19780 c=src/cats
19781
19782 chmod 755 $c/create_bacula_database   $c/update_bacula_tables  $c/make_bacula_tables
19783 chmod 755 $c/grant_bacula_privileges  $c/drop_bacula_tables    $c/drop_bacula_database
19784
19785 chmod 755 $c/create_bdb_database      $c/update_bdb_tables     $c/make_bdb_tables
19786 chmod 755 $c/grant_bdb_privileges     $c/drop_bdb_tables       $c/drop_bdb_database
19787
19788 chmod 755 $c/create_mysql_database    $c/update_mysql_tables   $c/make_mysql_tables
19789 chmod 755 $c/grant_mysql_privileges   $c/drop_mysql_tables     $c/drop_mysql_database
19790
19791 chmod 755 $c/create_sqlite_database   $c/update_sqlite_tables  $c/make_sqlite_tables
19792 chmod 755 $c/grant_sqlite_privileges  $c/drop_sqlite_tables    $c/drop_sqlite_database
19793
19794 chmod 755 $c/create_postgresql_database  $c/update_postgresql_tables $c/make_postgresql_tables
19795 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables   $c/drop_postgresql_database
19796
19797 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
19798 chmod 755 $c/sqlite
19799 chmod 755 $c/mysql
19800
19801 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
19802    largefile_support="yes"
19803 fi
19804
19805 #
19806 # A whole lot of hand springs to get the compiler version.
19807 #  This is because gcc changed the output in version 3.0
19808 #
19809 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
19810 if test "x${CCVERSION}" = "x" ; then
19811   CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
19812 fi
19813 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
19814 if test x"${CXXVERSION}" = x ; then
19815   CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
19816 fi
19817
19818 if test "x${subsysdir}" = "x${sbindir}" ; then
19819    echo " "
19820    echo " "
19821    echo "You have set --sbindir and --with-subsys-dir"
19822    echo "  both equal to: ${subsysdir} "
19823    echo "  This is not permitted. Please reconfigure."
19824    echo " "
19825    echo "Aborting configuration ..."
19826    echo " "
19827    echo " "
19828    exit 1
19829 fi
19830
19831 if test "x${db_name}" = "xInternal" ; then
19832    echo " "
19833    echo " "
19834    echo "You have not specified either --enable-client-only or one of the"
19835    echo "  supported databases: MySQL, PostgreSQL, or SQLite".
19836    echo "  This is not permitted. Please reconfigure."
19837    echo " "
19838    echo "Aborting the configuration ..."
19839    echo " "
19840    echo " "
19841    exit 1
19842 fi
19843
19844 echo "
19845 Configuration on `date`:
19846
19847   Host:                       $host -- ${DISTNAME} ${DISTVER}
19848   Bacula version:             ${VERSION} (${DATE})
19849   Source code location:       ${srcdir}
19850   Install binaries:           ${sbindir}
19851   Install config files:       ${sysconfdir}
19852   Scripts directory:          ${scriptdir}
19853   Working directory:          ${working_dir}
19854   PID directory:              ${piddir}
19855   Subsys directory:           ${subsysdir}
19856   C Compiler:                 ${CC} ${CCVERSION}
19857   C++ Compiler:               ${CXX} ${CXXVERSION}
19858   Compiler flags:             ${WCFLAGS} ${CFLAGS}
19859   Linker flags:               ${WLDFLAGS} ${LDFLAGS}
19860   Libraries:                  ${LIBS}
19861   Statically Linked Tools:    ${support_static_tools}
19862   Statically Linked FD:       ${support_static_fd}
19863   Statically Linked SD:       ${support_static_sd}
19864   Statically Linked DIR:      ${support_static_dir}
19865   Statically Linked CONS:     ${support_static_cons}
19866   Database type:              ${db_name}
19867   Database lib:               ${DB_LIBS}
19868
19869   Job Output Email:           ${job_email}
19870   Traceback Email:            ${dump_email}
19871   SMTP Host Address:          ${smtp_host}
19872
19873   Director Port:              ${dir_port}
19874   File daemon Port:           ${fd_port}
19875   Storage daemon Port:        ${sd_port}
19876
19877   Director User:              ${dir_user}
19878   Director Group:             ${dir_group}
19879   Storage Daemon User:        ${sd_user}
19880   Storage DaemonGroup:        ${sd_group}
19881   File Daemon User:           ${fd_user}
19882   File Daemon Group:          ${fd_group}
19883
19884   SQL binaries Directory      ${SQL_BINDIR}
19885
19886   Large file support:         $largefile_support
19887   Bacula conio support:       ${got_conio} ${CONS_LIBS}
19888   readline support:           ${got_readline} ${PRTREADLINE_SRC}
19889   TCP Wrappers support:       ${TCPW_MSG}
19890   ZLIB support:               ${have_zlib}
19891   enable-smartalloc:          ${support_smartalloc}
19892   enable-gnome:               ${support_gnome} ${gnome_version}
19893   enable-wx-console:          ${support_wx_console}
19894   client-only:                ${build_client_only}
19895   ACL support:                ${have_acl}
19896
19897   " > config.out
19898
19899 cat config.out
19900
19901 # old stuff
19902 # cweb support:               ${got_cweb} ${CWEB_SRC}
19903 # gmp support:                ${got_gmp} ${GMP_SRC}