]> git.sur5r.net Git - bacula/bacula/blob - bacula/configure
92a5040dbb301aba13979f64f0b29245ceae2e4f
[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 TRAY_MONITOR_CPPFLAGS TRAY_MONITOR_LDFLAGS TRAY_MONITOR_DIR TTOOL_LDFLAGS STATIC_FD STATIC_SD STATIC_DIR STATIC_CONS STATIC_GNOME_CONS STATIC_WX_CONS ALL_DIRS CONS_INC CONS_OBJ CONS_SRC CONS_LIBS CONS_LDFLAGS READLINE_SRC 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-tray-monitor   enable build of Gnome tray monitor (compatible with KDE) disabled
861   --enable-smartalloc     enable smartalloc debugging support disabled
862   --enable-static-tools   enable static tape tools disabled
863   --enable-static-fd      enable static File daemon disabled
864   --enable-static-sd      enable static Storage daemon disabled
865   --enable-static-dir     enable static Director disabled
866   --enable-static-cons    enable static Console disabled
867   --enable-client-only    build client (File daemon) only disabled
868   --disable-conio            disable conio support enabled
869
870   --disable-readline      disable readline support disable
871
872   --disable-largefile     omit support for large files
873
874 Optional Packages:
875   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
876   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
877   --with-gnome-includes   Specify location of GNOME headers
878   --with-gnome-libs       Specify location of GNOME libs
879   --with-gnome            Specify prefix for GNOME files
880  --with-readline=DIR             specify readline library directory
881   --with-tcp-wrappers=DIR        enable tcpwrappers support
882   --with-working-dir=PATH        specify path of Bacula working directory
883   --with-scriptdir=PATH    specify path of Bacula scripts directory
884   --with-dump-email=EMAIL        dump email address
885   --with-job-email=EMAIL         job output email address
886   --with-smtp-host=HOST          SMTP mail host address
887   --with-pid-dir=PATH            specify location of Bacula pid files
888   --with-subsys-dir=PATH         specify location of Bacula subsys file
889   --with-baseport=PORT           specify base port address for daemons
890   --with-dir-password=PASSWORD   specify Director's password
891   --with-fd-password=PASSWORD    specify Client's password
892   --with-sd-password=PASSWORD    specify Storage daemon's password
893   --with-dir-user=USER           specify user for Director daemon
894   --with-dir-group=GROUP                 specify group for Director daemon
895   --with-sd-user=USER            specify user for Storage daemon
896   --with-sd-group=GROUP          specify group for Storage daemon
897   --with-fd-user=USER            specify user for File daemon
898   --with-fd-group=GROUP          specify group for File daemon
899   --with-sbin-perm=MODE          specify permissions for sbin binaries (0754)
900   --with-postgresql=DIR      Include PostgreSQL support.  DIR is the PostgreSQL
901                           base install directory, defaults to /usr/local/pgsql
902
903   --with-mysql=DIR      Include MySQL support.  DIR is the MySQL base
904                           install directory, default is to search through
905                           a number of common places for the MySQL files.
906
907   --with-embedded-mysql=DIR Include MySQL support.  DIR is the MySQL base
908                           install directory, default is to search through
909                           a number of common places for the MySQL files.
910
911   --with-sqlite=DIR     Include SQLite support.  DIR is the SQLite base
912                           install directory, default is to search through
913                           a number of common places for the SQLite files.
914   --with-x                use the X Window System
915
916 Some influential environment variables:
917   CC          C compiler command
918   CFLAGS      C compiler flags
919   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
920               nonstandard directory <lib dir>
921   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
922               headers in a nonstandard directory <include dir>
923   CXX         C++ compiler command
924   CXXFLAGS    C++ compiler flags
925   CPP         C preprocessor
926
927 Use these variables to override the choices made by `configure' or to help
928 it to find libraries and programs with nonstandard names/locations.
929
930 _ACEOF
931 fi
932
933 if test "$ac_init_help" = "recursive"; then
934   # If there are subdirs, report their specific --help.
935   ac_popdir=`pwd`
936   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
937     test -d $ac_dir || continue
938     ac_builddir=.
939
940 if test "$ac_dir" != .; then
941   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
942   # A "../" for each directory in $ac_dir_suffix.
943   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
944 else
945   ac_dir_suffix= ac_top_builddir=
946 fi
947
948 case $srcdir in
949   .)  # No --srcdir option.  We are building in place.
950     ac_srcdir=.
951     if test -z "$ac_top_builddir"; then
952        ac_top_srcdir=.
953     else
954        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
955     fi ;;
956   [\\/]* | ?:[\\/]* )  # Absolute path.
957     ac_srcdir=$srcdir$ac_dir_suffix;
958     ac_top_srcdir=$srcdir ;;
959   *) # Relative path.
960     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
961     ac_top_srcdir=$ac_top_builddir$srcdir ;;
962 esac
963 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
964 # absolute.
965 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
966 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
967 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
968 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
969
970     cd $ac_dir
971     # Check for guested configure; otherwise get Cygnus style configure.
972     if test -f $ac_srcdir/configure.gnu; then
973       echo
974       $SHELL $ac_srcdir/configure.gnu  --help=recursive
975     elif test -f $ac_srcdir/configure; then
976       echo
977       $SHELL $ac_srcdir/configure  --help=recursive
978     elif test -f $ac_srcdir/configure.ac ||
979            test -f $ac_srcdir/configure.in; then
980       echo
981       $ac_configure --help
982     else
983       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
984     fi
985     cd $ac_popdir
986   done
987 fi
988
989 test -n "$ac_init_help" && exit 0
990 if $ac_init_version; then
991   cat <<\_ACEOF
992
993 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
994 Free Software Foundation, Inc.
995 This configure script is free software; the Free Software Foundation
996 gives unlimited permission to copy, distribute and modify it.
997 _ACEOF
998   exit 0
999 fi
1000 exec 5>config.log
1001 cat >&5 <<_ACEOF
1002 This file contains any messages produced by compilers while
1003 running configure, to aid debugging if configure makes a mistake.
1004
1005 It was created by $as_me, which was
1006 generated by GNU Autoconf 2.57.  Invocation command line was
1007
1008   $ $0 $@
1009
1010 _ACEOF
1011 {
1012 cat <<_ASUNAME
1013 ## --------- ##
1014 ## Platform. ##
1015 ## --------- ##
1016
1017 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1018 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1019 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1020 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1021 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1022
1023 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1024 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1025
1026 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1027 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1028 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1029 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1030 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1031 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1032 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1033
1034 _ASUNAME
1035
1036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1037 for as_dir in $PATH
1038 do
1039   IFS=$as_save_IFS
1040   test -z "$as_dir" && as_dir=.
1041   echo "PATH: $as_dir"
1042 done
1043
1044 } >&5
1045
1046 cat >&5 <<_ACEOF
1047
1048
1049 ## ----------- ##
1050 ## Core tests. ##
1051 ## ----------- ##
1052
1053 _ACEOF
1054
1055
1056 # Keep a trace of the command line.
1057 # Strip out --no-create and --no-recursion so they do not pile up.
1058 # Strip out --silent because we don't want to record it for future runs.
1059 # Also quote any args containing shell meta-characters.
1060 # Make two passes to allow for proper duplicate-argument suppression.
1061 ac_configure_args=
1062 ac_configure_args0=
1063 ac_configure_args1=
1064 ac_sep=
1065 ac_must_keep_next=false
1066 for ac_pass in 1 2
1067 do
1068   for ac_arg
1069   do
1070     case $ac_arg in
1071     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1072     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1073     | -silent | --silent | --silen | --sile | --sil)
1074       continue ;;
1075     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1076       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1077     esac
1078     case $ac_pass in
1079     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1080     2)
1081       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1082       if test $ac_must_keep_next = true; then
1083         ac_must_keep_next=false # Got value, back to normal.
1084       else
1085         case $ac_arg in
1086           *=* | --config-cache | -C | -disable-* | --disable-* \
1087           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1088           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1089           | -with-* | --with-* | -without-* | --without-* | --x)
1090             case "$ac_configure_args0 " in
1091               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1092             esac
1093             ;;
1094           -* ) ac_must_keep_next=true ;;
1095         esac
1096       fi
1097       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1098       # Get rid of the leading space.
1099       ac_sep=" "
1100       ;;
1101     esac
1102   done
1103 done
1104 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1105 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1106
1107 # When interrupted or exit'd, cleanup temporary files, and complete
1108 # config.log.  We remove comments because anyway the quotes in there
1109 # would cause problems or look ugly.
1110 # WARNING: Be sure not to use single quotes in there, as some shells,
1111 # such as our DU 5.0 friend, will then `close' the trap.
1112 trap 'exit_status=$?
1113   # Save into config.log some information that might help in debugging.
1114   {
1115     echo
1116
1117     cat <<\_ASBOX
1118 ## ---------------- ##
1119 ## Cache variables. ##
1120 ## ---------------- ##
1121 _ASBOX
1122     echo
1123     # The following way of writing the cache mishandles newlines in values,
1124 {
1125   (set) 2>&1 |
1126     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1127     *ac_space=\ *)
1128       sed -n \
1129         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1130           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1131       ;;
1132     *)
1133       sed -n \
1134         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1135       ;;
1136     esac;
1137 }
1138     echo
1139
1140     cat <<\_ASBOX
1141 ## ----------------- ##
1142 ## Output variables. ##
1143 ## ----------------- ##
1144 _ASBOX
1145     echo
1146     for ac_var in $ac_subst_vars
1147     do
1148       eval ac_val=$`echo $ac_var`
1149       echo "$ac_var='"'"'$ac_val'"'"'"
1150     done | sort
1151     echo
1152
1153     if test -n "$ac_subst_files"; then
1154       cat <<\_ASBOX
1155 ## ------------- ##
1156 ## Output files. ##
1157 ## ------------- ##
1158 _ASBOX
1159       echo
1160       for ac_var in $ac_subst_files
1161       do
1162         eval ac_val=$`echo $ac_var`
1163         echo "$ac_var='"'"'$ac_val'"'"'"
1164       done | sort
1165       echo
1166     fi
1167
1168     if test -s confdefs.h; then
1169       cat <<\_ASBOX
1170 ## ----------- ##
1171 ## confdefs.h. ##
1172 ## ----------- ##
1173 _ASBOX
1174       echo
1175       sed "/^$/d" confdefs.h | sort
1176       echo
1177     fi
1178     test "$ac_signal" != 0 &&
1179       echo "$as_me: caught signal $ac_signal"
1180     echo "$as_me: exit $exit_status"
1181   } >&5
1182   rm -f core core.* *.core &&
1183   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1184     exit $exit_status
1185      ' 0
1186 for ac_signal in 1 2 13 15; do
1187   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1188 done
1189 ac_signal=0
1190
1191 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1192 rm -rf conftest* confdefs.h
1193 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1194 echo >confdefs.h
1195
1196 # Predefined preprocessor variables.
1197
1198 cat >>confdefs.h <<_ACEOF
1199 #define PACKAGE_NAME "$PACKAGE_NAME"
1200 _ACEOF
1201
1202
1203 cat >>confdefs.h <<_ACEOF
1204 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1205 _ACEOF
1206
1207
1208 cat >>confdefs.h <<_ACEOF
1209 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1210 _ACEOF
1211
1212
1213 cat >>confdefs.h <<_ACEOF
1214 #define PACKAGE_STRING "$PACKAGE_STRING"
1215 _ACEOF
1216
1217
1218 cat >>confdefs.h <<_ACEOF
1219 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1220 _ACEOF
1221
1222
1223 # Let the site file select an alternate cache file if it wants to.
1224 # Prefer explicitly selected file to automatically selected ones.
1225 if test -z "$CONFIG_SITE"; then
1226   if test "x$prefix" != xNONE; then
1227     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1228   else
1229     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1230   fi
1231 fi
1232 for ac_site_file in $CONFIG_SITE; do
1233   if test -r "$ac_site_file"; then
1234     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1235 echo "$as_me: loading site script $ac_site_file" >&6;}
1236     sed 's/^/| /' "$ac_site_file" >&5
1237     . "$ac_site_file"
1238   fi
1239 done
1240
1241 if test -r "$cache_file"; then
1242   # Some versions of bash will fail to source /dev/null (special
1243   # files actually), so we avoid doing that.
1244   if test -f "$cache_file"; then
1245     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1246 echo "$as_me: loading cache $cache_file" >&6;}
1247     case $cache_file in
1248       [\\/]* | ?:[\\/]* ) . $cache_file;;
1249       *)                      . ./$cache_file;;
1250     esac
1251   fi
1252 else
1253   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1254 echo "$as_me: creating cache $cache_file" >&6;}
1255   >$cache_file
1256 fi
1257
1258 # Check that the precious variables saved in the cache have kept the same
1259 # value.
1260 ac_cache_corrupted=false
1261 for ac_var in `(set) 2>&1 |
1262                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1263   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1264   eval ac_new_set=\$ac_env_${ac_var}_set
1265   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1266   eval ac_new_val="\$ac_env_${ac_var}_value"
1267   case $ac_old_set,$ac_new_set in
1268     set,)
1269       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1270 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1271       ac_cache_corrupted=: ;;
1272     ,set)
1273       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1274 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1275       ac_cache_corrupted=: ;;
1276     ,);;
1277     *)
1278       if test "x$ac_old_val" != "x$ac_new_val"; then
1279         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1280 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1281         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1282 echo "$as_me:   former value:  $ac_old_val" >&2;}
1283         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1284 echo "$as_me:   current value: $ac_new_val" >&2;}
1285         ac_cache_corrupted=:
1286       fi;;
1287   esac
1288   # Pass precious variables to config.status.
1289   if test "$ac_new_set" = set; then
1290     case $ac_new_val in
1291     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1292       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1293     *) ac_arg=$ac_var=$ac_new_val ;;
1294     esac
1295     case " $ac_configure_args " in
1296       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1297       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1298     esac
1299   fi
1300 done
1301 if $ac_cache_corrupted; then
1302   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1303 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1304   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1305 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1306    { (exit 1); exit 1; }; }
1307 fi
1308
1309 ac_ext=c
1310 ac_cpp='$CPP $CPPFLAGS'
1311 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1312 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1313 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333 BUILD_DIR=`pwd`
1334 cd ..
1335 TOP_DIR=`pwd`
1336 cd ${BUILD_DIR}
1337
1338 ac_aux_dir=
1339 for ac_dir in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf; do
1340   if test -f $ac_dir/install-sh; then
1341     ac_aux_dir=$ac_dir
1342     ac_install_sh="$ac_aux_dir/install-sh -c"
1343     break
1344   elif test -f $ac_dir/install.sh; then
1345     ac_aux_dir=$ac_dir
1346     ac_install_sh="$ac_aux_dir/install.sh -c"
1347     break
1348   elif test -f $ac_dir/shtool; then
1349     ac_aux_dir=$ac_dir
1350     ac_install_sh="$ac_aux_dir/shtool install -c"
1351     break
1352   fi
1353 done
1354 if test -z "$ac_aux_dir"; then
1355   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&5
1356 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&2;}
1357    { (exit 1); exit 1; }; }
1358 fi
1359 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1360 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1361 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1362
1363           ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
1364
1365
1366
1367
1368
1369 for ac_prog in true
1370 do
1371   # Extract the first word of "$ac_prog", so it can be a program name with args.
1372 set dummy $ac_prog; ac_word=$2
1373 echo "$as_me:$LINENO: checking for $ac_word" >&5
1374 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1375 if test "${ac_cv_path_TRUEPRG+set}" = set; then
1376   echo $ECHO_N "(cached) $ECHO_C" >&6
1377 else
1378   case $TRUEPRG in
1379   [\\/]* | ?:[\\/]*)
1380   ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
1381   ;;
1382   *)
1383   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1384 for as_dir in $PATH
1385 do
1386   IFS=$as_save_IFS
1387   test -z "$as_dir" && as_dir=.
1388   for ac_exec_ext in '' $ac_executable_extensions; do
1389   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1390     ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
1391     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1392     break 2
1393   fi
1394 done
1395 done
1396
1397   ;;
1398 esac
1399 fi
1400 TRUEPRG=$ac_cv_path_TRUEPRG
1401
1402 if test -n "$TRUEPRG"; then
1403   echo "$as_me:$LINENO: result: $TRUEPRG" >&5
1404 echo "${ECHO_T}$TRUEPRG" >&6
1405 else
1406   echo "$as_me:$LINENO: result: no" >&5
1407 echo "${ECHO_T}no" >&6
1408 fi
1409
1410   test -n "$TRUEPRG" && break
1411 done
1412 test -n "$TRUEPRG" || TRUEPRG=":"
1413
1414 for ac_prog in false
1415 do
1416   # Extract the first word of "$ac_prog", so it can be a program name with args.
1417 set dummy $ac_prog; ac_word=$2
1418 echo "$as_me:$LINENO: checking for $ac_word" >&5
1419 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1420 if test "${ac_cv_path_FALSEPRG+set}" = set; then
1421   echo $ECHO_N "(cached) $ECHO_C" >&6
1422 else
1423   case $FALSEPRG in
1424   [\\/]* | ?:[\\/]*)
1425   ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
1426   ;;
1427   *)
1428   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1429 for as_dir in $PATH
1430 do
1431   IFS=$as_save_IFS
1432   test -z "$as_dir" && as_dir=.
1433   for ac_exec_ext in '' $ac_executable_extensions; do
1434   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1435     ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
1436     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1437     break 2
1438   fi
1439 done
1440 done
1441
1442   ;;
1443 esac
1444 fi
1445 FALSEPRG=$ac_cv_path_FALSEPRG
1446
1447 if test -n "$FALSEPRG"; then
1448   echo "$as_me:$LINENO: result: $FALSEPRG" >&5
1449 echo "${ECHO_T}$FALSEPRG" >&6
1450 else
1451   echo "$as_me:$LINENO: result: no" >&5
1452 echo "${ECHO_T}no" >&6
1453 fi
1454
1455   test -n "$FALSEPRG" && break
1456 done
1457 test -n "$FALSEPRG" || FALSEPRG=":"
1458
1459
1460 #AC_CANONICAL_HOST
1461
1462 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1463 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1464 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1465 echo "configuring for bacula $VERSION ($DATE)"
1466
1467
1468
1469 ac_ext=c
1470 ac_cpp='$CPP $CPPFLAGS'
1471 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1472 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1473 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1474 if test -n "$ac_tool_prefix"; then
1475   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1476 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1477 echo "$as_me:$LINENO: checking for $ac_word" >&5
1478 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1479 if test "${ac_cv_prog_CC+set}" = set; then
1480   echo $ECHO_N "(cached) $ECHO_C" >&6
1481 else
1482   if test -n "$CC"; then
1483   ac_cv_prog_CC="$CC" # Let the user override the test.
1484 else
1485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1486 for as_dir in $PATH
1487 do
1488   IFS=$as_save_IFS
1489   test -z "$as_dir" && as_dir=.
1490   for ac_exec_ext in '' $ac_executable_extensions; do
1491   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1492     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1493     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1494     break 2
1495   fi
1496 done
1497 done
1498
1499 fi
1500 fi
1501 CC=$ac_cv_prog_CC
1502 if test -n "$CC"; then
1503   echo "$as_me:$LINENO: result: $CC" >&5
1504 echo "${ECHO_T}$CC" >&6
1505 else
1506   echo "$as_me:$LINENO: result: no" >&5
1507 echo "${ECHO_T}no" >&6
1508 fi
1509
1510 fi
1511 if test -z "$ac_cv_prog_CC"; then
1512   ac_ct_CC=$CC
1513   # Extract the first word of "gcc", so it can be a program name with args.
1514 set dummy gcc; ac_word=$2
1515 echo "$as_me:$LINENO: checking for $ac_word" >&5
1516 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1517 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1518   echo $ECHO_N "(cached) $ECHO_C" >&6
1519 else
1520   if test -n "$ac_ct_CC"; then
1521   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1522 else
1523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1524 for as_dir in $PATH
1525 do
1526   IFS=$as_save_IFS
1527   test -z "$as_dir" && as_dir=.
1528   for ac_exec_ext in '' $ac_executable_extensions; do
1529   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1530     ac_cv_prog_ac_ct_CC="gcc"
1531     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1532     break 2
1533   fi
1534 done
1535 done
1536
1537 fi
1538 fi
1539 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1540 if test -n "$ac_ct_CC"; then
1541   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1542 echo "${ECHO_T}$ac_ct_CC" >&6
1543 else
1544   echo "$as_me:$LINENO: result: no" >&5
1545 echo "${ECHO_T}no" >&6
1546 fi
1547
1548   CC=$ac_ct_CC
1549 else
1550   CC="$ac_cv_prog_CC"
1551 fi
1552
1553 if test -z "$CC"; then
1554   if test -n "$ac_tool_prefix"; then
1555   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1556 set dummy ${ac_tool_prefix}cc; ac_word=$2
1557 echo "$as_me:$LINENO: checking for $ac_word" >&5
1558 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1559 if test "${ac_cv_prog_CC+set}" = set; then
1560   echo $ECHO_N "(cached) $ECHO_C" >&6
1561 else
1562   if test -n "$CC"; then
1563   ac_cv_prog_CC="$CC" # Let the user override the test.
1564 else
1565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1566 for as_dir in $PATH
1567 do
1568   IFS=$as_save_IFS
1569   test -z "$as_dir" && as_dir=.
1570   for ac_exec_ext in '' $ac_executable_extensions; do
1571   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1572     ac_cv_prog_CC="${ac_tool_prefix}cc"
1573     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1574     break 2
1575   fi
1576 done
1577 done
1578
1579 fi
1580 fi
1581 CC=$ac_cv_prog_CC
1582 if test -n "$CC"; then
1583   echo "$as_me:$LINENO: result: $CC" >&5
1584 echo "${ECHO_T}$CC" >&6
1585 else
1586   echo "$as_me:$LINENO: result: no" >&5
1587 echo "${ECHO_T}no" >&6
1588 fi
1589
1590 fi
1591 if test -z "$ac_cv_prog_CC"; then
1592   ac_ct_CC=$CC
1593   # Extract the first word of "cc", so it can be a program name with args.
1594 set dummy cc; ac_word=$2
1595 echo "$as_me:$LINENO: checking for $ac_word" >&5
1596 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1597 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1598   echo $ECHO_N "(cached) $ECHO_C" >&6
1599 else
1600   if test -n "$ac_ct_CC"; then
1601   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1602 else
1603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1604 for as_dir in $PATH
1605 do
1606   IFS=$as_save_IFS
1607   test -z "$as_dir" && as_dir=.
1608   for ac_exec_ext in '' $ac_executable_extensions; do
1609   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1610     ac_cv_prog_ac_ct_CC="cc"
1611     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1612     break 2
1613   fi
1614 done
1615 done
1616
1617 fi
1618 fi
1619 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1620 if test -n "$ac_ct_CC"; then
1621   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1622 echo "${ECHO_T}$ac_ct_CC" >&6
1623 else
1624   echo "$as_me:$LINENO: result: no" >&5
1625 echo "${ECHO_T}no" >&6
1626 fi
1627
1628   CC=$ac_ct_CC
1629 else
1630   CC="$ac_cv_prog_CC"
1631 fi
1632
1633 fi
1634 if test -z "$CC"; then
1635   # Extract the first word of "cc", so it can be a program name with args.
1636 set dummy cc; ac_word=$2
1637 echo "$as_me:$LINENO: checking for $ac_word" >&5
1638 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1639 if test "${ac_cv_prog_CC+set}" = set; then
1640   echo $ECHO_N "(cached) $ECHO_C" >&6
1641 else
1642   if test -n "$CC"; then
1643   ac_cv_prog_CC="$CC" # Let the user override the test.
1644 else
1645   ac_prog_rejected=no
1646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1647 for as_dir in $PATH
1648 do
1649   IFS=$as_save_IFS
1650   test -z "$as_dir" && as_dir=.
1651   for ac_exec_ext in '' $ac_executable_extensions; do
1652   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1653     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1654        ac_prog_rejected=yes
1655        continue
1656      fi
1657     ac_cv_prog_CC="cc"
1658     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1659     break 2
1660   fi
1661 done
1662 done
1663
1664 if test $ac_prog_rejected = yes; then
1665   # We found a bogon in the path, so make sure we never use it.
1666   set dummy $ac_cv_prog_CC
1667   shift
1668   if test $# != 0; then
1669     # We chose a different compiler from the bogus one.
1670     # However, it has the same basename, so the bogon will be chosen
1671     # first if we set CC to just the basename; use the full file name.
1672     shift
1673     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1674   fi
1675 fi
1676 fi
1677 fi
1678 CC=$ac_cv_prog_CC
1679 if test -n "$CC"; then
1680   echo "$as_me:$LINENO: result: $CC" >&5
1681 echo "${ECHO_T}$CC" >&6
1682 else
1683   echo "$as_me:$LINENO: result: no" >&5
1684 echo "${ECHO_T}no" >&6
1685 fi
1686
1687 fi
1688 if test -z "$CC"; then
1689   if test -n "$ac_tool_prefix"; then
1690   for ac_prog in cl
1691   do
1692     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1693 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1694 echo "$as_me:$LINENO: checking for $ac_word" >&5
1695 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1696 if test "${ac_cv_prog_CC+set}" = set; then
1697   echo $ECHO_N "(cached) $ECHO_C" >&6
1698 else
1699   if test -n "$CC"; then
1700   ac_cv_prog_CC="$CC" # Let the user override the test.
1701 else
1702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1703 for as_dir in $PATH
1704 do
1705   IFS=$as_save_IFS
1706   test -z "$as_dir" && as_dir=.
1707   for ac_exec_ext in '' $ac_executable_extensions; do
1708   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1709     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1710     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1711     break 2
1712   fi
1713 done
1714 done
1715
1716 fi
1717 fi
1718 CC=$ac_cv_prog_CC
1719 if test -n "$CC"; then
1720   echo "$as_me:$LINENO: result: $CC" >&5
1721 echo "${ECHO_T}$CC" >&6
1722 else
1723   echo "$as_me:$LINENO: result: no" >&5
1724 echo "${ECHO_T}no" >&6
1725 fi
1726
1727     test -n "$CC" && break
1728   done
1729 fi
1730 if test -z "$CC"; then
1731   ac_ct_CC=$CC
1732   for ac_prog in cl
1733 do
1734   # Extract the first word of "$ac_prog", so it can be a program name with args.
1735 set dummy $ac_prog; ac_word=$2
1736 echo "$as_me:$LINENO: checking for $ac_word" >&5
1737 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1738 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1739   echo $ECHO_N "(cached) $ECHO_C" >&6
1740 else
1741   if test -n "$ac_ct_CC"; then
1742   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1743 else
1744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1745 for as_dir in $PATH
1746 do
1747   IFS=$as_save_IFS
1748   test -z "$as_dir" && as_dir=.
1749   for ac_exec_ext in '' $ac_executable_extensions; do
1750   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1751     ac_cv_prog_ac_ct_CC="$ac_prog"
1752     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1753     break 2
1754   fi
1755 done
1756 done
1757
1758 fi
1759 fi
1760 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1761 if test -n "$ac_ct_CC"; then
1762   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1763 echo "${ECHO_T}$ac_ct_CC" >&6
1764 else
1765   echo "$as_me:$LINENO: result: no" >&5
1766 echo "${ECHO_T}no" >&6
1767 fi
1768
1769   test -n "$ac_ct_CC" && break
1770 done
1771
1772   CC=$ac_ct_CC
1773 fi
1774
1775 fi
1776
1777
1778 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1779 See \`config.log' for more details." >&5
1780 echo "$as_me: error: no acceptable C compiler found in \$PATH
1781 See \`config.log' for more details." >&2;}
1782    { (exit 1); exit 1; }; }
1783
1784 # Provide some information about the compiler.
1785 echo "$as_me:$LINENO:" \
1786      "checking for C compiler version" >&5
1787 ac_compiler=`set X $ac_compile; echo $2`
1788 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1789   (eval $ac_compiler --version </dev/null >&5) 2>&5
1790   ac_status=$?
1791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1792   (exit $ac_status); }
1793 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1794   (eval $ac_compiler -v </dev/null >&5) 2>&5
1795   ac_status=$?
1796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1797   (exit $ac_status); }
1798 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1799   (eval $ac_compiler -V </dev/null >&5) 2>&5
1800   ac_status=$?
1801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1802   (exit $ac_status); }
1803
1804 cat >conftest.$ac_ext <<_ACEOF
1805 #line $LINENO "configure"
1806 /* confdefs.h.  */
1807 _ACEOF
1808 cat confdefs.h >>conftest.$ac_ext
1809 cat >>conftest.$ac_ext <<_ACEOF
1810 /* end confdefs.h.  */
1811
1812 int
1813 main ()
1814 {
1815
1816   ;
1817   return 0;
1818 }
1819 _ACEOF
1820 ac_clean_files_save=$ac_clean_files
1821 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1822 # Try to create an executable without -o first, disregard a.out.
1823 # It will help us diagnose broken compilers, and finding out an intuition
1824 # of exeext.
1825 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1826 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1827 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1828 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1829   (eval $ac_link_default) 2>&5
1830   ac_status=$?
1831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1832   (exit $ac_status); }; then
1833   # Find the output, starting from the most likely.  This scheme is
1834 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1835 # resort.
1836
1837 # Be careful to initialize this variable, since it used to be cached.
1838 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1839 ac_cv_exeext=
1840 # b.out is created by i960 compilers.
1841 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1842 do
1843   test -f "$ac_file" || continue
1844   case $ac_file in
1845     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1846         ;;
1847     conftest.$ac_ext )
1848         # This is the source file.
1849         ;;
1850     [ab].out )
1851         # We found the default executable, but exeext='' is most
1852         # certainly right.
1853         break;;
1854     *.* )
1855         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1856         # FIXME: I believe we export ac_cv_exeext for Libtool,
1857         # but it would be cool to find out if it's true.  Does anybody
1858         # maintain Libtool? --akim.
1859         export ac_cv_exeext
1860         break;;
1861     * )
1862         break;;
1863   esac
1864 done
1865 else
1866   echo "$as_me: failed program was:" >&5
1867 sed 's/^/| /' conftest.$ac_ext >&5
1868
1869 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1870 See \`config.log' for more details." >&5
1871 echo "$as_me: error: C compiler cannot create executables
1872 See \`config.log' for more details." >&2;}
1873    { (exit 77); exit 77; }; }
1874 fi
1875
1876 ac_exeext=$ac_cv_exeext
1877 echo "$as_me:$LINENO: result: $ac_file" >&5
1878 echo "${ECHO_T}$ac_file" >&6
1879
1880 # Check the compiler produces executables we can run.  If not, either
1881 # the compiler is broken, or we cross compile.
1882 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1883 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1884 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1885 # If not cross compiling, check that we can run a simple program.
1886 if test "$cross_compiling" != yes; then
1887   if { ac_try='./$ac_file'
1888   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1889   (eval $ac_try) 2>&5
1890   ac_status=$?
1891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1892   (exit $ac_status); }; }; then
1893     cross_compiling=no
1894   else
1895     if test "$cross_compiling" = maybe; then
1896         cross_compiling=yes
1897     else
1898         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1899 If you meant to cross compile, use \`--host'.
1900 See \`config.log' for more details." >&5
1901 echo "$as_me: error: cannot run C compiled programs.
1902 If you meant to cross compile, use \`--host'.
1903 See \`config.log' for more details." >&2;}
1904    { (exit 1); exit 1; }; }
1905     fi
1906   fi
1907 fi
1908 echo "$as_me:$LINENO: result: yes" >&5
1909 echo "${ECHO_T}yes" >&6
1910
1911 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1912 ac_clean_files=$ac_clean_files_save
1913 # Check the compiler produces executables we can run.  If not, either
1914 # the compiler is broken, or we cross compile.
1915 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1916 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1917 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1918 echo "${ECHO_T}$cross_compiling" >&6
1919
1920 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1921 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1922 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1923   (eval $ac_link) 2>&5
1924   ac_status=$?
1925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1926   (exit $ac_status); }; then
1927   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1928 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1929 # work properly (i.e., refer to `conftest.exe'), while it won't with
1930 # `rm'.
1931 for ac_file in conftest.exe conftest conftest.*; do
1932   test -f "$ac_file" || continue
1933   case $ac_file in
1934     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1935     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1936           export ac_cv_exeext
1937           break;;
1938     * ) break;;
1939   esac
1940 done
1941 else
1942   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1943 See \`config.log' for more details." >&5
1944 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1945 See \`config.log' for more details." >&2;}
1946    { (exit 1); exit 1; }; }
1947 fi
1948
1949 rm -f conftest$ac_cv_exeext
1950 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1951 echo "${ECHO_T}$ac_cv_exeext" >&6
1952
1953 rm -f conftest.$ac_ext
1954 EXEEXT=$ac_cv_exeext
1955 ac_exeext=$EXEEXT
1956 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1957 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1958 if test "${ac_cv_objext+set}" = set; then
1959   echo $ECHO_N "(cached) $ECHO_C" >&6
1960 else
1961   cat >conftest.$ac_ext <<_ACEOF
1962 #line $LINENO "configure"
1963 /* confdefs.h.  */
1964 _ACEOF
1965 cat confdefs.h >>conftest.$ac_ext
1966 cat >>conftest.$ac_ext <<_ACEOF
1967 /* end confdefs.h.  */
1968
1969 int
1970 main ()
1971 {
1972
1973   ;
1974   return 0;
1975 }
1976 _ACEOF
1977 rm -f conftest.o conftest.obj
1978 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1979   (eval $ac_compile) 2>&5
1980   ac_status=$?
1981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1982   (exit $ac_status); }; then
1983   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1984   case $ac_file in
1985     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1986     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1987        break;;
1988   esac
1989 done
1990 else
1991   echo "$as_me: failed program was:" >&5
1992 sed 's/^/| /' conftest.$ac_ext >&5
1993
1994 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1995 See \`config.log' for more details." >&5
1996 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1997 See \`config.log' for more details." >&2;}
1998    { (exit 1); exit 1; }; }
1999 fi
2000
2001 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2002 fi
2003 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2004 echo "${ECHO_T}$ac_cv_objext" >&6
2005 OBJEXT=$ac_cv_objext
2006 ac_objext=$OBJEXT
2007 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2008 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2009 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2010   echo $ECHO_N "(cached) $ECHO_C" >&6
2011 else
2012   cat >conftest.$ac_ext <<_ACEOF
2013 #line $LINENO "configure"
2014 /* confdefs.h.  */
2015 _ACEOF
2016 cat confdefs.h >>conftest.$ac_ext
2017 cat >>conftest.$ac_ext <<_ACEOF
2018 /* end confdefs.h.  */
2019
2020 int
2021 main ()
2022 {
2023 #ifndef __GNUC__
2024        choke me
2025 #endif
2026
2027   ;
2028   return 0;
2029 }
2030 _ACEOF
2031 rm -f conftest.$ac_objext
2032 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2033   (eval $ac_compile) 2>&5
2034   ac_status=$?
2035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2036   (exit $ac_status); } &&
2037          { ac_try='test -s conftest.$ac_objext'
2038   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2039   (eval $ac_try) 2>&5
2040   ac_status=$?
2041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2042   (exit $ac_status); }; }; then
2043   ac_compiler_gnu=yes
2044 else
2045   echo "$as_me: failed program was:" >&5
2046 sed 's/^/| /' conftest.$ac_ext >&5
2047
2048 ac_compiler_gnu=no
2049 fi
2050 rm -f conftest.$ac_objext conftest.$ac_ext
2051 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2052
2053 fi
2054 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2055 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2056 GCC=`test $ac_compiler_gnu = yes && echo yes`
2057 ac_test_CFLAGS=${CFLAGS+set}
2058 ac_save_CFLAGS=$CFLAGS
2059 CFLAGS="-g"
2060 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2061 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2062 if test "${ac_cv_prog_cc_g+set}" = set; then
2063   echo $ECHO_N "(cached) $ECHO_C" >&6
2064 else
2065   cat >conftest.$ac_ext <<_ACEOF
2066 #line $LINENO "configure"
2067 /* confdefs.h.  */
2068 _ACEOF
2069 cat confdefs.h >>conftest.$ac_ext
2070 cat >>conftest.$ac_ext <<_ACEOF
2071 /* end confdefs.h.  */
2072
2073 int
2074 main ()
2075 {
2076
2077   ;
2078   return 0;
2079 }
2080 _ACEOF
2081 rm -f conftest.$ac_objext
2082 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2083   (eval $ac_compile) 2>&5
2084   ac_status=$?
2085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2086   (exit $ac_status); } &&
2087          { ac_try='test -s conftest.$ac_objext'
2088   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2089   (eval $ac_try) 2>&5
2090   ac_status=$?
2091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2092   (exit $ac_status); }; }; then
2093   ac_cv_prog_cc_g=yes
2094 else
2095   echo "$as_me: failed program was:" >&5
2096 sed 's/^/| /' conftest.$ac_ext >&5
2097
2098 ac_cv_prog_cc_g=no
2099 fi
2100 rm -f conftest.$ac_objext conftest.$ac_ext
2101 fi
2102 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2103 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2104 if test "$ac_test_CFLAGS" = set; then
2105   CFLAGS=$ac_save_CFLAGS
2106 elif test $ac_cv_prog_cc_g = yes; then
2107   if test "$GCC" = yes; then
2108     CFLAGS="-g -O2"
2109   else
2110     CFLAGS="-g"
2111   fi
2112 else
2113   if test "$GCC" = yes; then
2114     CFLAGS="-O2"
2115   else
2116     CFLAGS=
2117   fi
2118 fi
2119 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2120 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2121 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2122   echo $ECHO_N "(cached) $ECHO_C" >&6
2123 else
2124   ac_cv_prog_cc_stdc=no
2125 ac_save_CC=$CC
2126 cat >conftest.$ac_ext <<_ACEOF
2127 #line $LINENO "configure"
2128 /* confdefs.h.  */
2129 _ACEOF
2130 cat confdefs.h >>conftest.$ac_ext
2131 cat >>conftest.$ac_ext <<_ACEOF
2132 /* end confdefs.h.  */
2133 #include <stdarg.h>
2134 #include <stdio.h>
2135 #include <sys/types.h>
2136 #include <sys/stat.h>
2137 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2138 struct buf { int x; };
2139 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2140 static char *e (p, i)
2141      char **p;
2142      int i;
2143 {
2144   return p[i];
2145 }
2146 static char *f (char * (*g) (char **, int), char **p, ...)
2147 {
2148   char *s;
2149   va_list v;
2150   va_start (v,p);
2151   s = g (p, va_arg (v,int));
2152   va_end (v);
2153   return s;
2154 }
2155 int test (int i, double x);
2156 struct s1 {int (*f) (int a);};
2157 struct s2 {int (*f) (double a);};
2158 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2159 int argc;
2160 char **argv;
2161 int
2162 main ()
2163 {
2164 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2165   ;
2166   return 0;
2167 }
2168 _ACEOF
2169 # Don't try gcc -ansi; that turns off useful extensions and
2170 # breaks some systems' header files.
2171 # AIX                   -qlanglvl=ansi
2172 # Ultrix and OSF/1      -std1
2173 # HP-UX 10.20 and later -Ae
2174 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2175 # SVR4                  -Xc -D__EXTENSIONS__
2176 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2177 do
2178   CC="$ac_save_CC $ac_arg"
2179   rm -f conftest.$ac_objext
2180 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2181   (eval $ac_compile) 2>&5
2182   ac_status=$?
2183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2184   (exit $ac_status); } &&
2185          { ac_try='test -s conftest.$ac_objext'
2186   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2187   (eval $ac_try) 2>&5
2188   ac_status=$?
2189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2190   (exit $ac_status); }; }; then
2191   ac_cv_prog_cc_stdc=$ac_arg
2192 break
2193 else
2194   echo "$as_me: failed program was:" >&5
2195 sed 's/^/| /' conftest.$ac_ext >&5
2196
2197 fi
2198 rm -f conftest.$ac_objext
2199 done
2200 rm -f conftest.$ac_ext conftest.$ac_objext
2201 CC=$ac_save_CC
2202
2203 fi
2204
2205 case "x$ac_cv_prog_cc_stdc" in
2206   x|xno)
2207     echo "$as_me:$LINENO: result: none needed" >&5
2208 echo "${ECHO_T}none needed" >&6 ;;
2209   *)
2210     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2211 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2212     CC="$CC $ac_cv_prog_cc_stdc" ;;
2213 esac
2214
2215 # Some people use a C++ compiler to compile C.  Since we use `exit',
2216 # in C++ we need to declare it.  In case someone uses the same compiler
2217 # for both compiling C and C++ we need to have the C++ compiler decide
2218 # the declaration of exit, since it's the most demanding environment.
2219 cat >conftest.$ac_ext <<_ACEOF
2220 #ifndef __cplusplus
2221   choke me
2222 #endif
2223 _ACEOF
2224 rm -f conftest.$ac_objext
2225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2226   (eval $ac_compile) 2>&5
2227   ac_status=$?
2228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2229   (exit $ac_status); } &&
2230          { ac_try='test -s conftest.$ac_objext'
2231   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2232   (eval $ac_try) 2>&5
2233   ac_status=$?
2234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2235   (exit $ac_status); }; }; then
2236   for ac_declaration in \
2237    ''\
2238    '#include <stdlib.h>' \
2239    'extern "C" void std::exit (int) throw (); using std::exit;' \
2240    'extern "C" void std::exit (int); using std::exit;' \
2241    'extern "C" void exit (int) throw ();' \
2242    'extern "C" void exit (int);' \
2243    'void exit (int);'
2244 do
2245   cat >conftest.$ac_ext <<_ACEOF
2246 #line $LINENO "configure"
2247 /* confdefs.h.  */
2248 _ACEOF
2249 cat confdefs.h >>conftest.$ac_ext
2250 cat >>conftest.$ac_ext <<_ACEOF
2251 /* end confdefs.h.  */
2252 #include <stdlib.h>
2253 $ac_declaration
2254 int
2255 main ()
2256 {
2257 exit (42);
2258   ;
2259   return 0;
2260 }
2261 _ACEOF
2262 rm -f conftest.$ac_objext
2263 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2264   (eval $ac_compile) 2>&5
2265   ac_status=$?
2266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2267   (exit $ac_status); } &&
2268          { ac_try='test -s conftest.$ac_objext'
2269   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2270   (eval $ac_try) 2>&5
2271   ac_status=$?
2272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2273   (exit $ac_status); }; }; then
2274   :
2275 else
2276   echo "$as_me: failed program was:" >&5
2277 sed 's/^/| /' conftest.$ac_ext >&5
2278
2279 continue
2280 fi
2281 rm -f conftest.$ac_objext conftest.$ac_ext
2282   cat >conftest.$ac_ext <<_ACEOF
2283 #line $LINENO "configure"
2284 /* confdefs.h.  */
2285 _ACEOF
2286 cat confdefs.h >>conftest.$ac_ext
2287 cat >>conftest.$ac_ext <<_ACEOF
2288 /* end confdefs.h.  */
2289 $ac_declaration
2290 int
2291 main ()
2292 {
2293 exit (42);
2294   ;
2295   return 0;
2296 }
2297 _ACEOF
2298 rm -f conftest.$ac_objext
2299 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2300   (eval $ac_compile) 2>&5
2301   ac_status=$?
2302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2303   (exit $ac_status); } &&
2304          { ac_try='test -s conftest.$ac_objext'
2305   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2306   (eval $ac_try) 2>&5
2307   ac_status=$?
2308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2309   (exit $ac_status); }; }; then
2310   break
2311 else
2312   echo "$as_me: failed program was:" >&5
2313 sed 's/^/| /' conftest.$ac_ext >&5
2314
2315 fi
2316 rm -f conftest.$ac_objext conftest.$ac_ext
2317 done
2318 rm -f conftest*
2319 if test -n "$ac_declaration"; then
2320   echo '#ifdef __cplusplus' >>confdefs.h
2321   echo $ac_declaration      >>confdefs.h
2322   echo '#endif'             >>confdefs.h
2323 fi
2324
2325 else
2326   echo "$as_me: failed program was:" >&5
2327 sed 's/^/| /' conftest.$ac_ext >&5
2328
2329 fi
2330 rm -f conftest.$ac_objext conftest.$ac_ext
2331 ac_ext=c
2332 ac_cpp='$CPP $CPPFLAGS'
2333 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2334 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2335 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2336
2337 ac_ext=cc
2338 ac_cpp='$CXXCPP $CPPFLAGS'
2339 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2340 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2341 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2342 if test -n "$ac_tool_prefix"; then
2343   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2344   do
2345     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2346 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2347 echo "$as_me:$LINENO: checking for $ac_word" >&5
2348 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2349 if test "${ac_cv_prog_CXX+set}" = set; then
2350   echo $ECHO_N "(cached) $ECHO_C" >&6
2351 else
2352   if test -n "$CXX"; then
2353   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2354 else
2355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2356 for as_dir in $PATH
2357 do
2358   IFS=$as_save_IFS
2359   test -z "$as_dir" && as_dir=.
2360   for ac_exec_ext in '' $ac_executable_extensions; do
2361   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2362     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2363     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2364     break 2
2365   fi
2366 done
2367 done
2368
2369 fi
2370 fi
2371 CXX=$ac_cv_prog_CXX
2372 if test -n "$CXX"; then
2373   echo "$as_me:$LINENO: result: $CXX" >&5
2374 echo "${ECHO_T}$CXX" >&6
2375 else
2376   echo "$as_me:$LINENO: result: no" >&5
2377 echo "${ECHO_T}no" >&6
2378 fi
2379
2380     test -n "$CXX" && break
2381   done
2382 fi
2383 if test -z "$CXX"; then
2384   ac_ct_CXX=$CXX
2385   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2386 do
2387   # Extract the first word of "$ac_prog", so it can be a program name with args.
2388 set dummy $ac_prog; ac_word=$2
2389 echo "$as_me:$LINENO: checking for $ac_word" >&5
2390 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2391 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2392   echo $ECHO_N "(cached) $ECHO_C" >&6
2393 else
2394   if test -n "$ac_ct_CXX"; then
2395   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2396 else
2397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2398 for as_dir in $PATH
2399 do
2400   IFS=$as_save_IFS
2401   test -z "$as_dir" && as_dir=.
2402   for ac_exec_ext in '' $ac_executable_extensions; do
2403   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2404     ac_cv_prog_ac_ct_CXX="$ac_prog"
2405     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2406     break 2
2407   fi
2408 done
2409 done
2410
2411 fi
2412 fi
2413 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2414 if test -n "$ac_ct_CXX"; then
2415   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2416 echo "${ECHO_T}$ac_ct_CXX" >&6
2417 else
2418   echo "$as_me:$LINENO: result: no" >&5
2419 echo "${ECHO_T}no" >&6
2420 fi
2421
2422   test -n "$ac_ct_CXX" && break
2423 done
2424 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2425
2426   CXX=$ac_ct_CXX
2427 fi
2428
2429
2430 # Provide some information about the compiler.
2431 echo "$as_me:$LINENO:" \
2432      "checking for C++ compiler version" >&5
2433 ac_compiler=`set X $ac_compile; echo $2`
2434 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2435   (eval $ac_compiler --version </dev/null >&5) 2>&5
2436   ac_status=$?
2437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2438   (exit $ac_status); }
2439 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2440   (eval $ac_compiler -v </dev/null >&5) 2>&5
2441   ac_status=$?
2442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2443   (exit $ac_status); }
2444 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2445   (eval $ac_compiler -V </dev/null >&5) 2>&5
2446   ac_status=$?
2447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2448   (exit $ac_status); }
2449
2450 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2451 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2452 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2453   echo $ECHO_N "(cached) $ECHO_C" >&6
2454 else
2455   cat >conftest.$ac_ext <<_ACEOF
2456 #line $LINENO "configure"
2457 /* confdefs.h.  */
2458 _ACEOF
2459 cat confdefs.h >>conftest.$ac_ext
2460 cat >>conftest.$ac_ext <<_ACEOF
2461 /* end confdefs.h.  */
2462
2463 int
2464 main ()
2465 {
2466 #ifndef __GNUC__
2467        choke me
2468 #endif
2469
2470   ;
2471   return 0;
2472 }
2473 _ACEOF
2474 rm -f conftest.$ac_objext
2475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2476   (eval $ac_compile) 2>&5
2477   ac_status=$?
2478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2479   (exit $ac_status); } &&
2480          { ac_try='test -s conftest.$ac_objext'
2481   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2482   (eval $ac_try) 2>&5
2483   ac_status=$?
2484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2485   (exit $ac_status); }; }; then
2486   ac_compiler_gnu=yes
2487 else
2488   echo "$as_me: failed program was:" >&5
2489 sed 's/^/| /' conftest.$ac_ext >&5
2490
2491 ac_compiler_gnu=no
2492 fi
2493 rm -f conftest.$ac_objext conftest.$ac_ext
2494 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2495
2496 fi
2497 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2498 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2499 GXX=`test $ac_compiler_gnu = yes && echo yes`
2500 ac_test_CXXFLAGS=${CXXFLAGS+set}
2501 ac_save_CXXFLAGS=$CXXFLAGS
2502 CXXFLAGS="-g"
2503 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2504 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2505 if test "${ac_cv_prog_cxx_g+set}" = set; then
2506   echo $ECHO_N "(cached) $ECHO_C" >&6
2507 else
2508   cat >conftest.$ac_ext <<_ACEOF
2509 #line $LINENO "configure"
2510 /* confdefs.h.  */
2511 _ACEOF
2512 cat confdefs.h >>conftest.$ac_ext
2513 cat >>conftest.$ac_ext <<_ACEOF
2514 /* end confdefs.h.  */
2515
2516 int
2517 main ()
2518 {
2519
2520   ;
2521   return 0;
2522 }
2523 _ACEOF
2524 rm -f conftest.$ac_objext
2525 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2526   (eval $ac_compile) 2>&5
2527   ac_status=$?
2528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2529   (exit $ac_status); } &&
2530          { ac_try='test -s conftest.$ac_objext'
2531   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2532   (eval $ac_try) 2>&5
2533   ac_status=$?
2534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2535   (exit $ac_status); }; }; then
2536   ac_cv_prog_cxx_g=yes
2537 else
2538   echo "$as_me: failed program was:" >&5
2539 sed 's/^/| /' conftest.$ac_ext >&5
2540
2541 ac_cv_prog_cxx_g=no
2542 fi
2543 rm -f conftest.$ac_objext conftest.$ac_ext
2544 fi
2545 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2546 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2547 if test "$ac_test_CXXFLAGS" = set; then
2548   CXXFLAGS=$ac_save_CXXFLAGS
2549 elif test $ac_cv_prog_cxx_g = yes; then
2550   if test "$GXX" = yes; then
2551     CXXFLAGS="-g -O2"
2552   else
2553     CXXFLAGS="-g"
2554   fi
2555 else
2556   if test "$GXX" = yes; then
2557     CXXFLAGS="-O2"
2558   else
2559     CXXFLAGS=
2560   fi
2561 fi
2562 for ac_declaration in \
2563    ''\
2564    '#include <stdlib.h>' \
2565    'extern "C" void std::exit (int) throw (); using std::exit;' \
2566    'extern "C" void std::exit (int); using std::exit;' \
2567    'extern "C" void exit (int) throw ();' \
2568    'extern "C" void exit (int);' \
2569    'void exit (int);'
2570 do
2571   cat >conftest.$ac_ext <<_ACEOF
2572 #line $LINENO "configure"
2573 /* confdefs.h.  */
2574 _ACEOF
2575 cat confdefs.h >>conftest.$ac_ext
2576 cat >>conftest.$ac_ext <<_ACEOF
2577 /* end confdefs.h.  */
2578 #include <stdlib.h>
2579 $ac_declaration
2580 int
2581 main ()
2582 {
2583 exit (42);
2584   ;
2585   return 0;
2586 }
2587 _ACEOF
2588 rm -f conftest.$ac_objext
2589 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2590   (eval $ac_compile) 2>&5
2591   ac_status=$?
2592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2593   (exit $ac_status); } &&
2594          { ac_try='test -s conftest.$ac_objext'
2595   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2596   (eval $ac_try) 2>&5
2597   ac_status=$?
2598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2599   (exit $ac_status); }; }; then
2600   :
2601 else
2602   echo "$as_me: failed program was:" >&5
2603 sed 's/^/| /' conftest.$ac_ext >&5
2604
2605 continue
2606 fi
2607 rm -f conftest.$ac_objext conftest.$ac_ext
2608   cat >conftest.$ac_ext <<_ACEOF
2609 #line $LINENO "configure"
2610 /* confdefs.h.  */
2611 _ACEOF
2612 cat confdefs.h >>conftest.$ac_ext
2613 cat >>conftest.$ac_ext <<_ACEOF
2614 /* end confdefs.h.  */
2615 $ac_declaration
2616 int
2617 main ()
2618 {
2619 exit (42);
2620   ;
2621   return 0;
2622 }
2623 _ACEOF
2624 rm -f conftest.$ac_objext
2625 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2626   (eval $ac_compile) 2>&5
2627   ac_status=$?
2628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2629   (exit $ac_status); } &&
2630          { ac_try='test -s conftest.$ac_objext'
2631   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2632   (eval $ac_try) 2>&5
2633   ac_status=$?
2634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2635   (exit $ac_status); }; }; then
2636   break
2637 else
2638   echo "$as_me: failed program was:" >&5
2639 sed 's/^/| /' conftest.$ac_ext >&5
2640
2641 fi
2642 rm -f conftest.$ac_objext conftest.$ac_ext
2643 done
2644 rm -f conftest*
2645 if test -n "$ac_declaration"; then
2646   echo '#ifdef __cplusplus' >>confdefs.h
2647   echo $ac_declaration      >>confdefs.h
2648   echo '#endif'             >>confdefs.h
2649 fi
2650
2651 ac_ext=c
2652 ac_cpp='$CPP $CPPFLAGS'
2653 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2654 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2655 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2656
2657 if test "x$CC" != xcc; then
2658   echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2659 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2660 else
2661   echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2662 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2663 fi
2664 set dummy $CC; ac_cc=`echo $2 |
2665                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2666 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2667   echo $ECHO_N "(cached) $ECHO_C" >&6
2668 else
2669   cat >conftest.$ac_ext <<_ACEOF
2670 #line $LINENO "configure"
2671 /* confdefs.h.  */
2672 _ACEOF
2673 cat confdefs.h >>conftest.$ac_ext
2674 cat >>conftest.$ac_ext <<_ACEOF
2675 /* end confdefs.h.  */
2676
2677 int
2678 main ()
2679 {
2680
2681   ;
2682   return 0;
2683 }
2684 _ACEOF
2685 # Make sure it works both with $CC and with simple cc.
2686 # We do the test twice because some compilers refuse to overwrite an
2687 # existing .o file with -o, though they will create one.
2688 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2689 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2690   (eval $ac_try) 2>&5
2691   ac_status=$?
2692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2693   (exit $ac_status); } &&
2694    test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2695   (eval $ac_try) 2>&5
2696   ac_status=$?
2697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2698   (exit $ac_status); };
2699 then
2700   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2701   if test "x$CC" != xcc; then
2702     # Test first that cc exists at all.
2703     if { ac_try='cc -c conftest.$ac_ext >&5'
2704   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2705   (eval $ac_try) 2>&5
2706   ac_status=$?
2707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2708   (exit $ac_status); }; }; then
2709       ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2710       if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2711   (eval $ac_try) 2>&5
2712   ac_status=$?
2713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2714   (exit $ac_status); } &&
2715          test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2716   (eval $ac_try) 2>&5
2717   ac_status=$?
2718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2719   (exit $ac_status); };
2720       then
2721         # cc works too.
2722         :
2723       else
2724         # cc exists but doesn't like -o.
2725         eval ac_cv_prog_cc_${ac_cc}_c_o=no
2726       fi
2727     fi
2728   fi
2729 else
2730   eval ac_cv_prog_cc_${ac_cc}_c_o=no
2731 fi
2732 rm -f conftest*
2733
2734 fi
2735 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2736   echo "$as_me:$LINENO: result: yes" >&5
2737 echo "${ECHO_T}yes" >&6
2738 else
2739   echo "$as_me:$LINENO: result: no" >&5
2740 echo "${ECHO_T}no" >&6
2741
2742 cat >>confdefs.h <<\_ACEOF
2743 #define NO_MINUS_C_MINUS_O 1
2744 _ACEOF
2745
2746 fi
2747
2748 ac_ext=c
2749 ac_cpp='$CPP $CPPFLAGS'
2750 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2751 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2752 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2753 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2754 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2755 # On Suns, sometimes $CPP names a directory.
2756 if test -n "$CPP" && test -d "$CPP"; then
2757   CPP=
2758 fi
2759 if test -z "$CPP"; then
2760   if test "${ac_cv_prog_CPP+set}" = set; then
2761   echo $ECHO_N "(cached) $ECHO_C" >&6
2762 else
2763       # Double quotes because CPP needs to be expanded
2764     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2765     do
2766       ac_preproc_ok=false
2767 for ac_c_preproc_warn_flag in '' yes
2768 do
2769   # Use a header file that comes with gcc, so configuring glibc
2770   # with a fresh cross-compiler works.
2771   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2772   # <limits.h> exists even on freestanding compilers.
2773   # On the NeXT, cc -E runs the code through the compiler's parser,
2774   # not just through cpp. "Syntax error" is here to catch this case.
2775   cat >conftest.$ac_ext <<_ACEOF
2776 #line $LINENO "configure"
2777 /* confdefs.h.  */
2778 _ACEOF
2779 cat confdefs.h >>conftest.$ac_ext
2780 cat >>conftest.$ac_ext <<_ACEOF
2781 /* end confdefs.h.  */
2782 #ifdef __STDC__
2783 # include <limits.h>
2784 #else
2785 # include <assert.h>
2786 #endif
2787                      Syntax error
2788 _ACEOF
2789 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2790   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2791   ac_status=$?
2792   grep -v '^ *+' conftest.er1 >conftest.err
2793   rm -f conftest.er1
2794   cat conftest.err >&5
2795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2796   (exit $ac_status); } >/dev/null; then
2797   if test -s conftest.err; then
2798     ac_cpp_err=$ac_c_preproc_warn_flag
2799   else
2800     ac_cpp_err=
2801   fi
2802 else
2803   ac_cpp_err=yes
2804 fi
2805 if test -z "$ac_cpp_err"; then
2806   :
2807 else
2808   echo "$as_me: failed program was:" >&5
2809 sed 's/^/| /' conftest.$ac_ext >&5
2810
2811   # Broken: fails on valid input.
2812 continue
2813 fi
2814 rm -f conftest.err conftest.$ac_ext
2815
2816   # OK, works on sane cases.  Now check whether non-existent headers
2817   # can be detected and how.
2818   cat >conftest.$ac_ext <<_ACEOF
2819 #line $LINENO "configure"
2820 /* confdefs.h.  */
2821 _ACEOF
2822 cat confdefs.h >>conftest.$ac_ext
2823 cat >>conftest.$ac_ext <<_ACEOF
2824 /* end confdefs.h.  */
2825 #include <ac_nonexistent.h>
2826 _ACEOF
2827 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2828   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2829   ac_status=$?
2830   grep -v '^ *+' conftest.er1 >conftest.err
2831   rm -f conftest.er1
2832   cat conftest.err >&5
2833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2834   (exit $ac_status); } >/dev/null; then
2835   if test -s conftest.err; then
2836     ac_cpp_err=$ac_c_preproc_warn_flag
2837   else
2838     ac_cpp_err=
2839   fi
2840 else
2841   ac_cpp_err=yes
2842 fi
2843 if test -z "$ac_cpp_err"; then
2844   # Broken: success on invalid input.
2845 continue
2846 else
2847   echo "$as_me: failed program was:" >&5
2848 sed 's/^/| /' conftest.$ac_ext >&5
2849
2850   # Passes both tests.
2851 ac_preproc_ok=:
2852 break
2853 fi
2854 rm -f conftest.err conftest.$ac_ext
2855
2856 done
2857 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2858 rm -f conftest.err conftest.$ac_ext
2859 if $ac_preproc_ok; then
2860   break
2861 fi
2862
2863     done
2864     ac_cv_prog_CPP=$CPP
2865
2866 fi
2867   CPP=$ac_cv_prog_CPP
2868 else
2869   ac_cv_prog_CPP=$CPP
2870 fi
2871 echo "$as_me:$LINENO: result: $CPP" >&5
2872 echo "${ECHO_T}$CPP" >&6
2873 ac_preproc_ok=false
2874 for ac_c_preproc_warn_flag in '' yes
2875 do
2876   # Use a header file that comes with gcc, so configuring glibc
2877   # with a fresh cross-compiler works.
2878   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2879   # <limits.h> exists even on freestanding compilers.
2880   # On the NeXT, cc -E runs the code through the compiler's parser,
2881   # not just through cpp. "Syntax error" is here to catch this case.
2882   cat >conftest.$ac_ext <<_ACEOF
2883 #line $LINENO "configure"
2884 /* confdefs.h.  */
2885 _ACEOF
2886 cat confdefs.h >>conftest.$ac_ext
2887 cat >>conftest.$ac_ext <<_ACEOF
2888 /* end confdefs.h.  */
2889 #ifdef __STDC__
2890 # include <limits.h>
2891 #else
2892 # include <assert.h>
2893 #endif
2894                      Syntax error
2895 _ACEOF
2896 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2897   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2898   ac_status=$?
2899   grep -v '^ *+' conftest.er1 >conftest.err
2900   rm -f conftest.er1
2901   cat conftest.err >&5
2902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2903   (exit $ac_status); } >/dev/null; then
2904   if test -s conftest.err; then
2905     ac_cpp_err=$ac_c_preproc_warn_flag
2906   else
2907     ac_cpp_err=
2908   fi
2909 else
2910   ac_cpp_err=yes
2911 fi
2912 if test -z "$ac_cpp_err"; then
2913   :
2914 else
2915   echo "$as_me: failed program was:" >&5
2916 sed 's/^/| /' conftest.$ac_ext >&5
2917
2918   # Broken: fails on valid input.
2919 continue
2920 fi
2921 rm -f conftest.err conftest.$ac_ext
2922
2923   # OK, works on sane cases.  Now check whether non-existent headers
2924   # can be detected and how.
2925   cat >conftest.$ac_ext <<_ACEOF
2926 #line $LINENO "configure"
2927 /* confdefs.h.  */
2928 _ACEOF
2929 cat confdefs.h >>conftest.$ac_ext
2930 cat >>conftest.$ac_ext <<_ACEOF
2931 /* end confdefs.h.  */
2932 #include <ac_nonexistent.h>
2933 _ACEOF
2934 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2935   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2936   ac_status=$?
2937   grep -v '^ *+' conftest.er1 >conftest.err
2938   rm -f conftest.er1
2939   cat conftest.err >&5
2940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2941   (exit $ac_status); } >/dev/null; then
2942   if test -s conftest.err; then
2943     ac_cpp_err=$ac_c_preproc_warn_flag
2944   else
2945     ac_cpp_err=
2946   fi
2947 else
2948   ac_cpp_err=yes
2949 fi
2950 if test -z "$ac_cpp_err"; then
2951   # Broken: success on invalid input.
2952 continue
2953 else
2954   echo "$as_me: failed program was:" >&5
2955 sed 's/^/| /' conftest.$ac_ext >&5
2956
2957   # Passes both tests.
2958 ac_preproc_ok=:
2959 break
2960 fi
2961 rm -f conftest.err conftest.$ac_ext
2962
2963 done
2964 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2965 rm -f conftest.err conftest.$ac_ext
2966 if $ac_preproc_ok; then
2967   :
2968 else
2969   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2970 See \`config.log' for more details." >&5
2971 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2972 See \`config.log' for more details." >&2;}
2973    { (exit 1); exit 1; }; }
2974 fi
2975
2976 ac_ext=c
2977 ac_cpp='$CPP $CPPFLAGS'
2978 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2979 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2980 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2981
2982
2983 echo "$as_me:$LINENO: checking for egrep" >&5
2984 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2985 if test "${ac_cv_prog_egrep+set}" = set; then
2986   echo $ECHO_N "(cached) $ECHO_C" >&6
2987 else
2988   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2989     then ac_cv_prog_egrep='grep -E'
2990     else ac_cv_prog_egrep='egrep'
2991     fi
2992 fi
2993 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2994 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2995  EGREP=$ac_cv_prog_egrep
2996
2997
2998 if test $ac_cv_c_compiler_gnu = yes; then
2999     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3000 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3001 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3002   echo $ECHO_N "(cached) $ECHO_C" >&6
3003 else
3004     ac_pattern="Autoconf.*'x'"
3005   cat >conftest.$ac_ext <<_ACEOF
3006 #line $LINENO "configure"
3007 /* confdefs.h.  */
3008 _ACEOF
3009 cat confdefs.h >>conftest.$ac_ext
3010 cat >>conftest.$ac_ext <<_ACEOF
3011 /* end confdefs.h.  */
3012 #include <sgtty.h>
3013 Autoconf TIOCGETP
3014 _ACEOF
3015 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3016   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3017   ac_cv_prog_gcc_traditional=yes
3018 else
3019   ac_cv_prog_gcc_traditional=no
3020 fi
3021 rm -f conftest*
3022
3023
3024   if test $ac_cv_prog_gcc_traditional = no; then
3025     cat >conftest.$ac_ext <<_ACEOF
3026 #line $LINENO "configure"
3027 /* confdefs.h.  */
3028 _ACEOF
3029 cat confdefs.h >>conftest.$ac_ext
3030 cat >>conftest.$ac_ext <<_ACEOF
3031 /* end confdefs.h.  */
3032 #include <termio.h>
3033 Autoconf TCGETA
3034 _ACEOF
3035 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3036   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3037   ac_cv_prog_gcc_traditional=yes
3038 fi
3039 rm -f conftest*
3040
3041   fi
3042 fi
3043 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3044 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3045   if test $ac_cv_prog_gcc_traditional = yes; then
3046     CC="$CC -traditional"
3047   fi
3048 fi
3049
3050 if test x$CC = xgcc
3051 then
3052    cat >>confdefs.h <<\_ACEOF
3053 #define HAVE_GCC 1
3054 _ACEOF
3055
3056 fi
3057
3058 # Find a good install program.  We prefer a C program (faster),
3059 # so one script is as good as another.  But avoid the broken or
3060 # incompatible versions:
3061 # SysV /etc/install, /usr/sbin/install
3062 # SunOS /usr/etc/install
3063 # IRIX /sbin/install
3064 # AIX /bin/install
3065 # AmigaOS /C/install, which installs bootblocks on floppy discs
3066 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3067 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3068 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3069 # ./install, which can be erroneously created by make from ./install.sh.
3070 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3071 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3072 if test -z "$INSTALL"; then
3073 if test "${ac_cv_path_install+set}" = set; then
3074   echo $ECHO_N "(cached) $ECHO_C" >&6
3075 else
3076   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3077 for as_dir in $PATH
3078 do
3079   IFS=$as_save_IFS
3080   test -z "$as_dir" && as_dir=.
3081   # Account for people who put trailing slashes in PATH elements.
3082 case $as_dir/ in
3083   ./ | .// | /cC/* | \
3084   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3085   /usr/ucb/* ) ;;
3086   *)
3087     # OSF1 and SCO ODT 3.0 have their own names for install.
3088     # Don't use installbsd from OSF since it installs stuff as root
3089     # by default.
3090     for ac_prog in ginstall scoinst install; do
3091       for ac_exec_ext in '' $ac_executable_extensions; do
3092         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3093           if test $ac_prog = install &&
3094             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3095             # AIX install.  It has an incompatible calling convention.
3096             :
3097           elif test $ac_prog = install &&
3098             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3099             # program-specific install script used by HP pwplus--don't use.
3100             :
3101           else
3102             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3103             break 3
3104           fi
3105         fi
3106       done
3107     done
3108     ;;
3109 esac
3110 done
3111
3112
3113 fi
3114   if test "${ac_cv_path_install+set}" = set; then
3115     INSTALL=$ac_cv_path_install
3116   else
3117     # As a last resort, use the slow shell script.  We don't cache a
3118     # path for INSTALL within a source directory, because that will
3119     # break other packages using the cache if that directory is
3120     # removed, or if the path is relative.
3121     INSTALL=$ac_install_sh
3122   fi
3123 fi
3124 echo "$as_me:$LINENO: result: $INSTALL" >&5
3125 echo "${ECHO_T}$INSTALL" >&6
3126
3127 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3128 # It thinks the first close brace ends the variable substitution.
3129 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3130
3131 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3132
3133 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3134
3135 if test -n "$ac_tool_prefix"; then
3136   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3137 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3138 echo "$as_me:$LINENO: checking for $ac_word" >&5
3139 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3140 if test "${ac_cv_prog_RANLIB+set}" = set; then
3141   echo $ECHO_N "(cached) $ECHO_C" >&6
3142 else
3143   if test -n "$RANLIB"; then
3144   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3145 else
3146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3147 for as_dir in $PATH
3148 do
3149   IFS=$as_save_IFS
3150   test -z "$as_dir" && as_dir=.
3151   for ac_exec_ext in '' $ac_executable_extensions; do
3152   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3153     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3154     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3155     break 2
3156   fi
3157 done
3158 done
3159
3160 fi
3161 fi
3162 RANLIB=$ac_cv_prog_RANLIB
3163 if test -n "$RANLIB"; then
3164   echo "$as_me:$LINENO: result: $RANLIB" >&5
3165 echo "${ECHO_T}$RANLIB" >&6
3166 else
3167   echo "$as_me:$LINENO: result: no" >&5
3168 echo "${ECHO_T}no" >&6
3169 fi
3170
3171 fi
3172 if test -z "$ac_cv_prog_RANLIB"; then
3173   ac_ct_RANLIB=$RANLIB
3174   # Extract the first word of "ranlib", so it can be a program name with args.
3175 set dummy ranlib; ac_word=$2
3176 echo "$as_me:$LINENO: checking for $ac_word" >&5
3177 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3178 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3179   echo $ECHO_N "(cached) $ECHO_C" >&6
3180 else
3181   if test -n "$ac_ct_RANLIB"; then
3182   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3183 else
3184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3185 for as_dir in $PATH
3186 do
3187   IFS=$as_save_IFS
3188   test -z "$as_dir" && as_dir=.
3189   for ac_exec_ext in '' $ac_executable_extensions; do
3190   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3191     ac_cv_prog_ac_ct_RANLIB="ranlib"
3192     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3193     break 2
3194   fi
3195 done
3196 done
3197
3198   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3199 fi
3200 fi
3201 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3202 if test -n "$ac_ct_RANLIB"; then
3203   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3204 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3205 else
3206   echo "$as_me:$LINENO: result: no" >&5
3207 echo "${ECHO_T}no" >&6
3208 fi
3209
3210   RANLIB=$ac_ct_RANLIB
3211 else
3212   RANLIB="$ac_cv_prog_RANLIB"
3213 fi
3214
3215 # Extract the first word of "mv", so it can be a program name with args.
3216 set dummy mv; ac_word=$2
3217 echo "$as_me:$LINENO: checking for $ac_word" >&5
3218 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3219 if test "${ac_cv_path_MV+set}" = set; then
3220   echo $ECHO_N "(cached) $ECHO_C" >&6
3221 else
3222   case $MV in
3223   [\\/]* | ?:[\\/]*)
3224   ac_cv_path_MV="$MV" # Let the user override the test with a path.
3225   ;;
3226   *)
3227   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3228 for as_dir in $PATH
3229 do
3230   IFS=$as_save_IFS
3231   test -z "$as_dir" && as_dir=.
3232   for ac_exec_ext in '' $ac_executable_extensions; do
3233   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3234     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
3235     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3236     break 2
3237   fi
3238 done
3239 done
3240
3241   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
3242   ;;
3243 esac
3244 fi
3245 MV=$ac_cv_path_MV
3246
3247 if test -n "$MV"; then
3248   echo "$as_me:$LINENO: result: $MV" >&5
3249 echo "${ECHO_T}$MV" >&6
3250 else
3251   echo "$as_me:$LINENO: result: no" >&5
3252 echo "${ECHO_T}no" >&6
3253 fi
3254
3255 # Extract the first word of "rm", so it can be a program name with args.
3256 set dummy rm; ac_word=$2
3257 echo "$as_me:$LINENO: checking for $ac_word" >&5
3258 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3259 if test "${ac_cv_path_RM+set}" = set; then
3260   echo $ECHO_N "(cached) $ECHO_C" >&6
3261 else
3262   case $RM in
3263   [\\/]* | ?:[\\/]*)
3264   ac_cv_path_RM="$RM" # Let the user override the test with a path.
3265   ;;
3266   *)
3267   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3268 for as_dir in $PATH
3269 do
3270   IFS=$as_save_IFS
3271   test -z "$as_dir" && as_dir=.
3272   for ac_exec_ext in '' $ac_executable_extensions; do
3273   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3274     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
3275     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3276     break 2
3277   fi
3278 done
3279 done
3280
3281   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
3282   ;;
3283 esac
3284 fi
3285 RM=$ac_cv_path_RM
3286
3287 if test -n "$RM"; then
3288   echo "$as_me:$LINENO: result: $RM" >&5
3289 echo "${ECHO_T}$RM" >&6
3290 else
3291   echo "$as_me:$LINENO: result: no" >&5
3292 echo "${ECHO_T}no" >&6
3293 fi
3294
3295 # Extract the first word of "cp", so it can be a program name with args.
3296 set dummy cp; ac_word=$2
3297 echo "$as_me:$LINENO: checking for $ac_word" >&5
3298 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3299 if test "${ac_cv_path_CP+set}" = set; then
3300   echo $ECHO_N "(cached) $ECHO_C" >&6
3301 else
3302   case $CP in
3303   [\\/]* | ?:[\\/]*)
3304   ac_cv_path_CP="$CP" # Let the user override the test with a path.
3305   ;;
3306   *)
3307   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3308 for as_dir in $PATH
3309 do
3310   IFS=$as_save_IFS
3311   test -z "$as_dir" && as_dir=.
3312   for ac_exec_ext in '' $ac_executable_extensions; do
3313   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3314     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
3315     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3316     break 2
3317   fi
3318 done
3319 done
3320
3321   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
3322   ;;
3323 esac
3324 fi
3325 CP=$ac_cv_path_CP
3326
3327 if test -n "$CP"; then
3328   echo "$as_me:$LINENO: result: $CP" >&5
3329 echo "${ECHO_T}$CP" >&6
3330 else
3331   echo "$as_me:$LINENO: result: no" >&5
3332 echo "${ECHO_T}no" >&6
3333 fi
3334
3335 # Extract the first word of "sed", so it can be a program name with args.
3336 set dummy sed; ac_word=$2
3337 echo "$as_me:$LINENO: checking for $ac_word" >&5
3338 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3339 if test "${ac_cv_path_SED+set}" = set; then
3340   echo $ECHO_N "(cached) $ECHO_C" >&6
3341 else
3342   case $SED in
3343   [\\/]* | ?:[\\/]*)
3344   ac_cv_path_SED="$SED" # Let the user override the test with a path.
3345   ;;
3346   *)
3347   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3348 for as_dir in $PATH
3349 do
3350   IFS=$as_save_IFS
3351   test -z "$as_dir" && as_dir=.
3352   for ac_exec_ext in '' $ac_executable_extensions; do
3353   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3354     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
3355     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3356     break 2
3357   fi
3358 done
3359 done
3360
3361   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
3362   ;;
3363 esac
3364 fi
3365 SED=$ac_cv_path_SED
3366
3367 if test -n "$SED"; then
3368   echo "$as_me:$LINENO: result: $SED" >&5
3369 echo "${ECHO_T}$SED" >&6
3370 else
3371   echo "$as_me:$LINENO: result: no" >&5
3372 echo "${ECHO_T}no" >&6
3373 fi
3374
3375 # Extract the first word of "awk", so it can be a program name with args.
3376 set dummy awk; ac_word=$2
3377 echo "$as_me:$LINENO: checking for $ac_word" >&5
3378 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3379 if test "${ac_cv_path_AWK+set}" = set; then
3380   echo $ECHO_N "(cached) $ECHO_C" >&6
3381 else
3382   case $AWK in
3383   [\\/]* | ?:[\\/]*)
3384   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
3385   ;;
3386   *)
3387   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3388 for as_dir in $PATH
3389 do
3390   IFS=$as_save_IFS
3391   test -z "$as_dir" && as_dir=.
3392   for ac_exec_ext in '' $ac_executable_extensions; do
3393   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3394     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
3395     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3396     break 2
3397   fi
3398 done
3399 done
3400
3401   test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="awk"
3402   ;;
3403 esac
3404 fi
3405 AWK=$ac_cv_path_AWK
3406
3407 if test -n "$AWK"; then
3408   echo "$as_me:$LINENO: result: $AWK" >&5
3409 echo "${ECHO_T}$AWK" >&6
3410 else
3411   echo "$as_me:$LINENO: result: no" >&5
3412 echo "${ECHO_T}no" >&6
3413 fi
3414
3415 # Extract the first word of "echo", so it can be a program name with args.
3416 set dummy echo; ac_word=$2
3417 echo "$as_me:$LINENO: checking for $ac_word" >&5
3418 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3419 if test "${ac_cv_path_ECHO+set}" = set; then
3420   echo $ECHO_N "(cached) $ECHO_C" >&6
3421 else
3422   case $ECHO in
3423   [\\/]* | ?:[\\/]*)
3424   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
3425   ;;
3426   *)
3427   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3428 for as_dir in $PATH
3429 do
3430   IFS=$as_save_IFS
3431   test -z "$as_dir" && as_dir=.
3432   for ac_exec_ext in '' $ac_executable_extensions; do
3433   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3434     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
3435     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3436     break 2
3437   fi
3438 done
3439 done
3440
3441   test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
3442   ;;
3443 esac
3444 fi
3445 ECHO=$ac_cv_path_ECHO
3446
3447 if test -n "$ECHO"; then
3448   echo "$as_me:$LINENO: result: $ECHO" >&5
3449 echo "${ECHO_T}$ECHO" >&6
3450 else
3451   echo "$as_me:$LINENO: result: no" >&5
3452 echo "${ECHO_T}no" >&6
3453 fi
3454
3455 # Extract the first word of "cmp", so it can be a program name with args.
3456 set dummy cmp; ac_word=$2
3457 echo "$as_me:$LINENO: checking for $ac_word" >&5
3458 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3459 if test "${ac_cv_path_CMP+set}" = set; then
3460   echo $ECHO_N "(cached) $ECHO_C" >&6
3461 else
3462   case $CMP in
3463   [\\/]* | ?:[\\/]*)
3464   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
3465   ;;
3466   *)
3467   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3468 for as_dir in $PATH
3469 do
3470   IFS=$as_save_IFS
3471   test -z "$as_dir" && as_dir=.
3472   for ac_exec_ext in '' $ac_executable_extensions; do
3473   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3474     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
3475     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3476     break 2
3477   fi
3478 done
3479 done
3480
3481   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
3482   ;;
3483 esac
3484 fi
3485 CMP=$ac_cv_path_CMP
3486
3487 if test -n "$CMP"; then
3488   echo "$as_me:$LINENO: result: $CMP" >&5
3489 echo "${ECHO_T}$CMP" >&6
3490 else
3491   echo "$as_me:$LINENO: result: no" >&5
3492 echo "${ECHO_T}no" >&6
3493 fi
3494
3495 # Extract the first word of "tbl", so it can be a program name with args.
3496 set dummy tbl; ac_word=$2
3497 echo "$as_me:$LINENO: checking for $ac_word" >&5
3498 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3499 if test "${ac_cv_path_TBL+set}" = set; then
3500   echo $ECHO_N "(cached) $ECHO_C" >&6
3501 else
3502   case $TBL in
3503   [\\/]* | ?:[\\/]*)
3504   ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
3505   ;;
3506   *)
3507   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3508 for as_dir in $PATH
3509 do
3510   IFS=$as_save_IFS
3511   test -z "$as_dir" && as_dir=.
3512   for ac_exec_ext in '' $ac_executable_extensions; do
3513   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3514     ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
3515     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3516     break 2
3517   fi
3518 done
3519 done
3520
3521   test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
3522   ;;
3523 esac
3524 fi
3525 TBL=$ac_cv_path_TBL
3526
3527 if test -n "$TBL"; then
3528   echo "$as_me:$LINENO: result: $TBL" >&5
3529 echo "${ECHO_T}$TBL" >&6
3530 else
3531   echo "$as_me:$LINENO: result: no" >&5
3532 echo "${ECHO_T}no" >&6
3533 fi
3534
3535 # Extract the first word of "ar", so it can be a program name with args.
3536 set dummy ar; ac_word=$2
3537 echo "$as_me:$LINENO: checking for $ac_word" >&5
3538 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3539 if test "${ac_cv_path_AR+set}" = set; then
3540   echo $ECHO_N "(cached) $ECHO_C" >&6
3541 else
3542   case $AR in
3543   [\\/]* | ?:[\\/]*)
3544   ac_cv_path_AR="$AR" # Let the user override the test with a path.
3545   ;;
3546   *)
3547   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3548 for as_dir in $PATH
3549 do
3550   IFS=$as_save_IFS
3551   test -z "$as_dir" && as_dir=.
3552   for ac_exec_ext in '' $ac_executable_extensions; do
3553   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3554     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3555     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3556     break 2
3557   fi
3558 done
3559 done
3560
3561   test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
3562   ;;
3563 esac
3564 fi
3565 AR=$ac_cv_path_AR
3566
3567 if test -n "$AR"; then
3568   echo "$as_me:$LINENO: result: $AR" >&5
3569 echo "${ECHO_T}$AR" >&6
3570 else
3571   echo "$as_me:$LINENO: result: no" >&5
3572 echo "${ECHO_T}no" >&6
3573 fi
3574
3575 # Extract the first word of "openssl", so it can be a program name with args.
3576 set dummy openssl; ac_word=$2
3577 echo "$as_me:$LINENO: checking for $ac_word" >&5
3578 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3579 if test "${ac_cv_path_OPENSSL+set}" = set; then
3580   echo $ECHO_N "(cached) $ECHO_C" >&6
3581 else
3582   case $OPENSSL in
3583   [\\/]* | ?:[\\/]*)
3584   ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
3585   ;;
3586   *)
3587   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3588 for as_dir in $PATH
3589 do
3590   IFS=$as_save_IFS
3591   test -z "$as_dir" && as_dir=.
3592   for ac_exec_ext in '' $ac_executable_extensions; do
3593   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3594     ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
3595     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3596     break 2
3597   fi
3598 done
3599 done
3600
3601   test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
3602   ;;
3603 esac
3604 fi
3605 OPENSSL=$ac_cv_path_OPENSSL
3606
3607 if test -n "$OPENSSL"; then
3608   echo "$as_me:$LINENO: result: $OPENSSL" >&5
3609 echo "${ECHO_T}$OPENSSL" >&6
3610 else
3611   echo "$as_me:$LINENO: result: no" >&5
3612 echo "${ECHO_T}no" >&6
3613 fi
3614
3615 # Extract the first word of "mtx", so it can be a program name with args.
3616 set dummy mtx; ac_word=$2
3617 echo "$as_me:$LINENO: checking for $ac_word" >&5
3618 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3619 if test "${ac_cv_path_MTX+set}" = set; then
3620   echo $ECHO_N "(cached) $ECHO_C" >&6
3621 else
3622   case $MTX in
3623   [\\/]* | ?:[\\/]*)
3624   ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
3625   ;;
3626   *)
3627   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3628 for as_dir in $PATH
3629 do
3630   IFS=$as_save_IFS
3631   test -z "$as_dir" && as_dir=.
3632   for ac_exec_ext in '' $ac_executable_extensions; do
3633   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3634     ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
3635     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3636     break 2
3637   fi
3638 done
3639 done
3640
3641   test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
3642   ;;
3643 esac
3644 fi
3645 MTX=$ac_cv_path_MTX
3646
3647 if test -n "$MTX"; then
3648   echo "$as_me:$LINENO: result: $MTX" >&5
3649 echo "${ECHO_T}$MTX" >&6
3650 else
3651   echo "$as_me:$LINENO: result: no" >&5
3652 echo "${ECHO_T}no" >&6
3653 fi
3654
3655 # Extract the first word of "pkg-config", so it can be a program name with args.
3656 set dummy pkg-config; ac_word=$2
3657 echo "$as_me:$LINENO: checking for $ac_word" >&5
3658 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3659 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
3660   echo $ECHO_N "(cached) $ECHO_C" >&6
3661 else
3662   case $PKGCONFIG in
3663   [\\/]* | ?:[\\/]*)
3664   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
3665   ;;
3666   *)
3667   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3668 for as_dir in $PATH
3669 do
3670   IFS=$as_save_IFS
3671   test -z "$as_dir" && as_dir=.
3672   for ac_exec_ext in '' $ac_executable_extensions; do
3673   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3674     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
3675     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3676     break 2
3677   fi
3678 done
3679 done
3680
3681   test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
3682   ;;
3683 esac
3684 fi
3685 PKGCONFIG=$ac_cv_path_PKGCONFIG
3686
3687 if test -n "$PKGCONFIG"; then
3688   echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
3689 echo "${ECHO_T}$PKGCONFIG" >&6
3690 else
3691   echo "$as_me:$LINENO: result: no" >&5
3692 echo "${ECHO_T}no" >&6
3693 fi
3694
3695 # Extract the first word of "wx-config", so it can be a program name with args.
3696 set dummy wx-config; ac_word=$2
3697 echo "$as_me:$LINENO: checking for $ac_word" >&5
3698 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3699 if test "${ac_cv_path_WXCONFIG+set}" = set; then
3700   echo $ECHO_N "(cached) $ECHO_C" >&6
3701 else
3702   case $WXCONFIG in
3703   [\\/]* | ?:[\\/]*)
3704   ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
3705   ;;
3706   *)
3707   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3708 for as_dir in $PATH
3709 do
3710   IFS=$as_save_IFS
3711   test -z "$as_dir" && as_dir=.
3712   for ac_exec_ext in '' $ac_executable_extensions; do
3713   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3714     ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
3715     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3716     break 2
3717   fi
3718 done
3719 done
3720
3721   test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="wx-config"
3722   ;;
3723 esac
3724 fi
3725 WXCONFIG=$ac_cv_path_WXCONFIG
3726
3727 if test -n "$WXCONFIG"; then
3728   echo "$as_me:$LINENO: result: $WXCONFIG" >&5
3729 echo "${ECHO_T}$WXCONFIG" >&6
3730 else
3731   echo "$as_me:$LINENO: result: no" >&5
3732 echo "${ECHO_T}no" >&6
3733 fi
3734
3735
3736 test -n "$ARFLAG" || ARFLAGS="cr"
3737
3738
3739 MAKE_SHELL=/bin/sh
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749 # Make sure we can run config.sub.
3750 $ac_config_sub sun4 >/dev/null 2>&1 ||
3751   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3752 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3753    { (exit 1); exit 1; }; }
3754
3755 echo "$as_me:$LINENO: checking build system type" >&5
3756 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3757 if test "${ac_cv_build+set}" = set; then
3758   echo $ECHO_N "(cached) $ECHO_C" >&6
3759 else
3760   ac_cv_build_alias=$build_alias
3761 test -z "$ac_cv_build_alias" &&
3762   ac_cv_build_alias=`$ac_config_guess`
3763 test -z "$ac_cv_build_alias" &&
3764   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3765 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3766    { (exit 1); exit 1; }; }
3767 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3768   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3769 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3770    { (exit 1); exit 1; }; }
3771
3772 fi
3773 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3774 echo "${ECHO_T}$ac_cv_build" >&6
3775 build=$ac_cv_build
3776 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3777 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3778 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3779
3780
3781
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
4134 # -----------------------------------------------------------
4135 # ----------------------------------------------------------
4136 echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
4137 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6
4138 if test "x$DISTNAME" != "x"
4139 then
4140         echo "distname set to $DISTNAME"
4141 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4142 then
4143         DISTNAME=alpha
4144 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4145 then
4146         DISTNAME=aix
4147 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4148 then
4149         DISTNAME=hpux
4150 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4151 then
4152         DISTNAME=solaris
4153 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4154 then
4155         DISTNAME=freebsd
4156 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4157 then
4158         DISTNAME=netbsd
4159 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4160 then
4161         DISTNAME=openbsd
4162 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4163 then
4164         DISTNAME=irix
4165 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4166 then
4167         DISTNAME=bsdi
4168 elif test -f /etc/SuSE-release
4169 then
4170         DISTNAME=suse
4171 elif test -d /etc/SuSEconfig
4172 then
4173         DISTNAME=suse5
4174 elif test -f /etc/mandrake-release
4175 then
4176         DISTNAME=mandrake
4177 elif test -f /etc/whitebox-release
4178 then
4179        DISTNAME=redhat
4180 elif test -f /etc/redhat-release
4181 then
4182         DISTNAME=redhat
4183 elif test -f /etc/gentoo-release
4184 then
4185         DISTNAME=gentoo
4186 elif test -f /etc/debian_version
4187 then
4188         DISTNAME=debian
4189 elif test -f /etc/slackware-version
4190 then
4191         DISTNAME=slackware
4192 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4193 then
4194     DISTNAME=darwin
4195 elif test -f /etc/engarde-version
4196 then
4197         DISTNAME=engarde
4198 elif test "$CYGWIN" = yes
4199 then
4200         DISTNAME=cygwin
4201         cat >>confdefs.h <<\_ACEOF
4202 #define HAVE_CYGWIN 1
4203 _ACEOF
4204
4205 else
4206         DISTNAME=unknown
4207 fi
4208 echo "$as_me:$LINENO: result: done" >&5
4209 echo "${ECHO_T}done" >&6
4210
4211
4212 # -----------------------------------------------------------
4213 # ----------------------------------------------------------
4214
4215
4216
4217 if false; then
4218   INSIDE_GNOME_COMMON_TRUE=
4219   INSIDE_GNOME_COMMON_FALSE='#'
4220 else
4221   INSIDE_GNOME_COMMON_TRUE='#'
4222   INSIDE_GNOME_COMMON_FALSE=
4223 fi
4224
4225         test -n "$ACLOCAL_FLAGS" && ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
4226
4227         for k in gnome-macros ; do ACLOCAL="$ACLOCAL -I $k" ; done
4228
4229
4230 # ------------------------------------------------------------------
4231 #  If the user has not set --prefix, we set our default to nothing.
4232 #  In this case, if the user has not set --sysconfdir, we set it
4233 #  to the package default of /etc/bacula.  If either --prefix or
4234 #  --sysconfdir is set, we leave sysconfdir alone except to eval it.
4235 # ------------------------------------------------------------------
4236 if test x${prefix} = xNONE ; then
4237     if test `eval echo ${sysconfdir}` = NONE/etc ; then
4238         sysconfdir=/etc/bacula
4239     fi
4240     prefix=
4241 fi
4242 sysconfdir=`eval echo ${sysconfdir}`
4243
4244 # -------------------------------------------------------------------------
4245 #  If the user has not set --exec-prefix, we default to ${prefix}
4246 # -------------------------------------------------------------------------
4247 if test x${exec_prefix} = xNONE ; then
4248     exec_prefix=${prefix}
4249 fi
4250
4251 # ------------------------------------------------------------------
4252 # If the user has not set --sbindir, we set our default as /sbin
4253 # ------------------------------------------------------------------
4254 if test x$sbindir = x'${exec_prefix}/sbin' ; then
4255     sbindir=${exec_prefix}/sbin
4256 fi
4257 sbindir=`eval echo ${sbindir}`
4258
4259 # ------------------------------------------------------------------
4260 # All list of languages for which a translation exist. Each
4261 #  language is separated by a space.
4262 # ------------------------------------------------------------------
4263 ALL_LINGUAS=""
4264
4265 for ac_prog in msgfmt
4266 do
4267   # Extract the first word of "$ac_prog", so it can be a program name with args.
4268 set dummy $ac_prog; ac_word=$2
4269 echo "$as_me:$LINENO: checking for $ac_word" >&5
4270 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4271 if test "${ac_cv_path_MSGFMT+set}" = set; then
4272   echo $ECHO_N "(cached) $ECHO_C" >&6
4273 else
4274   case $MSGFMT in
4275   [\\/]* | ?:[\\/]*)
4276   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4277   ;;
4278   *)
4279   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4280 for as_dir in $PATH
4281 do
4282   IFS=$as_save_IFS
4283   test -z "$as_dir" && as_dir=.
4284   for ac_exec_ext in '' $ac_executable_extensions; do
4285   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4286     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
4287     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4288     break 2
4289   fi
4290 done
4291 done
4292
4293   ;;
4294 esac
4295 fi
4296 MSGFMT=$ac_cv_path_MSGFMT
4297
4298 if test -n "$MSGFMT"; then
4299   echo "$as_me:$LINENO: result: $MSGFMT" >&5
4300 echo "${ECHO_T}$MSGFMT" >&6
4301 else
4302   echo "$as_me:$LINENO: result: no" >&5
4303 echo "${ECHO_T}no" >&6
4304 fi
4305
4306   test -n "$MSGFMT" && break
4307 done
4308 test -n "$MSGFMT" || MSGFMT="no"
4309
4310 if test "$MSGFMT" = "no"
4311 then
4312    echo 'msgfmt program not found, disabling NLS !'
4313    USE_NLS=no
4314    USE_INCLUDED_LIBINTL=no
4315 #else
4316 #   AM_GNU_GETTEXT
4317 fi
4318
4319
4320 support_mysql=no
4321 support_sqlite=no
4322 support_postgresql=no
4323 support_smartalloc=yes
4324 support_readline=yes
4325 support_conio=yes
4326 support_gnome=no
4327 support_wx_console=no
4328 gnome_version=
4329 support_static_tools=no
4330 support_static_fd=no
4331 support_static_sd=no
4332 support_static_dir=no
4333 support_static_cons=no
4334 build_client_only=no
4335 cats=
4336 db_name=Internal
4337 DB_NAME=bdb
4338
4339
4340 # -------------------------------------------
4341 # gnome (default off)
4342 # -------------------------------------------
4343 # Check whether --enable-gnome or --disable-gnome was given.
4344 if test "${enable_gnome+set}" = set; then
4345   enableval="$enable_gnome"
4346   if test x$enableval = xyes; then
4347     support_gnome=yes
4348   fi
4349 fi;
4350
4351 GNOME_DIR=
4352 if test x$support_gnome = xyes; then
4353   abc=`$PKGCONFIG --exists libgnomeui-2.0`
4354   pkg=$?
4355   if test $pkg = 0; then
4356      GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
4357      GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
4358      GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
4359      GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
4360
4361
4362
4363
4364      GNOME_DIR=src/gnome2-console
4365      gnome_version="Version 2.x"
4366   else
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377
4378 # Check whether --with-gnome-includes or --without-gnome-includes was given.
4379 if test "${with_gnome_includes+set}" = set; then
4380   withval="$with_gnome_includes"
4381
4382         CFLAGS="$CFLAGS -I$withval"
4383
4384 fi;
4385
4386
4387 # Check whether --with-gnome-libs or --without-gnome-libs was given.
4388 if test "${with_gnome_libs+set}" = set; then
4389   withval="$with_gnome_libs"
4390
4391         LDFLAGS="$LDFLAGS -L$withval"
4392         gnome_prefix=$withval
4393
4394 fi;
4395
4396
4397 # Check whether --with-gnome or --without-gnome was given.
4398 if test "${with_gnome+set}" = set; then
4399   withval="$with_gnome"
4400   if test x$withval = xyes; then
4401                         want_gnome=yes
4402                                                                         :
4403                 else
4404                         if test "x$withval" = xno; then
4405                                 want_gnome=no
4406                         else
4407                                 want_gnome=yes
4408                                 LDFLAGS="$LDFLAGS -L$withval/lib"
4409                                 CFLAGS="$CFLAGS -I$withval/include"
4410                                 gnome_prefix=$withval/lib
4411                         fi
4412                 fi
4413 else
4414   want_gnome=yes
4415 fi;
4416
4417         if test "x$want_gnome" = xyes; then
4418
4419             # Extract the first word of "gnome-config", so it can be a program name with args.
4420 set dummy gnome-config; ac_word=$2
4421 echo "$as_me:$LINENO: checking for $ac_word" >&5
4422 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4423 if test "${ac_cv_path_GNOME_CONFIG+set}" = set; then
4424   echo $ECHO_N "(cached) $ECHO_C" >&6
4425 else
4426   case $GNOME_CONFIG in
4427   [\\/]* | ?:[\\/]*)
4428   ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
4429   ;;
4430   *)
4431   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4432 for as_dir in $PATH
4433 do
4434   IFS=$as_save_IFS
4435   test -z "$as_dir" && as_dir=.
4436   for ac_exec_ext in '' $ac_executable_extensions; do
4437   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4438     ac_cv_path_GNOME_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4439     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4440     break 2
4441   fi
4442 done
4443 done
4444
4445   test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
4446   ;;
4447 esac
4448 fi
4449 GNOME_CONFIG=$ac_cv_path_GNOME_CONFIG
4450
4451 if test -n "$GNOME_CONFIG"; then
4452   echo "$as_me:$LINENO: result: $GNOME_CONFIG" >&5
4453 echo "${ECHO_T}$GNOME_CONFIG" >&6
4454 else
4455   echo "$as_me:$LINENO: result: no" >&5
4456 echo "${ECHO_T}no" >&6
4457 fi
4458
4459             if test "$GNOME_CONFIG" = "no"; then
4460               no_gnome_config="yes"
4461             else
4462               echo "$as_me:$LINENO: checking if $GNOME_CONFIG works" >&5
4463 echo $ECHO_N "checking if $GNOME_CONFIG works... $ECHO_C" >&6
4464               if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then
4465                 echo "$as_me:$LINENO: result: yes" >&5
4466 echo "${ECHO_T}yes" >&6
4467
4468
4469         # Extract the first word of "orbit-config", so it can be a program name with args.
4470 set dummy orbit-config; ac_word=$2
4471 echo "$as_me:$LINENO: checking for $ac_word" >&5
4472 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4473 if test "${ac_cv_path_ORBIT_CONFIG+set}" = set; then
4474   echo $ECHO_N "(cached) $ECHO_C" >&6
4475 else
4476   case $ORBIT_CONFIG in
4477   [\\/]* | ?:[\\/]*)
4478   ac_cv_path_ORBIT_CONFIG="$ORBIT_CONFIG" # Let the user override the test with a path.
4479   ;;
4480   *)
4481   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4482 for as_dir in $PATH
4483 do
4484   IFS=$as_save_IFS
4485   test -z "$as_dir" && as_dir=.
4486   for ac_exec_ext in '' $ac_executable_extensions; do
4487   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4488     ac_cv_path_ORBIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4489     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4490     break 2
4491   fi
4492 done
4493 done
4494
4495   test -z "$ac_cv_path_ORBIT_CONFIG" && ac_cv_path_ORBIT_CONFIG="no"
4496   ;;
4497 esac
4498 fi
4499 ORBIT_CONFIG=$ac_cv_path_ORBIT_CONFIG
4500
4501 if test -n "$ORBIT_CONFIG"; then
4502   echo "$as_me:$LINENO: result: $ORBIT_CONFIG" >&5
4503 echo "${ECHO_T}$ORBIT_CONFIG" >&6
4504 else
4505   echo "$as_me:$LINENO: result: no" >&5
4506 echo "${ECHO_T}no" >&6
4507 fi
4508
4509         # Extract the first word of "orbit-idl", so it can be a program name with args.
4510 set dummy orbit-idl; ac_word=$2
4511 echo "$as_me:$LINENO: checking for $ac_word" >&5
4512 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4513 if test "${ac_cv_path_ORBIT_IDL+set}" = set; then
4514   echo $ECHO_N "(cached) $ECHO_C" >&6
4515 else
4516   case $ORBIT_IDL in
4517   [\\/]* | ?:[\\/]*)
4518   ac_cv_path_ORBIT_IDL="$ORBIT_IDL" # Let the user override the test with a path.
4519   ;;
4520   *)
4521   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4522 for as_dir in $PATH
4523 do
4524   IFS=$as_save_IFS
4525   test -z "$as_dir" && as_dir=.
4526   for ac_exec_ext in '' $ac_executable_extensions; do
4527   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4528     ac_cv_path_ORBIT_IDL="$as_dir/$ac_word$ac_exec_ext"
4529     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4530     break 2
4531   fi
4532 done
4533 done
4534
4535   test -z "$ac_cv_path_ORBIT_IDL" && ac_cv_path_ORBIT_IDL="no"
4536   ;;
4537 esac
4538 fi
4539 ORBIT_IDL=$ac_cv_path_ORBIT_IDL
4540
4541 if test -n "$ORBIT_IDL"; then
4542   echo "$as_me:$LINENO: result: $ORBIT_IDL" >&5
4543 echo "${ECHO_T}$ORBIT_IDL" >&6
4544 else
4545   echo "$as_me:$LINENO: result: no" >&5
4546 echo "${ECHO_T}no" >&6
4547 fi
4548
4549         echo "$as_me:$LINENO: checking for working ORBit environment" >&5
4550 echo $ECHO_N "checking for working ORBit environment... $ECHO_C" >&6
4551 if test "${gnome_cv_orbit_found+set}" = set; then
4552   echo $ECHO_N "(cached) $ECHO_C" >&6
4553 else
4554
4555                 if test x$ORBIT_CONFIG = xno -o x$ORBIT_IDL = xno; then
4556                         gnome_cv_orbit_found=no
4557                 else
4558                         gnome_cv_orbit_found=yes
4559                 fi
4560
4561 fi
4562 echo "$as_me:$LINENO: result: $gnome_cv_orbit_found" >&5
4563 echo "${ECHO_T}$gnome_cv_orbit_found" >&6
4564
4565
4566 if test x$gnome_cv_orbit_found = xyes; then
4567   HAVE_ORBIT_TRUE=
4568   HAVE_ORBIT_FALSE='#'
4569 else
4570   HAVE_ORBIT_TRUE='#'
4571   HAVE_ORBIT_FALSE=
4572 fi
4573         if test x$gnome_cv_orbit_found = xyes; then
4574
4575                 ORBIT_CFLAGS=`orbit-config --cflags client server`
4576                 ORBIT_LIBS=`orbit-config --use-service=name --libs client server`
4577
4578
4579         else
4580                 if test xfail = xfailure; then
4581                         { { echo "$as_me:$LINENO: error: ORBit not installed or installation problem" >&5
4582 echo "$as_me: error: ORBit not installed or installation problem" >&2;}
4583    { (exit 1); exit 1; }; }
4584                 fi
4585         fi
4586
4587         echo "$as_me:$LINENO: checking for gnorba libraries" >&5
4588 echo $ECHO_N "checking for gnorba libraries... $ECHO_C" >&6
4589 if test "${gnome_cv_gnorba_found+set}" = set; then
4590   echo $ECHO_N "(cached) $ECHO_C" >&6
4591 else
4592
4593                 gnome_cv_gnorba_found=no
4594                 if test x$gnome_cv_orbit_found = xyes; then
4595                         GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
4596                         GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
4597                         if test -n "$GNORBA_LIBS"; then
4598                                 gnome_cv_gnorba_found=yes
4599                         fi
4600                 fi
4601
4602 fi
4603 echo "$as_me:$LINENO: result: $gnome_cv_gnorba_found" >&5
4604 echo "${ECHO_T}$gnome_cv_gnorba_found" >&6
4605
4606
4607 if test x$gnome_cv_gnorba_found = xyes; then
4608   HAVE_GNORBA_TRUE=
4609   HAVE_GNORBA_FALSE='#'
4610 else
4611   HAVE_GNORBA_TRUE='#'
4612   HAVE_GNORBA_FALSE=
4613 fi
4614         if test x$gnome_cv_orbit_found = xyes; then
4615
4616                 GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
4617                 GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
4618
4619
4620         else
4621                 if test xfail = xfailure; then
4622                         { { echo "$as_me:$LINENO: error: gnorba library not installed or installation problem" >&5
4623 echo "$as_me: error: gnorba library not installed or installation problem" >&2;}
4624    { (exit 1); exit 1; }; }
4625                 fi
4626         fi
4627
4628                 GNOME_LIBS="`$GNOME_CONFIG --libs-only-l gnome`"
4629                 GNOMEUI_LIBS="`$GNOME_CONFIG --libs-only-l gnomeui`"
4630                 GNOMEGNORBA_LIBS="`$GNOME_CONFIG --libs-only-l gnorba gnomeui`"
4631                 GTKXMHTML_LIBS="`$GNOME_CONFIG --libs-only-l gtkxmhtml`"
4632                 ZVT_LIBS="`$GNOME_CONFIG --libs-only-l zvt`"
4633                 GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui`"
4634                 GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui`"
4635
4636               else
4637                 echo "$as_me:$LINENO: result: no" >&5
4638 echo "${ECHO_T}no" >&6
4639                 no_gnome_config="yes"
4640               fi
4641             fi
4642
4643             if test x$exec_prefix = xNONE; then
4644                 if test x$prefix = xNONE; then
4645                     gnome_prefix=$ac_default_prefix/lib
4646                 else
4647                     gnome_prefix=$prefix/lib
4648                 fi
4649             else
4650                 gnome_prefix=`eval echo \`echo $libdir\``
4651             fi
4652
4653             if test "$no_gnome_config" = "yes"; then
4654               echo "$as_me:$LINENO: checking for gnomeConf.sh file in $gnome_prefix" >&5
4655 echo $ECHO_N "checking for gnomeConf.sh file in $gnome_prefix... $ECHO_C" >&6
4656               if test -f $gnome_prefix/gnomeConf.sh; then
4657                 echo "$as_me:$LINENO: result: found" >&5
4658 echo "${ECHO_T}found" >&6
4659                 echo "loading gnome configuration from" \
4660                      "$gnome_prefix/gnomeConf.sh"
4661                 . $gnome_prefix/gnomeConf.sh
4662
4663               else
4664                 echo "$as_me:$LINENO: result: not found" >&5
4665 echo "${ECHO_T}not found" >&6
4666                 if test xfail = xfail; then
4667                   { { echo "$as_me:$LINENO: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&5
4668 echo "$as_me: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&2;}
4669    { (exit 1); exit 1; }; }
4670                 fi
4671               fi
4672             fi
4673         fi
4674
4675         if test -n ""; then
4676           n=""
4677           for i in $n; do
4678             echo "$as_me:$LINENO: checking extra library \"$i\"" >&5
4679 echo $ECHO_N "checking extra library \"$i\"... $ECHO_C" >&6
4680             case $i in
4681               applets)
4682
4683                 GNOME_APPLETS_LIBS=`$GNOME_CONFIG --libs-only-l applets`
4684                 echo "$as_me:$LINENO: result: $GNOME_APPLETS_LIBS" >&5
4685 echo "${ECHO_T}$GNOME_APPLETS_LIBS" >&6;;
4686               docklets)
4687
4688                 GNOME_DOCKLETS_LIBS=`$GNOME_CONFIG --libs-only-l docklets`
4689                 echo "$as_me:$LINENO: result: $GNOME_DOCKLETS_LIBS" >&5
4690 echo "${ECHO_T}$GNOME_DOCKLETS_LIBS" >&6;;
4691               capplet)
4692
4693                 GNOME_CAPPLET_LIBS=`$GNOME_CONFIG --libs-only-l capplet`
4694                 echo "$as_me:$LINENO: result: $GNOME_CAPPLET_LIBS" >&5
4695 echo "${ECHO_T}$GNOME_CAPPLET_LIBS" >&6;;
4696               *)
4697                 echo "$as_me:$LINENO: result: unknown library" >&5
4698 echo "${ECHO_T}unknown library" >&6
4699             esac
4700             EXTRA_INCLUDEDIR=`$GNOME_CONFIG --cflags $i`
4701             GNOME_INCLUDEDIR="$GNOME_INCLUDEDIR $EXTRA_INCLUDEDIR"
4702           done
4703         fi
4704
4705
4706      GNOME_DIR=src/gnome-console
4707      gnome_version="Version 1.4"
4708   fi
4709 fi
4710
4711
4712
4713 # -------------------------------------------
4714 # wx-console (default off)
4715 # -------------------------------------------
4716 # Check whether --enable-wx-console or --disable-wx-console was given.
4717 if test "${enable_wx_console+set}" = set; then
4718   enableval="$enable_wx_console"
4719   if test x$enableval = xyes; then
4720     support_wx_console=yes
4721   fi
4722 fi;
4723
4724 WX_DIR=
4725 if test x$support_wx_console = xyes; then
4726   abc=`$WXCONFIG --cppflags`
4727   pkg=$?
4728   if test $pkg = 0; then
4729      WXCONS_CPPFLAGS=`$WXCONFIG --cppflags`
4730      WXCONS_LDFLAGS=`$WXCONFIG --libs`
4731
4732
4733      WX_DIR=src/wx-console
4734   else
4735      echo " "
4736      echo "wx-config program not found. wx-console disabled."
4737      echo " "
4738      support_wx_console=no
4739   fi
4740 fi
4741
4742
4743
4744 # -------------------------------------------
4745 # tray-monitor (default off)
4746 # -------------------------------------------
4747 # Check whether --enable-tray-monitor or --disable-tray-monitor was given.
4748 if test "${enable_tray_monitor+set}" = set; then
4749   enableval="$enable_tray_monitor"
4750   if test x$enableval = xyes; then
4751     support_tray_monitor=yes
4752   fi
4753 fi;
4754
4755 TRAY_MONITOR_DIR=
4756 if test x$support_tray_monitor = xyes; then
4757   abc=`$PKGCONFIG --exists gtk+-2.0`
4758   pkg=$?
4759   if test $pkg = 0; then
4760      TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
4761      TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
4762
4763
4764      TRAY_MONITOR_DIR=src/tray-monitor
4765   fi
4766 fi
4767
4768
4769 # -------------------------------------------
4770 # smartalloc (default off)
4771 # -------------------------------------------
4772 # Check whether --enable-smartalloc or --disable-smartalloc was given.
4773 if test "${enable_smartalloc+set}" = set; then
4774   enableval="$enable_smartalloc"
4775   if test x$enableval = xno; then
4776     support_smartalloc=no
4777   fi
4778 fi;
4779
4780 if test x$support_smartalloc = xyes; then
4781    cat >>confdefs.h <<\_ACEOF
4782 #define SMARTALLOC 1
4783 _ACEOF
4784
4785 fi
4786
4787 # -------------------------------------------
4788 # static-tools (default off)
4789 # -------------------------------------------
4790 # Check whether --enable-static-tools or --disable-static-tools was given.
4791 if test "${enable_static_tools+set}" = set; then
4792   enableval="$enable_static_tools"
4793   if test x$enableval = xyes; then
4794      support_static_tools=yes
4795    fi
4796 fi;
4797
4798 TTOOL_LDFLAGS=
4799 if test x$support_static_tools = xyes; then
4800    TTOOL_LDFLAGS="-static"
4801 fi
4802
4803
4804 # -------------------------------------------
4805 # static-fd    (default off)
4806 # -------------------------------------------
4807 # Check whether --enable-static-fd or --disable-static-fd was given.
4808 if test "${enable_static_fd+set}" = set; then
4809   enableval="$enable_static_fd"
4810   if test x$enableval = xyes; then
4811      support_static_fd=yes
4812    fi
4813 fi;
4814
4815 STATIC_FD=
4816 if test x$support_static_fd = xyes; then
4817    STATIC_FD="static-bacula-fd"
4818 fi
4819
4820
4821 # -------------------------------------------
4822 # static-sd    (default off)
4823 # -------------------------------------------
4824 # Check whether --enable-static-sd or --disable-static-sd was given.
4825 if test "${enable_static_sd+set}" = set; then
4826   enableval="$enable_static_sd"
4827   if test x$enableval = xyes; then
4828      support_static_sd=yes
4829    fi
4830 fi;
4831
4832 STATIC_SD=
4833 if test x$support_static_sd = xyes; then
4834    STATIC_SD="static-bacula-sd"
4835 fi
4836
4837
4838 # -------------------------------------------
4839 # static-dir   (default off)
4840 # -------------------------------------------
4841 # Check whether --enable-static-dir or --disable-static-dir was given.
4842 if test "${enable_static_dir+set}" = set; then
4843   enableval="$enable_static_dir"
4844   if test x$enableval = xyes; then
4845      support_static_dir=yes
4846    fi
4847 fi;
4848
4849 STATIC_DIR=
4850 if test x$support_static_dir = xyes; then
4851    STATIC_DIR="static-bacula-dir"
4852 fi
4853
4854
4855 # -------------------------------------------
4856 # static-cons  (default off)
4857 # -------------------------------------------
4858 # Check whether --enable-static-cons or --disable-static-cons was given.
4859 if test "${enable_static_cons+set}" = set; then
4860   enableval="$enable_static_cons"
4861   if test x$enableval = xyes; then
4862      support_static_cons=yes
4863    fi
4864 fi;
4865
4866 STATIC_CONS=
4867 STATIC_GNOME_CONS=
4868 STATIC_WX_CONS=
4869 if test x$support_static_cons = xyes; then
4870    STATIC_CONS="static-bconsole"
4871    STATIC_GNOME_CONS="static-gnome-console"
4872    STATIC_WX_CONS="static-wx-console"
4873 fi
4874
4875
4876
4877
4878 # -------------------------------------------
4879 # client_only  (default off)
4880 # -------------------------------------------
4881 # Check whether --enable-client-only or --disable-client-only was given.
4882 if test "${enable_client_only+set}" = set; then
4883   enableval="$enable_client_only"
4884   if test x$enableval = xyes; then
4885      build_client_only=yes
4886     db_name=None
4887     DB_NAME=none
4888    fi
4889 fi;
4890 if test x$build_client_only = xno; then
4891    ALL_DIRS="subdirs"
4892 else
4893    ALL_DIRS=""
4894 fi
4895
4896
4897 # ---------------------------------------------------
4898 # Check for conio (Bacula readline substitute)(
4899 # ---------------------------------------------------
4900 # this allows you to turn it completely off
4901 # Check whether --enable-conio or --disable-conio was given.
4902 if test "${enable_conio+set}" = set; then
4903   enableval="$enable_conio"
4904   if test x$enableval = xno; then
4905     support_conio=no
4906   fi
4907 fi;
4908
4909 got_conio="no"
4910 if test x$support_conio = xyes; then
4911    echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4912 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4913 if test "${ac_cv_header_stdc+set}" = set; then
4914   echo $ECHO_N "(cached) $ECHO_C" >&6
4915 else
4916   cat >conftest.$ac_ext <<_ACEOF
4917 #line $LINENO "configure"
4918 /* confdefs.h.  */
4919 _ACEOF
4920 cat confdefs.h >>conftest.$ac_ext
4921 cat >>conftest.$ac_ext <<_ACEOF
4922 /* end confdefs.h.  */
4923 #include <stdlib.h>
4924 #include <stdarg.h>
4925 #include <string.h>
4926 #include <float.h>
4927
4928 int
4929 main ()
4930 {
4931
4932   ;
4933   return 0;
4934 }
4935 _ACEOF
4936 rm -f conftest.$ac_objext
4937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4938   (eval $ac_compile) 2>&5
4939   ac_status=$?
4940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4941   (exit $ac_status); } &&
4942          { ac_try='test -s conftest.$ac_objext'
4943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4944   (eval $ac_try) 2>&5
4945   ac_status=$?
4946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4947   (exit $ac_status); }; }; then
4948   ac_cv_header_stdc=yes
4949 else
4950   echo "$as_me: failed program was:" >&5
4951 sed 's/^/| /' conftest.$ac_ext >&5
4952
4953 ac_cv_header_stdc=no
4954 fi
4955 rm -f conftest.$ac_objext conftest.$ac_ext
4956
4957 if test $ac_cv_header_stdc = yes; then
4958   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4959   cat >conftest.$ac_ext <<_ACEOF
4960 #line $LINENO "configure"
4961 /* confdefs.h.  */
4962 _ACEOF
4963 cat confdefs.h >>conftest.$ac_ext
4964 cat >>conftest.$ac_ext <<_ACEOF
4965 /* end confdefs.h.  */
4966 #include <string.h>
4967
4968 _ACEOF
4969 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4970   $EGREP "memchr" >/dev/null 2>&1; then
4971   :
4972 else
4973   ac_cv_header_stdc=no
4974 fi
4975 rm -f conftest*
4976
4977 fi
4978
4979 if test $ac_cv_header_stdc = yes; then
4980   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4981   cat >conftest.$ac_ext <<_ACEOF
4982 #line $LINENO "configure"
4983 /* confdefs.h.  */
4984 _ACEOF
4985 cat confdefs.h >>conftest.$ac_ext
4986 cat >>conftest.$ac_ext <<_ACEOF
4987 /* end confdefs.h.  */
4988 #include <stdlib.h>
4989
4990 _ACEOF
4991 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4992   $EGREP "free" >/dev/null 2>&1; then
4993   :
4994 else
4995   ac_cv_header_stdc=no
4996 fi
4997 rm -f conftest*
4998
4999 fi
5000
5001 if test $ac_cv_header_stdc = yes; then
5002   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5003   if test "$cross_compiling" = yes; then
5004   :
5005 else
5006   cat >conftest.$ac_ext <<_ACEOF
5007 #line $LINENO "configure"
5008 /* confdefs.h.  */
5009 _ACEOF
5010 cat confdefs.h >>conftest.$ac_ext
5011 cat >>conftest.$ac_ext <<_ACEOF
5012 /* end confdefs.h.  */
5013 #include <ctype.h>
5014 #if ((' ' & 0x0FF) == 0x020)
5015 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5016 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5017 #else
5018 # define ISLOWER(c) \
5019                    (('a' <= (c) && (c) <= 'i') \
5020                      || ('j' <= (c) && (c) <= 'r') \
5021                      || ('s' <= (c) && (c) <= 'z'))
5022 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5023 #endif
5024
5025 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5026 int
5027 main ()
5028 {
5029   int i;
5030   for (i = 0; i < 256; i++)
5031     if (XOR (islower (i), ISLOWER (i))
5032         || toupper (i) != TOUPPER (i))
5033       exit(2);
5034   exit (0);
5035 }
5036 _ACEOF
5037 rm -f conftest$ac_exeext
5038 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5039   (eval $ac_link) 2>&5
5040   ac_status=$?
5041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5042   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5043   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5044   (eval $ac_try) 2>&5
5045   ac_status=$?
5046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5047   (exit $ac_status); }; }; then
5048   :
5049 else
5050   echo "$as_me: program exited with status $ac_status" >&5
5051 echo "$as_me: failed program was:" >&5
5052 sed 's/^/| /' conftest.$ac_ext >&5
5053
5054 ( exit $ac_status )
5055 ac_cv_header_stdc=no
5056 fi
5057 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5058 fi
5059 fi
5060 fi
5061 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5062 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5063 if test $ac_cv_header_stdc = yes; then
5064
5065 cat >>confdefs.h <<\_ACEOF
5066 #define STDC_HEADERS 1
5067 _ACEOF
5068
5069 fi
5070
5071 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5082                   inttypes.h stdint.h unistd.h
5083 do
5084 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5085 echo "$as_me:$LINENO: checking for $ac_header" >&5
5086 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5087 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5088   echo $ECHO_N "(cached) $ECHO_C" >&6
5089 else
5090   cat >conftest.$ac_ext <<_ACEOF
5091 #line $LINENO "configure"
5092 /* confdefs.h.  */
5093 _ACEOF
5094 cat confdefs.h >>conftest.$ac_ext
5095 cat >>conftest.$ac_ext <<_ACEOF
5096 /* end confdefs.h.  */
5097 $ac_includes_default
5098
5099 #include <$ac_header>
5100 _ACEOF
5101 rm -f conftest.$ac_objext
5102 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5103   (eval $ac_compile) 2>&5
5104   ac_status=$?
5105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5106   (exit $ac_status); } &&
5107          { ac_try='test -s conftest.$ac_objext'
5108   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5109   (eval $ac_try) 2>&5
5110   ac_status=$?
5111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5112   (exit $ac_status); }; }; then
5113   eval "$as_ac_Header=yes"
5114 else
5115   echo "$as_me: failed program was:" >&5
5116 sed 's/^/| /' conftest.$ac_ext >&5
5117
5118 eval "$as_ac_Header=no"
5119 fi
5120 rm -f conftest.$ac_objext conftest.$ac_ext
5121 fi
5122 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5123 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5124 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5125   cat >>confdefs.h <<_ACEOF
5126 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5127 _ACEOF
5128
5129 fi
5130
5131 done
5132
5133
5134 if test "${ac_cv_header_termcap_h+set}" = set; then
5135   echo "$as_me:$LINENO: checking for termcap.h" >&5
5136 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
5137 if test "${ac_cv_header_termcap_h+set}" = set; then
5138   echo $ECHO_N "(cached) $ECHO_C" >&6
5139 fi
5140 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
5141 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
5142 else
5143   # Is the header compilable?
5144 echo "$as_me:$LINENO: checking termcap.h usability" >&5
5145 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6
5146 cat >conftest.$ac_ext <<_ACEOF
5147 #line $LINENO "configure"
5148 /* confdefs.h.  */
5149 _ACEOF
5150 cat confdefs.h >>conftest.$ac_ext
5151 cat >>conftest.$ac_ext <<_ACEOF
5152 /* end confdefs.h.  */
5153 $ac_includes_default
5154 #include <termcap.h>
5155 _ACEOF
5156 rm -f conftest.$ac_objext
5157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5158   (eval $ac_compile) 2>&5
5159   ac_status=$?
5160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5161   (exit $ac_status); } &&
5162          { ac_try='test -s conftest.$ac_objext'
5163   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5164   (eval $ac_try) 2>&5
5165   ac_status=$?
5166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5167   (exit $ac_status); }; }; then
5168   ac_header_compiler=yes
5169 else
5170   echo "$as_me: failed program was:" >&5
5171 sed 's/^/| /' conftest.$ac_ext >&5
5172
5173 ac_header_compiler=no
5174 fi
5175 rm -f conftest.$ac_objext conftest.$ac_ext
5176 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5177 echo "${ECHO_T}$ac_header_compiler" >&6
5178
5179 # Is the header present?
5180 echo "$as_me:$LINENO: checking termcap.h presence" >&5
5181 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6
5182 cat >conftest.$ac_ext <<_ACEOF
5183 #line $LINENO "configure"
5184 /* confdefs.h.  */
5185 _ACEOF
5186 cat confdefs.h >>conftest.$ac_ext
5187 cat >>conftest.$ac_ext <<_ACEOF
5188 /* end confdefs.h.  */
5189 #include <termcap.h>
5190 _ACEOF
5191 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5192   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5193   ac_status=$?
5194   grep -v '^ *+' conftest.er1 >conftest.err
5195   rm -f conftest.er1
5196   cat conftest.err >&5
5197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5198   (exit $ac_status); } >/dev/null; then
5199   if test -s conftest.err; then
5200     ac_cpp_err=$ac_c_preproc_warn_flag
5201   else
5202     ac_cpp_err=
5203   fi
5204 else
5205   ac_cpp_err=yes
5206 fi
5207 if test -z "$ac_cpp_err"; then
5208   ac_header_preproc=yes
5209 else
5210   echo "$as_me: failed program was:" >&5
5211 sed 's/^/| /' conftest.$ac_ext >&5
5212
5213   ac_header_preproc=no
5214 fi
5215 rm -f conftest.err conftest.$ac_ext
5216 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5217 echo "${ECHO_T}$ac_header_preproc" >&6
5218
5219 # So?  What about this header?
5220 case $ac_header_compiler:$ac_header_preproc in
5221   yes:no )
5222     { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
5223 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5224     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
5225 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
5226     (
5227       cat <<\_ASBOX
5228 ## ------------------------------------ ##
5229 ## Report this to bug-autoconf@gnu.org. ##
5230 ## ------------------------------------ ##
5231 _ASBOX
5232     ) |
5233       sed "s/^/$as_me: WARNING:     /" >&2
5234     ;;
5235   no:yes )
5236     { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
5237 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
5238     { echo "$as_me:$LINENO: WARNING: termcap.h: check for missing prerequisite headers?" >&5
5239 echo "$as_me: WARNING: termcap.h: check for missing prerequisite headers?" >&2;}
5240     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
5241 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
5242     (
5243       cat <<\_ASBOX
5244 ## ------------------------------------ ##
5245 ## Report this to bug-autoconf@gnu.org. ##
5246 ## ------------------------------------ ##
5247 _ASBOX
5248     ) |
5249       sed "s/^/$as_me: WARNING:     /" >&2
5250     ;;
5251 esac
5252 echo "$as_me:$LINENO: checking for termcap.h" >&5
5253 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
5254 if test "${ac_cv_header_termcap_h+set}" = set; then
5255   echo $ECHO_N "(cached) $ECHO_C" >&6
5256 else
5257   ac_cv_header_termcap_h=$ac_header_preproc
5258 fi
5259 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
5260 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
5261
5262 fi
5263 if test $ac_cv_header_termcap_h = yes; then
5264    echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
5265 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
5266 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
5267   echo $ECHO_N "(cached) $ECHO_C" >&6
5268 else
5269   ac_check_lib_save_LIBS=$LIBS
5270 LIBS="-ltermcap  $LIBS"
5271 cat >conftest.$ac_ext <<_ACEOF
5272 #line $LINENO "configure"
5273 /* confdefs.h.  */
5274 _ACEOF
5275 cat confdefs.h >>conftest.$ac_ext
5276 cat >>conftest.$ac_ext <<_ACEOF
5277 /* end confdefs.h.  */
5278
5279 /* Override any gcc2 internal prototype to avoid an error.  */
5280 #ifdef __cplusplus
5281 extern "C"
5282 #endif
5283 /* We use char because int might match the return type of a gcc2
5284    builtin and then its argument prototype would still apply.  */
5285 char tgetent ();
5286 int
5287 main ()
5288 {
5289 tgetent ();
5290   ;
5291   return 0;
5292 }
5293 _ACEOF
5294 rm -f conftest.$ac_objext conftest$ac_exeext
5295 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5296   (eval $ac_link) 2>&5
5297   ac_status=$?
5298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5299   (exit $ac_status); } &&
5300          { ac_try='test -s conftest$ac_exeext'
5301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5302   (eval $ac_try) 2>&5
5303   ac_status=$?
5304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5305   (exit $ac_status); }; }; then
5306   ac_cv_lib_termcap_tgetent=yes
5307 else
5308   echo "$as_me: failed program was:" >&5
5309 sed 's/^/| /' conftest.$ac_ext >&5
5310
5311 ac_cv_lib_termcap_tgetent=no
5312 fi
5313 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5314 LIBS=$ac_check_lib_save_LIBS
5315 fi
5316 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
5317 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
5318 if test $ac_cv_lib_termcap_tgetent = yes; then
5319    CONS_LIBS="-ltermcap"
5320          CONS_OBJ="conio.o"
5321          CONS_SRC="conio.c"
5322          got_conio="yes"
5323          support_readline=no
5324
5325 cat >>confdefs.h <<\_ACEOF
5326 #define HAVE_CONIO 1
5327 _ACEOF
5328
5329
5330 else
5331    echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
5332 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6
5333 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
5334   echo $ECHO_N "(cached) $ECHO_C" >&6
5335 else
5336   ac_check_lib_save_LIBS=$LIBS
5337 LIBS="-lncurses  $LIBS"
5338 cat >conftest.$ac_ext <<_ACEOF
5339 #line $LINENO "configure"
5340 /* confdefs.h.  */
5341 _ACEOF
5342 cat confdefs.h >>conftest.$ac_ext
5343 cat >>conftest.$ac_ext <<_ACEOF
5344 /* end confdefs.h.  */
5345
5346 /* Override any gcc2 internal prototype to avoid an error.  */
5347 #ifdef __cplusplus
5348 extern "C"
5349 #endif
5350 /* We use char because int might match the return type of a gcc2
5351    builtin and then its argument prototype would still apply.  */
5352 char tgetent ();
5353 int
5354 main ()
5355 {
5356 tgetent ();
5357   ;
5358   return 0;
5359 }
5360 _ACEOF
5361 rm -f conftest.$ac_objext conftest$ac_exeext
5362 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5363   (eval $ac_link) 2>&5
5364   ac_status=$?
5365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5366   (exit $ac_status); } &&
5367          { ac_try='test -s conftest$ac_exeext'
5368   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5369   (eval $ac_try) 2>&5
5370   ac_status=$?
5371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5372   (exit $ac_status); }; }; then
5373   ac_cv_lib_ncurses_tgetent=yes
5374 else
5375   echo "$as_me: failed program was:" >&5
5376 sed 's/^/| /' conftest.$ac_ext >&5
5377
5378 ac_cv_lib_ncurses_tgetent=no
5379 fi
5380 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5381 LIBS=$ac_check_lib_save_LIBS
5382 fi
5383 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
5384 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6
5385 if test $ac_cv_lib_ncurses_tgetent = yes; then
5386    CONS_LIBS="-lncurses"
5387            CONS_OBJ="conio.o"
5388            CONS_SRC="conio.c"
5389            got_conio="yes"
5390            support_readline=no
5391
5392 cat >>confdefs.h <<\_ACEOF
5393 #define HAVE_CONIO 1
5394 _ACEOF
5395
5396
5397 else
5398    echo " "; echo "Neither termcap nor ncurses library found. CONIO turned off ..."; echo " "
5399 fi
5400
5401
5402 fi
5403
5404
5405 else
5406   echo " "; echo "termcap.h not found. CONIO turned off ..."; echo " "
5407 fi
5408
5409
5410 fi
5411
5412
5413 # ---------------------------------------------------
5414 # Check for readline support/directory (default off)
5415 # ---------------------------------------------------
5416 # this allows you to turn it completely off
5417 # Check whether --enable-readline or --disable-readline was given.
5418 if test "${enable_readline+set}" = set; then
5419   enableval="$enable_readline"
5420   if test x$enableval = xno; then
5421     support_readline=no
5422   fi
5423 fi;
5424
5425 got_readline="no"
5426 READLINE_SRC=
5427 if test x$support_readline = xyes; then
5428
5429 # Check whether --with-readline or --without-readline was given.
5430 if test "${with_readline+set}" = set; then
5431   withval="$with_readline"
5432
5433         case "$with_readline" in
5434         no) : ;;
5435         yes|*)
5436           if test "$with_readline" != "yes"; then
5437             CONS_INC="-I${with_readline}"
5438             CONS_LDFLAGS="-L$with_readline"
5439           else
5440              with_readline="/usr/include/readline"
5441           fi
5442           as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
5443 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5444   echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
5445 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
5446 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5447   echo $ECHO_N "(cached) $ECHO_C" >&6
5448 fi
5449 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5450 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5451 else
5452   # Is the header compilable?
5453 echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
5454 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6
5455 cat >conftest.$ac_ext <<_ACEOF
5456 #line $LINENO "configure"
5457 /* confdefs.h.  */
5458 _ACEOF
5459 cat confdefs.h >>conftest.$ac_ext
5460 cat >>conftest.$ac_ext <<_ACEOF
5461 /* end confdefs.h.  */
5462 $ac_includes_default
5463 #include <${with_readline}/readline.h>
5464 _ACEOF
5465 rm -f conftest.$ac_objext
5466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5467   (eval $ac_compile) 2>&5
5468   ac_status=$?
5469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5470   (exit $ac_status); } &&
5471          { ac_try='test -s conftest.$ac_objext'
5472   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5473   (eval $ac_try) 2>&5
5474   ac_status=$?
5475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5476   (exit $ac_status); }; }; then
5477   ac_header_compiler=yes
5478 else
5479   echo "$as_me: failed program was:" >&5
5480 sed 's/^/| /' conftest.$ac_ext >&5
5481
5482 ac_header_compiler=no
5483 fi
5484 rm -f conftest.$ac_objext conftest.$ac_ext
5485 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5486 echo "${ECHO_T}$ac_header_compiler" >&6
5487
5488 # Is the header present?
5489 echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
5490 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6
5491 cat >conftest.$ac_ext <<_ACEOF
5492 #line $LINENO "configure"
5493 /* confdefs.h.  */
5494 _ACEOF
5495 cat confdefs.h >>conftest.$ac_ext
5496 cat >>conftest.$ac_ext <<_ACEOF
5497 /* end confdefs.h.  */
5498 #include <${with_readline}/readline.h>
5499 _ACEOF
5500 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5501   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5502   ac_status=$?
5503   grep -v '^ *+' conftest.er1 >conftest.err
5504   rm -f conftest.er1
5505   cat conftest.err >&5
5506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5507   (exit $ac_status); } >/dev/null; then
5508   if test -s conftest.err; then
5509     ac_cpp_err=$ac_c_preproc_warn_flag
5510   else
5511     ac_cpp_err=
5512   fi
5513 else
5514   ac_cpp_err=yes
5515 fi
5516 if test -z "$ac_cpp_err"; then
5517   ac_header_preproc=yes
5518 else
5519   echo "$as_me: failed program was:" >&5
5520 sed 's/^/| /' conftest.$ac_ext >&5
5521
5522   ac_header_preproc=no
5523 fi
5524 rm -f conftest.err conftest.$ac_ext
5525 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5526 echo "${ECHO_T}$ac_header_preproc" >&6
5527
5528 # So?  What about this header?
5529 case $ac_header_compiler:$ac_header_preproc in
5530   yes:no )
5531     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5532 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5533     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
5534 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
5535     (
5536       cat <<\_ASBOX
5537 ## ------------------------------------ ##
5538 ## Report this to bug-autoconf@gnu.org. ##
5539 ## ------------------------------------ ##
5540 _ASBOX
5541     ) |
5542       sed "s/^/$as_me: WARNING:     /" >&2
5543     ;;
5544   no:yes )
5545     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
5546 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
5547     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&5
5548 echo "$as_me: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&2;}
5549     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
5550 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
5551     (
5552       cat <<\_ASBOX
5553 ## ------------------------------------ ##
5554 ## Report this to bug-autoconf@gnu.org. ##
5555 ## ------------------------------------ ##
5556 _ASBOX
5557     ) |
5558       sed "s/^/$as_me: WARNING:     /" >&2
5559     ;;
5560 esac
5561 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
5562 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
5563 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5564   echo $ECHO_N "(cached) $ECHO_C" >&6
5565 else
5566   eval "$as_ac_Header=$ac_header_preproc"
5567 fi
5568 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5569 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5570
5571 fi
5572 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5573    cat >>confdefs.h <<\_ACEOF
5574 #define HAVE_READLINE 1
5575 _ACEOF
5576
5577                CONS_LIBS="-lreadline -ltermcap"
5578                got_readline="yes"
5579
5580 else
5581    echo " "
5582                echo "readline.h not found. readline turned off ..."
5583                echo " "
5584
5585
5586 fi
5587
5588
5589           ;;
5590         esac
5591
5592 else
5593
5594        # check for standard readline library
5595        if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5596   echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
5597 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
5598 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5599   echo $ECHO_N "(cached) $ECHO_C" >&6
5600 fi
5601 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
5602 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
5603 else
5604   # Is the header compilable?
5605 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
5606 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6
5607 cat >conftest.$ac_ext <<_ACEOF
5608 #line $LINENO "configure"
5609 /* confdefs.h.  */
5610 _ACEOF
5611 cat confdefs.h >>conftest.$ac_ext
5612 cat >>conftest.$ac_ext <<_ACEOF
5613 /* end confdefs.h.  */
5614 $ac_includes_default
5615 #include </usr/include/readline/readline.h>
5616 _ACEOF
5617 rm -f conftest.$ac_objext
5618 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5619   (eval $ac_compile) 2>&5
5620   ac_status=$?
5621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5622   (exit $ac_status); } &&
5623          { ac_try='test -s conftest.$ac_objext'
5624   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5625   (eval $ac_try) 2>&5
5626   ac_status=$?
5627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5628   (exit $ac_status); }; }; then
5629   ac_header_compiler=yes
5630 else
5631   echo "$as_me: failed program was:" >&5
5632 sed 's/^/| /' conftest.$ac_ext >&5
5633
5634 ac_header_compiler=no
5635 fi
5636 rm -f conftest.$ac_objext conftest.$ac_ext
5637 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5638 echo "${ECHO_T}$ac_header_compiler" >&6
5639
5640 # Is the header present?
5641 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
5642 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6
5643 cat >conftest.$ac_ext <<_ACEOF
5644 #line $LINENO "configure"
5645 /* confdefs.h.  */
5646 _ACEOF
5647 cat confdefs.h >>conftest.$ac_ext
5648 cat >>conftest.$ac_ext <<_ACEOF
5649 /* end confdefs.h.  */
5650 #include </usr/include/readline/readline.h>
5651 _ACEOF
5652 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5653   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5654   ac_status=$?
5655   grep -v '^ *+' conftest.er1 >conftest.err
5656   rm -f conftest.er1
5657   cat conftest.err >&5
5658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5659   (exit $ac_status); } >/dev/null; then
5660   if test -s conftest.err; then
5661     ac_cpp_err=$ac_c_preproc_warn_flag
5662   else
5663     ac_cpp_err=
5664   fi
5665 else
5666   ac_cpp_err=yes
5667 fi
5668 if test -z "$ac_cpp_err"; then
5669   ac_header_preproc=yes
5670 else
5671   echo "$as_me: failed program was:" >&5
5672 sed 's/^/| /' conftest.$ac_ext >&5
5673
5674   ac_header_preproc=no
5675 fi
5676 rm -f conftest.err conftest.$ac_ext
5677 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5678 echo "${ECHO_T}$ac_header_preproc" >&6
5679
5680 # So?  What about this header?
5681 case $ac_header_compiler:$ac_header_preproc in
5682   yes:no )
5683     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5684 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5685     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
5686 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5687     (
5688       cat <<\_ASBOX
5689 ## ------------------------------------ ##
5690 ## Report this to bug-autoconf@gnu.org. ##
5691 ## ------------------------------------ ##
5692 _ASBOX
5693     ) |
5694       sed "s/^/$as_me: WARNING:     /" >&2
5695     ;;
5696   no:yes )
5697     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
5698 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
5699     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&5
5700 echo "$as_me: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&2;}
5701     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
5702 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5703     (
5704       cat <<\_ASBOX
5705 ## ------------------------------------ ##
5706 ## Report this to bug-autoconf@gnu.org. ##
5707 ## ------------------------------------ ##
5708 _ASBOX
5709     ) |
5710       sed "s/^/$as_me: WARNING:     /" >&2
5711     ;;
5712 esac
5713 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
5714 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
5715 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5716   echo $ECHO_N "(cached) $ECHO_C" >&6
5717 else
5718   ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
5719 fi
5720 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
5721 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
5722
5723 fi
5724 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
5725    cat >>confdefs.h <<\_ACEOF
5726 #define HAVE_READLINE 1
5727 _ACEOF
5728
5729            got_readline="yes"
5730            CONS_INC="-I/usr/include/readline"
5731            CONS_LIBS="-lreadline -ltermcap"
5732
5733 else
5734
5735            # Did not find standard library, so try Bacula's default
5736             as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
5737 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5738   echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
5739 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
5740 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5741   echo $ECHO_N "(cached) $ECHO_C" >&6
5742 fi
5743 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5744 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5745 else
5746   # Is the header compilable?
5747 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
5748 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6
5749 cat >conftest.$ac_ext <<_ACEOF
5750 #line $LINENO "configure"
5751 /* confdefs.h.  */
5752 _ACEOF
5753 cat confdefs.h >>conftest.$ac_ext
5754 cat >>conftest.$ac_ext <<_ACEOF
5755 /* end confdefs.h.  */
5756 $ac_includes_default
5757 #include <${TOP_DIR}/depkgs/readline/readline.h>
5758 _ACEOF
5759 rm -f conftest.$ac_objext
5760 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5761   (eval $ac_compile) 2>&5
5762   ac_status=$?
5763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5764   (exit $ac_status); } &&
5765          { ac_try='test -s conftest.$ac_objext'
5766   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5767   (eval $ac_try) 2>&5
5768   ac_status=$?
5769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5770   (exit $ac_status); }; }; then
5771   ac_header_compiler=yes
5772 else
5773   echo "$as_me: failed program was:" >&5
5774 sed 's/^/| /' conftest.$ac_ext >&5
5775
5776 ac_header_compiler=no
5777 fi
5778 rm -f conftest.$ac_objext conftest.$ac_ext
5779 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5780 echo "${ECHO_T}$ac_header_compiler" >&6
5781
5782 # Is the header present?
5783 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
5784 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6
5785 cat >conftest.$ac_ext <<_ACEOF
5786 #line $LINENO "configure"
5787 /* confdefs.h.  */
5788 _ACEOF
5789 cat confdefs.h >>conftest.$ac_ext
5790 cat >>conftest.$ac_ext <<_ACEOF
5791 /* end confdefs.h.  */
5792 #include <${TOP_DIR}/depkgs/readline/readline.h>
5793 _ACEOF
5794 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5795   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5796   ac_status=$?
5797   grep -v '^ *+' conftest.er1 >conftest.err
5798   rm -f conftest.er1
5799   cat conftest.err >&5
5800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5801   (exit $ac_status); } >/dev/null; then
5802   if test -s conftest.err; then
5803     ac_cpp_err=$ac_c_preproc_warn_flag
5804   else
5805     ac_cpp_err=
5806   fi
5807 else
5808   ac_cpp_err=yes
5809 fi
5810 if test -z "$ac_cpp_err"; then
5811   ac_header_preproc=yes
5812 else
5813   echo "$as_me: failed program was:" >&5
5814 sed 's/^/| /' conftest.$ac_ext >&5
5815
5816   ac_header_preproc=no
5817 fi
5818 rm -f conftest.err conftest.$ac_ext
5819 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5820 echo "${ECHO_T}$ac_header_preproc" >&6
5821
5822 # So?  What about this header?
5823 case $ac_header_compiler:$ac_header_preproc in
5824   yes:no )
5825     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5826 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5827     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
5828 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5829     (
5830       cat <<\_ASBOX
5831 ## ------------------------------------ ##
5832 ## Report this to bug-autoconf@gnu.org. ##
5833 ## ------------------------------------ ##
5834 _ASBOX
5835     ) |
5836       sed "s/^/$as_me: WARNING:     /" >&2
5837     ;;
5838   no:yes )
5839     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
5840 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
5841     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&5
5842 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&2;}
5843     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
5844 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5845     (
5846       cat <<\_ASBOX
5847 ## ------------------------------------ ##
5848 ## Report this to bug-autoconf@gnu.org. ##
5849 ## ------------------------------------ ##
5850 _ASBOX
5851     ) |
5852       sed "s/^/$as_me: WARNING:     /" >&2
5853     ;;
5854 esac
5855 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
5856 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
5857 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5858   echo $ECHO_N "(cached) $ECHO_C" >&6
5859 else
5860   eval "$as_ac_Header=$ac_header_preproc"
5861 fi
5862 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5863 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5864
5865 fi
5866 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5867    cat >>confdefs.h <<\_ACEOF
5868 #define HAVE_READLINE 1
5869 _ACEOF
5870
5871                  got_readline="yes"
5872                  CONS_INC="-I${TOP_DIR}/depkgs/readline"
5873                  CONS_LIBS="-lreadline -lhistory -ltermcap"
5874                  CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
5875                  PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
5876
5877 else
5878    echo " "
5879                 echo "readline.h not found. readline turned off ..."
5880                 echo " "
5881
5882
5883 fi
5884
5885
5886
5887
5888 fi
5889
5890
5891
5892
5893 fi;
5894 fi
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905 # Minimal stuff for readline Makefile configuration
5906 MAKE_SHELL=/bin/sh
5907
5908 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
5909 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
5910 if test "${ac_cv_header_stat_broken+set}" = set; then
5911   echo $ECHO_N "(cached) $ECHO_C" >&6
5912 else
5913   cat >conftest.$ac_ext <<_ACEOF
5914 #line $LINENO "configure"
5915 /* confdefs.h.  */
5916 _ACEOF
5917 cat confdefs.h >>conftest.$ac_ext
5918 cat >>conftest.$ac_ext <<_ACEOF
5919 /* end confdefs.h.  */
5920 #include <sys/types.h>
5921 #include <sys/stat.h>
5922
5923 #if defined(S_ISBLK) && defined(S_IFDIR)
5924 # if S_ISBLK (S_IFDIR)
5925 You lose.
5926 # endif
5927 #endif
5928
5929 #if defined(S_ISBLK) && defined(S_IFCHR)
5930 # if S_ISBLK (S_IFCHR)
5931 You lose.
5932 # endif
5933 #endif
5934
5935 #if defined(S_ISLNK) && defined(S_IFREG)
5936 # if S_ISLNK (S_IFREG)
5937 You lose.
5938 # endif
5939 #endif
5940
5941 #if defined(S_ISSOCK) && defined(S_IFREG)
5942 # if S_ISSOCK (S_IFREG)
5943 You lose.
5944 # endif
5945 #endif
5946
5947 _ACEOF
5948 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5949   $EGREP "You lose" >/dev/null 2>&1; then
5950   ac_cv_header_stat_broken=yes
5951 else
5952   ac_cv_header_stat_broken=no
5953 fi
5954 rm -f conftest*
5955
5956 fi
5957 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
5958 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
5959 if test $ac_cv_header_stat_broken = yes; then
5960
5961 cat >>confdefs.h <<\_ACEOF
5962 #define STAT_MACROS_BROKEN 1
5963 _ACEOF
5964
5965 fi
5966
5967
5968
5969
5970
5971
5972 ac_header_dirent=no
5973 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5974   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5975 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5976 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
5977 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5978   echo $ECHO_N "(cached) $ECHO_C" >&6
5979 else
5980   cat >conftest.$ac_ext <<_ACEOF
5981 #line $LINENO "configure"
5982 /* confdefs.h.  */
5983 _ACEOF
5984 cat confdefs.h >>conftest.$ac_ext
5985 cat >>conftest.$ac_ext <<_ACEOF
5986 /* end confdefs.h.  */
5987 #include <sys/types.h>
5988 #include <$ac_hdr>
5989
5990 int
5991 main ()
5992 {
5993 if ((DIR *) 0)
5994 return 0;
5995   ;
5996   return 0;
5997 }
5998 _ACEOF
5999 rm -f conftest.$ac_objext
6000 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6001   (eval $ac_compile) 2>&5
6002   ac_status=$?
6003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6004   (exit $ac_status); } &&
6005          { ac_try='test -s conftest.$ac_objext'
6006   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6007   (eval $ac_try) 2>&5
6008   ac_status=$?
6009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6010   (exit $ac_status); }; }; then
6011   eval "$as_ac_Header=yes"
6012 else
6013   echo "$as_me: failed program was:" >&5
6014 sed 's/^/| /' conftest.$ac_ext >&5
6015
6016 eval "$as_ac_Header=no"
6017 fi
6018 rm -f conftest.$ac_objext conftest.$ac_ext
6019 fi
6020 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6021 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6022 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6023   cat >>confdefs.h <<_ACEOF
6024 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6025 _ACEOF
6026
6027 ac_header_dirent=$ac_hdr; break
6028 fi
6029
6030 done
6031 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6032 if test $ac_header_dirent = dirent.h; then
6033   echo "$as_me:$LINENO: checking for library containing opendir" >&5
6034 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6035 if test "${ac_cv_search_opendir+set}" = set; then
6036   echo $ECHO_N "(cached) $ECHO_C" >&6
6037 else
6038   ac_func_search_save_LIBS=$LIBS
6039 ac_cv_search_opendir=no
6040 cat >conftest.$ac_ext <<_ACEOF
6041 #line $LINENO "configure"
6042 /* confdefs.h.  */
6043 _ACEOF
6044 cat confdefs.h >>conftest.$ac_ext
6045 cat >>conftest.$ac_ext <<_ACEOF
6046 /* end confdefs.h.  */
6047
6048 /* Override any gcc2 internal prototype to avoid an error.  */
6049 #ifdef __cplusplus
6050 extern "C"
6051 #endif
6052 /* We use char because int might match the return type of a gcc2
6053    builtin and then its argument prototype would still apply.  */
6054 char opendir ();
6055 int
6056 main ()
6057 {
6058 opendir ();
6059   ;
6060   return 0;
6061 }
6062 _ACEOF
6063 rm -f conftest.$ac_objext conftest$ac_exeext
6064 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6065   (eval $ac_link) 2>&5
6066   ac_status=$?
6067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6068   (exit $ac_status); } &&
6069          { ac_try='test -s conftest$ac_exeext'
6070   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6071   (eval $ac_try) 2>&5
6072   ac_status=$?
6073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6074   (exit $ac_status); }; }; then
6075   ac_cv_search_opendir="none required"
6076 else
6077   echo "$as_me: failed program was:" >&5
6078 sed 's/^/| /' conftest.$ac_ext >&5
6079
6080 fi
6081 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6082 if test "$ac_cv_search_opendir" = no; then
6083   for ac_lib in dir; do
6084     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6085     cat >conftest.$ac_ext <<_ACEOF
6086 #line $LINENO "configure"
6087 /* confdefs.h.  */
6088 _ACEOF
6089 cat confdefs.h >>conftest.$ac_ext
6090 cat >>conftest.$ac_ext <<_ACEOF
6091 /* end confdefs.h.  */
6092
6093 /* Override any gcc2 internal prototype to avoid an error.  */
6094 #ifdef __cplusplus
6095 extern "C"
6096 #endif
6097 /* We use char because int might match the return type of a gcc2
6098    builtin and then its argument prototype would still apply.  */
6099 char opendir ();
6100 int
6101 main ()
6102 {
6103 opendir ();
6104   ;
6105   return 0;
6106 }
6107 _ACEOF
6108 rm -f conftest.$ac_objext conftest$ac_exeext
6109 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6110   (eval $ac_link) 2>&5
6111   ac_status=$?
6112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6113   (exit $ac_status); } &&
6114          { ac_try='test -s conftest$ac_exeext'
6115   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6116   (eval $ac_try) 2>&5
6117   ac_status=$?
6118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6119   (exit $ac_status); }; }; then
6120   ac_cv_search_opendir="-l$ac_lib"
6121 break
6122 else
6123   echo "$as_me: failed program was:" >&5
6124 sed 's/^/| /' conftest.$ac_ext >&5
6125
6126 fi
6127 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6128   done
6129 fi
6130 LIBS=$ac_func_search_save_LIBS
6131 fi
6132 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6133 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6134 if test "$ac_cv_search_opendir" != no; then
6135   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6136
6137 fi
6138
6139 else
6140   echo "$as_me:$LINENO: checking for library containing opendir" >&5
6141 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6142 if test "${ac_cv_search_opendir+set}" = set; then
6143   echo $ECHO_N "(cached) $ECHO_C" >&6
6144 else
6145   ac_func_search_save_LIBS=$LIBS
6146 ac_cv_search_opendir=no
6147 cat >conftest.$ac_ext <<_ACEOF
6148 #line $LINENO "configure"
6149 /* confdefs.h.  */
6150 _ACEOF
6151 cat confdefs.h >>conftest.$ac_ext
6152 cat >>conftest.$ac_ext <<_ACEOF
6153 /* end confdefs.h.  */
6154
6155 /* Override any gcc2 internal prototype to avoid an error.  */
6156 #ifdef __cplusplus
6157 extern "C"
6158 #endif
6159 /* We use char because int might match the return type of a gcc2
6160    builtin and then its argument prototype would still apply.  */
6161 char opendir ();
6162 int
6163 main ()
6164 {
6165 opendir ();
6166   ;
6167   return 0;
6168 }
6169 _ACEOF
6170 rm -f conftest.$ac_objext conftest$ac_exeext
6171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6172   (eval $ac_link) 2>&5
6173   ac_status=$?
6174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6175   (exit $ac_status); } &&
6176          { ac_try='test -s conftest$ac_exeext'
6177   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6178   (eval $ac_try) 2>&5
6179   ac_status=$?
6180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6181   (exit $ac_status); }; }; then
6182   ac_cv_search_opendir="none required"
6183 else
6184   echo "$as_me: failed program was:" >&5
6185 sed 's/^/| /' conftest.$ac_ext >&5
6186
6187 fi
6188 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6189 if test "$ac_cv_search_opendir" = no; then
6190   for ac_lib in x; do
6191     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6192     cat >conftest.$ac_ext <<_ACEOF
6193 #line $LINENO "configure"
6194 /* confdefs.h.  */
6195 _ACEOF
6196 cat confdefs.h >>conftest.$ac_ext
6197 cat >>conftest.$ac_ext <<_ACEOF
6198 /* end confdefs.h.  */
6199
6200 /* Override any gcc2 internal prototype to avoid an error.  */
6201 #ifdef __cplusplus
6202 extern "C"
6203 #endif
6204 /* We use char because int might match the return type of a gcc2
6205    builtin and then its argument prototype would still apply.  */
6206 char opendir ();
6207 int
6208 main ()
6209 {
6210 opendir ();
6211   ;
6212   return 0;
6213 }
6214 _ACEOF
6215 rm -f conftest.$ac_objext conftest$ac_exeext
6216 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6217   (eval $ac_link) 2>&5
6218   ac_status=$?
6219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6220   (exit $ac_status); } &&
6221          { ac_try='test -s conftest$ac_exeext'
6222   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6223   (eval $ac_try) 2>&5
6224   ac_status=$?
6225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6226   (exit $ac_status); }; }; then
6227   ac_cv_search_opendir="-l$ac_lib"
6228 break
6229 else
6230   echo "$as_me: failed program was:" >&5
6231 sed 's/^/| /' conftest.$ac_ext >&5
6232
6233 fi
6234 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6235   done
6236 fi
6237 LIBS=$ac_func_search_save_LIBS
6238 fi
6239 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6240 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6241 if test "$ac_cv_search_opendir" != no; then
6242   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6243
6244 fi
6245
6246 fi
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256 for ac_func in strcasecmp select setenv putenv tcgetattr setlocale lstat lchown
6257 do
6258 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6259 echo "$as_me:$LINENO: checking for $ac_func" >&5
6260 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6261 if eval "test \"\${$as_ac_var+set}\" = set"; then
6262   echo $ECHO_N "(cached) $ECHO_C" >&6
6263 else
6264   cat >conftest.$ac_ext <<_ACEOF
6265 #line $LINENO "configure"
6266 /* confdefs.h.  */
6267 _ACEOF
6268 cat confdefs.h >>conftest.$ac_ext
6269 cat >>conftest.$ac_ext <<_ACEOF
6270 /* end confdefs.h.  */
6271 /* System header to define __stub macros and hopefully few prototypes,
6272     which can conflict with char $ac_func (); below.
6273     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6274     <limits.h> exists even on freestanding compilers.  */
6275 #ifdef __STDC__
6276 # include <limits.h>
6277 #else
6278 # include <assert.h>
6279 #endif
6280 /* Override any gcc2 internal prototype to avoid an error.  */
6281 #ifdef __cplusplus
6282 extern "C"
6283 {
6284 #endif
6285 /* We use char because int might match the return type of a gcc2
6286    builtin and then its argument prototype would still apply.  */
6287 char $ac_func ();
6288 /* The GNU C library defines this for functions which it implements
6289     to always fail with ENOSYS.  Some functions are actually named
6290     something starting with __ and the normal name is an alias.  */
6291 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6292 choke me
6293 #else
6294 char (*f) () = $ac_func;
6295 #endif
6296 #ifdef __cplusplus
6297 }
6298 #endif
6299
6300 int
6301 main ()
6302 {
6303 return f != $ac_func;
6304   ;
6305   return 0;
6306 }
6307 _ACEOF
6308 rm -f conftest.$ac_objext conftest$ac_exeext
6309 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6310   (eval $ac_link) 2>&5
6311   ac_status=$?
6312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6313   (exit $ac_status); } &&
6314          { ac_try='test -s conftest$ac_exeext'
6315   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6316   (eval $ac_try) 2>&5
6317   ac_status=$?
6318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6319   (exit $ac_status); }; }; then
6320   eval "$as_ac_var=yes"
6321 else
6322   echo "$as_me: failed program was:" >&5
6323 sed 's/^/| /' conftest.$ac_ext >&5
6324
6325 eval "$as_ac_var=no"
6326 fi
6327 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6328 fi
6329 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6330 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6331 if test `eval echo '${'$as_ac_var'}'` = yes; then
6332   cat >>confdefs.h <<_ACEOF
6333 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6334 _ACEOF
6335
6336 fi
6337 done
6338
6339
6340
6341 for ac_func in nanosleep nl_langinfo
6342 do
6343 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6344 echo "$as_me:$LINENO: checking for $ac_func" >&5
6345 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6346 if eval "test \"\${$as_ac_var+set}\" = set"; then
6347   echo $ECHO_N "(cached) $ECHO_C" >&6
6348 else
6349   cat >conftest.$ac_ext <<_ACEOF
6350 #line $LINENO "configure"
6351 /* confdefs.h.  */
6352 _ACEOF
6353 cat confdefs.h >>conftest.$ac_ext
6354 cat >>conftest.$ac_ext <<_ACEOF
6355 /* end confdefs.h.  */
6356 /* System header to define __stub macros and hopefully few prototypes,
6357     which can conflict with char $ac_func (); below.
6358     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6359     <limits.h> exists even on freestanding compilers.  */
6360 #ifdef __STDC__
6361 # include <limits.h>
6362 #else
6363 # include <assert.h>
6364 #endif
6365 /* Override any gcc2 internal prototype to avoid an error.  */
6366 #ifdef __cplusplus
6367 extern "C"
6368 {
6369 #endif
6370 /* We use char because int might match the return type of a gcc2
6371    builtin and then its argument prototype would still apply.  */
6372 char $ac_func ();
6373 /* The GNU C library defines this for functions which it implements
6374     to always fail with ENOSYS.  Some functions are actually named
6375     something starting with __ and the normal name is an alias.  */
6376 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6377 choke me
6378 #else
6379 char (*f) () = $ac_func;
6380 #endif
6381 #ifdef __cplusplus
6382 }
6383 #endif
6384
6385 int
6386 main ()
6387 {
6388 return f != $ac_func;
6389   ;
6390   return 0;
6391 }
6392 _ACEOF
6393 rm -f conftest.$ac_objext conftest$ac_exeext
6394 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6395   (eval $ac_link) 2>&5
6396   ac_status=$?
6397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6398   (exit $ac_status); } &&
6399          { ac_try='test -s conftest$ac_exeext'
6400   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6401   (eval $ac_try) 2>&5
6402   ac_status=$?
6403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6404   (exit $ac_status); }; }; then
6405   eval "$as_ac_var=yes"
6406 else
6407   echo "$as_me: failed program was:" >&5
6408 sed 's/^/| /' conftest.$ac_ext >&5
6409
6410 eval "$as_ac_var=no"
6411 fi
6412 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6413 fi
6414 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6415 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6416 if test `eval echo '${'$as_ac_var'}'` = yes; then
6417   cat >>confdefs.h <<_ACEOF
6418 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6419 _ACEOF
6420
6421 fi
6422 done
6423
6424
6425 for ac_header in varargs.h
6426 do
6427 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6428 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6429   echo "$as_me:$LINENO: checking for $ac_header" >&5
6430 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6431 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6432   echo $ECHO_N "(cached) $ECHO_C" >&6
6433 fi
6434 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6435 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6436 else
6437   # Is the header compilable?
6438 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6439 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6440 cat >conftest.$ac_ext <<_ACEOF
6441 #line $LINENO "configure"
6442 /* confdefs.h.  */
6443 _ACEOF
6444 cat confdefs.h >>conftest.$ac_ext
6445 cat >>conftest.$ac_ext <<_ACEOF
6446 /* end confdefs.h.  */
6447 $ac_includes_default
6448 #include <$ac_header>
6449 _ACEOF
6450 rm -f conftest.$ac_objext
6451 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6452   (eval $ac_compile) 2>&5
6453   ac_status=$?
6454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6455   (exit $ac_status); } &&
6456          { ac_try='test -s conftest.$ac_objext'
6457   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6458   (eval $ac_try) 2>&5
6459   ac_status=$?
6460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6461   (exit $ac_status); }; }; then
6462   ac_header_compiler=yes
6463 else
6464   echo "$as_me: failed program was:" >&5
6465 sed 's/^/| /' conftest.$ac_ext >&5
6466
6467 ac_header_compiler=no
6468 fi
6469 rm -f conftest.$ac_objext conftest.$ac_ext
6470 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6471 echo "${ECHO_T}$ac_header_compiler" >&6
6472
6473 # Is the header present?
6474 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6475 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6476 cat >conftest.$ac_ext <<_ACEOF
6477 #line $LINENO "configure"
6478 /* confdefs.h.  */
6479 _ACEOF
6480 cat confdefs.h >>conftest.$ac_ext
6481 cat >>conftest.$ac_ext <<_ACEOF
6482 /* end confdefs.h.  */
6483 #include <$ac_header>
6484 _ACEOF
6485 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6486   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6487   ac_status=$?
6488   grep -v '^ *+' conftest.er1 >conftest.err
6489   rm -f conftest.er1
6490   cat conftest.err >&5
6491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6492   (exit $ac_status); } >/dev/null; then
6493   if test -s conftest.err; then
6494     ac_cpp_err=$ac_c_preproc_warn_flag
6495   else
6496     ac_cpp_err=
6497   fi
6498 else
6499   ac_cpp_err=yes
6500 fi
6501 if test -z "$ac_cpp_err"; then
6502   ac_header_preproc=yes
6503 else
6504   echo "$as_me: failed program was:" >&5
6505 sed 's/^/| /' conftest.$ac_ext >&5
6506
6507   ac_header_preproc=no
6508 fi
6509 rm -f conftest.err conftest.$ac_ext
6510 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6511 echo "${ECHO_T}$ac_header_preproc" >&6
6512
6513 # So?  What about this header?
6514 case $ac_header_compiler:$ac_header_preproc in
6515   yes:no )
6516     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6517 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6518     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6519 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6520     (
6521       cat <<\_ASBOX
6522 ## ------------------------------------ ##
6523 ## Report this to bug-autoconf@gnu.org. ##
6524 ## ------------------------------------ ##
6525 _ASBOX
6526     ) |
6527       sed "s/^/$as_me: WARNING:     /" >&2
6528     ;;
6529   no:yes )
6530     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6531 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6532     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6533 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6534     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6535 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6536     (
6537       cat <<\_ASBOX
6538 ## ------------------------------------ ##
6539 ## Report this to bug-autoconf@gnu.org. ##
6540 ## ------------------------------------ ##
6541 _ASBOX
6542     ) |
6543       sed "s/^/$as_me: WARNING:     /" >&2
6544     ;;
6545 esac
6546 echo "$as_me:$LINENO: checking for $ac_header" >&5
6547 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6548 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6549   echo $ECHO_N "(cached) $ECHO_C" >&6
6550 else
6551   eval "$as_ac_Header=$ac_header_preproc"
6552 fi
6553 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6554 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6555
6556 fi
6557 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6558   cat >>confdefs.h <<_ACEOF
6559 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6560 _ACEOF
6561
6562 fi
6563
6564 done
6565
6566
6567 # End of readline/conio stuff
6568 # -----------------------------------------------------------------------
6569
6570
6571 # ---------------------------------------------------
6572 # Check for GMP support/directory
6573 # ---------------------------------------------------
6574 #GMP_SRC=
6575 #local_gmp="no"
6576 #AC_ARG_WITH(gmp,
6577 #  [  --with-gmp[=DIR]   Specify gmp library directory],
6578 #  [
6579 #     case "$with_gmp" in
6580 #     no) : ;;
6581 #     yes|*)
6582 #       if test "$with_gmp" != "yes"; then
6583 #         GMP_INC="-I$with_gmp"
6584 #         GMP_LIBS="-lgmp"
6585 #         GMP_LDFLAGS="-L$with_gmp"
6586 #       else
6587 #          with_gmp="/usr/include"
6588 #       fi
6589 #       AC_CHECK_HEADER($with_gmp/gmp.h,
6590 #          [ AC_MSG_RESULT(yes)
6591 #            AC_DEFINE(HAVE_GMP)
6592 #            GMP_LIBS="-lgmp"
6593 #            got_gmp="yes"
6594 #          ],
6595 #          [ AC_MSG_ERROR([*** gmp library missing])
6596 #          ]
6597 #       )
6598 #       ;;
6599 #     esac
6600 #  ],[
6601 #    # check for standard gmp library
6602 #    AC_CHECK_HEADER(/usr/include/gmp.h,
6603 #    [ AC_MSG_RESULT(yes)
6604 #      AC_DEFINE(HAVE_GMP)
6605 #      got_gmp="yes"
6606 #      GMP_INC=
6607 #      GMP_LIBS="-lgmp"
6608 #    ], [
6609 #      # Did not find standard library, so use our own
6610 #      AC_MSG_RESULT(yes)
6611 #      AC_DEFINE(HAVE_GMP)
6612 #      got_gmp="yes"
6613 #      local_gmp="yes"
6614 #      GMP_INC="-I${TOP_DIR}/depkgs/gmp"
6615 #      GMP_LIBS="-lgmp"
6616 #      GMP_LDFLAGS="-L${TOP_DIR}/depkgs/gmp"
6617 #      GMP_SRC="${TOP_DIR}/depkgs/gmp"
6618 #    ])
6619 #  ]
6620 #)
6621 #AC_SUBST(GMP_INC)
6622 #AC_SUBST(GMP_LIBS)
6623 #AC_SUBST(GMP_LDFLAGS)
6624 #AC_SUBST(GMP_SRC)
6625
6626 # End of GMP stuff
6627 # -----------------------------------------------------------------------
6628
6629
6630 # ---------------------------------------------------
6631 # Check for CWEB support/directory
6632 # ---------------------------------------------------
6633 #CWEB_SRC=
6634 #CWEB=/bin
6635 #local_cweb="no"
6636 #AC_ARG_WITH(cweb,
6637 #  [  --with-cweb[=DIR]   Specify cweb library directory],
6638 #  [
6639 #     case "$with_cweb" in
6640 #     no) : ;;
6641 #     yes|*)
6642 #       if test "$with_cweb" != "yes"; then
6643 #         CWEB_INC="-I$with_cweb"
6644 #         CWEB_LIBS="-lcweb"
6645 #         CWEB_LDFLAGS="-L$with_cweb"
6646 #       else
6647 #          with_cweb="/usr/include"
6648 #       fi
6649 #       AC_CHECK_HEADER($with_cweb/cweb.h,
6650 #          [ AC_MSG_RESULT(yes)
6651 #            AC_DEFINE(HAVE_CWEB)
6652 #            CWEB_LIBS="-lcweb"
6653 #            got_cweb="yes"
6654 #          ],
6655 #          [ AC_MSG_ERROR([*** cweb library missing])
6656 #          ]
6657 #       )
6658 #       ;;
6659 #     esac
6660 #  ],[
6661 #    # check for standard cweb library
6662 #    AC_CHECK_HEADER(/usr/include/cweb.h,
6663 #    [ AC_MSG_RESULT(yes)
6664 #      AC_DEFINE(HAVE_CWEB)
6665 #      got_cweb="yes"
6666 #      CWEB_INC=
6667 #      CWEB_LIBS="-lcweb"
6668 #    ], [
6669 #      # Did not find starndard library, so use our own
6670 #      AC_MSG_RESULT(yes)
6671 #      AC_DEFINE(HAVE_CWEB)
6672 #      got_cweb="yes"
6673 #      local_cweb="yes"
6674 #      CWEB=${TOP_DIR}/depkgs/cweb
6675 #      CWEB_INC="-I${TOP_DIR}/depkgs/cweb"
6676 #      CWEB_LIBS="-lcweb"
6677 #      CWEB_LDFLAGS="-L${TOP_DIR}/depkgs/cweb"
6678 #      CWEB_SRC="${TOP_DIR}/depkgs/cweb"
6679 #    ])
6680 #  ]
6681 #)
6682 #AC_SUBST(CWEB)
6683 #AC_SUBST(CWEB_INC)
6684 #AC_SUBST(CWEB_LIBS)
6685 #AC_SUBST(CWEB_LDFLAGS)
6686 #AC_SUBST(CWEB_SRC)
6687
6688 # End of CWEB stuff
6689 # -----------------------------------------------------------------------
6690
6691
6692
6693 # -----------------------------------------------------------
6694 # Check whether user wants TCP wrappers support (default off)
6695 # -----------------------------------------------------------
6696 TCPW_MSG="no"
6697
6698 # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
6699 if test "${with_tcp_wrappers+set}" = set; then
6700   withval="$with_tcp_wrappers"
6701
6702     if test "x$withval" != "xno" ; then
6703        saved_LIBS="$LIBS"
6704        LIBS="$saved_LIBS -lwrap"
6705        echo "$as_me:$LINENO: checking for libwrap" >&5
6706 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6
6707        cat >conftest.$ac_ext <<_ACEOF
6708 #line $LINENO "configure"
6709 /* confdefs.h.  */
6710 _ACEOF
6711 cat confdefs.h >>conftest.$ac_ext
6712 cat >>conftest.$ac_ext <<_ACEOF
6713 /* end confdefs.h.  */
6714  #include <tcpd.h>
6715              int deny_severity = 0;
6716              int allow_severity = 0;
6717              struct request_info *req;
6718 int
6719 main ()
6720 {
6721  hosts_access(req);
6722   ;
6723   return 0;
6724 }
6725 _ACEOF
6726 rm -f conftest.$ac_objext conftest$ac_exeext
6727 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6728   (eval $ac_link) 2>&5
6729   ac_status=$?
6730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6731   (exit $ac_status); } &&
6732          { ac_try='test -s conftest$ac_exeext'
6733   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6734   (eval $ac_try) 2>&5
6735   ac_status=$?
6736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6737   (exit $ac_status); }; }; then
6738
6739             echo "$as_me:$LINENO: result: yes" >&5
6740 echo "${ECHO_T}yes" >&6
6741             cat >>confdefs.h <<\_ACEOF
6742 #define HAVE_LIBWRAP 1
6743 _ACEOF
6744
6745             TCPW_MSG="yes"
6746
6747 else
6748   echo "$as_me: failed program was:" >&5
6749 sed 's/^/| /' conftest.$ac_ext >&5
6750
6751
6752             LIBS="$saved_LIBS -lwrap -lnsl"
6753             cat >conftest.$ac_ext <<_ACEOF
6754 #line $LINENO "configure"
6755 /* confdefs.h.  */
6756 _ACEOF
6757 cat confdefs.h >>conftest.$ac_ext
6758 cat >>conftest.$ac_ext <<_ACEOF
6759 /* end confdefs.h.  */
6760  #include <tcpd.h>
6761                  int deny_severity = 0;
6762                  int allow_severity = 0;
6763                  struct request_info *req;
6764 int
6765 main ()
6766 {
6767  hosts_access(req);
6768   ;
6769   return 0;
6770 }
6771 _ACEOF
6772 rm -f conftest.$ac_objext conftest$ac_exeext
6773 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6774   (eval $ac_link) 2>&5
6775   ac_status=$?
6776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6777   (exit $ac_status); } &&
6778          { ac_try='test -s conftest$ac_exeext'
6779   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6780   (eval $ac_try) 2>&5
6781   ac_status=$?
6782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6783   (exit $ac_status); }; }; then
6784
6785                  echo "$as_me:$LINENO: result: yes" >&5
6786 echo "${ECHO_T}yes" >&6
6787                  cat >>confdefs.h <<\_ACEOF
6788 #define HAVE_LIBWRAP 1
6789 _ACEOF
6790
6791                  TCPW_MSG="yes"
6792
6793 else
6794   echo "$as_me: failed program was:" >&5
6795 sed 's/^/| /' conftest.$ac_ext >&5
6796
6797 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
6798 echo "$as_me: error: *** libwrap missing" >&2;}
6799    { (exit 1); exit 1; }; }
6800
6801 fi
6802 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6803
6804 fi
6805 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6806     fi
6807
6808
6809 fi;
6810
6811 # ------------------------------------------
6812 # Where to place working dir
6813 # ------------------------------------------
6814 working_dir=`eval echo ${prefix}/var/bacula/working`
6815
6816 # Check whether --with-working-dir or --without-working-dir was given.
6817 if test "${with_working_dir+set}" = set; then
6818   withval="$with_working_dir"
6819
6820        if test "x$withval" != "xno" ; then
6821               working_dir=$withval
6822        fi
6823
6824
6825 fi;
6826
6827
6828
6829
6830 # ------------------------------------------
6831 # Where to place scriptdir (script files)
6832 # ------------------------------------------
6833 scriptdir=`eval echo ${sysconfdir}`
6834
6835 # Check whether --with-scriptdir or --without-scriptdir was given.
6836 if test "${with_scriptdir+set}" = set; then
6837   withval="$with_scriptdir"
6838
6839        if test "x$withval" != "xno" ; then
6840               scriptdir=$withval
6841        fi
6842
6843
6844 fi;
6845
6846
6847
6848
6849 # ------------------------------------------
6850 # Where to send dump email
6851 # ------------------------------------------
6852 dump_email=root@localhost
6853
6854 # Check whether --with-dump-email or --without-dump-email was given.
6855 if test "${with_dump_email+set}" = set; then
6856   withval="$with_dump_email"
6857
6858        if test "x$withval" != "xno" ; then
6859               dump_email=$withval
6860        fi
6861
6862
6863 fi;
6864
6865
6866
6867 # ------------------------------------------
6868 # Where to send job email
6869 # ------------------------------------------
6870 job_email=root@localhost
6871
6872 # Check whether --with-job-email or --without-job-email was given.
6873 if test "${with_job_email+set}" = set; then
6874   withval="$with_job_email"
6875
6876        if test "x$withval" != "xno" ; then
6877               job_email=$withval
6878        fi
6879
6880
6881 fi;
6882
6883
6884
6885 # ------------------------------------------
6886 # Where to find smtp host
6887 # ------------------------------------------
6888 smtp_host=localhost
6889
6890 # Check whether --with-smtp_host or --without-smtp_host was given.
6891 if test "${with_smtp_host+set}" = set; then
6892   withval="$with_smtp_host"
6893
6894        if test "x$withval" != "xno" ; then
6895               smtp_host=$withval
6896        fi
6897
6898
6899 fi;
6900
6901
6902
6903
6904 # ------------------------------------
6905 # Where to place pid files
6906 # ------------------------------------
6907 piddir=/var/run
6908
6909 # Check whether --with-pid-dir or --without-pid-dir was given.
6910 if test "${with_pid_dir+set}" = set; then
6911   withval="$with_pid_dir"
6912
6913         if test "x$withval" != "xno" ; then
6914             piddir=$withval
6915         fi
6916
6917
6918 fi;
6919
6920 cat >>confdefs.h <<_ACEOF
6921 #define _PATH_BACULA_PIDDIR "$piddir"
6922 _ACEOF
6923
6924
6925
6926
6927 # ------------------------------------
6928 # Where to place subsys "lock file"
6929 # ------------------------------------
6930 subsysdir=/var/run/subsys
6931
6932 # Check whether --with-subsys-dir or --without-subsys-dir was given.
6933 if test "${with_subsys_dir+set}" = set; then
6934   withval="$with_subsys_dir"
6935
6936         if test "x$withval" != "xno" ; then
6937             subsysdir=$withval
6938         fi
6939
6940
6941 fi;
6942
6943
6944
6945
6946
6947 # ------------------------------------
6948 # Where to start assigning ports
6949 # ------------------------------------
6950 baseport=9101
6951
6952 # Check whether --with-baseport or --without-baseport was given.
6953 if test "${with_baseport+set}" = set; then
6954   withval="$with_baseport"
6955
6956         if test "x$withval" != "xno" ; then
6957              baseport=$withval
6958         fi
6959
6960
6961 fi;
6962
6963
6964 dir_port=`expr $baseport`
6965 fd_port=`expr $baseport + 1`
6966 sd_port=`expr $fd_port + 1`
6967
6968
6969
6970
6971
6972
6973 # ------------------------------------------
6974 # Generate passwords
6975 # ------------------------------------------
6976 dir_password=
6977
6978 # Check whether --with-dir-password or --without-dir-password was given.
6979 if test "${with_dir_password+set}" = set; then
6980   withval="$with_dir_password"
6981
6982        if test "x$withval" != "xno" ; then
6983            dir_password=$withval
6984        fi
6985
6986
6987 fi;
6988
6989 if test "x$dir_password" = "x" ; then
6990    if test "x$OPENSSL" = "xnone" ; then
6991 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" abcdefghijklmnopqrst | awk '{getline} {print} {exit}'`
6992       key=`autoconf/randpass 33`
6993    else
6994       key=`openssl rand -base64 33`
6995    fi
6996    dir_password=$key
6997 fi
6998
6999 fd_password=
7000
7001 # Check whether --with-fd-password or --without-fd-password was given.
7002 if test "${with_fd_password+set}" = set; then
7003   withval="$with_fd_password"
7004
7005        if test "x$withval" != "xno" ; then
7006            fd_password=$withval
7007        fi
7008
7009
7010 fi;
7011
7012 if test "x$fd_password" = "x" ; then
7013    if test "x$OPENSSL" = "xnone" ; then
7014 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" tsrqponmlkjihgfedcba | awk '{getline} {print} {exit}'`
7015       key=`autoconf/randpass 37`
7016    else
7017       key=`openssl rand -base64 33`
7018    fi
7019    fd_password=$key
7020 fi
7021
7022 sd_password=
7023
7024 # Check whether --with-sd-password or --without-sd-password was given.
7025 if test "${with_sd_password+set}" = set; then
7026   withval="$with_sd_password"
7027
7028        if test "x$withval" != "xno" ; then
7029            sd_password=$withval
7030        fi
7031
7032
7033 fi;
7034
7035 if test "x$sd_password" = "x" ; then
7036    if test "x$OPENSSL" = "xnone" ; then
7037 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" 123456789uvwxyzabcdef | awk '{getline} {print} {exit}'`
7038       key=`autoconf/randpass 41`
7039    else
7040       key=`openssl rand -base64 33`
7041    fi
7042    sd_password=$key
7043 fi
7044
7045
7046
7047
7048
7049
7050
7051 #
7052 # Handle users and groups for each daemon
7053 #
7054 dir_user=
7055
7056 # Check whether --with-dir_user or --without-dir_user was given.
7057 if test "${with_dir_user+set}" = set; then
7058   withval="$with_dir_user"
7059
7060         if test "x$withval" != "x" ; then
7061              dir_user=$withval
7062         fi
7063
7064
7065 fi;
7066
7067 dir_group=
7068
7069 # Check whether --with-dir_group or --without-dir_group was given.
7070 if test "${with_dir_group+set}" = set; then
7071   withval="$with_dir_group"
7072
7073         if test "x$withval" != "x" ; then
7074              dir_group=$withval
7075         fi
7076
7077
7078 fi;
7079
7080 sd_user=
7081
7082 # Check whether --with-sd_user or --without-sd_user was given.
7083 if test "${with_sd_user+set}" = set; then
7084   withval="$with_sd_user"
7085
7086         if test "x$withval" != "x" ; then
7087              sd_user=$withval
7088         fi
7089
7090
7091 fi;
7092
7093 sd_group=
7094
7095 # Check whether --with-sd_group or --without-sd_group was given.
7096 if test "${with_sd_group+set}" = set; then
7097   withval="$with_sd_group"
7098
7099         if test "x$withval" != "x" ; then
7100              sd_group=$withval
7101         fi
7102
7103
7104 fi;
7105
7106 fd_user=
7107
7108 # Check whether --with-fd_user or --without-fd_user was given.
7109 if test "${with_fd_user+set}" = set; then
7110   withval="$with_fd_user"
7111
7112         if test "x$withval" != "x" ; then
7113              fd_user=$withval
7114         fi
7115
7116
7117 fi;
7118
7119 fd_group=
7120
7121 # Check whether --with-fd_group or --without-fd_group was given.
7122 if test "${with_fd_group+set}" = set; then
7123   withval="$with_fd_group"
7124
7125         if test "x$withval" != "x" ; then
7126              fd_group=$withval
7127         fi
7128
7129
7130 fi;
7131
7132
7133
7134
7135
7136
7137
7138
7139
7140
7141
7142 #
7143 # allow setting default executable permissions
7144 #
7145 SBINPERM=0754
7146
7147 # Check whether --with-sbin-perm or --without-sbin-perm was given.
7148 if test "${with_sbin_perm+set}" = set; then
7149   withval="$with_sbin_perm"
7150
7151         if test "x$withval" != "x" ; then
7152             SBINPERM=$withval
7153         fi
7154
7155
7156 fi;
7157
7158
7159
7160 # ------------------------------------------------
7161 # Bacula check for various SQL database engines
7162 # ------------------------------------------------
7163
7164 db_found=no
7165 echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
7166 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6
7167
7168 # Check whether --with-postgresql or --without-postgresql was given.
7169 if test "${with_postgresql+set}" = set; then
7170   withval="$with_postgresql"
7171
7172   if test "$withval" != "no"; then
7173       if test "$db_found" = "yes"; then
7174           echo "$as_me:$LINENO: result: error" >&5
7175 echo "${ECHO_T}error" >&6
7176           { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
7177 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
7178    { (exit 1); exit 1; }; };
7179       fi
7180       if test "$withval" = "yes"; then
7181           if test -f /usr/local/include/libpq-fe.h; then
7182               POSTGRESQL_INCDIR=/usr/local/include
7183               POSTGRESQL_LIBDIR=/usr/local/lib
7184               POSTGRESQL_BINDIR=/usr/local/bin
7185           elif test -f /usr/include/libpq-fe.h; then
7186               POSTGRESQL_INCDIR=/usr/include
7187               POSTGRESQL_LIBDIR=/usr/lib
7188               POSTGRESQL_BINDIR=/usr/bin
7189           elif test -f /usr/include/pgsql/libpq-fe.h; then
7190               POSTGRESQL_INCDIR=/usr/include/pgsql
7191               POSTGRESQL_LIBDIR=/usr/lib/pgsql
7192               POSTGRESQL_BINDIR=/usr/bin
7193           elif test -f /usr/include/postgresql/libpq-fe.h; then
7194               POSTGRESQL_INCDIR=/usr/include/postgresql
7195               POSTGRESQL_LIBDIR=/usr/lib/postgresql
7196               POSTGRESQL_BINDIR=/usr/bin
7197           else
7198               echo "$as_me:$LINENO: result: no" >&5
7199 echo "${ECHO_T}no" >&6
7200               { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
7201 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
7202    { (exit 1); exit 1; }; }
7203           fi
7204       elif test -f $withval/include/libpq-fe.h; then
7205           POSTGRESQL_INCDIR=$withval/include
7206           POSTGRESQL_LIBDIR=$withval/lib
7207           POSTGRESQL_BINDIR=$withval/bin
7208       else
7209           echo "$as_me:$LINENO: result: no" >&5
7210 echo "${ECHO_T}no" >&6
7211           { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
7212 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
7213    { (exit 1); exit 1; }; }
7214       fi
7215       POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
7216       echo "$as_me:$LINENO: checking for crypt" >&5
7217 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
7218 if test "${ac_cv_func_crypt+set}" = set; then
7219   echo $ECHO_N "(cached) $ECHO_C" >&6
7220 else
7221   cat >conftest.$ac_ext <<_ACEOF
7222 #line $LINENO "configure"
7223 /* confdefs.h.  */
7224 _ACEOF
7225 cat confdefs.h >>conftest.$ac_ext
7226 cat >>conftest.$ac_ext <<_ACEOF
7227 /* end confdefs.h.  */
7228 /* System header to define __stub macros and hopefully few prototypes,
7229     which can conflict with char crypt (); below.
7230     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7231     <limits.h> exists even on freestanding compilers.  */
7232 #ifdef __STDC__
7233 # include <limits.h>
7234 #else
7235 # include <assert.h>
7236 #endif
7237 /* Override any gcc2 internal prototype to avoid an error.  */
7238 #ifdef __cplusplus
7239 extern "C"
7240 {
7241 #endif
7242 /* We use char because int might match the return type of a gcc2
7243    builtin and then its argument prototype would still apply.  */
7244 char crypt ();
7245 /* The GNU C library defines this for functions which it implements
7246     to always fail with ENOSYS.  Some functions are actually named
7247     something starting with __ and the normal name is an alias.  */
7248 #if defined (__stub_crypt) || defined (__stub___crypt)
7249 choke me
7250 #else
7251 char (*f) () = crypt;
7252 #endif
7253 #ifdef __cplusplus
7254 }
7255 #endif
7256
7257 int
7258 main ()
7259 {
7260 return f != crypt;
7261   ;
7262   return 0;
7263 }
7264 _ACEOF
7265 rm -f conftest.$ac_objext conftest$ac_exeext
7266 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7267   (eval $ac_link) 2>&5
7268   ac_status=$?
7269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7270   (exit $ac_status); } &&
7271          { ac_try='test -s conftest$ac_exeext'
7272   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7273   (eval $ac_try) 2>&5
7274   ac_status=$?
7275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7276   (exit $ac_status); }; }; then
7277   ac_cv_func_crypt=yes
7278 else
7279   echo "$as_me: failed program was:" >&5
7280 sed 's/^/| /' conftest.$ac_ext >&5
7281
7282 ac_cv_func_crypt=no
7283 fi
7284 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7285 fi
7286 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
7287 echo "${ECHO_T}$ac_cv_func_crypt" >&6
7288 if test $ac_cv_func_crypt = yes; then
7289   :
7290 else
7291   echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
7292 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
7293 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
7294   echo $ECHO_N "(cached) $ECHO_C" >&6
7295 else
7296   ac_check_lib_save_LIBS=$LIBS
7297 LIBS="-lcrypt  $LIBS"
7298 cat >conftest.$ac_ext <<_ACEOF
7299 #line $LINENO "configure"
7300 /* confdefs.h.  */
7301 _ACEOF
7302 cat confdefs.h >>conftest.$ac_ext
7303 cat >>conftest.$ac_ext <<_ACEOF
7304 /* end confdefs.h.  */
7305
7306 /* Override any gcc2 internal prototype to avoid an error.  */
7307 #ifdef __cplusplus
7308 extern "C"
7309 #endif
7310 /* We use char because int might match the return type of a gcc2
7311    builtin and then its argument prototype would still apply.  */
7312 char crypt ();
7313 int
7314 main ()
7315 {
7316 crypt ();
7317   ;
7318   return 0;
7319 }
7320 _ACEOF
7321 rm -f conftest.$ac_objext conftest$ac_exeext
7322 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7323   (eval $ac_link) 2>&5
7324   ac_status=$?
7325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7326   (exit $ac_status); } &&
7327          { ac_try='test -s conftest$ac_exeext'
7328   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7329   (eval $ac_try) 2>&5
7330   ac_status=$?
7331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7332   (exit $ac_status); }; }; then
7333   ac_cv_lib_crypt_crypt=yes
7334 else
7335   echo "$as_me: failed program was:" >&5
7336 sed 's/^/| /' conftest.$ac_ext >&5
7337
7338 ac_cv_lib_crypt_crypt=no
7339 fi
7340 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7341 LIBS=$ac_check_lib_save_LIBS
7342 fi
7343 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
7344 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
7345 if test $ac_cv_lib_crypt_crypt = yes; then
7346   POSTGRESQL_LFLAGS="-lcrypt $POSTGRESQL_LFLAGS"
7347 fi
7348
7349 fi
7350
7351       SQL_INCLUDE=-I$POSTGRESQL_INCDIR
7352       SQL_LFLAGS=$POSTGRESQL_LFLAGS
7353       SQL_BINDIR=$POSTGRESQL_BINDIR
7354       cat >>confdefs.h <<\_ACEOF
7355 #define HAVE_POSTGRESQL 1
7356 _ACEOF
7357
7358       echo "$as_me:$LINENO: result: yes" >&5
7359 echo "${ECHO_T}yes" >&6
7360       db_found=yes
7361       support_postgresql=yes
7362       db_name=PostgreSQL
7363       DB_NAME=postgresql
7364   else
7365       echo "$as_me:$LINENO: result: no" >&5
7366 echo "${ECHO_T}no" >&6
7367   fi
7368
7369 else
7370
7371   echo "$as_me:$LINENO: result: no" >&5
7372 echo "${ECHO_T}no" >&6
7373
7374 fi;
7375
7376
7377
7378
7379
7380
7381
7382 db_found=no
7383 echo "$as_me:$LINENO: checking for MySQL support" >&5
7384 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6
7385
7386 # Check whether --with-mysql or --without-mysql was given.
7387 if test "${with_mysql+set}" = set; then
7388   withval="$with_mysql"
7389
7390   if test "$withval" != "no"; then
7391         if test "$withval" = "yes"; then
7392                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
7393                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
7394                         MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
7395                         MYSQL_BINDIR=/usr/local/mysql/bin
7396                 elif test -f /usr/include/mysql/mysql.h; then
7397                         MYSQL_INCDIR=/usr/include/mysql
7398                         MYSQL_LIBDIR=/usr/lib/mysql
7399                         MYSQL_BINDIR=/usr/bin
7400                 elif test -f /usr/include/mysql.h; then
7401                         MYSQL_INCDIR=/usr/include
7402                         MYSQL_LIBDIR=/usr/lib
7403                         MYSQL_BINDIR=/usr/bin
7404                 elif test -f /usr/local/include/mysql/mysql.h; then
7405                         MYSQL_INCDIR=/usr/local/include/mysql
7406                         MYSQL_LIBDIR=/usr/local/lib/mysql
7407                         MYSQL_BINDIR=/usr/local/bin
7408                 elif test -f /usr/local/include/mysql.h; then
7409                         MYSQL_INCDIR=/usr/local/include
7410                         MYSQL_LIBDIR=/usr/local/lib
7411                         MYSQL_BINDIR=/usr/local/bin
7412                 else
7413                    echo "$as_me:$LINENO: result: no" >&5
7414 echo "${ECHO_T}no" >&6
7415                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
7416 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
7417    { (exit 1); exit 1; }; }
7418                 fi
7419         else
7420                 if test -f $withval/include/mysql/mysql.h; then
7421                         MYSQL_INCDIR=$withval/include/mysql
7422                         MYSQL_LIBDIR=$withval/lib/mysql
7423                         MYSQL_BINDIR=$withval/bin
7424                 elif test -f $withval/include/mysql.h; then
7425                         MYSQL_INCDIR=$withval/include
7426                         MYSQL_LIBDIR=$withval/lib
7427                         MYSQL_BINDIR=$withval/bin
7428                 else
7429                    echo "$as_me:$LINENO: result: no" >&5
7430 echo "${ECHO_T}no" >&6
7431                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
7432 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
7433    { (exit 1); exit 1; }; }
7434                 fi
7435         fi
7436     SQL_INCLUDE=-I$MYSQL_INCDIR
7437     if test -f $MYSQL_LIBDIR/libmysqlclient_r.a; then
7438        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
7439        cat >>confdefs.h <<\_ACEOF
7440 #define HAVE_THREAD_SAFE_MYSQL 1
7441 _ACEOF
7442
7443     else
7444        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient -lz"
7445     fi
7446     SQL_BINDIR=$MYSQL_BINDIR
7447
7448     cat >>confdefs.h <<\_ACEOF
7449 #define HAVE_MYSQL 1
7450 _ACEOF
7451
7452     echo "$as_me:$LINENO: result: yes" >&5
7453 echo "${ECHO_T}yes" >&6
7454     db_found=yes
7455     support_mysql=yes
7456     db_name=MySQL
7457     DB_NAME=mysql
7458
7459   else
7460         echo "$as_me:$LINENO: result: no" >&5
7461 echo "${ECHO_T}no" >&6
7462   fi
7463
7464
7465 fi;
7466
7467
7468 # Check whether --with-embedded-mysql or --without-embedded-mysql was given.
7469 if test "${with_embedded_mysql+set}" = set; then
7470   withval="$with_embedded_mysql"
7471
7472   if test "$withval" != "no"; then
7473         if test "$withval" = "yes"; then
7474                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
7475                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
7476                         MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
7477                         MYSQL_BINDIR=/usr/local/mysql/bin
7478                 elif test -f /usr/include/mysql/mysql.h; then
7479                         MYSQL_INCDIR=/usr/include/mysql
7480                         MYSQL_LIBDIR=/usr/lib/mysql
7481                         MYSQL_BINDIR=/usr/bin
7482                 elif test -f /usr/include/mysql.h; then
7483                         MYSQL_INCDIR=/usr/include
7484                         MYSQL_LIBDIR=/usr/lib
7485                         MYSQL_BINDIR=/usr/bin
7486                 elif test -f /usr/local/include/mysql/mysql.h; then
7487                         MYSQL_INCDIR=/usr/local/include/mysql
7488                         MYSQL_LIBDIR=/usr/local/lib/mysql
7489                         MYSQL_BINDIR=/usr/local/bin
7490                 elif test -f /usr/local/include/mysql.h; then
7491                         MYSQL_INCDIR=/usr/local/include
7492                         MYSQL_LIBDIR=/usr/local/lib
7493                         MYSQL_BINDIR=/usr/local/bin
7494                 else
7495                    echo "$as_me:$LINENO: result: no" >&5
7496 echo "${ECHO_T}no" >&6
7497                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
7498 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
7499    { (exit 1); exit 1; }; }
7500                 fi
7501         else
7502                 if test -f $withval/include/mysql/mysql.h; then
7503                         MYSQL_INCDIR=$withval/include/mysql
7504                         MYSQL_LIBDIR=$withval/lib/mysql
7505                         MYSQL_BINDIR=$withval/bin
7506                 elif test -f $withval/include/mysql.h; then
7507                         MYSQL_INCDIR=$withval/include
7508                         MYSQL_LIBDIR=$withval/lib
7509                         MYSQL_BINDIR=$withval/bin
7510                 else
7511                    echo "$as_me:$LINENO: result: no" >&5
7512 echo "${ECHO_T}no" >&6
7513                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
7514 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
7515    { (exit 1); exit 1; }; }
7516                 fi
7517         fi
7518     SQL_INCLUDE=-I$MYSQL_INCDIR
7519     SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
7520     SQL_BINDIR=$MYSQL_BINDIR
7521
7522     cat >>confdefs.h <<\_ACEOF
7523 #define HAVE_MYSQL 1
7524 _ACEOF
7525
7526     cat >>confdefs.h <<\_ACEOF
7527 #define HAVE_EMBEDDED_MYSQL 1
7528 _ACEOF
7529
7530     echo "$as_me:$LINENO: result: yes" >&5
7531 echo "${ECHO_T}yes" >&6
7532     db_found=yes
7533     support_mysql=yes
7534     db_name=MySQL
7535     DB_NAME=mysql
7536
7537   else
7538         echo "$as_me:$LINENO: result: no" >&5
7539 echo "${ECHO_T}no" >&6
7540   fi
7541
7542
7543 fi;
7544
7545
7546
7547
7548
7549
7550
7551
7552
7553 db_found=no
7554 echo "$as_me:$LINENO: checking for SQLite support" >&5
7555 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6
7556
7557 # Check whether --with-sqlite or --without-sqlite was given.
7558 if test "${with_sqlite+set}" = set; then
7559   withval="$with_sqlite"
7560
7561   if test "$withval" != "no"; then
7562      if test "$withval" = "yes"; then
7563         if test -f /usr/local/include/sqlite.h; then
7564            SQLITE_INCDIR=/usr/local/include
7565            SQLITE_LIBDIR=/usr/local/lib
7566            SQLITE_BINDIR=/usr/local/bin
7567         elif test -f /usr/include/sqlite.h; then
7568            SQLITE_INCDIR=/usr/include
7569            SQLITE_LIBDIR=/usr/lib
7570            SQLITE_BINDIR=/usr/bin
7571         else
7572            echo "$as_me:$LINENO: result: no" >&5
7573 echo "${ECHO_T}no" >&6
7574            { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
7575 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
7576    { (exit 1); exit 1; }; }
7577         fi
7578      else
7579         if test -f $withval/sqlite.h; then
7580            SQLITE_INCDIR=$withval
7581            SQLITE_LIBDIR=$withval
7582            SQLITE_BINDIR=$withval
7583         else
7584            echo "$as_me:$LINENO: result: no" >&5
7585 echo "${ECHO_T}no" >&6
7586            { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
7587 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
7588    { (exit 1); exit 1; }; }
7589         fi
7590      fi
7591      SQL_INCLUDE=-I$SQLITE_INCDIR
7592      SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
7593      SQL_BINDIR=$SQLITE_BINDIR
7594
7595      cat >>confdefs.h <<\_ACEOF
7596 #define HAVE_SQLITE 1
7597 _ACEOF
7598
7599      echo "$as_me:$LINENO: result: yes" >&5
7600 echo "${ECHO_T}yes" >&6
7601      db_found=yes
7602      support_sqlite=yes
7603      db_name=SQLite
7604      DB_NAME=sqlite
7605
7606   else
7607      echo "$as_me:$LINENO: result: no" >&5
7608 echo "${ECHO_T}no" >&6
7609   fi
7610
7611 else
7612
7613   echo "$as_me:$LINENO: result: no" >&5
7614 echo "${ECHO_T}no" >&6
7615
7616 fi;
7617
7618
7619
7620
7621
7622
7623
7624
7625
7626 cat >>confdefs.h <<\_ACEOF
7627 #define PROTOTYPES 1
7628 _ACEOF
7629
7630
7631 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
7632     if test -z "$CCOPTS"; then
7633         CCOPTS='-g -O2 -Wall'
7634     fi
7635     CFLAGS="$CCOPTS"
7636 fi
7637
7638
7639
7640
7641 largefile_support="no"
7642
7643    # Check whether --enable-largefile or --disable-largefile was given.
7644 if test "${enable_largefile+set}" = set; then
7645   enableval="$enable_largefile"
7646
7647 fi;
7648    if test "$enable_largefile" != no; then
7649      if test -n "$ac_tool_prefix"; then
7650   # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
7651 set dummy ${ac_tool_prefix}getconf; ac_word=$2
7652 echo "$as_me:$LINENO: checking for $ac_word" >&5
7653 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7654 if test "${ac_cv_prog_GETCONF+set}" = set; then
7655   echo $ECHO_N "(cached) $ECHO_C" >&6
7656 else
7657   if test -n "$GETCONF"; then
7658   ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
7659 else
7660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7661 for as_dir in $PATH
7662 do
7663   IFS=$as_save_IFS
7664   test -z "$as_dir" && as_dir=.
7665   for ac_exec_ext in '' $ac_executable_extensions; do
7666   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7667     ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
7668     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7669     break 2
7670   fi
7671 done
7672 done
7673
7674 fi
7675 fi
7676 GETCONF=$ac_cv_prog_GETCONF
7677 if test -n "$GETCONF"; then
7678   echo "$as_me:$LINENO: result: $GETCONF" >&5
7679 echo "${ECHO_T}$GETCONF" >&6
7680 else
7681   echo "$as_me:$LINENO: result: no" >&5
7682 echo "${ECHO_T}no" >&6
7683 fi
7684
7685 fi
7686 if test -z "$ac_cv_prog_GETCONF"; then
7687   ac_ct_GETCONF=$GETCONF
7688   # Extract the first word of "getconf", so it can be a program name with args.
7689 set dummy getconf; ac_word=$2
7690 echo "$as_me:$LINENO: checking for $ac_word" >&5
7691 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7692 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
7693   echo $ECHO_N "(cached) $ECHO_C" >&6
7694 else
7695   if test -n "$ac_ct_GETCONF"; then
7696   ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
7697 else
7698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7699 for as_dir in $PATH
7700 do
7701   IFS=$as_save_IFS
7702   test -z "$as_dir" && as_dir=.
7703   for ac_exec_ext in '' $ac_executable_extensions; do
7704   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7705     ac_cv_prog_ac_ct_GETCONF="getconf"
7706     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7707     break 2
7708   fi
7709 done
7710 done
7711
7712 fi
7713 fi
7714 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
7715 if test -n "$ac_ct_GETCONF"; then
7716   echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
7717 echo "${ECHO_T}$ac_ct_GETCONF" >&6
7718 else
7719   echo "$as_me:$LINENO: result: no" >&5
7720 echo "${ECHO_T}no" >&6
7721 fi
7722
7723   GETCONF=$ac_ct_GETCONF
7724 else
7725   GETCONF="$ac_cv_prog_GETCONF"
7726 fi
7727
7728      echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
7729 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6
7730 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
7731   echo $ECHO_N "(cached) $ECHO_C" >&6
7732 else
7733   ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
7734         ac_cv_sys_largefile_CFLAGS=no
7735         case "$host_os" in
7736            # IRIX 6.2 and later require cc -n32.
7737            irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
7738              if test "$GCC" != yes; then
7739                ac_cv_sys_largefile_CFLAGS=-n32
7740              fi
7741              ac_save_CC="$CC"
7742              CC="$CC $ac_cv_sys_largefile_CFLAGS"
7743              cat >conftest.$ac_ext <<_ACEOF
7744 #line $LINENO "configure"
7745 /* confdefs.h.  */
7746 _ACEOF
7747 cat confdefs.h >>conftest.$ac_ext
7748 cat >>conftest.$ac_ext <<_ACEOF
7749 /* end confdefs.h.  */
7750
7751 int
7752 main ()
7753 {
7754
7755   ;
7756   return 0;
7757 }
7758 _ACEOF
7759 rm -f conftest.$ac_objext conftest$ac_exeext
7760 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7761   (eval $ac_link) 2>&5
7762   ac_status=$?
7763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7764   (exit $ac_status); } &&
7765          { ac_try='test -s conftest$ac_exeext'
7766   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7767   (eval $ac_try) 2>&5
7768   ac_status=$?
7769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7770   (exit $ac_status); }; }; then
7771   :
7772 else
7773   echo "$as_me: failed program was:" >&5
7774 sed 's/^/| /' conftest.$ac_ext >&5
7775
7776 ac_cv_sys_largefile_CFLAGS=no
7777 fi
7778 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7779              CC="$ac_save_CC"
7780            esac
7781       }
7782 fi
7783 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
7784 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6
7785      echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
7786 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6
7787 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
7788   echo $ECHO_N "(cached) $ECHO_C" >&6
7789 else
7790   ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
7791         ac_cv_sys_largefile_LDFLAGS=no
7792
7793       }
7794 fi
7795 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
7796 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6
7797      echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
7798 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6
7799 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
7800   echo $ECHO_N "(cached) $ECHO_C" >&6
7801 else
7802   ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
7803         ac_cv_sys_largefile_LIBS=no
7804
7805       }
7806 fi
7807 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
7808 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6
7809
7810      for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7811        case "$ac_flag" in
7812        no) ;;
7813        -D_FILE_OFFSET_BITS=*) ;;
7814        -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
7815        -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
7816        -D?* | -I?*)
7817          case "$ac_flag" in
7818    no) ;;
7819    ?*)
7820      case "$CPPFLAGS" in
7821      '') CPPFLAGS="$ac_flag" ;;
7822      *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
7823      esac ;;
7824    esac ;;
7825        *)
7826          case "$ac_flag" in
7827    no) ;;
7828    ?*)
7829      case "$CFLAGS" in
7830      '') CFLAGS="$ac_flag" ;;
7831      *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
7832      esac ;;
7833    esac ;;
7834        esac
7835      done
7836      case "$ac_cv_sys_largefile_LDFLAGS" in
7837    no) ;;
7838    ?*)
7839      case "$LDFLAGS" in
7840      '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
7841      *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
7842      esac ;;
7843    esac
7844      case "$ac_cv_sys_largefile_LIBS" in
7845    no) ;;
7846    ?*)
7847      case "$LIBS" in
7848      '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
7849      *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
7850      esac ;;
7851    esac
7852      echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
7853 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6
7854 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
7855   echo $ECHO_N "(cached) $ECHO_C" >&6
7856 else
7857   ac_cv_sys_file_offset_bits=no
7858       case "$host_os" in
7859         # HP-UX 10.20 and later
7860         hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
7861           ac_cv_sys_file_offset_bits=64 ;;
7862         esac
7863       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7864         case "$ac_flag" in
7865         -D_FILE_OFFSET_BITS)
7866           ac_cv_sys_file_offset_bits=1 ;;
7867         -D_FILE_OFFSET_BITS=*)
7868           ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
7869         esac
7870       done
7871
7872 fi
7873 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
7874 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
7875    if test "$ac_cv_sys_file_offset_bits" != no; then
7876
7877 cat >>confdefs.h <<_ACEOF
7878 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7879 _ACEOF
7880
7881    fi
7882      echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
7883 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6
7884 if test "${ac_cv_sys_largefile_source+set}" = set; then
7885   echo $ECHO_N "(cached) $ECHO_C" >&6
7886 else
7887   ac_cv_sys_largefile_source=no
7888       case "$host_os" in
7889         # HP-UX 10.20 and later
7890         hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
7891           ac_cv_sys_largefile_source=1 ;;
7892         esac
7893       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7894         case "$ac_flag" in
7895         -D_LARGEFILE_SOURCE)
7896           ac_cv_sys_largefile_source=1 ;;
7897         -D_LARGEFILE_SOURCE=*)
7898           ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
7899         esac
7900       done
7901
7902 fi
7903 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
7904 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
7905    if test "$ac_cv_sys_largefile_source" != no; then
7906
7907 cat >>confdefs.h <<_ACEOF
7908 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
7909 _ACEOF
7910
7911    fi
7912      echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
7913 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6
7914 if test "${ac_cv_sys_large_files+set}" = set; then
7915   echo $ECHO_N "(cached) $ECHO_C" >&6
7916 else
7917   ac_cv_sys_large_files=no
7918       case "$host_os" in
7919         # AIX 4.2 and later
7920         aix4.[2-9]* | aix4.1[0-9]* | aix[5-9].* | aix[1-9][0-9]*)
7921           ac_cv_sys_large_files=1 ;;
7922         esac
7923       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7924         case "$ac_flag" in
7925         -D_LARGE_FILES)
7926           ac_cv_sys_large_files=1 ;;
7927         -D_LARGE_FILES=*)
7928           ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
7929         esac
7930       done
7931
7932 fi
7933 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
7934 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
7935    if test "$ac_cv_sys_large_files" != no; then
7936
7937 cat >>confdefs.h <<_ACEOF
7938 #define _LARGE_FILES $ac_cv_sys_large_files
7939 _ACEOF
7940
7941    fi
7942    fi
7943
7944
7945
7946 echo "$as_me:$LINENO: checking for X" >&5
7947 echo $ECHO_N "checking for X... $ECHO_C" >&6
7948
7949
7950 # Check whether --with-x or --without-x was given.
7951 if test "${with_x+set}" = set; then
7952   withval="$with_x"
7953
7954 fi;
7955 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7956 if test "x$with_x" = xno; then
7957   # The user explicitly disabled X.
7958   have_x=disabled
7959 else
7960   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
7961     # Both variables are already set.
7962     have_x=yes
7963   else
7964     if test "${ac_cv_have_x+set}" = set; then
7965   echo $ECHO_N "(cached) $ECHO_C" >&6
7966 else
7967   # One or both of the vars are not set, and there is no cached value.
7968 ac_x_includes=no ac_x_libraries=no
7969 rm -fr conftest.dir
7970 if mkdir conftest.dir; then
7971   cd conftest.dir
7972   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7973   cat >Imakefile <<'_ACEOF'
7974 acfindx:
7975         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7976 _ACEOF
7977   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
7978     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7979     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7980     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7981     for ac_extension in a so sl; do
7982       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
7983          test -f $ac_im_libdir/libX11.$ac_extension; then
7984         ac_im_usrlibdir=$ac_im_libdir; break
7985       fi
7986     done
7987     # Screen out bogus values from the imake configuration.  They are
7988     # bogus both because they are the default anyway, and because
7989     # using them would break gcc on systems where it needs fixed includes.
7990     case $ac_im_incroot in
7991         /usr/include) ;;
7992         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7993     esac
7994     case $ac_im_usrlibdir in
7995         /usr/lib | /lib) ;;
7996         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7997     esac
7998   fi
7999   cd ..
8000   rm -fr conftest.dir
8001 fi
8002
8003 # Standard set of common directories for X headers.
8004 # Check X11 before X11Rn because it is often a symlink to the current release.
8005 ac_x_header_dirs='
8006 /usr/X11/include
8007 /usr/X11R6/include
8008 /usr/X11R5/include
8009 /usr/X11R4/include
8010
8011 /usr/include/X11
8012 /usr/include/X11R6
8013 /usr/include/X11R5
8014 /usr/include/X11R4
8015
8016 /usr/local/X11/include
8017 /usr/local/X11R6/include
8018 /usr/local/X11R5/include
8019 /usr/local/X11R4/include
8020
8021 /usr/local/include/X11
8022 /usr/local/include/X11R6
8023 /usr/local/include/X11R5
8024 /usr/local/include/X11R4
8025
8026 /usr/X386/include
8027 /usr/x386/include
8028 /usr/XFree86/include/X11
8029
8030 /usr/include
8031 /usr/local/include
8032 /usr/unsupported/include
8033 /usr/athena/include
8034 /usr/local/x11r5/include
8035 /usr/lpp/Xamples/include
8036
8037 /usr/openwin/include
8038 /usr/openwin/share/include'
8039
8040 if test "$ac_x_includes" = no; then
8041   # Guess where to find include files, by looking for Intrinsic.h.
8042   # First, try using that file with no special directory specified.
8043   cat >conftest.$ac_ext <<_ACEOF
8044 #line $LINENO "configure"
8045 /* confdefs.h.  */
8046 _ACEOF
8047 cat confdefs.h >>conftest.$ac_ext
8048 cat >>conftest.$ac_ext <<_ACEOF
8049 /* end confdefs.h.  */
8050 #include <X11/Intrinsic.h>
8051 _ACEOF
8052 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8053   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8054   ac_status=$?
8055   grep -v '^ *+' conftest.er1 >conftest.err
8056   rm -f conftest.er1
8057   cat conftest.err >&5
8058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8059   (exit $ac_status); } >/dev/null; then
8060   if test -s conftest.err; then
8061     ac_cpp_err=$ac_c_preproc_warn_flag
8062   else
8063     ac_cpp_err=
8064   fi
8065 else
8066   ac_cpp_err=yes
8067 fi
8068 if test -z "$ac_cpp_err"; then
8069   # We can compile using X headers with no special include directory.
8070 ac_x_includes=
8071 else
8072   echo "$as_me: failed program was:" >&5
8073 sed 's/^/| /' conftest.$ac_ext >&5
8074
8075   for ac_dir in $ac_x_header_dirs; do
8076   if test -r "$ac_dir/X11/Intrinsic.h"; then
8077     ac_x_includes=$ac_dir
8078     break
8079   fi
8080 done
8081 fi
8082 rm -f conftest.err conftest.$ac_ext
8083 fi # $ac_x_includes = no
8084
8085 if test "$ac_x_libraries" = no; then
8086   # Check for the libraries.
8087   # See if we find them without any special options.
8088   # Don't add to $LIBS permanently.
8089   ac_save_LIBS=$LIBS
8090   LIBS="-lXt $LIBS"
8091   cat >conftest.$ac_ext <<_ACEOF
8092 #line $LINENO "configure"
8093 /* confdefs.h.  */
8094 _ACEOF
8095 cat confdefs.h >>conftest.$ac_ext
8096 cat >>conftest.$ac_ext <<_ACEOF
8097 /* end confdefs.h.  */
8098 #include <X11/Intrinsic.h>
8099 int
8100 main ()
8101 {
8102 XtMalloc (0)
8103   ;
8104   return 0;
8105 }
8106 _ACEOF
8107 rm -f conftest.$ac_objext conftest$ac_exeext
8108 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8109   (eval $ac_link) 2>&5
8110   ac_status=$?
8111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8112   (exit $ac_status); } &&
8113          { ac_try='test -s conftest$ac_exeext'
8114   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8115   (eval $ac_try) 2>&5
8116   ac_status=$?
8117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8118   (exit $ac_status); }; }; then
8119   LIBS=$ac_save_LIBS
8120 # We can link X programs with no special library path.
8121 ac_x_libraries=
8122 else
8123   echo "$as_me: failed program was:" >&5
8124 sed 's/^/| /' conftest.$ac_ext >&5
8125
8126 LIBS=$ac_save_LIBS
8127 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8128 do
8129   # Don't even attempt the hair of trying to link an X program!
8130   for ac_extension in a so sl; do
8131     if test -r $ac_dir/libXt.$ac_extension; then
8132       ac_x_libraries=$ac_dir
8133       break 2
8134     fi
8135   done
8136 done
8137 fi
8138 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8139 fi # $ac_x_libraries = no
8140
8141 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
8142   # Didn't find X anywhere.  Cache the known absence of X.
8143   ac_cv_have_x="have_x=no"
8144 else
8145   # Record where we found X for the cache.
8146   ac_cv_have_x="have_x=yes \
8147                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8148 fi
8149 fi
8150
8151   fi
8152   eval "$ac_cv_have_x"
8153 fi # $with_x != no
8154
8155 if test "$have_x" != yes; then
8156   echo "$as_me:$LINENO: result: $have_x" >&5
8157 echo "${ECHO_T}$have_x" >&6
8158   no_x=yes
8159 else
8160   # If each of the values was on the command line, it overrides each guess.
8161   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8162   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8163   # Update the cache value to reflect the command line values.
8164   ac_cv_have_x="have_x=yes \
8165                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8166   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
8167 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
8168 fi
8169
8170 if test "$no_x" = yes; then
8171   # Not all programs may use this symbol, but it does not hurt to define it.
8172
8173 cat >>confdefs.h <<\_ACEOF
8174 #define X_DISPLAY_MISSING 1
8175 _ACEOF
8176
8177   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
8178 else
8179   if test -n "$x_includes"; then
8180     X_CFLAGS="$X_CFLAGS -I$x_includes"
8181   fi
8182
8183   # It would also be nice to do this for all -L options, not just this one.
8184   if test -n "$x_libraries"; then
8185     X_LIBS="$X_LIBS -L$x_libraries"
8186     # For Solaris; some versions of Sun CC require a space after -R and
8187     # others require no space.  Words are not sufficient . . . .
8188     case `(uname -sr) 2>/dev/null` in
8189     "SunOS 5"*)
8190       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
8191 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
8192       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
8193       cat >conftest.$ac_ext <<_ACEOF
8194 #line $LINENO "configure"
8195 /* confdefs.h.  */
8196 _ACEOF
8197 cat confdefs.h >>conftest.$ac_ext
8198 cat >>conftest.$ac_ext <<_ACEOF
8199 /* end confdefs.h.  */
8200
8201 int
8202 main ()
8203 {
8204
8205   ;
8206   return 0;
8207 }
8208 _ACEOF
8209 rm -f conftest.$ac_objext conftest$ac_exeext
8210 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8211   (eval $ac_link) 2>&5
8212   ac_status=$?
8213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8214   (exit $ac_status); } &&
8215          { ac_try='test -s conftest$ac_exeext'
8216   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8217   (eval $ac_try) 2>&5
8218   ac_status=$?
8219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8220   (exit $ac_status); }; }; then
8221   ac_R_nospace=yes
8222 else
8223   echo "$as_me: failed program was:" >&5
8224 sed 's/^/| /' conftest.$ac_ext >&5
8225
8226 ac_R_nospace=no
8227 fi
8228 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8229       if test $ac_R_nospace = yes; then
8230         echo "$as_me:$LINENO: result: no" >&5
8231 echo "${ECHO_T}no" >&6
8232         X_LIBS="$X_LIBS -R$x_libraries"
8233       else
8234         LIBS="$ac_xsave_LIBS -R $x_libraries"
8235         cat >conftest.$ac_ext <<_ACEOF
8236 #line $LINENO "configure"
8237 /* confdefs.h.  */
8238 _ACEOF
8239 cat confdefs.h >>conftest.$ac_ext
8240 cat >>conftest.$ac_ext <<_ACEOF
8241 /* end confdefs.h.  */
8242
8243 int
8244 main ()
8245 {
8246
8247   ;
8248   return 0;
8249 }
8250 _ACEOF
8251 rm -f conftest.$ac_objext conftest$ac_exeext
8252 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8253   (eval $ac_link) 2>&5
8254   ac_status=$?
8255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8256   (exit $ac_status); } &&
8257          { ac_try='test -s conftest$ac_exeext'
8258   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8259   (eval $ac_try) 2>&5
8260   ac_status=$?
8261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8262   (exit $ac_status); }; }; then
8263   ac_R_space=yes
8264 else
8265   echo "$as_me: failed program was:" >&5
8266 sed 's/^/| /' conftest.$ac_ext >&5
8267
8268 ac_R_space=no
8269 fi
8270 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8271         if test $ac_R_space = yes; then
8272           echo "$as_me:$LINENO: result: yes" >&5
8273 echo "${ECHO_T}yes" >&6
8274           X_LIBS="$X_LIBS -R $x_libraries"
8275         else
8276           echo "$as_me:$LINENO: result: neither works" >&5
8277 echo "${ECHO_T}neither works" >&6
8278         fi
8279       fi
8280       LIBS=$ac_xsave_LIBS
8281     esac
8282   fi
8283
8284   # Check for system-dependent libraries X programs must link with.
8285   # Do this before checking for the system-independent R6 libraries
8286   # (-lICE), since we may need -lsocket or whatever for X linking.
8287
8288   if test "$ISC" = yes; then
8289     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
8290   else
8291     # Martyn Johnson says this is needed for Ultrix, if the X
8292     # libraries were built with DECnet support.  And Karl Berry says
8293     # the Alpha needs dnet_stub (dnet does not exist).
8294     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
8295     cat >conftest.$ac_ext <<_ACEOF
8296 #line $LINENO "configure"
8297 /* confdefs.h.  */
8298 _ACEOF
8299 cat confdefs.h >>conftest.$ac_ext
8300 cat >>conftest.$ac_ext <<_ACEOF
8301 /* end confdefs.h.  */
8302
8303 /* Override any gcc2 internal prototype to avoid an error.  */
8304 #ifdef __cplusplus
8305 extern "C"
8306 #endif
8307 /* We use char because int might match the return type of a gcc2
8308    builtin and then its argument prototype would still apply.  */
8309 char XOpenDisplay ();
8310 int
8311 main ()
8312 {
8313 XOpenDisplay ();
8314   ;
8315   return 0;
8316 }
8317 _ACEOF
8318 rm -f conftest.$ac_objext conftest$ac_exeext
8319 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8320   (eval $ac_link) 2>&5
8321   ac_status=$?
8322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8323   (exit $ac_status); } &&
8324          { ac_try='test -s conftest$ac_exeext'
8325   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8326   (eval $ac_try) 2>&5
8327   ac_status=$?
8328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8329   (exit $ac_status); }; }; then
8330   :
8331 else
8332   echo "$as_me: failed program was:" >&5
8333 sed 's/^/| /' conftest.$ac_ext >&5
8334
8335 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
8336 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
8337 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
8338   echo $ECHO_N "(cached) $ECHO_C" >&6
8339 else
8340   ac_check_lib_save_LIBS=$LIBS
8341 LIBS="-ldnet  $LIBS"
8342 cat >conftest.$ac_ext <<_ACEOF
8343 #line $LINENO "configure"
8344 /* confdefs.h.  */
8345 _ACEOF
8346 cat confdefs.h >>conftest.$ac_ext
8347 cat >>conftest.$ac_ext <<_ACEOF
8348 /* end confdefs.h.  */
8349
8350 /* Override any gcc2 internal prototype to avoid an error.  */
8351 #ifdef __cplusplus
8352 extern "C"
8353 #endif
8354 /* We use char because int might match the return type of a gcc2
8355    builtin and then its argument prototype would still apply.  */
8356 char dnet_ntoa ();
8357 int
8358 main ()
8359 {
8360 dnet_ntoa ();
8361   ;
8362   return 0;
8363 }
8364 _ACEOF
8365 rm -f conftest.$ac_objext conftest$ac_exeext
8366 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8367   (eval $ac_link) 2>&5
8368   ac_status=$?
8369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8370   (exit $ac_status); } &&
8371          { ac_try='test -s conftest$ac_exeext'
8372   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8373   (eval $ac_try) 2>&5
8374   ac_status=$?
8375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8376   (exit $ac_status); }; }; then
8377   ac_cv_lib_dnet_dnet_ntoa=yes
8378 else
8379   echo "$as_me: failed program was:" >&5
8380 sed 's/^/| /' conftest.$ac_ext >&5
8381
8382 ac_cv_lib_dnet_dnet_ntoa=no
8383 fi
8384 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8385 LIBS=$ac_check_lib_save_LIBS
8386 fi
8387 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8388 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
8389 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
8390   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
8391 fi
8392
8393     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
8394       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
8395 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
8396 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
8397   echo $ECHO_N "(cached) $ECHO_C" >&6
8398 else
8399   ac_check_lib_save_LIBS=$LIBS
8400 LIBS="-ldnet_stub  $LIBS"
8401 cat >conftest.$ac_ext <<_ACEOF
8402 #line $LINENO "configure"
8403 /* confdefs.h.  */
8404 _ACEOF
8405 cat confdefs.h >>conftest.$ac_ext
8406 cat >>conftest.$ac_ext <<_ACEOF
8407 /* end confdefs.h.  */
8408
8409 /* Override any gcc2 internal prototype to avoid an error.  */
8410 #ifdef __cplusplus
8411 extern "C"
8412 #endif
8413 /* We use char because int might match the return type of a gcc2
8414    builtin and then its argument prototype would still apply.  */
8415 char dnet_ntoa ();
8416 int
8417 main ()
8418 {
8419 dnet_ntoa ();
8420   ;
8421   return 0;
8422 }
8423 _ACEOF
8424 rm -f conftest.$ac_objext conftest$ac_exeext
8425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8426   (eval $ac_link) 2>&5
8427   ac_status=$?
8428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8429   (exit $ac_status); } &&
8430          { ac_try='test -s conftest$ac_exeext'
8431   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8432   (eval $ac_try) 2>&5
8433   ac_status=$?
8434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8435   (exit $ac_status); }; }; then
8436   ac_cv_lib_dnet_stub_dnet_ntoa=yes
8437 else
8438   echo "$as_me: failed program was:" >&5
8439 sed 's/^/| /' conftest.$ac_ext >&5
8440
8441 ac_cv_lib_dnet_stub_dnet_ntoa=no
8442 fi
8443 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8444 LIBS=$ac_check_lib_save_LIBS
8445 fi
8446 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
8447 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
8448 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
8449   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
8450 fi
8451
8452     fi
8453 fi
8454 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8455     LIBS="$ac_xsave_LIBS"
8456
8457     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
8458     # to get the SysV transport functions.
8459     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
8460     # needs -lnsl.
8461     # The nsl library prevents programs from opening the X display
8462     # on Irix 5.2, according to T.E. Dickey.
8463     # The functions gethostbyname, getservbyname, and inet_addr are
8464     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
8465     echo "$as_me:$LINENO: checking for gethostbyname" >&5
8466 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
8467 if test "${ac_cv_func_gethostbyname+set}" = set; then
8468   echo $ECHO_N "(cached) $ECHO_C" >&6
8469 else
8470   cat >conftest.$ac_ext <<_ACEOF
8471 #line $LINENO "configure"
8472 /* confdefs.h.  */
8473 _ACEOF
8474 cat confdefs.h >>conftest.$ac_ext
8475 cat >>conftest.$ac_ext <<_ACEOF
8476 /* end confdefs.h.  */
8477 /* System header to define __stub macros and hopefully few prototypes,
8478     which can conflict with char gethostbyname (); below.
8479     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8480     <limits.h> exists even on freestanding compilers.  */
8481 #ifdef __STDC__
8482 # include <limits.h>
8483 #else
8484 # include <assert.h>
8485 #endif
8486 /* Override any gcc2 internal prototype to avoid an error.  */
8487 #ifdef __cplusplus
8488 extern "C"
8489 {
8490 #endif
8491 /* We use char because int might match the return type of a gcc2
8492    builtin and then its argument prototype would still apply.  */
8493 char gethostbyname ();
8494 /* The GNU C library defines this for functions which it implements
8495     to always fail with ENOSYS.  Some functions are actually named
8496     something starting with __ and the normal name is an alias.  */
8497 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
8498 choke me
8499 #else
8500 char (*f) () = gethostbyname;
8501 #endif
8502 #ifdef __cplusplus
8503 }
8504 #endif
8505
8506 int
8507 main ()
8508 {
8509 return f != gethostbyname;
8510   ;
8511   return 0;
8512 }
8513 _ACEOF
8514 rm -f conftest.$ac_objext conftest$ac_exeext
8515 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8516   (eval $ac_link) 2>&5
8517   ac_status=$?
8518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8519   (exit $ac_status); } &&
8520          { ac_try='test -s conftest$ac_exeext'
8521   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8522   (eval $ac_try) 2>&5
8523   ac_status=$?
8524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8525   (exit $ac_status); }; }; then
8526   ac_cv_func_gethostbyname=yes
8527 else
8528   echo "$as_me: failed program was:" >&5
8529 sed 's/^/| /' conftest.$ac_ext >&5
8530
8531 ac_cv_func_gethostbyname=no
8532 fi
8533 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8534 fi
8535 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
8536 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
8537
8538     if test $ac_cv_func_gethostbyname = no; then
8539       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
8540 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
8541 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
8542   echo $ECHO_N "(cached) $ECHO_C" >&6
8543 else
8544   ac_check_lib_save_LIBS=$LIBS
8545 LIBS="-lnsl  $LIBS"
8546 cat >conftest.$ac_ext <<_ACEOF
8547 #line $LINENO "configure"
8548 /* confdefs.h.  */
8549 _ACEOF
8550 cat confdefs.h >>conftest.$ac_ext
8551 cat >>conftest.$ac_ext <<_ACEOF
8552 /* end confdefs.h.  */
8553
8554 /* Override any gcc2 internal prototype to avoid an error.  */
8555 #ifdef __cplusplus
8556 extern "C"
8557 #endif
8558 /* We use char because int might match the return type of a gcc2
8559    builtin and then its argument prototype would still apply.  */
8560 char gethostbyname ();
8561 int
8562 main ()
8563 {
8564 gethostbyname ();
8565   ;
8566   return 0;
8567 }
8568 _ACEOF
8569 rm -f conftest.$ac_objext conftest$ac_exeext
8570 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8571   (eval $ac_link) 2>&5
8572   ac_status=$?
8573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8574   (exit $ac_status); } &&
8575          { ac_try='test -s conftest$ac_exeext'
8576   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8577   (eval $ac_try) 2>&5
8578   ac_status=$?
8579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8580   (exit $ac_status); }; }; then
8581   ac_cv_lib_nsl_gethostbyname=yes
8582 else
8583   echo "$as_me: failed program was:" >&5
8584 sed 's/^/| /' conftest.$ac_ext >&5
8585
8586 ac_cv_lib_nsl_gethostbyname=no
8587 fi
8588 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8589 LIBS=$ac_check_lib_save_LIBS
8590 fi
8591 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
8592 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
8593 if test $ac_cv_lib_nsl_gethostbyname = yes; then
8594   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
8595 fi
8596
8597       if test $ac_cv_lib_nsl_gethostbyname = no; then
8598         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
8599 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
8600 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
8601   echo $ECHO_N "(cached) $ECHO_C" >&6
8602 else
8603   ac_check_lib_save_LIBS=$LIBS
8604 LIBS="-lbsd  $LIBS"
8605 cat >conftest.$ac_ext <<_ACEOF
8606 #line $LINENO "configure"
8607 /* confdefs.h.  */
8608 _ACEOF
8609 cat confdefs.h >>conftest.$ac_ext
8610 cat >>conftest.$ac_ext <<_ACEOF
8611 /* end confdefs.h.  */
8612
8613 /* Override any gcc2 internal prototype to avoid an error.  */
8614 #ifdef __cplusplus
8615 extern "C"
8616 #endif
8617 /* We use char because int might match the return type of a gcc2
8618    builtin and then its argument prototype would still apply.  */
8619 char gethostbyname ();
8620 int
8621 main ()
8622 {
8623 gethostbyname ();
8624   ;
8625   return 0;
8626 }
8627 _ACEOF
8628 rm -f conftest.$ac_objext conftest$ac_exeext
8629 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8630   (eval $ac_link) 2>&5
8631   ac_status=$?
8632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8633   (exit $ac_status); } &&
8634          { ac_try='test -s conftest$ac_exeext'
8635   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8636   (eval $ac_try) 2>&5
8637   ac_status=$?
8638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8639   (exit $ac_status); }; }; then
8640   ac_cv_lib_bsd_gethostbyname=yes
8641 else
8642   echo "$as_me: failed program was:" >&5
8643 sed 's/^/| /' conftest.$ac_ext >&5
8644
8645 ac_cv_lib_bsd_gethostbyname=no
8646 fi
8647 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8648 LIBS=$ac_check_lib_save_LIBS
8649 fi
8650 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
8651 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
8652 if test $ac_cv_lib_bsd_gethostbyname = yes; then
8653   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
8654 fi
8655
8656       fi
8657     fi
8658
8659     # lieder@skyler.mavd.honeywell.com says without -lsocket,
8660     # socket/setsockopt and other routines are undefined under SCO ODT
8661     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
8662     # on later versions), says Simon Leinen: it contains gethostby*
8663     # variants that don't use the name server (or something).  -lsocket
8664     # must be given before -lnsl if both are needed.  We assume that
8665     # if connect needs -lnsl, so does gethostbyname.
8666     echo "$as_me:$LINENO: checking for connect" >&5
8667 echo $ECHO_N "checking for connect... $ECHO_C" >&6
8668 if test "${ac_cv_func_connect+set}" = set; then
8669   echo $ECHO_N "(cached) $ECHO_C" >&6
8670 else
8671   cat >conftest.$ac_ext <<_ACEOF
8672 #line $LINENO "configure"
8673 /* confdefs.h.  */
8674 _ACEOF
8675 cat confdefs.h >>conftest.$ac_ext
8676 cat >>conftest.$ac_ext <<_ACEOF
8677 /* end confdefs.h.  */
8678 /* System header to define __stub macros and hopefully few prototypes,
8679     which can conflict with char connect (); below.
8680     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8681     <limits.h> exists even on freestanding compilers.  */
8682 #ifdef __STDC__
8683 # include <limits.h>
8684 #else
8685 # include <assert.h>
8686 #endif
8687 /* Override any gcc2 internal prototype to avoid an error.  */
8688 #ifdef __cplusplus
8689 extern "C"
8690 {
8691 #endif
8692 /* We use char because int might match the return type of a gcc2
8693    builtin and then its argument prototype would still apply.  */
8694 char connect ();
8695 /* The GNU C library defines this for functions which it implements
8696     to always fail with ENOSYS.  Some functions are actually named
8697     something starting with __ and the normal name is an alias.  */
8698 #if defined (__stub_connect) || defined (__stub___connect)
8699 choke me
8700 #else
8701 char (*f) () = connect;
8702 #endif
8703 #ifdef __cplusplus
8704 }
8705 #endif
8706
8707 int
8708 main ()
8709 {
8710 return f != connect;
8711   ;
8712   return 0;
8713 }
8714 _ACEOF
8715 rm -f conftest.$ac_objext conftest$ac_exeext
8716 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8717   (eval $ac_link) 2>&5
8718   ac_status=$?
8719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8720   (exit $ac_status); } &&
8721          { ac_try='test -s conftest$ac_exeext'
8722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8723   (eval $ac_try) 2>&5
8724   ac_status=$?
8725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8726   (exit $ac_status); }; }; then
8727   ac_cv_func_connect=yes
8728 else
8729   echo "$as_me: failed program was:" >&5
8730 sed 's/^/| /' conftest.$ac_ext >&5
8731
8732 ac_cv_func_connect=no
8733 fi
8734 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8735 fi
8736 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
8737 echo "${ECHO_T}$ac_cv_func_connect" >&6
8738
8739     if test $ac_cv_func_connect = no; then
8740       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
8741 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
8742 if test "${ac_cv_lib_socket_connect+set}" = set; then
8743   echo $ECHO_N "(cached) $ECHO_C" >&6
8744 else
8745   ac_check_lib_save_LIBS=$LIBS
8746 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
8747 cat >conftest.$ac_ext <<_ACEOF
8748 #line $LINENO "configure"
8749 /* confdefs.h.  */
8750 _ACEOF
8751 cat confdefs.h >>conftest.$ac_ext
8752 cat >>conftest.$ac_ext <<_ACEOF
8753 /* end confdefs.h.  */
8754
8755 /* Override any gcc2 internal prototype to avoid an error.  */
8756 #ifdef __cplusplus
8757 extern "C"
8758 #endif
8759 /* We use char because int might match the return type of a gcc2
8760    builtin and then its argument prototype would still apply.  */
8761 char connect ();
8762 int
8763 main ()
8764 {
8765 connect ();
8766   ;
8767   return 0;
8768 }
8769 _ACEOF
8770 rm -f conftest.$ac_objext conftest$ac_exeext
8771 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8772   (eval $ac_link) 2>&5
8773   ac_status=$?
8774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8775   (exit $ac_status); } &&
8776          { ac_try='test -s conftest$ac_exeext'
8777   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8778   (eval $ac_try) 2>&5
8779   ac_status=$?
8780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8781   (exit $ac_status); }; }; then
8782   ac_cv_lib_socket_connect=yes
8783 else
8784   echo "$as_me: failed program was:" >&5
8785 sed 's/^/| /' conftest.$ac_ext >&5
8786
8787 ac_cv_lib_socket_connect=no
8788 fi
8789 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8790 LIBS=$ac_check_lib_save_LIBS
8791 fi
8792 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
8793 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
8794 if test $ac_cv_lib_socket_connect = yes; then
8795   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
8796 fi
8797
8798     fi
8799
8800     # Guillermo Gomez says -lposix is necessary on A/UX.
8801     echo "$as_me:$LINENO: checking for remove" >&5
8802 echo $ECHO_N "checking for remove... $ECHO_C" >&6
8803 if test "${ac_cv_func_remove+set}" = set; then
8804   echo $ECHO_N "(cached) $ECHO_C" >&6
8805 else
8806   cat >conftest.$ac_ext <<_ACEOF
8807 #line $LINENO "configure"
8808 /* confdefs.h.  */
8809 _ACEOF
8810 cat confdefs.h >>conftest.$ac_ext
8811 cat >>conftest.$ac_ext <<_ACEOF
8812 /* end confdefs.h.  */
8813 /* System header to define __stub macros and hopefully few prototypes,
8814     which can conflict with char remove (); below.
8815     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8816     <limits.h> exists even on freestanding compilers.  */
8817 #ifdef __STDC__
8818 # include <limits.h>
8819 #else
8820 # include <assert.h>
8821 #endif
8822 /* Override any gcc2 internal prototype to avoid an error.  */
8823 #ifdef __cplusplus
8824 extern "C"
8825 {
8826 #endif
8827 /* We use char because int might match the return type of a gcc2
8828    builtin and then its argument prototype would still apply.  */
8829 char remove ();
8830 /* The GNU C library defines this for functions which it implements
8831     to always fail with ENOSYS.  Some functions are actually named
8832     something starting with __ and the normal name is an alias.  */
8833 #if defined (__stub_remove) || defined (__stub___remove)
8834 choke me
8835 #else
8836 char (*f) () = remove;
8837 #endif
8838 #ifdef __cplusplus
8839 }
8840 #endif
8841
8842 int
8843 main ()
8844 {
8845 return f != remove;
8846   ;
8847   return 0;
8848 }
8849 _ACEOF
8850 rm -f conftest.$ac_objext conftest$ac_exeext
8851 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8852   (eval $ac_link) 2>&5
8853   ac_status=$?
8854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8855   (exit $ac_status); } &&
8856          { ac_try='test -s conftest$ac_exeext'
8857   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8858   (eval $ac_try) 2>&5
8859   ac_status=$?
8860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8861   (exit $ac_status); }; }; then
8862   ac_cv_func_remove=yes
8863 else
8864   echo "$as_me: failed program was:" >&5
8865 sed 's/^/| /' conftest.$ac_ext >&5
8866
8867 ac_cv_func_remove=no
8868 fi
8869 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8870 fi
8871 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
8872 echo "${ECHO_T}$ac_cv_func_remove" >&6
8873
8874     if test $ac_cv_func_remove = no; then
8875       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
8876 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
8877 if test "${ac_cv_lib_posix_remove+set}" = set; then
8878   echo $ECHO_N "(cached) $ECHO_C" >&6
8879 else
8880   ac_check_lib_save_LIBS=$LIBS
8881 LIBS="-lposix  $LIBS"
8882 cat >conftest.$ac_ext <<_ACEOF
8883 #line $LINENO "configure"
8884 /* confdefs.h.  */
8885 _ACEOF
8886 cat confdefs.h >>conftest.$ac_ext
8887 cat >>conftest.$ac_ext <<_ACEOF
8888 /* end confdefs.h.  */
8889
8890 /* Override any gcc2 internal prototype to avoid an error.  */
8891 #ifdef __cplusplus
8892 extern "C"
8893 #endif
8894 /* We use char because int might match the return type of a gcc2
8895    builtin and then its argument prototype would still apply.  */
8896 char remove ();
8897 int
8898 main ()
8899 {
8900 remove ();
8901   ;
8902   return 0;
8903 }
8904 _ACEOF
8905 rm -f conftest.$ac_objext conftest$ac_exeext
8906 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8907   (eval $ac_link) 2>&5
8908   ac_status=$?
8909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8910   (exit $ac_status); } &&
8911          { ac_try='test -s conftest$ac_exeext'
8912   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8913   (eval $ac_try) 2>&5
8914   ac_status=$?
8915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8916   (exit $ac_status); }; }; then
8917   ac_cv_lib_posix_remove=yes
8918 else
8919   echo "$as_me: failed program was:" >&5
8920 sed 's/^/| /' conftest.$ac_ext >&5
8921
8922 ac_cv_lib_posix_remove=no
8923 fi
8924 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8925 LIBS=$ac_check_lib_save_LIBS
8926 fi
8927 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
8928 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
8929 if test $ac_cv_lib_posix_remove = yes; then
8930   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
8931 fi
8932
8933     fi
8934
8935     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
8936     echo "$as_me:$LINENO: checking for shmat" >&5
8937 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
8938 if test "${ac_cv_func_shmat+set}" = set; then
8939   echo $ECHO_N "(cached) $ECHO_C" >&6
8940 else
8941   cat >conftest.$ac_ext <<_ACEOF
8942 #line $LINENO "configure"
8943 /* confdefs.h.  */
8944 _ACEOF
8945 cat confdefs.h >>conftest.$ac_ext
8946 cat >>conftest.$ac_ext <<_ACEOF
8947 /* end confdefs.h.  */
8948 /* System header to define __stub macros and hopefully few prototypes,
8949     which can conflict with char shmat (); below.
8950     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8951     <limits.h> exists even on freestanding compilers.  */
8952 #ifdef __STDC__
8953 # include <limits.h>
8954 #else
8955 # include <assert.h>
8956 #endif
8957 /* Override any gcc2 internal prototype to avoid an error.  */
8958 #ifdef __cplusplus
8959 extern "C"
8960 {
8961 #endif
8962 /* We use char because int might match the return type of a gcc2
8963    builtin and then its argument prototype would still apply.  */
8964 char shmat ();
8965 /* The GNU C library defines this for functions which it implements
8966     to always fail with ENOSYS.  Some functions are actually named
8967     something starting with __ and the normal name is an alias.  */
8968 #if defined (__stub_shmat) || defined (__stub___shmat)
8969 choke me
8970 #else
8971 char (*f) () = shmat;
8972 #endif
8973 #ifdef __cplusplus
8974 }
8975 #endif
8976
8977 int
8978 main ()
8979 {
8980 return f != shmat;
8981   ;
8982   return 0;
8983 }
8984 _ACEOF
8985 rm -f conftest.$ac_objext conftest$ac_exeext
8986 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8987   (eval $ac_link) 2>&5
8988   ac_status=$?
8989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8990   (exit $ac_status); } &&
8991          { ac_try='test -s conftest$ac_exeext'
8992   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8993   (eval $ac_try) 2>&5
8994   ac_status=$?
8995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8996   (exit $ac_status); }; }; then
8997   ac_cv_func_shmat=yes
8998 else
8999   echo "$as_me: failed program was:" >&5
9000 sed 's/^/| /' conftest.$ac_ext >&5
9001
9002 ac_cv_func_shmat=no
9003 fi
9004 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9005 fi
9006 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
9007 echo "${ECHO_T}$ac_cv_func_shmat" >&6
9008
9009     if test $ac_cv_func_shmat = no; then
9010       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
9011 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
9012 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
9013   echo $ECHO_N "(cached) $ECHO_C" >&6
9014 else
9015   ac_check_lib_save_LIBS=$LIBS
9016 LIBS="-lipc  $LIBS"
9017 cat >conftest.$ac_ext <<_ACEOF
9018 #line $LINENO "configure"
9019 /* confdefs.h.  */
9020 _ACEOF
9021 cat confdefs.h >>conftest.$ac_ext
9022 cat >>conftest.$ac_ext <<_ACEOF
9023 /* end confdefs.h.  */
9024
9025 /* Override any gcc2 internal prototype to avoid an error.  */
9026 #ifdef __cplusplus
9027 extern "C"
9028 #endif
9029 /* We use char because int might match the return type of a gcc2
9030    builtin and then its argument prototype would still apply.  */
9031 char shmat ();
9032 int
9033 main ()
9034 {
9035 shmat ();
9036   ;
9037   return 0;
9038 }
9039 _ACEOF
9040 rm -f conftest.$ac_objext conftest$ac_exeext
9041 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9042   (eval $ac_link) 2>&5
9043   ac_status=$?
9044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9045   (exit $ac_status); } &&
9046          { ac_try='test -s conftest$ac_exeext'
9047   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9048   (eval $ac_try) 2>&5
9049   ac_status=$?
9050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9051   (exit $ac_status); }; }; then
9052   ac_cv_lib_ipc_shmat=yes
9053 else
9054   echo "$as_me: failed program was:" >&5
9055 sed 's/^/| /' conftest.$ac_ext >&5
9056
9057 ac_cv_lib_ipc_shmat=no
9058 fi
9059 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9060 LIBS=$ac_check_lib_save_LIBS
9061 fi
9062 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
9063 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
9064 if test $ac_cv_lib_ipc_shmat = yes; then
9065   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
9066 fi
9067
9068     fi
9069   fi
9070
9071   # Check for libraries that X11R6 Xt/Xaw programs need.
9072   ac_save_LDFLAGS=$LDFLAGS
9073   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
9074   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
9075   # check for ICE first), but we must link in the order -lSM -lICE or
9076   # we get undefined symbols.  So assume we have SM if we have ICE.
9077   # These have to be linked with before -lX11, unlike the other
9078   # libraries we check for below, so use a different variable.
9079   # John Interrante, Karl Berry
9080   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
9081 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
9082 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
9083   echo $ECHO_N "(cached) $ECHO_C" >&6
9084 else
9085   ac_check_lib_save_LIBS=$LIBS
9086 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
9087 cat >conftest.$ac_ext <<_ACEOF
9088 #line $LINENO "configure"
9089 /* confdefs.h.  */
9090 _ACEOF
9091 cat confdefs.h >>conftest.$ac_ext
9092 cat >>conftest.$ac_ext <<_ACEOF
9093 /* end confdefs.h.  */
9094
9095 /* Override any gcc2 internal prototype to avoid an error.  */
9096 #ifdef __cplusplus
9097 extern "C"
9098 #endif
9099 /* We use char because int might match the return type of a gcc2
9100    builtin and then its argument prototype would still apply.  */
9101 char IceConnectionNumber ();
9102 int
9103 main ()
9104 {
9105 IceConnectionNumber ();
9106   ;
9107   return 0;
9108 }
9109 _ACEOF
9110 rm -f conftest.$ac_objext conftest$ac_exeext
9111 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9112   (eval $ac_link) 2>&5
9113   ac_status=$?
9114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9115   (exit $ac_status); } &&
9116          { ac_try='test -s conftest$ac_exeext'
9117   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9118   (eval $ac_try) 2>&5
9119   ac_status=$?
9120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9121   (exit $ac_status); }; }; then
9122   ac_cv_lib_ICE_IceConnectionNumber=yes
9123 else
9124   echo "$as_me: failed program was:" >&5
9125 sed 's/^/| /' conftest.$ac_ext >&5
9126
9127 ac_cv_lib_ICE_IceConnectionNumber=no
9128 fi
9129 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9130 LIBS=$ac_check_lib_save_LIBS
9131 fi
9132 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
9133 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
9134 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
9135   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
9136 fi
9137
9138   LDFLAGS=$ac_save_LDFLAGS
9139
9140 fi
9141
9142
9143
9144
9145
9146
9147
9148
9149
9150
9151
9152
9153
9154
9155
9156
9157
9158
9159
9160
9161
9162
9163
9164
9165
9166
9167
9168 for ac_header in \
9169         assert.h \
9170         fcntl.h \
9171         grp.h \
9172         pwd.h \
9173         libc.h \
9174         limits.h \
9175         stdarg.h \
9176         stdlib.h \
9177         stdint.h \
9178         string.h \
9179         termios.h \
9180         unistd.h \
9181         sys/bitypes.h \
9182         sys/byteorder.h \
9183         sys/ioctl.h \
9184         sys/select.h \
9185         sys/sockio.h \
9186         sys/time.h \
9187         sys/socket.h \
9188         arpa/nameser.h \
9189         resolv.h \
9190         mtio.h \
9191         sys/mtio.h \
9192         sys/tape.h \
9193         regex.h \
9194
9195 do
9196 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9197 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9198   echo "$as_me:$LINENO: checking for $ac_header" >&5
9199 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9200 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9201   echo $ECHO_N "(cached) $ECHO_C" >&6
9202 fi
9203 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9204 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9205 else
9206   # Is the header compilable?
9207 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9208 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9209 cat >conftest.$ac_ext <<_ACEOF
9210 #line $LINENO "configure"
9211 /* confdefs.h.  */
9212 _ACEOF
9213 cat confdefs.h >>conftest.$ac_ext
9214 cat >>conftest.$ac_ext <<_ACEOF
9215 /* end confdefs.h.  */
9216 $ac_includes_default
9217 #include <$ac_header>
9218 _ACEOF
9219 rm -f conftest.$ac_objext
9220 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9221   (eval $ac_compile) 2>&5
9222   ac_status=$?
9223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9224   (exit $ac_status); } &&
9225          { ac_try='test -s conftest.$ac_objext'
9226   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9227   (eval $ac_try) 2>&5
9228   ac_status=$?
9229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9230   (exit $ac_status); }; }; then
9231   ac_header_compiler=yes
9232 else
9233   echo "$as_me: failed program was:" >&5
9234 sed 's/^/| /' conftest.$ac_ext >&5
9235
9236 ac_header_compiler=no
9237 fi
9238 rm -f conftest.$ac_objext conftest.$ac_ext
9239 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9240 echo "${ECHO_T}$ac_header_compiler" >&6
9241
9242 # Is the header present?
9243 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9244 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9245 cat >conftest.$ac_ext <<_ACEOF
9246 #line $LINENO "configure"
9247 /* confdefs.h.  */
9248 _ACEOF
9249 cat confdefs.h >>conftest.$ac_ext
9250 cat >>conftest.$ac_ext <<_ACEOF
9251 /* end confdefs.h.  */
9252 #include <$ac_header>
9253 _ACEOF
9254 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9255   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9256   ac_status=$?
9257   grep -v '^ *+' conftest.er1 >conftest.err
9258   rm -f conftest.er1
9259   cat conftest.err >&5
9260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9261   (exit $ac_status); } >/dev/null; then
9262   if test -s conftest.err; then
9263     ac_cpp_err=$ac_c_preproc_warn_flag
9264   else
9265     ac_cpp_err=
9266   fi
9267 else
9268   ac_cpp_err=yes
9269 fi
9270 if test -z "$ac_cpp_err"; then
9271   ac_header_preproc=yes
9272 else
9273   echo "$as_me: failed program was:" >&5
9274 sed 's/^/| /' conftest.$ac_ext >&5
9275
9276   ac_header_preproc=no
9277 fi
9278 rm -f conftest.err conftest.$ac_ext
9279 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9280 echo "${ECHO_T}$ac_header_preproc" >&6
9281
9282 # So?  What about this header?
9283 case $ac_header_compiler:$ac_header_preproc in
9284   yes:no )
9285     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9286 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&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   no:yes )
9299     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9300 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9301     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9302 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9303     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9304 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9305     (
9306       cat <<\_ASBOX
9307 ## ------------------------------------ ##
9308 ## Report this to bug-autoconf@gnu.org. ##
9309 ## ------------------------------------ ##
9310 _ASBOX
9311     ) |
9312       sed "s/^/$as_me: WARNING:     /" >&2
9313     ;;
9314 esac
9315 echo "$as_me:$LINENO: checking for $ac_header" >&5
9316 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9317 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9318   echo $ECHO_N "(cached) $ECHO_C" >&6
9319 else
9320   eval "$as_ac_Header=$ac_header_preproc"
9321 fi
9322 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9323 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9324
9325 fi
9326 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9327   cat >>confdefs.h <<_ACEOF
9328 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9329 _ACEOF
9330
9331 fi
9332
9333 done
9334
9335 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9336 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9337 if test "${ac_cv_header_stdc+set}" = set; then
9338   echo $ECHO_N "(cached) $ECHO_C" >&6
9339 else
9340   cat >conftest.$ac_ext <<_ACEOF
9341 #line $LINENO "configure"
9342 /* confdefs.h.  */
9343 _ACEOF
9344 cat confdefs.h >>conftest.$ac_ext
9345 cat >>conftest.$ac_ext <<_ACEOF
9346 /* end confdefs.h.  */
9347 #include <stdlib.h>
9348 #include <stdarg.h>
9349 #include <string.h>
9350 #include <float.h>
9351
9352 int
9353 main ()
9354 {
9355
9356   ;
9357   return 0;
9358 }
9359 _ACEOF
9360 rm -f conftest.$ac_objext
9361 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9362   (eval $ac_compile) 2>&5
9363   ac_status=$?
9364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9365   (exit $ac_status); } &&
9366          { ac_try='test -s conftest.$ac_objext'
9367   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9368   (eval $ac_try) 2>&5
9369   ac_status=$?
9370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9371   (exit $ac_status); }; }; then
9372   ac_cv_header_stdc=yes
9373 else
9374   echo "$as_me: failed program was:" >&5
9375 sed 's/^/| /' conftest.$ac_ext >&5
9376
9377 ac_cv_header_stdc=no
9378 fi
9379 rm -f conftest.$ac_objext conftest.$ac_ext
9380
9381 if test $ac_cv_header_stdc = yes; then
9382   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9383   cat >conftest.$ac_ext <<_ACEOF
9384 #line $LINENO "configure"
9385 /* confdefs.h.  */
9386 _ACEOF
9387 cat confdefs.h >>conftest.$ac_ext
9388 cat >>conftest.$ac_ext <<_ACEOF
9389 /* end confdefs.h.  */
9390 #include <string.h>
9391
9392 _ACEOF
9393 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9394   $EGREP "memchr" >/dev/null 2>&1; then
9395   :
9396 else
9397   ac_cv_header_stdc=no
9398 fi
9399 rm -f conftest*
9400
9401 fi
9402
9403 if test $ac_cv_header_stdc = yes; then
9404   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9405   cat >conftest.$ac_ext <<_ACEOF
9406 #line $LINENO "configure"
9407 /* confdefs.h.  */
9408 _ACEOF
9409 cat confdefs.h >>conftest.$ac_ext
9410 cat >>conftest.$ac_ext <<_ACEOF
9411 /* end confdefs.h.  */
9412 #include <stdlib.h>
9413
9414 _ACEOF
9415 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9416   $EGREP "free" >/dev/null 2>&1; then
9417   :
9418 else
9419   ac_cv_header_stdc=no
9420 fi
9421 rm -f conftest*
9422
9423 fi
9424
9425 if test $ac_cv_header_stdc = yes; then
9426   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9427   if test "$cross_compiling" = yes; then
9428   :
9429 else
9430   cat >conftest.$ac_ext <<_ACEOF
9431 #line $LINENO "configure"
9432 /* confdefs.h.  */
9433 _ACEOF
9434 cat confdefs.h >>conftest.$ac_ext
9435 cat >>conftest.$ac_ext <<_ACEOF
9436 /* end confdefs.h.  */
9437 #include <ctype.h>
9438 #if ((' ' & 0x0FF) == 0x020)
9439 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9440 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9441 #else
9442 # define ISLOWER(c) \
9443                    (('a' <= (c) && (c) <= 'i') \
9444                      || ('j' <= (c) && (c) <= 'r') \
9445                      || ('s' <= (c) && (c) <= 'z'))
9446 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9447 #endif
9448
9449 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9450 int
9451 main ()
9452 {
9453   int i;
9454   for (i = 0; i < 256; i++)
9455     if (XOR (islower (i), ISLOWER (i))
9456         || toupper (i) != TOUPPER (i))
9457       exit(2);
9458   exit (0);
9459 }
9460 _ACEOF
9461 rm -f conftest$ac_exeext
9462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9463   (eval $ac_link) 2>&5
9464   ac_status=$?
9465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9466   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9467   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9468   (eval $ac_try) 2>&5
9469   ac_status=$?
9470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9471   (exit $ac_status); }; }; then
9472   :
9473 else
9474   echo "$as_me: program exited with status $ac_status" >&5
9475 echo "$as_me: failed program was:" >&5
9476 sed 's/^/| /' conftest.$ac_ext >&5
9477
9478 ( exit $ac_status )
9479 ac_cv_header_stdc=no
9480 fi
9481 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9482 fi
9483 fi
9484 fi
9485 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9486 echo "${ECHO_T}$ac_cv_header_stdc" >&6
9487 if test $ac_cv_header_stdc = yes; then
9488
9489 cat >>confdefs.h <<\_ACEOF
9490 #define STDC_HEADERS 1
9491 _ACEOF
9492
9493 fi
9494
9495 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
9496 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
9497 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
9498   echo $ECHO_N "(cached) $ECHO_C" >&6
9499 else
9500   cat >conftest.$ac_ext <<_ACEOF
9501 #line $LINENO "configure"
9502 /* confdefs.h.  */
9503 _ACEOF
9504 cat confdefs.h >>conftest.$ac_ext
9505 cat >>conftest.$ac_ext <<_ACEOF
9506 /* end confdefs.h.  */
9507 #include <sys/types.h>
9508 int
9509 main ()
9510 {
9511 return makedev(0, 0);
9512   ;
9513   return 0;
9514 }
9515 _ACEOF
9516 rm -f conftest.$ac_objext conftest$ac_exeext
9517 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9518   (eval $ac_link) 2>&5
9519   ac_status=$?
9520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9521   (exit $ac_status); } &&
9522          { ac_try='test -s conftest$ac_exeext'
9523   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9524   (eval $ac_try) 2>&5
9525   ac_status=$?
9526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9527   (exit $ac_status); }; }; then
9528   ac_cv_header_sys_types_h_makedev=yes
9529 else
9530   echo "$as_me: failed program was:" >&5
9531 sed 's/^/| /' conftest.$ac_ext >&5
9532
9533 ac_cv_header_sys_types_h_makedev=no
9534 fi
9535 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9536
9537 fi
9538 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
9539 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
9540
9541 if test $ac_cv_header_sys_types_h_makedev = no; then
9542 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
9543   echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
9544 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
9545 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
9546   echo $ECHO_N "(cached) $ECHO_C" >&6
9547 fi
9548 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
9549 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
9550 else
9551   # Is the header compilable?
9552 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
9553 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
9554 cat >conftest.$ac_ext <<_ACEOF
9555 #line $LINENO "configure"
9556 /* confdefs.h.  */
9557 _ACEOF
9558 cat confdefs.h >>conftest.$ac_ext
9559 cat >>conftest.$ac_ext <<_ACEOF
9560 /* end confdefs.h.  */
9561 $ac_includes_default
9562 #include <sys/mkdev.h>
9563 _ACEOF
9564 rm -f conftest.$ac_objext
9565 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9566   (eval $ac_compile) 2>&5
9567   ac_status=$?
9568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9569   (exit $ac_status); } &&
9570          { ac_try='test -s conftest.$ac_objext'
9571   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9572   (eval $ac_try) 2>&5
9573   ac_status=$?
9574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9575   (exit $ac_status); }; }; then
9576   ac_header_compiler=yes
9577 else
9578   echo "$as_me: failed program was:" >&5
9579 sed 's/^/| /' conftest.$ac_ext >&5
9580
9581 ac_header_compiler=no
9582 fi
9583 rm -f conftest.$ac_objext conftest.$ac_ext
9584 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9585 echo "${ECHO_T}$ac_header_compiler" >&6
9586
9587 # Is the header present?
9588 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
9589 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
9590 cat >conftest.$ac_ext <<_ACEOF
9591 #line $LINENO "configure"
9592 /* confdefs.h.  */
9593 _ACEOF
9594 cat confdefs.h >>conftest.$ac_ext
9595 cat >>conftest.$ac_ext <<_ACEOF
9596 /* end confdefs.h.  */
9597 #include <sys/mkdev.h>
9598 _ACEOF
9599 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9600   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9601   ac_status=$?
9602   grep -v '^ *+' conftest.er1 >conftest.err
9603   rm -f conftest.er1
9604   cat conftest.err >&5
9605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9606   (exit $ac_status); } >/dev/null; then
9607   if test -s conftest.err; then
9608     ac_cpp_err=$ac_c_preproc_warn_flag
9609   else
9610     ac_cpp_err=
9611   fi
9612 else
9613   ac_cpp_err=yes
9614 fi
9615 if test -z "$ac_cpp_err"; then
9616   ac_header_preproc=yes
9617 else
9618   echo "$as_me: failed program was:" >&5
9619 sed 's/^/| /' conftest.$ac_ext >&5
9620
9621   ac_header_preproc=no
9622 fi
9623 rm -f conftest.err conftest.$ac_ext
9624 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9625 echo "${ECHO_T}$ac_header_preproc" >&6
9626
9627 # So?  What about this header?
9628 case $ac_header_compiler:$ac_header_preproc in
9629   yes:no )
9630     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
9631 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&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   no:yes )
9644     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
9645 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
9646     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
9647 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
9648     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
9649 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
9650     (
9651       cat <<\_ASBOX
9652 ## ------------------------------------ ##
9653 ## Report this to bug-autoconf@gnu.org. ##
9654 ## ------------------------------------ ##
9655 _ASBOX
9656     ) |
9657       sed "s/^/$as_me: WARNING:     /" >&2
9658     ;;
9659 esac
9660 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
9661 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
9662 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
9663   echo $ECHO_N "(cached) $ECHO_C" >&6
9664 else
9665   ac_cv_header_sys_mkdev_h=$ac_header_preproc
9666 fi
9667 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
9668 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
9669
9670 fi
9671 if test $ac_cv_header_sys_mkdev_h = yes; then
9672
9673 cat >>confdefs.h <<\_ACEOF
9674 #define MAJOR_IN_MKDEV 1
9675 _ACEOF
9676
9677 fi
9678
9679
9680
9681   if test $ac_cv_header_sys_mkdev_h = no; then
9682     if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
9683   echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
9684 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
9685 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
9686   echo $ECHO_N "(cached) $ECHO_C" >&6
9687 fi
9688 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
9689 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
9690 else
9691   # Is the header compilable?
9692 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
9693 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
9694 cat >conftest.$ac_ext <<_ACEOF
9695 #line $LINENO "configure"
9696 /* confdefs.h.  */
9697 _ACEOF
9698 cat confdefs.h >>conftest.$ac_ext
9699 cat >>conftest.$ac_ext <<_ACEOF
9700 /* end confdefs.h.  */
9701 $ac_includes_default
9702 #include <sys/sysmacros.h>
9703 _ACEOF
9704 rm -f conftest.$ac_objext
9705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9706   (eval $ac_compile) 2>&5
9707   ac_status=$?
9708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9709   (exit $ac_status); } &&
9710          { ac_try='test -s conftest.$ac_objext'
9711   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9712   (eval $ac_try) 2>&5
9713   ac_status=$?
9714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9715   (exit $ac_status); }; }; then
9716   ac_header_compiler=yes
9717 else
9718   echo "$as_me: failed program was:" >&5
9719 sed 's/^/| /' conftest.$ac_ext >&5
9720
9721 ac_header_compiler=no
9722 fi
9723 rm -f conftest.$ac_objext conftest.$ac_ext
9724 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9725 echo "${ECHO_T}$ac_header_compiler" >&6
9726
9727 # Is the header present?
9728 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
9729 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
9730 cat >conftest.$ac_ext <<_ACEOF
9731 #line $LINENO "configure"
9732 /* confdefs.h.  */
9733 _ACEOF
9734 cat confdefs.h >>conftest.$ac_ext
9735 cat >>conftest.$ac_ext <<_ACEOF
9736 /* end confdefs.h.  */
9737 #include <sys/sysmacros.h>
9738 _ACEOF
9739 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9740   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9741   ac_status=$?
9742   grep -v '^ *+' conftest.er1 >conftest.err
9743   rm -f conftest.er1
9744   cat conftest.err >&5
9745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9746   (exit $ac_status); } >/dev/null; then
9747   if test -s conftest.err; then
9748     ac_cpp_err=$ac_c_preproc_warn_flag
9749   else
9750     ac_cpp_err=
9751   fi
9752 else
9753   ac_cpp_err=yes
9754 fi
9755 if test -z "$ac_cpp_err"; then
9756   ac_header_preproc=yes
9757 else
9758   echo "$as_me: failed program was:" >&5
9759 sed 's/^/| /' conftest.$ac_ext >&5
9760
9761   ac_header_preproc=no
9762 fi
9763 rm -f conftest.err conftest.$ac_ext
9764 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9765 echo "${ECHO_T}$ac_header_preproc" >&6
9766
9767 # So?  What about this header?
9768 case $ac_header_compiler:$ac_header_preproc in
9769   yes:no )
9770     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
9771 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&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   no:yes )
9784     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
9785 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
9786     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
9787 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
9788     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
9789 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
9790     (
9791       cat <<\_ASBOX
9792 ## ------------------------------------ ##
9793 ## Report this to bug-autoconf@gnu.org. ##
9794 ## ------------------------------------ ##
9795 _ASBOX
9796     ) |
9797       sed "s/^/$as_me: WARNING:     /" >&2
9798     ;;
9799 esac
9800 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
9801 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
9802 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
9803   echo $ECHO_N "(cached) $ECHO_C" >&6
9804 else
9805   ac_cv_header_sys_sysmacros_h=$ac_header_preproc
9806 fi
9807 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
9808 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
9809
9810 fi
9811 if test $ac_cv_header_sys_sysmacros_h = yes; then
9812
9813 cat >>confdefs.h <<\_ACEOF
9814 #define MAJOR_IN_SYSMACROS 1
9815 _ACEOF
9816
9817 fi
9818
9819
9820   fi
9821 fi
9822
9823
9824
9825
9826
9827
9828 ac_header_dirent=no
9829 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9830   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9831 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9832 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
9833 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9834   echo $ECHO_N "(cached) $ECHO_C" >&6
9835 else
9836   cat >conftest.$ac_ext <<_ACEOF
9837 #line $LINENO "configure"
9838 /* confdefs.h.  */
9839 _ACEOF
9840 cat confdefs.h >>conftest.$ac_ext
9841 cat >>conftest.$ac_ext <<_ACEOF
9842 /* end confdefs.h.  */
9843 #include <sys/types.h>
9844 #include <$ac_hdr>
9845
9846 int
9847 main ()
9848 {
9849 if ((DIR *) 0)
9850 return 0;
9851   ;
9852   return 0;
9853 }
9854 _ACEOF
9855 rm -f conftest.$ac_objext
9856 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9857   (eval $ac_compile) 2>&5
9858   ac_status=$?
9859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9860   (exit $ac_status); } &&
9861          { ac_try='test -s conftest.$ac_objext'
9862   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9863   (eval $ac_try) 2>&5
9864   ac_status=$?
9865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9866   (exit $ac_status); }; }; then
9867   eval "$as_ac_Header=yes"
9868 else
9869   echo "$as_me: failed program was:" >&5
9870 sed 's/^/| /' conftest.$ac_ext >&5
9871
9872 eval "$as_ac_Header=no"
9873 fi
9874 rm -f conftest.$ac_objext conftest.$ac_ext
9875 fi
9876 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9877 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9878 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9879   cat >>confdefs.h <<_ACEOF
9880 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9881 _ACEOF
9882
9883 ac_header_dirent=$ac_hdr; break
9884 fi
9885
9886 done
9887 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9888 if test $ac_header_dirent = dirent.h; then
9889   echo "$as_me:$LINENO: checking for library containing opendir" >&5
9890 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9891 if test "${ac_cv_search_opendir+set}" = set; then
9892   echo $ECHO_N "(cached) $ECHO_C" >&6
9893 else
9894   ac_func_search_save_LIBS=$LIBS
9895 ac_cv_search_opendir=no
9896 cat >conftest.$ac_ext <<_ACEOF
9897 #line $LINENO "configure"
9898 /* confdefs.h.  */
9899 _ACEOF
9900 cat confdefs.h >>conftest.$ac_ext
9901 cat >>conftest.$ac_ext <<_ACEOF
9902 /* end confdefs.h.  */
9903
9904 /* Override any gcc2 internal prototype to avoid an error.  */
9905 #ifdef __cplusplus
9906 extern "C"
9907 #endif
9908 /* We use char because int might match the return type of a gcc2
9909    builtin and then its argument prototype would still apply.  */
9910 char opendir ();
9911 int
9912 main ()
9913 {
9914 opendir ();
9915   ;
9916   return 0;
9917 }
9918 _ACEOF
9919 rm -f conftest.$ac_objext conftest$ac_exeext
9920 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9921   (eval $ac_link) 2>&5
9922   ac_status=$?
9923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9924   (exit $ac_status); } &&
9925          { ac_try='test -s conftest$ac_exeext'
9926   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9927   (eval $ac_try) 2>&5
9928   ac_status=$?
9929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9930   (exit $ac_status); }; }; then
9931   ac_cv_search_opendir="none required"
9932 else
9933   echo "$as_me: failed program was:" >&5
9934 sed 's/^/| /' conftest.$ac_ext >&5
9935
9936 fi
9937 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9938 if test "$ac_cv_search_opendir" = no; then
9939   for ac_lib in dir; do
9940     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9941     cat >conftest.$ac_ext <<_ACEOF
9942 #line $LINENO "configure"
9943 /* confdefs.h.  */
9944 _ACEOF
9945 cat confdefs.h >>conftest.$ac_ext
9946 cat >>conftest.$ac_ext <<_ACEOF
9947 /* end confdefs.h.  */
9948
9949 /* Override any gcc2 internal prototype to avoid an error.  */
9950 #ifdef __cplusplus
9951 extern "C"
9952 #endif
9953 /* We use char because int might match the return type of a gcc2
9954    builtin and then its argument prototype would still apply.  */
9955 char opendir ();
9956 int
9957 main ()
9958 {
9959 opendir ();
9960   ;
9961   return 0;
9962 }
9963 _ACEOF
9964 rm -f conftest.$ac_objext conftest$ac_exeext
9965 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9966   (eval $ac_link) 2>&5
9967   ac_status=$?
9968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9969   (exit $ac_status); } &&
9970          { ac_try='test -s conftest$ac_exeext'
9971   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9972   (eval $ac_try) 2>&5
9973   ac_status=$?
9974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9975   (exit $ac_status); }; }; then
9976   ac_cv_search_opendir="-l$ac_lib"
9977 break
9978 else
9979   echo "$as_me: failed program was:" >&5
9980 sed 's/^/| /' conftest.$ac_ext >&5
9981
9982 fi
9983 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9984   done
9985 fi
9986 LIBS=$ac_func_search_save_LIBS
9987 fi
9988 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9989 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9990 if test "$ac_cv_search_opendir" != no; then
9991   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9992
9993 fi
9994
9995 else
9996   echo "$as_me:$LINENO: checking for library containing opendir" >&5
9997 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9998 if test "${ac_cv_search_opendir+set}" = set; then
9999   echo $ECHO_N "(cached) $ECHO_C" >&6
10000 else
10001   ac_func_search_save_LIBS=$LIBS
10002 ac_cv_search_opendir=no
10003 cat >conftest.$ac_ext <<_ACEOF
10004 #line $LINENO "configure"
10005 /* confdefs.h.  */
10006 _ACEOF
10007 cat confdefs.h >>conftest.$ac_ext
10008 cat >>conftest.$ac_ext <<_ACEOF
10009 /* end confdefs.h.  */
10010
10011 /* Override any gcc2 internal prototype to avoid an error.  */
10012 #ifdef __cplusplus
10013 extern "C"
10014 #endif
10015 /* We use char because int might match the return type of a gcc2
10016    builtin and then its argument prototype would still apply.  */
10017 char opendir ();
10018 int
10019 main ()
10020 {
10021 opendir ();
10022   ;
10023   return 0;
10024 }
10025 _ACEOF
10026 rm -f conftest.$ac_objext conftest$ac_exeext
10027 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10028   (eval $ac_link) 2>&5
10029   ac_status=$?
10030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10031   (exit $ac_status); } &&
10032          { ac_try='test -s conftest$ac_exeext'
10033   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10034   (eval $ac_try) 2>&5
10035   ac_status=$?
10036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10037   (exit $ac_status); }; }; then
10038   ac_cv_search_opendir="none required"
10039 else
10040   echo "$as_me: failed program was:" >&5
10041 sed 's/^/| /' conftest.$ac_ext >&5
10042
10043 fi
10044 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10045 if test "$ac_cv_search_opendir" = no; then
10046   for ac_lib in x; do
10047     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10048     cat >conftest.$ac_ext <<_ACEOF
10049 #line $LINENO "configure"
10050 /* confdefs.h.  */
10051 _ACEOF
10052 cat confdefs.h >>conftest.$ac_ext
10053 cat >>conftest.$ac_ext <<_ACEOF
10054 /* end confdefs.h.  */
10055
10056 /* Override any gcc2 internal prototype to avoid an error.  */
10057 #ifdef __cplusplus
10058 extern "C"
10059 #endif
10060 /* We use char because int might match the return type of a gcc2
10061    builtin and then its argument prototype would still apply.  */
10062 char opendir ();
10063 int
10064 main ()
10065 {
10066 opendir ();
10067   ;
10068   return 0;
10069 }
10070 _ACEOF
10071 rm -f conftest.$ac_objext conftest$ac_exeext
10072 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10073   (eval $ac_link) 2>&5
10074   ac_status=$?
10075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10076   (exit $ac_status); } &&
10077          { ac_try='test -s conftest$ac_exeext'
10078   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10079   (eval $ac_try) 2>&5
10080   ac_status=$?
10081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10082   (exit $ac_status); }; }; then
10083   ac_cv_search_opendir="-l$ac_lib"
10084 break
10085 else
10086   echo "$as_me: failed program was:" >&5
10087 sed 's/^/| /' conftest.$ac_ext >&5
10088
10089 fi
10090 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10091   done
10092 fi
10093 LIBS=$ac_func_search_save_LIBS
10094 fi
10095 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10096 echo "${ECHO_T}$ac_cv_search_opendir" >&6
10097 if test "$ac_cv_search_opendir" != no; then
10098   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
10099
10100 fi
10101
10102 fi
10103
10104 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
10105 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
10106 if test "${ac_cv_header_stat_broken+set}" = set; then
10107   echo $ECHO_N "(cached) $ECHO_C" >&6
10108 else
10109   cat >conftest.$ac_ext <<_ACEOF
10110 #line $LINENO "configure"
10111 /* confdefs.h.  */
10112 _ACEOF
10113 cat confdefs.h >>conftest.$ac_ext
10114 cat >>conftest.$ac_ext <<_ACEOF
10115 /* end confdefs.h.  */
10116 #include <sys/types.h>
10117 #include <sys/stat.h>
10118
10119 #if defined(S_ISBLK) && defined(S_IFDIR)
10120 # if S_ISBLK (S_IFDIR)
10121 You lose.
10122 # endif
10123 #endif
10124
10125 #if defined(S_ISBLK) && defined(S_IFCHR)
10126 # if S_ISBLK (S_IFCHR)
10127 You lose.
10128 # endif
10129 #endif
10130
10131 #if defined(S_ISLNK) && defined(S_IFREG)
10132 # if S_ISLNK (S_IFREG)
10133 You lose.
10134 # endif
10135 #endif
10136
10137 #if defined(S_ISSOCK) && defined(S_IFREG)
10138 # if S_ISSOCK (S_IFREG)
10139 You lose.
10140 # endif
10141 #endif
10142
10143 _ACEOF
10144 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10145   $EGREP "You lose" >/dev/null 2>&1; then
10146   ac_cv_header_stat_broken=yes
10147 else
10148   ac_cv_header_stat_broken=no
10149 fi
10150 rm -f conftest*
10151
10152 fi
10153 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
10154 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
10155 if test $ac_cv_header_stat_broken = yes; then
10156
10157 cat >>confdefs.h <<\_ACEOF
10158 #define STAT_MACROS_BROKEN 1
10159 _ACEOF
10160
10161 fi
10162
10163 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
10164 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
10165 if test "${ac_cv_header_sys_wait_h+set}" = set; then
10166   echo $ECHO_N "(cached) $ECHO_C" >&6
10167 else
10168   cat >conftest.$ac_ext <<_ACEOF
10169 #line $LINENO "configure"
10170 /* confdefs.h.  */
10171 _ACEOF
10172 cat confdefs.h >>conftest.$ac_ext
10173 cat >>conftest.$ac_ext <<_ACEOF
10174 /* end confdefs.h.  */
10175 #include <sys/types.h>
10176 #include <sys/wait.h>
10177 #ifndef WEXITSTATUS
10178 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
10179 #endif
10180 #ifndef WIFEXITED
10181 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
10182 #endif
10183
10184 int
10185 main ()
10186 {
10187   int s;
10188   wait (&s);
10189   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
10190   ;
10191   return 0;
10192 }
10193 _ACEOF
10194 rm -f conftest.$ac_objext
10195 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10196   (eval $ac_compile) 2>&5
10197   ac_status=$?
10198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10199   (exit $ac_status); } &&
10200          { ac_try='test -s conftest.$ac_objext'
10201   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10202   (eval $ac_try) 2>&5
10203   ac_status=$?
10204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10205   (exit $ac_status); }; }; then
10206   ac_cv_header_sys_wait_h=yes
10207 else
10208   echo "$as_me: failed program was:" >&5
10209 sed 's/^/| /' conftest.$ac_ext >&5
10210
10211 ac_cv_header_sys_wait_h=no
10212 fi
10213 rm -f conftest.$ac_objext conftest.$ac_ext
10214 fi
10215 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
10216 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
10217 if test $ac_cv_header_sys_wait_h = yes; then
10218
10219 cat >>confdefs.h <<\_ACEOF
10220 #define HAVE_SYS_WAIT_H 1
10221 _ACEOF
10222
10223 fi
10224
10225 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
10226 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
10227 if test "${ac_cv_header_time+set}" = set; then
10228   echo $ECHO_N "(cached) $ECHO_C" >&6
10229 else
10230   cat >conftest.$ac_ext <<_ACEOF
10231 #line $LINENO "configure"
10232 /* confdefs.h.  */
10233 _ACEOF
10234 cat confdefs.h >>conftest.$ac_ext
10235 cat >>conftest.$ac_ext <<_ACEOF
10236 /* end confdefs.h.  */
10237 #include <sys/types.h>
10238 #include <sys/time.h>
10239 #include <time.h>
10240
10241 int
10242 main ()
10243 {
10244 if ((struct tm *) 0)
10245 return 0;
10246   ;
10247   return 0;
10248 }
10249 _ACEOF
10250 rm -f conftest.$ac_objext
10251 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10252   (eval $ac_compile) 2>&5
10253   ac_status=$?
10254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10255   (exit $ac_status); } &&
10256          { ac_try='test -s conftest.$ac_objext'
10257   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10258   (eval $ac_try) 2>&5
10259   ac_status=$?
10260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10261   (exit $ac_status); }; }; then
10262   ac_cv_header_time=yes
10263 else
10264   echo "$as_me: failed program was:" >&5
10265 sed 's/^/| /' conftest.$ac_ext >&5
10266
10267 ac_cv_header_time=no
10268 fi
10269 rm -f conftest.$ac_objext conftest.$ac_ext
10270 fi
10271 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
10272 echo "${ECHO_T}$ac_cv_header_time" >&6
10273 if test $ac_cv_header_time = yes; then
10274
10275 cat >>confdefs.h <<\_ACEOF
10276 #define TIME_WITH_SYS_TIME 1
10277 _ACEOF
10278
10279 fi
10280
10281
10282 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
10283 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
10284 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
10285   echo $ECHO_N "(cached) $ECHO_C" >&6
10286 else
10287   cat >conftest.$ac_ext <<_ACEOF
10288 #line $LINENO "configure"
10289 /* confdefs.h.  */
10290 _ACEOF
10291 cat confdefs.h >>conftest.$ac_ext
10292 cat >>conftest.$ac_ext <<_ACEOF
10293 /* end confdefs.h.  */
10294 $ac_includes_default
10295 int
10296 main ()
10297 {
10298 static struct stat ac_aggr;
10299 if (ac_aggr.st_blksize)
10300 return 0;
10301   ;
10302   return 0;
10303 }
10304 _ACEOF
10305 rm -f conftest.$ac_objext
10306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10307   (eval $ac_compile) 2>&5
10308   ac_status=$?
10309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10310   (exit $ac_status); } &&
10311          { ac_try='test -s conftest.$ac_objext'
10312   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10313   (eval $ac_try) 2>&5
10314   ac_status=$?
10315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10316   (exit $ac_status); }; }; then
10317   ac_cv_member_struct_stat_st_blksize=yes
10318 else
10319   echo "$as_me: failed program was:" >&5
10320 sed 's/^/| /' conftest.$ac_ext >&5
10321
10322 cat >conftest.$ac_ext <<_ACEOF
10323 #line $LINENO "configure"
10324 /* confdefs.h.  */
10325 _ACEOF
10326 cat confdefs.h >>conftest.$ac_ext
10327 cat >>conftest.$ac_ext <<_ACEOF
10328 /* end confdefs.h.  */
10329 $ac_includes_default
10330 int
10331 main ()
10332 {
10333 static struct stat ac_aggr;
10334 if (sizeof ac_aggr.st_blksize)
10335 return 0;
10336   ;
10337   return 0;
10338 }
10339 _ACEOF
10340 rm -f conftest.$ac_objext
10341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10342   (eval $ac_compile) 2>&5
10343   ac_status=$?
10344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10345   (exit $ac_status); } &&
10346          { ac_try='test -s conftest.$ac_objext'
10347   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10348   (eval $ac_try) 2>&5
10349   ac_status=$?
10350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10351   (exit $ac_status); }; }; then
10352   ac_cv_member_struct_stat_st_blksize=yes
10353 else
10354   echo "$as_me: failed program was:" >&5
10355 sed 's/^/| /' conftest.$ac_ext >&5
10356
10357 ac_cv_member_struct_stat_st_blksize=no
10358 fi
10359 rm -f conftest.$ac_objext conftest.$ac_ext
10360 fi
10361 rm -f conftest.$ac_objext conftest.$ac_ext
10362 fi
10363 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
10364 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
10365 if test $ac_cv_member_struct_stat_st_blksize = yes; then
10366
10367 cat >>confdefs.h <<_ACEOF
10368 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
10369 _ACEOF
10370
10371
10372 cat >>confdefs.h <<\_ACEOF
10373 #define HAVE_ST_BLKSIZE 1
10374 _ACEOF
10375
10376 fi
10377
10378
10379 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
10380 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
10381 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
10382   echo $ECHO_N "(cached) $ECHO_C" >&6
10383 else
10384   cat >conftest.$ac_ext <<_ACEOF
10385 #line $LINENO "configure"
10386 /* confdefs.h.  */
10387 _ACEOF
10388 cat confdefs.h >>conftest.$ac_ext
10389 cat >>conftest.$ac_ext <<_ACEOF
10390 /* end confdefs.h.  */
10391 $ac_includes_default
10392 int
10393 main ()
10394 {
10395 static struct stat ac_aggr;
10396 if (ac_aggr.st_blocks)
10397 return 0;
10398   ;
10399   return 0;
10400 }
10401 _ACEOF
10402 rm -f conftest.$ac_objext
10403 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10404   (eval $ac_compile) 2>&5
10405   ac_status=$?
10406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10407   (exit $ac_status); } &&
10408          { ac_try='test -s conftest.$ac_objext'
10409   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10410   (eval $ac_try) 2>&5
10411   ac_status=$?
10412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10413   (exit $ac_status); }; }; then
10414   ac_cv_member_struct_stat_st_blocks=yes
10415 else
10416   echo "$as_me: failed program was:" >&5
10417 sed 's/^/| /' conftest.$ac_ext >&5
10418
10419 cat >conftest.$ac_ext <<_ACEOF
10420 #line $LINENO "configure"
10421 /* confdefs.h.  */
10422 _ACEOF
10423 cat confdefs.h >>conftest.$ac_ext
10424 cat >>conftest.$ac_ext <<_ACEOF
10425 /* end confdefs.h.  */
10426 $ac_includes_default
10427 int
10428 main ()
10429 {
10430 static struct stat ac_aggr;
10431 if (sizeof ac_aggr.st_blocks)
10432 return 0;
10433   ;
10434   return 0;
10435 }
10436 _ACEOF
10437 rm -f conftest.$ac_objext
10438 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10439   (eval $ac_compile) 2>&5
10440   ac_status=$?
10441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10442   (exit $ac_status); } &&
10443          { ac_try='test -s conftest.$ac_objext'
10444   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10445   (eval $ac_try) 2>&5
10446   ac_status=$?
10447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10448   (exit $ac_status); }; }; then
10449   ac_cv_member_struct_stat_st_blocks=yes
10450 else
10451   echo "$as_me: failed program was:" >&5
10452 sed 's/^/| /' conftest.$ac_ext >&5
10453
10454 ac_cv_member_struct_stat_st_blocks=no
10455 fi
10456 rm -f conftest.$ac_objext conftest.$ac_ext
10457 fi
10458 rm -f conftest.$ac_objext conftest.$ac_ext
10459 fi
10460 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
10461 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
10462 if test $ac_cv_member_struct_stat_st_blocks = yes; then
10463
10464 cat >>confdefs.h <<_ACEOF
10465 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
10466 _ACEOF
10467
10468
10469 cat >>confdefs.h <<\_ACEOF
10470 #define HAVE_ST_BLOCKS 1
10471 _ACEOF
10472
10473 else
10474   LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
10475 fi
10476
10477
10478 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
10479 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
10480 if test "${ac_cv_struct_tm+set}" = set; then
10481   echo $ECHO_N "(cached) $ECHO_C" >&6
10482 else
10483   cat >conftest.$ac_ext <<_ACEOF
10484 #line $LINENO "configure"
10485 /* confdefs.h.  */
10486 _ACEOF
10487 cat confdefs.h >>conftest.$ac_ext
10488 cat >>conftest.$ac_ext <<_ACEOF
10489 /* end confdefs.h.  */
10490 #include <sys/types.h>
10491 #include <time.h>
10492
10493 int
10494 main ()
10495 {
10496 struct tm *tp; tp->tm_sec;
10497   ;
10498   return 0;
10499 }
10500 _ACEOF
10501 rm -f conftest.$ac_objext
10502 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10503   (eval $ac_compile) 2>&5
10504   ac_status=$?
10505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10506   (exit $ac_status); } &&
10507          { ac_try='test -s conftest.$ac_objext'
10508   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10509   (eval $ac_try) 2>&5
10510   ac_status=$?
10511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10512   (exit $ac_status); }; }; then
10513   ac_cv_struct_tm=time.h
10514 else
10515   echo "$as_me: failed program was:" >&5
10516 sed 's/^/| /' conftest.$ac_ext >&5
10517
10518 ac_cv_struct_tm=sys/time.h
10519 fi
10520 rm -f conftest.$ac_objext conftest.$ac_ext
10521 fi
10522 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
10523 echo "${ECHO_T}$ac_cv_struct_tm" >&6
10524 if test $ac_cv_struct_tm = sys/time.h; then
10525
10526 cat >>confdefs.h <<\_ACEOF
10527 #define TM_IN_SYS_TIME 1
10528 _ACEOF
10529
10530 fi
10531
10532 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
10533 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
10534 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
10535   echo $ECHO_N "(cached) $ECHO_C" >&6
10536 else
10537   cat >conftest.$ac_ext <<_ACEOF
10538 #line $LINENO "configure"
10539 /* confdefs.h.  */
10540 _ACEOF
10541 cat confdefs.h >>conftest.$ac_ext
10542 cat >>conftest.$ac_ext <<_ACEOF
10543 /* end confdefs.h.  */
10544 #include <sys/types.h>
10545 #include <$ac_cv_struct_tm>
10546
10547
10548 int
10549 main ()
10550 {
10551 static struct tm ac_aggr;
10552 if (ac_aggr.tm_zone)
10553 return 0;
10554   ;
10555   return 0;
10556 }
10557 _ACEOF
10558 rm -f conftest.$ac_objext
10559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10560   (eval $ac_compile) 2>&5
10561   ac_status=$?
10562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10563   (exit $ac_status); } &&
10564          { ac_try='test -s conftest.$ac_objext'
10565   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10566   (eval $ac_try) 2>&5
10567   ac_status=$?
10568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10569   (exit $ac_status); }; }; then
10570   ac_cv_member_struct_tm_tm_zone=yes
10571 else
10572   echo "$as_me: failed program was:" >&5
10573 sed 's/^/| /' conftest.$ac_ext >&5
10574
10575 cat >conftest.$ac_ext <<_ACEOF
10576 #line $LINENO "configure"
10577 /* confdefs.h.  */
10578 _ACEOF
10579 cat confdefs.h >>conftest.$ac_ext
10580 cat >>conftest.$ac_ext <<_ACEOF
10581 /* end confdefs.h.  */
10582 #include <sys/types.h>
10583 #include <$ac_cv_struct_tm>
10584
10585
10586 int
10587 main ()
10588 {
10589 static struct tm ac_aggr;
10590 if (sizeof ac_aggr.tm_zone)
10591 return 0;
10592   ;
10593   return 0;
10594 }
10595 _ACEOF
10596 rm -f conftest.$ac_objext
10597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10598   (eval $ac_compile) 2>&5
10599   ac_status=$?
10600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10601   (exit $ac_status); } &&
10602          { ac_try='test -s conftest.$ac_objext'
10603   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10604   (eval $ac_try) 2>&5
10605   ac_status=$?
10606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10607   (exit $ac_status); }; }; then
10608   ac_cv_member_struct_tm_tm_zone=yes
10609 else
10610   echo "$as_me: failed program was:" >&5
10611 sed 's/^/| /' conftest.$ac_ext >&5
10612
10613 ac_cv_member_struct_tm_tm_zone=no
10614 fi
10615 rm -f conftest.$ac_objext conftest.$ac_ext
10616 fi
10617 rm -f conftest.$ac_objext conftest.$ac_ext
10618 fi
10619 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
10620 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
10621 if test $ac_cv_member_struct_tm_tm_zone = yes; then
10622
10623 cat >>confdefs.h <<_ACEOF
10624 #define HAVE_STRUCT_TM_TM_ZONE 1
10625 _ACEOF
10626
10627
10628 fi
10629
10630 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
10631
10632 cat >>confdefs.h <<\_ACEOF
10633 #define HAVE_TM_ZONE 1
10634 _ACEOF
10635
10636 else
10637   echo "$as_me:$LINENO: checking for tzname" >&5
10638 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
10639 if test "${ac_cv_var_tzname+set}" = set; then
10640   echo $ECHO_N "(cached) $ECHO_C" >&6
10641 else
10642   cat >conftest.$ac_ext <<_ACEOF
10643 #line $LINENO "configure"
10644 /* confdefs.h.  */
10645 _ACEOF
10646 cat confdefs.h >>conftest.$ac_ext
10647 cat >>conftest.$ac_ext <<_ACEOF
10648 /* end confdefs.h.  */
10649 #include <time.h>
10650 #ifndef tzname /* For SGI.  */
10651 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
10652 #endif
10653
10654 int
10655 main ()
10656 {
10657 atoi(*tzname);
10658   ;
10659   return 0;
10660 }
10661 _ACEOF
10662 rm -f conftest.$ac_objext conftest$ac_exeext
10663 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10664   (eval $ac_link) 2>&5
10665   ac_status=$?
10666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10667   (exit $ac_status); } &&
10668          { ac_try='test -s conftest$ac_exeext'
10669   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10670   (eval $ac_try) 2>&5
10671   ac_status=$?
10672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10673   (exit $ac_status); }; }; then
10674   ac_cv_var_tzname=yes
10675 else
10676   echo "$as_me: failed program was:" >&5
10677 sed 's/^/| /' conftest.$ac_ext >&5
10678
10679 ac_cv_var_tzname=no
10680 fi
10681 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10682 fi
10683 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
10684 echo "${ECHO_T}$ac_cv_var_tzname" >&6
10685   if test $ac_cv_var_tzname = yes; then
10686
10687 cat >>confdefs.h <<\_ACEOF
10688 #define HAVE_TZNAME 1
10689 _ACEOF
10690
10691   fi
10692 fi
10693
10694
10695 echo "$as_me:$LINENO: checking for utime.h" >&5
10696 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6
10697 if test "${ba_cv_header_utime_h+set}" = set; then
10698   echo $ECHO_N "(cached) $ECHO_C" >&6
10699 else
10700   cat >conftest.$ac_ext <<_ACEOF
10701 #line $LINENO "configure"
10702 /* confdefs.h.  */
10703 _ACEOF
10704 cat confdefs.h >>conftest.$ac_ext
10705 cat >>conftest.$ac_ext <<_ACEOF
10706 /* end confdefs.h.  */
10707
10708 #include <sys/types.h>
10709 #include <utime.h>
10710 int
10711 main ()
10712 {
10713 struct utimbuf foo
10714   ;
10715   return 0;
10716 }
10717 _ACEOF
10718 rm -f conftest.$ac_objext
10719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10720   (eval $ac_compile) 2>&5
10721   ac_status=$?
10722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10723   (exit $ac_status); } &&
10724          { ac_try='test -s conftest.$ac_objext'
10725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10726   (eval $ac_try) 2>&5
10727   ac_status=$?
10728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10729   (exit $ac_status); }; }; then
10730   ba_cv_header_utime_h=yes
10731 else
10732   echo "$as_me: failed program was:" >&5
10733 sed 's/^/| /' conftest.$ac_ext >&5
10734
10735 ba_cv_header_utime_h=no
10736 fi
10737 rm -f conftest.$ac_objext conftest.$ac_ext
10738 fi
10739 echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
10740 echo "${ECHO_T}$ba_cv_header_utime_h" >&6
10741 test $ba_cv_header_utime_h = yes && cat >>confdefs.h <<\_ACEOF
10742 #define HAVE_UTIME_H 1
10743 _ACEOF
10744
10745
10746 echo "$as_me:$LINENO: checking for socklen_t" >&5
10747 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
10748 if test "${ba_cv_header_socklen_t+set}" = set; then
10749   echo $ECHO_N "(cached) $ECHO_C" >&6
10750 else
10751   cat >conftest.$ac_ext <<_ACEOF
10752 #line $LINENO "configure"
10753 /* confdefs.h.  */
10754 _ACEOF
10755 cat confdefs.h >>conftest.$ac_ext
10756 cat >>conftest.$ac_ext <<_ACEOF
10757 /* end confdefs.h.  */
10758
10759 #include <sys/types.h>
10760 #include <sys/socket.h>
10761 int
10762 main ()
10763 {
10764 socklen_t x
10765   ;
10766   return 0;
10767 }
10768 _ACEOF
10769 rm -f conftest.$ac_objext
10770 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10771   (eval $ac_compile) 2>&5
10772   ac_status=$?
10773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10774   (exit $ac_status); } &&
10775          { ac_try='test -s conftest.$ac_objext'
10776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10777   (eval $ac_try) 2>&5
10778   ac_status=$?
10779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10780   (exit $ac_status); }; }; then
10781   ba_cv_header_socklen_t=yes
10782 else
10783   echo "$as_me: failed program was:" >&5
10784 sed 's/^/| /' conftest.$ac_ext >&5
10785
10786 ba_cv_header_socklen_t=no
10787 fi
10788 rm -f conftest.$ac_objext conftest.$ac_ext
10789 fi
10790 echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
10791 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6
10792 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
10793 #define HAVE_SOCKLEN_T 1
10794 _ACEOF
10795
10796
10797 echo "$as_me:$LINENO: checking for bigendian" >&5
10798 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6
10799 if test "${ba_cv_bigendian+set}" = set; then
10800   echo $ECHO_N "(cached) $ECHO_C" >&6
10801 else
10802   if test "$cross_compiling" = yes; then
10803   ba_cv_bigendian=no
10804 else
10805   cat >conftest.$ac_ext <<_ACEOF
10806 #line $LINENO "configure"
10807 /* confdefs.h.  */
10808 _ACEOF
10809 cat confdefs.h >>conftest.$ac_ext
10810 cat >>conftest.$ac_ext <<_ACEOF
10811 /* end confdefs.h.  */
10812 main(){long a=1L; char *p=(char *)&a; exit(*p);}
10813 _ACEOF
10814 rm -f conftest$ac_exeext
10815 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10816   (eval $ac_link) 2>&5
10817   ac_status=$?
10818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10819   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10820   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10821   (eval $ac_try) 2>&5
10822   ac_status=$?
10823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10824   (exit $ac_status); }; }; then
10825   ba_cv_bigendian=yes
10826 else
10827   echo "$as_me: program exited with status $ac_status" >&5
10828 echo "$as_me: failed program was:" >&5
10829 sed 's/^/| /' conftest.$ac_ext >&5
10830
10831 ( exit $ac_status )
10832 ba_cv_bigendian=no
10833 fi
10834 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10835 fi
10836 fi
10837 echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
10838 echo "${ECHO_T}$ba_cv_bigendian" >&6
10839 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
10840 #define HAVE_BIGENDIAN 1
10841 _ACEOF
10842
10843
10844
10845 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
10846 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
10847 if test "${ac_cv_c_const+set}" = set; then
10848   echo $ECHO_N "(cached) $ECHO_C" >&6
10849 else
10850   cat >conftest.$ac_ext <<_ACEOF
10851 #line $LINENO "configure"
10852 /* confdefs.h.  */
10853 _ACEOF
10854 cat confdefs.h >>conftest.$ac_ext
10855 cat >>conftest.$ac_ext <<_ACEOF
10856 /* end confdefs.h.  */
10857
10858 int
10859 main ()
10860 {
10861 /* FIXME: Include the comments suggested by Paul. */
10862 #ifndef __cplusplus
10863   /* Ultrix mips cc rejects this.  */
10864   typedef int charset[2];
10865   const charset x;
10866   /* SunOS 4.1.1 cc rejects this.  */
10867   char const *const *ccp;
10868   char **p;
10869   /* NEC SVR4.0.2 mips cc rejects this.  */
10870   struct point {int x, y;};
10871   static struct point const zero = {0,0};
10872   /* AIX XL C 1.02.0.0 rejects this.
10873      It does not let you subtract one const X* pointer from another in
10874      an arm of an if-expression whose if-part is not a constant
10875      expression */
10876   const char *g = "string";
10877   ccp = &g + (g ? g-g : 0);
10878   /* HPUX 7.0 cc rejects these. */
10879   ++ccp;
10880   p = (char**) ccp;
10881   ccp = (char const *const *) p;
10882   { /* SCO 3.2v4 cc rejects this.  */
10883     char *t;
10884     char const *s = 0 ? (char *) 0 : (char const *) 0;
10885
10886     *t++ = 0;
10887   }
10888   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
10889     int x[] = {25, 17};
10890     const int *foo = &x[0];
10891     ++foo;
10892   }
10893   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10894     typedef const int *iptr;
10895     iptr p = 0;
10896     ++p;
10897   }
10898   { /* AIX XL C 1.02.0.0 rejects this saying
10899        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10900     struct s { int j; const int *ap[3]; };
10901     struct s *b; b->j = 5;
10902   }
10903   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10904     const int foo = 10;
10905   }
10906 #endif
10907
10908   ;
10909   return 0;
10910 }
10911 _ACEOF
10912 rm -f conftest.$ac_objext
10913 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10914   (eval $ac_compile) 2>&5
10915   ac_status=$?
10916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10917   (exit $ac_status); } &&
10918          { ac_try='test -s conftest.$ac_objext'
10919   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10920   (eval $ac_try) 2>&5
10921   ac_status=$?
10922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10923   (exit $ac_status); }; }; then
10924   ac_cv_c_const=yes
10925 else
10926   echo "$as_me: failed program was:" >&5
10927 sed 's/^/| /' conftest.$ac_ext >&5
10928
10929 ac_cv_c_const=no
10930 fi
10931 rm -f conftest.$ac_objext conftest.$ac_ext
10932 fi
10933 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
10934 echo "${ECHO_T}$ac_cv_c_const" >&6
10935 if test $ac_cv_c_const = no; then
10936
10937 cat >>confdefs.h <<\_ACEOF
10938 #define const
10939 _ACEOF
10940
10941 fi
10942
10943
10944
10945 echo "$as_me:$LINENO: checking how to get filesystem type" >&5
10946 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6
10947 fstype=no
10948 # The order of these tests is important.
10949 cat >conftest.$ac_ext <<_ACEOF
10950 #line $LINENO "configure"
10951 /* confdefs.h.  */
10952 _ACEOF
10953 cat confdefs.h >>conftest.$ac_ext
10954 cat >>conftest.$ac_ext <<_ACEOF
10955 /* end confdefs.h.  */
10956 #include <sys/statvfs.h>
10957 #include <sys/fstyp.h>
10958 _ACEOF
10959 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10960   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10961   ac_status=$?
10962   grep -v '^ *+' conftest.er1 >conftest.err
10963   rm -f conftest.er1
10964   cat conftest.err >&5
10965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10966   (exit $ac_status); } >/dev/null; then
10967   if test -s conftest.err; then
10968     ac_cpp_err=$ac_c_preproc_warn_flag
10969   else
10970     ac_cpp_err=
10971   fi
10972 else
10973   ac_cpp_err=yes
10974 fi
10975 if test -z "$ac_cpp_err"; then
10976   cat >>confdefs.h <<\_ACEOF
10977 #define FSTYPE_STATVFS 1
10978 _ACEOF
10979  fstype=SVR4
10980 else
10981   echo "$as_me: failed program was:" >&5
10982 sed 's/^/| /' conftest.$ac_ext >&5
10983
10984
10985 fi
10986 rm -f conftest.err conftest.$ac_ext
10987 if test $fstype = no; then
10988 cat >conftest.$ac_ext <<_ACEOF
10989 #line $LINENO "configure"
10990 /* confdefs.h.  */
10991 _ACEOF
10992 cat confdefs.h >>conftest.$ac_ext
10993 cat >>conftest.$ac_ext <<_ACEOF
10994 /* end confdefs.h.  */
10995 #include <sys/statfs.h>
10996 #include <sys/fstyp.h>
10997 _ACEOF
10998 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10999   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11000   ac_status=$?
11001   grep -v '^ *+' conftest.er1 >conftest.err
11002   rm -f conftest.er1
11003   cat conftest.err >&5
11004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11005   (exit $ac_status); } >/dev/null; then
11006   if test -s conftest.err; then
11007     ac_cpp_err=$ac_c_preproc_warn_flag
11008   else
11009     ac_cpp_err=
11010   fi
11011 else
11012   ac_cpp_err=yes
11013 fi
11014 if test -z "$ac_cpp_err"; then
11015   cat >>confdefs.h <<\_ACEOF
11016 #define FSTYPE_USG_STATFS 1
11017 _ACEOF
11018  fstype=SVR3
11019 else
11020   echo "$as_me: failed program was:" >&5
11021 sed 's/^/| /' conftest.$ac_ext >&5
11022
11023
11024 fi
11025 rm -f conftest.err conftest.$ac_ext
11026 fi
11027 if test $fstype = no; then
11028 cat >conftest.$ac_ext <<_ACEOF
11029 #line $LINENO "configure"
11030 /* confdefs.h.  */
11031 _ACEOF
11032 cat confdefs.h >>conftest.$ac_ext
11033 cat >>conftest.$ac_ext <<_ACEOF
11034 /* end confdefs.h.  */
11035 #include <sys/statfs.h>
11036 #include <sys/vmount.h>
11037 _ACEOF
11038 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11039   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11040   ac_status=$?
11041   grep -v '^ *+' conftest.er1 >conftest.err
11042   rm -f conftest.er1
11043   cat conftest.err >&5
11044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11045   (exit $ac_status); } >/dev/null; then
11046   if test -s conftest.err; then
11047     ac_cpp_err=$ac_c_preproc_warn_flag
11048   else
11049     ac_cpp_err=
11050   fi
11051 else
11052   ac_cpp_err=yes
11053 fi
11054 if test -z "$ac_cpp_err"; then
11055   cat >>confdefs.h <<\_ACEOF
11056 #define FSTYPE_AIX_STATFS 1
11057 _ACEOF
11058  fstype=AIX
11059 else
11060   echo "$as_me: failed program was:" >&5
11061 sed 's/^/| /' conftest.$ac_ext >&5
11062
11063
11064 fi
11065 rm -f conftest.err conftest.$ac_ext
11066 fi
11067 if test $fstype = no; then
11068 cat >conftest.$ac_ext <<_ACEOF
11069 #line $LINENO "configure"
11070 /* confdefs.h.  */
11071 _ACEOF
11072 cat confdefs.h >>conftest.$ac_ext
11073 cat >>conftest.$ac_ext <<_ACEOF
11074 /* end confdefs.h.  */
11075 #include <mntent.h>
11076 _ACEOF
11077 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11078   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11079   ac_status=$?
11080   grep -v '^ *+' conftest.er1 >conftest.err
11081   rm -f conftest.er1
11082   cat conftest.err >&5
11083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11084   (exit $ac_status); } >/dev/null; then
11085   if test -s conftest.err; then
11086     ac_cpp_err=$ac_c_preproc_warn_flag
11087   else
11088     ac_cpp_err=
11089   fi
11090 else
11091   ac_cpp_err=yes
11092 fi
11093 if test -z "$ac_cpp_err"; then
11094   cat >>confdefs.h <<\_ACEOF
11095 #define FSTYPE_MNTENT 1
11096 _ACEOF
11097  fstype=4.3BSD
11098 else
11099   echo "$as_me: failed program was:" >&5
11100 sed 's/^/| /' conftest.$ac_ext >&5
11101
11102
11103 fi
11104 rm -f conftest.err conftest.$ac_ext
11105 fi
11106 if test $fstype = no; then
11107 cat >conftest.$ac_ext <<_ACEOF
11108 #line $LINENO "configure"
11109 /* confdefs.h.  */
11110 _ACEOF
11111 cat confdefs.h >>conftest.$ac_ext
11112 cat >>conftest.$ac_ext <<_ACEOF
11113 /* end confdefs.h.  */
11114 #include <sys/mount.h>
11115
11116 _ACEOF
11117 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11118   $EGREP "f_type;" >/dev/null 2>&1; then
11119   cat >>confdefs.h <<\_ACEOF
11120 #define FSTYPE_STATFS 1
11121 _ACEOF
11122  fstype=4.4BSD/OSF1
11123 fi
11124 rm -f conftest*
11125
11126 fi
11127 if test $fstype = no; then
11128 cat >conftest.$ac_ext <<_ACEOF
11129 #line $LINENO "configure"
11130 /* confdefs.h.  */
11131 _ACEOF
11132 cat confdefs.h >>conftest.$ac_ext
11133 cat >>conftest.$ac_ext <<_ACEOF
11134 /* end confdefs.h.  */
11135 #include <sys/mount.h>
11136 #include <sys/fs_types.h>
11137 _ACEOF
11138 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11139   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11140   ac_status=$?
11141   grep -v '^ *+' conftest.er1 >conftest.err
11142   rm -f conftest.er1
11143   cat conftest.err >&5
11144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11145   (exit $ac_status); } >/dev/null; then
11146   if test -s conftest.err; then
11147     ac_cpp_err=$ac_c_preproc_warn_flag
11148   else
11149     ac_cpp_err=
11150   fi
11151 else
11152   ac_cpp_err=yes
11153 fi
11154 if test -z "$ac_cpp_err"; then
11155   cat >>confdefs.h <<\_ACEOF
11156 #define FSTYPE_GETMNT 1
11157 _ACEOF
11158  fstype=Ultrix
11159 else
11160   echo "$as_me: failed program was:" >&5
11161 sed 's/^/| /' conftest.$ac_ext >&5
11162
11163
11164 fi
11165 rm -f conftest.err conftest.$ac_ext
11166 fi
11167 echo "$as_me:$LINENO: result: $fstype" >&5
11168 echo "${ECHO_T}$fstype" >&6
11169
11170 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
11171 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
11172 if test "${ac_cv_type_signal+set}" = set; then
11173   echo $ECHO_N "(cached) $ECHO_C" >&6
11174 else
11175   cat >conftest.$ac_ext <<_ACEOF
11176 #line $LINENO "configure"
11177 /* confdefs.h.  */
11178 _ACEOF
11179 cat confdefs.h >>conftest.$ac_ext
11180 cat >>conftest.$ac_ext <<_ACEOF
11181 /* end confdefs.h.  */
11182 #include <sys/types.h>
11183 #include <signal.h>
11184 #ifdef signal
11185 # undef signal
11186 #endif
11187 #ifdef __cplusplus
11188 extern "C" void (*signal (int, void (*)(int)))(int);
11189 #else
11190 void (*signal ()) ();
11191 #endif
11192
11193 int
11194 main ()
11195 {
11196 int i;
11197   ;
11198   return 0;
11199 }
11200 _ACEOF
11201 rm -f conftest.$ac_objext
11202 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11203   (eval $ac_compile) 2>&5
11204   ac_status=$?
11205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11206   (exit $ac_status); } &&
11207          { ac_try='test -s conftest.$ac_objext'
11208   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11209   (eval $ac_try) 2>&5
11210   ac_status=$?
11211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11212   (exit $ac_status); }; }; then
11213   ac_cv_type_signal=void
11214 else
11215   echo "$as_me: failed program was:" >&5
11216 sed 's/^/| /' conftest.$ac_ext >&5
11217
11218 ac_cv_type_signal=int
11219 fi
11220 rm -f conftest.$ac_objext conftest.$ac_ext
11221 fi
11222 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
11223 echo "${ECHO_T}$ac_cv_type_signal" >&6
11224
11225 cat >>confdefs.h <<_ACEOF
11226 #define RETSIGTYPE $ac_cv_type_signal
11227 _ACEOF
11228
11229
11230
11231 echo "$as_me:$LINENO: checking for type of signal functions" >&5
11232 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6
11233 if test "${bash_cv_signal_vintage+set}" = set; then
11234   echo $ECHO_N "(cached) $ECHO_C" >&6
11235 else
11236
11237   cat >conftest.$ac_ext <<_ACEOF
11238 #line $LINENO "configure"
11239 /* confdefs.h.  */
11240 _ACEOF
11241 cat confdefs.h >>conftest.$ac_ext
11242 cat >>conftest.$ac_ext <<_ACEOF
11243 /* end confdefs.h.  */
11244 #include <signal.h>
11245 int
11246 main ()
11247 {
11248
11249     sigset_t ss;
11250     struct sigaction sa;
11251     sigemptyset(&ss); sigsuspend(&ss);
11252     sigaction(SIGINT, &sa, (struct sigaction *) 0);
11253     sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
11254
11255   ;
11256   return 0;
11257 }
11258 _ACEOF
11259 rm -f conftest.$ac_objext conftest$ac_exeext
11260 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11261   (eval $ac_link) 2>&5
11262   ac_status=$?
11263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11264   (exit $ac_status); } &&
11265          { ac_try='test -s conftest$ac_exeext'
11266   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11267   (eval $ac_try) 2>&5
11268   ac_status=$?
11269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11270   (exit $ac_status); }; }; then
11271   bash_cv_signal_vintage=posix
11272 else
11273   echo "$as_me: failed program was:" >&5
11274 sed 's/^/| /' conftest.$ac_ext >&5
11275
11276
11277     cat >conftest.$ac_ext <<_ACEOF
11278 #line $LINENO "configure"
11279 /* confdefs.h.  */
11280 _ACEOF
11281 cat confdefs.h >>conftest.$ac_ext
11282 cat >>conftest.$ac_ext <<_ACEOF
11283 /* end confdefs.h.  */
11284 #include <signal.h>
11285 int
11286 main ()
11287 {
11288
11289         int mask = sigmask(SIGINT);
11290         sigsetmask(mask); sigblock(mask); sigpause(mask);
11291
11292   ;
11293   return 0;
11294 }
11295 _ACEOF
11296 rm -f conftest.$ac_objext conftest$ac_exeext
11297 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11298   (eval $ac_link) 2>&5
11299   ac_status=$?
11300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11301   (exit $ac_status); } &&
11302          { ac_try='test -s conftest$ac_exeext'
11303   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11304   (eval $ac_try) 2>&5
11305   ac_status=$?
11306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11307   (exit $ac_status); }; }; then
11308   bash_cv_signal_vintage=4.2bsd
11309 else
11310   echo "$as_me: failed program was:" >&5
11311 sed 's/^/| /' conftest.$ac_ext >&5
11312
11313
11314       cat >conftest.$ac_ext <<_ACEOF
11315 #line $LINENO "configure"
11316 /* confdefs.h.  */
11317 _ACEOF
11318 cat confdefs.h >>conftest.$ac_ext
11319 cat >>conftest.$ac_ext <<_ACEOF
11320 /* end confdefs.h.  */
11321
11322         #include <signal.h>
11323         RETSIGTYPE foo() { }
11324 int
11325 main ()
11326 {
11327
11328                 int mask = sigmask(SIGINT);
11329                 sigset(SIGINT, foo); sigrelse(SIGINT);
11330                 sighold(SIGINT); sigpause(SIGINT);
11331
11332   ;
11333   return 0;
11334 }
11335 _ACEOF
11336 rm -f conftest.$ac_objext conftest$ac_exeext
11337 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11338   (eval $ac_link) 2>&5
11339   ac_status=$?
11340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11341   (exit $ac_status); } &&
11342          { ac_try='test -s conftest$ac_exeext'
11343   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11344   (eval $ac_try) 2>&5
11345   ac_status=$?
11346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11347   (exit $ac_status); }; }; then
11348   bash_cv_signal_vintage=svr3
11349 else
11350   echo "$as_me: failed program was:" >&5
11351 sed 's/^/| /' conftest.$ac_ext >&5
11352
11353 bash_cv_signal_vintage=v7
11354
11355 fi
11356 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11357
11358 fi
11359 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11360
11361 fi
11362 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11363
11364 fi
11365
11366 echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
11367 echo "${ECHO_T}$bash_cv_signal_vintage" >&6
11368 if test "$bash_cv_signal_vintage" = posix; then
11369 cat >>confdefs.h <<\_ACEOF
11370 #define HAVE_POSIX_SIGNALS 1
11371 _ACEOF
11372
11373 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
11374 cat >>confdefs.h <<\_ACEOF
11375 #define HAVE_BSD_SIGNALS 1
11376 _ACEOF
11377
11378 elif test "$bash_cv_signal_vintage" = svr3; then
11379 cat >>confdefs.h <<\_ACEOF
11380 #define HAVE_USG_SIGHOLD 1
11381 _ACEOF
11382
11383 fi
11384
11385 echo "$as_me:$LINENO: checking for mode_t" >&5
11386 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
11387 if test "${ac_cv_type_mode_t+set}" = set; then
11388   echo $ECHO_N "(cached) $ECHO_C" >&6
11389 else
11390   cat >conftest.$ac_ext <<_ACEOF
11391 #line $LINENO "configure"
11392 /* confdefs.h.  */
11393 _ACEOF
11394 cat confdefs.h >>conftest.$ac_ext
11395 cat >>conftest.$ac_ext <<_ACEOF
11396 /* end confdefs.h.  */
11397 $ac_includes_default
11398 int
11399 main ()
11400 {
11401 if ((mode_t *) 0)
11402   return 0;
11403 if (sizeof (mode_t))
11404   return 0;
11405   ;
11406   return 0;
11407 }
11408 _ACEOF
11409 rm -f conftest.$ac_objext
11410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11411   (eval $ac_compile) 2>&5
11412   ac_status=$?
11413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11414   (exit $ac_status); } &&
11415          { ac_try='test -s conftest.$ac_objext'
11416   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11417   (eval $ac_try) 2>&5
11418   ac_status=$?
11419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11420   (exit $ac_status); }; }; then
11421   ac_cv_type_mode_t=yes
11422 else
11423   echo "$as_me: failed program was:" >&5
11424 sed 's/^/| /' conftest.$ac_ext >&5
11425
11426 ac_cv_type_mode_t=no
11427 fi
11428 rm -f conftest.$ac_objext conftest.$ac_ext
11429 fi
11430 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
11431 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
11432 if test $ac_cv_type_mode_t = yes; then
11433   :
11434 else
11435
11436 cat >>confdefs.h <<_ACEOF
11437 #define mode_t int
11438 _ACEOF
11439
11440 fi
11441
11442 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
11443 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
11444 if test "${ac_cv_type_uid_t+set}" = set; then
11445   echo $ECHO_N "(cached) $ECHO_C" >&6
11446 else
11447   cat >conftest.$ac_ext <<_ACEOF
11448 #line $LINENO "configure"
11449 /* confdefs.h.  */
11450 _ACEOF
11451 cat confdefs.h >>conftest.$ac_ext
11452 cat >>conftest.$ac_ext <<_ACEOF
11453 /* end confdefs.h.  */
11454 #include <sys/types.h>
11455
11456 _ACEOF
11457 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11458   $EGREP "uid_t" >/dev/null 2>&1; then
11459   ac_cv_type_uid_t=yes
11460 else
11461   ac_cv_type_uid_t=no
11462 fi
11463 rm -f conftest*
11464
11465 fi
11466 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
11467 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
11468 if test $ac_cv_type_uid_t = no; then
11469
11470 cat >>confdefs.h <<\_ACEOF
11471 #define uid_t int
11472 _ACEOF
11473
11474
11475 cat >>confdefs.h <<\_ACEOF
11476 #define gid_t int
11477 _ACEOF
11478
11479 fi
11480
11481 echo "$as_me:$LINENO: checking for size_t" >&5
11482 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
11483 if test "${ac_cv_type_size_t+set}" = set; then
11484   echo $ECHO_N "(cached) $ECHO_C" >&6
11485 else
11486   cat >conftest.$ac_ext <<_ACEOF
11487 #line $LINENO "configure"
11488 /* confdefs.h.  */
11489 _ACEOF
11490 cat confdefs.h >>conftest.$ac_ext
11491 cat >>conftest.$ac_ext <<_ACEOF
11492 /* end confdefs.h.  */
11493 $ac_includes_default
11494 int
11495 main ()
11496 {
11497 if ((size_t *) 0)
11498   return 0;
11499 if (sizeof (size_t))
11500   return 0;
11501   ;
11502   return 0;
11503 }
11504 _ACEOF
11505 rm -f conftest.$ac_objext
11506 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11507   (eval $ac_compile) 2>&5
11508   ac_status=$?
11509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11510   (exit $ac_status); } &&
11511          { ac_try='test -s conftest.$ac_objext'
11512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11513   (eval $ac_try) 2>&5
11514   ac_status=$?
11515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11516   (exit $ac_status); }; }; then
11517   ac_cv_type_size_t=yes
11518 else
11519   echo "$as_me: failed program was:" >&5
11520 sed 's/^/| /' conftest.$ac_ext >&5
11521
11522 ac_cv_type_size_t=no
11523 fi
11524 rm -f conftest.$ac_objext conftest.$ac_ext
11525 fi
11526 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
11527 echo "${ECHO_T}$ac_cv_type_size_t" >&6
11528 if test $ac_cv_type_size_t = yes; then
11529   :
11530 else
11531
11532 cat >>confdefs.h <<_ACEOF
11533 #define size_t unsigned
11534 _ACEOF
11535
11536 fi
11537
11538 echo "$as_me:$LINENO: checking for pid_t" >&5
11539 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
11540 if test "${ac_cv_type_pid_t+set}" = set; then
11541   echo $ECHO_N "(cached) $ECHO_C" >&6
11542 else
11543   cat >conftest.$ac_ext <<_ACEOF
11544 #line $LINENO "configure"
11545 /* confdefs.h.  */
11546 _ACEOF
11547 cat confdefs.h >>conftest.$ac_ext
11548 cat >>conftest.$ac_ext <<_ACEOF
11549 /* end confdefs.h.  */
11550 $ac_includes_default
11551 int
11552 main ()
11553 {
11554 if ((pid_t *) 0)
11555   return 0;
11556 if (sizeof (pid_t))
11557   return 0;
11558   ;
11559   return 0;
11560 }
11561 _ACEOF
11562 rm -f conftest.$ac_objext
11563 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11564   (eval $ac_compile) 2>&5
11565   ac_status=$?
11566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11567   (exit $ac_status); } &&
11568          { ac_try='test -s conftest.$ac_objext'
11569   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11570   (eval $ac_try) 2>&5
11571   ac_status=$?
11572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11573   (exit $ac_status); }; }; then
11574   ac_cv_type_pid_t=yes
11575 else
11576   echo "$as_me: failed program was:" >&5
11577 sed 's/^/| /' conftest.$ac_ext >&5
11578
11579 ac_cv_type_pid_t=no
11580 fi
11581 rm -f conftest.$ac_objext conftest.$ac_ext
11582 fi
11583 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
11584 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
11585 if test $ac_cv_type_pid_t = yes; then
11586   :
11587 else
11588
11589 cat >>confdefs.h <<_ACEOF
11590 #define pid_t int
11591 _ACEOF
11592
11593 fi
11594
11595 echo "$as_me:$LINENO: checking for off_t" >&5
11596 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
11597 if test "${ac_cv_type_off_t+set}" = set; then
11598   echo $ECHO_N "(cached) $ECHO_C" >&6
11599 else
11600   cat >conftest.$ac_ext <<_ACEOF
11601 #line $LINENO "configure"
11602 /* confdefs.h.  */
11603 _ACEOF
11604 cat confdefs.h >>conftest.$ac_ext
11605 cat >>conftest.$ac_ext <<_ACEOF
11606 /* end confdefs.h.  */
11607 $ac_includes_default
11608 int
11609 main ()
11610 {
11611 if ((off_t *) 0)
11612   return 0;
11613 if (sizeof (off_t))
11614   return 0;
11615   ;
11616   return 0;
11617 }
11618 _ACEOF
11619 rm -f conftest.$ac_objext
11620 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11621   (eval $ac_compile) 2>&5
11622   ac_status=$?
11623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11624   (exit $ac_status); } &&
11625          { ac_try='test -s conftest.$ac_objext'
11626   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11627   (eval $ac_try) 2>&5
11628   ac_status=$?
11629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11630   (exit $ac_status); }; }; then
11631   ac_cv_type_off_t=yes
11632 else
11633   echo "$as_me: failed program was:" >&5
11634 sed 's/^/| /' conftest.$ac_ext >&5
11635
11636 ac_cv_type_off_t=no
11637 fi
11638 rm -f conftest.$ac_objext conftest.$ac_ext
11639 fi
11640 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
11641 echo "${ECHO_T}$ac_cv_type_off_t" >&6
11642 if test $ac_cv_type_off_t = yes; then
11643   :
11644 else
11645
11646 cat >>confdefs.h <<_ACEOF
11647 #define off_t long
11648 _ACEOF
11649
11650 fi
11651
11652 echo "$as_me:$LINENO: checking for ino_t" >&5
11653 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
11654 if test "${ac_cv_type_ino_t+set}" = set; then
11655   echo $ECHO_N "(cached) $ECHO_C" >&6
11656 else
11657   cat >conftest.$ac_ext <<_ACEOF
11658 #line $LINENO "configure"
11659 /* confdefs.h.  */
11660 _ACEOF
11661 cat confdefs.h >>conftest.$ac_ext
11662 cat >>conftest.$ac_ext <<_ACEOF
11663 /* end confdefs.h.  */
11664 $ac_includes_default
11665 int
11666 main ()
11667 {
11668 if ((ino_t *) 0)
11669   return 0;
11670 if (sizeof (ino_t))
11671   return 0;
11672   ;
11673   return 0;
11674 }
11675 _ACEOF
11676 rm -f conftest.$ac_objext
11677 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11678   (eval $ac_compile) 2>&5
11679   ac_status=$?
11680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11681   (exit $ac_status); } &&
11682          { ac_try='test -s conftest.$ac_objext'
11683   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11684   (eval $ac_try) 2>&5
11685   ac_status=$?
11686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11687   (exit $ac_status); }; }; then
11688   ac_cv_type_ino_t=yes
11689 else
11690   echo "$as_me: failed program was:" >&5
11691 sed 's/^/| /' conftest.$ac_ext >&5
11692
11693 ac_cv_type_ino_t=no
11694 fi
11695 rm -f conftest.$ac_objext conftest.$ac_ext
11696 fi
11697 echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
11698 echo "${ECHO_T}$ac_cv_type_ino_t" >&6
11699 if test $ac_cv_type_ino_t = yes; then
11700   :
11701 else
11702
11703 cat >>confdefs.h <<_ACEOF
11704 #define ino_t unsigned long
11705 _ACEOF
11706
11707 fi
11708
11709 echo "$as_me:$LINENO: checking for dev_t" >&5
11710 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6
11711 if test "${ac_cv_type_dev_t+set}" = set; then
11712   echo $ECHO_N "(cached) $ECHO_C" >&6
11713 else
11714   cat >conftest.$ac_ext <<_ACEOF
11715 #line $LINENO "configure"
11716 /* confdefs.h.  */
11717 _ACEOF
11718 cat confdefs.h >>conftest.$ac_ext
11719 cat >>conftest.$ac_ext <<_ACEOF
11720 /* end confdefs.h.  */
11721 $ac_includes_default
11722 int
11723 main ()
11724 {
11725 if ((dev_t *) 0)
11726   return 0;
11727 if (sizeof (dev_t))
11728   return 0;
11729   ;
11730   return 0;
11731 }
11732 _ACEOF
11733 rm -f conftest.$ac_objext
11734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11735   (eval $ac_compile) 2>&5
11736   ac_status=$?
11737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11738   (exit $ac_status); } &&
11739          { ac_try='test -s conftest.$ac_objext'
11740   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11741   (eval $ac_try) 2>&5
11742   ac_status=$?
11743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11744   (exit $ac_status); }; }; then
11745   ac_cv_type_dev_t=yes
11746 else
11747   echo "$as_me: failed program was:" >&5
11748 sed 's/^/| /' conftest.$ac_ext >&5
11749
11750 ac_cv_type_dev_t=no
11751 fi
11752 rm -f conftest.$ac_objext conftest.$ac_ext
11753 fi
11754 echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
11755 echo "${ECHO_T}$ac_cv_type_dev_t" >&6
11756 if test $ac_cv_type_dev_t = yes; then
11757   :
11758 else
11759
11760 cat >>confdefs.h <<_ACEOF
11761 #define dev_t unsigned long
11762 _ACEOF
11763
11764 fi
11765
11766 echo "$as_me:$LINENO: checking for daddr_t" >&5
11767 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6
11768 if test "${ac_cv_type_daddr_t+set}" = set; then
11769   echo $ECHO_N "(cached) $ECHO_C" >&6
11770 else
11771   cat >conftest.$ac_ext <<_ACEOF
11772 #line $LINENO "configure"
11773 /* confdefs.h.  */
11774 _ACEOF
11775 cat confdefs.h >>conftest.$ac_ext
11776 cat >>conftest.$ac_ext <<_ACEOF
11777 /* end confdefs.h.  */
11778 $ac_includes_default
11779 int
11780 main ()
11781 {
11782 if ((daddr_t *) 0)
11783   return 0;
11784 if (sizeof (daddr_t))
11785   return 0;
11786   ;
11787   return 0;
11788 }
11789 _ACEOF
11790 rm -f conftest.$ac_objext
11791 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11792   (eval $ac_compile) 2>&5
11793   ac_status=$?
11794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11795   (exit $ac_status); } &&
11796          { ac_try='test -s conftest.$ac_objext'
11797   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11798   (eval $ac_try) 2>&5
11799   ac_status=$?
11800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11801   (exit $ac_status); }; }; then
11802   ac_cv_type_daddr_t=yes
11803 else
11804   echo "$as_me: failed program was:" >&5
11805 sed 's/^/| /' conftest.$ac_ext >&5
11806
11807 ac_cv_type_daddr_t=no
11808 fi
11809 rm -f conftest.$ac_objext conftest.$ac_ext
11810 fi
11811 echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
11812 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6
11813 if test $ac_cv_type_daddr_t = yes; then
11814   :
11815 else
11816
11817 cat >>confdefs.h <<_ACEOF
11818 #define daddr_t long
11819 _ACEOF
11820
11821 fi
11822
11823 echo "$as_me:$LINENO: checking for major_t" >&5
11824 echo $ECHO_N "checking for major_t... $ECHO_C" >&6
11825 if test "${ac_cv_type_major_t+set}" = set; then
11826   echo $ECHO_N "(cached) $ECHO_C" >&6
11827 else
11828   cat >conftest.$ac_ext <<_ACEOF
11829 #line $LINENO "configure"
11830 /* confdefs.h.  */
11831 _ACEOF
11832 cat confdefs.h >>conftest.$ac_ext
11833 cat >>conftest.$ac_ext <<_ACEOF
11834 /* end confdefs.h.  */
11835 $ac_includes_default
11836 int
11837 main ()
11838 {
11839 if ((major_t *) 0)
11840   return 0;
11841 if (sizeof (major_t))
11842   return 0;
11843   ;
11844   return 0;
11845 }
11846 _ACEOF
11847 rm -f conftest.$ac_objext
11848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11849   (eval $ac_compile) 2>&5
11850   ac_status=$?
11851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11852   (exit $ac_status); } &&
11853          { ac_try='test -s conftest.$ac_objext'
11854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11855   (eval $ac_try) 2>&5
11856   ac_status=$?
11857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11858   (exit $ac_status); }; }; then
11859   ac_cv_type_major_t=yes
11860 else
11861   echo "$as_me: failed program was:" >&5
11862 sed 's/^/| /' conftest.$ac_ext >&5
11863
11864 ac_cv_type_major_t=no
11865 fi
11866 rm -f conftest.$ac_objext conftest.$ac_ext
11867 fi
11868 echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
11869 echo "${ECHO_T}$ac_cv_type_major_t" >&6
11870 if test $ac_cv_type_major_t = yes; then
11871   :
11872 else
11873
11874 cat >>confdefs.h <<_ACEOF
11875 #define major_t int
11876 _ACEOF
11877
11878 fi
11879
11880 echo "$as_me:$LINENO: checking for minor_t" >&5
11881 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6
11882 if test "${ac_cv_type_minor_t+set}" = set; then
11883   echo $ECHO_N "(cached) $ECHO_C" >&6
11884 else
11885   cat >conftest.$ac_ext <<_ACEOF
11886 #line $LINENO "configure"
11887 /* confdefs.h.  */
11888 _ACEOF
11889 cat confdefs.h >>conftest.$ac_ext
11890 cat >>conftest.$ac_ext <<_ACEOF
11891 /* end confdefs.h.  */
11892 $ac_includes_default
11893 int
11894 main ()
11895 {
11896 if ((minor_t *) 0)
11897   return 0;
11898 if (sizeof (minor_t))
11899   return 0;
11900   ;
11901   return 0;
11902 }
11903 _ACEOF
11904 rm -f conftest.$ac_objext
11905 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11906   (eval $ac_compile) 2>&5
11907   ac_status=$?
11908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11909   (exit $ac_status); } &&
11910          { ac_try='test -s conftest.$ac_objext'
11911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11912   (eval $ac_try) 2>&5
11913   ac_status=$?
11914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11915   (exit $ac_status); }; }; then
11916   ac_cv_type_minor_t=yes
11917 else
11918   echo "$as_me: failed program was:" >&5
11919 sed 's/^/| /' conftest.$ac_ext >&5
11920
11921 ac_cv_type_minor_t=no
11922 fi
11923 rm -f conftest.$ac_objext conftest.$ac_ext
11924 fi
11925 echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
11926 echo "${ECHO_T}$ac_cv_type_minor_t" >&6
11927 if test $ac_cv_type_minor_t = yes; then
11928   :
11929 else
11930
11931 cat >>confdefs.h <<_ACEOF
11932 #define minor_t int
11933 _ACEOF
11934
11935 fi
11936
11937 echo "$as_me:$LINENO: checking for ssize_t" >&5
11938 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
11939 if test "${ac_cv_type_ssize_t+set}" = set; then
11940   echo $ECHO_N "(cached) $ECHO_C" >&6
11941 else
11942   cat >conftest.$ac_ext <<_ACEOF
11943 #line $LINENO "configure"
11944 /* confdefs.h.  */
11945 _ACEOF
11946 cat confdefs.h >>conftest.$ac_ext
11947 cat >>conftest.$ac_ext <<_ACEOF
11948 /* end confdefs.h.  */
11949 $ac_includes_default
11950 int
11951 main ()
11952 {
11953 if ((ssize_t *) 0)
11954   return 0;
11955 if (sizeof (ssize_t))
11956   return 0;
11957   ;
11958   return 0;
11959 }
11960 _ACEOF
11961 rm -f conftest.$ac_objext
11962 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11963   (eval $ac_compile) 2>&5
11964   ac_status=$?
11965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11966   (exit $ac_status); } &&
11967          { ac_try='test -s conftest.$ac_objext'
11968   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11969   (eval $ac_try) 2>&5
11970   ac_status=$?
11971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11972   (exit $ac_status); }; }; then
11973   ac_cv_type_ssize_t=yes
11974 else
11975   echo "$as_me: failed program was:" >&5
11976 sed 's/^/| /' conftest.$ac_ext >&5
11977
11978 ac_cv_type_ssize_t=no
11979 fi
11980 rm -f conftest.$ac_objext conftest.$ac_ext
11981 fi
11982 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
11983 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
11984 if test $ac_cv_type_ssize_t = yes; then
11985   :
11986 else
11987
11988 cat >>confdefs.h <<_ACEOF
11989 #define ssize_t int
11990 _ACEOF
11991
11992 fi
11993
11994 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
11995 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
11996 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
11997   echo $ECHO_N "(cached) $ECHO_C" >&6
11998 else
11999   cat >conftest.$ac_ext <<_ACEOF
12000 #line $LINENO "configure"
12001 /* confdefs.h.  */
12002 _ACEOF
12003 cat confdefs.h >>conftest.$ac_ext
12004 cat >>conftest.$ac_ext <<_ACEOF
12005 /* end confdefs.h.  */
12006 $ac_includes_default
12007 int
12008 main ()
12009 {
12010 static struct stat ac_aggr;
12011 if (ac_aggr.st_blocks)
12012 return 0;
12013   ;
12014   return 0;
12015 }
12016 _ACEOF
12017 rm -f conftest.$ac_objext
12018 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12019   (eval $ac_compile) 2>&5
12020   ac_status=$?
12021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12022   (exit $ac_status); } &&
12023          { ac_try='test -s conftest.$ac_objext'
12024   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12025   (eval $ac_try) 2>&5
12026   ac_status=$?
12027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12028   (exit $ac_status); }; }; then
12029   ac_cv_member_struct_stat_st_blocks=yes
12030 else
12031   echo "$as_me: failed program was:" >&5
12032 sed 's/^/| /' conftest.$ac_ext >&5
12033
12034 cat >conftest.$ac_ext <<_ACEOF
12035 #line $LINENO "configure"
12036 /* confdefs.h.  */
12037 _ACEOF
12038 cat confdefs.h >>conftest.$ac_ext
12039 cat >>conftest.$ac_ext <<_ACEOF
12040 /* end confdefs.h.  */
12041 $ac_includes_default
12042 int
12043 main ()
12044 {
12045 static struct stat ac_aggr;
12046 if (sizeof ac_aggr.st_blocks)
12047 return 0;
12048   ;
12049   return 0;
12050 }
12051 _ACEOF
12052 rm -f conftest.$ac_objext
12053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12054   (eval $ac_compile) 2>&5
12055   ac_status=$?
12056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12057   (exit $ac_status); } &&
12058          { ac_try='test -s conftest.$ac_objext'
12059   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12060   (eval $ac_try) 2>&5
12061   ac_status=$?
12062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12063   (exit $ac_status); }; }; then
12064   ac_cv_member_struct_stat_st_blocks=yes
12065 else
12066   echo "$as_me: failed program was:" >&5
12067 sed 's/^/| /' conftest.$ac_ext >&5
12068
12069 ac_cv_member_struct_stat_st_blocks=no
12070 fi
12071 rm -f conftest.$ac_objext conftest.$ac_ext
12072 fi
12073 rm -f conftest.$ac_objext conftest.$ac_ext
12074 fi
12075 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
12076 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
12077 if test $ac_cv_member_struct_stat_st_blocks = yes; then
12078
12079 cat >>confdefs.h <<_ACEOF
12080 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
12081 _ACEOF
12082
12083
12084 cat >>confdefs.h <<\_ACEOF
12085 #define HAVE_ST_BLOCKS 1
12086 _ACEOF
12087
12088 else
12089   LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
12090 fi
12091
12092
12093
12094 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
12095 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
12096 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
12097   echo $ECHO_N "(cached) $ECHO_C" >&6
12098 else
12099   cat >conftest.$ac_ext <<_ACEOF
12100 #line $LINENO "configure"
12101 /* confdefs.h.  */
12102 _ACEOF
12103 cat confdefs.h >>conftest.$ac_ext
12104 cat >>conftest.$ac_ext <<_ACEOF
12105 /* end confdefs.h.  */
12106 $ac_includes_default
12107 int
12108 main ()
12109 {
12110 static struct stat ac_aggr;
12111 if (ac_aggr.st_rdev)
12112 return 0;
12113   ;
12114   return 0;
12115 }
12116 _ACEOF
12117 rm -f conftest.$ac_objext
12118 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12119   (eval $ac_compile) 2>&5
12120   ac_status=$?
12121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12122   (exit $ac_status); } &&
12123          { ac_try='test -s conftest.$ac_objext'
12124   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12125   (eval $ac_try) 2>&5
12126   ac_status=$?
12127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12128   (exit $ac_status); }; }; then
12129   ac_cv_member_struct_stat_st_rdev=yes
12130 else
12131   echo "$as_me: failed program was:" >&5
12132 sed 's/^/| /' conftest.$ac_ext >&5
12133
12134 cat >conftest.$ac_ext <<_ACEOF
12135 #line $LINENO "configure"
12136 /* confdefs.h.  */
12137 _ACEOF
12138 cat confdefs.h >>conftest.$ac_ext
12139 cat >>conftest.$ac_ext <<_ACEOF
12140 /* end confdefs.h.  */
12141 $ac_includes_default
12142 int
12143 main ()
12144 {
12145 static struct stat ac_aggr;
12146 if (sizeof ac_aggr.st_rdev)
12147 return 0;
12148   ;
12149   return 0;
12150 }
12151 _ACEOF
12152 rm -f conftest.$ac_objext
12153 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12154   (eval $ac_compile) 2>&5
12155   ac_status=$?
12156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12157   (exit $ac_status); } &&
12158          { ac_try='test -s conftest.$ac_objext'
12159   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12160   (eval $ac_try) 2>&5
12161   ac_status=$?
12162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12163   (exit $ac_status); }; }; then
12164   ac_cv_member_struct_stat_st_rdev=yes
12165 else
12166   echo "$as_me: failed program was:" >&5
12167 sed 's/^/| /' conftest.$ac_ext >&5
12168
12169 ac_cv_member_struct_stat_st_rdev=no
12170 fi
12171 rm -f conftest.$ac_objext conftest.$ac_ext
12172 fi
12173 rm -f conftest.$ac_objext conftest.$ac_ext
12174 fi
12175 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
12176 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
12177 if test $ac_cv_member_struct_stat_st_rdev = yes; then
12178
12179 cat >>confdefs.h <<_ACEOF
12180 #define HAVE_STRUCT_STAT_ST_RDEV 1
12181 _ACEOF
12182
12183
12184 cat >>confdefs.h <<\_ACEOF
12185 #define HAVE_ST_RDEV 1
12186 _ACEOF
12187
12188 fi
12189
12190
12191 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
12192 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
12193 if test "${ac_cv_struct_tm+set}" = set; then
12194   echo $ECHO_N "(cached) $ECHO_C" >&6
12195 else
12196   cat >conftest.$ac_ext <<_ACEOF
12197 #line $LINENO "configure"
12198 /* confdefs.h.  */
12199 _ACEOF
12200 cat confdefs.h >>conftest.$ac_ext
12201 cat >>conftest.$ac_ext <<_ACEOF
12202 /* end confdefs.h.  */
12203 #include <sys/types.h>
12204 #include <time.h>
12205
12206 int
12207 main ()
12208 {
12209 struct tm *tp; tp->tm_sec;
12210   ;
12211   return 0;
12212 }
12213 _ACEOF
12214 rm -f conftest.$ac_objext
12215 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12216   (eval $ac_compile) 2>&5
12217   ac_status=$?
12218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12219   (exit $ac_status); } &&
12220          { ac_try='test -s conftest.$ac_objext'
12221   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12222   (eval $ac_try) 2>&5
12223   ac_status=$?
12224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12225   (exit $ac_status); }; }; then
12226   ac_cv_struct_tm=time.h
12227 else
12228   echo "$as_me: failed program was:" >&5
12229 sed 's/^/| /' conftest.$ac_ext >&5
12230
12231 ac_cv_struct_tm=sys/time.h
12232 fi
12233 rm -f conftest.$ac_objext conftest.$ac_ext
12234 fi
12235 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
12236 echo "${ECHO_T}$ac_cv_struct_tm" >&6
12237 if test $ac_cv_struct_tm = sys/time.h; then
12238
12239 cat >>confdefs.h <<\_ACEOF
12240 #define TM_IN_SYS_TIME 1
12241 _ACEOF
12242
12243 fi
12244
12245 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
12246 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
12247 if test "${ac_cv_c_const+set}" = set; then
12248   echo $ECHO_N "(cached) $ECHO_C" >&6
12249 else
12250   cat >conftest.$ac_ext <<_ACEOF
12251 #line $LINENO "configure"
12252 /* confdefs.h.  */
12253 _ACEOF
12254 cat confdefs.h >>conftest.$ac_ext
12255 cat >>conftest.$ac_ext <<_ACEOF
12256 /* end confdefs.h.  */
12257
12258 int
12259 main ()
12260 {
12261 /* FIXME: Include the comments suggested by Paul. */
12262 #ifndef __cplusplus
12263   /* Ultrix mips cc rejects this.  */
12264   typedef int charset[2];
12265   const charset x;
12266   /* SunOS 4.1.1 cc rejects this.  */
12267   char const *const *ccp;
12268   char **p;
12269   /* NEC SVR4.0.2 mips cc rejects this.  */
12270   struct point {int x, y;};
12271   static struct point const zero = {0,0};
12272   /* AIX XL C 1.02.0.0 rejects this.
12273      It does not let you subtract one const X* pointer from another in
12274      an arm of an if-expression whose if-part is not a constant
12275      expression */
12276   const char *g = "string";
12277   ccp = &g + (g ? g-g : 0);
12278   /* HPUX 7.0 cc rejects these. */
12279   ++ccp;
12280   p = (char**) ccp;
12281   ccp = (char const *const *) p;
12282   { /* SCO 3.2v4 cc rejects this.  */
12283     char *t;
12284     char const *s = 0 ? (char *) 0 : (char const *) 0;
12285
12286     *t++ = 0;
12287   }
12288   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
12289     int x[] = {25, 17};
12290     const int *foo = &x[0];
12291     ++foo;
12292   }
12293   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12294     typedef const int *iptr;
12295     iptr p = 0;
12296     ++p;
12297   }
12298   { /* AIX XL C 1.02.0.0 rejects this saying
12299        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12300     struct s { int j; const int *ap[3]; };
12301     struct s *b; b->j = 5;
12302   }
12303   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12304     const int foo = 10;
12305   }
12306 #endif
12307
12308   ;
12309   return 0;
12310 }
12311 _ACEOF
12312 rm -f conftest.$ac_objext
12313 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12314   (eval $ac_compile) 2>&5
12315   ac_status=$?
12316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12317   (exit $ac_status); } &&
12318          { ac_try='test -s conftest.$ac_objext'
12319   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12320   (eval $ac_try) 2>&5
12321   ac_status=$?
12322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12323   (exit $ac_status); }; }; then
12324   ac_cv_c_const=yes
12325 else
12326   echo "$as_me: failed program was:" >&5
12327 sed 's/^/| /' conftest.$ac_ext >&5
12328
12329 ac_cv_c_const=no
12330 fi
12331 rm -f conftest.$ac_objext conftest.$ac_ext
12332 fi
12333 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
12334 echo "${ECHO_T}$ac_cv_c_const" >&6
12335 if test $ac_cv_c_const = no; then
12336
12337 cat >>confdefs.h <<\_ACEOF
12338 #define const
12339 _ACEOF
12340
12341 fi
12342
12343
12344
12345 echo "$as_me:$LINENO: checking for char" >&5
12346 echo $ECHO_N "checking for char... $ECHO_C" >&6
12347 if test "${ac_cv_type_char+set}" = set; then
12348   echo $ECHO_N "(cached) $ECHO_C" >&6
12349 else
12350   cat >conftest.$ac_ext <<_ACEOF
12351 #line $LINENO "configure"
12352 /* confdefs.h.  */
12353 _ACEOF
12354 cat confdefs.h >>conftest.$ac_ext
12355 cat >>conftest.$ac_ext <<_ACEOF
12356 /* end confdefs.h.  */
12357 $ac_includes_default
12358 int
12359 main ()
12360 {
12361 if ((char *) 0)
12362   return 0;
12363 if (sizeof (char))
12364   return 0;
12365   ;
12366   return 0;
12367 }
12368 _ACEOF
12369 rm -f conftest.$ac_objext
12370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12371   (eval $ac_compile) 2>&5
12372   ac_status=$?
12373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12374   (exit $ac_status); } &&
12375          { ac_try='test -s conftest.$ac_objext'
12376   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12377   (eval $ac_try) 2>&5
12378   ac_status=$?
12379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12380   (exit $ac_status); }; }; then
12381   ac_cv_type_char=yes
12382 else
12383   echo "$as_me: failed program was:" >&5
12384 sed 's/^/| /' conftest.$ac_ext >&5
12385
12386 ac_cv_type_char=no
12387 fi
12388 rm -f conftest.$ac_objext conftest.$ac_ext
12389 fi
12390 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
12391 echo "${ECHO_T}$ac_cv_type_char" >&6
12392
12393 echo "$as_me:$LINENO: checking size of char" >&5
12394 echo $ECHO_N "checking size of char... $ECHO_C" >&6
12395 if test "${ac_cv_sizeof_char+set}" = set; then
12396   echo $ECHO_N "(cached) $ECHO_C" >&6
12397 else
12398   if test "$ac_cv_type_char" = yes; then
12399   # The cast to unsigned long works around a bug in the HP C Compiler
12400   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12401   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12402   # This bug is HP SR number 8606223364.
12403   if test "$cross_compiling" = yes; then
12404   # Depending upon the size, compute the lo and hi bounds.
12405 cat >conftest.$ac_ext <<_ACEOF
12406 #line $LINENO "configure"
12407 /* confdefs.h.  */
12408 _ACEOF
12409 cat confdefs.h >>conftest.$ac_ext
12410 cat >>conftest.$ac_ext <<_ACEOF
12411 /* end confdefs.h.  */
12412 $ac_includes_default
12413 int
12414 main ()
12415 {
12416 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
12417 test_array [0] = 0
12418
12419   ;
12420   return 0;
12421 }
12422 _ACEOF
12423 rm -f conftest.$ac_objext
12424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12425   (eval $ac_compile) 2>&5
12426   ac_status=$?
12427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12428   (exit $ac_status); } &&
12429          { ac_try='test -s conftest.$ac_objext'
12430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12431   (eval $ac_try) 2>&5
12432   ac_status=$?
12433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12434   (exit $ac_status); }; }; then
12435   ac_lo=0 ac_mid=0
12436   while :; do
12437     cat >conftest.$ac_ext <<_ACEOF
12438 #line $LINENO "configure"
12439 /* confdefs.h.  */
12440 _ACEOF
12441 cat confdefs.h >>conftest.$ac_ext
12442 cat >>conftest.$ac_ext <<_ACEOF
12443 /* end confdefs.h.  */
12444 $ac_includes_default
12445 int
12446 main ()
12447 {
12448 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
12449 test_array [0] = 0
12450
12451   ;
12452   return 0;
12453 }
12454 _ACEOF
12455 rm -f conftest.$ac_objext
12456 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12457   (eval $ac_compile) 2>&5
12458   ac_status=$?
12459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12460   (exit $ac_status); } &&
12461          { ac_try='test -s conftest.$ac_objext'
12462   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12463   (eval $ac_try) 2>&5
12464   ac_status=$?
12465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12466   (exit $ac_status); }; }; then
12467   ac_hi=$ac_mid; break
12468 else
12469   echo "$as_me: failed program was:" >&5
12470 sed 's/^/| /' conftest.$ac_ext >&5
12471
12472 ac_lo=`expr $ac_mid + 1`
12473                     if test $ac_lo -le $ac_mid; then
12474                       ac_lo= ac_hi=
12475                       break
12476                     fi
12477                     ac_mid=`expr 2 '*' $ac_mid + 1`
12478 fi
12479 rm -f conftest.$ac_objext conftest.$ac_ext
12480   done
12481 else
12482   echo "$as_me: failed program was:" >&5
12483 sed 's/^/| /' conftest.$ac_ext >&5
12484
12485 cat >conftest.$ac_ext <<_ACEOF
12486 #line $LINENO "configure"
12487 /* confdefs.h.  */
12488 _ACEOF
12489 cat confdefs.h >>conftest.$ac_ext
12490 cat >>conftest.$ac_ext <<_ACEOF
12491 /* end confdefs.h.  */
12492 $ac_includes_default
12493 int
12494 main ()
12495 {
12496 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
12497 test_array [0] = 0
12498
12499   ;
12500   return 0;
12501 }
12502 _ACEOF
12503 rm -f conftest.$ac_objext
12504 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12505   (eval $ac_compile) 2>&5
12506   ac_status=$?
12507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12508   (exit $ac_status); } &&
12509          { ac_try='test -s conftest.$ac_objext'
12510   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12511   (eval $ac_try) 2>&5
12512   ac_status=$?
12513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12514   (exit $ac_status); }; }; then
12515   ac_hi=-1 ac_mid=-1
12516   while :; do
12517     cat >conftest.$ac_ext <<_ACEOF
12518 #line $LINENO "configure"
12519 /* confdefs.h.  */
12520 _ACEOF
12521 cat confdefs.h >>conftest.$ac_ext
12522 cat >>conftest.$ac_ext <<_ACEOF
12523 /* end confdefs.h.  */
12524 $ac_includes_default
12525 int
12526 main ()
12527 {
12528 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
12529 test_array [0] = 0
12530
12531   ;
12532   return 0;
12533 }
12534 _ACEOF
12535 rm -f conftest.$ac_objext
12536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12537   (eval $ac_compile) 2>&5
12538   ac_status=$?
12539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12540   (exit $ac_status); } &&
12541          { ac_try='test -s conftest.$ac_objext'
12542   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12543   (eval $ac_try) 2>&5
12544   ac_status=$?
12545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12546   (exit $ac_status); }; }; then
12547   ac_lo=$ac_mid; break
12548 else
12549   echo "$as_me: failed program was:" >&5
12550 sed 's/^/| /' conftest.$ac_ext >&5
12551
12552 ac_hi=`expr '(' $ac_mid ')' - 1`
12553                        if test $ac_mid -le $ac_hi; then
12554                          ac_lo= ac_hi=
12555                          break
12556                        fi
12557                        ac_mid=`expr 2 '*' $ac_mid`
12558 fi
12559 rm -f conftest.$ac_objext conftest.$ac_ext
12560   done
12561 else
12562   echo "$as_me: failed program was:" >&5
12563 sed 's/^/| /' conftest.$ac_ext >&5
12564
12565 ac_lo= ac_hi=
12566 fi
12567 rm -f conftest.$ac_objext conftest.$ac_ext
12568 fi
12569 rm -f conftest.$ac_objext conftest.$ac_ext
12570 # Binary search between lo and hi bounds.
12571 while test "x$ac_lo" != "x$ac_hi"; do
12572   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12573   cat >conftest.$ac_ext <<_ACEOF
12574 #line $LINENO "configure"
12575 /* confdefs.h.  */
12576 _ACEOF
12577 cat confdefs.h >>conftest.$ac_ext
12578 cat >>conftest.$ac_ext <<_ACEOF
12579 /* end confdefs.h.  */
12580 $ac_includes_default
12581 int
12582 main ()
12583 {
12584 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
12585 test_array [0] = 0
12586
12587   ;
12588   return 0;
12589 }
12590 _ACEOF
12591 rm -f conftest.$ac_objext
12592 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12593   (eval $ac_compile) 2>&5
12594   ac_status=$?
12595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12596   (exit $ac_status); } &&
12597          { ac_try='test -s conftest.$ac_objext'
12598   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12599   (eval $ac_try) 2>&5
12600   ac_status=$?
12601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12602   (exit $ac_status); }; }; then
12603   ac_hi=$ac_mid
12604 else
12605   echo "$as_me: failed program was:" >&5
12606 sed 's/^/| /' conftest.$ac_ext >&5
12607
12608 ac_lo=`expr '(' $ac_mid ')' + 1`
12609 fi
12610 rm -f conftest.$ac_objext conftest.$ac_ext
12611 done
12612 case $ac_lo in
12613 ?*) ac_cv_sizeof_char=$ac_lo;;
12614 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
12615 See \`config.log' for more details." >&5
12616 echo "$as_me: error: cannot compute sizeof (char), 77
12617 See \`config.log' for more details." >&2;}
12618    { (exit 1); exit 1; }; } ;;
12619 esac
12620 else
12621   if test "$cross_compiling" = yes; then
12622   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12623 See \`config.log' for more details." >&5
12624 echo "$as_me: error: cannot run test program while cross compiling
12625 See \`config.log' for more details." >&2;}
12626    { (exit 1); exit 1; }; }
12627 else
12628   cat >conftest.$ac_ext <<_ACEOF
12629 #line $LINENO "configure"
12630 /* confdefs.h.  */
12631 _ACEOF
12632 cat confdefs.h >>conftest.$ac_ext
12633 cat >>conftest.$ac_ext <<_ACEOF
12634 /* end confdefs.h.  */
12635 $ac_includes_default
12636 long longval () { return (long) (sizeof (char)); }
12637 unsigned long ulongval () { return (long) (sizeof (char)); }
12638 #include <stdio.h>
12639 #include <stdlib.h>
12640 int
12641 main ()
12642 {
12643
12644   FILE *f = fopen ("conftest.val", "w");
12645   if (! f)
12646     exit (1);
12647   if (((long) (sizeof (char))) < 0)
12648     {
12649       long i = longval ();
12650       if (i != ((long) (sizeof (char))))
12651         exit (1);
12652       fprintf (f, "%ld\n", i);
12653     }
12654   else
12655     {
12656       unsigned long i = ulongval ();
12657       if (i != ((long) (sizeof (char))))
12658         exit (1);
12659       fprintf (f, "%lu\n", i);
12660     }
12661   exit (ferror (f) || fclose (f) != 0);
12662
12663   ;
12664   return 0;
12665 }
12666 _ACEOF
12667 rm -f conftest$ac_exeext
12668 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12669   (eval $ac_link) 2>&5
12670   ac_status=$?
12671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12672   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12674   (eval $ac_try) 2>&5
12675   ac_status=$?
12676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12677   (exit $ac_status); }; }; then
12678   ac_cv_sizeof_char=`cat conftest.val`
12679 else
12680   echo "$as_me: program exited with status $ac_status" >&5
12681 echo "$as_me: failed program was:" >&5
12682 sed 's/^/| /' conftest.$ac_ext >&5
12683
12684 ( exit $ac_status )
12685 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
12686 See \`config.log' for more details." >&5
12687 echo "$as_me: error: cannot compute sizeof (char), 77
12688 See \`config.log' for more details." >&2;}
12689    { (exit 1); exit 1; }; }
12690 fi
12691 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12692 fi
12693 fi
12694 rm -f conftest.val
12695 else
12696   ac_cv_sizeof_char=0
12697 fi
12698 fi
12699 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
12700 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
12701 cat >>confdefs.h <<_ACEOF
12702 #define SIZEOF_CHAR $ac_cv_sizeof_char
12703 _ACEOF
12704
12705
12706 echo "$as_me:$LINENO: checking for short int" >&5
12707 echo $ECHO_N "checking for short int... $ECHO_C" >&6
12708 if test "${ac_cv_type_short_int+set}" = set; then
12709   echo $ECHO_N "(cached) $ECHO_C" >&6
12710 else
12711   cat >conftest.$ac_ext <<_ACEOF
12712 #line $LINENO "configure"
12713 /* confdefs.h.  */
12714 _ACEOF
12715 cat confdefs.h >>conftest.$ac_ext
12716 cat >>conftest.$ac_ext <<_ACEOF
12717 /* end confdefs.h.  */
12718 $ac_includes_default
12719 int
12720 main ()
12721 {
12722 if ((short int *) 0)
12723   return 0;
12724 if (sizeof (short int))
12725   return 0;
12726   ;
12727   return 0;
12728 }
12729 _ACEOF
12730 rm -f conftest.$ac_objext
12731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12732   (eval $ac_compile) 2>&5
12733   ac_status=$?
12734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12735   (exit $ac_status); } &&
12736          { ac_try='test -s conftest.$ac_objext'
12737   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12738   (eval $ac_try) 2>&5
12739   ac_status=$?
12740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12741   (exit $ac_status); }; }; then
12742   ac_cv_type_short_int=yes
12743 else
12744   echo "$as_me: failed program was:" >&5
12745 sed 's/^/| /' conftest.$ac_ext >&5
12746
12747 ac_cv_type_short_int=no
12748 fi
12749 rm -f conftest.$ac_objext conftest.$ac_ext
12750 fi
12751 echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
12752 echo "${ECHO_T}$ac_cv_type_short_int" >&6
12753
12754 echo "$as_me:$LINENO: checking size of short int" >&5
12755 echo $ECHO_N "checking size of short int... $ECHO_C" >&6
12756 if test "${ac_cv_sizeof_short_int+set}" = set; then
12757   echo $ECHO_N "(cached) $ECHO_C" >&6
12758 else
12759   if test "$ac_cv_type_short_int" = yes; then
12760   # The cast to unsigned long works around a bug in the HP C Compiler
12761   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12762   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12763   # This bug is HP SR number 8606223364.
12764   if test "$cross_compiling" = yes; then
12765   # Depending upon the size, compute the lo and hi bounds.
12766 cat >conftest.$ac_ext <<_ACEOF
12767 #line $LINENO "configure"
12768 /* confdefs.h.  */
12769 _ACEOF
12770 cat confdefs.h >>conftest.$ac_ext
12771 cat >>conftest.$ac_ext <<_ACEOF
12772 /* end confdefs.h.  */
12773 $ac_includes_default
12774 int
12775 main ()
12776 {
12777 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= 0)];
12778 test_array [0] = 0
12779
12780   ;
12781   return 0;
12782 }
12783 _ACEOF
12784 rm -f conftest.$ac_objext
12785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12786   (eval $ac_compile) 2>&5
12787   ac_status=$?
12788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12789   (exit $ac_status); } &&
12790          { ac_try='test -s conftest.$ac_objext'
12791   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12792   (eval $ac_try) 2>&5
12793   ac_status=$?
12794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12795   (exit $ac_status); }; }; then
12796   ac_lo=0 ac_mid=0
12797   while :; do
12798     cat >conftest.$ac_ext <<_ACEOF
12799 #line $LINENO "configure"
12800 /* confdefs.h.  */
12801 _ACEOF
12802 cat confdefs.h >>conftest.$ac_ext
12803 cat >>conftest.$ac_ext <<_ACEOF
12804 /* end confdefs.h.  */
12805 $ac_includes_default
12806 int
12807 main ()
12808 {
12809 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
12810 test_array [0] = 0
12811
12812   ;
12813   return 0;
12814 }
12815 _ACEOF
12816 rm -f conftest.$ac_objext
12817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12818   (eval $ac_compile) 2>&5
12819   ac_status=$?
12820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12821   (exit $ac_status); } &&
12822          { ac_try='test -s conftest.$ac_objext'
12823   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12824   (eval $ac_try) 2>&5
12825   ac_status=$?
12826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12827   (exit $ac_status); }; }; then
12828   ac_hi=$ac_mid; break
12829 else
12830   echo "$as_me: failed program was:" >&5
12831 sed 's/^/| /' conftest.$ac_ext >&5
12832
12833 ac_lo=`expr $ac_mid + 1`
12834                     if test $ac_lo -le $ac_mid; then
12835                       ac_lo= ac_hi=
12836                       break
12837                     fi
12838                     ac_mid=`expr 2 '*' $ac_mid + 1`
12839 fi
12840 rm -f conftest.$ac_objext conftest.$ac_ext
12841   done
12842 else
12843   echo "$as_me: failed program was:" >&5
12844 sed 's/^/| /' conftest.$ac_ext >&5
12845
12846 cat >conftest.$ac_ext <<_ACEOF
12847 #line $LINENO "configure"
12848 /* confdefs.h.  */
12849 _ACEOF
12850 cat confdefs.h >>conftest.$ac_ext
12851 cat >>conftest.$ac_ext <<_ACEOF
12852 /* end confdefs.h.  */
12853 $ac_includes_default
12854 int
12855 main ()
12856 {
12857 static int test_array [1 - 2 * !(((long) (sizeof (short int))) < 0)];
12858 test_array [0] = 0
12859
12860   ;
12861   return 0;
12862 }
12863 _ACEOF
12864 rm -f conftest.$ac_objext
12865 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12866   (eval $ac_compile) 2>&5
12867   ac_status=$?
12868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12869   (exit $ac_status); } &&
12870          { ac_try='test -s conftest.$ac_objext'
12871   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12872   (eval $ac_try) 2>&5
12873   ac_status=$?
12874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12875   (exit $ac_status); }; }; then
12876   ac_hi=-1 ac_mid=-1
12877   while :; do
12878     cat >conftest.$ac_ext <<_ACEOF
12879 #line $LINENO "configure"
12880 /* confdefs.h.  */
12881 _ACEOF
12882 cat confdefs.h >>conftest.$ac_ext
12883 cat >>conftest.$ac_ext <<_ACEOF
12884 /* end confdefs.h.  */
12885 $ac_includes_default
12886 int
12887 main ()
12888 {
12889 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= $ac_mid)];
12890 test_array [0] = 0
12891
12892   ;
12893   return 0;
12894 }
12895 _ACEOF
12896 rm -f conftest.$ac_objext
12897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12898   (eval $ac_compile) 2>&5
12899   ac_status=$?
12900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12901   (exit $ac_status); } &&
12902          { ac_try='test -s conftest.$ac_objext'
12903   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12904   (eval $ac_try) 2>&5
12905   ac_status=$?
12906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12907   (exit $ac_status); }; }; then
12908   ac_lo=$ac_mid; break
12909 else
12910   echo "$as_me: failed program was:" >&5
12911 sed 's/^/| /' conftest.$ac_ext >&5
12912
12913 ac_hi=`expr '(' $ac_mid ')' - 1`
12914                        if test $ac_mid -le $ac_hi; then
12915                          ac_lo= ac_hi=
12916                          break
12917                        fi
12918                        ac_mid=`expr 2 '*' $ac_mid`
12919 fi
12920 rm -f conftest.$ac_objext conftest.$ac_ext
12921   done
12922 else
12923   echo "$as_me: failed program was:" >&5
12924 sed 's/^/| /' conftest.$ac_ext >&5
12925
12926 ac_lo= ac_hi=
12927 fi
12928 rm -f conftest.$ac_objext conftest.$ac_ext
12929 fi
12930 rm -f conftest.$ac_objext conftest.$ac_ext
12931 # Binary search between lo and hi bounds.
12932 while test "x$ac_lo" != "x$ac_hi"; do
12933   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12934   cat >conftest.$ac_ext <<_ACEOF
12935 #line $LINENO "configure"
12936 /* confdefs.h.  */
12937 _ACEOF
12938 cat confdefs.h >>conftest.$ac_ext
12939 cat >>conftest.$ac_ext <<_ACEOF
12940 /* end confdefs.h.  */
12941 $ac_includes_default
12942 int
12943 main ()
12944 {
12945 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
12946 test_array [0] = 0
12947
12948   ;
12949   return 0;
12950 }
12951 _ACEOF
12952 rm -f conftest.$ac_objext
12953 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12954   (eval $ac_compile) 2>&5
12955   ac_status=$?
12956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12957   (exit $ac_status); } &&
12958          { ac_try='test -s conftest.$ac_objext'
12959   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12960   (eval $ac_try) 2>&5
12961   ac_status=$?
12962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12963   (exit $ac_status); }; }; then
12964   ac_hi=$ac_mid
12965 else
12966   echo "$as_me: failed program was:" >&5
12967 sed 's/^/| /' conftest.$ac_ext >&5
12968
12969 ac_lo=`expr '(' $ac_mid ')' + 1`
12970 fi
12971 rm -f conftest.$ac_objext conftest.$ac_ext
12972 done
12973 case $ac_lo in
12974 ?*) ac_cv_sizeof_short_int=$ac_lo;;
12975 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
12976 See \`config.log' for more details." >&5
12977 echo "$as_me: error: cannot compute sizeof (short int), 77
12978 See \`config.log' for more details." >&2;}
12979    { (exit 1); exit 1; }; } ;;
12980 esac
12981 else
12982   if test "$cross_compiling" = yes; then
12983   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12984 See \`config.log' for more details." >&5
12985 echo "$as_me: error: cannot run test program while cross compiling
12986 See \`config.log' for more details." >&2;}
12987    { (exit 1); exit 1; }; }
12988 else
12989   cat >conftest.$ac_ext <<_ACEOF
12990 #line $LINENO "configure"
12991 /* confdefs.h.  */
12992 _ACEOF
12993 cat confdefs.h >>conftest.$ac_ext
12994 cat >>conftest.$ac_ext <<_ACEOF
12995 /* end confdefs.h.  */
12996 $ac_includes_default
12997 long longval () { return (long) (sizeof (short int)); }
12998 unsigned long ulongval () { return (long) (sizeof (short int)); }
12999 #include <stdio.h>
13000 #include <stdlib.h>
13001 int
13002 main ()
13003 {
13004
13005   FILE *f = fopen ("conftest.val", "w");
13006   if (! f)
13007     exit (1);
13008   if (((long) (sizeof (short int))) < 0)
13009     {
13010       long i = longval ();
13011       if (i != ((long) (sizeof (short int))))
13012         exit (1);
13013       fprintf (f, "%ld\n", i);
13014     }
13015   else
13016     {
13017       unsigned long i = ulongval ();
13018       if (i != ((long) (sizeof (short int))))
13019         exit (1);
13020       fprintf (f, "%lu\n", i);
13021     }
13022   exit (ferror (f) || fclose (f) != 0);
13023
13024   ;
13025   return 0;
13026 }
13027 _ACEOF
13028 rm -f conftest$ac_exeext
13029 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13030   (eval $ac_link) 2>&5
13031   ac_status=$?
13032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13033   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13034   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13035   (eval $ac_try) 2>&5
13036   ac_status=$?
13037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13038   (exit $ac_status); }; }; then
13039   ac_cv_sizeof_short_int=`cat conftest.val`
13040 else
13041   echo "$as_me: program exited with status $ac_status" >&5
13042 echo "$as_me: failed program was:" >&5
13043 sed 's/^/| /' conftest.$ac_ext >&5
13044
13045 ( exit $ac_status )
13046 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
13047 See \`config.log' for more details." >&5
13048 echo "$as_me: error: cannot compute sizeof (short int), 77
13049 See \`config.log' for more details." >&2;}
13050    { (exit 1); exit 1; }; }
13051 fi
13052 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13053 fi
13054 fi
13055 rm -f conftest.val
13056 else
13057   ac_cv_sizeof_short_int=0
13058 fi
13059 fi
13060 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
13061 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6
13062 cat >>confdefs.h <<_ACEOF
13063 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
13064 _ACEOF
13065
13066
13067 echo "$as_me:$LINENO: checking for int" >&5
13068 echo $ECHO_N "checking for int... $ECHO_C" >&6
13069 if test "${ac_cv_type_int+set}" = set; then
13070   echo $ECHO_N "(cached) $ECHO_C" >&6
13071 else
13072   cat >conftest.$ac_ext <<_ACEOF
13073 #line $LINENO "configure"
13074 /* confdefs.h.  */
13075 _ACEOF
13076 cat confdefs.h >>conftest.$ac_ext
13077 cat >>conftest.$ac_ext <<_ACEOF
13078 /* end confdefs.h.  */
13079 $ac_includes_default
13080 int
13081 main ()
13082 {
13083 if ((int *) 0)
13084   return 0;
13085 if (sizeof (int))
13086   return 0;
13087   ;
13088   return 0;
13089 }
13090 _ACEOF
13091 rm -f conftest.$ac_objext
13092 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13093   (eval $ac_compile) 2>&5
13094   ac_status=$?
13095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13096   (exit $ac_status); } &&
13097          { ac_try='test -s conftest.$ac_objext'
13098   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13099   (eval $ac_try) 2>&5
13100   ac_status=$?
13101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13102   (exit $ac_status); }; }; then
13103   ac_cv_type_int=yes
13104 else
13105   echo "$as_me: failed program was:" >&5
13106 sed 's/^/| /' conftest.$ac_ext >&5
13107
13108 ac_cv_type_int=no
13109 fi
13110 rm -f conftest.$ac_objext conftest.$ac_ext
13111 fi
13112 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
13113 echo "${ECHO_T}$ac_cv_type_int" >&6
13114
13115 echo "$as_me:$LINENO: checking size of int" >&5
13116 echo $ECHO_N "checking size of int... $ECHO_C" >&6
13117 if test "${ac_cv_sizeof_int+set}" = set; then
13118   echo $ECHO_N "(cached) $ECHO_C" >&6
13119 else
13120   if test "$ac_cv_type_int" = yes; then
13121   # The cast to unsigned long works around a bug in the HP C Compiler
13122   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13123   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13124   # This bug is HP SR number 8606223364.
13125   if test "$cross_compiling" = yes; then
13126   # Depending upon the size, compute the lo and hi bounds.
13127 cat >conftest.$ac_ext <<_ACEOF
13128 #line $LINENO "configure"
13129 /* confdefs.h.  */
13130 _ACEOF
13131 cat confdefs.h >>conftest.$ac_ext
13132 cat >>conftest.$ac_ext <<_ACEOF
13133 /* end confdefs.h.  */
13134 $ac_includes_default
13135 int
13136 main ()
13137 {
13138 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
13139 test_array [0] = 0
13140
13141   ;
13142   return 0;
13143 }
13144 _ACEOF
13145 rm -f conftest.$ac_objext
13146 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13147   (eval $ac_compile) 2>&5
13148   ac_status=$?
13149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13150   (exit $ac_status); } &&
13151          { ac_try='test -s conftest.$ac_objext'
13152   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13153   (eval $ac_try) 2>&5
13154   ac_status=$?
13155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13156   (exit $ac_status); }; }; then
13157   ac_lo=0 ac_mid=0
13158   while :; do
13159     cat >conftest.$ac_ext <<_ACEOF
13160 #line $LINENO "configure"
13161 /* confdefs.h.  */
13162 _ACEOF
13163 cat confdefs.h >>conftest.$ac_ext
13164 cat >>conftest.$ac_ext <<_ACEOF
13165 /* end confdefs.h.  */
13166 $ac_includes_default
13167 int
13168 main ()
13169 {
13170 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
13171 test_array [0] = 0
13172
13173   ;
13174   return 0;
13175 }
13176 _ACEOF
13177 rm -f conftest.$ac_objext
13178 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13179   (eval $ac_compile) 2>&5
13180   ac_status=$?
13181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13182   (exit $ac_status); } &&
13183          { ac_try='test -s conftest.$ac_objext'
13184   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13185   (eval $ac_try) 2>&5
13186   ac_status=$?
13187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13188   (exit $ac_status); }; }; then
13189   ac_hi=$ac_mid; break
13190 else
13191   echo "$as_me: failed program was:" >&5
13192 sed 's/^/| /' conftest.$ac_ext >&5
13193
13194 ac_lo=`expr $ac_mid + 1`
13195                     if test $ac_lo -le $ac_mid; then
13196                       ac_lo= ac_hi=
13197                       break
13198                     fi
13199                     ac_mid=`expr 2 '*' $ac_mid + 1`
13200 fi
13201 rm -f conftest.$ac_objext conftest.$ac_ext
13202   done
13203 else
13204   echo "$as_me: failed program was:" >&5
13205 sed 's/^/| /' conftest.$ac_ext >&5
13206
13207 cat >conftest.$ac_ext <<_ACEOF
13208 #line $LINENO "configure"
13209 /* confdefs.h.  */
13210 _ACEOF
13211 cat confdefs.h >>conftest.$ac_ext
13212 cat >>conftest.$ac_ext <<_ACEOF
13213 /* end confdefs.h.  */
13214 $ac_includes_default
13215 int
13216 main ()
13217 {
13218 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
13219 test_array [0] = 0
13220
13221   ;
13222   return 0;
13223 }
13224 _ACEOF
13225 rm -f conftest.$ac_objext
13226 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13227   (eval $ac_compile) 2>&5
13228   ac_status=$?
13229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13230   (exit $ac_status); } &&
13231          { ac_try='test -s conftest.$ac_objext'
13232   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13233   (eval $ac_try) 2>&5
13234   ac_status=$?
13235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13236   (exit $ac_status); }; }; then
13237   ac_hi=-1 ac_mid=-1
13238   while :; do
13239     cat >conftest.$ac_ext <<_ACEOF
13240 #line $LINENO "configure"
13241 /* confdefs.h.  */
13242 _ACEOF
13243 cat confdefs.h >>conftest.$ac_ext
13244 cat >>conftest.$ac_ext <<_ACEOF
13245 /* end confdefs.h.  */
13246 $ac_includes_default
13247 int
13248 main ()
13249 {
13250 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
13251 test_array [0] = 0
13252
13253   ;
13254   return 0;
13255 }
13256 _ACEOF
13257 rm -f conftest.$ac_objext
13258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13259   (eval $ac_compile) 2>&5
13260   ac_status=$?
13261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13262   (exit $ac_status); } &&
13263          { ac_try='test -s conftest.$ac_objext'
13264   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13265   (eval $ac_try) 2>&5
13266   ac_status=$?
13267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13268   (exit $ac_status); }; }; then
13269   ac_lo=$ac_mid; break
13270 else
13271   echo "$as_me: failed program was:" >&5
13272 sed 's/^/| /' conftest.$ac_ext >&5
13273
13274 ac_hi=`expr '(' $ac_mid ')' - 1`
13275                        if test $ac_mid -le $ac_hi; then
13276                          ac_lo= ac_hi=
13277                          break
13278                        fi
13279                        ac_mid=`expr 2 '*' $ac_mid`
13280 fi
13281 rm -f conftest.$ac_objext conftest.$ac_ext
13282   done
13283 else
13284   echo "$as_me: failed program was:" >&5
13285 sed 's/^/| /' conftest.$ac_ext >&5
13286
13287 ac_lo= ac_hi=
13288 fi
13289 rm -f conftest.$ac_objext conftest.$ac_ext
13290 fi
13291 rm -f conftest.$ac_objext conftest.$ac_ext
13292 # Binary search between lo and hi bounds.
13293 while test "x$ac_lo" != "x$ac_hi"; do
13294   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13295   cat >conftest.$ac_ext <<_ACEOF
13296 #line $LINENO "configure"
13297 /* confdefs.h.  */
13298 _ACEOF
13299 cat confdefs.h >>conftest.$ac_ext
13300 cat >>conftest.$ac_ext <<_ACEOF
13301 /* end confdefs.h.  */
13302 $ac_includes_default
13303 int
13304 main ()
13305 {
13306 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
13307 test_array [0] = 0
13308
13309   ;
13310   return 0;
13311 }
13312 _ACEOF
13313 rm -f conftest.$ac_objext
13314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13315   (eval $ac_compile) 2>&5
13316   ac_status=$?
13317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13318   (exit $ac_status); } &&
13319          { ac_try='test -s conftest.$ac_objext'
13320   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13321   (eval $ac_try) 2>&5
13322   ac_status=$?
13323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13324   (exit $ac_status); }; }; then
13325   ac_hi=$ac_mid
13326 else
13327   echo "$as_me: failed program was:" >&5
13328 sed 's/^/| /' conftest.$ac_ext >&5
13329
13330 ac_lo=`expr '(' $ac_mid ')' + 1`
13331 fi
13332 rm -f conftest.$ac_objext conftest.$ac_ext
13333 done
13334 case $ac_lo in
13335 ?*) ac_cv_sizeof_int=$ac_lo;;
13336 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
13337 See \`config.log' for more details." >&5
13338 echo "$as_me: error: cannot compute sizeof (int), 77
13339 See \`config.log' for more details." >&2;}
13340    { (exit 1); exit 1; }; } ;;
13341 esac
13342 else
13343   if test "$cross_compiling" = yes; then
13344   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13345 See \`config.log' for more details." >&5
13346 echo "$as_me: error: cannot run test program while cross compiling
13347 See \`config.log' for more details." >&2;}
13348    { (exit 1); exit 1; }; }
13349 else
13350   cat >conftest.$ac_ext <<_ACEOF
13351 #line $LINENO "configure"
13352 /* confdefs.h.  */
13353 _ACEOF
13354 cat confdefs.h >>conftest.$ac_ext
13355 cat >>conftest.$ac_ext <<_ACEOF
13356 /* end confdefs.h.  */
13357 $ac_includes_default
13358 long longval () { return (long) (sizeof (int)); }
13359 unsigned long ulongval () { return (long) (sizeof (int)); }
13360 #include <stdio.h>
13361 #include <stdlib.h>
13362 int
13363 main ()
13364 {
13365
13366   FILE *f = fopen ("conftest.val", "w");
13367   if (! f)
13368     exit (1);
13369   if (((long) (sizeof (int))) < 0)
13370     {
13371       long i = longval ();
13372       if (i != ((long) (sizeof (int))))
13373         exit (1);
13374       fprintf (f, "%ld\n", i);
13375     }
13376   else
13377     {
13378       unsigned long i = ulongval ();
13379       if (i != ((long) (sizeof (int))))
13380         exit (1);
13381       fprintf (f, "%lu\n", i);
13382     }
13383   exit (ferror (f) || fclose (f) != 0);
13384
13385   ;
13386   return 0;
13387 }
13388 _ACEOF
13389 rm -f conftest$ac_exeext
13390 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13391   (eval $ac_link) 2>&5
13392   ac_status=$?
13393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13394   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13395   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13396   (eval $ac_try) 2>&5
13397   ac_status=$?
13398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13399   (exit $ac_status); }; }; then
13400   ac_cv_sizeof_int=`cat conftest.val`
13401 else
13402   echo "$as_me: program exited with status $ac_status" >&5
13403 echo "$as_me: failed program was:" >&5
13404 sed 's/^/| /' conftest.$ac_ext >&5
13405
13406 ( exit $ac_status )
13407 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
13408 See \`config.log' for more details." >&5
13409 echo "$as_me: error: cannot compute sizeof (int), 77
13410 See \`config.log' for more details." >&2;}
13411    { (exit 1); exit 1; }; }
13412 fi
13413 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13414 fi
13415 fi
13416 rm -f conftest.val
13417 else
13418   ac_cv_sizeof_int=0
13419 fi
13420 fi
13421 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
13422 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
13423 cat >>confdefs.h <<_ACEOF
13424 #define SIZEOF_INT $ac_cv_sizeof_int
13425 _ACEOF
13426
13427
13428 echo "$as_me:$LINENO: checking for long int" >&5
13429 echo $ECHO_N "checking for long int... $ECHO_C" >&6
13430 if test "${ac_cv_type_long_int+set}" = set; then
13431   echo $ECHO_N "(cached) $ECHO_C" >&6
13432 else
13433   cat >conftest.$ac_ext <<_ACEOF
13434 #line $LINENO "configure"
13435 /* confdefs.h.  */
13436 _ACEOF
13437 cat confdefs.h >>conftest.$ac_ext
13438 cat >>conftest.$ac_ext <<_ACEOF
13439 /* end confdefs.h.  */
13440 $ac_includes_default
13441 int
13442 main ()
13443 {
13444 if ((long int *) 0)
13445   return 0;
13446 if (sizeof (long int))
13447   return 0;
13448   ;
13449   return 0;
13450 }
13451 _ACEOF
13452 rm -f conftest.$ac_objext
13453 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13454   (eval $ac_compile) 2>&5
13455   ac_status=$?
13456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13457   (exit $ac_status); } &&
13458          { ac_try='test -s conftest.$ac_objext'
13459   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13460   (eval $ac_try) 2>&5
13461   ac_status=$?
13462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13463   (exit $ac_status); }; }; then
13464   ac_cv_type_long_int=yes
13465 else
13466   echo "$as_me: failed program was:" >&5
13467 sed 's/^/| /' conftest.$ac_ext >&5
13468
13469 ac_cv_type_long_int=no
13470 fi
13471 rm -f conftest.$ac_objext conftest.$ac_ext
13472 fi
13473 echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
13474 echo "${ECHO_T}$ac_cv_type_long_int" >&6
13475
13476 echo "$as_me:$LINENO: checking size of long int" >&5
13477 echo $ECHO_N "checking size of long int... $ECHO_C" >&6
13478 if test "${ac_cv_sizeof_long_int+set}" = set; then
13479   echo $ECHO_N "(cached) $ECHO_C" >&6
13480 else
13481   if test "$ac_cv_type_long_int" = yes; then
13482   # The cast to unsigned long works around a bug in the HP C Compiler
13483   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13484   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13485   # This bug is HP SR number 8606223364.
13486   if test "$cross_compiling" = yes; then
13487   # Depending upon the size, compute the lo and hi bounds.
13488 cat >conftest.$ac_ext <<_ACEOF
13489 #line $LINENO "configure"
13490 /* confdefs.h.  */
13491 _ACEOF
13492 cat confdefs.h >>conftest.$ac_ext
13493 cat >>conftest.$ac_ext <<_ACEOF
13494 /* end confdefs.h.  */
13495 $ac_includes_default
13496 int
13497 main ()
13498 {
13499 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= 0)];
13500 test_array [0] = 0
13501
13502   ;
13503   return 0;
13504 }
13505 _ACEOF
13506 rm -f conftest.$ac_objext
13507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13508   (eval $ac_compile) 2>&5
13509   ac_status=$?
13510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13511   (exit $ac_status); } &&
13512          { ac_try='test -s conftest.$ac_objext'
13513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13514   (eval $ac_try) 2>&5
13515   ac_status=$?
13516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13517   (exit $ac_status); }; }; then
13518   ac_lo=0 ac_mid=0
13519   while :; do
13520     cat >conftest.$ac_ext <<_ACEOF
13521 #line $LINENO "configure"
13522 /* confdefs.h.  */
13523 _ACEOF
13524 cat confdefs.h >>conftest.$ac_ext
13525 cat >>conftest.$ac_ext <<_ACEOF
13526 /* end confdefs.h.  */
13527 $ac_includes_default
13528 int
13529 main ()
13530 {
13531 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
13532 test_array [0] = 0
13533
13534   ;
13535   return 0;
13536 }
13537 _ACEOF
13538 rm -f conftest.$ac_objext
13539 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13540   (eval $ac_compile) 2>&5
13541   ac_status=$?
13542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13543   (exit $ac_status); } &&
13544          { ac_try='test -s conftest.$ac_objext'
13545   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13546   (eval $ac_try) 2>&5
13547   ac_status=$?
13548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13549   (exit $ac_status); }; }; then
13550   ac_hi=$ac_mid; break
13551 else
13552   echo "$as_me: failed program was:" >&5
13553 sed 's/^/| /' conftest.$ac_ext >&5
13554
13555 ac_lo=`expr $ac_mid + 1`
13556                     if test $ac_lo -le $ac_mid; then
13557                       ac_lo= ac_hi=
13558                       break
13559                     fi
13560                     ac_mid=`expr 2 '*' $ac_mid + 1`
13561 fi
13562 rm -f conftest.$ac_objext conftest.$ac_ext
13563   done
13564 else
13565   echo "$as_me: failed program was:" >&5
13566 sed 's/^/| /' conftest.$ac_ext >&5
13567
13568 cat >conftest.$ac_ext <<_ACEOF
13569 #line $LINENO "configure"
13570 /* confdefs.h.  */
13571 _ACEOF
13572 cat confdefs.h >>conftest.$ac_ext
13573 cat >>conftest.$ac_ext <<_ACEOF
13574 /* end confdefs.h.  */
13575 $ac_includes_default
13576 int
13577 main ()
13578 {
13579 static int test_array [1 - 2 * !(((long) (sizeof (long int))) < 0)];
13580 test_array [0] = 0
13581
13582   ;
13583   return 0;
13584 }
13585 _ACEOF
13586 rm -f conftest.$ac_objext
13587 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13588   (eval $ac_compile) 2>&5
13589   ac_status=$?
13590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13591   (exit $ac_status); } &&
13592          { ac_try='test -s conftest.$ac_objext'
13593   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13594   (eval $ac_try) 2>&5
13595   ac_status=$?
13596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13597   (exit $ac_status); }; }; then
13598   ac_hi=-1 ac_mid=-1
13599   while :; do
13600     cat >conftest.$ac_ext <<_ACEOF
13601 #line $LINENO "configure"
13602 /* confdefs.h.  */
13603 _ACEOF
13604 cat confdefs.h >>conftest.$ac_ext
13605 cat >>conftest.$ac_ext <<_ACEOF
13606 /* end confdefs.h.  */
13607 $ac_includes_default
13608 int
13609 main ()
13610 {
13611 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= $ac_mid)];
13612 test_array [0] = 0
13613
13614   ;
13615   return 0;
13616 }
13617 _ACEOF
13618 rm -f conftest.$ac_objext
13619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13620   (eval $ac_compile) 2>&5
13621   ac_status=$?
13622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13623   (exit $ac_status); } &&
13624          { ac_try='test -s conftest.$ac_objext'
13625   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13626   (eval $ac_try) 2>&5
13627   ac_status=$?
13628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13629   (exit $ac_status); }; }; then
13630   ac_lo=$ac_mid; break
13631 else
13632   echo "$as_me: failed program was:" >&5
13633 sed 's/^/| /' conftest.$ac_ext >&5
13634
13635 ac_hi=`expr '(' $ac_mid ')' - 1`
13636                        if test $ac_mid -le $ac_hi; then
13637                          ac_lo= ac_hi=
13638                          break
13639                        fi
13640                        ac_mid=`expr 2 '*' $ac_mid`
13641 fi
13642 rm -f conftest.$ac_objext conftest.$ac_ext
13643   done
13644 else
13645   echo "$as_me: failed program was:" >&5
13646 sed 's/^/| /' conftest.$ac_ext >&5
13647
13648 ac_lo= ac_hi=
13649 fi
13650 rm -f conftest.$ac_objext conftest.$ac_ext
13651 fi
13652 rm -f conftest.$ac_objext conftest.$ac_ext
13653 # Binary search between lo and hi bounds.
13654 while test "x$ac_lo" != "x$ac_hi"; do
13655   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13656   cat >conftest.$ac_ext <<_ACEOF
13657 #line $LINENO "configure"
13658 /* confdefs.h.  */
13659 _ACEOF
13660 cat confdefs.h >>conftest.$ac_ext
13661 cat >>conftest.$ac_ext <<_ACEOF
13662 /* end confdefs.h.  */
13663 $ac_includes_default
13664 int
13665 main ()
13666 {
13667 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
13668 test_array [0] = 0
13669
13670   ;
13671   return 0;
13672 }
13673 _ACEOF
13674 rm -f conftest.$ac_objext
13675 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13676   (eval $ac_compile) 2>&5
13677   ac_status=$?
13678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13679   (exit $ac_status); } &&
13680          { ac_try='test -s conftest.$ac_objext'
13681   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13682   (eval $ac_try) 2>&5
13683   ac_status=$?
13684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13685   (exit $ac_status); }; }; then
13686   ac_hi=$ac_mid
13687 else
13688   echo "$as_me: failed program was:" >&5
13689 sed 's/^/| /' conftest.$ac_ext >&5
13690
13691 ac_lo=`expr '(' $ac_mid ')' + 1`
13692 fi
13693 rm -f conftest.$ac_objext conftest.$ac_ext
13694 done
13695 case $ac_lo in
13696 ?*) ac_cv_sizeof_long_int=$ac_lo;;
13697 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
13698 See \`config.log' for more details." >&5
13699 echo "$as_me: error: cannot compute sizeof (long int), 77
13700 See \`config.log' for more details." >&2;}
13701    { (exit 1); exit 1; }; } ;;
13702 esac
13703 else
13704   if test "$cross_compiling" = yes; then
13705   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13706 See \`config.log' for more details." >&5
13707 echo "$as_me: error: cannot run test program while cross compiling
13708 See \`config.log' for more details." >&2;}
13709    { (exit 1); exit 1; }; }
13710 else
13711   cat >conftest.$ac_ext <<_ACEOF
13712 #line $LINENO "configure"
13713 /* confdefs.h.  */
13714 _ACEOF
13715 cat confdefs.h >>conftest.$ac_ext
13716 cat >>conftest.$ac_ext <<_ACEOF
13717 /* end confdefs.h.  */
13718 $ac_includes_default
13719 long longval () { return (long) (sizeof (long int)); }
13720 unsigned long ulongval () { return (long) (sizeof (long int)); }
13721 #include <stdio.h>
13722 #include <stdlib.h>
13723 int
13724 main ()
13725 {
13726
13727   FILE *f = fopen ("conftest.val", "w");
13728   if (! f)
13729     exit (1);
13730   if (((long) (sizeof (long int))) < 0)
13731     {
13732       long i = longval ();
13733       if (i != ((long) (sizeof (long int))))
13734         exit (1);
13735       fprintf (f, "%ld\n", i);
13736     }
13737   else
13738     {
13739       unsigned long i = ulongval ();
13740       if (i != ((long) (sizeof (long int))))
13741         exit (1);
13742       fprintf (f, "%lu\n", i);
13743     }
13744   exit (ferror (f) || fclose (f) != 0);
13745
13746   ;
13747   return 0;
13748 }
13749 _ACEOF
13750 rm -f conftest$ac_exeext
13751 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13752   (eval $ac_link) 2>&5
13753   ac_status=$?
13754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13755   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13756   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13757   (eval $ac_try) 2>&5
13758   ac_status=$?
13759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13760   (exit $ac_status); }; }; then
13761   ac_cv_sizeof_long_int=`cat conftest.val`
13762 else
13763   echo "$as_me: program exited with status $ac_status" >&5
13764 echo "$as_me: failed program was:" >&5
13765 sed 's/^/| /' conftest.$ac_ext >&5
13766
13767 ( exit $ac_status )
13768 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
13769 See \`config.log' for more details." >&5
13770 echo "$as_me: error: cannot compute sizeof (long int), 77
13771 See \`config.log' for more details." >&2;}
13772    { (exit 1); exit 1; }; }
13773 fi
13774 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13775 fi
13776 fi
13777 rm -f conftest.val
13778 else
13779   ac_cv_sizeof_long_int=0
13780 fi
13781 fi
13782 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
13783 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6
13784 cat >>confdefs.h <<_ACEOF
13785 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
13786 _ACEOF
13787
13788
13789 echo "$as_me:$LINENO: checking for long long int" >&5
13790 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
13791 if test "${ac_cv_type_long_long_int+set}" = set; then
13792   echo $ECHO_N "(cached) $ECHO_C" >&6
13793 else
13794   cat >conftest.$ac_ext <<_ACEOF
13795 #line $LINENO "configure"
13796 /* confdefs.h.  */
13797 _ACEOF
13798 cat confdefs.h >>conftest.$ac_ext
13799 cat >>conftest.$ac_ext <<_ACEOF
13800 /* end confdefs.h.  */
13801 $ac_includes_default
13802 int
13803 main ()
13804 {
13805 if ((long long int *) 0)
13806   return 0;
13807 if (sizeof (long long int))
13808   return 0;
13809   ;
13810   return 0;
13811 }
13812 _ACEOF
13813 rm -f conftest.$ac_objext
13814 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13815   (eval $ac_compile) 2>&5
13816   ac_status=$?
13817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13818   (exit $ac_status); } &&
13819          { ac_try='test -s conftest.$ac_objext'
13820   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13821   (eval $ac_try) 2>&5
13822   ac_status=$?
13823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13824   (exit $ac_status); }; }; then
13825   ac_cv_type_long_long_int=yes
13826 else
13827   echo "$as_me: failed program was:" >&5
13828 sed 's/^/| /' conftest.$ac_ext >&5
13829
13830 ac_cv_type_long_long_int=no
13831 fi
13832 rm -f conftest.$ac_objext conftest.$ac_ext
13833 fi
13834 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
13835 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
13836
13837 echo "$as_me:$LINENO: checking size of long long int" >&5
13838 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6
13839 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
13840   echo $ECHO_N "(cached) $ECHO_C" >&6
13841 else
13842   if test "$ac_cv_type_long_long_int" = yes; then
13843   # The cast to unsigned long works around a bug in the HP C Compiler
13844   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13845   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13846   # This bug is HP SR number 8606223364.
13847   if test "$cross_compiling" = yes; then
13848   # Depending upon the size, compute the lo and hi bounds.
13849 cat >conftest.$ac_ext <<_ACEOF
13850 #line $LINENO "configure"
13851 /* confdefs.h.  */
13852 _ACEOF
13853 cat confdefs.h >>conftest.$ac_ext
13854 cat >>conftest.$ac_ext <<_ACEOF
13855 /* end confdefs.h.  */
13856 $ac_includes_default
13857 int
13858 main ()
13859 {
13860 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= 0)];
13861 test_array [0] = 0
13862
13863   ;
13864   return 0;
13865 }
13866 _ACEOF
13867 rm -f conftest.$ac_objext
13868 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13869   (eval $ac_compile) 2>&5
13870   ac_status=$?
13871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13872   (exit $ac_status); } &&
13873          { ac_try='test -s conftest.$ac_objext'
13874   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13875   (eval $ac_try) 2>&5
13876   ac_status=$?
13877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13878   (exit $ac_status); }; }; then
13879   ac_lo=0 ac_mid=0
13880   while :; do
13881     cat >conftest.$ac_ext <<_ACEOF
13882 #line $LINENO "configure"
13883 /* confdefs.h.  */
13884 _ACEOF
13885 cat confdefs.h >>conftest.$ac_ext
13886 cat >>conftest.$ac_ext <<_ACEOF
13887 /* end confdefs.h.  */
13888 $ac_includes_default
13889 int
13890 main ()
13891 {
13892 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
13893 test_array [0] = 0
13894
13895   ;
13896   return 0;
13897 }
13898 _ACEOF
13899 rm -f conftest.$ac_objext
13900 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13901   (eval $ac_compile) 2>&5
13902   ac_status=$?
13903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13904   (exit $ac_status); } &&
13905          { ac_try='test -s conftest.$ac_objext'
13906   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13907   (eval $ac_try) 2>&5
13908   ac_status=$?
13909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13910   (exit $ac_status); }; }; then
13911   ac_hi=$ac_mid; break
13912 else
13913   echo "$as_me: failed program was:" >&5
13914 sed 's/^/| /' conftest.$ac_ext >&5
13915
13916 ac_lo=`expr $ac_mid + 1`
13917                     if test $ac_lo -le $ac_mid; then
13918                       ac_lo= ac_hi=
13919                       break
13920                     fi
13921                     ac_mid=`expr 2 '*' $ac_mid + 1`
13922 fi
13923 rm -f conftest.$ac_objext conftest.$ac_ext
13924   done
13925 else
13926   echo "$as_me: failed program was:" >&5
13927 sed 's/^/| /' conftest.$ac_ext >&5
13928
13929 cat >conftest.$ac_ext <<_ACEOF
13930 #line $LINENO "configure"
13931 /* confdefs.h.  */
13932 _ACEOF
13933 cat confdefs.h >>conftest.$ac_ext
13934 cat >>conftest.$ac_ext <<_ACEOF
13935 /* end confdefs.h.  */
13936 $ac_includes_default
13937 int
13938 main ()
13939 {
13940 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) < 0)];
13941 test_array [0] = 0
13942
13943   ;
13944   return 0;
13945 }
13946 _ACEOF
13947 rm -f conftest.$ac_objext
13948 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13949   (eval $ac_compile) 2>&5
13950   ac_status=$?
13951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13952   (exit $ac_status); } &&
13953          { ac_try='test -s conftest.$ac_objext'
13954   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13955   (eval $ac_try) 2>&5
13956   ac_status=$?
13957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13958   (exit $ac_status); }; }; then
13959   ac_hi=-1 ac_mid=-1
13960   while :; do
13961     cat >conftest.$ac_ext <<_ACEOF
13962 #line $LINENO "configure"
13963 /* confdefs.h.  */
13964 _ACEOF
13965 cat confdefs.h >>conftest.$ac_ext
13966 cat >>conftest.$ac_ext <<_ACEOF
13967 /* end confdefs.h.  */
13968 $ac_includes_default
13969 int
13970 main ()
13971 {
13972 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= $ac_mid)];
13973 test_array [0] = 0
13974
13975   ;
13976   return 0;
13977 }
13978 _ACEOF
13979 rm -f conftest.$ac_objext
13980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13981   (eval $ac_compile) 2>&5
13982   ac_status=$?
13983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13984   (exit $ac_status); } &&
13985          { ac_try='test -s conftest.$ac_objext'
13986   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13987   (eval $ac_try) 2>&5
13988   ac_status=$?
13989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13990   (exit $ac_status); }; }; then
13991   ac_lo=$ac_mid; break
13992 else
13993   echo "$as_me: failed program was:" >&5
13994 sed 's/^/| /' conftest.$ac_ext >&5
13995
13996 ac_hi=`expr '(' $ac_mid ')' - 1`
13997                        if test $ac_mid -le $ac_hi; then
13998                          ac_lo= ac_hi=
13999                          break
14000                        fi
14001                        ac_mid=`expr 2 '*' $ac_mid`
14002 fi
14003 rm -f conftest.$ac_objext conftest.$ac_ext
14004   done
14005 else
14006   echo "$as_me: failed program was:" >&5
14007 sed 's/^/| /' conftest.$ac_ext >&5
14008
14009 ac_lo= ac_hi=
14010 fi
14011 rm -f conftest.$ac_objext conftest.$ac_ext
14012 fi
14013 rm -f conftest.$ac_objext conftest.$ac_ext
14014 # Binary search between lo and hi bounds.
14015 while test "x$ac_lo" != "x$ac_hi"; do
14016   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14017   cat >conftest.$ac_ext <<_ACEOF
14018 #line $LINENO "configure"
14019 /* confdefs.h.  */
14020 _ACEOF
14021 cat confdefs.h >>conftest.$ac_ext
14022 cat >>conftest.$ac_ext <<_ACEOF
14023 /* end confdefs.h.  */
14024 $ac_includes_default
14025 int
14026 main ()
14027 {
14028 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
14029 test_array [0] = 0
14030
14031   ;
14032   return 0;
14033 }
14034 _ACEOF
14035 rm -f conftest.$ac_objext
14036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14037   (eval $ac_compile) 2>&5
14038   ac_status=$?
14039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14040   (exit $ac_status); } &&
14041          { ac_try='test -s conftest.$ac_objext'
14042   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14043   (eval $ac_try) 2>&5
14044   ac_status=$?
14045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14046   (exit $ac_status); }; }; then
14047   ac_hi=$ac_mid
14048 else
14049   echo "$as_me: failed program was:" >&5
14050 sed 's/^/| /' conftest.$ac_ext >&5
14051
14052 ac_lo=`expr '(' $ac_mid ')' + 1`
14053 fi
14054 rm -f conftest.$ac_objext conftest.$ac_ext
14055 done
14056 case $ac_lo in
14057 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
14058 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
14059 See \`config.log' for more details." >&5
14060 echo "$as_me: error: cannot compute sizeof (long long int), 77
14061 See \`config.log' for more details." >&2;}
14062    { (exit 1); exit 1; }; } ;;
14063 esac
14064 else
14065   if test "$cross_compiling" = yes; then
14066   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14067 See \`config.log' for more details." >&5
14068 echo "$as_me: error: cannot run test program while cross compiling
14069 See \`config.log' for more details." >&2;}
14070    { (exit 1); exit 1; }; }
14071 else
14072   cat >conftest.$ac_ext <<_ACEOF
14073 #line $LINENO "configure"
14074 /* confdefs.h.  */
14075 _ACEOF
14076 cat confdefs.h >>conftest.$ac_ext
14077 cat >>conftest.$ac_ext <<_ACEOF
14078 /* end confdefs.h.  */
14079 $ac_includes_default
14080 long longval () { return (long) (sizeof (long long int)); }
14081 unsigned long ulongval () { return (long) (sizeof (long long int)); }
14082 #include <stdio.h>
14083 #include <stdlib.h>
14084 int
14085 main ()
14086 {
14087
14088   FILE *f = fopen ("conftest.val", "w");
14089   if (! f)
14090     exit (1);
14091   if (((long) (sizeof (long long int))) < 0)
14092     {
14093       long i = longval ();
14094       if (i != ((long) (sizeof (long long int))))
14095         exit (1);
14096       fprintf (f, "%ld\n", i);
14097     }
14098   else
14099     {
14100       unsigned long i = ulongval ();
14101       if (i != ((long) (sizeof (long long int))))
14102         exit (1);
14103       fprintf (f, "%lu\n", i);
14104     }
14105   exit (ferror (f) || fclose (f) != 0);
14106
14107   ;
14108   return 0;
14109 }
14110 _ACEOF
14111 rm -f conftest$ac_exeext
14112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14113   (eval $ac_link) 2>&5
14114   ac_status=$?
14115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14116   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14117   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14118   (eval $ac_try) 2>&5
14119   ac_status=$?
14120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14121   (exit $ac_status); }; }; then
14122   ac_cv_sizeof_long_long_int=`cat conftest.val`
14123 else
14124   echo "$as_me: program exited with status $ac_status" >&5
14125 echo "$as_me: failed program was:" >&5
14126 sed 's/^/| /' conftest.$ac_ext >&5
14127
14128 ( exit $ac_status )
14129 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
14130 See \`config.log' for more details." >&5
14131 echo "$as_me: error: cannot compute sizeof (long long int), 77
14132 See \`config.log' for more details." >&2;}
14133    { (exit 1); exit 1; }; }
14134 fi
14135 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14136 fi
14137 fi
14138 rm -f conftest.val
14139 else
14140   ac_cv_sizeof_long_long_int=0
14141 fi
14142 fi
14143 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
14144 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6
14145 cat >>confdefs.h <<_ACEOF
14146 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
14147 _ACEOF
14148
14149
14150 echo "$as_me:$LINENO: checking for int *" >&5
14151 echo $ECHO_N "checking for int *... $ECHO_C" >&6
14152 if test "${ac_cv_type_int_p+set}" = set; then
14153   echo $ECHO_N "(cached) $ECHO_C" >&6
14154 else
14155   cat >conftest.$ac_ext <<_ACEOF
14156 #line $LINENO "configure"
14157 /* confdefs.h.  */
14158 _ACEOF
14159 cat confdefs.h >>conftest.$ac_ext
14160 cat >>conftest.$ac_ext <<_ACEOF
14161 /* end confdefs.h.  */
14162 $ac_includes_default
14163 int
14164 main ()
14165 {
14166 if ((int * *) 0)
14167   return 0;
14168 if (sizeof (int *))
14169   return 0;
14170   ;
14171   return 0;
14172 }
14173 _ACEOF
14174 rm -f conftest.$ac_objext
14175 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14176   (eval $ac_compile) 2>&5
14177   ac_status=$?
14178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14179   (exit $ac_status); } &&
14180          { ac_try='test -s conftest.$ac_objext'
14181   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14182   (eval $ac_try) 2>&5
14183   ac_status=$?
14184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14185   (exit $ac_status); }; }; then
14186   ac_cv_type_int_p=yes
14187 else
14188   echo "$as_me: failed program was:" >&5
14189 sed 's/^/| /' conftest.$ac_ext >&5
14190
14191 ac_cv_type_int_p=no
14192 fi
14193 rm -f conftest.$ac_objext conftest.$ac_ext
14194 fi
14195 echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
14196 echo "${ECHO_T}$ac_cv_type_int_p" >&6
14197
14198 echo "$as_me:$LINENO: checking size of int *" >&5
14199 echo $ECHO_N "checking size of int *... $ECHO_C" >&6
14200 if test "${ac_cv_sizeof_int_p+set}" = set; then
14201   echo $ECHO_N "(cached) $ECHO_C" >&6
14202 else
14203   if test "$ac_cv_type_int_p" = yes; then
14204   # The cast to unsigned long works around a bug in the HP C Compiler
14205   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14206   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14207   # This bug is HP SR number 8606223364.
14208   if test "$cross_compiling" = yes; then
14209   # Depending upon the size, compute the lo and hi bounds.
14210 cat >conftest.$ac_ext <<_ACEOF
14211 #line $LINENO "configure"
14212 /* confdefs.h.  */
14213 _ACEOF
14214 cat confdefs.h >>conftest.$ac_ext
14215 cat >>conftest.$ac_ext <<_ACEOF
14216 /* end confdefs.h.  */
14217 $ac_includes_default
14218 int
14219 main ()
14220 {
14221 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= 0)];
14222 test_array [0] = 0
14223
14224   ;
14225   return 0;
14226 }
14227 _ACEOF
14228 rm -f conftest.$ac_objext
14229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14230   (eval $ac_compile) 2>&5
14231   ac_status=$?
14232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14233   (exit $ac_status); } &&
14234          { ac_try='test -s conftest.$ac_objext'
14235   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14236   (eval $ac_try) 2>&5
14237   ac_status=$?
14238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14239   (exit $ac_status); }; }; then
14240   ac_lo=0 ac_mid=0
14241   while :; do
14242     cat >conftest.$ac_ext <<_ACEOF
14243 #line $LINENO "configure"
14244 /* confdefs.h.  */
14245 _ACEOF
14246 cat confdefs.h >>conftest.$ac_ext
14247 cat >>conftest.$ac_ext <<_ACEOF
14248 /* end confdefs.h.  */
14249 $ac_includes_default
14250 int
14251 main ()
14252 {
14253 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
14254 test_array [0] = 0
14255
14256   ;
14257   return 0;
14258 }
14259 _ACEOF
14260 rm -f conftest.$ac_objext
14261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14262   (eval $ac_compile) 2>&5
14263   ac_status=$?
14264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14265   (exit $ac_status); } &&
14266          { ac_try='test -s conftest.$ac_objext'
14267   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14268   (eval $ac_try) 2>&5
14269   ac_status=$?
14270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14271   (exit $ac_status); }; }; then
14272   ac_hi=$ac_mid; break
14273 else
14274   echo "$as_me: failed program was:" >&5
14275 sed 's/^/| /' conftest.$ac_ext >&5
14276
14277 ac_lo=`expr $ac_mid + 1`
14278                     if test $ac_lo -le $ac_mid; then
14279                       ac_lo= ac_hi=
14280                       break
14281                     fi
14282                     ac_mid=`expr 2 '*' $ac_mid + 1`
14283 fi
14284 rm -f conftest.$ac_objext conftest.$ac_ext
14285   done
14286 else
14287   echo "$as_me: failed program was:" >&5
14288 sed 's/^/| /' conftest.$ac_ext >&5
14289
14290 cat >conftest.$ac_ext <<_ACEOF
14291 #line $LINENO "configure"
14292 /* confdefs.h.  */
14293 _ACEOF
14294 cat confdefs.h >>conftest.$ac_ext
14295 cat >>conftest.$ac_ext <<_ACEOF
14296 /* end confdefs.h.  */
14297 $ac_includes_default
14298 int
14299 main ()
14300 {
14301 static int test_array [1 - 2 * !(((long) (sizeof (int *))) < 0)];
14302 test_array [0] = 0
14303
14304   ;
14305   return 0;
14306 }
14307 _ACEOF
14308 rm -f conftest.$ac_objext
14309 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14310   (eval $ac_compile) 2>&5
14311   ac_status=$?
14312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14313   (exit $ac_status); } &&
14314          { ac_try='test -s conftest.$ac_objext'
14315   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14316   (eval $ac_try) 2>&5
14317   ac_status=$?
14318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14319   (exit $ac_status); }; }; then
14320   ac_hi=-1 ac_mid=-1
14321   while :; do
14322     cat >conftest.$ac_ext <<_ACEOF
14323 #line $LINENO "configure"
14324 /* confdefs.h.  */
14325 _ACEOF
14326 cat confdefs.h >>conftest.$ac_ext
14327 cat >>conftest.$ac_ext <<_ACEOF
14328 /* end confdefs.h.  */
14329 $ac_includes_default
14330 int
14331 main ()
14332 {
14333 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= $ac_mid)];
14334 test_array [0] = 0
14335
14336   ;
14337   return 0;
14338 }
14339 _ACEOF
14340 rm -f conftest.$ac_objext
14341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14342   (eval $ac_compile) 2>&5
14343   ac_status=$?
14344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14345   (exit $ac_status); } &&
14346          { ac_try='test -s conftest.$ac_objext'
14347   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14348   (eval $ac_try) 2>&5
14349   ac_status=$?
14350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14351   (exit $ac_status); }; }; then
14352   ac_lo=$ac_mid; break
14353 else
14354   echo "$as_me: failed program was:" >&5
14355 sed 's/^/| /' conftest.$ac_ext >&5
14356
14357 ac_hi=`expr '(' $ac_mid ')' - 1`
14358                        if test $ac_mid -le $ac_hi; then
14359                          ac_lo= ac_hi=
14360                          break
14361                        fi
14362                        ac_mid=`expr 2 '*' $ac_mid`
14363 fi
14364 rm -f conftest.$ac_objext conftest.$ac_ext
14365   done
14366 else
14367   echo "$as_me: failed program was:" >&5
14368 sed 's/^/| /' conftest.$ac_ext >&5
14369
14370 ac_lo= ac_hi=
14371 fi
14372 rm -f conftest.$ac_objext conftest.$ac_ext
14373 fi
14374 rm -f conftest.$ac_objext conftest.$ac_ext
14375 # Binary search between lo and hi bounds.
14376 while test "x$ac_lo" != "x$ac_hi"; do
14377   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14378   cat >conftest.$ac_ext <<_ACEOF
14379 #line $LINENO "configure"
14380 /* confdefs.h.  */
14381 _ACEOF
14382 cat confdefs.h >>conftest.$ac_ext
14383 cat >>conftest.$ac_ext <<_ACEOF
14384 /* end confdefs.h.  */
14385 $ac_includes_default
14386 int
14387 main ()
14388 {
14389 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
14390 test_array [0] = 0
14391
14392   ;
14393   return 0;
14394 }
14395 _ACEOF
14396 rm -f conftest.$ac_objext
14397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14398   (eval $ac_compile) 2>&5
14399   ac_status=$?
14400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14401   (exit $ac_status); } &&
14402          { ac_try='test -s conftest.$ac_objext'
14403   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14404   (eval $ac_try) 2>&5
14405   ac_status=$?
14406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14407   (exit $ac_status); }; }; then
14408   ac_hi=$ac_mid
14409 else
14410   echo "$as_me: failed program was:" >&5
14411 sed 's/^/| /' conftest.$ac_ext >&5
14412
14413 ac_lo=`expr '(' $ac_mid ')' + 1`
14414 fi
14415 rm -f conftest.$ac_objext conftest.$ac_ext
14416 done
14417 case $ac_lo in
14418 ?*) ac_cv_sizeof_int_p=$ac_lo;;
14419 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
14420 See \`config.log' for more details." >&5
14421 echo "$as_me: error: cannot compute sizeof (int *), 77
14422 See \`config.log' for more details." >&2;}
14423    { (exit 1); exit 1; }; } ;;
14424 esac
14425 else
14426   if test "$cross_compiling" = yes; then
14427   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14428 See \`config.log' for more details." >&5
14429 echo "$as_me: error: cannot run test program while cross compiling
14430 See \`config.log' for more details." >&2;}
14431    { (exit 1); exit 1; }; }
14432 else
14433   cat >conftest.$ac_ext <<_ACEOF
14434 #line $LINENO "configure"
14435 /* confdefs.h.  */
14436 _ACEOF
14437 cat confdefs.h >>conftest.$ac_ext
14438 cat >>conftest.$ac_ext <<_ACEOF
14439 /* end confdefs.h.  */
14440 $ac_includes_default
14441 long longval () { return (long) (sizeof (int *)); }
14442 unsigned long ulongval () { return (long) (sizeof (int *)); }
14443 #include <stdio.h>
14444 #include <stdlib.h>
14445 int
14446 main ()
14447 {
14448
14449   FILE *f = fopen ("conftest.val", "w");
14450   if (! f)
14451     exit (1);
14452   if (((long) (sizeof (int *))) < 0)
14453     {
14454       long i = longval ();
14455       if (i != ((long) (sizeof (int *))))
14456         exit (1);
14457       fprintf (f, "%ld\n", i);
14458     }
14459   else
14460     {
14461       unsigned long i = ulongval ();
14462       if (i != ((long) (sizeof (int *))))
14463         exit (1);
14464       fprintf (f, "%lu\n", i);
14465     }
14466   exit (ferror (f) || fclose (f) != 0);
14467
14468   ;
14469   return 0;
14470 }
14471 _ACEOF
14472 rm -f conftest$ac_exeext
14473 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14474   (eval $ac_link) 2>&5
14475   ac_status=$?
14476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14477   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14479   (eval $ac_try) 2>&5
14480   ac_status=$?
14481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14482   (exit $ac_status); }; }; then
14483   ac_cv_sizeof_int_p=`cat conftest.val`
14484 else
14485   echo "$as_me: program exited with status $ac_status" >&5
14486 echo "$as_me: failed program was:" >&5
14487 sed 's/^/| /' conftest.$ac_ext >&5
14488
14489 ( exit $ac_status )
14490 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
14491 See \`config.log' for more details." >&5
14492 echo "$as_me: error: cannot compute sizeof (int *), 77
14493 See \`config.log' for more details." >&2;}
14494    { (exit 1); exit 1; }; }
14495 fi
14496 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14497 fi
14498 fi
14499 rm -f conftest.val
14500 else
14501   ac_cv_sizeof_int_p=0
14502 fi
14503 fi
14504 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
14505 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6
14506 cat >>confdefs.h <<_ACEOF
14507 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
14508 _ACEOF
14509
14510
14511
14512 # Check for sys/types.h types
14513 echo "$as_me:$LINENO: checking for u_int type" >&5
14514 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6
14515 if test "${ac_cv_have_u_int+set}" = set; then
14516   echo $ECHO_N "(cached) $ECHO_C" >&6
14517 else
14518
14519     cat >conftest.$ac_ext <<_ACEOF
14520 #line $LINENO "configure"
14521 /* confdefs.h.  */
14522 _ACEOF
14523 cat confdefs.h >>conftest.$ac_ext
14524 cat >>conftest.$ac_ext <<_ACEOF
14525 /* end confdefs.h.  */
14526  #include <sys/types.h>
14527 int
14528 main ()
14529 {
14530  u_int a; a = 1;
14531   ;
14532   return 0;
14533 }
14534 _ACEOF
14535 rm -f conftest.$ac_objext
14536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14537   (eval $ac_compile) 2>&5
14538   ac_status=$?
14539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14540   (exit $ac_status); } &&
14541          { ac_try='test -s conftest.$ac_objext'
14542   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14543   (eval $ac_try) 2>&5
14544   ac_status=$?
14545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14546   (exit $ac_status); }; }; then
14547    ac_cv_have_u_int="yes"
14548 else
14549   echo "$as_me: failed program was:" >&5
14550 sed 's/^/| /' conftest.$ac_ext >&5
14551
14552  ac_cv_have_u_int="no"
14553
14554 fi
14555 rm -f conftest.$ac_objext conftest.$ac_ext
14556
14557 fi
14558 echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
14559 echo "${ECHO_T}$ac_cv_have_u_int" >&6
14560 if test "x$ac_cv_have_u_int" = "xyes" ; then
14561    cat >>confdefs.h <<\_ACEOF
14562 #define HAVE_U_INT 1
14563 _ACEOF
14564
14565    have_u_int=1
14566 fi
14567
14568 echo "$as_me:$LINENO: checking for intmax_t type" >&5
14569 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6
14570 if test "${ac_cv_have_intmax_t+set}" = set; then
14571   echo $ECHO_N "(cached) $ECHO_C" >&6
14572 else
14573
14574    cat >conftest.$ac_ext <<_ACEOF
14575 #line $LINENO "configure"
14576 /* confdefs.h.  */
14577 _ACEOF
14578 cat confdefs.h >>conftest.$ac_ext
14579 cat >>conftest.$ac_ext <<_ACEOF
14580 /* end confdefs.h.  */
14581  #include <sys/types.h>
14582 int
14583 main ()
14584 {
14585  intmax_t a; a = 1;
14586   ;
14587   return 0;
14588 }
14589 _ACEOF
14590 rm -f conftest.$ac_objext
14591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14592   (eval $ac_compile) 2>&5
14593   ac_status=$?
14594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14595   (exit $ac_status); } &&
14596          { ac_try='test -s conftest.$ac_objext'
14597   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14598   (eval $ac_try) 2>&5
14599   ac_status=$?
14600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14601   (exit $ac_status); }; }; then
14602    ac_cv_have_intmax_t="yes"
14603 else
14604   echo "$as_me: failed program was:" >&5
14605 sed 's/^/| /' conftest.$ac_ext >&5
14606
14607
14608          cat >conftest.$ac_ext <<_ACEOF
14609 #line $LINENO "configure"
14610 /* confdefs.h.  */
14611 _ACEOF
14612 cat confdefs.h >>conftest.$ac_ext
14613 cat >>conftest.$ac_ext <<_ACEOF
14614 /* end confdefs.h.  */
14615  #include <stdint.h>
14616 int
14617 main ()
14618 {
14619  intmax_t a; a = 1;
14620   ;
14621   return 0;
14622 }
14623 _ACEOF
14624 rm -f conftest.$ac_objext
14625 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14626   (eval $ac_compile) 2>&5
14627   ac_status=$?
14628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14629   (exit $ac_status); } &&
14630          { ac_try='test -s conftest.$ac_objext'
14631   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14632   (eval $ac_try) 2>&5
14633   ac_status=$?
14634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14635   (exit $ac_status); }; }; then
14636    ac_cv_have_intmax_t="yes"
14637 else
14638   echo "$as_me: failed program was:" >&5
14639 sed 's/^/| /' conftest.$ac_ext >&5
14640
14641  ac_cv_have_intmax_t="no"
14642
14643 fi
14644 rm -f conftest.$ac_objext conftest.$ac_ext
14645
14646
14647 fi
14648 rm -f conftest.$ac_objext conftest.$ac_ext
14649
14650
14651 fi
14652 echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
14653 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6
14654 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
14655    cat >>confdefs.h <<\_ACEOF
14656 #define HAVE_INTMAX_T 1
14657 _ACEOF
14658
14659    have_intmax_t=1
14660 fi
14661
14662
14663 echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
14664 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6
14665 if test "${ac_cv_have_u_intmax_t+set}" = set; then
14666   echo $ECHO_N "(cached) $ECHO_C" >&6
14667 else
14668
14669    cat >conftest.$ac_ext <<_ACEOF
14670 #line $LINENO "configure"
14671 /* confdefs.h.  */
14672 _ACEOF
14673 cat confdefs.h >>conftest.$ac_ext
14674 cat >>conftest.$ac_ext <<_ACEOF
14675 /* end confdefs.h.  */
14676  #include <sys/types.h>
14677 int
14678 main ()
14679 {
14680  u_intmax_t a; a = 1;
14681   ;
14682   return 0;
14683 }
14684 _ACEOF
14685 rm -f conftest.$ac_objext
14686 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14687   (eval $ac_compile) 2>&5
14688   ac_status=$?
14689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14690   (exit $ac_status); } &&
14691          { ac_try='test -s conftest.$ac_objext'
14692   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14693   (eval $ac_try) 2>&5
14694   ac_status=$?
14695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14696   (exit $ac_status); }; }; then
14697    ac_cv_have_u_intmax_t="yes"
14698 else
14699   echo "$as_me: failed program was:" >&5
14700 sed 's/^/| /' conftest.$ac_ext >&5
14701
14702
14703          cat >conftest.$ac_ext <<_ACEOF
14704 #line $LINENO "configure"
14705 /* confdefs.h.  */
14706 _ACEOF
14707 cat confdefs.h >>conftest.$ac_ext
14708 cat >>conftest.$ac_ext <<_ACEOF
14709 /* end confdefs.h.  */
14710  #include <stdint.h>
14711 int
14712 main ()
14713 {
14714  u_intmax_t a; a = 1;
14715   ;
14716   return 0;
14717 }
14718 _ACEOF
14719 rm -f conftest.$ac_objext
14720 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14721   (eval $ac_compile) 2>&5
14722   ac_status=$?
14723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14724   (exit $ac_status); } &&
14725          { ac_try='test -s conftest.$ac_objext'
14726   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14727   (eval $ac_try) 2>&5
14728   ac_status=$?
14729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14730   (exit $ac_status); }; }; then
14731    ac_cv_have_u_intmax_t="yes"
14732 else
14733   echo "$as_me: failed program was:" >&5
14734 sed 's/^/| /' conftest.$ac_ext >&5
14735
14736  ac_cv_have_u_intmax_t="no"
14737
14738 fi
14739 rm -f conftest.$ac_objext conftest.$ac_ext
14740
14741
14742 fi
14743 rm -f conftest.$ac_objext conftest.$ac_ext
14744
14745 fi
14746 echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
14747 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6
14748 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
14749    cat >>confdefs.h <<\_ACEOF
14750 #define HAVE_U_INTMAX_T 1
14751 _ACEOF
14752
14753    have_u_intmax_t=1
14754 fi
14755
14756
14757 echo "$as_me:$LINENO: checking for intXX_t types" >&5
14758 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6
14759 if test "${ac_cv_have_intxx_t+set}" = set; then
14760   echo $ECHO_N "(cached) $ECHO_C" >&6
14761 else
14762
14763    cat >conftest.$ac_ext <<_ACEOF
14764 #line $LINENO "configure"
14765 /* confdefs.h.  */
14766 _ACEOF
14767 cat confdefs.h >>conftest.$ac_ext
14768 cat >>conftest.$ac_ext <<_ACEOF
14769 /* end confdefs.h.  */
14770  #include <sys/types.h>
14771 int
14772 main ()
14773 {
14774  int8_t a; int16_t b; int32_t c; a = b = c = 1;
14775   ;
14776   return 0;
14777 }
14778 _ACEOF
14779 rm -f conftest.$ac_objext
14780 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14781   (eval $ac_compile) 2>&5
14782   ac_status=$?
14783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14784   (exit $ac_status); } &&
14785          { ac_try='test -s conftest.$ac_objext'
14786   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14787   (eval $ac_try) 2>&5
14788   ac_status=$?
14789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14790   (exit $ac_status); }; }; then
14791    ac_cv_have_intxx_t="yes"
14792 else
14793   echo "$as_me: failed program was:" >&5
14794 sed 's/^/| /' conftest.$ac_ext >&5
14795
14796  ac_cv_have_intxx_t="no"
14797
14798 fi
14799 rm -f conftest.$ac_objext conftest.$ac_ext
14800
14801 fi
14802 echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
14803 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6
14804 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
14805    cat >>confdefs.h <<\_ACEOF
14806 #define HAVE_INTXX_T 1
14807 _ACEOF
14808
14809    have_intxx_t=1
14810 fi
14811
14812 echo "$as_me:$LINENO: checking for int64_t type" >&5
14813 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6
14814 if test "${ac_cv_have_int64_t+set}" = set; then
14815   echo $ECHO_N "(cached) $ECHO_C" >&6
14816 else
14817
14818    cat >conftest.$ac_ext <<_ACEOF
14819 #line $LINENO "configure"
14820 /* confdefs.h.  */
14821 _ACEOF
14822 cat confdefs.h >>conftest.$ac_ext
14823 cat >>conftest.$ac_ext <<_ACEOF
14824 /* end confdefs.h.  */
14825  #include <sys/types.h>
14826 int
14827 main ()
14828 {
14829  int64_t a; a = 1;
14830   ;
14831   return 0;
14832 }
14833 _ACEOF
14834 rm -f conftest.$ac_objext
14835 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14836   (eval $ac_compile) 2>&5
14837   ac_status=$?
14838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14839   (exit $ac_status); } &&
14840          { ac_try='test -s conftest.$ac_objext'
14841   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14842   (eval $ac_try) 2>&5
14843   ac_status=$?
14844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14845   (exit $ac_status); }; }; then
14846    ac_cv_have_int64_t="yes"
14847 else
14848   echo "$as_me: failed program was:" >&5
14849 sed 's/^/| /' conftest.$ac_ext >&5
14850
14851  ac_cv_have_int64_t="no"
14852
14853 fi
14854 rm -f conftest.$ac_objext conftest.$ac_ext
14855
14856 fi
14857 echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
14858 echo "${ECHO_T}$ac_cv_have_int64_t" >&6
14859 if test "x$ac_cv_have_int64_t" = "xyes" ; then
14860    cat >>confdefs.h <<\_ACEOF
14861 #define HAVE_INT64_T 1
14862 _ACEOF
14863
14864    have_int64_t=1
14865 fi
14866
14867 echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
14868 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6
14869 if test "${ac_cv_have_u_intxx_t+set}" = set; then
14870   echo $ECHO_N "(cached) $ECHO_C" >&6
14871 else
14872
14873    cat >conftest.$ac_ext <<_ACEOF
14874 #line $LINENO "configure"
14875 /* confdefs.h.  */
14876 _ACEOF
14877 cat confdefs.h >>conftest.$ac_ext
14878 cat >>conftest.$ac_ext <<_ACEOF
14879 /* end confdefs.h.  */
14880  #include <sys/types.h>
14881 int
14882 main ()
14883 {
14884  u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
14885   ;
14886   return 0;
14887 }
14888 _ACEOF
14889 rm -f conftest.$ac_objext
14890 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14891   (eval $ac_compile) 2>&5
14892   ac_status=$?
14893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14894   (exit $ac_status); } &&
14895          { ac_try='test -s conftest.$ac_objext'
14896   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14897   (eval $ac_try) 2>&5
14898   ac_status=$?
14899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14900   (exit $ac_status); }; }; then
14901    ac_cv_have_u_intxx_t="yes"
14902 else
14903   echo "$as_me: failed program was:" >&5
14904 sed 's/^/| /' conftest.$ac_ext >&5
14905
14906  ac_cv_have_u_intxx_t="no"
14907
14908 fi
14909 rm -f conftest.$ac_objext conftest.$ac_ext
14910
14911 fi
14912 echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
14913 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6
14914 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
14915    cat >>confdefs.h <<\_ACEOF
14916 #define HAVE_U_INTXX_T 1
14917 _ACEOF
14918
14919    have_u_intxx_t=1
14920 fi
14921
14922 echo "$as_me:$LINENO: checking for u_int64_t types" >&5
14923 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6
14924 if test "${ac_cv_have_u_int64_t+set}" = set; then
14925   echo $ECHO_N "(cached) $ECHO_C" >&6
14926 else
14927
14928    cat >conftest.$ac_ext <<_ACEOF
14929 #line $LINENO "configure"
14930 /* confdefs.h.  */
14931 _ACEOF
14932 cat confdefs.h >>conftest.$ac_ext
14933 cat >>conftest.$ac_ext <<_ACEOF
14934 /* end confdefs.h.  */
14935  #include <sys/types.h>
14936 int
14937 main ()
14938 {
14939  u_int64_t a; a = 1;
14940   ;
14941   return 0;
14942 }
14943 _ACEOF
14944 rm -f conftest.$ac_objext
14945 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14946   (eval $ac_compile) 2>&5
14947   ac_status=$?
14948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14949   (exit $ac_status); } &&
14950          { ac_try='test -s conftest.$ac_objext'
14951   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14952   (eval $ac_try) 2>&5
14953   ac_status=$?
14954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14955   (exit $ac_status); }; }; then
14956    ac_cv_have_u_int64_t="yes"
14957 else
14958   echo "$as_me: failed program was:" >&5
14959 sed 's/^/| /' conftest.$ac_ext >&5
14960
14961  ac_cv_have_u_int64_t="no"
14962
14963 fi
14964 rm -f conftest.$ac_objext conftest.$ac_ext
14965
14966 fi
14967 echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
14968 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6
14969 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
14970    cat >>confdefs.h <<\_ACEOF
14971 #define HAVE_U_INT64_T 1
14972 _ACEOF
14973
14974    have_u_int64_t=1
14975 fi
14976
14977 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
14978            test "x$ac_cv_header_sys_bitypes_h" = "xyes")
14979 then
14980    echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
14981 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6
14982    cat >conftest.$ac_ext <<_ACEOF
14983 #line $LINENO "configure"
14984 /* confdefs.h.  */
14985 _ACEOF
14986 cat confdefs.h >>conftest.$ac_ext
14987 cat >>conftest.$ac_ext <<_ACEOF
14988 /* end confdefs.h.  */
14989  #include <sys/bitypes.h>
14990 int
14991 main ()
14992 {
14993  int8_t a; int16_t b; int32_t c;
14994         u_int8_t e; u_int16_t f; u_int32_t g;
14995         a = b = c = e = f = g = 1;
14996   ;
14997   return 0;
14998 }
14999 _ACEOF
15000 rm -f conftest.$ac_objext
15001 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15002   (eval $ac_compile) 2>&5
15003   ac_status=$?
15004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15005   (exit $ac_status); } &&
15006          { ac_try='test -s conftest.$ac_objext'
15007   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15008   (eval $ac_try) 2>&5
15009   ac_status=$?
15010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15011   (exit $ac_status); }; }; then
15012    cat >>confdefs.h <<\_ACEOF
15013 #define HAVE_U_INTXX_T 1
15014 _ACEOF
15015
15016         cat >>confdefs.h <<\_ACEOF
15017 #define HAVE_INTXX_T 1
15018 _ACEOF
15019
15020         cat >>confdefs.h <<\_ACEOF
15021 #define HAVE_SYS_BITYPES_H 1
15022 _ACEOF
15023
15024         echo "$as_me:$LINENO: result: yes" >&5
15025 echo "${ECHO_T}yes" >&6
15026 else
15027   echo "$as_me: failed program was:" >&5
15028 sed 's/^/| /' conftest.$ac_ext >&5
15029
15030  echo "$as_me:$LINENO: result: no" >&5
15031 echo "${ECHO_T}no" >&6
15032
15033 fi
15034 rm -f conftest.$ac_objext conftest.$ac_ext
15035 fi
15036
15037 if test -z "$have_u_intxx_t" ; then
15038    echo "$as_me:$LINENO: checking for uintXX_t types" >&5
15039 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6
15040 if test "${ac_cv_have_uintxx_t+set}" = set; then
15041   echo $ECHO_N "(cached) $ECHO_C" >&6
15042 else
15043
15044       cat >conftest.$ac_ext <<_ACEOF
15045 #line $LINENO "configure"
15046 /* confdefs.h.  */
15047 _ACEOF
15048 cat confdefs.h >>conftest.$ac_ext
15049 cat >>conftest.$ac_ext <<_ACEOF
15050 /* end confdefs.h.  */
15051  #include <sys/types.h>
15052 int
15053 main ()
15054 {
15055  uint8_t a; uint16_t b;
15056            uint32_t c; a = b = c = 1;
15057   ;
15058   return 0;
15059 }
15060 _ACEOF
15061 rm -f conftest.$ac_objext
15062 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15063   (eval $ac_compile) 2>&5
15064   ac_status=$?
15065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15066   (exit $ac_status); } &&
15067          { ac_try='test -s conftest.$ac_objext'
15068   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15069   (eval $ac_try) 2>&5
15070   ac_status=$?
15071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15072   (exit $ac_status); }; }; then
15073    ac_cv_have_uintxx_t="yes"
15074 else
15075   echo "$as_me: failed program was:" >&5
15076 sed 's/^/| /' conftest.$ac_ext >&5
15077
15078  ac_cv_have_uintxx_t="no"
15079
15080 fi
15081 rm -f conftest.$ac_objext conftest.$ac_ext
15082
15083 fi
15084 echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
15085 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6
15086    if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
15087       cat >>confdefs.h <<\_ACEOF
15088 #define HAVE_UINTXX_T 1
15089 _ACEOF
15090
15091    fi
15092 fi
15093
15094 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
15095           test "x$ac_cv_header_sys_bitypes_h" = "xyes")
15096 then
15097    echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
15098 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6
15099    cat >conftest.$ac_ext <<_ACEOF
15100 #line $LINENO "configure"
15101 /* confdefs.h.  */
15102 _ACEOF
15103 cat confdefs.h >>conftest.$ac_ext
15104 cat >>conftest.$ac_ext <<_ACEOF
15105 /* end confdefs.h.  */
15106  #include <sys/bitypes.h>
15107 int
15108 main ()
15109 {
15110  int64_t a; u_int64_t b;
15111        a = b = 1;
15112   ;
15113   return 0;
15114 }
15115 _ACEOF
15116 rm -f conftest.$ac_objext
15117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15118   (eval $ac_compile) 2>&5
15119   ac_status=$?
15120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15121   (exit $ac_status); } &&
15122          { ac_try='test -s conftest.$ac_objext'
15123   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15124   (eval $ac_try) 2>&5
15125   ac_status=$?
15126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15127   (exit $ac_status); }; }; then
15128    cat >>confdefs.h <<\_ACEOF
15129 #define HAVE_U_INT64_T 1
15130 _ACEOF
15131
15132        cat >>confdefs.h <<\_ACEOF
15133 #define HAVE_INT64_T 1
15134 _ACEOF
15135
15136        echo "$as_me:$LINENO: result: yes" >&5
15137 echo "${ECHO_T}yes" >&6
15138 else
15139   echo "$as_me: failed program was:" >&5
15140 sed 's/^/| /' conftest.$ac_ext >&5
15141
15142  echo "$as_me:$LINENO: result: no" >&5
15143 echo "${ECHO_T}no" >&6
15144
15145 fi
15146 rm -f conftest.$ac_objext conftest.$ac_ext
15147 fi
15148
15149 if (test -z "$have_uintxx_t" && \
15150           test "x$ac_cv_header_sys_bitypes_h" = "xyes")
15151 then
15152    echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
15153 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6
15154    cat >conftest.$ac_ext <<_ACEOF
15155 #line $LINENO "configure"
15156 /* confdefs.h.  */
15157 _ACEOF
15158 cat confdefs.h >>conftest.$ac_ext
15159 cat >>conftest.$ac_ext <<_ACEOF
15160 /* end confdefs.h.  */
15161  #include <sys/bitypes.h>
15162 int
15163 main ()
15164 {
15165  uint8_t a; uint16_t b;
15166           uint32_t c; a = b = c = 1;
15167   ;
15168   return 0;
15169 }
15170 _ACEOF
15171 rm -f conftest.$ac_objext
15172 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15173   (eval $ac_compile) 2>&5
15174   ac_status=$?
15175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15176   (exit $ac_status); } &&
15177          { ac_try='test -s conftest.$ac_objext'
15178   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15179   (eval $ac_try) 2>&5
15180   ac_status=$?
15181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15182   (exit $ac_status); }; }; then
15183    cat >>confdefs.h <<\_ACEOF
15184 #define HAVE_UINTXX_T 1
15185 _ACEOF
15186
15187        echo "$as_me:$LINENO: result: yes" >&5
15188 echo "${ECHO_T}yes" >&6
15189 else
15190   echo "$as_me: failed program was:" >&5
15191 sed 's/^/| /' conftest.$ac_ext >&5
15192
15193  echo "$as_me:$LINENO: result: no" >&5
15194 echo "${ECHO_T}no" >&6
15195
15196 fi
15197 rm -f conftest.$ac_objext conftest.$ac_ext
15198
15199 fi
15200
15201
15202
15203
15204
15205
15206
15207
15208
15209
15210
15211
15212
15213
15214
15215
15216
15217 for ac_func in \
15218         fork \
15219         getcwd \
15220         gethostname \
15221         getpid \
15222         gettimeofday \
15223         setpgid \
15224         setpgrp \
15225         setsid \
15226         signal \
15227         strerror \
15228         strncmp \
15229         strncpy \
15230         vfprintf \
15231
15232 do
15233 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15234 echo "$as_me:$LINENO: checking for $ac_func" >&5
15235 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15236 if eval "test \"\${$as_ac_var+set}\" = set"; then
15237   echo $ECHO_N "(cached) $ECHO_C" >&6
15238 else
15239   cat >conftest.$ac_ext <<_ACEOF
15240 #line $LINENO "configure"
15241 /* confdefs.h.  */
15242 _ACEOF
15243 cat confdefs.h >>conftest.$ac_ext
15244 cat >>conftest.$ac_ext <<_ACEOF
15245 /* end confdefs.h.  */
15246 /* System header to define __stub macros and hopefully few prototypes,
15247     which can conflict with char $ac_func (); below.
15248     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15249     <limits.h> exists even on freestanding compilers.  */
15250 #ifdef __STDC__
15251 # include <limits.h>
15252 #else
15253 # include <assert.h>
15254 #endif
15255 /* Override any gcc2 internal prototype to avoid an error.  */
15256 #ifdef __cplusplus
15257 extern "C"
15258 {
15259 #endif
15260 /* We use char because int might match the return type of a gcc2
15261    builtin and then its argument prototype would still apply.  */
15262 char $ac_func ();
15263 /* The GNU C library defines this for functions which it implements
15264     to always fail with ENOSYS.  Some functions are actually named
15265     something starting with __ and the normal name is an alias.  */
15266 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15267 choke me
15268 #else
15269 char (*f) () = $ac_func;
15270 #endif
15271 #ifdef __cplusplus
15272 }
15273 #endif
15274
15275 int
15276 main ()
15277 {
15278 return f != $ac_func;
15279   ;
15280   return 0;
15281 }
15282 _ACEOF
15283 rm -f conftest.$ac_objext conftest$ac_exeext
15284 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15285   (eval $ac_link) 2>&5
15286   ac_status=$?
15287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15288   (exit $ac_status); } &&
15289          { ac_try='test -s conftest$ac_exeext'
15290   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15291   (eval $ac_try) 2>&5
15292   ac_status=$?
15293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15294   (exit $ac_status); }; }; then
15295   eval "$as_ac_var=yes"
15296 else
15297   echo "$as_me: failed program was:" >&5
15298 sed 's/^/| /' conftest.$ac_ext >&5
15299
15300 eval "$as_ac_var=no"
15301 fi
15302 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15303 fi
15304 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15305 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15306 if test `eval echo '${'$as_ac_var'}'` = yes; then
15307   cat >>confdefs.h <<_ACEOF
15308 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15309 _ACEOF
15310
15311 else
15312   echo 'configure: cannot find needed function.'; exit 1
15313
15314 fi
15315 done
15316
15317
15318
15319 for ac_func in fchdir
15320 do
15321 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15322 echo "$as_me:$LINENO: checking for $ac_func" >&5
15323 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15324 if eval "test \"\${$as_ac_var+set}\" = set"; then
15325   echo $ECHO_N "(cached) $ECHO_C" >&6
15326 else
15327   cat >conftest.$ac_ext <<_ACEOF
15328 #line $LINENO "configure"
15329 /* confdefs.h.  */
15330 _ACEOF
15331 cat confdefs.h >>conftest.$ac_ext
15332 cat >>conftest.$ac_ext <<_ACEOF
15333 /* end confdefs.h.  */
15334 /* System header to define __stub macros and hopefully few prototypes,
15335     which can conflict with char $ac_func (); below.
15336     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15337     <limits.h> exists even on freestanding compilers.  */
15338 #ifdef __STDC__
15339 # include <limits.h>
15340 #else
15341 # include <assert.h>
15342 #endif
15343 /* Override any gcc2 internal prototype to avoid an error.  */
15344 #ifdef __cplusplus
15345 extern "C"
15346 {
15347 #endif
15348 /* We use char because int might match the return type of a gcc2
15349    builtin and then its argument prototype would still apply.  */
15350 char $ac_func ();
15351 /* The GNU C library defines this for functions which it implements
15352     to always fail with ENOSYS.  Some functions are actually named
15353     something starting with __ and the normal name is an alias.  */
15354 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15355 choke me
15356 #else
15357 char (*f) () = $ac_func;
15358 #endif
15359 #ifdef __cplusplus
15360 }
15361 #endif
15362
15363 int
15364 main ()
15365 {
15366 return f != $ac_func;
15367   ;
15368   return 0;
15369 }
15370 _ACEOF
15371 rm -f conftest.$ac_objext conftest$ac_exeext
15372 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15373   (eval $ac_link) 2>&5
15374   ac_status=$?
15375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15376   (exit $ac_status); } &&
15377          { ac_try='test -s conftest$ac_exeext'
15378   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15379   (eval $ac_try) 2>&5
15380   ac_status=$?
15381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15382   (exit $ac_status); }; }; then
15383   eval "$as_ac_var=yes"
15384 else
15385   echo "$as_me: failed program was:" >&5
15386 sed 's/^/| /' conftest.$ac_ext >&5
15387
15388 eval "$as_ac_var=no"
15389 fi
15390 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15391 fi
15392 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15393 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15394 if test `eval echo '${'$as_ac_var'}'` = yes; then
15395   cat >>confdefs.h <<_ACEOF
15396 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15397 _ACEOF
15398  cat >>confdefs.h <<\_ACEOF
15399 #define HAVE_FCHDIR 1
15400 _ACEOF
15401
15402 fi
15403 done
15404
15405
15406 for ac_func in strtoll
15407 do
15408 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15409 echo "$as_me:$LINENO: checking for $ac_func" >&5
15410 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15411 if eval "test \"\${$as_ac_var+set}\" = set"; then
15412   echo $ECHO_N "(cached) $ECHO_C" >&6
15413 else
15414   cat >conftest.$ac_ext <<_ACEOF
15415 #line $LINENO "configure"
15416 /* confdefs.h.  */
15417 _ACEOF
15418 cat confdefs.h >>conftest.$ac_ext
15419 cat >>conftest.$ac_ext <<_ACEOF
15420 /* end confdefs.h.  */
15421 /* System header to define __stub macros and hopefully few prototypes,
15422     which can conflict with char $ac_func (); below.
15423     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15424     <limits.h> exists even on freestanding compilers.  */
15425 #ifdef __STDC__
15426 # include <limits.h>
15427 #else
15428 # include <assert.h>
15429 #endif
15430 /* Override any gcc2 internal prototype to avoid an error.  */
15431 #ifdef __cplusplus
15432 extern "C"
15433 {
15434 #endif
15435 /* We use char because int might match the return type of a gcc2
15436    builtin and then its argument prototype would still apply.  */
15437 char $ac_func ();
15438 /* The GNU C library defines this for functions which it implements
15439     to always fail with ENOSYS.  Some functions are actually named
15440     something starting with __ and the normal name is an alias.  */
15441 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15442 choke me
15443 #else
15444 char (*f) () = $ac_func;
15445 #endif
15446 #ifdef __cplusplus
15447 }
15448 #endif
15449
15450 int
15451 main ()
15452 {
15453 return f != $ac_func;
15454   ;
15455   return 0;
15456 }
15457 _ACEOF
15458 rm -f conftest.$ac_objext conftest$ac_exeext
15459 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15460   (eval $ac_link) 2>&5
15461   ac_status=$?
15462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15463   (exit $ac_status); } &&
15464          { ac_try='test -s conftest$ac_exeext'
15465   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15466   (eval $ac_try) 2>&5
15467   ac_status=$?
15468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15469   (exit $ac_status); }; }; then
15470   eval "$as_ac_var=yes"
15471 else
15472   echo "$as_me: failed program was:" >&5
15473 sed 's/^/| /' conftest.$ac_ext >&5
15474
15475 eval "$as_ac_var=no"
15476 fi
15477 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15478 fi
15479 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15480 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15481 if test `eval echo '${'$as_ac_var'}'` = yes; then
15482   cat >>confdefs.h <<_ACEOF
15483 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15484 _ACEOF
15485  cat >>confdefs.h <<\_ACEOF
15486 #define HAVE_STRTOLL 1
15487 _ACEOF
15488
15489 fi
15490 done
15491
15492
15493
15494 for ac_func in chflags
15495 do
15496 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15497 echo "$as_me:$LINENO: checking for $ac_func" >&5
15498 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15499 if eval "test \"\${$as_ac_var+set}\" = set"; then
15500   echo $ECHO_N "(cached) $ECHO_C" >&6
15501 else
15502   cat >conftest.$ac_ext <<_ACEOF
15503 #line $LINENO "configure"
15504 /* confdefs.h.  */
15505 _ACEOF
15506 cat confdefs.h >>conftest.$ac_ext
15507 cat >>conftest.$ac_ext <<_ACEOF
15508 /* end confdefs.h.  */
15509 /* System header to define __stub macros and hopefully few prototypes,
15510     which can conflict with char $ac_func (); below.
15511     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15512     <limits.h> exists even on freestanding compilers.  */
15513 #ifdef __STDC__
15514 # include <limits.h>
15515 #else
15516 # include <assert.h>
15517 #endif
15518 /* Override any gcc2 internal prototype to avoid an error.  */
15519 #ifdef __cplusplus
15520 extern "C"
15521 {
15522 #endif
15523 /* We use char because int might match the return type of a gcc2
15524    builtin and then its argument prototype would still apply.  */
15525 char $ac_func ();
15526 /* The GNU C library defines this for functions which it implements
15527     to always fail with ENOSYS.  Some functions are actually named
15528     something starting with __ and the normal name is an alias.  */
15529 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15530 choke me
15531 #else
15532 char (*f) () = $ac_func;
15533 #endif
15534 #ifdef __cplusplus
15535 }
15536 #endif
15537
15538 int
15539 main ()
15540 {
15541 return f != $ac_func;
15542   ;
15543   return 0;
15544 }
15545 _ACEOF
15546 rm -f conftest.$ac_objext conftest$ac_exeext
15547 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15548   (eval $ac_link) 2>&5
15549   ac_status=$?
15550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15551   (exit $ac_status); } &&
15552          { ac_try='test -s conftest$ac_exeext'
15553   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15554   (eval $ac_try) 2>&5
15555   ac_status=$?
15556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15557   (exit $ac_status); }; }; then
15558   eval "$as_ac_var=yes"
15559 else
15560   echo "$as_me: failed program was:" >&5
15561 sed 's/^/| /' conftest.$ac_ext >&5
15562
15563 eval "$as_ac_var=no"
15564 fi
15565 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15566 fi
15567 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15568 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15569 if test `eval echo '${'$as_ac_var'}'` = yes; then
15570   cat >>confdefs.h <<_ACEOF
15571 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15572 _ACEOF
15573
15574 fi
15575 done
15576
15577
15578
15579
15580
15581
15582 for ac_func in snprintf vsnprintf gethostid getdomainname
15583 do
15584 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15585 echo "$as_me:$LINENO: checking for $ac_func" >&5
15586 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15587 if eval "test \"\${$as_ac_var+set}\" = set"; then
15588   echo $ECHO_N "(cached) $ECHO_C" >&6
15589 else
15590   cat >conftest.$ac_ext <<_ACEOF
15591 #line $LINENO "configure"
15592 /* confdefs.h.  */
15593 _ACEOF
15594 cat confdefs.h >>conftest.$ac_ext
15595 cat >>conftest.$ac_ext <<_ACEOF
15596 /* end confdefs.h.  */
15597 /* System header to define __stub macros and hopefully few prototypes,
15598     which can conflict with char $ac_func (); below.
15599     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15600     <limits.h> exists even on freestanding compilers.  */
15601 #ifdef __STDC__
15602 # include <limits.h>
15603 #else
15604 # include <assert.h>
15605 #endif
15606 /* Override any gcc2 internal prototype to avoid an error.  */
15607 #ifdef __cplusplus
15608 extern "C"
15609 {
15610 #endif
15611 /* We use char because int might match the return type of a gcc2
15612    builtin and then its argument prototype would still apply.  */
15613 char $ac_func ();
15614 /* The GNU C library defines this for functions which it implements
15615     to always fail with ENOSYS.  Some functions are actually named
15616     something starting with __ and the normal name is an alias.  */
15617 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15618 choke me
15619 #else
15620 char (*f) () = $ac_func;
15621 #endif
15622 #ifdef __cplusplus
15623 }
15624 #endif
15625
15626 int
15627 main ()
15628 {
15629 return f != $ac_func;
15630   ;
15631   return 0;
15632 }
15633 _ACEOF
15634 rm -f conftest.$ac_objext conftest$ac_exeext
15635 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15636   (eval $ac_link) 2>&5
15637   ac_status=$?
15638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15639   (exit $ac_status); } &&
15640          { ac_try='test -s conftest$ac_exeext'
15641   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15642   (eval $ac_try) 2>&5
15643   ac_status=$?
15644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15645   (exit $ac_status); }; }; then
15646   eval "$as_ac_var=yes"
15647 else
15648   echo "$as_me: failed program was:" >&5
15649 sed 's/^/| /' conftest.$ac_ext >&5
15650
15651 eval "$as_ac_var=no"
15652 fi
15653 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15654 fi
15655 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15656 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15657 if test `eval echo '${'$as_ac_var'}'` = yes; then
15658   cat >>confdefs.h <<_ACEOF
15659 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15660 _ACEOF
15661
15662 fi
15663 done
15664
15665
15666
15667
15668
15669
15670 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
15671 do
15672 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15673 echo "$as_me:$LINENO: checking for $ac_func" >&5
15674 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15675 if eval "test \"\${$as_ac_var+set}\" = set"; then
15676   echo $ECHO_N "(cached) $ECHO_C" >&6
15677 else
15678   cat >conftest.$ac_ext <<_ACEOF
15679 #line $LINENO "configure"
15680 /* confdefs.h.  */
15681 _ACEOF
15682 cat confdefs.h >>conftest.$ac_ext
15683 cat >>conftest.$ac_ext <<_ACEOF
15684 /* end confdefs.h.  */
15685 /* System header to define __stub macros and hopefully few prototypes,
15686     which can conflict with char $ac_func (); below.
15687     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15688     <limits.h> exists even on freestanding compilers.  */
15689 #ifdef __STDC__
15690 # include <limits.h>
15691 #else
15692 # include <assert.h>
15693 #endif
15694 /* Override any gcc2 internal prototype to avoid an error.  */
15695 #ifdef __cplusplus
15696 extern "C"
15697 {
15698 #endif
15699 /* We use char because int might match the return type of a gcc2
15700    builtin and then its argument prototype would still apply.  */
15701 char $ac_func ();
15702 /* The GNU C library defines this for functions which it implements
15703     to always fail with ENOSYS.  Some functions are actually named
15704     something starting with __ and the normal name is an alias.  */
15705 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15706 choke me
15707 #else
15708 char (*f) () = $ac_func;
15709 #endif
15710 #ifdef __cplusplus
15711 }
15712 #endif
15713
15714 int
15715 main ()
15716 {
15717 return f != $ac_func;
15718   ;
15719   return 0;
15720 }
15721 _ACEOF
15722 rm -f conftest.$ac_objext conftest$ac_exeext
15723 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15724   (eval $ac_link) 2>&5
15725   ac_status=$?
15726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15727   (exit $ac_status); } &&
15728          { ac_try='test -s conftest$ac_exeext'
15729   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15730   (eval $ac_try) 2>&5
15731   ac_status=$?
15732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15733   (exit $ac_status); }; }; then
15734   eval "$as_ac_var=yes"
15735 else
15736   echo "$as_me: failed program was:" >&5
15737 sed 's/^/| /' conftest.$ac_ext >&5
15738
15739 eval "$as_ac_var=no"
15740 fi
15741 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15742 fi
15743 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15744 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15745 if test `eval echo '${'$as_ac_var'}'` = yes; then
15746   cat >>confdefs.h <<_ACEOF
15747 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15748 _ACEOF
15749
15750 fi
15751 done
15752
15753
15754 # If resolver functions are not in libc check for -lnsl or -lresolv.
15755 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
15756 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
15757 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
15758   echo $ECHO_N "(cached) $ECHO_C" >&6
15759 else
15760   cat >conftest.$ac_ext <<_ACEOF
15761 #line $LINENO "configure"
15762 /* confdefs.h.  */
15763 _ACEOF
15764 cat confdefs.h >>conftest.$ac_ext
15765 cat >>conftest.$ac_ext <<_ACEOF
15766 /* end confdefs.h.  */
15767 /* System header to define __stub macros and hopefully few prototypes,
15768     which can conflict with char gethostbyname_r (); below.
15769     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15770     <limits.h> exists even on freestanding compilers.  */
15771 #ifdef __STDC__
15772 # include <limits.h>
15773 #else
15774 # include <assert.h>
15775 #endif
15776 /* Override any gcc2 internal prototype to avoid an error.  */
15777 #ifdef __cplusplus
15778 extern "C"
15779 {
15780 #endif
15781 /* We use char because int might match the return type of a gcc2
15782    builtin and then its argument prototype would still apply.  */
15783 char gethostbyname_r ();
15784 /* The GNU C library defines this for functions which it implements
15785     to always fail with ENOSYS.  Some functions are actually named
15786     something starting with __ and the normal name is an alias.  */
15787 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
15788 choke me
15789 #else
15790 char (*f) () = gethostbyname_r;
15791 #endif
15792 #ifdef __cplusplus
15793 }
15794 #endif
15795
15796 int
15797 main ()
15798 {
15799 return f != gethostbyname_r;
15800   ;
15801   return 0;
15802 }
15803 _ACEOF
15804 rm -f conftest.$ac_objext conftest$ac_exeext
15805 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15806   (eval $ac_link) 2>&5
15807   ac_status=$?
15808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15809   (exit $ac_status); } &&
15810          { ac_try='test -s conftest$ac_exeext'
15811   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15812   (eval $ac_try) 2>&5
15813   ac_status=$?
15814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15815   (exit $ac_status); }; }; then
15816   ac_cv_func_gethostbyname_r=yes
15817 else
15818   echo "$as_me: failed program was:" >&5
15819 sed 's/^/| /' conftest.$ac_ext >&5
15820
15821 ac_cv_func_gethostbyname_r=no
15822 fi
15823 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15824 fi
15825 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
15826 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
15827 if test $ac_cv_func_gethostbyname_r = yes; then
15828   echo "$as_me:$LINENO: result: using libc's resolver" >&5
15829 echo "${ECHO_T}using libc's resolver" >&6
15830 else
15831
15832 echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
15833 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6
15834 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
15835   echo $ECHO_N "(cached) $ECHO_C" >&6
15836 else
15837   ac_check_lib_save_LIBS=$LIBS
15838 LIBS="-lnsl  $LIBS"
15839 cat >conftest.$ac_ext <<_ACEOF
15840 #line $LINENO "configure"
15841 /* confdefs.h.  */
15842 _ACEOF
15843 cat confdefs.h >>conftest.$ac_ext
15844 cat >>conftest.$ac_ext <<_ACEOF
15845 /* end confdefs.h.  */
15846
15847 /* Override any gcc2 internal prototype to avoid an error.  */
15848 #ifdef __cplusplus
15849 extern "C"
15850 #endif
15851 /* We use char because int might match the return type of a gcc2
15852    builtin and then its argument prototype would still apply.  */
15853 char gethostbyname_r ();
15854 int
15855 main ()
15856 {
15857 gethostbyname_r ();
15858   ;
15859   return 0;
15860 }
15861 _ACEOF
15862 rm -f conftest.$ac_objext conftest$ac_exeext
15863 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15864   (eval $ac_link) 2>&5
15865   ac_status=$?
15866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15867   (exit $ac_status); } &&
15868          { ac_try='test -s conftest$ac_exeext'
15869   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15870   (eval $ac_try) 2>&5
15871   ac_status=$?
15872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15873   (exit $ac_status); }; }; then
15874   ac_cv_lib_nsl_gethostbyname_r=yes
15875 else
15876   echo "$as_me: failed program was:" >&5
15877 sed 's/^/| /' conftest.$ac_ext >&5
15878
15879 ac_cv_lib_nsl_gethostbyname_r=no
15880 fi
15881 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15882 LIBS=$ac_check_lib_save_LIBS
15883 fi
15884 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
15885 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6
15886 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
15887   cat >>confdefs.h <<_ACEOF
15888 #define HAVE_LIBNSL 1
15889 _ACEOF
15890
15891   LIBS="-lnsl $LIBS"
15892
15893 fi
15894
15895
15896 echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
15897 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6
15898 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
15899   echo $ECHO_N "(cached) $ECHO_C" >&6
15900 else
15901   ac_check_lib_save_LIBS=$LIBS
15902 LIBS="-lresolv  $LIBS"
15903 cat >conftest.$ac_ext <<_ACEOF
15904 #line $LINENO "configure"
15905 /* confdefs.h.  */
15906 _ACEOF
15907 cat confdefs.h >>conftest.$ac_ext
15908 cat >>conftest.$ac_ext <<_ACEOF
15909 /* end confdefs.h.  */
15910
15911 /* Override any gcc2 internal prototype to avoid an error.  */
15912 #ifdef __cplusplus
15913 extern "C"
15914 #endif
15915 /* We use char because int might match the return type of a gcc2
15916    builtin and then its argument prototype would still apply.  */
15917 char gethostbyname_r ();
15918 int
15919 main ()
15920 {
15921 gethostbyname_r ();
15922   ;
15923   return 0;
15924 }
15925 _ACEOF
15926 rm -f conftest.$ac_objext conftest$ac_exeext
15927 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15928   (eval $ac_link) 2>&5
15929   ac_status=$?
15930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15931   (exit $ac_status); } &&
15932          { ac_try='test -s conftest$ac_exeext'
15933   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15934   (eval $ac_try) 2>&5
15935   ac_status=$?
15936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15937   (exit $ac_status); }; }; then
15938   ac_cv_lib_resolv_gethostbyname_r=yes
15939 else
15940   echo "$as_me: failed program was:" >&5
15941 sed 's/^/| /' conftest.$ac_ext >&5
15942
15943 ac_cv_lib_resolv_gethostbyname_r=no
15944 fi
15945 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15946 LIBS=$ac_check_lib_save_LIBS
15947 fi
15948 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
15949 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6
15950 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
15951   cat >>confdefs.h <<_ACEOF
15952 #define HAVE_LIBRESOLV 1
15953 _ACEOF
15954
15955   LIBS="-lresolv $LIBS"
15956
15957 fi
15958
15959 fi
15960
15961
15962
15963 # Find where sockets are (especially for Solaris)
15964 echo "$as_me:$LINENO: checking for socket" >&5
15965 echo $ECHO_N "checking for socket... $ECHO_C" >&6
15966 if test "${ac_cv_func_socket+set}" = set; then
15967   echo $ECHO_N "(cached) $ECHO_C" >&6
15968 else
15969   cat >conftest.$ac_ext <<_ACEOF
15970 #line $LINENO "configure"
15971 /* confdefs.h.  */
15972 _ACEOF
15973 cat confdefs.h >>conftest.$ac_ext
15974 cat >>conftest.$ac_ext <<_ACEOF
15975 /* end confdefs.h.  */
15976 /* System header to define __stub macros and hopefully few prototypes,
15977     which can conflict with char socket (); below.
15978     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15979     <limits.h> exists even on freestanding compilers.  */
15980 #ifdef __STDC__
15981 # include <limits.h>
15982 #else
15983 # include <assert.h>
15984 #endif
15985 /* Override any gcc2 internal prototype to avoid an error.  */
15986 #ifdef __cplusplus
15987 extern "C"
15988 {
15989 #endif
15990 /* We use char because int might match the return type of a gcc2
15991    builtin and then its argument prototype would still apply.  */
15992 char socket ();
15993 /* The GNU C library defines this for functions which it implements
15994     to always fail with ENOSYS.  Some functions are actually named
15995     something starting with __ and the normal name is an alias.  */
15996 #if defined (__stub_socket) || defined (__stub___socket)
15997 choke me
15998 #else
15999 char (*f) () = socket;
16000 #endif
16001 #ifdef __cplusplus
16002 }
16003 #endif
16004
16005 int
16006 main ()
16007 {
16008 return f != socket;
16009   ;
16010   return 0;
16011 }
16012 _ACEOF
16013 rm -f conftest.$ac_objext conftest$ac_exeext
16014 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16015   (eval $ac_link) 2>&5
16016   ac_status=$?
16017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16018   (exit $ac_status); } &&
16019          { ac_try='test -s conftest$ac_exeext'
16020   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16021   (eval $ac_try) 2>&5
16022   ac_status=$?
16023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16024   (exit $ac_status); }; }; then
16025   ac_cv_func_socket=yes
16026 else
16027   echo "$as_me: failed program was:" >&5
16028 sed 's/^/| /' conftest.$ac_ext >&5
16029
16030 ac_cv_func_socket=no
16031 fi
16032 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16033 fi
16034 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
16035 echo "${ECHO_T}$ac_cv_func_socket" >&6
16036 if test $ac_cv_func_socket = yes; then
16037   echo "$as_me:$LINENO: result: using libc's socket" >&5
16038 echo "${ECHO_T}using libc's socket" >&6
16039 else
16040
16041 echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
16042 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6
16043 if test "${ac_cv_lib_xnet_socket+set}" = set; then
16044   echo $ECHO_N "(cached) $ECHO_C" >&6
16045 else
16046   ac_check_lib_save_LIBS=$LIBS
16047 LIBS="-lxnet  $LIBS"
16048 cat >conftest.$ac_ext <<_ACEOF
16049 #line $LINENO "configure"
16050 /* confdefs.h.  */
16051 _ACEOF
16052 cat confdefs.h >>conftest.$ac_ext
16053 cat >>conftest.$ac_ext <<_ACEOF
16054 /* end confdefs.h.  */
16055
16056 /* Override any gcc2 internal prototype to avoid an error.  */
16057 #ifdef __cplusplus
16058 extern "C"
16059 #endif
16060 /* We use char because int might match the return type of a gcc2
16061    builtin and then its argument prototype would still apply.  */
16062 char socket ();
16063 int
16064 main ()
16065 {
16066 socket ();
16067   ;
16068   return 0;
16069 }
16070 _ACEOF
16071 rm -f conftest.$ac_objext conftest$ac_exeext
16072 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16073   (eval $ac_link) 2>&5
16074   ac_status=$?
16075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16076   (exit $ac_status); } &&
16077          { ac_try='test -s conftest$ac_exeext'
16078   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16079   (eval $ac_try) 2>&5
16080   ac_status=$?
16081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16082   (exit $ac_status); }; }; then
16083   ac_cv_lib_xnet_socket=yes
16084 else
16085   echo "$as_me: failed program was:" >&5
16086 sed 's/^/| /' conftest.$ac_ext >&5
16087
16088 ac_cv_lib_xnet_socket=no
16089 fi
16090 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16091 LIBS=$ac_check_lib_save_LIBS
16092 fi
16093 echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
16094 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6
16095 if test $ac_cv_lib_xnet_socket = yes; then
16096   cat >>confdefs.h <<_ACEOF
16097 #define HAVE_LIBXNET 1
16098 _ACEOF
16099
16100   LIBS="-lxnet $LIBS"
16101
16102 fi
16103
16104
16105 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
16106 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
16107 if test "${ac_cv_lib_socket_socket+set}" = set; then
16108   echo $ECHO_N "(cached) $ECHO_C" >&6
16109 else
16110   ac_check_lib_save_LIBS=$LIBS
16111 LIBS="-lsocket  $LIBS"
16112 cat >conftest.$ac_ext <<_ACEOF
16113 #line $LINENO "configure"
16114 /* confdefs.h.  */
16115 _ACEOF
16116 cat confdefs.h >>conftest.$ac_ext
16117 cat >>conftest.$ac_ext <<_ACEOF
16118 /* end confdefs.h.  */
16119
16120 /* Override any gcc2 internal prototype to avoid an error.  */
16121 #ifdef __cplusplus
16122 extern "C"
16123 #endif
16124 /* We use char because int might match the return type of a gcc2
16125    builtin and then its argument prototype would still apply.  */
16126 char socket ();
16127 int
16128 main ()
16129 {
16130 socket ();
16131   ;
16132   return 0;
16133 }
16134 _ACEOF
16135 rm -f conftest.$ac_objext conftest$ac_exeext
16136 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16137   (eval $ac_link) 2>&5
16138   ac_status=$?
16139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16140   (exit $ac_status); } &&
16141          { ac_try='test -s conftest$ac_exeext'
16142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16143   (eval $ac_try) 2>&5
16144   ac_status=$?
16145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16146   (exit $ac_status); }; }; then
16147   ac_cv_lib_socket_socket=yes
16148 else
16149   echo "$as_me: failed program was:" >&5
16150 sed 's/^/| /' conftest.$ac_ext >&5
16151
16152 ac_cv_lib_socket_socket=no
16153 fi
16154 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16155 LIBS=$ac_check_lib_save_LIBS
16156 fi
16157 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
16158 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
16159 if test $ac_cv_lib_socket_socket = yes; then
16160   cat >>confdefs.h <<_ACEOF
16161 #define HAVE_LIBSOCKET 1
16162 _ACEOF
16163
16164   LIBS="-lsocket $LIBS"
16165
16166 fi
16167
16168
16169 echo "$as_me:$LINENO: checking for socket in -linet" >&5
16170 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
16171 if test "${ac_cv_lib_inet_socket+set}" = set; then
16172   echo $ECHO_N "(cached) $ECHO_C" >&6
16173 else
16174   ac_check_lib_save_LIBS=$LIBS
16175 LIBS="-linet  $LIBS"
16176 cat >conftest.$ac_ext <<_ACEOF
16177 #line $LINENO "configure"
16178 /* confdefs.h.  */
16179 _ACEOF
16180 cat confdefs.h >>conftest.$ac_ext
16181 cat >>conftest.$ac_ext <<_ACEOF
16182 /* end confdefs.h.  */
16183
16184 /* Override any gcc2 internal prototype to avoid an error.  */
16185 #ifdef __cplusplus
16186 extern "C"
16187 #endif
16188 /* We use char because int might match the return type of a gcc2
16189    builtin and then its argument prototype would still apply.  */
16190 char socket ();
16191 int
16192 main ()
16193 {
16194 socket ();
16195   ;
16196   return 0;
16197 }
16198 _ACEOF
16199 rm -f conftest.$ac_objext conftest$ac_exeext
16200 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16201   (eval $ac_link) 2>&5
16202   ac_status=$?
16203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16204   (exit $ac_status); } &&
16205          { ac_try='test -s conftest$ac_exeext'
16206   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16207   (eval $ac_try) 2>&5
16208   ac_status=$?
16209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16210   (exit $ac_status); }; }; then
16211   ac_cv_lib_inet_socket=yes
16212 else
16213   echo "$as_me: failed program was:" >&5
16214 sed 's/^/| /' conftest.$ac_ext >&5
16215
16216 ac_cv_lib_inet_socket=no
16217 fi
16218 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16219 LIBS=$ac_check_lib_save_LIBS
16220 fi
16221 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
16222 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
16223 if test $ac_cv_lib_inet_socket = yes; then
16224   cat >>confdefs.h <<_ACEOF
16225 #define HAVE_LIBINET 1
16226 _ACEOF
16227
16228   LIBS="-linet $LIBS"
16229
16230 fi
16231
16232 fi
16233
16234
16235
16236 for ac_func in inet_pton
16237 do
16238 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16239 echo "$as_me:$LINENO: checking for $ac_func" >&5
16240 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16241 if eval "test \"\${$as_ac_var+set}\" = set"; then
16242   echo $ECHO_N "(cached) $ECHO_C" >&6
16243 else
16244   cat >conftest.$ac_ext <<_ACEOF
16245 #line $LINENO "configure"
16246 /* confdefs.h.  */
16247 _ACEOF
16248 cat confdefs.h >>conftest.$ac_ext
16249 cat >>conftest.$ac_ext <<_ACEOF
16250 /* end confdefs.h.  */
16251 /* System header to define __stub macros and hopefully few prototypes,
16252     which can conflict with char $ac_func (); below.
16253     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16254     <limits.h> exists even on freestanding compilers.  */
16255 #ifdef __STDC__
16256 # include <limits.h>
16257 #else
16258 # include <assert.h>
16259 #endif
16260 /* Override any gcc2 internal prototype to avoid an error.  */
16261 #ifdef __cplusplus
16262 extern "C"
16263 {
16264 #endif
16265 /* We use char because int might match the return type of a gcc2
16266    builtin and then its argument prototype would still apply.  */
16267 char $ac_func ();
16268 /* The GNU C library defines this for functions which it implements
16269     to always fail with ENOSYS.  Some functions are actually named
16270     something starting with __ and the normal name is an alias.  */
16271 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16272 choke me
16273 #else
16274 char (*f) () = $ac_func;
16275 #endif
16276 #ifdef __cplusplus
16277 }
16278 #endif
16279
16280 int
16281 main ()
16282 {
16283 return f != $ac_func;
16284   ;
16285   return 0;
16286 }
16287 _ACEOF
16288 rm -f conftest.$ac_objext conftest$ac_exeext
16289 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16290   (eval $ac_link) 2>&5
16291   ac_status=$?
16292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16293   (exit $ac_status); } &&
16294          { ac_try='test -s conftest$ac_exeext'
16295   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16296   (eval $ac_try) 2>&5
16297   ac_status=$?
16298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16299   (exit $ac_status); }; }; then
16300   eval "$as_ac_var=yes"
16301 else
16302   echo "$as_me: failed program was:" >&5
16303 sed 's/^/| /' conftest.$ac_ext >&5
16304
16305 eval "$as_ac_var=no"
16306 fi
16307 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16308 fi
16309 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16310 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16311 if test `eval echo '${'$as_ac_var'}'` = yes; then
16312   cat >>confdefs.h <<_ACEOF
16313 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16314 _ACEOF
16315  cat >>confdefs.h <<\_ACEOF
16316 #define HAVE_INET_PTON 1
16317 _ACEOF
16318
16319 fi
16320 done
16321
16322
16323 for ac_func in inet_ntop
16324 do
16325 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16326 echo "$as_me:$LINENO: checking for $ac_func" >&5
16327 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16328 if eval "test \"\${$as_ac_var+set}\" = set"; then
16329   echo $ECHO_N "(cached) $ECHO_C" >&6
16330 else
16331   cat >conftest.$ac_ext <<_ACEOF
16332 #line $LINENO "configure"
16333 /* confdefs.h.  */
16334 _ACEOF
16335 cat confdefs.h >>conftest.$ac_ext
16336 cat >>conftest.$ac_ext <<_ACEOF
16337 /* end confdefs.h.  */
16338 /* System header to define __stub macros and hopefully few prototypes,
16339     which can conflict with char $ac_func (); below.
16340     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16341     <limits.h> exists even on freestanding compilers.  */
16342 #ifdef __STDC__
16343 # include <limits.h>
16344 #else
16345 # include <assert.h>
16346 #endif
16347 /* Override any gcc2 internal prototype to avoid an error.  */
16348 #ifdef __cplusplus
16349 extern "C"
16350 {
16351 #endif
16352 /* We use char because int might match the return type of a gcc2
16353    builtin and then its argument prototype would still apply.  */
16354 char $ac_func ();
16355 /* The GNU C library defines this for functions which it implements
16356     to always fail with ENOSYS.  Some functions are actually named
16357     something starting with __ and the normal name is an alias.  */
16358 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16359 choke me
16360 #else
16361 char (*f) () = $ac_func;
16362 #endif
16363 #ifdef __cplusplus
16364 }
16365 #endif
16366
16367 int
16368 main ()
16369 {
16370 return f != $ac_func;
16371   ;
16372   return 0;
16373 }
16374 _ACEOF
16375 rm -f conftest.$ac_objext conftest$ac_exeext
16376 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16377   (eval $ac_link) 2>&5
16378   ac_status=$?
16379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16380   (exit $ac_status); } &&
16381          { ac_try='test -s conftest$ac_exeext'
16382   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16383   (eval $ac_try) 2>&5
16384   ac_status=$?
16385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16386   (exit $ac_status); }; }; then
16387   eval "$as_ac_var=yes"
16388 else
16389   echo "$as_me: failed program was:" >&5
16390 sed 's/^/| /' conftest.$ac_ext >&5
16391
16392 eval "$as_ac_var=no"
16393 fi
16394 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16395 fi
16396 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16397 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16398 if test `eval echo '${'$as_ac_var'}'` = yes; then
16399   cat >>confdefs.h <<_ACEOF
16400 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16401 _ACEOF
16402  cat >>confdefs.h <<\_ACEOF
16403 #define HAVE_INET_NTOP 1
16404 _ACEOF
16405
16406 fi
16407 done
16408
16409
16410 for ac_func in gethostbyname2
16411 do
16412 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16413 echo "$as_me:$LINENO: checking for $ac_func" >&5
16414 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16415 if eval "test \"\${$as_ac_var+set}\" = set"; then
16416   echo $ECHO_N "(cached) $ECHO_C" >&6
16417 else
16418   cat >conftest.$ac_ext <<_ACEOF
16419 #line $LINENO "configure"
16420 /* confdefs.h.  */
16421 _ACEOF
16422 cat confdefs.h >>conftest.$ac_ext
16423 cat >>conftest.$ac_ext <<_ACEOF
16424 /* end confdefs.h.  */
16425 /* System header to define __stub macros and hopefully few prototypes,
16426     which can conflict with char $ac_func (); below.
16427     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16428     <limits.h> exists even on freestanding compilers.  */
16429 #ifdef __STDC__
16430 # include <limits.h>
16431 #else
16432 # include <assert.h>
16433 #endif
16434 /* Override any gcc2 internal prototype to avoid an error.  */
16435 #ifdef __cplusplus
16436 extern "C"
16437 {
16438 #endif
16439 /* We use char because int might match the return type of a gcc2
16440    builtin and then its argument prototype would still apply.  */
16441 char $ac_func ();
16442 /* The GNU C library defines this for functions which it implements
16443     to always fail with ENOSYS.  Some functions are actually named
16444     something starting with __ and the normal name is an alias.  */
16445 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16446 choke me
16447 #else
16448 char (*f) () = $ac_func;
16449 #endif
16450 #ifdef __cplusplus
16451 }
16452 #endif
16453
16454 int
16455 main ()
16456 {
16457 return f != $ac_func;
16458   ;
16459   return 0;
16460 }
16461 _ACEOF
16462 rm -f conftest.$ac_objext conftest$ac_exeext
16463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16464   (eval $ac_link) 2>&5
16465   ac_status=$?
16466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16467   (exit $ac_status); } &&
16468          { ac_try='test -s conftest$ac_exeext'
16469   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16470   (eval $ac_try) 2>&5
16471   ac_status=$?
16472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16473   (exit $ac_status); }; }; then
16474   eval "$as_ac_var=yes"
16475 else
16476   echo "$as_me: failed program was:" >&5
16477 sed 's/^/| /' conftest.$ac_ext >&5
16478
16479 eval "$as_ac_var=no"
16480 fi
16481 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16482 fi
16483 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16484 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16485 if test `eval echo '${'$as_ac_var'}'` = yes; then
16486   cat >>confdefs.h <<_ACEOF
16487 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16488 _ACEOF
16489  cat >>confdefs.h <<\_ACEOF
16490 #define HAVE_GETHOSTBYNAME2 1
16491 _ACEOF
16492
16493 fi
16494 done
16495
16496
16497 echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
16498 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6
16499 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
16500   echo $ECHO_N "(cached) $ECHO_C" >&6
16501 else
16502   cat >conftest.$ac_ext <<_ACEOF
16503 #line $LINENO "configure"
16504 /* confdefs.h.  */
16505 _ACEOF
16506 cat confdefs.h >>conftest.$ac_ext
16507 cat >>conftest.$ac_ext <<_ACEOF
16508 /* end confdefs.h.  */
16509 #include <sys/socket.h>
16510 int
16511 main ()
16512 {
16513 struct sockaddr s; s.sa_len;
16514   ;
16515   return 0;
16516 }
16517 _ACEOF
16518 rm -f conftest.$ac_objext
16519 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16520   (eval $ac_compile) 2>&5
16521   ac_status=$?
16522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16523   (exit $ac_status); } &&
16524          { ac_try='test -s conftest.$ac_objext'
16525   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16526   (eval $ac_try) 2>&5
16527   ac_status=$?
16528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16529   (exit $ac_status); }; }; then
16530   ac_cv_struct_sockaddr_sa_len=yes
16531 else
16532   echo "$as_me: failed program was:" >&5
16533 sed 's/^/| /' conftest.$ac_ext >&5
16534
16535 ac_cv_struct_sockaddr_sa_len=no
16536 fi
16537 rm -f conftest.$ac_objext conftest.$ac_ext
16538 fi
16539 echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
16540 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6
16541
16542  if test $ac_cv_struct_sockaddr_sa_len = yes; then
16543
16544 cat >>confdefs.h <<\_ACEOF
16545 #define HAVE_SA_LEN 1
16546 _ACEOF
16547
16548  fi
16549
16550
16551 echo "$as_me:$LINENO: checking for IPv6 support" >&5
16552 echo $ECHO_N "checking for IPv6 support... $ECHO_C" >&6
16553 if test "${ac_cv_ipv6_support+set}" = set; then
16554   echo $ECHO_N "(cached) $ECHO_C" >&6
16555 else
16556   cat >conftest.$ac_ext <<_ACEOF
16557 #line $LINENO "configure"
16558 /* confdefs.h.  */
16559 _ACEOF
16560 cat confdefs.h >>conftest.$ac_ext
16561 cat >>conftest.$ac_ext <<_ACEOF
16562 /* end confdefs.h.  */
16563  #include <sys/types.h>
16564 #include <sys/socket.h>
16565 #include <netinet/in.h>
16566 int
16567 main ()
16568 {
16569 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] =
16570  0;
16571   ;
16572   return 0;
16573 }
16574 _ACEOF
16575 rm -f conftest.$ac_objext conftest$ac_exeext
16576 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16577   (eval $ac_link) 2>&5
16578   ac_status=$?
16579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16580   (exit $ac_status); } &&
16581          { ac_try='test -s conftest$ac_exeext'
16582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16583   (eval $ac_try) 2>&5
16584   ac_status=$?
16585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16586   (exit $ac_status); }; }; then
16587   ac_cv_ipv6_support=yes
16588 else
16589   echo "$as_me: failed program was:" >&5
16590 sed 's/^/| /' conftest.$ac_ext >&5
16591
16592 ac_cv_ipv6_support=no
16593 fi
16594 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16595 fi
16596 echo "$as_me:$LINENO: result: $ac_cv_ipv6_support" >&5
16597 echo "${ECHO_T}$ac_cv_ipv6_support" >&6
16598
16599 if test "$ac_cv_ipv6_support" = yes; then
16600
16601 cat >>confdefs.h <<\_ACEOF
16602 #define HAVE_IPV6 1
16603 _ACEOF
16604
16605 fi
16606
16607
16608
16609
16610 for ac_func in strftime
16611 do
16612 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16613 echo "$as_me:$LINENO: checking for $ac_func" >&5
16614 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16615 if eval "test \"\${$as_ac_var+set}\" = set"; then
16616   echo $ECHO_N "(cached) $ECHO_C" >&6
16617 else
16618   cat >conftest.$ac_ext <<_ACEOF
16619 #line $LINENO "configure"
16620 /* confdefs.h.  */
16621 _ACEOF
16622 cat confdefs.h >>conftest.$ac_ext
16623 cat >>conftest.$ac_ext <<_ACEOF
16624 /* end confdefs.h.  */
16625 /* System header to define __stub macros and hopefully few prototypes,
16626     which can conflict with char $ac_func (); below.
16627     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16628     <limits.h> exists even on freestanding compilers.  */
16629 #ifdef __STDC__
16630 # include <limits.h>
16631 #else
16632 # include <assert.h>
16633 #endif
16634 /* Override any gcc2 internal prototype to avoid an error.  */
16635 #ifdef __cplusplus
16636 extern "C"
16637 {
16638 #endif
16639 /* We use char because int might match the return type of a gcc2
16640    builtin and then its argument prototype would still apply.  */
16641 char $ac_func ();
16642 /* The GNU C library defines this for functions which it implements
16643     to always fail with ENOSYS.  Some functions are actually named
16644     something starting with __ and the normal name is an alias.  */
16645 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16646 choke me
16647 #else
16648 char (*f) () = $ac_func;
16649 #endif
16650 #ifdef __cplusplus
16651 }
16652 #endif
16653
16654 int
16655 main ()
16656 {
16657 return f != $ac_func;
16658   ;
16659   return 0;
16660 }
16661 _ACEOF
16662 rm -f conftest.$ac_objext conftest$ac_exeext
16663 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16664   (eval $ac_link) 2>&5
16665   ac_status=$?
16666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16667   (exit $ac_status); } &&
16668          { ac_try='test -s conftest$ac_exeext'
16669   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16670   (eval $ac_try) 2>&5
16671   ac_status=$?
16672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16673   (exit $ac_status); }; }; then
16674   eval "$as_ac_var=yes"
16675 else
16676   echo "$as_me: failed program was:" >&5
16677 sed 's/^/| /' conftest.$ac_ext >&5
16678
16679 eval "$as_ac_var=no"
16680 fi
16681 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16682 fi
16683 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16684 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16685 if test `eval echo '${'$as_ac_var'}'` = yes; then
16686   cat >>confdefs.h <<_ACEOF
16687 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16688 _ACEOF
16689
16690 else
16691   # strftime is in -lintl on SCO UNIX.
16692 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
16693 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
16694 if test "${ac_cv_lib_intl_strftime+set}" = set; then
16695   echo $ECHO_N "(cached) $ECHO_C" >&6
16696 else
16697   ac_check_lib_save_LIBS=$LIBS
16698 LIBS="-lintl  $LIBS"
16699 cat >conftest.$ac_ext <<_ACEOF
16700 #line $LINENO "configure"
16701 /* confdefs.h.  */
16702 _ACEOF
16703 cat confdefs.h >>conftest.$ac_ext
16704 cat >>conftest.$ac_ext <<_ACEOF
16705 /* end confdefs.h.  */
16706
16707 /* Override any gcc2 internal prototype to avoid an error.  */
16708 #ifdef __cplusplus
16709 extern "C"
16710 #endif
16711 /* We use char because int might match the return type of a gcc2
16712    builtin and then its argument prototype would still apply.  */
16713 char strftime ();
16714 int
16715 main ()
16716 {
16717 strftime ();
16718   ;
16719   return 0;
16720 }
16721 _ACEOF
16722 rm -f conftest.$ac_objext conftest$ac_exeext
16723 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16724   (eval $ac_link) 2>&5
16725   ac_status=$?
16726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16727   (exit $ac_status); } &&
16728          { ac_try='test -s conftest$ac_exeext'
16729   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16730   (eval $ac_try) 2>&5
16731   ac_status=$?
16732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16733   (exit $ac_status); }; }; then
16734   ac_cv_lib_intl_strftime=yes
16735 else
16736   echo "$as_me: failed program was:" >&5
16737 sed 's/^/| /' conftest.$ac_ext >&5
16738
16739 ac_cv_lib_intl_strftime=no
16740 fi
16741 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16742 LIBS=$ac_check_lib_save_LIBS
16743 fi
16744 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
16745 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
16746 if test $ac_cv_lib_intl_strftime = yes; then
16747   cat >>confdefs.h <<\_ACEOF
16748 #define HAVE_STRFTIME 1
16749 _ACEOF
16750
16751 LIBS="-lintl $LIBS"
16752 fi
16753
16754 fi
16755 done
16756
16757
16758 for ac_func in vprintf
16759 do
16760 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16761 echo "$as_me:$LINENO: checking for $ac_func" >&5
16762 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16763 if eval "test \"\${$as_ac_var+set}\" = set"; then
16764   echo $ECHO_N "(cached) $ECHO_C" >&6
16765 else
16766   cat >conftest.$ac_ext <<_ACEOF
16767 #line $LINENO "configure"
16768 /* confdefs.h.  */
16769 _ACEOF
16770 cat confdefs.h >>conftest.$ac_ext
16771 cat >>conftest.$ac_ext <<_ACEOF
16772 /* end confdefs.h.  */
16773 /* System header to define __stub macros and hopefully few prototypes,
16774     which can conflict with char $ac_func (); below.
16775     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16776     <limits.h> exists even on freestanding compilers.  */
16777 #ifdef __STDC__
16778 # include <limits.h>
16779 #else
16780 # include <assert.h>
16781 #endif
16782 /* Override any gcc2 internal prototype to avoid an error.  */
16783 #ifdef __cplusplus
16784 extern "C"
16785 {
16786 #endif
16787 /* We use char because int might match the return type of a gcc2
16788    builtin and then its argument prototype would still apply.  */
16789 char $ac_func ();
16790 /* The GNU C library defines this for functions which it implements
16791     to always fail with ENOSYS.  Some functions are actually named
16792     something starting with __ and the normal name is an alias.  */
16793 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16794 choke me
16795 #else
16796 char (*f) () = $ac_func;
16797 #endif
16798 #ifdef __cplusplus
16799 }
16800 #endif
16801
16802 int
16803 main ()
16804 {
16805 return f != $ac_func;
16806   ;
16807   return 0;
16808 }
16809 _ACEOF
16810 rm -f conftest.$ac_objext conftest$ac_exeext
16811 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16812   (eval $ac_link) 2>&5
16813   ac_status=$?
16814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16815   (exit $ac_status); } &&
16816          { ac_try='test -s conftest$ac_exeext'
16817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16818   (eval $ac_try) 2>&5
16819   ac_status=$?
16820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16821   (exit $ac_status); }; }; then
16822   eval "$as_ac_var=yes"
16823 else
16824   echo "$as_me: failed program was:" >&5
16825 sed 's/^/| /' conftest.$ac_ext >&5
16826
16827 eval "$as_ac_var=no"
16828 fi
16829 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16830 fi
16831 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16832 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16833 if test `eval echo '${'$as_ac_var'}'` = yes; then
16834   cat >>confdefs.h <<_ACEOF
16835 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16836 _ACEOF
16837
16838 echo "$as_me:$LINENO: checking for _doprnt" >&5
16839 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
16840 if test "${ac_cv_func__doprnt+set}" = set; then
16841   echo $ECHO_N "(cached) $ECHO_C" >&6
16842 else
16843   cat >conftest.$ac_ext <<_ACEOF
16844 #line $LINENO "configure"
16845 /* confdefs.h.  */
16846 _ACEOF
16847 cat confdefs.h >>conftest.$ac_ext
16848 cat >>conftest.$ac_ext <<_ACEOF
16849 /* end confdefs.h.  */
16850 /* System header to define __stub macros and hopefully few prototypes,
16851     which can conflict with char _doprnt (); below.
16852     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16853     <limits.h> exists even on freestanding compilers.  */
16854 #ifdef __STDC__
16855 # include <limits.h>
16856 #else
16857 # include <assert.h>
16858 #endif
16859 /* Override any gcc2 internal prototype to avoid an error.  */
16860 #ifdef __cplusplus
16861 extern "C"
16862 {
16863 #endif
16864 /* We use char because int might match the return type of a gcc2
16865    builtin and then its argument prototype would still apply.  */
16866 char _doprnt ();
16867 /* The GNU C library defines this for functions which it implements
16868     to always fail with ENOSYS.  Some functions are actually named
16869     something starting with __ and the normal name is an alias.  */
16870 #if defined (__stub__doprnt) || defined (__stub____doprnt)
16871 choke me
16872 #else
16873 char (*f) () = _doprnt;
16874 #endif
16875 #ifdef __cplusplus
16876 }
16877 #endif
16878
16879 int
16880 main ()
16881 {
16882 return f != _doprnt;
16883   ;
16884   return 0;
16885 }
16886 _ACEOF
16887 rm -f conftest.$ac_objext conftest$ac_exeext
16888 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16889   (eval $ac_link) 2>&5
16890   ac_status=$?
16891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16892   (exit $ac_status); } &&
16893          { ac_try='test -s conftest$ac_exeext'
16894   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16895   (eval $ac_try) 2>&5
16896   ac_status=$?
16897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16898   (exit $ac_status); }; }; then
16899   ac_cv_func__doprnt=yes
16900 else
16901   echo "$as_me: failed program was:" >&5
16902 sed 's/^/| /' conftest.$ac_ext >&5
16903
16904 ac_cv_func__doprnt=no
16905 fi
16906 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16907 fi
16908 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
16909 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
16910 if test $ac_cv_func__doprnt = yes; then
16911
16912 cat >>confdefs.h <<\_ACEOF
16913 #define HAVE_DOPRNT 1
16914 _ACEOF
16915
16916 fi
16917
16918 fi
16919 done
16920
16921
16922 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16923 # for constant arguments.  Useless!
16924 echo "$as_me:$LINENO: checking for working alloca.h" >&5
16925 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
16926 if test "${ac_cv_working_alloca_h+set}" = set; then
16927   echo $ECHO_N "(cached) $ECHO_C" >&6
16928 else
16929   cat >conftest.$ac_ext <<_ACEOF
16930 #line $LINENO "configure"
16931 /* confdefs.h.  */
16932 _ACEOF
16933 cat confdefs.h >>conftest.$ac_ext
16934 cat >>conftest.$ac_ext <<_ACEOF
16935 /* end confdefs.h.  */
16936 #include <alloca.h>
16937 int
16938 main ()
16939 {
16940 char *p = (char *) alloca (2 * sizeof (int));
16941   ;
16942   return 0;
16943 }
16944 _ACEOF
16945 rm -f conftest.$ac_objext conftest$ac_exeext
16946 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16947   (eval $ac_link) 2>&5
16948   ac_status=$?
16949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16950   (exit $ac_status); } &&
16951          { ac_try='test -s conftest$ac_exeext'
16952   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16953   (eval $ac_try) 2>&5
16954   ac_status=$?
16955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16956   (exit $ac_status); }; }; then
16957   ac_cv_working_alloca_h=yes
16958 else
16959   echo "$as_me: failed program was:" >&5
16960 sed 's/^/| /' conftest.$ac_ext >&5
16961
16962 ac_cv_working_alloca_h=no
16963 fi
16964 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16965 fi
16966 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
16967 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
16968 if test $ac_cv_working_alloca_h = yes; then
16969
16970 cat >>confdefs.h <<\_ACEOF
16971 #define HAVE_ALLOCA_H 1
16972 _ACEOF
16973
16974 fi
16975
16976 echo "$as_me:$LINENO: checking for alloca" >&5
16977 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
16978 if test "${ac_cv_func_alloca_works+set}" = set; then
16979   echo $ECHO_N "(cached) $ECHO_C" >&6
16980 else
16981   cat >conftest.$ac_ext <<_ACEOF
16982 #line $LINENO "configure"
16983 /* confdefs.h.  */
16984 _ACEOF
16985 cat confdefs.h >>conftest.$ac_ext
16986 cat >>conftest.$ac_ext <<_ACEOF
16987 /* end confdefs.h.  */
16988 #ifdef __GNUC__
16989 # define alloca __builtin_alloca
16990 #else
16991 # ifdef _MSC_VER
16992 #  include <malloc.h>
16993 #  define alloca _alloca
16994 # else
16995 #  if HAVE_ALLOCA_H
16996 #   include <alloca.h>
16997 #  else
16998 #   ifdef _AIX
16999  #pragma alloca
17000 #   else
17001 #    ifndef alloca /* predefined by HP cc +Olibcalls */
17002 char *alloca ();
17003 #    endif
17004 #   endif
17005 #  endif
17006 # endif
17007 #endif
17008
17009 int
17010 main ()
17011 {
17012 char *p = (char *) alloca (1);
17013   ;
17014   return 0;
17015 }
17016 _ACEOF
17017 rm -f conftest.$ac_objext conftest$ac_exeext
17018 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17019   (eval $ac_link) 2>&5
17020   ac_status=$?
17021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17022   (exit $ac_status); } &&
17023          { ac_try='test -s conftest$ac_exeext'
17024   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17025   (eval $ac_try) 2>&5
17026   ac_status=$?
17027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17028   (exit $ac_status); }; }; then
17029   ac_cv_func_alloca_works=yes
17030 else
17031   echo "$as_me: failed program was:" >&5
17032 sed 's/^/| /' conftest.$ac_ext >&5
17033
17034 ac_cv_func_alloca_works=no
17035 fi
17036 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17037 fi
17038 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
17039 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
17040
17041 if test $ac_cv_func_alloca_works = yes; then
17042
17043 cat >>confdefs.h <<\_ACEOF
17044 #define HAVE_ALLOCA 1
17045 _ACEOF
17046
17047 else
17048   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
17049 # that cause trouble.  Some versions do not even contain alloca or
17050 # contain a buggy version.  If you still want to use their alloca,
17051 # use ar to extract alloca.o from them instead of compiling alloca.c.
17052
17053 ALLOCA=alloca.$ac_objext
17054
17055 cat >>confdefs.h <<\_ACEOF
17056 #define C_ALLOCA 1
17057 _ACEOF
17058
17059
17060 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
17061 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
17062 if test "${ac_cv_os_cray+set}" = set; then
17063   echo $ECHO_N "(cached) $ECHO_C" >&6
17064 else
17065   cat >conftest.$ac_ext <<_ACEOF
17066 #line $LINENO "configure"
17067 /* confdefs.h.  */
17068 _ACEOF
17069 cat confdefs.h >>conftest.$ac_ext
17070 cat >>conftest.$ac_ext <<_ACEOF
17071 /* end confdefs.h.  */
17072 #if defined(CRAY) && ! defined(CRAY2)
17073 webecray
17074 #else
17075 wenotbecray
17076 #endif
17077
17078 _ACEOF
17079 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17080   $EGREP "webecray" >/dev/null 2>&1; then
17081   ac_cv_os_cray=yes
17082 else
17083   ac_cv_os_cray=no
17084 fi
17085 rm -f conftest*
17086
17087 fi
17088 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
17089 echo "${ECHO_T}$ac_cv_os_cray" >&6
17090 if test $ac_cv_os_cray = yes; then
17091   for ac_func in _getb67 GETB67 getb67; do
17092     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17093 echo "$as_me:$LINENO: checking for $ac_func" >&5
17094 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17095 if eval "test \"\${$as_ac_var+set}\" = set"; then
17096   echo $ECHO_N "(cached) $ECHO_C" >&6
17097 else
17098   cat >conftest.$ac_ext <<_ACEOF
17099 #line $LINENO "configure"
17100 /* confdefs.h.  */
17101 _ACEOF
17102 cat confdefs.h >>conftest.$ac_ext
17103 cat >>conftest.$ac_ext <<_ACEOF
17104 /* end confdefs.h.  */
17105 /* System header to define __stub macros and hopefully few prototypes,
17106     which can conflict with char $ac_func (); below.
17107     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17108     <limits.h> exists even on freestanding compilers.  */
17109 #ifdef __STDC__
17110 # include <limits.h>
17111 #else
17112 # include <assert.h>
17113 #endif
17114 /* Override any gcc2 internal prototype to avoid an error.  */
17115 #ifdef __cplusplus
17116 extern "C"
17117 {
17118 #endif
17119 /* We use char because int might match the return type of a gcc2
17120    builtin and then its argument prototype would still apply.  */
17121 char $ac_func ();
17122 /* The GNU C library defines this for functions which it implements
17123     to always fail with ENOSYS.  Some functions are actually named
17124     something starting with __ and the normal name is an alias.  */
17125 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17126 choke me
17127 #else
17128 char (*f) () = $ac_func;
17129 #endif
17130 #ifdef __cplusplus
17131 }
17132 #endif
17133
17134 int
17135 main ()
17136 {
17137 return f != $ac_func;
17138   ;
17139   return 0;
17140 }
17141 _ACEOF
17142 rm -f conftest.$ac_objext conftest$ac_exeext
17143 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17144   (eval $ac_link) 2>&5
17145   ac_status=$?
17146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17147   (exit $ac_status); } &&
17148          { ac_try='test -s conftest$ac_exeext'
17149   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17150   (eval $ac_try) 2>&5
17151   ac_status=$?
17152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17153   (exit $ac_status); }; }; then
17154   eval "$as_ac_var=yes"
17155 else
17156   echo "$as_me: failed program was:" >&5
17157 sed 's/^/| /' conftest.$ac_ext >&5
17158
17159 eval "$as_ac_var=no"
17160 fi
17161 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17162 fi
17163 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17164 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17165 if test `eval echo '${'$as_ac_var'}'` = yes; then
17166
17167 cat >>confdefs.h <<_ACEOF
17168 #define CRAY_STACKSEG_END $ac_func
17169 _ACEOF
17170
17171     break
17172 fi
17173
17174   done
17175 fi
17176
17177 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
17178 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
17179 if test "${ac_cv_c_stack_direction+set}" = set; then
17180   echo $ECHO_N "(cached) $ECHO_C" >&6
17181 else
17182   if test "$cross_compiling" = yes; then
17183   ac_cv_c_stack_direction=0
17184 else
17185   cat >conftest.$ac_ext <<_ACEOF
17186 #line $LINENO "configure"
17187 /* confdefs.h.  */
17188 _ACEOF
17189 cat confdefs.h >>conftest.$ac_ext
17190 cat >>conftest.$ac_ext <<_ACEOF
17191 /* end confdefs.h.  */
17192 int
17193 find_stack_direction ()
17194 {
17195   static char *addr = 0;
17196   auto char dummy;
17197   if (addr == 0)
17198     {
17199       addr = &dummy;
17200       return find_stack_direction ();
17201     }
17202   else
17203     return (&dummy > addr) ? 1 : -1;
17204 }
17205
17206 int
17207 main ()
17208 {
17209   exit (find_stack_direction () < 0);
17210 }
17211 _ACEOF
17212 rm -f conftest$ac_exeext
17213 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17214   (eval $ac_link) 2>&5
17215   ac_status=$?
17216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17217   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17218   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17219   (eval $ac_try) 2>&5
17220   ac_status=$?
17221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17222   (exit $ac_status); }; }; then
17223   ac_cv_c_stack_direction=1
17224 else
17225   echo "$as_me: program exited with status $ac_status" >&5
17226 echo "$as_me: failed program was:" >&5
17227 sed 's/^/| /' conftest.$ac_ext >&5
17228
17229 ( exit $ac_status )
17230 ac_cv_c_stack_direction=-1
17231 fi
17232 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17233 fi
17234 fi
17235 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
17236 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
17237
17238 cat >>confdefs.h <<_ACEOF
17239 #define STACK_DIRECTION $ac_cv_c_stack_direction
17240 _ACEOF
17241
17242
17243 fi
17244
17245 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
17246 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
17247 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
17248 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
17249   echo $ECHO_N "(cached) $ECHO_C" >&6
17250 else
17251   ac_check_lib_save_LIBS=$LIBS
17252 LIBS="-lsun  $LIBS"
17253 cat >conftest.$ac_ext <<_ACEOF
17254 #line $LINENO "configure"
17255 /* confdefs.h.  */
17256 _ACEOF
17257 cat confdefs.h >>conftest.$ac_ext
17258 cat >>conftest.$ac_ext <<_ACEOF
17259 /* end confdefs.h.  */
17260
17261 /* Override any gcc2 internal prototype to avoid an error.  */
17262 #ifdef __cplusplus
17263 extern "C"
17264 #endif
17265 /* We use char because int might match the return type of a gcc2
17266    builtin and then its argument prototype would still apply.  */
17267 char getmntent ();
17268 int
17269 main ()
17270 {
17271 getmntent ();
17272   ;
17273   return 0;
17274 }
17275 _ACEOF
17276 rm -f conftest.$ac_objext conftest$ac_exeext
17277 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17278   (eval $ac_link) 2>&5
17279   ac_status=$?
17280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17281   (exit $ac_status); } &&
17282          { ac_try='test -s conftest$ac_exeext'
17283   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17284   (eval $ac_try) 2>&5
17285   ac_status=$?
17286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17287   (exit $ac_status); }; }; then
17288   ac_cv_lib_sun_getmntent=yes
17289 else
17290   echo "$as_me: failed program was:" >&5
17291 sed 's/^/| /' conftest.$ac_ext >&5
17292
17293 ac_cv_lib_sun_getmntent=no
17294 fi
17295 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17296 LIBS=$ac_check_lib_save_LIBS
17297 fi
17298 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
17299 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
17300 if test $ac_cv_lib_sun_getmntent = yes; then
17301   LIBS="-lsun $LIBS"
17302 else
17303   echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
17304 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
17305 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
17306   echo $ECHO_N "(cached) $ECHO_C" >&6
17307 else
17308   ac_check_lib_save_LIBS=$LIBS
17309 LIBS="-lseq  $LIBS"
17310 cat >conftest.$ac_ext <<_ACEOF
17311 #line $LINENO "configure"
17312 /* confdefs.h.  */
17313 _ACEOF
17314 cat confdefs.h >>conftest.$ac_ext
17315 cat >>conftest.$ac_ext <<_ACEOF
17316 /* end confdefs.h.  */
17317
17318 /* Override any gcc2 internal prototype to avoid an error.  */
17319 #ifdef __cplusplus
17320 extern "C"
17321 #endif
17322 /* We use char because int might match the return type of a gcc2
17323    builtin and then its argument prototype would still apply.  */
17324 char getmntent ();
17325 int
17326 main ()
17327 {
17328 getmntent ();
17329   ;
17330   return 0;
17331 }
17332 _ACEOF
17333 rm -f conftest.$ac_objext conftest$ac_exeext
17334 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17335   (eval $ac_link) 2>&5
17336   ac_status=$?
17337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17338   (exit $ac_status); } &&
17339          { ac_try='test -s conftest$ac_exeext'
17340   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17341   (eval $ac_try) 2>&5
17342   ac_status=$?
17343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17344   (exit $ac_status); }; }; then
17345   ac_cv_lib_seq_getmntent=yes
17346 else
17347   echo "$as_me: failed program was:" >&5
17348 sed 's/^/| /' conftest.$ac_ext >&5
17349
17350 ac_cv_lib_seq_getmntent=no
17351 fi
17352 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17353 LIBS=$ac_check_lib_save_LIBS
17354 fi
17355 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
17356 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
17357 if test $ac_cv_lib_seq_getmntent = yes; then
17358   LIBS="-lseq $LIBS"
17359 else
17360   echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
17361 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
17362 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
17363   echo $ECHO_N "(cached) $ECHO_C" >&6
17364 else
17365   ac_check_lib_save_LIBS=$LIBS
17366 LIBS="-lgen  $LIBS"
17367 cat >conftest.$ac_ext <<_ACEOF
17368 #line $LINENO "configure"
17369 /* confdefs.h.  */
17370 _ACEOF
17371 cat confdefs.h >>conftest.$ac_ext
17372 cat >>conftest.$ac_ext <<_ACEOF
17373 /* end confdefs.h.  */
17374
17375 /* Override any gcc2 internal prototype to avoid an error.  */
17376 #ifdef __cplusplus
17377 extern "C"
17378 #endif
17379 /* We use char because int might match the return type of a gcc2
17380    builtin and then its argument prototype would still apply.  */
17381 char getmntent ();
17382 int
17383 main ()
17384 {
17385 getmntent ();
17386   ;
17387   return 0;
17388 }
17389 _ACEOF
17390 rm -f conftest.$ac_objext conftest$ac_exeext
17391 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17392   (eval $ac_link) 2>&5
17393   ac_status=$?
17394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17395   (exit $ac_status); } &&
17396          { ac_try='test -s conftest$ac_exeext'
17397   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17398   (eval $ac_try) 2>&5
17399   ac_status=$?
17400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17401   (exit $ac_status); }; }; then
17402   ac_cv_lib_gen_getmntent=yes
17403 else
17404   echo "$as_me: failed program was:" >&5
17405 sed 's/^/| /' conftest.$ac_ext >&5
17406
17407 ac_cv_lib_gen_getmntent=no
17408 fi
17409 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17410 LIBS=$ac_check_lib_save_LIBS
17411 fi
17412 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
17413 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
17414 if test $ac_cv_lib_gen_getmntent = yes; then
17415   LIBS="-lgen $LIBS"
17416 fi
17417
17418 fi
17419
17420 fi
17421
17422
17423 for ac_func in getmntent
17424 do
17425 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17426 echo "$as_me:$LINENO: checking for $ac_func" >&5
17427 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17428 if eval "test \"\${$as_ac_var+set}\" = set"; then
17429   echo $ECHO_N "(cached) $ECHO_C" >&6
17430 else
17431   cat >conftest.$ac_ext <<_ACEOF
17432 #line $LINENO "configure"
17433 /* confdefs.h.  */
17434 _ACEOF
17435 cat confdefs.h >>conftest.$ac_ext
17436 cat >>conftest.$ac_ext <<_ACEOF
17437 /* end confdefs.h.  */
17438 /* System header to define __stub macros and hopefully few prototypes,
17439     which can conflict with char $ac_func (); below.
17440     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17441     <limits.h> exists even on freestanding compilers.  */
17442 #ifdef __STDC__
17443 # include <limits.h>
17444 #else
17445 # include <assert.h>
17446 #endif
17447 /* Override any gcc2 internal prototype to avoid an error.  */
17448 #ifdef __cplusplus
17449 extern "C"
17450 {
17451 #endif
17452 /* We use char because int might match the return type of a gcc2
17453    builtin and then its argument prototype would still apply.  */
17454 char $ac_func ();
17455 /* The GNU C library defines this for functions which it implements
17456     to always fail with ENOSYS.  Some functions are actually named
17457     something starting with __ and the normal name is an alias.  */
17458 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17459 choke me
17460 #else
17461 char (*f) () = $ac_func;
17462 #endif
17463 #ifdef __cplusplus
17464 }
17465 #endif
17466
17467 int
17468 main ()
17469 {
17470 return f != $ac_func;
17471   ;
17472   return 0;
17473 }
17474 _ACEOF
17475 rm -f conftest.$ac_objext conftest$ac_exeext
17476 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17477   (eval $ac_link) 2>&5
17478   ac_status=$?
17479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17480   (exit $ac_status); } &&
17481          { ac_try='test -s conftest$ac_exeext'
17482   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17483   (eval $ac_try) 2>&5
17484   ac_status=$?
17485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17486   (exit $ac_status); }; }; then
17487   eval "$as_ac_var=yes"
17488 else
17489   echo "$as_me: failed program was:" >&5
17490 sed 's/^/| /' conftest.$ac_ext >&5
17491
17492 eval "$as_ac_var=no"
17493 fi
17494 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17495 fi
17496 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17497 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17498 if test `eval echo '${'$as_ac_var'}'` = yes; then
17499   cat >>confdefs.h <<_ACEOF
17500 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17501 _ACEOF
17502
17503 fi
17504 done
17505
17506
17507 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
17508 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
17509 if test "${ac_cv_func_closedir_void+set}" = set; then
17510   echo $ECHO_N "(cached) $ECHO_C" >&6
17511 else
17512   if test "$cross_compiling" = yes; then
17513   ac_cv_func_closedir_void=yes
17514 else
17515   cat >conftest.$ac_ext <<_ACEOF
17516 #line $LINENO "configure"
17517 /* confdefs.h.  */
17518 _ACEOF
17519 cat confdefs.h >>conftest.$ac_ext
17520 cat >>conftest.$ac_ext <<_ACEOF
17521 /* end confdefs.h.  */
17522 $ac_includes_default
17523 #include <$ac_header_dirent>
17524 #ifndef __cplusplus
17525 int closedir ();
17526 #endif
17527
17528 int
17529 main ()
17530 {
17531 exit (closedir (opendir (".")) != 0);
17532   ;
17533   return 0;
17534 }
17535 _ACEOF
17536 rm -f conftest$ac_exeext
17537 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17538   (eval $ac_link) 2>&5
17539   ac_status=$?
17540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17541   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17542   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17543   (eval $ac_try) 2>&5
17544   ac_status=$?
17545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17546   (exit $ac_status); }; }; then
17547   ac_cv_func_closedir_void=no
17548 else
17549   echo "$as_me: program exited with status $ac_status" >&5
17550 echo "$as_me: failed program was:" >&5
17551 sed 's/^/| /' conftest.$ac_ext >&5
17552
17553 ( exit $ac_status )
17554 ac_cv_func_closedir_void=yes
17555 fi
17556 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17557 fi
17558 fi
17559 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
17560 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
17561 if test $ac_cv_func_closedir_void = yes; then
17562
17563 cat >>confdefs.h <<\_ACEOF
17564 #define CLOSEDIR_VOID 1
17565 _ACEOF
17566
17567 fi
17568
17569 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
17570 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
17571 if test "${ac_cv_func_setpgrp_void+set}" = set; then
17572   echo $ECHO_N "(cached) $ECHO_C" >&6
17573 else
17574   if test "$cross_compiling" = yes; then
17575   { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
17576 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
17577    { (exit 1); exit 1; }; }
17578 else
17579   cat >conftest.$ac_ext <<_ACEOF
17580 #line $LINENO "configure"
17581 /* confdefs.h.  */
17582 _ACEOF
17583 cat confdefs.h >>conftest.$ac_ext
17584 cat >>conftest.$ac_ext <<_ACEOF
17585 /* end confdefs.h.  */
17586 #if HAVE_UNISTD_H
17587 # include <unistd.h>
17588 #endif
17589
17590 int
17591 main ()
17592 {
17593 /* If this system has a BSD-style setpgrp which takes arguments,
17594   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
17595   exit successfully. */
17596   exit (setpgrp (1,1) == -1 ? 0 : 1);
17597   ;
17598   return 0;
17599 }
17600 _ACEOF
17601 rm -f conftest$ac_exeext
17602 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17603   (eval $ac_link) 2>&5
17604   ac_status=$?
17605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17606   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17608   (eval $ac_try) 2>&5
17609   ac_status=$?
17610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17611   (exit $ac_status); }; }; then
17612   ac_cv_func_setpgrp_void=no
17613 else
17614   echo "$as_me: program exited with status $ac_status" >&5
17615 echo "$as_me: failed program was:" >&5
17616 sed 's/^/| /' conftest.$ac_ext >&5
17617
17618 ( exit $ac_status )
17619 ac_cv_func_setpgrp_void=yes
17620 fi
17621 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17622 fi
17623 fi
17624 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
17625 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
17626 if test $ac_cv_func_setpgrp_void = yes; then
17627
17628 cat >>confdefs.h <<\_ACEOF
17629 #define SETPGRP_VOID 1
17630 _ACEOF
17631
17632 fi
17633                       echo "$as_me:$LINENO: checking for working POSIX fnmatch" >&5
17634 echo $ECHO_N "checking for working POSIX fnmatch... $ECHO_C" >&6
17635 if test "${ac_cv_func_fnmatch_works+set}" = set; then
17636   echo $ECHO_N "(cached) $ECHO_C" >&6
17637 else
17638   # Some versions of Solaris, SCO, and the GNU C Library
17639    # have a broken or incompatible fnmatch.
17640    # So we run a test program.  If we are cross-compiling, take no chance.
17641    # Thanks to John Oleynick, Franc,ois Pinard, and Paul Eggert for this test.
17642    if test "$cross_compiling" = yes; then
17643   ac_cv_func_fnmatch_works=cross
17644 else
17645   cat >conftest.$ac_ext <<_ACEOF
17646 #line $LINENO "configure"
17647 /* confdefs.h.  */
17648 _ACEOF
17649 cat confdefs.h >>conftest.$ac_ext
17650 cat >>conftest.$ac_ext <<_ACEOF
17651 /* end confdefs.h.  */
17652 #include <fnmatch.h>
17653 #          define y(a, b, c) (fnmatch (a, b, c) == 0)
17654 #          define n(a, b, c) (fnmatch (a, b, c) == FNM_NOMATCH)
17655
17656 int
17657 main ()
17658 {
17659 exit
17660            (!(y ("a*", "abc", 0)
17661               && n ("d*/*1", "d/s/1", FNM_PATHNAME)
17662               && y ("a\\\\bc", "abc", 0)
17663               && n ("a\\\\bc", "abc", FNM_NOESCAPE)
17664               && y ("*x", ".x", 0)
17665               && n ("*x", ".x", FNM_PERIOD)
17666               && 1));
17667   ;
17668   return 0;
17669 }
17670 _ACEOF
17671 rm -f conftest$ac_exeext
17672 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17673   (eval $ac_link) 2>&5
17674   ac_status=$?
17675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17676   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17677   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17678   (eval $ac_try) 2>&5
17679   ac_status=$?
17680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17681   (exit $ac_status); }; }; then
17682   ac_cv_func_fnmatch_works=yes
17683 else
17684   echo "$as_me: program exited with status $ac_status" >&5
17685 echo "$as_me: failed program was:" >&5
17686 sed 's/^/| /' conftest.$ac_ext >&5
17687
17688 ( exit $ac_status )
17689 ac_cv_func_fnmatch_works=no
17690 fi
17691 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17692 fi
17693 fi
17694 echo "$as_me:$LINENO: result: $ac_cv_func_fnmatch_works" >&5
17695 echo "${ECHO_T}$ac_cv_func_fnmatch_works" >&6
17696 if test $ac_cv_func_fnmatch_works = yes; then
17697
17698 cat >>confdefs.h <<\_ACEOF
17699 #define HAVE_FNMATCH 1
17700 _ACEOF
17701
17702 fi
17703
17704
17705
17706
17707
17708 echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
17709 echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
17710 if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
17711   echo $ECHO_N "(cached) $ECHO_C" >&6
17712 else
17713   ac_check_lib_save_LIBS=$LIBS
17714 LIBS="-lxpg4  $LIBS"
17715 cat >conftest.$ac_ext <<_ACEOF
17716 #line $LINENO "configure"
17717 /* confdefs.h.  */
17718 _ACEOF
17719 cat confdefs.h >>conftest.$ac_ext
17720 cat >>conftest.$ac_ext <<_ACEOF
17721 /* end confdefs.h.  */
17722
17723 /* Override any gcc2 internal prototype to avoid an error.  */
17724 #ifdef __cplusplus
17725 extern "C"
17726 #endif
17727 /* We use char because int might match the return type of a gcc2
17728    builtin and then its argument prototype would still apply.  */
17729 char setlocale ();
17730 int
17731 main ()
17732 {
17733 setlocale ();
17734   ;
17735   return 0;
17736 }
17737 _ACEOF
17738 rm -f conftest.$ac_objext conftest$ac_exeext
17739 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17740   (eval $ac_link) 2>&5
17741   ac_status=$?
17742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17743   (exit $ac_status); } &&
17744          { ac_try='test -s conftest$ac_exeext'
17745   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17746   (eval $ac_try) 2>&5
17747   ac_status=$?
17748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17749   (exit $ac_status); }; }; then
17750   ac_cv_lib_xpg4_setlocale=yes
17751 else
17752   echo "$as_me: failed program was:" >&5
17753 sed 's/^/| /' conftest.$ac_ext >&5
17754
17755 ac_cv_lib_xpg4_setlocale=no
17756 fi
17757 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17758 LIBS=$ac_check_lib_save_LIBS
17759 fi
17760 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
17761 echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
17762 if test $ac_cv_lib_xpg4_setlocale = yes; then
17763   LIBS="$LIBS -lxpg4"
17764 fi
17765
17766
17767
17768
17769 echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
17770 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6
17771 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
17772   echo $ECHO_N "(cached) $ECHO_C" >&6
17773 else
17774   ac_check_lib_save_LIBS=$LIBS
17775 LIBS="-lsun  $LIBS"
17776 cat >conftest.$ac_ext <<_ACEOF
17777 #line $LINENO "configure"
17778 /* confdefs.h.  */
17779 _ACEOF
17780 cat confdefs.h >>conftest.$ac_ext
17781 cat >>conftest.$ac_ext <<_ACEOF
17782 /* end confdefs.h.  */
17783
17784 /* Override any gcc2 internal prototype to avoid an error.  */
17785 #ifdef __cplusplus
17786 extern "C"
17787 #endif
17788 /* We use char because int might match the return type of a gcc2
17789    builtin and then its argument prototype would still apply.  */
17790 char getpwnam ();
17791 int
17792 main ()
17793 {
17794 getpwnam ();
17795   ;
17796   return 0;
17797 }
17798 _ACEOF
17799 rm -f conftest.$ac_objext conftest$ac_exeext
17800 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17801   (eval $ac_link) 2>&5
17802   ac_status=$?
17803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17804   (exit $ac_status); } &&
17805          { ac_try='test -s conftest$ac_exeext'
17806   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17807   (eval $ac_try) 2>&5
17808   ac_status=$?
17809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17810   (exit $ac_status); }; }; then
17811   ac_cv_lib_sun_getpwnam=yes
17812 else
17813   echo "$as_me: failed program was:" >&5
17814 sed 's/^/| /' conftest.$ac_ext >&5
17815
17816 ac_cv_lib_sun_getpwnam=no
17817 fi
17818 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17819 LIBS=$ac_check_lib_save_LIBS
17820 fi
17821 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
17822 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6
17823 if test $ac_cv_lib_sun_getpwnam = yes; then
17824   cat >>confdefs.h <<_ACEOF
17825 #define HAVE_LIBSUN 1
17826 _ACEOF
17827
17828   LIBS="-lsun $LIBS"
17829
17830 fi
17831
17832
17833
17834 for ac_header in zlib.h
17835 do
17836 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17837 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17838   echo "$as_me:$LINENO: checking for $ac_header" >&5
17839 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17840 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17841   echo $ECHO_N "(cached) $ECHO_C" >&6
17842 fi
17843 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17844 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17845 else
17846   # Is the header compilable?
17847 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17848 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17849 cat >conftest.$ac_ext <<_ACEOF
17850 #line $LINENO "configure"
17851 /* confdefs.h.  */
17852 _ACEOF
17853 cat confdefs.h >>conftest.$ac_ext
17854 cat >>conftest.$ac_ext <<_ACEOF
17855 /* end confdefs.h.  */
17856 $ac_includes_default
17857 #include <$ac_header>
17858 _ACEOF
17859 rm -f conftest.$ac_objext
17860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17861   (eval $ac_compile) 2>&5
17862   ac_status=$?
17863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17864   (exit $ac_status); } &&
17865          { ac_try='test -s conftest.$ac_objext'
17866   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17867   (eval $ac_try) 2>&5
17868   ac_status=$?
17869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17870   (exit $ac_status); }; }; then
17871   ac_header_compiler=yes
17872 else
17873   echo "$as_me: failed program was:" >&5
17874 sed 's/^/| /' conftest.$ac_ext >&5
17875
17876 ac_header_compiler=no
17877 fi
17878 rm -f conftest.$ac_objext conftest.$ac_ext
17879 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17880 echo "${ECHO_T}$ac_header_compiler" >&6
17881
17882 # Is the header present?
17883 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17884 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17885 cat >conftest.$ac_ext <<_ACEOF
17886 #line $LINENO "configure"
17887 /* confdefs.h.  */
17888 _ACEOF
17889 cat confdefs.h >>conftest.$ac_ext
17890 cat >>conftest.$ac_ext <<_ACEOF
17891 /* end confdefs.h.  */
17892 #include <$ac_header>
17893 _ACEOF
17894 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17895   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17896   ac_status=$?
17897   grep -v '^ *+' conftest.er1 >conftest.err
17898   rm -f conftest.er1
17899   cat conftest.err >&5
17900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17901   (exit $ac_status); } >/dev/null; then
17902   if test -s conftest.err; then
17903     ac_cpp_err=$ac_c_preproc_warn_flag
17904   else
17905     ac_cpp_err=
17906   fi
17907 else
17908   ac_cpp_err=yes
17909 fi
17910 if test -z "$ac_cpp_err"; then
17911   ac_header_preproc=yes
17912 else
17913   echo "$as_me: failed program was:" >&5
17914 sed 's/^/| /' conftest.$ac_ext >&5
17915
17916   ac_header_preproc=no
17917 fi
17918 rm -f conftest.err conftest.$ac_ext
17919 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17920 echo "${ECHO_T}$ac_header_preproc" >&6
17921
17922 # So?  What about this header?
17923 case $ac_header_compiler:$ac_header_preproc in
17924   yes:no )
17925     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17926 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17927     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17928 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17929     (
17930       cat <<\_ASBOX
17931 ## ------------------------------------ ##
17932 ## Report this to bug-autoconf@gnu.org. ##
17933 ## ------------------------------------ ##
17934 _ASBOX
17935     ) |
17936       sed "s/^/$as_me: WARNING:     /" >&2
17937     ;;
17938   no:yes )
17939     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17940 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17941     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17942 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17943     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17944 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17945     (
17946       cat <<\_ASBOX
17947 ## ------------------------------------ ##
17948 ## Report this to bug-autoconf@gnu.org. ##
17949 ## ------------------------------------ ##
17950 _ASBOX
17951     ) |
17952       sed "s/^/$as_me: WARNING:     /" >&2
17953     ;;
17954 esac
17955 echo "$as_me:$LINENO: checking for $ac_header" >&5
17956 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17957 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17958   echo $ECHO_N "(cached) $ECHO_C" >&6
17959 else
17960   eval "$as_ac_Header=$ac_header_preproc"
17961 fi
17962 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17963 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17964
17965 fi
17966 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17967   cat >>confdefs.h <<_ACEOF
17968 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17969 _ACEOF
17970
17971 fi
17972
17973 done
17974
17975 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
17976 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
17977 if test "${ac_cv_lib_z_deflate+set}" = set; then
17978   echo $ECHO_N "(cached) $ECHO_C" >&6
17979 else
17980   ac_check_lib_save_LIBS=$LIBS
17981 LIBS="-lz  $LIBS"
17982 cat >conftest.$ac_ext <<_ACEOF
17983 #line $LINENO "configure"
17984 /* confdefs.h.  */
17985 _ACEOF
17986 cat confdefs.h >>conftest.$ac_ext
17987 cat >>conftest.$ac_ext <<_ACEOF
17988 /* end confdefs.h.  */
17989
17990 /* Override any gcc2 internal prototype to avoid an error.  */
17991 #ifdef __cplusplus
17992 extern "C"
17993 #endif
17994 /* We use char because int might match the return type of a gcc2
17995    builtin and then its argument prototype would still apply.  */
17996 char deflate ();
17997 int
17998 main ()
17999 {
18000 deflate ();
18001   ;
18002   return 0;
18003 }
18004 _ACEOF
18005 rm -f conftest.$ac_objext conftest$ac_exeext
18006 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18007   (eval $ac_link) 2>&5
18008   ac_status=$?
18009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18010   (exit $ac_status); } &&
18011          { ac_try='test -s conftest$ac_exeext'
18012   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18013   (eval $ac_try) 2>&5
18014   ac_status=$?
18015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18016   (exit $ac_status); }; }; then
18017   ac_cv_lib_z_deflate=yes
18018 else
18019   echo "$as_me: failed program was:" >&5
18020 sed 's/^/| /' conftest.$ac_ext >&5
18021
18022 ac_cv_lib_z_deflate=no
18023 fi
18024 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18025 LIBS=$ac_check_lib_save_LIBS
18026 fi
18027 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
18028 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
18029 if test $ac_cv_lib_z_deflate = yes; then
18030   FDLIBS="-lz"
18031 fi
18032
18033 have_zlib=no
18034 if test x$FDLIBS = x-lz; then
18035   cat >>confdefs.h <<\_ACEOF
18036 #define HAVE_LIBZ 1
18037 _ACEOF
18038
18039   have_zlib=yes
18040 fi
18041
18042 if test "${ac_cv_header_sys_acl_h+set}" = set; then
18043   echo "$as_me:$LINENO: checking for sys/acl.h" >&5
18044 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
18045 if test "${ac_cv_header_sys_acl_h+set}" = set; then
18046   echo $ECHO_N "(cached) $ECHO_C" >&6
18047 fi
18048 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
18049 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
18050 else
18051   # Is the header compilable?
18052 echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
18053 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6
18054 cat >conftest.$ac_ext <<_ACEOF
18055 #line $LINENO "configure"
18056 /* confdefs.h.  */
18057 _ACEOF
18058 cat confdefs.h >>conftest.$ac_ext
18059 cat >>conftest.$ac_ext <<_ACEOF
18060 /* end confdefs.h.  */
18061 $ac_includes_default
18062 #include <sys/acl.h>
18063 _ACEOF
18064 rm -f conftest.$ac_objext
18065 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18066   (eval $ac_compile) 2>&5
18067   ac_status=$?
18068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18069   (exit $ac_status); } &&
18070          { ac_try='test -s conftest.$ac_objext'
18071   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18072   (eval $ac_try) 2>&5
18073   ac_status=$?
18074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18075   (exit $ac_status); }; }; then
18076   ac_header_compiler=yes
18077 else
18078   echo "$as_me: failed program was:" >&5
18079 sed 's/^/| /' conftest.$ac_ext >&5
18080
18081 ac_header_compiler=no
18082 fi
18083 rm -f conftest.$ac_objext conftest.$ac_ext
18084 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18085 echo "${ECHO_T}$ac_header_compiler" >&6
18086
18087 # Is the header present?
18088 echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
18089 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6
18090 cat >conftest.$ac_ext <<_ACEOF
18091 #line $LINENO "configure"
18092 /* confdefs.h.  */
18093 _ACEOF
18094 cat confdefs.h >>conftest.$ac_ext
18095 cat >>conftest.$ac_ext <<_ACEOF
18096 /* end confdefs.h.  */
18097 #include <sys/acl.h>
18098 _ACEOF
18099 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18100   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18101   ac_status=$?
18102   grep -v '^ *+' conftest.er1 >conftest.err
18103   rm -f conftest.er1
18104   cat conftest.err >&5
18105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18106   (exit $ac_status); } >/dev/null; then
18107   if test -s conftest.err; then
18108     ac_cpp_err=$ac_c_preproc_warn_flag
18109   else
18110     ac_cpp_err=
18111   fi
18112 else
18113   ac_cpp_err=yes
18114 fi
18115 if test -z "$ac_cpp_err"; then
18116   ac_header_preproc=yes
18117 else
18118   echo "$as_me: failed program was:" >&5
18119 sed 's/^/| /' conftest.$ac_ext >&5
18120
18121   ac_header_preproc=no
18122 fi
18123 rm -f conftest.err conftest.$ac_ext
18124 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18125 echo "${ECHO_T}$ac_header_preproc" >&6
18126
18127 # So?  What about this header?
18128 case $ac_header_compiler:$ac_header_preproc in
18129   yes:no )
18130     { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
18131 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18132     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
18133 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
18134     (
18135       cat <<\_ASBOX
18136 ## ------------------------------------ ##
18137 ## Report this to bug-autoconf@gnu.org. ##
18138 ## ------------------------------------ ##
18139 _ASBOX
18140     ) |
18141       sed "s/^/$as_me: WARNING:     /" >&2
18142     ;;
18143   no:yes )
18144     { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
18145 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
18146     { echo "$as_me:$LINENO: WARNING: sys/acl.h: check for missing prerequisite headers?" >&5
18147 echo "$as_me: WARNING: sys/acl.h: check for missing prerequisite headers?" >&2;}
18148     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
18149 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
18150     (
18151       cat <<\_ASBOX
18152 ## ------------------------------------ ##
18153 ## Report this to bug-autoconf@gnu.org. ##
18154 ## ------------------------------------ ##
18155 _ASBOX
18156     ) |
18157       sed "s/^/$as_me: WARNING:     /" >&2
18158     ;;
18159 esac
18160 echo "$as_me:$LINENO: checking for sys/acl.h" >&5
18161 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
18162 if test "${ac_cv_header_sys_acl_h+set}" = set; then
18163   echo $ECHO_N "(cached) $ECHO_C" >&6
18164 else
18165   ac_cv_header_sys_acl_h=$ac_header_preproc
18166 fi
18167 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
18168 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
18169
18170 fi
18171
18172
18173 echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
18174 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6
18175 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
18176   echo $ECHO_N "(cached) $ECHO_C" >&6
18177 else
18178   ac_check_lib_save_LIBS=$LIBS
18179 LIBS="-lacl  $LIBS"
18180 cat >conftest.$ac_ext <<_ACEOF
18181 #line $LINENO "configure"
18182 /* confdefs.h.  */
18183 _ACEOF
18184 cat confdefs.h >>conftest.$ac_ext
18185 cat >>conftest.$ac_ext <<_ACEOF
18186 /* end confdefs.h.  */
18187
18188 /* Override any gcc2 internal prototype to avoid an error.  */
18189 #ifdef __cplusplus
18190 extern "C"
18191 #endif
18192 /* We use char because int might match the return type of a gcc2
18193    builtin and then its argument prototype would still apply.  */
18194 char acl_get_file ();
18195 int
18196 main ()
18197 {
18198 acl_get_file ();
18199   ;
18200   return 0;
18201 }
18202 _ACEOF
18203 rm -f conftest.$ac_objext conftest$ac_exeext
18204 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18205   (eval $ac_link) 2>&5
18206   ac_status=$?
18207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18208   (exit $ac_status); } &&
18209          { ac_try='test -s conftest$ac_exeext'
18210   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18211   (eval $ac_try) 2>&5
18212   ac_status=$?
18213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18214   (exit $ac_status); }; }; then
18215   ac_cv_lib_acl_acl_get_file=yes
18216 else
18217   echo "$as_me: failed program was:" >&5
18218 sed 's/^/| /' conftest.$ac_ext >&5
18219
18220 ac_cv_lib_acl_acl_get_file=no
18221 fi
18222 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18223 LIBS=$ac_check_lib_save_LIBS
18224 fi
18225 echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
18226 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6
18227 if test $ac_cv_lib_acl_acl_get_file = yes; then
18228   FDLIBS="-lacl $FDLIBS"
18229 fi
18230
18231 have_acl=no
18232 if test $ac_cv_lib_acl_acl_get_file = yes; then
18233    cat >>confdefs.h <<\_ACEOF
18234 #define HAVE_ACL 1
18235 _ACEOF
18236
18237    have_acl=yes
18238 fi
18239
18240 PTHREAD_LIB=""
18241 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
18242 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
18243 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
18244   echo $ECHO_N "(cached) $ECHO_C" >&6
18245 else
18246   ac_check_lib_save_LIBS=$LIBS
18247 LIBS="-lpthread  $LIBS"
18248 cat >conftest.$ac_ext <<_ACEOF
18249 #line $LINENO "configure"
18250 /* confdefs.h.  */
18251 _ACEOF
18252 cat confdefs.h >>conftest.$ac_ext
18253 cat >>conftest.$ac_ext <<_ACEOF
18254 /* end confdefs.h.  */
18255
18256 /* Override any gcc2 internal prototype to avoid an error.  */
18257 #ifdef __cplusplus
18258 extern "C"
18259 #endif
18260 /* We use char because int might match the return type of a gcc2
18261    builtin and then its argument prototype would still apply.  */
18262 char pthread_create ();
18263 int
18264 main ()
18265 {
18266 pthread_create ();
18267   ;
18268   return 0;
18269 }
18270 _ACEOF
18271 rm -f conftest.$ac_objext conftest$ac_exeext
18272 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18273   (eval $ac_link) 2>&5
18274   ac_status=$?
18275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18276   (exit $ac_status); } &&
18277          { ac_try='test -s conftest$ac_exeext'
18278   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18279   (eval $ac_try) 2>&5
18280   ac_status=$?
18281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18282   (exit $ac_status); }; }; then
18283   ac_cv_lib_pthread_pthread_create=yes
18284 else
18285   echo "$as_me: failed program was:" >&5
18286 sed 's/^/| /' conftest.$ac_ext >&5
18287
18288 ac_cv_lib_pthread_pthread_create=no
18289 fi
18290 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18291 LIBS=$ac_check_lib_save_LIBS
18292 fi
18293 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
18294 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
18295 if test $ac_cv_lib_pthread_pthread_create = yes; then
18296   PTHREAD_LIB="-lpthread"
18297 else
18298   echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
18299 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
18300 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
18301   echo $ECHO_N "(cached) $ECHO_C" >&6
18302 else
18303   ac_check_lib_save_LIBS=$LIBS
18304 LIBS="-lpthreads  $LIBS"
18305 cat >conftest.$ac_ext <<_ACEOF
18306 #line $LINENO "configure"
18307 /* confdefs.h.  */
18308 _ACEOF
18309 cat confdefs.h >>conftest.$ac_ext
18310 cat >>conftest.$ac_ext <<_ACEOF
18311 /* end confdefs.h.  */
18312
18313 /* Override any gcc2 internal prototype to avoid an error.  */
18314 #ifdef __cplusplus
18315 extern "C"
18316 #endif
18317 /* We use char because int might match the return type of a gcc2
18318    builtin and then its argument prototype would still apply.  */
18319 char pthread_create ();
18320 int
18321 main ()
18322 {
18323 pthread_create ();
18324   ;
18325   return 0;
18326 }
18327 _ACEOF
18328 rm -f conftest.$ac_objext conftest$ac_exeext
18329 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18330   (eval $ac_link) 2>&5
18331   ac_status=$?
18332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18333   (exit $ac_status); } &&
18334          { ac_try='test -s conftest$ac_exeext'
18335   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18336   (eval $ac_try) 2>&5
18337   ac_status=$?
18338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18339   (exit $ac_status); }; }; then
18340   ac_cv_lib_pthreads_pthread_create=yes
18341 else
18342   echo "$as_me: failed program was:" >&5
18343 sed 's/^/| /' conftest.$ac_ext >&5
18344
18345 ac_cv_lib_pthreads_pthread_create=no
18346 fi
18347 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18348 LIBS=$ac_check_lib_save_LIBS
18349 fi
18350 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
18351 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
18352 if test $ac_cv_lib_pthreads_pthread_create = yes; then
18353   PTHREAD_LIB="-lpthreads"
18354 else
18355   echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
18356 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
18357 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
18358   echo $ECHO_N "(cached) $ECHO_C" >&6
18359 else
18360   ac_check_lib_save_LIBS=$LIBS
18361 LIBS="-lc_r  $LIBS"
18362 cat >conftest.$ac_ext <<_ACEOF
18363 #line $LINENO "configure"
18364 /* confdefs.h.  */
18365 _ACEOF
18366 cat confdefs.h >>conftest.$ac_ext
18367 cat >>conftest.$ac_ext <<_ACEOF
18368 /* end confdefs.h.  */
18369
18370 /* Override any gcc2 internal prototype to avoid an error.  */
18371 #ifdef __cplusplus
18372 extern "C"
18373 #endif
18374 /* We use char because int might match the return type of a gcc2
18375    builtin and then its argument prototype would still apply.  */
18376 char pthread_create ();
18377 int
18378 main ()
18379 {
18380 pthread_create ();
18381   ;
18382   return 0;
18383 }
18384 _ACEOF
18385 rm -f conftest.$ac_objext conftest$ac_exeext
18386 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18387   (eval $ac_link) 2>&5
18388   ac_status=$?
18389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18390   (exit $ac_status); } &&
18391          { ac_try='test -s conftest$ac_exeext'
18392   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18393   (eval $ac_try) 2>&5
18394   ac_status=$?
18395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18396   (exit $ac_status); }; }; then
18397   ac_cv_lib_c_r_pthread_create=yes
18398 else
18399   echo "$as_me: failed program was:" >&5
18400 sed 's/^/| /' conftest.$ac_ext >&5
18401
18402 ac_cv_lib_c_r_pthread_create=no
18403 fi
18404 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18405 LIBS=$ac_check_lib_save_LIBS
18406 fi
18407 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
18408 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
18409 if test $ac_cv_lib_c_r_pthread_create = yes; then
18410   PTHREAD_LIB="-lc_r"
18411 else
18412   echo "$as_me:$LINENO: checking for pthread_create" >&5
18413 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6
18414 if test "${ac_cv_func_pthread_create+set}" = set; then
18415   echo $ECHO_N "(cached) $ECHO_C" >&6
18416 else
18417   cat >conftest.$ac_ext <<_ACEOF
18418 #line $LINENO "configure"
18419 /* confdefs.h.  */
18420 _ACEOF
18421 cat confdefs.h >>conftest.$ac_ext
18422 cat >>conftest.$ac_ext <<_ACEOF
18423 /* end confdefs.h.  */
18424 /* System header to define __stub macros and hopefully few prototypes,
18425     which can conflict with char pthread_create (); below.
18426     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18427     <limits.h> exists even on freestanding compilers.  */
18428 #ifdef __STDC__
18429 # include <limits.h>
18430 #else
18431 # include <assert.h>
18432 #endif
18433 /* Override any gcc2 internal prototype to avoid an error.  */
18434 #ifdef __cplusplus
18435 extern "C"
18436 {
18437 #endif
18438 /* We use char because int might match the return type of a gcc2
18439    builtin and then its argument prototype would still apply.  */
18440 char pthread_create ();
18441 /* The GNU C library defines this for functions which it implements
18442     to always fail with ENOSYS.  Some functions are actually named
18443     something starting with __ and the normal name is an alias.  */
18444 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
18445 choke me
18446 #else
18447 char (*f) () = pthread_create;
18448 #endif
18449 #ifdef __cplusplus
18450 }
18451 #endif
18452
18453 int
18454 main ()
18455 {
18456 return f != pthread_create;
18457   ;
18458   return 0;
18459 }
18460 _ACEOF
18461 rm -f conftest.$ac_objext conftest$ac_exeext
18462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18463   (eval $ac_link) 2>&5
18464   ac_status=$?
18465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18466   (exit $ac_status); } &&
18467          { ac_try='test -s conftest$ac_exeext'
18468   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18469   (eval $ac_try) 2>&5
18470   ac_status=$?
18471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18472   (exit $ac_status); }; }; then
18473   ac_cv_func_pthread_create=yes
18474 else
18475   echo "$as_me: failed program was:" >&5
18476 sed 's/^/| /' conftest.$ac_ext >&5
18477
18478 ac_cv_func_pthread_create=no
18479 fi
18480 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18481 fi
18482 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
18483 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6
18484
18485
18486 fi
18487
18488
18489 fi
18490
18491
18492 fi
18493
18494
18495
18496 cat >>confdefs.h <<\_ACEOF
18497 #define FDLIBS 1
18498 _ACEOF
18499
18500
18501
18502 CFLAGS=${CFLAGS--O}
18503 LDFLAGS=${LDFLAGS--O}
18504 DB_LIBS="${SQL_LFLAGS}"
18505
18506 CPPFLAGS="$CPPFLAGS"
18507
18508
18509
18510
18511
18512
18513
18514
18515
18516
18517
18518
18519
18520
18521 OBJLIST=
18522
18523
18524 lld="lld"
18525 llu="llu"
18526
18527 WCFLAGS=
18528 WLDFLAGS=
18529
18530 #
18531 # Finally we set appropriate distribution specific
18532 #  variables and defaults
18533 #
18534 # PFILES are platform specific files
18535 PFILES="platforms/Makefile"
18536 PSCMD="ps -e"
18537 WIN32=
18538 MACOSX=
18539 hostname=`uname -n | cut -d '.' -f 1`
18540 case "$DISTNAME" in
18541 aix)
18542         DISTVER=`uname -r`
18543         PSCMD="ps -e -o pid,comm"
18544         PFILES="${PFILES} \
18545            platforms/aix/Makefile"
18546         TAPEDRIVE="/dev/rmt0.1"
18547   ;;
18548 alpha)
18549         DISTVER=`uname -r`
18550         PTHREAD_LIB="-lpthread -lexc"
18551         if test "${CC}" = "gcc" ; then
18552            lld="lld"
18553            llu="llu"
18554         else
18555            lld="ld"
18556            llu="lu"
18557         fi
18558         TAPEDRIVE="/dev/nrmt0"
18559   ;;
18560 bsdi)
18561         DISTVER=`uname -a |awk '{print $3}'`
18562         TAPEDRIVE="/dev/nrmt0"
18563         PTHREAD_LIB="-pthread"
18564         CFLAGS="${CFLAGS} -pthread"
18565         PSCMD="ps -x -o pid,command"
18566         lld="qd"
18567         llu="qu"
18568         PFILES="${PFILES} \
18569             platforms/bsdi/Makefile \
18570             platforms/bsdi/bacula-fd \
18571             platforms/bsdi/bacula-sd \
18572             platforms/bsdi/bacula-dir"
18573         largefile_support="yes"
18574   ;;
18575 cygwin)
18576         DISTVER=`uname -a |awk '{print $3}'`
18577         TAPEDRIVE="/dev/nrst0"
18578         WIN32=win32
18579         WCFLAGS="-mwindows"
18580         WLDFLAGS="-mwindows"
18581   ;;
18582 darwin)
18583         DISTVER=`uname -r`
18584         TAPEDRIVE="/dev/nst0"
18585         PSCMD="ps -e -o pid,command"
18586         MACOSX=macosx
18587         PFILES="${PFILES} \
18588            platforms/darwin/Makefile"
18589   ;;
18590 debian)
18591         DISTVER=`cat /etc/debian_version`
18592         TAPEDRIVE="/dev/nrst0"
18593         PSCMD="ps -e -o pid,command"
18594   ;;
18595 freebsd)
18596         DISTVER=`uname -a |awk '{print $3}'`
18597         VER=`echo $DISTVER | cut -c 1`
18598         if test x$VER = x4 ; then
18599            PTHREAD_LIB="-pthread"
18600            CFLAGS="${CFLAGS} -pthread"
18601         fi
18602         lld="qd"
18603         llu="qu"
18604         TAPEDRIVE="/dev/nrsa0"
18605         PSCMD="ps -x -o pid,command"
18606         PFILES="${PFILES} \
18607             platforms/freebsd/Makefile \
18608             platforms/freebsd/bacula-fd \
18609             platforms/freebsd/bacula-sd \
18610             platforms/freebsd/bacula-dir"
18611         largefile_support="yes"
18612   ;;
18613 hpux)
18614         PSCMD="UNIX95=1 ps -e -o pid,comm"
18615         CFLAGS="$(CFLAGS) -D_XOPEN_SOURCE_EXTENDED=1"
18616         DISTVER=`uname -r`
18617         TAPEDRIVE="/dev/rmt/0hnb"
18618   ;;
18619 irix)
18620         DISTVER=`uname -r`
18621         TAPEDRIVE="/dev/rmt/0cbn"
18622         PSCMD="ps -e -o pid,comm"
18623         PFILES="${PFILES} \
18624             platforms/irix/Makefile \
18625             platforms/irix/bacula-fd \
18626             platforms/irix/bacula-sd \
18627             platforms/irix/bacula-dir"
18628   ;;
18629 netbsd)
18630         DISTVER=`uname -a |awk '{print $3}'`
18631         lld="qd"
18632         llu="qu"
18633         TAPEDRIVE="/dev/nrst0"
18634         PSCMD="ps -a -o pid,command"
18635         PTHREAD_LIB="-pthread"
18636         CFLAGS="${CFLAGS} -pthread"
18637   ;;
18638 openbsd)
18639         DISTVER=`uname -a |awk '{print $3}'`
18640         lld="qd"
18641         llu="qu"
18642         TAPEDRIVE="/dev/nrst0"
18643         PSCMD="ps -a -o pid,command"
18644         PTHREAD_LIB="-pthread"
18645         CFLAGS="${CFLAGS} -pthread"
18646         PFILES="${PFILES} \
18647             platforms/openbsd/Makefile \
18648             platforms/openbsd/bacula-fd \
18649             platforms/openbsd/bacula-sd \
18650             platforms/openbsd/bacula-dir"
18651   ;;
18652 redhat)
18653         if test -f /etc/whitebox-release ; then
18654            f=/etc/whitebox-release
18655         else
18656            f=/etc/redhat-release
18657         fi
18658         if test `cat $f | grep release |\
18659                    cut -f 3 -d ' '`x = "Enterprise"x ; then
18660            DISTVER="Enterprise "`cat $f | grep release |\
18661                     cut -f 6 -d ' '`
18662         else
18663             DISTVER=`cat /etc/redhat-release | grep release |\
18664                      cut -f 5 -d ' '`
18665         fi
18666         TAPEDRIVE="/dev/nst0"
18667         PSCMD="ps -e -o pid,command"
18668         PFILES="${PFILES} \
18669             platforms/redhat/Makefile \
18670             platforms/redhat/bacula-fd \
18671             platforms/redhat/bacula-sd \
18672             platforms/redhat/bacula-dir \
18673             platforms/redhat/bacula.spec \
18674             "
18675         hostname=`hostname -s`
18676   ;;
18677 mandrake)
18678         DISTVER=`cat /etc/mandrake-release | grep release |\
18679            cut -f 5 -d ' '`
18680         TAPEDRIVE="/dev/nst0"
18681         PSCMD="ps -e -o pid,command"
18682         PFILES="${PFILES} \
18683             platforms/mandrake/Makefile \
18684             platforms/mandrake/bacula-fd \
18685             platforms/mandrake/bacula-sd \
18686             platforms/mandrake/bacula-dir \
18687             platforms/mandrake/bacula.spec \
18688             "
18689   ;;
18690 gentoo)
18691         DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
18692         TAPEDRIVE="/dev/nst0"
18693         PSCMD="ps -e -o pid,command"
18694         PFILES="${PFILES} \
18695             platforms/gentoo/Makefile \
18696             platforms/gentoo/bacula-fd \
18697             platforms/gentoo/bacula-sd \
18698             platforms/gentoo/bacula-dir"
18699   ;;
18700 slackware)
18701         DISTVER=`cat /etc/slackware-version`
18702         TAPEDRIVE="/dev/nst0"
18703         PSCMD="ps -e -o pid,command"
18704         PFILES="${PFILES} \
18705             platforms/slackware/Makefile \
18706             platforms/slackware/rc.bacula-fd \
18707             platforms/slackware/rc.bacula-sd \
18708             platforms/slackware/rc.bacula-dir\
18709             platforms/slackware/functions.bacula"
18710   ;;
18711 solaris)
18712         DISTVER=`uname -r`
18713         TAPEDRIVE="/dev/rmt/0cbn"
18714         PSCMD="ps -e -o pid,comm"
18715         PFILES="${PFILES} \
18716             platforms/solaris/Makefile \
18717             platforms/solaris/bacula-fd \
18718             platforms/solaris/bacula-sd \
18719             platforms/solaris/bacula-dir"
18720         if test x$DISTVER = x5.6 ; then
18721             cat >>confdefs.h <<\_ACEOF
18722 #define HAVE_OLD_SOCKOPT 1
18723 _ACEOF
18724
18725         fi
18726   ;;
18727 suse)
18728         DISTVER=`cat /etc/SuSE-release |grep VERSION|\
18729             cut -f 3 -d ' '`
18730         TAPEDRIVE="/dev/nst0"
18731         PSCMD="ps -e -o pid,command"
18732         PFILES="${PFILES} \
18733             platforms/suse/Makefile \
18734             platforms/suse/bacula-fd \
18735             platforms/suse/bacula-sd \
18736             platforms/suse/bacula-dir \
18737             platforms/suse/bacula \
18738             platforms/suse/bacula.spec"
18739   ;;
18740 suse5)
18741         DISTNAME=suse
18742         DISTVER=5.x
18743         TAPEDRIVE="/dev/nst0"
18744         PSCMD="ps -e -o pid,command"
18745         PFILES="${PFILES} \
18746             platforms/suse/Makefile \
18747             platforms/suse/bacula-fd \
18748             platforms/suse/bacula-sd \
18749             platforms/suse/bacula-dir"
18750   ;;
18751 unknown)
18752         DISTVER=unknown
18753         TAPEDRIVE="/dev/nst0"
18754   ;;
18755 *)
18756   echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
18757   ;;
18758 esac
18759
18760
18761
18762 LIBS="$PTHREAD_LIB $LIBS"
18763
18764 cat >>confdefs.h <<_ACEOF
18765 #define lld "$lld"
18766 _ACEOF
18767
18768 cat >>confdefs.h <<_ACEOF
18769 #define llu "$llu"
18770 _ACEOF
18771
18772
18773
18774
18775
18776
18777
18778
18779 MCOMMON=./autoconf/Make.common
18780
18781
18782 if test "x${subsysdir}" = "x${sbindir}" ; then
18783    echo " "
18784    echo " "
18785    echo "You have set both --sbindir and --with-subsys-dir"
18786    echo "  equal to: ${subsysdir} "
18787    echo "This is not permitted. Please reconfigure."
18788    echo " "
18789    echo "Aborting configuration ..."
18790    echo " "
18791    echo " "
18792    exit 1
18793 fi
18794
18795                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           ac_config_files="$ac_config_files autoconf/Make.common Makefile rescue/Makefile rescue/linux/Makefile rescue/freebsd/Makefile rescue/solaris/Makefile scripts/startmysql scripts/stopmysql scripts/btraceback scripts/startit scripts/stopit scripts/bconsole scripts/gconsole scripts/bacula scripts/devel_bacula scripts/Makefile scripts/logrotate scripts/bacula.desktop.gnome1 scripts/bacula.desktop.gnome2 scripts/bacula.desktop.gnome1.consolehelper scripts/bacula.desktop.gnome2.consolehelper scripts/bacula.desktop.gnome1.xsu scripts/bacula.desktop.gnome2.xsu scripts/gnome-console.console_apps scripts/mtx-changer doc/Makefile src/Makefile src/host.h src/console/Makefile src/console/bconsole.conf src/gnome-console/Makefile src/gnome-console/gnome-console.conf src/gnome2-console/Makefile src/gnome2-console/gnome-console.conf src/wx-console/Makefile src/wx-console/wx-console.conf src/tray-monitor/Makefile src/tray-monitor/tray-monitor.conf src/dird/Makefile src/dird/bacula-dir.conf src/lib/Makefile src/stored/Makefile src/stored/bacula-sd.conf src/filed/Makefile src/filed/bacula-fd.conf src/filed/win32/Makefile src/cats/Makefile src/cats/make_catalog_backup src/cats/delete_catalog_backup src/cats/create_postgresql_database src/cats/update_postgresql_tables src/cats/make_postgresql_tables src/cats/grant_postgresql_privileges src/cats/drop_postgresql_tables src/cats/drop_postgresql_database src/cats/create_mysql_database src/cats/update_mysql_tables src/cats/make_mysql_tables src/cats/grant_mysql_privileges src/cats/drop_mysql_tables src/cats/drop_mysql_database src/cats/create_sqlite_database src/cats/update_sqlite_tables src/cats/make_sqlite_tables src/cats/grant_sqlite_privileges src/cats/drop_sqlite_tables src/cats/drop_sqlite_database src/cats/sqlite src/cats/mysql src/cats/create_bdb_database src/cats/update_bdb_tables src/cats/make_bdb_tables src/cats/grant_bdb_privileges src/cats/drop_bdb_tables src/cats/drop_bdb_database src/cats/create_bacula_database src/cats/update_bacula_tables src/cats/grant_bacula_privileges src/cats/make_bacula_tables src/cats/drop_bacula_tables src/cats/drop_bacula_database src/findlib/Makefile src/tools/Makefile src/win32/winbacula.nsi src/win32/baculafd/bacula-fd.conf src/win32/Makefile src/win32/console/bconsole.conf src/win32/wx-console/wx-console.conf $PFILES"
18796           ac_config_commands="$ac_config_commands default"
18797 cat >confcache <<\_ACEOF
18798 # This file is a shell script that caches the results of configure
18799 # tests run on this system so they can be shared between configure
18800 # scripts and configure runs, see configure's option --config-cache.
18801 # It is not useful on other systems.  If it contains results you don't
18802 # want to keep, you may remove or edit it.
18803 #
18804 # config.status only pays attention to the cache file if you give it
18805 # the --recheck option to rerun configure.
18806 #
18807 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18808 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18809 # following values.
18810
18811 _ACEOF
18812
18813 # The following way of writing the cache mishandles newlines in values,
18814 # but we know of no workaround that is simple, portable, and efficient.
18815 # So, don't put newlines in cache variables' values.
18816 # Ultrix sh set writes to stderr and can't be redirected directly,
18817 # and sets the high bit in the cache file unless we assign to the vars.
18818 {
18819   (set) 2>&1 |
18820     case `(ac_space=' '; set | grep ac_space) 2>&1` in
18821     *ac_space=\ *)
18822       # `set' does not quote correctly, so add quotes (double-quote
18823       # substitution turns \\\\ into \\, and sed turns \\ into \).
18824       sed -n \
18825         "s/'/'\\\\''/g;
18826           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18827       ;;
18828     *)
18829       # `set' quotes correctly as required by POSIX, so do not add quotes.
18830       sed -n \
18831         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
18832       ;;
18833     esac;
18834 } |
18835   sed '
18836      t clear
18837      : clear
18838      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18839      t end
18840      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18841      : end' >>confcache
18842 if diff $cache_file confcache >/dev/null 2>&1; then :; else
18843   if test -w $cache_file; then
18844     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
18845     cat confcache >$cache_file
18846   else
18847     echo "not updating unwritable cache $cache_file"
18848   fi
18849 fi
18850 rm -f confcache
18851
18852 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18853 # Let make expand exec_prefix.
18854 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18855
18856 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18857 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18858 # trailing colons and then remove the whole line if VPATH becomes empty
18859 # (actually we leave an empty line to preserve line numbers).
18860 if test "x$srcdir" = x.; then
18861   ac_vpsub='/^[         ]*VPATH[        ]*=/{
18862 s/:*\$(srcdir):*/:/;
18863 s/:*\${srcdir}:*/:/;
18864 s/:*@srcdir@:*/:/;
18865 s/^\([^=]*=[    ]*\):*/\1/;
18866 s/:*$//;
18867 s/^[^=]*=[      ]*$//;
18868 }'
18869 fi
18870
18871 DEFS=-DHAVE_CONFIG_H
18872
18873 ac_libobjs=
18874 ac_ltlibobjs=
18875 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18876   # 1. Remove the extension, and $U if already installed.
18877   ac_i=`echo "$ac_i" |
18878          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
18879   # 2. Add them.
18880   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
18881   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
18882 done
18883 LIBOBJS=$ac_libobjs
18884
18885 LTLIBOBJS=$ac_ltlibobjs
18886
18887
18888
18889 : ${CONFIG_STATUS=./config.status}
18890 ac_clean_files_save=$ac_clean_files
18891 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18892 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
18893 echo "$as_me: creating $CONFIG_STATUS" >&6;}
18894 cat >$CONFIG_STATUS <<_ACEOF
18895 #! $SHELL
18896 # Generated by $as_me.
18897 # Run this file to recreate the current configuration.
18898 # Compiler output produced by configure, useful for debugging
18899 # configure, is in config.log if it exists.
18900
18901 debug=false
18902 ac_cs_recheck=false
18903 ac_cs_silent=false
18904 SHELL=\${CONFIG_SHELL-$SHELL}
18905 _ACEOF
18906
18907 cat >>$CONFIG_STATUS <<\_ACEOF
18908 ## --------------------- ##
18909 ## M4sh Initialization.  ##
18910 ## --------------------- ##
18911
18912 # Be Bourne compatible
18913 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18914   emulate sh
18915   NULLCMD=:
18916   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18917   # is contrary to our usage.  Disable this feature.
18918   alias -g '${1+"$@"}'='"$@"'
18919 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
18920   set -o posix
18921 fi
18922
18923 # Support unset when possible.
18924 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
18925   as_unset=unset
18926 else
18927   as_unset=false
18928 fi
18929
18930
18931 # Work around bugs in pre-3.0 UWIN ksh.
18932 $as_unset ENV MAIL MAILPATH
18933 PS1='$ '
18934 PS2='> '
18935 PS4='+ '
18936
18937 # NLS nuisances.
18938 for as_var in \
18939   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
18940   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
18941   LC_TELEPHONE LC_TIME
18942 do
18943   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
18944     eval $as_var=C; export $as_var
18945   else
18946     $as_unset $as_var
18947   fi
18948 done
18949
18950 # Required to use basename.
18951 if expr a : '\(a\)' >/dev/null 2>&1; then
18952   as_expr=expr
18953 else
18954   as_expr=false
18955 fi
18956
18957 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
18958   as_basename=basename
18959 else
18960   as_basename=false
18961 fi
18962
18963
18964 # Name of the executable.
18965 as_me=`$as_basename "$0" ||
18966 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18967          X"$0" : 'X\(//\)$' \| \
18968          X"$0" : 'X\(/\)$' \| \
18969          .     : '\(.\)' 2>/dev/null ||
18970 echo X/"$0" |
18971     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
18972           /^X\/\(\/\/\)$/{ s//\1/; q; }
18973           /^X\/\(\/\).*/{ s//\1/; q; }
18974           s/.*/./; q'`
18975
18976
18977 # PATH needs CR, and LINENO needs CR and PATH.
18978 # Avoid depending upon Character Ranges.
18979 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18980 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18981 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18982 as_cr_digits='0123456789'
18983 as_cr_alnum=$as_cr_Letters$as_cr_digits
18984
18985 # The user is always right.
18986 if test "${PATH_SEPARATOR+set}" != set; then
18987   echo "#! /bin/sh" >conf$$.sh
18988   echo  "exit 0"   >>conf$$.sh
18989   chmod +x conf$$.sh
18990   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
18991     PATH_SEPARATOR=';'
18992   else
18993     PATH_SEPARATOR=:
18994   fi
18995   rm -f conf$$.sh
18996 fi
18997
18998
18999   as_lineno_1=$LINENO
19000   as_lineno_2=$LINENO
19001   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19002   test "x$as_lineno_1" != "x$as_lineno_2" &&
19003   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
19004   # Find who we are.  Look in the path if we contain no path at all
19005   # relative or not.
19006   case $0 in
19007     *[\\/]* ) as_myself=$0 ;;
19008     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19009 for as_dir in $PATH
19010 do
19011   IFS=$as_save_IFS
19012   test -z "$as_dir" && as_dir=.
19013   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19014 done
19015
19016        ;;
19017   esac
19018   # We did not find ourselves, most probably we were run as `sh COMMAND'
19019   # in which case we are not to be found in the path.
19020   if test "x$as_myself" = x; then
19021     as_myself=$0
19022   fi
19023   if test ! -f "$as_myself"; then
19024     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
19025 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
19026    { (exit 1); exit 1; }; }
19027   fi
19028   case $CONFIG_SHELL in
19029   '')
19030     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19031 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
19032 do
19033   IFS=$as_save_IFS
19034   test -z "$as_dir" && as_dir=.
19035   for as_base in sh bash ksh sh5; do
19036          case $as_dir in
19037          /*)
19038            if ("$as_dir/$as_base" -c '
19039   as_lineno_1=$LINENO
19040   as_lineno_2=$LINENO
19041   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19042   test "x$as_lineno_1" != "x$as_lineno_2" &&
19043   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
19044              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
19045              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
19046              CONFIG_SHELL=$as_dir/$as_base
19047              export CONFIG_SHELL
19048              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
19049            fi;;
19050          esac
19051        done
19052 done
19053 ;;
19054   esac
19055
19056   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19057   # uniformly replaced by the line number.  The first 'sed' inserts a
19058   # line-number line before each line; the second 'sed' does the real
19059   # work.  The second script uses 'N' to pair each line-number line
19060   # with the numbered line, and appends trailing '-' during
19061   # substitution so that $LINENO is not a special case at line end.
19062   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
19063   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
19064   sed '=' <$as_myself |
19065     sed '
19066       N
19067       s,$,-,
19068       : loop
19069       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
19070       t loop
19071       s,-$,,
19072       s,^['$as_cr_digits']*\n,,
19073     ' >$as_me.lineno &&
19074   chmod +x $as_me.lineno ||
19075     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
19076 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
19077    { (exit 1); exit 1; }; }
19078
19079   # Don't try to exec as it changes $[0], causing all sort of problems
19080   # (the dirname of $[0] is not the place where we might find the
19081   # original and so on.  Autoconf is especially sensible to this).
19082   . ./$as_me.lineno
19083   # Exit status is that of the last command.
19084   exit
19085 }
19086
19087
19088 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
19089   *c*,-n*) ECHO_N= ECHO_C='
19090 ' ECHO_T='      ' ;;
19091   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
19092   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
19093 esac
19094
19095 if expr a : '\(a\)' >/dev/null 2>&1; then
19096   as_expr=expr
19097 else
19098   as_expr=false
19099 fi
19100
19101 rm -f conf$$ conf$$.exe conf$$.file
19102 echo >conf$$.file
19103 if ln -s conf$$.file conf$$ 2>/dev/null; then
19104   # We could just check for DJGPP; but this test a) works b) is more generic
19105   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
19106   if test -f conf$$.exe; then
19107     # Don't use ln at all; we don't have any links
19108     as_ln_s='cp -p'
19109   else
19110     as_ln_s='ln -s'
19111   fi
19112 elif ln conf$$.file conf$$ 2>/dev/null; then
19113   as_ln_s=ln
19114 else
19115   as_ln_s='cp -p'
19116 fi
19117 rm -f conf$$ conf$$.exe conf$$.file
19118
19119 if mkdir -p . 2>/dev/null; then
19120   as_mkdir_p=:
19121 else
19122   as_mkdir_p=false
19123 fi
19124
19125 as_executable_p="test -f"
19126
19127 # Sed expression to map a string onto a valid CPP name.
19128 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
19129
19130 # Sed expression to map a string onto a valid variable name.
19131 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
19132
19133
19134 # IFS
19135 # We need space, tab and new line, in precisely that order.
19136 as_nl='
19137 '
19138 IFS="   $as_nl"
19139
19140 # CDPATH.
19141 $as_unset CDPATH
19142
19143 exec 6>&1
19144
19145 # Open the log real soon, to keep \$[0] and so on meaningful, and to
19146 # report actual input values of CONFIG_FILES etc. instead of their
19147 # values after options handling.  Logging --version etc. is OK.
19148 exec 5>>config.log
19149 {
19150   echo
19151   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19152 ## Running $as_me. ##
19153 _ASBOX
19154 } >&5
19155 cat >&5 <<_CSEOF
19156
19157 This file was extended by $as_me, which was
19158 generated by GNU Autoconf 2.57.  Invocation command line was
19159
19160   CONFIG_FILES    = $CONFIG_FILES
19161   CONFIG_HEADERS  = $CONFIG_HEADERS
19162   CONFIG_LINKS    = $CONFIG_LINKS
19163   CONFIG_COMMANDS = $CONFIG_COMMANDS
19164   $ $0 $@
19165
19166 _CSEOF
19167 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
19168 echo >&5
19169 _ACEOF
19170
19171 # Files that config.status was made for.
19172 if test -n "$ac_config_files"; then
19173   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
19174 fi
19175
19176 if test -n "$ac_config_headers"; then
19177   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
19178 fi
19179
19180 if test -n "$ac_config_links"; then
19181   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
19182 fi
19183
19184 if test -n "$ac_config_commands"; then
19185   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
19186 fi
19187
19188 cat >>$CONFIG_STATUS <<\_ACEOF
19189
19190 ac_cs_usage="\
19191 \`$as_me' instantiates files from templates according to the
19192 current configuration.
19193
19194 Usage: $0 [OPTIONS] [FILE]...
19195
19196   -h, --help       print this help, then exit
19197   -V, --version    print version number, then exit
19198   -q, --quiet      do not print progress messages
19199   -d, --debug      don't remove temporary files
19200       --recheck    update $as_me by reconfiguring in the same conditions
19201   --file=FILE[:TEMPLATE]
19202                    instantiate the configuration file FILE
19203   --header=FILE[:TEMPLATE]
19204                    instantiate the configuration header FILE
19205
19206 Configuration files:
19207 $config_files
19208
19209 Configuration headers:
19210 $config_headers
19211
19212 Configuration commands:
19213 $config_commands
19214
19215 Report bugs to <bug-autoconf@gnu.org>."
19216 _ACEOF
19217
19218 cat >>$CONFIG_STATUS <<_ACEOF
19219 ac_cs_version="\\
19220 config.status
19221 configured by $0, generated by GNU Autoconf 2.57,
19222   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
19223
19224 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
19225 Free Software Foundation, Inc.
19226 This config.status script is free software; the Free Software Foundation
19227 gives unlimited permission to copy, distribute and modify it."
19228 srcdir=$srcdir
19229 INSTALL="$INSTALL"
19230 _ACEOF
19231
19232 cat >>$CONFIG_STATUS <<\_ACEOF
19233 # If no file are specified by the user, then we need to provide default
19234 # value.  By we need to know if files were specified by the user.
19235 ac_need_defaults=:
19236 while test $# != 0
19237 do
19238   case $1 in
19239   --*=*)
19240     ac_option=`expr "x$1" : 'x\([^=]*\)='`
19241     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
19242     ac_shift=:
19243     ;;
19244   -*)
19245     ac_option=$1
19246     ac_optarg=$2
19247     ac_shift=shift
19248     ;;
19249   *) # This is not an option, so the user has probably given explicit
19250      # arguments.
19251      ac_option=$1
19252      ac_need_defaults=false;;
19253   esac
19254
19255   case $ac_option in
19256   # Handling of the options.
19257 _ACEOF
19258 cat >>$CONFIG_STATUS <<\_ACEOF
19259   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19260     ac_cs_recheck=: ;;
19261   --version | --vers* | -V )
19262     echo "$ac_cs_version"; exit 0 ;;
19263   --he | --h)
19264     # Conflict between --help and --header
19265     { { echo "$as_me:$LINENO: error: ambiguous option: $1
19266 Try \`$0 --help' for more information." >&5
19267 echo "$as_me: error: ambiguous option: $1
19268 Try \`$0 --help' for more information." >&2;}
19269    { (exit 1); exit 1; }; };;
19270   --help | --hel | -h )
19271     echo "$ac_cs_usage"; exit 0 ;;
19272   --debug | --d* | -d )
19273     debug=: ;;
19274   --file | --fil | --fi | --f )
19275     $ac_shift
19276     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
19277     ac_need_defaults=false;;
19278   --header | --heade | --head | --hea )
19279     $ac_shift
19280     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
19281     ac_need_defaults=false;;
19282   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19283   | -silent | --silent | --silen | --sile | --sil | --si | --s)
19284     ac_cs_silent=: ;;
19285
19286   # This is an error.
19287   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
19288 Try \`$0 --help' for more information." >&5
19289 echo "$as_me: error: unrecognized option: $1
19290 Try \`$0 --help' for more information." >&2;}
19291    { (exit 1); exit 1; }; } ;;
19292
19293   *) ac_config_targets="$ac_config_targets $1" ;;
19294
19295   esac
19296   shift
19297 done
19298
19299 ac_configure_extra_args=
19300
19301 if $ac_cs_silent; then
19302   exec 6>/dev/null
19303   ac_configure_extra_args="$ac_configure_extra_args --silent"
19304 fi
19305
19306 _ACEOF
19307 cat >>$CONFIG_STATUS <<_ACEOF
19308 if \$ac_cs_recheck; then
19309   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
19310   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19311 fi
19312
19313 _ACEOF
19314
19315
19316
19317
19318
19319 cat >>$CONFIG_STATUS <<\_ACEOF
19320 for ac_config_target in $ac_config_targets
19321 do
19322   case "$ac_config_target" in
19323   # Handling of arguments.
19324   "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
19325   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19326   "rescue/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/Makefile" ;;
19327   "rescue/linux/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/linux/Makefile" ;;
19328   "rescue/freebsd/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/freebsd/Makefile" ;;
19329   "rescue/solaris/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/solaris/Makefile" ;;
19330   "scripts/startmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
19331   "scripts/stopmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
19332   "scripts/btraceback" ) CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
19333   "scripts/startit" ) CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
19334   "scripts/stopit" ) CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
19335   "scripts/bconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
19336   "scripts/gconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
19337   "scripts/bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
19338   "scripts/devel_bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
19339   "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
19340   "scripts/logrotate" ) CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
19341   "scripts/bacula.desktop.gnome1" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
19342   "scripts/bacula.desktop.gnome2" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
19343   "scripts/bacula.desktop.gnome1.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
19344   "scripts/bacula.desktop.gnome2.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
19345   "scripts/bacula.desktop.gnome1.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
19346   "scripts/bacula.desktop.gnome2.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
19347   "scripts/gnome-console.console_apps" ) CONFIG_FILES="$CONFIG_FILES scripts/gnome-console.console_apps" ;;
19348   "scripts/mtx-changer" ) CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
19349   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
19350   "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
19351   "src/host.h" ) CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
19352   "src/console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
19353   "src/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
19354   "src/gnome-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/Makefile" ;;
19355   "src/gnome-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/gnome-console.conf" ;;
19356   "src/gnome2-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
19357   "src/gnome2-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/gnome-console.conf" ;;
19358   "src/wx-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
19359   "src/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/wx-console.conf" ;;
19360   "src/tray-monitor/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
19361   "src/tray-monitor/tray-monitor.conf" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
19362   "src/dird/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
19363   "src/dird/bacula-dir.conf" ) CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
19364   "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
19365   "src/stored/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
19366   "src/stored/bacula-sd.conf" ) CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
19367   "src/filed/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
19368   "src/filed/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
19369   "src/filed/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/win32/Makefile" ;;
19370   "src/cats/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
19371   "src/cats/make_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
19372   "src/cats/delete_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
19373   "src/cats/create_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
19374   "src/cats/update_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
19375   "src/cats/make_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
19376   "src/cats/grant_postgresql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
19377   "src/cats/drop_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
19378   "src/cats/drop_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
19379   "src/cats/create_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
19380   "src/cats/update_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
19381   "src/cats/make_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
19382   "src/cats/grant_mysql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
19383   "src/cats/drop_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
19384   "src/cats/drop_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
19385   "src/cats/create_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
19386   "src/cats/update_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
19387   "src/cats/make_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
19388   "src/cats/grant_sqlite_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
19389   "src/cats/drop_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
19390   "src/cats/drop_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
19391   "src/cats/sqlite" ) CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
19392   "src/cats/mysql" ) CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
19393   "src/cats/create_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
19394   "src/cats/update_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
19395   "src/cats/make_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
19396   "src/cats/grant_bdb_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
19397   "src/cats/drop_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
19398   "src/cats/drop_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
19399   "src/cats/create_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
19400   "src/cats/update_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
19401   "src/cats/grant_bacula_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
19402   "src/cats/make_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
19403   "src/cats/drop_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
19404   "src/cats/drop_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
19405   "src/findlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
19406   "src/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
19407   "src/win32/winbacula.nsi" ) CONFIG_FILES="$CONFIG_FILES src/win32/winbacula.nsi" ;;
19408   "src/win32/baculafd/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/baculafd/bacula-fd.conf" ;;
19409   "src/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/win32/Makefile" ;;
19410   "src/win32/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/console/bconsole.conf" ;;
19411   "src/win32/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/wx-console/wx-console.conf" ;;
19412   "$PFILES" ) CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
19413   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
19414   "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
19415   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
19416 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
19417    { (exit 1); exit 1; }; };;
19418   esac
19419 done
19420
19421 # If the user did not use the arguments to specify the items to instantiate,
19422 # then the envvar interface is used.  Set only those that are not.
19423 # We use the long form for the default assignment because of an extremely
19424 # bizarre bug on SunOS 4.1.3.
19425 if $ac_need_defaults; then
19426   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19427   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19428   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19429 fi
19430
19431 # Have a temporary directory for convenience.  Make it in the build tree
19432 # simply because there is no reason to put it here, and in addition,
19433 # creating and moving files from /tmp can sometimes cause problems.
19434 # Create a temporary directory, and hook for its removal unless debugging.
19435 $debug ||
19436 {
19437   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
19438   trap '{ (exit 1); exit 1; }' 1 2 13 15
19439 }
19440
19441 # Create a (secure) tmp directory for tmp files.
19442
19443 {
19444   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
19445   test -n "$tmp" && test -d "$tmp"
19446 }  ||
19447 {
19448   tmp=./confstat$$-$RANDOM
19449   (umask 077 && mkdir $tmp)
19450 } ||
19451 {
19452    echo "$me: cannot create a temporary directory in ." >&2
19453    { (exit 1); exit 1; }
19454 }
19455
19456 _ACEOF
19457
19458 cat >>$CONFIG_STATUS <<_ACEOF
19459
19460 #
19461 # CONFIG_FILES section.
19462 #
19463
19464 # No need to generate the scripts if there are no CONFIG_FILES.
19465 # This happens for instance when ./config.status config.h
19466 if test -n "\$CONFIG_FILES"; then
19467   # Protect against being on the right side of a sed subst in config.status.
19468   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
19469    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
19470 s,@SHELL@,$SHELL,;t t
19471 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
19472 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
19473 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
19474 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
19475 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
19476 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
19477 s,@exec_prefix@,$exec_prefix,;t t
19478 s,@prefix@,$prefix,;t t
19479 s,@program_transform_name@,$program_transform_name,;t t
19480 s,@bindir@,$bindir,;t t
19481 s,@sbindir@,$sbindir,;t t
19482 s,@libexecdir@,$libexecdir,;t t
19483 s,@datadir@,$datadir,;t t
19484 s,@sysconfdir@,$sysconfdir,;t t
19485 s,@sharedstatedir@,$sharedstatedir,;t t
19486 s,@localstatedir@,$localstatedir,;t t
19487 s,@libdir@,$libdir,;t t
19488 s,@includedir@,$includedir,;t t
19489 s,@oldincludedir@,$oldincludedir,;t t
19490 s,@infodir@,$infodir,;t t
19491 s,@mandir@,$mandir,;t t
19492 s,@build_alias@,$build_alias,;t t
19493 s,@host_alias@,$host_alias,;t t
19494 s,@target_alias@,$target_alias,;t t
19495 s,@DEFS@,$DEFS,;t t
19496 s,@ECHO_C@,$ECHO_C,;t t
19497 s,@ECHO_N@,$ECHO_N,;t t
19498 s,@ECHO_T@,$ECHO_T,;t t
19499 s,@LIBS@,$LIBS,;t t
19500 s,@BUILD_DIR@,$BUILD_DIR,;t t
19501 s,@TRUEPRG@,$TRUEPRG,;t t
19502 s,@FALSEPRG@,$FALSEPRG,;t t
19503 s,@VERSION@,$VERSION,;t t
19504 s,@DATE@,$DATE,;t t
19505 s,@LSMDATE@,$LSMDATE,;t t
19506 s,@CC@,$CC,;t t
19507 s,@CFLAGS@,$CFLAGS,;t t
19508 s,@LDFLAGS@,$LDFLAGS,;t t
19509 s,@CPPFLAGS@,$CPPFLAGS,;t t
19510 s,@ac_ct_CC@,$ac_ct_CC,;t t
19511 s,@EXEEXT@,$EXEEXT,;t t
19512 s,@OBJEXT@,$OBJEXT,;t t
19513 s,@CXX@,$CXX,;t t
19514 s,@CXXFLAGS@,$CXXFLAGS,;t t
19515 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
19516 s,@CPP@,$CPP,;t t
19517 s,@EGREP@,$EGREP,;t t
19518 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
19519 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
19520 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
19521 s,@RANLIB@,$RANLIB,;t t
19522 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
19523 s,@MV@,$MV,;t t
19524 s,@RM@,$RM,;t t
19525 s,@CP@,$CP,;t t
19526 s,@SED@,$SED,;t t
19527 s,@AWK@,$AWK,;t t
19528 s,@ECHO@,$ECHO,;t t
19529 s,@CMP@,$CMP,;t t
19530 s,@TBL@,$TBL,;t t
19531 s,@AR@,$AR,;t t
19532 s,@OPENSSL@,$OPENSSL,;t t
19533 s,@MTX@,$MTX,;t t
19534 s,@PKGCONFIG@,$PKGCONFIG,;t t
19535 s,@WXCONFIG@,$WXCONFIG,;t t
19536 s,@ARFLAGS@,$ARFLAGS,;t t
19537 s,@MAKE_SHELL@,$MAKE_SHELL,;t t
19538 s,@LOCAL_LIBS@,$LOCAL_LIBS,;t t
19539 s,@LOCAL_CFLAGS@,$LOCAL_CFLAGS,;t t
19540 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
19541 s,@LOCAL_DEFS@,$LOCAL_DEFS,;t t
19542 s,@build@,$build,;t t
19543 s,@build_cpu@,$build_cpu,;t t
19544 s,@build_vendor@,$build_vendor,;t t
19545 s,@build_os@,$build_os,;t t
19546 s,@host@,$host,;t t
19547 s,@host_cpu@,$host_cpu,;t t
19548 s,@host_vendor@,$host_vendor,;t t
19549 s,@host_os@,$host_os,;t t
19550 s,@HAVE_SUN_OS_TRUE@,$HAVE_SUN_OS_TRUE,;t t
19551 s,@HAVE_SUN_OS_FALSE@,$HAVE_SUN_OS_FALSE,;t t
19552 s,@HAVE_OSF1_OS_TRUE@,$HAVE_OSF1_OS_TRUE,;t t
19553 s,@HAVE_OSF1_OS_FALSE@,$HAVE_OSF1_OS_FALSE,;t t
19554 s,@HAVE_AIX_OS_TRUE@,$HAVE_AIX_OS_TRUE,;t t
19555 s,@HAVE_AIX_OS_FALSE@,$HAVE_AIX_OS_FALSE,;t t
19556 s,@HAVE_HPUX_OS_TRUE@,$HAVE_HPUX_OS_TRUE,;t t
19557 s,@HAVE_HPUX_OS_FALSE@,$HAVE_HPUX_OS_FALSE,;t t
19558 s,@HAVE_LINUX_OS_TRUE@,$HAVE_LINUX_OS_TRUE,;t t
19559 s,@HAVE_LINUX_OS_FALSE@,$HAVE_LINUX_OS_FALSE,;t t
19560 s,@HAVE_FREEBSD_OS_TRUE@,$HAVE_FREEBSD_OS_TRUE,;t t
19561 s,@HAVE_FREEBSD_OS_FALSE@,$HAVE_FREEBSD_OS_FALSE,;t t
19562 s,@HAVE_NETBSD_OS_TRUE@,$HAVE_NETBSD_OS_TRUE,;t t
19563 s,@HAVE_NETBSD_OS_FALSE@,$HAVE_NETBSD_OS_FALSE,;t t
19564 s,@HAVE_OPENBSD_OS_TRUE@,$HAVE_OPENBSD_OS_TRUE,;t t
19565 s,@HAVE_OPENBSD_OS_FALSE@,$HAVE_OPENBSD_OS_FALSE,;t t
19566 s,@HAVE_BSDI_OS_TRUE@,$HAVE_BSDI_OS_TRUE,;t t
19567 s,@HAVE_BSDI_OS_FALSE@,$HAVE_BSDI_OS_FALSE,;t t
19568 s,@HAVE_SGI_OS_TRUE@,$HAVE_SGI_OS_TRUE,;t t
19569 s,@HAVE_SGI_OS_FALSE@,$HAVE_SGI_OS_FALSE,;t t
19570 s,@HAVE_IRIX_OS_TRUE@,$HAVE_IRIX_OS_TRUE,;t t
19571 s,@HAVE_IRIX_OS_FALSE@,$HAVE_IRIX_OS_FALSE,;t t
19572 s,@HAVE_DARWIN_OS_TRUE@,$HAVE_DARWIN_OS_TRUE,;t t
19573 s,@HAVE_DARWIN_OS_FALSE@,$HAVE_DARWIN_OS_FALSE,;t t
19574 s,@INSIDE_GNOME_COMMON_TRUE@,$INSIDE_GNOME_COMMON_TRUE,;t t
19575 s,@INSIDE_GNOME_COMMON_FALSE@,$INSIDE_GNOME_COMMON_FALSE,;t t
19576 s,@MSGFMT@,$MSGFMT,;t t
19577 s,@GNOME_INCLUDEDIR@,$GNOME_INCLUDEDIR,;t t
19578 s,@GNOMEUI_LIBS@,$GNOMEUI_LIBS,;t t
19579 s,@GNOME_LIBDIR@,$GNOME_LIBDIR,;t t
19580 s,@GNOME_LIBS@,$GNOME_LIBS,;t t
19581 s,@GNOMEGNORBA_LIBS@,$GNOMEGNORBA_LIBS,;t t
19582 s,@GTKXMHTML_LIBS@,$GTKXMHTML_LIBS,;t t
19583 s,@ZVT_LIBS@,$ZVT_LIBS,;t t
19584 s,@GNOME_CONFIG@,$GNOME_CONFIG,;t t
19585 s,@ORBIT_CONFIG@,$ORBIT_CONFIG,;t t
19586 s,@ORBIT_IDL@,$ORBIT_IDL,;t t
19587 s,@HAVE_ORBIT_TRUE@,$HAVE_ORBIT_TRUE,;t t
19588 s,@HAVE_ORBIT_FALSE@,$HAVE_ORBIT_FALSE,;t t
19589 s,@ORBIT_CFLAGS@,$ORBIT_CFLAGS,;t t
19590 s,@ORBIT_LIBS@,$ORBIT_LIBS,;t t
19591 s,@HAVE_GNORBA_TRUE@,$HAVE_GNORBA_TRUE,;t t
19592 s,@HAVE_GNORBA_FALSE@,$HAVE_GNORBA_FALSE,;t t
19593 s,@GNORBA_CFLAGS@,$GNORBA_CFLAGS,;t t
19594 s,@GNORBA_LIBS@,$GNORBA_LIBS,;t t
19595 s,@GNOME_APPLETS_LIBS@,$GNOME_APPLETS_LIBS,;t t
19596 s,@GNOME_DOCKLETS_LIBS@,$GNOME_DOCKLETS_LIBS,;t t
19597 s,@GNOME_CAPPLET_LIBS@,$GNOME_CAPPLET_LIBS,;t t
19598 s,@GNOME_DIR@,$GNOME_DIR,;t t
19599 s,@WXCONS_CPPFLAGS@,$WXCONS_CPPFLAGS,;t t
19600 s,@WXCONS_LDFLAGS@,$WXCONS_LDFLAGS,;t t
19601 s,@WX_DIR@,$WX_DIR,;t t
19602 s,@TRAY_MONITOR_CPPFLAGS@,$TRAY_MONITOR_CPPFLAGS,;t t
19603 s,@TRAY_MONITOR_LDFLAGS@,$TRAY_MONITOR_LDFLAGS,;t t
19604 s,@TRAY_MONITOR_DIR@,$TRAY_MONITOR_DIR,;t t
19605 s,@TTOOL_LDFLAGS@,$TTOOL_LDFLAGS,;t t
19606 s,@STATIC_FD@,$STATIC_FD,;t t
19607 s,@STATIC_SD@,$STATIC_SD,;t t
19608 s,@STATIC_DIR@,$STATIC_DIR,;t t
19609 s,@STATIC_CONS@,$STATIC_CONS,;t t
19610 s,@STATIC_GNOME_CONS@,$STATIC_GNOME_CONS,;t t
19611 s,@STATIC_WX_CONS@,$STATIC_WX_CONS,;t t
19612 s,@ALL_DIRS@,$ALL_DIRS,;t t
19613 s,@CONS_INC@,$CONS_INC,;t t
19614 s,@CONS_OBJ@,$CONS_OBJ,;t t
19615 s,@CONS_SRC@,$CONS_SRC,;t t
19616 s,@CONS_LIBS@,$CONS_LIBS,;t t
19617 s,@CONS_LDFLAGS@,$CONS_LDFLAGS,;t t
19618 s,@READLINE_SRC@,$READLINE_SRC,;t t
19619 s,@working_dir@,$working_dir,;t t
19620 s,@scriptdir@,$scriptdir,;t t
19621 s,@dump_email@,$dump_email,;t t
19622 s,@job_email@,$job_email,;t t
19623 s,@smtp_host@,$smtp_host,;t t
19624 s,@piddir@,$piddir,;t t
19625 s,@subsysdir@,$subsysdir,;t t
19626 s,@baseport@,$baseport,;t t
19627 s,@dir_port@,$dir_port,;t t
19628 s,@fd_port@,$fd_port,;t t
19629 s,@sd_port@,$sd_port,;t t
19630 s,@dir_password@,$dir_password,;t t
19631 s,@fd_password@,$fd_password,;t t
19632 s,@sd_password@,$sd_password,;t t
19633 s,@dir_user@,$dir_user,;t t
19634 s,@dir_group@,$dir_group,;t t
19635 s,@sd_user@,$sd_user,;t t
19636 s,@sd_group@,$sd_group,;t t
19637 s,@fd_user@,$fd_user,;t t
19638 s,@fd_group@,$fd_group,;t t
19639 s,@SBINPERM@,$SBINPERM,;t t
19640 s,@SQL_LFLAGS@,$SQL_LFLAGS,;t t
19641 s,@SQL_INCLUDE@,$SQL_INCLUDE,;t t
19642 s,@SQL_BINDIR@,$SQL_BINDIR,;t t
19643 s,@cats@,$cats,;t t
19644 s,@DB_NAME@,$DB_NAME,;t t
19645 s,@GETCONF@,$GETCONF,;t t
19646 s,@ac_ct_GETCONF@,$ac_ct_GETCONF,;t t
19647 s,@X_CFLAGS@,$X_CFLAGS,;t t
19648 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
19649 s,@X_LIBS@,$X_LIBS,;t t
19650 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
19651 s,@LIBOBJS@,$LIBOBJS,;t t
19652 s,@ALLOCA@,$ALLOCA,;t t
19653 s,@FDLIBS@,$FDLIBS,;t t
19654 s,@DEBUG@,$DEBUG,;t t
19655 s,@DINCLUDE@,$DINCLUDE,;t t
19656 s,@DLIB@,$DLIB,;t t
19657 s,@DB_LIBS@,$DB_LIBS,;t t
19658 s,@WCFLAGS@,$WCFLAGS,;t t
19659 s,@WLDFLAGS@,$WLDFLAGS,;t t
19660 s,@OBJLIST@,$OBJLIST,;t t
19661 s,@hostname@,$hostname,;t t
19662 s,@TAPEDRIVE@,$TAPEDRIVE,;t t
19663 s,@PSCMD@,$PSCMD,;t t
19664 s,@WIN32@,$WIN32,;t t
19665 s,@MACOSX@,$MACOSX,;t t
19666 s,@DISTNAME@,$DISTNAME,;t t
19667 s,@DISTVER@,$DISTVER,;t t
19668 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
19669 /@MCOMMON@/r $MCOMMON
19670 s,@MCOMMON@,,;t t
19671 CEOF
19672
19673 _ACEOF
19674
19675   cat >>$CONFIG_STATUS <<\_ACEOF
19676   # Split the substitutions into bite-sized pieces for seds with
19677   # small command number limits, like on Digital OSF/1 and HP-UX.
19678   ac_max_sed_lines=48
19679   ac_sed_frag=1 # Number of current file.
19680   ac_beg=1 # First line for current file.
19681   ac_end=$ac_max_sed_lines # Line after last line for current file.
19682   ac_more_lines=:
19683   ac_sed_cmds=
19684   while $ac_more_lines; do
19685     if test $ac_beg -gt 1; then
19686       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19687     else
19688       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19689     fi
19690     if test ! -s $tmp/subs.frag; then
19691       ac_more_lines=false
19692     else
19693       # The purpose of the label and of the branching condition is to
19694       # speed up the sed processing (if there are no `@' at all, there
19695       # is no need to browse any of the substitutions).
19696       # These are the two extra sed commands mentioned above.
19697       (echo ':t
19698   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
19699       if test -z "$ac_sed_cmds"; then
19700         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
19701       else
19702         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
19703       fi
19704       ac_sed_frag=`expr $ac_sed_frag + 1`
19705       ac_beg=$ac_end
19706       ac_end=`expr $ac_end + $ac_max_sed_lines`
19707     fi
19708   done
19709   if test -z "$ac_sed_cmds"; then
19710     ac_sed_cmds=cat
19711   fi
19712 fi # test -n "$CONFIG_FILES"
19713
19714 _ACEOF
19715 cat >>$CONFIG_STATUS <<\_ACEOF
19716 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
19717   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19718   case $ac_file in
19719   - | *:- | *:-:* ) # input from stdin
19720         cat >$tmp/stdin
19721         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19722         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19723   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19724         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19725   * )   ac_file_in=$ac_file.in ;;
19726   esac
19727
19728   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
19729   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
19730 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19731          X"$ac_file" : 'X\(//\)[^/]' \| \
19732          X"$ac_file" : 'X\(//\)$' \| \
19733          X"$ac_file" : 'X\(/\)' \| \
19734          .     : '\(.\)' 2>/dev/null ||
19735 echo X"$ac_file" |
19736     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19737           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19738           /^X\(\/\/\)$/{ s//\1/; q; }
19739           /^X\(\/\).*/{ s//\1/; q; }
19740           s/.*/./; q'`
19741   { if $as_mkdir_p; then
19742     mkdir -p "$ac_dir"
19743   else
19744     as_dir="$ac_dir"
19745     as_dirs=
19746     while test ! -d "$as_dir"; do
19747       as_dirs="$as_dir $as_dirs"
19748       as_dir=`(dirname "$as_dir") 2>/dev/null ||
19749 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19750          X"$as_dir" : 'X\(//\)[^/]' \| \
19751          X"$as_dir" : 'X\(//\)$' \| \
19752          X"$as_dir" : 'X\(/\)' \| \
19753          .     : '\(.\)' 2>/dev/null ||
19754 echo X"$as_dir" |
19755     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19756           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19757           /^X\(\/\/\)$/{ s//\1/; q; }
19758           /^X\(\/\).*/{ s//\1/; q; }
19759           s/.*/./; q'`
19760     done
19761     test ! -n "$as_dirs" || mkdir $as_dirs
19762   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19763 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19764    { (exit 1); exit 1; }; }; }
19765
19766   ac_builddir=.
19767
19768 if test "$ac_dir" != .; then
19769   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19770   # A "../" for each directory in $ac_dir_suffix.
19771   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19772 else
19773   ac_dir_suffix= ac_top_builddir=
19774 fi
19775
19776 case $srcdir in
19777   .)  # No --srcdir option.  We are building in place.
19778     ac_srcdir=.
19779     if test -z "$ac_top_builddir"; then
19780        ac_top_srcdir=.
19781     else
19782        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19783     fi ;;
19784   [\\/]* | ?:[\\/]* )  # Absolute path.
19785     ac_srcdir=$srcdir$ac_dir_suffix;
19786     ac_top_srcdir=$srcdir ;;
19787   *) # Relative path.
19788     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19789     ac_top_srcdir=$ac_top_builddir$srcdir ;;
19790 esac
19791 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
19792 # absolute.
19793 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
19794 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
19795 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
19796 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
19797
19798
19799   case $INSTALL in
19800   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19801   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
19802   esac
19803
19804   if test x"$ac_file" != x-; then
19805     { echo "$as_me:$LINENO: creating $ac_file" >&5
19806 echo "$as_me: creating $ac_file" >&6;}
19807     rm -f "$ac_file"
19808   fi
19809   # Let's still pretend it is `configure' which instantiates (i.e., don't
19810   # use $as_me), people would be surprised to read:
19811   #    /* config.h.  Generated by config.status.  */
19812   if test x"$ac_file" = x-; then
19813     configure_input=
19814   else
19815     configure_input="$ac_file.  "
19816   fi
19817   configure_input=$configure_input"Generated from `echo $ac_file_in |
19818                                      sed 's,.*/,,'` by configure."
19819
19820   # First look for the input files in the build tree, otherwise in the
19821   # src tree.
19822   ac_file_inputs=`IFS=:
19823     for f in $ac_file_in; do
19824       case $f in
19825       -) echo $tmp/stdin ;;
19826       [\\/$]*)
19827          # Absolute (can't be DOS-style, as IFS=:)
19828          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19829 echo "$as_me: error: cannot find input file: $f" >&2;}
19830    { (exit 1); exit 1; }; }
19831          echo $f;;
19832       *) # Relative
19833          if test -f "$f"; then
19834            # Build tree
19835            echo $f
19836          elif test -f "$srcdir/$f"; then
19837            # Source tree
19838            echo $srcdir/$f
19839          else
19840            # /dev/null tree
19841            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19842 echo "$as_me: error: cannot find input file: $f" >&2;}
19843    { (exit 1); exit 1; }; }
19844          fi;;
19845       esac
19846     done` || { (exit 1); exit 1; }
19847 _ACEOF
19848 cat >>$CONFIG_STATUS <<_ACEOF
19849   sed "$ac_vpsub
19850 $extrasub
19851 _ACEOF
19852 cat >>$CONFIG_STATUS <<\_ACEOF
19853 :t
19854 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19855 s,@configure_input@,$configure_input,;t t
19856 s,@srcdir@,$ac_srcdir,;t t
19857 s,@abs_srcdir@,$ac_abs_srcdir,;t t
19858 s,@top_srcdir@,$ac_top_srcdir,;t t
19859 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
19860 s,@builddir@,$ac_builddir,;t t
19861 s,@abs_builddir@,$ac_abs_builddir,;t t
19862 s,@top_builddir@,$ac_top_builddir,;t t
19863 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
19864 s,@INSTALL@,$ac_INSTALL,;t t
19865 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
19866   rm -f $tmp/stdin
19867   if test x"$ac_file" != x-; then
19868     mv $tmp/out $ac_file
19869   else
19870     cat $tmp/out
19871     rm -f $tmp/out
19872   fi
19873
19874 done
19875 _ACEOF
19876 cat >>$CONFIG_STATUS <<\_ACEOF
19877
19878 #
19879 # CONFIG_HEADER section.
19880 #
19881
19882 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
19883 # NAME is the cpp macro being defined and VALUE is the value it is being given.
19884 #
19885 # ac_d sets the value in "#define NAME VALUE" lines.
19886 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
19887 ac_dB='[        ].*$,\1#\2'
19888 ac_dC=' '
19889 ac_dD=',;t'
19890 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
19891 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
19892 ac_uB='$,\1#\2define\3'
19893 ac_uC=' '
19894 ac_uD=',;t'
19895
19896 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
19897   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19898   case $ac_file in
19899   - | *:- | *:-:* ) # input from stdin
19900         cat >$tmp/stdin
19901         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19902         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19903   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19904         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19905   * )   ac_file_in=$ac_file.in ;;
19906   esac
19907
19908   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
19909 echo "$as_me: creating $ac_file" >&6;}
19910
19911   # First look for the input files in the build tree, otherwise in the
19912   # src tree.
19913   ac_file_inputs=`IFS=:
19914     for f in $ac_file_in; do
19915       case $f in
19916       -) echo $tmp/stdin ;;
19917       [\\/$]*)
19918          # Absolute (can't be DOS-style, as IFS=:)
19919          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19920 echo "$as_me: error: cannot find input file: $f" >&2;}
19921    { (exit 1); exit 1; }; }
19922          echo $f;;
19923       *) # Relative
19924          if test -f "$f"; then
19925            # Build tree
19926            echo $f
19927          elif test -f "$srcdir/$f"; then
19928            # Source tree
19929            echo $srcdir/$f
19930          else
19931            # /dev/null tree
19932            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19933 echo "$as_me: error: cannot find input file: $f" >&2;}
19934    { (exit 1); exit 1; }; }
19935          fi;;
19936       esac
19937     done` || { (exit 1); exit 1; }
19938   # Remove the trailing spaces.
19939   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
19940
19941 _ACEOF
19942
19943 # Transform confdefs.h into two sed scripts, `conftest.defines' and
19944 # `conftest.undefs', that substitutes the proper values into
19945 # config.h.in to produce config.h.  The first handles `#define'
19946 # templates, and the second `#undef' templates.
19947 # And first: Protect against being on the right side of a sed subst in
19948 # config.status.  Protect against being in an unquoted here document
19949 # in config.status.
19950 rm -f conftest.defines conftest.undefs
19951 # Using a here document instead of a string reduces the quoting nightmare.
19952 # Putting comments in sed scripts is not portable.
19953 #
19954 # `end' is used to avoid that the second main sed command (meant for
19955 # 0-ary CPP macros) applies to n-ary macro definitions.
19956 # See the Autoconf documentation for `clear'.
19957 cat >confdef2sed.sed <<\_ACEOF
19958 s/[\\&,]/\\&/g
19959 s,[\\$`],\\&,g
19960 t clear
19961 : clear
19962 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
19963 t end
19964 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
19965 : end
19966 _ACEOF
19967 # If some macros were called several times there might be several times
19968 # the same #defines, which is useless.  Nevertheless, we may not want to
19969 # sort them, since we want the *last* AC-DEFINE to be honored.
19970 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
19971 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
19972 rm -f confdef2sed.sed
19973
19974 # This sed command replaces #undef with comments.  This is necessary, for
19975 # example, in the case of _POSIX_SOURCE, which is predefined and required
19976 # on some systems where configure will not decide to define it.
19977 cat >>conftest.undefs <<\_ACEOF
19978 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
19979 _ACEOF
19980
19981 # Break up conftest.defines because some shells have a limit on the size
19982 # of here documents, and old seds have small limits too (100 cmds).
19983 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
19984 echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
19985 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
19986 echo '  :' >>$CONFIG_STATUS
19987 rm -f conftest.tail
19988 while grep . conftest.defines >/dev/null
19989 do
19990   # Write a limited-size here document to $tmp/defines.sed.
19991   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
19992   # Speed up: don't consider the non `#define' lines.
19993   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
19994   # Work around the forget-to-reset-the-flag bug.
19995   echo 't clr' >>$CONFIG_STATUS
19996   echo ': clr' >>$CONFIG_STATUS
19997   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
19998   echo 'CEOF
19999   sed -f $tmp/defines.sed $tmp/in >$tmp/out
20000   rm -f $tmp/in
20001   mv $tmp/out $tmp/in
20002 ' >>$CONFIG_STATUS
20003   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
20004   rm -f conftest.defines
20005   mv conftest.tail conftest.defines
20006 done
20007 rm -f conftest.defines
20008 echo '  fi # grep' >>$CONFIG_STATUS
20009 echo >>$CONFIG_STATUS
20010
20011 # Break up conftest.undefs because some shells have a limit on the size
20012 # of here documents, and old seds have small limits too (100 cmds).
20013 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
20014 rm -f conftest.tail
20015 while grep . conftest.undefs >/dev/null
20016 do
20017   # Write a limited-size here document to $tmp/undefs.sed.
20018   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
20019   # Speed up: don't consider the non `#undef'
20020   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
20021   # Work around the forget-to-reset-the-flag bug.
20022   echo 't clr' >>$CONFIG_STATUS
20023   echo ': clr' >>$CONFIG_STATUS
20024   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
20025   echo 'CEOF
20026   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
20027   rm -f $tmp/in
20028   mv $tmp/out $tmp/in
20029 ' >>$CONFIG_STATUS
20030   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
20031   rm -f conftest.undefs
20032   mv conftest.tail conftest.undefs
20033 done
20034 rm -f conftest.undefs
20035
20036 cat >>$CONFIG_STATUS <<\_ACEOF
20037   # Let's still pretend it is `configure' which instantiates (i.e., don't
20038   # use $as_me), people would be surprised to read:
20039   #    /* config.h.  Generated by config.status.  */
20040   if test x"$ac_file" = x-; then
20041     echo "/* Generated by configure.  */" >$tmp/config.h
20042   else
20043     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
20044   fi
20045   cat $tmp/in >>$tmp/config.h
20046   rm -f $tmp/in
20047   if test x"$ac_file" != x-; then
20048     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
20049       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20050 echo "$as_me: $ac_file is unchanged" >&6;}
20051     else
20052       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20053 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20054          X"$ac_file" : 'X\(//\)[^/]' \| \
20055          X"$ac_file" : 'X\(//\)$' \| \
20056          X"$ac_file" : 'X\(/\)' \| \
20057          .     : '\(.\)' 2>/dev/null ||
20058 echo X"$ac_file" |
20059     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20060           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20061           /^X\(\/\/\)$/{ s//\1/; q; }
20062           /^X\(\/\).*/{ s//\1/; q; }
20063           s/.*/./; q'`
20064       { if $as_mkdir_p; then
20065     mkdir -p "$ac_dir"
20066   else
20067     as_dir="$ac_dir"
20068     as_dirs=
20069     while test ! -d "$as_dir"; do
20070       as_dirs="$as_dir $as_dirs"
20071       as_dir=`(dirname "$as_dir") 2>/dev/null ||
20072 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20073          X"$as_dir" : 'X\(//\)[^/]' \| \
20074          X"$as_dir" : 'X\(//\)$' \| \
20075          X"$as_dir" : 'X\(/\)' \| \
20076          .     : '\(.\)' 2>/dev/null ||
20077 echo X"$as_dir" |
20078     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20079           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20080           /^X\(\/\/\)$/{ s//\1/; q; }
20081           /^X\(\/\).*/{ s//\1/; q; }
20082           s/.*/./; q'`
20083     done
20084     test ! -n "$as_dirs" || mkdir $as_dirs
20085   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20086 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20087    { (exit 1); exit 1; }; }; }
20088
20089       rm -f $ac_file
20090       mv $tmp/config.h $ac_file
20091     fi
20092   else
20093     cat $tmp/config.h
20094     rm -f $tmp/config.h
20095   fi
20096 done
20097 _ACEOF
20098 cat >>$CONFIG_STATUS <<\_ACEOF
20099
20100 #
20101 # CONFIG_COMMANDS section.
20102 #
20103 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
20104   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
20105   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
20106   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
20107 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20108          X"$ac_dest" : 'X\(//\)[^/]' \| \
20109          X"$ac_dest" : 'X\(//\)$' \| \
20110          X"$ac_dest" : 'X\(/\)' \| \
20111          .     : '\(.\)' 2>/dev/null ||
20112 echo X"$ac_dest" |
20113     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20114           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20115           /^X\(\/\/\)$/{ s//\1/; q; }
20116           /^X\(\/\).*/{ s//\1/; q; }
20117           s/.*/./; q'`
20118   ac_builddir=.
20119
20120 if test "$ac_dir" != .; then
20121   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20122   # A "../" for each directory in $ac_dir_suffix.
20123   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20124 else
20125   ac_dir_suffix= ac_top_builddir=
20126 fi
20127
20128 case $srcdir in
20129   .)  # No --srcdir option.  We are building in place.
20130     ac_srcdir=.
20131     if test -z "$ac_top_builddir"; then
20132        ac_top_srcdir=.
20133     else
20134        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20135     fi ;;
20136   [\\/]* | ?:[\\/]* )  # Absolute path.
20137     ac_srcdir=$srcdir$ac_dir_suffix;
20138     ac_top_srcdir=$srcdir ;;
20139   *) # Relative path.
20140     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20141     ac_top_srcdir=$ac_top_builddir$srcdir ;;
20142 esac
20143 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
20144 # absolute.
20145 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
20146 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
20147 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
20148 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
20149
20150
20151   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
20152 echo "$as_me: executing $ac_dest commands" >&6;}
20153   case $ac_dest in
20154     default ) (echo "Doing make of dependencies"; ${MAKE:-make} depend;)
20155  ;;
20156   esac
20157 done
20158 _ACEOF
20159
20160 cat >>$CONFIG_STATUS <<\_ACEOF
20161
20162 { (exit 0); exit 0; }
20163 _ACEOF
20164 chmod +x $CONFIG_STATUS
20165 ac_clean_files=$ac_clean_files_save
20166
20167
20168 # configure is writing to config.log, and then calls config.status.
20169 # config.status does its own redirection, appending to config.log.
20170 # Unfortunately, on DOS this fails, as config.log is still kept open
20171 # by configure, so config.status won't be able to write to it; its
20172 # output is simply discarded.  So we exec the FD to /dev/null,
20173 # effectively closing config.log, so it can be properly (re)opened and
20174 # appended to by config.status.  When coming back to configure, we
20175 # need to make the FD available again.
20176 if test "$no_create" != yes; then
20177   ac_cs_success=:
20178   ac_config_status_args=
20179   test "$silent" = yes &&
20180     ac_config_status_args="$ac_config_status_args --quiet"
20181   exec 5>/dev/null
20182   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20183   exec 5>>config.log
20184   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20185   # would make configure fail if this is the last instruction.
20186   $ac_cs_success || { (exit 1); exit 1; }
20187 fi
20188
20189
20190 cd scripts
20191 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
20192 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
20193 cd ..
20194
20195 c=src/cats
20196
20197 chmod 755 $c/create_bacula_database   $c/update_bacula_tables  $c/make_bacula_tables
20198 chmod 755 $c/grant_bacula_privileges  $c/drop_bacula_tables    $c/drop_bacula_database
20199
20200 chmod 755 $c/create_bdb_database      $c/update_bdb_tables     $c/make_bdb_tables
20201 chmod 755 $c/grant_bdb_privileges     $c/drop_bdb_tables       $c/drop_bdb_database
20202
20203 chmod 755 $c/create_mysql_database    $c/update_mysql_tables   $c/make_mysql_tables
20204 chmod 755 $c/grant_mysql_privileges   $c/drop_mysql_tables     $c/drop_mysql_database
20205
20206 chmod 755 $c/create_sqlite_database   $c/update_sqlite_tables  $c/make_sqlite_tables
20207 chmod 755 $c/grant_sqlite_privileges  $c/drop_sqlite_tables    $c/drop_sqlite_database
20208
20209 chmod 755 $c/create_postgresql_database  $c/update_postgresql_tables $c/make_postgresql_tables
20210 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables   $c/drop_postgresql_database
20211
20212 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
20213 chmod 755 $c/sqlite
20214 chmod 755 $c/mysql
20215
20216 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
20217    largefile_support="yes"
20218 fi
20219
20220 #
20221 # A whole lot of hand springs to get the compiler version.
20222 #  This is because gcc changed the output in version 3.0
20223 #
20224 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
20225 if test "x${CCVERSION}" = "x" ; then
20226   CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
20227 fi
20228 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
20229 if test x"${CXXVERSION}" = x ; then
20230   CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
20231 fi
20232
20233 if test "x${subsysdir}" = "x${sbindir}" ; then
20234    echo " "
20235    echo " "
20236    echo "You have set --sbindir and --with-subsys-dir"
20237    echo "  both equal to: ${subsysdir} "
20238    echo "  This is not permitted. Please reconfigure."
20239    echo " "
20240    echo "Aborting configuration ..."
20241    echo " "
20242    echo " "
20243    exit 1
20244 fi
20245
20246 if test "x${db_name}" = "xInternal" ; then
20247    echo " "
20248    echo " "
20249    echo "You have not specified either --enable-client-only or one of the"
20250    echo "  supported databases: MySQL, PostgreSQL, or SQLite".
20251    echo "  This is not permitted. Please reconfigure."
20252    echo " "
20253    echo "Aborting the configuration ..."
20254    echo " "
20255    echo " "
20256    exit 1
20257 fi
20258
20259 echo "
20260 Configuration on `date`:
20261
20262   Host:                       $host -- ${DISTNAME} ${DISTVER}
20263   Bacula version:             ${VERSION} (${DATE})
20264   Source code location:       ${srcdir}
20265   Install binaries:           ${sbindir}
20266   Install config files:       ${sysconfdir}
20267   Scripts directory:          ${scriptdir}
20268   Working directory:          ${working_dir}
20269   PID directory:              ${piddir}
20270   Subsys directory:           ${subsysdir}
20271   C Compiler:                 ${CC} ${CCVERSION}
20272   C++ Compiler:               ${CXX} ${CXXVERSION}
20273   Compiler flags:             ${WCFLAGS} ${CFLAGS}
20274   Linker flags:               ${WLDFLAGS} ${LDFLAGS}
20275   Libraries:                  ${LIBS}
20276   Statically Linked Tools:    ${support_static_tools}
20277   Statically Linked FD:       ${support_static_fd}
20278   Statically Linked SD:       ${support_static_sd}
20279   Statically Linked DIR:      ${support_static_dir}
20280   Statically Linked CONS:     ${support_static_cons}
20281   Database type:              ${db_name}
20282   Database lib:               ${DB_LIBS}
20283
20284   Job Output Email:           ${job_email}
20285   Traceback Email:            ${dump_email}
20286   SMTP Host Address:          ${smtp_host}
20287
20288   Director Port:              ${dir_port}
20289   File daemon Port:           ${fd_port}
20290   Storage daemon Port:        ${sd_port}
20291
20292   Director User:              ${dir_user}
20293   Director Group:             ${dir_group}
20294   Storage Daemon User:        ${sd_user}
20295   Storage DaemonGroup:        ${sd_group}
20296   File Daemon User:           ${fd_user}
20297   File Daemon Group:          ${fd_group}
20298
20299   SQL binaries Directory      ${SQL_BINDIR}
20300
20301   Large file support:         $largefile_support
20302   Bacula conio support:       ${got_conio} ${CONS_LIBS}
20303   readline support:           ${got_readline} ${PRTREADLINE_SRC}
20304   TCP Wrappers support:       ${TCPW_MSG}
20305   ZLIB support:               ${have_zlib}
20306   enable-smartalloc:          ${support_smartalloc}
20307   enable-gnome:               ${support_gnome} ${gnome_version}
20308   enable-wx-console:          ${support_wx_console}
20309   enable-tray-monitor:        ${support_tray_monitor}
20310   client-only:                ${build_client_only}
20311   ACL support:                ${have_acl}
20312
20313   " > config.out
20314
20315 cat config.out
20316
20317 # old stuff
20318 # cweb support:               ${got_cweb} ${CWEB_SRC}
20319   # gmp support:                      ${got_gmp} ${GMP_SRC}