]> git.sur5r.net Git - bacula/bacula/blob - bacula/configure
Hammer Solaris autoconf incompatibilities
[bacula/bacula] / bacula / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization.  ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14   emulate sh
15   NULLCMD=:
16   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17   # is contrary to our usage.  Disable this feature.
18   alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20   set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/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 -z "`(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   test -d ./-p && rmdir ./-p
222   as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS="   $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249 exec 6>&1
250
251 #
252 # Initializations.
253 #
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
261
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete.  It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
266
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
273
274 ac_unique_file="src/version.h"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
277 #include <stdio.h>
278 #if HAVE_SYS_TYPES_H
279 # include <sys/types.h>
280 #endif
281 #if HAVE_SYS_STAT_H
282 # include <sys/stat.h>
283 #endif
284 #if STDC_HEADERS
285 # include <stdlib.h>
286 # include <stddef.h>
287 #else
288 # if HAVE_STDLIB_H
289 #  include <stdlib.h>
290 # endif
291 #endif
292 #if HAVE_STRING_H
293 # if !STDC_HEADERS && HAVE_MEMORY_H
294 #  include <memory.h>
295 # endif
296 # include <string.h>
297 #endif
298 #if HAVE_STRINGS_H
299 # include <strings.h>
300 #endif
301 #if HAVE_INTTYPES_H
302 # include <inttypes.h>
303 #else
304 # if HAVE_STDINT_H
305 #  include <stdint.h>
306 # endif
307 #endif
308 #if HAVE_UNISTD_H
309 # include <unistd.h>
310 #endif"
311
312 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 ECHO CMP TBL AR OPENSSL MTX MKISOFS PYTHON GROWISOFS DVDRWMEDIAINFO PKGCONFIG WXCONFIG CDRECORD PIDOF AWK 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 PYTHON_LIBS PYTHON_INCDIR CDSTL working_dir scriptdir dump_email job_email smtp_host piddir subsysdir baseport dir_port fd_port sd_port dir_password fd_password sd_password mon_dir_password mon_fd_password mon_sd_password bimagemgr_cgidir bimagemgr_docdir bimagemgr_binowner bimagemgr_bingroup bimagemgr_dataowner bimagemgr_datagroup 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'
313 ac_subst_files='MCOMMON'
314
315 # Initialize some variables set by options.
316 ac_init_help=
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
320 cache_file=/dev/null
321 exec_prefix=NONE
322 no_create=
323 no_recursion=
324 prefix=NONE
325 program_prefix=NONE
326 program_suffix=NONE
327 program_transform_name=s,x,x,
328 silent=
329 site=
330 srcdir=
331 verbose=
332 x_includes=NONE
333 x_libraries=NONE
334
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
352
353 ac_prev=
354 for ac_option
355 do
356   # If the previous option needs an argument, assign it.
357   if test -n "$ac_prev"; then
358     eval "$ac_prev=\$ac_option"
359     ac_prev=
360     continue
361   fi
362
363   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364
365   # Accept the important Cygnus configure options, so we can diagnose typos.
366
367   case $ac_option in
368
369   -bindir | --bindir | --bindi | --bind | --bin | --bi)
370     ac_prev=bindir ;;
371   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372     bindir=$ac_optarg ;;
373
374   -build | --build | --buil | --bui | --bu)
375     ac_prev=build_alias ;;
376   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377     build_alias=$ac_optarg ;;
378
379   -cache-file | --cache-file | --cache-fil | --cache-fi \
380   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381     ac_prev=cache_file ;;
382   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384     cache_file=$ac_optarg ;;
385
386   --config-cache | -C)
387     cache_file=config.cache ;;
388
389   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390     ac_prev=datadir ;;
391   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392   | --da=*)
393     datadir=$ac_optarg ;;
394
395   -disable-* | --disable-*)
396     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397     # Reject names that are not valid shell variable names.
398     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400    { (exit 1); exit 1; }; }
401     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402     eval "enable_$ac_feature=no" ;;
403
404   -enable-* | --enable-*)
405     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406     # Reject names that are not valid shell variable names.
407     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409    { (exit 1); exit 1; }; }
410     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411     case $ac_option in
412       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413       *) ac_optarg=yes ;;
414     esac
415     eval "enable_$ac_feature='$ac_optarg'" ;;
416
417   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419   | --exec | --exe | --ex)
420     ac_prev=exec_prefix ;;
421   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423   | --exec=* | --exe=* | --ex=*)
424     exec_prefix=$ac_optarg ;;
425
426   -gas | --gas | --ga | --g)
427     # Obsolete; use --with-gas.
428     with_gas=yes ;;
429
430   -help | --help | --hel | --he | -h)
431     ac_init_help=long ;;
432   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433     ac_init_help=recursive ;;
434   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435     ac_init_help=short ;;
436
437   -host | --host | --hos | --ho)
438     ac_prev=host_alias ;;
439   -host=* | --host=* | --hos=* | --ho=*)
440     host_alias=$ac_optarg ;;
441
442   -includedir | --includedir | --includedi | --included | --include \
443   | --includ | --inclu | --incl | --inc)
444     ac_prev=includedir ;;
445   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446   | --includ=* | --inclu=* | --incl=* | --inc=*)
447     includedir=$ac_optarg ;;
448
449   -infodir | --infodir | --infodi | --infod | --info | --inf)
450     ac_prev=infodir ;;
451   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452     infodir=$ac_optarg ;;
453
454   -libdir | --libdir | --libdi | --libd)
455     ac_prev=libdir ;;
456   -libdir=* | --libdir=* | --libdi=* | --libd=*)
457     libdir=$ac_optarg ;;
458
459   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460   | --libexe | --libex | --libe)
461     ac_prev=libexecdir ;;
462   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463   | --libexe=* | --libex=* | --libe=*)
464     libexecdir=$ac_optarg ;;
465
466   -localstatedir | --localstatedir | --localstatedi | --localstated \
467   | --localstate | --localstat | --localsta | --localst \
468   | --locals | --local | --loca | --loc | --lo)
469     ac_prev=localstatedir ;;
470   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473     localstatedir=$ac_optarg ;;
474
475   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476     ac_prev=mandir ;;
477   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478     mandir=$ac_optarg ;;
479
480   -nfp | --nfp | --nf)
481     # Obsolete; use --without-fp.
482     with_fp=no ;;
483
484   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485   | --no-cr | --no-c | -n)
486     no_create=yes ;;
487
488   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490     no_recursion=yes ;;
491
492   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494   | --oldin | --oldi | --old | --ol | --o)
495     ac_prev=oldincludedir ;;
496   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499     oldincludedir=$ac_optarg ;;
500
501   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502     ac_prev=prefix ;;
503   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504     prefix=$ac_optarg ;;
505
506   -program-prefix | --program-prefix | --program-prefi | --program-pref \
507   | --program-pre | --program-pr | --program-p)
508     ac_prev=program_prefix ;;
509   -program-prefix=* | --program-prefix=* | --program-prefi=* \
510   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511     program_prefix=$ac_optarg ;;
512
513   -program-suffix | --program-suffix | --program-suffi | --program-suff \
514   | --program-suf | --program-su | --program-s)
515     ac_prev=program_suffix ;;
516   -program-suffix=* | --program-suffix=* | --program-suffi=* \
517   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518     program_suffix=$ac_optarg ;;
519
520   -program-transform-name | --program-transform-name \
521   | --program-transform-nam | --program-transform-na \
522   | --program-transform-n | --program-transform- \
523   | --program-transform | --program-transfor \
524   | --program-transfo | --program-transf \
525   | --program-trans | --program-tran \
526   | --progr-tra | --program-tr | --program-t)
527     ac_prev=program_transform_name ;;
528   -program-transform-name=* | --program-transform-name=* \
529   | --program-transform-nam=* | --program-transform-na=* \
530   | --program-transform-n=* | --program-transform-=* \
531   | --program-transform=* | --program-transfor=* \
532   | --program-transfo=* | --program-transf=* \
533   | --program-trans=* | --program-tran=* \
534   | --progr-tra=* | --program-tr=* | --program-t=*)
535     program_transform_name=$ac_optarg ;;
536
537   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538   | -silent | --silent | --silen | --sile | --sil)
539     silent=yes ;;
540
541   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542     ac_prev=sbindir ;;
543   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544   | --sbi=* | --sb=*)
545     sbindir=$ac_optarg ;;
546
547   -sharedstatedir | --sharedstatedir | --sharedstatedi \
548   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549   | --sharedst | --shareds | --shared | --share | --shar \
550   | --sha | --sh)
551     ac_prev=sharedstatedir ;;
552   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555   | --sha=* | --sh=*)
556     sharedstatedir=$ac_optarg ;;
557
558   -site | --site | --sit)
559     ac_prev=site ;;
560   -site=* | --site=* | --sit=*)
561     site=$ac_optarg ;;
562
563   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564     ac_prev=srcdir ;;
565   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566     srcdir=$ac_optarg ;;
567
568   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569   | --syscon | --sysco | --sysc | --sys | --sy)
570     ac_prev=sysconfdir ;;
571   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573     sysconfdir=$ac_optarg ;;
574
575   -target | --target | --targe | --targ | --tar | --ta | --t)
576     ac_prev=target_alias ;;
577   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578     target_alias=$ac_optarg ;;
579
580   -v | -verbose | --verbose | --verbos | --verbo | --verb)
581     verbose=yes ;;
582
583   -version | --version | --versio | --versi | --vers | -V)
584     ac_init_version=: ;;
585
586   -with-* | --with-*)
587     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588     # Reject names that are not valid shell variable names.
589     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590       { echo "$as_me: error: invalid package name: $ac_package" >&2
591    { (exit 1); exit 1; }; }
592     ac_package=`echo $ac_package| sed 's/-/_/g'`
593     case $ac_option in
594       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595       *) ac_optarg=yes ;;
596     esac
597     eval "with_$ac_package='$ac_optarg'" ;;
598
599   -without-* | --without-*)
600     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601     # Reject names that are not valid shell variable names.
602     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603       { echo "$as_me: error: invalid package name: $ac_package" >&2
604    { (exit 1); exit 1; }; }
605     ac_package=`echo $ac_package | sed 's/-/_/g'`
606     eval "with_$ac_package=no" ;;
607
608   --x)
609     # Obsolete; use --with-x.
610     with_x=yes ;;
611
612   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613   | --x-incl | --x-inc | --x-in | --x-i)
614     ac_prev=x_includes ;;
615   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617     x_includes=$ac_optarg ;;
618
619   -x-libraries | --x-libraries | --x-librarie | --x-librari \
620   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621     ac_prev=x_libraries ;;
622   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624     x_libraries=$ac_optarg ;;
625
626   -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628    { (exit 1); exit 1; }; }
629     ;;
630
631   *=*)
632     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633     # Reject names that are not valid shell variable names.
634     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636    { (exit 1); exit 1; }; }
637     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638     eval "$ac_envvar='$ac_optarg'"
639     export $ac_envvar ;;
640
641   *)
642     # FIXME: should be removed in autoconf 3.0.
643     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
647     ;;
648
649   esac
650 done
651
652 if test -n "$ac_prev"; then
653   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654   { echo "$as_me: error: missing argument to $ac_option" >&2
655    { (exit 1); exit 1; }; }
656 fi
657
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
660 do
661   eval ac_val=$`echo $ac_var`
662   case $ac_val in
663     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665    { (exit 1); exit 1; }; };;
666   esac
667 done
668
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671               localstatedir libdir includedir oldincludedir infodir mandir
672 do
673   eval ac_val=$`echo $ac_var`
674   case $ac_val in
675     [\\/$]* | ?:[\\/]* ) ;;
676     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677    { (exit 1); exit 1; }; };;
678   esac
679 done
680
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
684 build=$build_alias
685 host=$host_alias
686 target=$target_alias
687
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690   if test "x$build_alias" = x; then
691     cross_compiling=maybe
692     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693     If a cross compiler is detected then cross compile mode will be used." >&2
694   elif test "x$build_alias" != "x$host_alias"; then
695     cross_compiling=yes
696   fi
697 fi
698
699 ac_tool_prefix=
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
701
702 test "$silent" = yes && exec 6>/dev/null
703
704
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707   ac_srcdir_defaulted=yes
708   # Try the directory containing this script, then its parent.
709   ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711          X"$0" : 'X\(//\)[^/]' \| \
712          X"$0" : 'X\(//\)$' \| \
713          X"$0" : 'X\(/\)' \| \
714          .     : '\(.\)' 2>/dev/null ||
715 echo X"$0" |
716     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718           /^X\(\/\/\)$/{ s//\1/; q; }
719           /^X\(\/\).*/{ s//\1/; q; }
720           s/.*/./; q'`
721   srcdir=$ac_confdir
722   if test ! -r $srcdir/$ac_unique_file; then
723     srcdir=..
724   fi
725 else
726   ac_srcdir_defaulted=no
727 fi
728 if test ! -r $srcdir/$ac_unique_file; then
729   if test "$ac_srcdir_defaulted" = yes; then
730     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731    { (exit 1); exit 1; }; }
732   else
733     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734    { (exit 1); exit 1; }; }
735   fi
736 fi
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739    { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
754 ac_env_CC_value=$CC
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CXX_set=${CXX+set}
770 ac_env_CXX_value=$CXX
771 ac_cv_env_CXX_set=${CXX+set}
772 ac_cv_env_CXX_value=$CXX
773 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
774 ac_env_CXXFLAGS_value=$CXXFLAGS
775 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
776 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
777 ac_env_CPP_set=${CPP+set}
778 ac_env_CPP_value=$CPP
779 ac_cv_env_CPP_set=${CPP+set}
780 ac_cv_env_CPP_value=$CPP
781
782 #
783 # Report the --help message.
784 #
785 if test "$ac_init_help" = "long"; then
786   # Omit some internal or obsolete options to make the list less imposing.
787   # This message is too long to be a string in the A/UX 3.1 sh.
788   cat <<_ACEOF
789 \`configure' configures this package to adapt to many kinds of systems.
790
791 Usage: $0 [OPTION]... [VAR=VALUE]...
792
793 To assign environment variables (e.g., CC, CFLAGS...), specify them as
794 VAR=VALUE.  See below for descriptions of some of the useful variables.
795
796 Defaults for the options are specified in brackets.
797
798 Configuration:
799   -h, --help              display this help and exit
800       --help=short        display options specific to this package
801       --help=recursive    display the short help of all the included packages
802   -V, --version           display version information and exit
803   -q, --quiet, --silent   do not print \`checking...' messages
804       --cache-file=FILE   cache test results in FILE [disabled]
805   -C, --config-cache      alias for \`--cache-file=config.cache'
806   -n, --no-create         do not create output files
807       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
808
809 _ACEOF
810
811   cat <<_ACEOF
812 Installation directories:
813   --prefix=PREFIX         install architecture-independent files in PREFIX
814                           [$ac_default_prefix]
815   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
816                           [PREFIX]
817
818 By default, \`make install' will install all the files in
819 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
820 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
821 for instance \`--prefix=\$HOME'.
822
823 For better control, use the options below.
824
825 Fine tuning of the installation directories:
826   --bindir=DIR           user executables [EPREFIX/bin]
827   --sbindir=DIR          system admin executables [EPREFIX/sbin]
828   --libexecdir=DIR       program executables [EPREFIX/libexec]
829   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
830   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
831   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
832   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
833   --libdir=DIR           object code libraries [EPREFIX/lib]
834   --includedir=DIR       C header files [PREFIX/include]
835   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
836   --infodir=DIR          info documentation [PREFIX/info]
837   --mandir=DIR           man documentation [PREFIX/man]
838 _ACEOF
839
840   cat <<\_ACEOF
841
842 X features:
843   --x-includes=DIR    X include files are in DIR
844   --x-libraries=DIR   X library files are in DIR
845
846 System types:
847   --build=BUILD     configure for building on BUILD [guessed]
848   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
849 _ACEOF
850 fi
851
852 if test -n "$ac_init_help"; then
853
854   cat <<\_ACEOF
855
856 Optional Features:
857   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
858   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
859   --enable-gnome          enable build of gnome-console GUI disabled
860   --enable-wx-console     enable build of wxWidgets console disabled
861   --enable-tray-monitor   enable build of Gnome tray monitor (compatible with KDE) disabled
862   --enable-smartalloc     enable smartalloc debugging support disabled
863   --enable-static-tools   enable static tape tools disabled
864   --enable-static-fd      enable static File daemon disabled
865   --enable-static-sd      enable static Storage daemon disabled
866   --enable-static-dir     enable static Director disabled
867   --enable-static-cons    enable static Console disabled
868   --enable-client-only    build client (File daemon) only disabled
869   --disable-conio            disable conio support enabled
870
871   --disable-readline      disable readline support disable
872
873   --disable-largefile     omit support for large files
874
875 Optional Packages:
876   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
877   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
878   --with-gnome-includes   Specify location of GNOME headers
879   --with-gnome-libs       Specify location of GNOME libs
880   --with-gnome            Specify prefix for GNOME files
881  --with-readline=DIR             specify readline library directory
882
883   --with-python=DIR       Include Python support.  DIR is the Python base
884                           install directory, default is to search through
885                           a number of common places for the Python files.
886   --with-tcp-wrappers=DIR        enable tcpwrappers support
887   --with-working-dir=PATH        specify path of Bacula working directory
888   --with-scriptdir=PATH    specify path of Bacula scripts directory
889   --with-dump-email=EMAIL        dump email address
890   --with-job-email=EMAIL         job output email address
891   --with-smtp-host=HOST          SMTP mail host address
892   --with-pid-dir=PATH            specify location of Bacula pid files
893   --with-subsys-dir=PATH         specify location of Bacula subsys file
894   --with-baseport=PORT           specify base port address for daemons
895   --with-dir-password=PASSWORD   specify Director's password
896   --with-fd-password=PASSWORD    specify Client's password
897   --with-sd-password=PASSWORD    specify Storage daemon's password
898   --with-mon-dir-password=PASSWORD       specify Director's password used by the monitor
899   --with-mon-fd-password=PASSWORD        specify Client's password used by the monitor
900   --with-mon-sd-password=PASSWORD        specify Storage daemon's password used by the monitor
901   --with-bimagemgr-cgidir=DIR   specify bimagemgr cgi-bin dir
902   --with-bimagemgr-docdir=DIR   specify bimagemgr doc root dir
903   --with-bimagemgr-binowner=USER   specify bimagemgr binary file owner
904   --with-bimagemgr-bingroup=USER   specify bimagemgr binary file group
905   --with-bimagemgr-dataowner=USER       specify bimagemgr data file owner
906   --with-bimagemgr-datagroup=USER       specify bimagemgr data file group
907   --with-dir-user=USER           specify user for Director daemon
908   --with-dir-group=GROUP                 specify group for Director daemon
909   --with-sd-user=USER            specify user for Storage daemon
910   --with-sd-group=GROUP          specify group for Storage daemon
911   --with-fd-user=USER            specify user for File daemon
912   --with-fd-group=GROUP          specify group for File daemon
913   --with-sbin-perm=MODE          specify permissions for sbin binaries (0754)
914   --with-postgresql=DIR      Include PostgreSQL support.  DIR is the PostgreSQL
915                           base install directory, defaults to /usr/local/pgsql
916
917   --with-mysql=DIR      Include MySQL support.  DIR is the MySQL base
918                           install directory, default is to search through
919                           a number of common places for the MySQL files.
920
921   --with-embedded-mysql=DIR Include MySQL support.  DIR is the MySQL base
922                           install directory, default is to search through
923                           a number of common places for the MySQL files.
924
925   --with-sqlite3=DIR    Include SQLite3 support.  DIR is the SQLite3 base
926                           install directory, default is to search through
927                           a number of common places for the SQLite3 files.
928
929   --with-sqlite=DIR     Include SQLite support.  DIR is the SQLite base
930                           install directory, default is to search through
931                           a number of common places for the SQLite files.
932   --with-x                use the X Window System
933
934 Some influential environment variables:
935   CC          C compiler command
936   CFLAGS      C compiler flags
937   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
938               nonstandard directory <lib dir>
939   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
940               headers in a nonstandard directory <include dir>
941   CXX         C++ compiler command
942   CXXFLAGS    C++ compiler flags
943   CPP         C preprocessor
944
945 Use these variables to override the choices made by `configure' or to help
946 it to find libraries and programs with nonstandard names/locations.
947
948 _ACEOF
949 fi
950
951 if test "$ac_init_help" = "recursive"; then
952   # If there are subdirs, report their specific --help.
953   ac_popdir=`pwd`
954   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
955     test -d $ac_dir || continue
956     ac_builddir=.
957
958 if test "$ac_dir" != .; then
959   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
960   # A "../" for each directory in $ac_dir_suffix.
961   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
962 else
963   ac_dir_suffix= ac_top_builddir=
964 fi
965
966 case $srcdir in
967   .)  # No --srcdir option.  We are building in place.
968     ac_srcdir=.
969     if test -z "$ac_top_builddir"; then
970        ac_top_srcdir=.
971     else
972        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
973     fi ;;
974   [\\/]* | ?:[\\/]* )  # Absolute path.
975     ac_srcdir=$srcdir$ac_dir_suffix;
976     ac_top_srcdir=$srcdir ;;
977   *) # Relative path.
978     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
979     ac_top_srcdir=$ac_top_builddir$srcdir ;;
980 esac
981
982 # Do not use `cd foo && pwd` to compute absolute paths, because
983 # the directories may not exist.
984 case `pwd` in
985 .) ac_abs_builddir="$ac_dir";;
986 *)
987   case "$ac_dir" in
988   .) ac_abs_builddir=`pwd`;;
989   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
990   *) ac_abs_builddir=`pwd`/"$ac_dir";;
991   esac;;
992 esac
993 case $ac_abs_builddir in
994 .) ac_abs_top_builddir=${ac_top_builddir}.;;
995 *)
996   case ${ac_top_builddir}. in
997   .) ac_abs_top_builddir=$ac_abs_builddir;;
998   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
999   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1000   esac;;
1001 esac
1002 case $ac_abs_builddir in
1003 .) ac_abs_srcdir=$ac_srcdir;;
1004 *)
1005   case $ac_srcdir in
1006   .) ac_abs_srcdir=$ac_abs_builddir;;
1007   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1008   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1009   esac;;
1010 esac
1011 case $ac_abs_builddir in
1012 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1013 *)
1014   case $ac_top_srcdir in
1015   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1016   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1017   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1018   esac;;
1019 esac
1020
1021     cd $ac_dir
1022     # Check for guested configure; otherwise get Cygnus style configure.
1023     if test -f $ac_srcdir/configure.gnu; then
1024       echo
1025       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1026     elif test -f $ac_srcdir/configure; then
1027       echo
1028       $SHELL $ac_srcdir/configure  --help=recursive
1029     elif test -f $ac_srcdir/configure.ac ||
1030            test -f $ac_srcdir/configure.in; then
1031       echo
1032       $ac_configure --help
1033     else
1034       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1035     fi
1036     cd $ac_popdir
1037   done
1038 fi
1039
1040 test -n "$ac_init_help" && exit 0
1041 if $ac_init_version; then
1042   cat <<\_ACEOF
1043
1044 Copyright (C) 2003 Free Software Foundation, Inc.
1045 This configure script is free software; the Free Software Foundation
1046 gives unlimited permission to copy, distribute and modify it.
1047 _ACEOF
1048   exit 0
1049 fi
1050 exec 5>config.log
1051 cat >&5 <<_ACEOF
1052 This file contains any messages produced by compilers while
1053 running configure, to aid debugging if configure makes a mistake.
1054
1055 It was created by $as_me, which was
1056 generated by GNU Autoconf 2.59.  Invocation command line was
1057
1058   $ $0 $@
1059
1060 _ACEOF
1061 {
1062 cat <<_ASUNAME
1063 ## --------- ##
1064 ## Platform. ##
1065 ## --------- ##
1066
1067 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1068 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1069 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1070 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1071 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1072
1073 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1074 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1075
1076 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1077 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1078 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1079 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1080 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1081 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1082 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1083
1084 _ASUNAME
1085
1086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1087 for as_dir in $PATH
1088 do
1089   IFS=$as_save_IFS
1090   test -z "$as_dir" && as_dir=.
1091   echo "PATH: $as_dir"
1092 done
1093
1094 } >&5
1095
1096 cat >&5 <<_ACEOF
1097
1098
1099 ## ----------- ##
1100 ## Core tests. ##
1101 ## ----------- ##
1102
1103 _ACEOF
1104
1105
1106 # Keep a trace of the command line.
1107 # Strip out --no-create and --no-recursion so they do not pile up.
1108 # Strip out --silent because we don't want to record it for future runs.
1109 # Also quote any args containing shell meta-characters.
1110 # Make two passes to allow for proper duplicate-argument suppression.
1111 ac_configure_args=
1112 ac_configure_args0=
1113 ac_configure_args1=
1114 ac_sep=
1115 ac_must_keep_next=false
1116 for ac_pass in 1 2
1117 do
1118   for ac_arg
1119   do
1120     case $ac_arg in
1121     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1122     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1123     | -silent | --silent | --silen | --sile | --sil)
1124       continue ;;
1125     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1126       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1127     esac
1128     case $ac_pass in
1129     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1130     2)
1131       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1132       if test $ac_must_keep_next = true; then
1133         ac_must_keep_next=false # Got value, back to normal.
1134       else
1135         case $ac_arg in
1136           *=* | --config-cache | -C | -disable-* | --disable-* \
1137           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1138           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1139           | -with-* | --with-* | -without-* | --without-* | --x)
1140             case "$ac_configure_args0 " in
1141               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1142             esac
1143             ;;
1144           -* ) ac_must_keep_next=true ;;
1145         esac
1146       fi
1147       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1148       # Get rid of the leading space.
1149       ac_sep=" "
1150       ;;
1151     esac
1152   done
1153 done
1154 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1155 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1156
1157 # When interrupted or exit'd, cleanup temporary files, and complete
1158 # config.log.  We remove comments because anyway the quotes in there
1159 # would cause problems or look ugly.
1160 # WARNING: Be sure not to use single quotes in there, as some shells,
1161 # such as our DU 5.0 friend, will then `close' the trap.
1162 trap 'exit_status=$?
1163   # Save into config.log some information that might help in debugging.
1164   {
1165     echo
1166
1167     cat <<\_ASBOX
1168 ## ---------------- ##
1169 ## Cache variables. ##
1170 ## ---------------- ##
1171 _ASBOX
1172     echo
1173     # The following way of writing the cache mishandles newlines in values,
1174 {
1175   (set) 2>&1 |
1176     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1177     *ac_space=\ *)
1178       sed -n \
1179         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1180           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1181       ;;
1182     *)
1183       sed -n \
1184         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1185       ;;
1186     esac;
1187 }
1188     echo
1189
1190     cat <<\_ASBOX
1191 ## ----------------- ##
1192 ## Output variables. ##
1193 ## ----------------- ##
1194 _ASBOX
1195     echo
1196     for ac_var in $ac_subst_vars
1197     do
1198       eval ac_val=$`echo $ac_var`
1199       echo "$ac_var='"'"'$ac_val'"'"'"
1200     done | sort
1201     echo
1202
1203     if test -n "$ac_subst_files"; then
1204       cat <<\_ASBOX
1205 ## ------------- ##
1206 ## Output files. ##
1207 ## ------------- ##
1208 _ASBOX
1209       echo
1210       for ac_var in $ac_subst_files
1211       do
1212         eval ac_val=$`echo $ac_var`
1213         echo "$ac_var='"'"'$ac_val'"'"'"
1214       done | sort
1215       echo
1216     fi
1217
1218     if test -s confdefs.h; then
1219       cat <<\_ASBOX
1220 ## ----------- ##
1221 ## confdefs.h. ##
1222 ## ----------- ##
1223 _ASBOX
1224       echo
1225       sed "/^$/d" confdefs.h | sort
1226       echo
1227     fi
1228     test "$ac_signal" != 0 &&
1229       echo "$as_me: caught signal $ac_signal"
1230     echo "$as_me: exit $exit_status"
1231   } >&5
1232   rm -f core *.core &&
1233   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1234     exit $exit_status
1235      ' 0
1236 for ac_signal in 1 2 13 15; do
1237   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1238 done
1239 ac_signal=0
1240
1241 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1242 rm -rf conftest* confdefs.h
1243 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1244 echo >confdefs.h
1245
1246 # Predefined preprocessor variables.
1247
1248 cat >>confdefs.h <<_ACEOF
1249 #define PACKAGE_NAME "$PACKAGE_NAME"
1250 _ACEOF
1251
1252
1253 cat >>confdefs.h <<_ACEOF
1254 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1255 _ACEOF
1256
1257
1258 cat >>confdefs.h <<_ACEOF
1259 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1260 _ACEOF
1261
1262
1263 cat >>confdefs.h <<_ACEOF
1264 #define PACKAGE_STRING "$PACKAGE_STRING"
1265 _ACEOF
1266
1267
1268 cat >>confdefs.h <<_ACEOF
1269 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1270 _ACEOF
1271
1272
1273 # Let the site file select an alternate cache file if it wants to.
1274 # Prefer explicitly selected file to automatically selected ones.
1275 if test -z "$CONFIG_SITE"; then
1276   if test "x$prefix" != xNONE; then
1277     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1278   else
1279     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1280   fi
1281 fi
1282 for ac_site_file in $CONFIG_SITE; do
1283   if test -r "$ac_site_file"; then
1284     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1285 echo "$as_me: loading site script $ac_site_file" >&6;}
1286     sed 's/^/| /' "$ac_site_file" >&5
1287     . "$ac_site_file"
1288   fi
1289 done
1290
1291 if test -r "$cache_file"; then
1292   # Some versions of bash will fail to source /dev/null (special
1293   # files actually), so we avoid doing that.
1294   if test -f "$cache_file"; then
1295     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1296 echo "$as_me: loading cache $cache_file" >&6;}
1297     case $cache_file in
1298       [\\/]* | ?:[\\/]* ) . $cache_file;;
1299       *)                      . ./$cache_file;;
1300     esac
1301   fi
1302 else
1303   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1304 echo "$as_me: creating cache $cache_file" >&6;}
1305   >$cache_file
1306 fi
1307
1308 # Check that the precious variables saved in the cache have kept the same
1309 # value.
1310 ac_cache_corrupted=false
1311 for ac_var in `(set) 2>&1 |
1312                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1313   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1314   eval ac_new_set=\$ac_env_${ac_var}_set
1315   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1316   eval ac_new_val="\$ac_env_${ac_var}_value"
1317   case $ac_old_set,$ac_new_set in
1318     set,)
1319       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1320 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1321       ac_cache_corrupted=: ;;
1322     ,set)
1323       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1324 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1325       ac_cache_corrupted=: ;;
1326     ,);;
1327     *)
1328       if test "x$ac_old_val" != "x$ac_new_val"; then
1329         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1330 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1331         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1332 echo "$as_me:   former value:  $ac_old_val" >&2;}
1333         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1334 echo "$as_me:   current value: $ac_new_val" >&2;}
1335         ac_cache_corrupted=:
1336       fi;;
1337   esac
1338   # Pass precious variables to config.status.
1339   if test "$ac_new_set" = set; then
1340     case $ac_new_val in
1341     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1342       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1343     *) ac_arg=$ac_var=$ac_new_val ;;
1344     esac
1345     case " $ac_configure_args " in
1346       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1347       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1348     esac
1349   fi
1350 done
1351 if $ac_cache_corrupted; then
1352   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1353 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1354   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1355 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1356    { (exit 1); exit 1; }; }
1357 fi
1358
1359 ac_ext=c
1360 ac_cpp='$CPP $CPPFLAGS'
1361 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1362 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1363 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383 BUILD_DIR=`pwd`
1384 cd ..
1385 TOP_DIR=`pwd`
1386 cd ${BUILD_DIR}
1387
1388 ac_aux_dir=
1389 for ac_dir in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf; do
1390   if test -f $ac_dir/install-sh; then
1391     ac_aux_dir=$ac_dir
1392     ac_install_sh="$ac_aux_dir/install-sh -c"
1393     break
1394   elif test -f $ac_dir/install.sh; then
1395     ac_aux_dir=$ac_dir
1396     ac_install_sh="$ac_aux_dir/install.sh -c"
1397     break
1398   elif test -f $ac_dir/shtool; then
1399     ac_aux_dir=$ac_dir
1400     ac_install_sh="$ac_aux_dir/shtool install -c"
1401     break
1402   fi
1403 done
1404 if test -z "$ac_aux_dir"; then
1405   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&5
1406 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&2;}
1407    { (exit 1); exit 1; }; }
1408 fi
1409 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1410 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1411 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1412
1413           ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
1414
1415
1416
1417
1418
1419 for ac_prog in true
1420 do
1421   # Extract the first word of "$ac_prog", so it can be a program name with args.
1422 set dummy $ac_prog; ac_word=$2
1423 echo "$as_me:$LINENO: checking for $ac_word" >&5
1424 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1425 if test "${ac_cv_path_TRUEPRG+set}" = set; then
1426   echo $ECHO_N "(cached) $ECHO_C" >&6
1427 else
1428   case $TRUEPRG in
1429   [\\/]* | ?:[\\/]*)
1430   ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
1431   ;;
1432   *)
1433   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1434 for as_dir in $PATH
1435 do
1436   IFS=$as_save_IFS
1437   test -z "$as_dir" && as_dir=.
1438   for ac_exec_ext in '' $ac_executable_extensions; do
1439   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1440     ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
1441     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1442     break 2
1443   fi
1444 done
1445 done
1446
1447   ;;
1448 esac
1449 fi
1450 TRUEPRG=$ac_cv_path_TRUEPRG
1451
1452 if test -n "$TRUEPRG"; then
1453   echo "$as_me:$LINENO: result: $TRUEPRG" >&5
1454 echo "${ECHO_T}$TRUEPRG" >&6
1455 else
1456   echo "$as_me:$LINENO: result: no" >&5
1457 echo "${ECHO_T}no" >&6
1458 fi
1459
1460   test -n "$TRUEPRG" && break
1461 done
1462 test -n "$TRUEPRG" || TRUEPRG=":"
1463
1464 for ac_prog in false
1465 do
1466   # Extract the first word of "$ac_prog", so it can be a program name with args.
1467 set dummy $ac_prog; ac_word=$2
1468 echo "$as_me:$LINENO: checking for $ac_word" >&5
1469 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1470 if test "${ac_cv_path_FALSEPRG+set}" = set; then
1471   echo $ECHO_N "(cached) $ECHO_C" >&6
1472 else
1473   case $FALSEPRG in
1474   [\\/]* | ?:[\\/]*)
1475   ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
1476   ;;
1477   *)
1478   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1479 for as_dir in $PATH
1480 do
1481   IFS=$as_save_IFS
1482   test -z "$as_dir" && as_dir=.
1483   for ac_exec_ext in '' $ac_executable_extensions; do
1484   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1485     ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
1486     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1487     break 2
1488   fi
1489 done
1490 done
1491
1492   ;;
1493 esac
1494 fi
1495 FALSEPRG=$ac_cv_path_FALSEPRG
1496
1497 if test -n "$FALSEPRG"; then
1498   echo "$as_me:$LINENO: result: $FALSEPRG" >&5
1499 echo "${ECHO_T}$FALSEPRG" >&6
1500 else
1501   echo "$as_me:$LINENO: result: no" >&5
1502 echo "${ECHO_T}no" >&6
1503 fi
1504
1505   test -n "$FALSEPRG" && break
1506 done
1507 test -n "$FALSEPRG" || FALSEPRG=":"
1508
1509
1510 #AC_CANONICAL_HOST
1511
1512 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1513 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1514 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1515 echo "configuring for bacula $VERSION ($DATE)"
1516
1517
1518
1519 ac_ext=c
1520 ac_cpp='$CPP $CPPFLAGS'
1521 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1522 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1523 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1524 if test -n "$ac_tool_prefix"; then
1525   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1526 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1527 echo "$as_me:$LINENO: checking for $ac_word" >&5
1528 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1529 if test "${ac_cv_prog_CC+set}" = set; then
1530   echo $ECHO_N "(cached) $ECHO_C" >&6
1531 else
1532   if test -n "$CC"; then
1533   ac_cv_prog_CC="$CC" # Let the user override the test.
1534 else
1535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1536 for as_dir in $PATH
1537 do
1538   IFS=$as_save_IFS
1539   test -z "$as_dir" && as_dir=.
1540   for ac_exec_ext in '' $ac_executable_extensions; do
1541   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1542     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1543     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1544     break 2
1545   fi
1546 done
1547 done
1548
1549 fi
1550 fi
1551 CC=$ac_cv_prog_CC
1552 if test -n "$CC"; then
1553   echo "$as_me:$LINENO: result: $CC" >&5
1554 echo "${ECHO_T}$CC" >&6
1555 else
1556   echo "$as_me:$LINENO: result: no" >&5
1557 echo "${ECHO_T}no" >&6
1558 fi
1559
1560 fi
1561 if test -z "$ac_cv_prog_CC"; then
1562   ac_ct_CC=$CC
1563   # Extract the first word of "gcc", so it can be a program name with args.
1564 set dummy gcc; ac_word=$2
1565 echo "$as_me:$LINENO: checking for $ac_word" >&5
1566 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1567 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1568   echo $ECHO_N "(cached) $ECHO_C" >&6
1569 else
1570   if test -n "$ac_ct_CC"; then
1571   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1572 else
1573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1574 for as_dir in $PATH
1575 do
1576   IFS=$as_save_IFS
1577   test -z "$as_dir" && as_dir=.
1578   for ac_exec_ext in '' $ac_executable_extensions; do
1579   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1580     ac_cv_prog_ac_ct_CC="gcc"
1581     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1582     break 2
1583   fi
1584 done
1585 done
1586
1587 fi
1588 fi
1589 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1590 if test -n "$ac_ct_CC"; then
1591   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1592 echo "${ECHO_T}$ac_ct_CC" >&6
1593 else
1594   echo "$as_me:$LINENO: result: no" >&5
1595 echo "${ECHO_T}no" >&6
1596 fi
1597
1598   CC=$ac_ct_CC
1599 else
1600   CC="$ac_cv_prog_CC"
1601 fi
1602
1603 if test -z "$CC"; then
1604   if test -n "$ac_tool_prefix"; then
1605   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1606 set dummy ${ac_tool_prefix}cc; ac_word=$2
1607 echo "$as_me:$LINENO: checking for $ac_word" >&5
1608 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1609 if test "${ac_cv_prog_CC+set}" = set; then
1610   echo $ECHO_N "(cached) $ECHO_C" >&6
1611 else
1612   if test -n "$CC"; then
1613   ac_cv_prog_CC="$CC" # Let the user override the test.
1614 else
1615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1616 for as_dir in $PATH
1617 do
1618   IFS=$as_save_IFS
1619   test -z "$as_dir" && as_dir=.
1620   for ac_exec_ext in '' $ac_executable_extensions; do
1621   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1622     ac_cv_prog_CC="${ac_tool_prefix}cc"
1623     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1624     break 2
1625   fi
1626 done
1627 done
1628
1629 fi
1630 fi
1631 CC=$ac_cv_prog_CC
1632 if test -n "$CC"; then
1633   echo "$as_me:$LINENO: result: $CC" >&5
1634 echo "${ECHO_T}$CC" >&6
1635 else
1636   echo "$as_me:$LINENO: result: no" >&5
1637 echo "${ECHO_T}no" >&6
1638 fi
1639
1640 fi
1641 if test -z "$ac_cv_prog_CC"; then
1642   ac_ct_CC=$CC
1643   # Extract the first word of "cc", so it can be a program name with args.
1644 set dummy cc; ac_word=$2
1645 echo "$as_me:$LINENO: checking for $ac_word" >&5
1646 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1647 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1648   echo $ECHO_N "(cached) $ECHO_C" >&6
1649 else
1650   if test -n "$ac_ct_CC"; then
1651   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1652 else
1653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1654 for as_dir in $PATH
1655 do
1656   IFS=$as_save_IFS
1657   test -z "$as_dir" && as_dir=.
1658   for ac_exec_ext in '' $ac_executable_extensions; do
1659   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1660     ac_cv_prog_ac_ct_CC="cc"
1661     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1662     break 2
1663   fi
1664 done
1665 done
1666
1667 fi
1668 fi
1669 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1670 if test -n "$ac_ct_CC"; then
1671   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1672 echo "${ECHO_T}$ac_ct_CC" >&6
1673 else
1674   echo "$as_me:$LINENO: result: no" >&5
1675 echo "${ECHO_T}no" >&6
1676 fi
1677
1678   CC=$ac_ct_CC
1679 else
1680   CC="$ac_cv_prog_CC"
1681 fi
1682
1683 fi
1684 if test -z "$CC"; then
1685   # Extract the first word of "cc", so it can be a program name with args.
1686 set dummy cc; ac_word=$2
1687 echo "$as_me:$LINENO: checking for $ac_word" >&5
1688 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1689 if test "${ac_cv_prog_CC+set}" = set; then
1690   echo $ECHO_N "(cached) $ECHO_C" >&6
1691 else
1692   if test -n "$CC"; then
1693   ac_cv_prog_CC="$CC" # Let the user override the test.
1694 else
1695   ac_prog_rejected=no
1696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1697 for as_dir in $PATH
1698 do
1699   IFS=$as_save_IFS
1700   test -z "$as_dir" && as_dir=.
1701   for ac_exec_ext in '' $ac_executable_extensions; do
1702   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1703     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1704        ac_prog_rejected=yes
1705        continue
1706      fi
1707     ac_cv_prog_CC="cc"
1708     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1709     break 2
1710   fi
1711 done
1712 done
1713
1714 if test $ac_prog_rejected = yes; then
1715   # We found a bogon in the path, so make sure we never use it.
1716   set dummy $ac_cv_prog_CC
1717   shift
1718   if test $# != 0; then
1719     # We chose a different compiler from the bogus one.
1720     # However, it has the same basename, so the bogon will be chosen
1721     # first if we set CC to just the basename; use the full file name.
1722     shift
1723     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1724   fi
1725 fi
1726 fi
1727 fi
1728 CC=$ac_cv_prog_CC
1729 if test -n "$CC"; then
1730   echo "$as_me:$LINENO: result: $CC" >&5
1731 echo "${ECHO_T}$CC" >&6
1732 else
1733   echo "$as_me:$LINENO: result: no" >&5
1734 echo "${ECHO_T}no" >&6
1735 fi
1736
1737 fi
1738 if test -z "$CC"; then
1739   if test -n "$ac_tool_prefix"; then
1740   for ac_prog in cl
1741   do
1742     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1743 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1744 echo "$as_me:$LINENO: checking for $ac_word" >&5
1745 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1746 if test "${ac_cv_prog_CC+set}" = set; then
1747   echo $ECHO_N "(cached) $ECHO_C" >&6
1748 else
1749   if test -n "$CC"; then
1750   ac_cv_prog_CC="$CC" # Let the user override the test.
1751 else
1752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1753 for as_dir in $PATH
1754 do
1755   IFS=$as_save_IFS
1756   test -z "$as_dir" && as_dir=.
1757   for ac_exec_ext in '' $ac_executable_extensions; do
1758   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1759     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1760     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1761     break 2
1762   fi
1763 done
1764 done
1765
1766 fi
1767 fi
1768 CC=$ac_cv_prog_CC
1769 if test -n "$CC"; then
1770   echo "$as_me:$LINENO: result: $CC" >&5
1771 echo "${ECHO_T}$CC" >&6
1772 else
1773   echo "$as_me:$LINENO: result: no" >&5
1774 echo "${ECHO_T}no" >&6
1775 fi
1776
1777     test -n "$CC" && break
1778   done
1779 fi
1780 if test -z "$CC"; then
1781   ac_ct_CC=$CC
1782   for ac_prog in cl
1783 do
1784   # Extract the first word of "$ac_prog", so it can be a program name with args.
1785 set dummy $ac_prog; ac_word=$2
1786 echo "$as_me:$LINENO: checking for $ac_word" >&5
1787 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1788 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1789   echo $ECHO_N "(cached) $ECHO_C" >&6
1790 else
1791   if test -n "$ac_ct_CC"; then
1792   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1793 else
1794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1795 for as_dir in $PATH
1796 do
1797   IFS=$as_save_IFS
1798   test -z "$as_dir" && as_dir=.
1799   for ac_exec_ext in '' $ac_executable_extensions; do
1800   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1801     ac_cv_prog_ac_ct_CC="$ac_prog"
1802     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1803     break 2
1804   fi
1805 done
1806 done
1807
1808 fi
1809 fi
1810 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1811 if test -n "$ac_ct_CC"; then
1812   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1813 echo "${ECHO_T}$ac_ct_CC" >&6
1814 else
1815   echo "$as_me:$LINENO: result: no" >&5
1816 echo "${ECHO_T}no" >&6
1817 fi
1818
1819   test -n "$ac_ct_CC" && break
1820 done
1821
1822   CC=$ac_ct_CC
1823 fi
1824
1825 fi
1826
1827
1828 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1829 See \`config.log' for more details." >&5
1830 echo "$as_me: error: no acceptable C compiler found in \$PATH
1831 See \`config.log' for more details." >&2;}
1832    { (exit 1); exit 1; }; }
1833
1834 # Provide some information about the compiler.
1835 echo "$as_me:$LINENO:" \
1836      "checking for C compiler version" >&5
1837 ac_compiler=`set X $ac_compile; echo $2`
1838 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1839   (eval $ac_compiler --version </dev/null >&5) 2>&5
1840   ac_status=$?
1841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1842   (exit $ac_status); }
1843 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1844   (eval $ac_compiler -v </dev/null >&5) 2>&5
1845   ac_status=$?
1846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1847   (exit $ac_status); }
1848 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1849   (eval $ac_compiler -V </dev/null >&5) 2>&5
1850   ac_status=$?
1851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1852   (exit $ac_status); }
1853
1854 cat >conftest.$ac_ext <<_ACEOF
1855 /* confdefs.h.  */
1856 _ACEOF
1857 cat confdefs.h >>conftest.$ac_ext
1858 cat >>conftest.$ac_ext <<_ACEOF
1859 /* end confdefs.h.  */
1860
1861 int
1862 main ()
1863 {
1864
1865   ;
1866   return 0;
1867 }
1868 _ACEOF
1869 ac_clean_files_save=$ac_clean_files
1870 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1871 # Try to create an executable without -o first, disregard a.out.
1872 # It will help us diagnose broken compilers, and finding out an intuition
1873 # of exeext.
1874 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1875 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1876 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1877 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1878   (eval $ac_link_default) 2>&5
1879   ac_status=$?
1880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1881   (exit $ac_status); }; then
1882   # Find the output, starting from the most likely.  This scheme is
1883 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1884 # resort.
1885
1886 # Be careful to initialize this variable, since it used to be cached.
1887 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1888 ac_cv_exeext=
1889 # b.out is created by i960 compilers.
1890 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1891 do
1892   test -f "$ac_file" || continue
1893   case $ac_file in
1894     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1895         ;;
1896     conftest.$ac_ext )
1897         # This is the source file.
1898         ;;
1899     [ab].out )
1900         # We found the default executable, but exeext='' is most
1901         # certainly right.
1902         break;;
1903     *.* )
1904         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1905         # FIXME: I believe we export ac_cv_exeext for Libtool,
1906         # but it would be cool to find out if it's true.  Does anybody
1907         # maintain Libtool? --akim.
1908         export ac_cv_exeext
1909         break;;
1910     * )
1911         break;;
1912   esac
1913 done
1914 else
1915   echo "$as_me: failed program was:" >&5
1916 sed 's/^/| /' conftest.$ac_ext >&5
1917
1918 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1919 See \`config.log' for more details." >&5
1920 echo "$as_me: error: C compiler cannot create executables
1921 See \`config.log' for more details." >&2;}
1922    { (exit 77); exit 77; }; }
1923 fi
1924
1925 ac_exeext=$ac_cv_exeext
1926 echo "$as_me:$LINENO: result: $ac_file" >&5
1927 echo "${ECHO_T}$ac_file" >&6
1928
1929 # Check the compiler produces executables we can run.  If not, either
1930 # the compiler is broken, or we cross compile.
1931 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1932 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1933 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1934 # If not cross compiling, check that we can run a simple program.
1935 if test "$cross_compiling" != yes; then
1936   if { ac_try='./$ac_file'
1937   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1938   (eval $ac_try) 2>&5
1939   ac_status=$?
1940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1941   (exit $ac_status); }; }; then
1942     cross_compiling=no
1943   else
1944     if test "$cross_compiling" = maybe; then
1945         cross_compiling=yes
1946     else
1947         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1948 If you meant to cross compile, use \`--host'.
1949 See \`config.log' for more details." >&5
1950 echo "$as_me: error: cannot run C compiled programs.
1951 If you meant to cross compile, use \`--host'.
1952 See \`config.log' for more details." >&2;}
1953    { (exit 1); exit 1; }; }
1954     fi
1955   fi
1956 fi
1957 echo "$as_me:$LINENO: result: yes" >&5
1958 echo "${ECHO_T}yes" >&6
1959
1960 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1961 ac_clean_files=$ac_clean_files_save
1962 # Check the compiler produces executables we can run.  If not, either
1963 # the compiler is broken, or we cross compile.
1964 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1965 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1966 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1967 echo "${ECHO_T}$cross_compiling" >&6
1968
1969 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1970 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1971 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1972   (eval $ac_link) 2>&5
1973   ac_status=$?
1974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1975   (exit $ac_status); }; then
1976   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1977 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1978 # work properly (i.e., refer to `conftest.exe'), while it won't with
1979 # `rm'.
1980 for ac_file in conftest.exe conftest conftest.*; do
1981   test -f "$ac_file" || continue
1982   case $ac_file in
1983     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1984     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1985           export ac_cv_exeext
1986           break;;
1987     * ) break;;
1988   esac
1989 done
1990 else
1991   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1992 See \`config.log' for more details." >&5
1993 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1994 See \`config.log' for more details." >&2;}
1995    { (exit 1); exit 1; }; }
1996 fi
1997
1998 rm -f conftest$ac_cv_exeext
1999 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2000 echo "${ECHO_T}$ac_cv_exeext" >&6
2001
2002 rm -f conftest.$ac_ext
2003 EXEEXT=$ac_cv_exeext
2004 ac_exeext=$EXEEXT
2005 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2006 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2007 if test "${ac_cv_objext+set}" = set; then
2008   echo $ECHO_N "(cached) $ECHO_C" >&6
2009 else
2010   cat >conftest.$ac_ext <<_ACEOF
2011 /* confdefs.h.  */
2012 _ACEOF
2013 cat confdefs.h >>conftest.$ac_ext
2014 cat >>conftest.$ac_ext <<_ACEOF
2015 /* end confdefs.h.  */
2016
2017 int
2018 main ()
2019 {
2020
2021   ;
2022   return 0;
2023 }
2024 _ACEOF
2025 rm -f conftest.o conftest.obj
2026 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2027   (eval $ac_compile) 2>&5
2028   ac_status=$?
2029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2030   (exit $ac_status); }; then
2031   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2032   case $ac_file in
2033     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2034     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2035        break;;
2036   esac
2037 done
2038 else
2039   echo "$as_me: failed program was:" >&5
2040 sed 's/^/| /' conftest.$ac_ext >&5
2041
2042 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2043 See \`config.log' for more details." >&5
2044 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2045 See \`config.log' for more details." >&2;}
2046    { (exit 1); exit 1; }; }
2047 fi
2048
2049 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2050 fi
2051 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2052 echo "${ECHO_T}$ac_cv_objext" >&6
2053 OBJEXT=$ac_cv_objext
2054 ac_objext=$OBJEXT
2055 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2056 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2057 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2058   echo $ECHO_N "(cached) $ECHO_C" >&6
2059 else
2060   cat >conftest.$ac_ext <<_ACEOF
2061 /* confdefs.h.  */
2062 _ACEOF
2063 cat confdefs.h >>conftest.$ac_ext
2064 cat >>conftest.$ac_ext <<_ACEOF
2065 /* end confdefs.h.  */
2066
2067 int
2068 main ()
2069 {
2070 #ifndef __GNUC__
2071        choke me
2072 #endif
2073
2074   ;
2075   return 0;
2076 }
2077 _ACEOF
2078 rm -f conftest.$ac_objext
2079 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2080   (eval $ac_compile) 2>conftest.er1
2081   ac_status=$?
2082   grep -v '^ *+' conftest.er1 >conftest.err
2083   rm -f conftest.er1
2084   cat conftest.err >&5
2085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2086   (exit $ac_status); } &&
2087          { ac_try='test -z "$ac_c_werror_flag"
2088                          || test ! -s conftest.err'
2089   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2090   (eval $ac_try) 2>&5
2091   ac_status=$?
2092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2093   (exit $ac_status); }; } &&
2094          { ac_try='test -s conftest.$ac_objext'
2095   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2096   (eval $ac_try) 2>&5
2097   ac_status=$?
2098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2099   (exit $ac_status); }; }; then
2100   ac_compiler_gnu=yes
2101 else
2102   echo "$as_me: failed program was:" >&5
2103 sed 's/^/| /' conftest.$ac_ext >&5
2104
2105 ac_compiler_gnu=no
2106 fi
2107 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2108 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2109
2110 fi
2111 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2112 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2113 GCC=`test $ac_compiler_gnu = yes && echo yes`
2114 ac_test_CFLAGS=${CFLAGS+set}
2115 ac_save_CFLAGS=$CFLAGS
2116 CFLAGS="-g"
2117 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2118 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2119 if test "${ac_cv_prog_cc_g+set}" = set; then
2120   echo $ECHO_N "(cached) $ECHO_C" >&6
2121 else
2122   cat >conftest.$ac_ext <<_ACEOF
2123 /* confdefs.h.  */
2124 _ACEOF
2125 cat confdefs.h >>conftest.$ac_ext
2126 cat >>conftest.$ac_ext <<_ACEOF
2127 /* end confdefs.h.  */
2128
2129 int
2130 main ()
2131 {
2132
2133   ;
2134   return 0;
2135 }
2136 _ACEOF
2137 rm -f conftest.$ac_objext
2138 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2139   (eval $ac_compile) 2>conftest.er1
2140   ac_status=$?
2141   grep -v '^ *+' conftest.er1 >conftest.err
2142   rm -f conftest.er1
2143   cat conftest.err >&5
2144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2145   (exit $ac_status); } &&
2146          { ac_try='test -z "$ac_c_werror_flag"
2147                          || test ! -s conftest.err'
2148   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2149   (eval $ac_try) 2>&5
2150   ac_status=$?
2151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2152   (exit $ac_status); }; } &&
2153          { ac_try='test -s conftest.$ac_objext'
2154   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2155   (eval $ac_try) 2>&5
2156   ac_status=$?
2157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2158   (exit $ac_status); }; }; then
2159   ac_cv_prog_cc_g=yes
2160 else
2161   echo "$as_me: failed program was:" >&5
2162 sed 's/^/| /' conftest.$ac_ext >&5
2163
2164 ac_cv_prog_cc_g=no
2165 fi
2166 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2167 fi
2168 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2169 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2170 if test "$ac_test_CFLAGS" = set; then
2171   CFLAGS=$ac_save_CFLAGS
2172 elif test $ac_cv_prog_cc_g = yes; then
2173   if test "$GCC" = yes; then
2174     CFLAGS="-g -O2"
2175   else
2176     CFLAGS="-g"
2177   fi
2178 else
2179   if test "$GCC" = yes; then
2180     CFLAGS="-O2"
2181   else
2182     CFLAGS=
2183   fi
2184 fi
2185 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2186 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2187 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2188   echo $ECHO_N "(cached) $ECHO_C" >&6
2189 else
2190   ac_cv_prog_cc_stdc=no
2191 ac_save_CC=$CC
2192 cat >conftest.$ac_ext <<_ACEOF
2193 /* confdefs.h.  */
2194 _ACEOF
2195 cat confdefs.h >>conftest.$ac_ext
2196 cat >>conftest.$ac_ext <<_ACEOF
2197 /* end confdefs.h.  */
2198 #include <stdarg.h>
2199 #include <stdio.h>
2200 #include <sys/types.h>
2201 #include <sys/stat.h>
2202 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2203 struct buf { int x; };
2204 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2205 static char *e (p, i)
2206      char **p;
2207      int i;
2208 {
2209   return p[i];
2210 }
2211 static char *f (char * (*g) (char **, int), char **p, ...)
2212 {
2213   char *s;
2214   va_list v;
2215   va_start (v,p);
2216   s = g (p, va_arg (v,int));
2217   va_end (v);
2218   return s;
2219 }
2220
2221 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2222    function prototypes and stuff, but not '\xHH' hex character constants.
2223    These don't provoke an error unfortunately, instead are silently treated
2224    as 'x'.  The following induces an error, until -std1 is added to get
2225    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2226    array size at least.  It's necessary to write '\x00'==0 to get something
2227    that's true only with -std1.  */
2228 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2229
2230 int test (int i, double x);
2231 struct s1 {int (*f) (int a);};
2232 struct s2 {int (*f) (double a);};
2233 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2234 int argc;
2235 char **argv;
2236 int
2237 main ()
2238 {
2239 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2240   ;
2241   return 0;
2242 }
2243 _ACEOF
2244 # Don't try gcc -ansi; that turns off useful extensions and
2245 # breaks some systems' header files.
2246 # AIX                   -qlanglvl=ansi
2247 # Ultrix and OSF/1      -std1
2248 # HP-UX 10.20 and later -Ae
2249 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2250 # SVR4                  -Xc -D__EXTENSIONS__
2251 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2252 do
2253   CC="$ac_save_CC $ac_arg"
2254   rm -f conftest.$ac_objext
2255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2256   (eval $ac_compile) 2>conftest.er1
2257   ac_status=$?
2258   grep -v '^ *+' conftest.er1 >conftest.err
2259   rm -f conftest.er1
2260   cat conftest.err >&5
2261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2262   (exit $ac_status); } &&
2263          { ac_try='test -z "$ac_c_werror_flag"
2264                          || test ! -s conftest.err'
2265   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2266   (eval $ac_try) 2>&5
2267   ac_status=$?
2268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2269   (exit $ac_status); }; } &&
2270          { ac_try='test -s conftest.$ac_objext'
2271   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2272   (eval $ac_try) 2>&5
2273   ac_status=$?
2274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2275   (exit $ac_status); }; }; then
2276   ac_cv_prog_cc_stdc=$ac_arg
2277 break
2278 else
2279   echo "$as_me: failed program was:" >&5
2280 sed 's/^/| /' conftest.$ac_ext >&5
2281
2282 fi
2283 rm -f conftest.err conftest.$ac_objext
2284 done
2285 rm -f conftest.$ac_ext conftest.$ac_objext
2286 CC=$ac_save_CC
2287
2288 fi
2289
2290 case "x$ac_cv_prog_cc_stdc" in
2291   x|xno)
2292     echo "$as_me:$LINENO: result: none needed" >&5
2293 echo "${ECHO_T}none needed" >&6 ;;
2294   *)
2295     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2296 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2297     CC="$CC $ac_cv_prog_cc_stdc" ;;
2298 esac
2299
2300 # Some people use a C++ compiler to compile C.  Since we use `exit',
2301 # in C++ we need to declare it.  In case someone uses the same compiler
2302 # for both compiling C and C++ we need to have the C++ compiler decide
2303 # the declaration of exit, since it's the most demanding environment.
2304 cat >conftest.$ac_ext <<_ACEOF
2305 #ifndef __cplusplus
2306   choke me
2307 #endif
2308 _ACEOF
2309 rm -f conftest.$ac_objext
2310 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2311   (eval $ac_compile) 2>conftest.er1
2312   ac_status=$?
2313   grep -v '^ *+' conftest.er1 >conftest.err
2314   rm -f conftest.er1
2315   cat conftest.err >&5
2316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2317   (exit $ac_status); } &&
2318          { ac_try='test -z "$ac_c_werror_flag"
2319                          || test ! -s conftest.err'
2320   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2321   (eval $ac_try) 2>&5
2322   ac_status=$?
2323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2324   (exit $ac_status); }; } &&
2325          { ac_try='test -s conftest.$ac_objext'
2326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2327   (eval $ac_try) 2>&5
2328   ac_status=$?
2329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2330   (exit $ac_status); }; }; then
2331   for ac_declaration in \
2332    '' \
2333    'extern "C" void std::exit (int) throw (); using std::exit;' \
2334    'extern "C" void std::exit (int); using std::exit;' \
2335    'extern "C" void exit (int) throw ();' \
2336    'extern "C" void exit (int);' \
2337    'void exit (int);'
2338 do
2339   cat >conftest.$ac_ext <<_ACEOF
2340 /* confdefs.h.  */
2341 _ACEOF
2342 cat confdefs.h >>conftest.$ac_ext
2343 cat >>conftest.$ac_ext <<_ACEOF
2344 /* end confdefs.h.  */
2345 $ac_declaration
2346 #include <stdlib.h>
2347 int
2348 main ()
2349 {
2350 exit (42);
2351   ;
2352   return 0;
2353 }
2354 _ACEOF
2355 rm -f conftest.$ac_objext
2356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2357   (eval $ac_compile) 2>conftest.er1
2358   ac_status=$?
2359   grep -v '^ *+' conftest.er1 >conftest.err
2360   rm -f conftest.er1
2361   cat conftest.err >&5
2362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2363   (exit $ac_status); } &&
2364          { ac_try='test -z "$ac_c_werror_flag"
2365                          || test ! -s conftest.err'
2366   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2367   (eval $ac_try) 2>&5
2368   ac_status=$?
2369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2370   (exit $ac_status); }; } &&
2371          { ac_try='test -s conftest.$ac_objext'
2372   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2373   (eval $ac_try) 2>&5
2374   ac_status=$?
2375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2376   (exit $ac_status); }; }; then
2377   :
2378 else
2379   echo "$as_me: failed program was:" >&5
2380 sed 's/^/| /' conftest.$ac_ext >&5
2381
2382 continue
2383 fi
2384 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2385   cat >conftest.$ac_ext <<_ACEOF
2386 /* confdefs.h.  */
2387 _ACEOF
2388 cat confdefs.h >>conftest.$ac_ext
2389 cat >>conftest.$ac_ext <<_ACEOF
2390 /* end confdefs.h.  */
2391 $ac_declaration
2392 int
2393 main ()
2394 {
2395 exit (42);
2396   ;
2397   return 0;
2398 }
2399 _ACEOF
2400 rm -f conftest.$ac_objext
2401 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2402   (eval $ac_compile) 2>conftest.er1
2403   ac_status=$?
2404   grep -v '^ *+' conftest.er1 >conftest.err
2405   rm -f conftest.er1
2406   cat conftest.err >&5
2407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2408   (exit $ac_status); } &&
2409          { ac_try='test -z "$ac_c_werror_flag"
2410                          || test ! -s conftest.err'
2411   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2412   (eval $ac_try) 2>&5
2413   ac_status=$?
2414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2415   (exit $ac_status); }; } &&
2416          { ac_try='test -s conftest.$ac_objext'
2417   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2418   (eval $ac_try) 2>&5
2419   ac_status=$?
2420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2421   (exit $ac_status); }; }; then
2422   break
2423 else
2424   echo "$as_me: failed program was:" >&5
2425 sed 's/^/| /' conftest.$ac_ext >&5
2426
2427 fi
2428 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2429 done
2430 rm -f conftest*
2431 if test -n "$ac_declaration"; then
2432   echo '#ifdef __cplusplus' >>confdefs.h
2433   echo $ac_declaration      >>confdefs.h
2434   echo '#endif'             >>confdefs.h
2435 fi
2436
2437 else
2438   echo "$as_me: failed program was:" >&5
2439 sed 's/^/| /' conftest.$ac_ext >&5
2440
2441 fi
2442 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2443 ac_ext=c
2444 ac_cpp='$CPP $CPPFLAGS'
2445 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2446 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2447 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2448
2449 ac_ext=cc
2450 ac_cpp='$CXXCPP $CPPFLAGS'
2451 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2452 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2453 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2454 if test -n "$ac_tool_prefix"; then
2455   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2456   do
2457     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2458 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2459 echo "$as_me:$LINENO: checking for $ac_word" >&5
2460 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2461 if test "${ac_cv_prog_CXX+set}" = set; then
2462   echo $ECHO_N "(cached) $ECHO_C" >&6
2463 else
2464   if test -n "$CXX"; then
2465   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2466 else
2467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2468 for as_dir in $PATH
2469 do
2470   IFS=$as_save_IFS
2471   test -z "$as_dir" && as_dir=.
2472   for ac_exec_ext in '' $ac_executable_extensions; do
2473   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2474     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2475     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2476     break 2
2477   fi
2478 done
2479 done
2480
2481 fi
2482 fi
2483 CXX=$ac_cv_prog_CXX
2484 if test -n "$CXX"; then
2485   echo "$as_me:$LINENO: result: $CXX" >&5
2486 echo "${ECHO_T}$CXX" >&6
2487 else
2488   echo "$as_me:$LINENO: result: no" >&5
2489 echo "${ECHO_T}no" >&6
2490 fi
2491
2492     test -n "$CXX" && break
2493   done
2494 fi
2495 if test -z "$CXX"; then
2496   ac_ct_CXX=$CXX
2497   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2498 do
2499   # Extract the first word of "$ac_prog", so it can be a program name with args.
2500 set dummy $ac_prog; ac_word=$2
2501 echo "$as_me:$LINENO: checking for $ac_word" >&5
2502 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2503 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2504   echo $ECHO_N "(cached) $ECHO_C" >&6
2505 else
2506   if test -n "$ac_ct_CXX"; then
2507   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2508 else
2509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2510 for as_dir in $PATH
2511 do
2512   IFS=$as_save_IFS
2513   test -z "$as_dir" && as_dir=.
2514   for ac_exec_ext in '' $ac_executable_extensions; do
2515   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2516     ac_cv_prog_ac_ct_CXX="$ac_prog"
2517     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2518     break 2
2519   fi
2520 done
2521 done
2522
2523 fi
2524 fi
2525 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2526 if test -n "$ac_ct_CXX"; then
2527   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2528 echo "${ECHO_T}$ac_ct_CXX" >&6
2529 else
2530   echo "$as_me:$LINENO: result: no" >&5
2531 echo "${ECHO_T}no" >&6
2532 fi
2533
2534   test -n "$ac_ct_CXX" && break
2535 done
2536 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2537
2538   CXX=$ac_ct_CXX
2539 fi
2540
2541
2542 # Provide some information about the compiler.
2543 echo "$as_me:$LINENO:" \
2544      "checking for C++ compiler version" >&5
2545 ac_compiler=`set X $ac_compile; echo $2`
2546 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2547   (eval $ac_compiler --version </dev/null >&5) 2>&5
2548   ac_status=$?
2549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2550   (exit $ac_status); }
2551 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2552   (eval $ac_compiler -v </dev/null >&5) 2>&5
2553   ac_status=$?
2554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2555   (exit $ac_status); }
2556 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2557   (eval $ac_compiler -V </dev/null >&5) 2>&5
2558   ac_status=$?
2559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2560   (exit $ac_status); }
2561
2562 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2563 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2564 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2565   echo $ECHO_N "(cached) $ECHO_C" >&6
2566 else
2567   cat >conftest.$ac_ext <<_ACEOF
2568 /* confdefs.h.  */
2569 _ACEOF
2570 cat confdefs.h >>conftest.$ac_ext
2571 cat >>conftest.$ac_ext <<_ACEOF
2572 /* end confdefs.h.  */
2573
2574 int
2575 main ()
2576 {
2577 #ifndef __GNUC__
2578        choke me
2579 #endif
2580
2581   ;
2582   return 0;
2583 }
2584 _ACEOF
2585 rm -f conftest.$ac_objext
2586 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2587   (eval $ac_compile) 2>conftest.er1
2588   ac_status=$?
2589   grep -v '^ *+' conftest.er1 >conftest.err
2590   rm -f conftest.er1
2591   cat conftest.err >&5
2592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2593   (exit $ac_status); } &&
2594          { ac_try='test -z "$ac_cxx_werror_flag"
2595                          || test ! -s conftest.err'
2596   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2597   (eval $ac_try) 2>&5
2598   ac_status=$?
2599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2600   (exit $ac_status); }; } &&
2601          { ac_try='test -s conftest.$ac_objext'
2602   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2603   (eval $ac_try) 2>&5
2604   ac_status=$?
2605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2606   (exit $ac_status); }; }; then
2607   ac_compiler_gnu=yes
2608 else
2609   echo "$as_me: failed program was:" >&5
2610 sed 's/^/| /' conftest.$ac_ext >&5
2611
2612 ac_compiler_gnu=no
2613 fi
2614 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2615 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2616
2617 fi
2618 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2619 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2620 GXX=`test $ac_compiler_gnu = yes && echo yes`
2621 ac_test_CXXFLAGS=${CXXFLAGS+set}
2622 ac_save_CXXFLAGS=$CXXFLAGS
2623 CXXFLAGS="-g"
2624 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2625 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2626 if test "${ac_cv_prog_cxx_g+set}" = set; then
2627   echo $ECHO_N "(cached) $ECHO_C" >&6
2628 else
2629   cat >conftest.$ac_ext <<_ACEOF
2630 /* confdefs.h.  */
2631 _ACEOF
2632 cat confdefs.h >>conftest.$ac_ext
2633 cat >>conftest.$ac_ext <<_ACEOF
2634 /* end confdefs.h.  */
2635
2636 int
2637 main ()
2638 {
2639
2640   ;
2641   return 0;
2642 }
2643 _ACEOF
2644 rm -f conftest.$ac_objext
2645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2646   (eval $ac_compile) 2>conftest.er1
2647   ac_status=$?
2648   grep -v '^ *+' conftest.er1 >conftest.err
2649   rm -f conftest.er1
2650   cat conftest.err >&5
2651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2652   (exit $ac_status); } &&
2653          { ac_try='test -z "$ac_cxx_werror_flag"
2654                          || test ! -s conftest.err'
2655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2656   (eval $ac_try) 2>&5
2657   ac_status=$?
2658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2659   (exit $ac_status); }; } &&
2660          { ac_try='test -s conftest.$ac_objext'
2661   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2662   (eval $ac_try) 2>&5
2663   ac_status=$?
2664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2665   (exit $ac_status); }; }; then
2666   ac_cv_prog_cxx_g=yes
2667 else
2668   echo "$as_me: failed program was:" >&5
2669 sed 's/^/| /' conftest.$ac_ext >&5
2670
2671 ac_cv_prog_cxx_g=no
2672 fi
2673 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2674 fi
2675 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2676 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2677 if test "$ac_test_CXXFLAGS" = set; then
2678   CXXFLAGS=$ac_save_CXXFLAGS
2679 elif test $ac_cv_prog_cxx_g = yes; then
2680   if test "$GXX" = yes; then
2681     CXXFLAGS="-g -O2"
2682   else
2683     CXXFLAGS="-g"
2684   fi
2685 else
2686   if test "$GXX" = yes; then
2687     CXXFLAGS="-O2"
2688   else
2689     CXXFLAGS=
2690   fi
2691 fi
2692 for ac_declaration in \
2693    '' \
2694    'extern "C" void std::exit (int) throw (); using std::exit;' \
2695    'extern "C" void std::exit (int); using std::exit;' \
2696    'extern "C" void exit (int) throw ();' \
2697    'extern "C" void exit (int);' \
2698    'void exit (int);'
2699 do
2700   cat >conftest.$ac_ext <<_ACEOF
2701 /* confdefs.h.  */
2702 _ACEOF
2703 cat confdefs.h >>conftest.$ac_ext
2704 cat >>conftest.$ac_ext <<_ACEOF
2705 /* end confdefs.h.  */
2706 $ac_declaration
2707 #include <stdlib.h>
2708 int
2709 main ()
2710 {
2711 exit (42);
2712   ;
2713   return 0;
2714 }
2715 _ACEOF
2716 rm -f conftest.$ac_objext
2717 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2718   (eval $ac_compile) 2>conftest.er1
2719   ac_status=$?
2720   grep -v '^ *+' conftest.er1 >conftest.err
2721   rm -f conftest.er1
2722   cat conftest.err >&5
2723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2724   (exit $ac_status); } &&
2725          { ac_try='test -z "$ac_cxx_werror_flag"
2726                          || test ! -s conftest.err'
2727   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2728   (eval $ac_try) 2>&5
2729   ac_status=$?
2730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2731   (exit $ac_status); }; } &&
2732          { ac_try='test -s conftest.$ac_objext'
2733   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2734   (eval $ac_try) 2>&5
2735   ac_status=$?
2736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2737   (exit $ac_status); }; }; then
2738   :
2739 else
2740   echo "$as_me: failed program was:" >&5
2741 sed 's/^/| /' conftest.$ac_ext >&5
2742
2743 continue
2744 fi
2745 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2746   cat >conftest.$ac_ext <<_ACEOF
2747 /* confdefs.h.  */
2748 _ACEOF
2749 cat confdefs.h >>conftest.$ac_ext
2750 cat >>conftest.$ac_ext <<_ACEOF
2751 /* end confdefs.h.  */
2752 $ac_declaration
2753 int
2754 main ()
2755 {
2756 exit (42);
2757   ;
2758   return 0;
2759 }
2760 _ACEOF
2761 rm -f conftest.$ac_objext
2762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2763   (eval $ac_compile) 2>conftest.er1
2764   ac_status=$?
2765   grep -v '^ *+' conftest.er1 >conftest.err
2766   rm -f conftest.er1
2767   cat conftest.err >&5
2768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2769   (exit $ac_status); } &&
2770          { ac_try='test -z "$ac_cxx_werror_flag"
2771                          || test ! -s conftest.err'
2772   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2773   (eval $ac_try) 2>&5
2774   ac_status=$?
2775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2776   (exit $ac_status); }; } &&
2777          { ac_try='test -s conftest.$ac_objext'
2778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2779   (eval $ac_try) 2>&5
2780   ac_status=$?
2781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2782   (exit $ac_status); }; }; then
2783   break
2784 else
2785   echo "$as_me: failed program was:" >&5
2786 sed 's/^/| /' conftest.$ac_ext >&5
2787
2788 fi
2789 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2790 done
2791 rm -f conftest*
2792 if test -n "$ac_declaration"; then
2793   echo '#ifdef __cplusplus' >>confdefs.h
2794   echo $ac_declaration      >>confdefs.h
2795   echo '#endif'             >>confdefs.h
2796 fi
2797
2798 ac_ext=c
2799 ac_cpp='$CPP $CPPFLAGS'
2800 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2801 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2802 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2803
2804 if test "x$CC" != xcc; then
2805   echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2806 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2807 else
2808   echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2809 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2810 fi
2811 set dummy $CC; ac_cc=`echo $2 |
2812                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2813 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2814   echo $ECHO_N "(cached) $ECHO_C" >&6
2815 else
2816   cat >conftest.$ac_ext <<_ACEOF
2817 /* confdefs.h.  */
2818 _ACEOF
2819 cat confdefs.h >>conftest.$ac_ext
2820 cat >>conftest.$ac_ext <<_ACEOF
2821 /* end confdefs.h.  */
2822
2823 int
2824 main ()
2825 {
2826
2827   ;
2828   return 0;
2829 }
2830 _ACEOF
2831 # Make sure it works both with $CC and with simple cc.
2832 # We do the test twice because some compilers refuse to overwrite an
2833 # existing .o file with -o, though they will create one.
2834 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2835 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2836   (eval $ac_try) 2>&5
2837   ac_status=$?
2838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2839   (exit $ac_status); } &&
2840    test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2841   (eval $ac_try) 2>&5
2842   ac_status=$?
2843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2844   (exit $ac_status); };
2845 then
2846   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2847   if test "x$CC" != xcc; then
2848     # Test first that cc exists at all.
2849     if { ac_try='cc -c conftest.$ac_ext >&5'
2850   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2851   (eval $ac_try) 2>&5
2852   ac_status=$?
2853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2854   (exit $ac_status); }; }; then
2855       ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2856       if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2857   (eval $ac_try) 2>&5
2858   ac_status=$?
2859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2860   (exit $ac_status); } &&
2861          test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2862   (eval $ac_try) 2>&5
2863   ac_status=$?
2864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2865   (exit $ac_status); };
2866       then
2867         # cc works too.
2868         :
2869       else
2870         # cc exists but doesn't like -o.
2871         eval ac_cv_prog_cc_${ac_cc}_c_o=no
2872       fi
2873     fi
2874   fi
2875 else
2876   eval ac_cv_prog_cc_${ac_cc}_c_o=no
2877 fi
2878 rm -f conftest*
2879
2880 fi
2881 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2882   echo "$as_me:$LINENO: result: yes" >&5
2883 echo "${ECHO_T}yes" >&6
2884 else
2885   echo "$as_me:$LINENO: result: no" >&5
2886 echo "${ECHO_T}no" >&6
2887
2888 cat >>confdefs.h <<\_ACEOF
2889 #define NO_MINUS_C_MINUS_O 1
2890 _ACEOF
2891
2892 fi
2893
2894 ac_ext=c
2895 ac_cpp='$CPP $CPPFLAGS'
2896 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2897 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2898 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2899 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2900 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2901 # On Suns, sometimes $CPP names a directory.
2902 if test -n "$CPP" && test -d "$CPP"; then
2903   CPP=
2904 fi
2905 if test -z "$CPP"; then
2906   if test "${ac_cv_prog_CPP+set}" = set; then
2907   echo $ECHO_N "(cached) $ECHO_C" >&6
2908 else
2909       # Double quotes because CPP needs to be expanded
2910     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2911     do
2912       ac_preproc_ok=false
2913 for ac_c_preproc_warn_flag in '' yes
2914 do
2915   # Use a header file that comes with gcc, so configuring glibc
2916   # with a fresh cross-compiler works.
2917   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2918   # <limits.h> exists even on freestanding compilers.
2919   # On the NeXT, cc -E runs the code through the compiler's parser,
2920   # not just through cpp. "Syntax error" is here to catch this case.
2921   cat >conftest.$ac_ext <<_ACEOF
2922 /* confdefs.h.  */
2923 _ACEOF
2924 cat confdefs.h >>conftest.$ac_ext
2925 cat >>conftest.$ac_ext <<_ACEOF
2926 /* end confdefs.h.  */
2927 #ifdef __STDC__
2928 # include <limits.h>
2929 #else
2930 # include <assert.h>
2931 #endif
2932                      Syntax error
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     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2945   else
2946     ac_cpp_err=
2947   fi
2948 else
2949   ac_cpp_err=yes
2950 fi
2951 if test -z "$ac_cpp_err"; then
2952   :
2953 else
2954   echo "$as_me: failed program was:" >&5
2955 sed 's/^/| /' conftest.$ac_ext >&5
2956
2957   # Broken: fails on valid input.
2958 continue
2959 fi
2960 rm -f conftest.err conftest.$ac_ext
2961
2962   # OK, works on sane cases.  Now check whether non-existent headers
2963   # can be detected and how.
2964   cat >conftest.$ac_ext <<_ACEOF
2965 /* confdefs.h.  */
2966 _ACEOF
2967 cat confdefs.h >>conftest.$ac_ext
2968 cat >>conftest.$ac_ext <<_ACEOF
2969 /* end confdefs.h.  */
2970 #include <ac_nonexistent.h>
2971 _ACEOF
2972 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2973   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2974   ac_status=$?
2975   grep -v '^ *+' conftest.er1 >conftest.err
2976   rm -f conftest.er1
2977   cat conftest.err >&5
2978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2979   (exit $ac_status); } >/dev/null; then
2980   if test -s conftest.err; then
2981     ac_cpp_err=$ac_c_preproc_warn_flag
2982     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2983   else
2984     ac_cpp_err=
2985   fi
2986 else
2987   ac_cpp_err=yes
2988 fi
2989 if test -z "$ac_cpp_err"; then
2990   # Broken: success on invalid input.
2991 continue
2992 else
2993   echo "$as_me: failed program was:" >&5
2994 sed 's/^/| /' conftest.$ac_ext >&5
2995
2996   # Passes both tests.
2997 ac_preproc_ok=:
2998 break
2999 fi
3000 rm -f conftest.err conftest.$ac_ext
3001
3002 done
3003 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3004 rm -f conftest.err conftest.$ac_ext
3005 if $ac_preproc_ok; then
3006   break
3007 fi
3008
3009     done
3010     ac_cv_prog_CPP=$CPP
3011
3012 fi
3013   CPP=$ac_cv_prog_CPP
3014 else
3015   ac_cv_prog_CPP=$CPP
3016 fi
3017 echo "$as_me:$LINENO: result: $CPP" >&5
3018 echo "${ECHO_T}$CPP" >&6
3019 ac_preproc_ok=false
3020 for ac_c_preproc_warn_flag in '' yes
3021 do
3022   # Use a header file that comes with gcc, so configuring glibc
3023   # with a fresh cross-compiler works.
3024   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3025   # <limits.h> exists even on freestanding compilers.
3026   # On the NeXT, cc -E runs the code through the compiler's parser,
3027   # not just through cpp. "Syntax error" is here to catch this case.
3028   cat >conftest.$ac_ext <<_ACEOF
3029 /* confdefs.h.  */
3030 _ACEOF
3031 cat confdefs.h >>conftest.$ac_ext
3032 cat >>conftest.$ac_ext <<_ACEOF
3033 /* end confdefs.h.  */
3034 #ifdef __STDC__
3035 # include <limits.h>
3036 #else
3037 # include <assert.h>
3038 #endif
3039                      Syntax error
3040 _ACEOF
3041 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3042   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3043   ac_status=$?
3044   grep -v '^ *+' conftest.er1 >conftest.err
3045   rm -f conftest.er1
3046   cat conftest.err >&5
3047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3048   (exit $ac_status); } >/dev/null; then
3049   if test -s conftest.err; then
3050     ac_cpp_err=$ac_c_preproc_warn_flag
3051     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3052   else
3053     ac_cpp_err=
3054   fi
3055 else
3056   ac_cpp_err=yes
3057 fi
3058 if test -z "$ac_cpp_err"; then
3059   :
3060 else
3061   echo "$as_me: failed program was:" >&5
3062 sed 's/^/| /' conftest.$ac_ext >&5
3063
3064   # Broken: fails on valid input.
3065 continue
3066 fi
3067 rm -f conftest.err conftest.$ac_ext
3068
3069   # OK, works on sane cases.  Now check whether non-existent headers
3070   # can be detected and how.
3071   cat >conftest.$ac_ext <<_ACEOF
3072 /* confdefs.h.  */
3073 _ACEOF
3074 cat confdefs.h >>conftest.$ac_ext
3075 cat >>conftest.$ac_ext <<_ACEOF
3076 /* end confdefs.h.  */
3077 #include <ac_nonexistent.h>
3078 _ACEOF
3079 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3080   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3081   ac_status=$?
3082   grep -v '^ *+' conftest.er1 >conftest.err
3083   rm -f conftest.er1
3084   cat conftest.err >&5
3085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3086   (exit $ac_status); } >/dev/null; then
3087   if test -s conftest.err; then
3088     ac_cpp_err=$ac_c_preproc_warn_flag
3089     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3090   else
3091     ac_cpp_err=
3092   fi
3093 else
3094   ac_cpp_err=yes
3095 fi
3096 if test -z "$ac_cpp_err"; then
3097   # Broken: success on invalid input.
3098 continue
3099 else
3100   echo "$as_me: failed program was:" >&5
3101 sed 's/^/| /' conftest.$ac_ext >&5
3102
3103   # Passes both tests.
3104 ac_preproc_ok=:
3105 break
3106 fi
3107 rm -f conftest.err conftest.$ac_ext
3108
3109 done
3110 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3111 rm -f conftest.err conftest.$ac_ext
3112 if $ac_preproc_ok; then
3113   :
3114 else
3115   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3116 See \`config.log' for more details." >&5
3117 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3118 See \`config.log' for more details." >&2;}
3119    { (exit 1); exit 1; }; }
3120 fi
3121
3122 ac_ext=c
3123 ac_cpp='$CPP $CPPFLAGS'
3124 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3125 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3126 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3127
3128
3129 echo "$as_me:$LINENO: checking for egrep" >&5
3130 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3131 if test "${ac_cv_prog_egrep+set}" = set; then
3132   echo $ECHO_N "(cached) $ECHO_C" >&6
3133 else
3134   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3135     then ac_cv_prog_egrep='grep -E'
3136     else ac_cv_prog_egrep='egrep'
3137     fi
3138 fi
3139 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3140 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3141  EGREP=$ac_cv_prog_egrep
3142
3143
3144 if test $ac_cv_c_compiler_gnu = yes; then
3145     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3146 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3147 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3148   echo $ECHO_N "(cached) $ECHO_C" >&6
3149 else
3150     ac_pattern="Autoconf.*'x'"
3151   cat >conftest.$ac_ext <<_ACEOF
3152 /* confdefs.h.  */
3153 _ACEOF
3154 cat confdefs.h >>conftest.$ac_ext
3155 cat >>conftest.$ac_ext <<_ACEOF
3156 /* end confdefs.h.  */
3157 #include <sgtty.h>
3158 Autoconf TIOCGETP
3159 _ACEOF
3160 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3161   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3162   ac_cv_prog_gcc_traditional=yes
3163 else
3164   ac_cv_prog_gcc_traditional=no
3165 fi
3166 rm -f conftest*
3167
3168
3169   if test $ac_cv_prog_gcc_traditional = no; then
3170     cat >conftest.$ac_ext <<_ACEOF
3171 /* confdefs.h.  */
3172 _ACEOF
3173 cat confdefs.h >>conftest.$ac_ext
3174 cat >>conftest.$ac_ext <<_ACEOF
3175 /* end confdefs.h.  */
3176 #include <termio.h>
3177 Autoconf TCGETA
3178 _ACEOF
3179 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3180   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3181   ac_cv_prog_gcc_traditional=yes
3182 fi
3183 rm -f conftest*
3184
3185   fi
3186 fi
3187 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3188 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3189   if test $ac_cv_prog_gcc_traditional = yes; then
3190     CC="$CC -traditional"
3191   fi
3192 fi
3193
3194 if test "x$CC" = xgcc
3195 then
3196    cat >>confdefs.h <<\_ACEOF
3197 #define HAVE_GCC 1
3198 _ACEOF
3199
3200 fi
3201
3202 # Find a good install program.  We prefer a C program (faster),
3203 # so one script is as good as another.  But avoid the broken or
3204 # incompatible versions:
3205 # SysV /etc/install, /usr/sbin/install
3206 # SunOS /usr/etc/install
3207 # IRIX /sbin/install
3208 # AIX /bin/install
3209 # AmigaOS /C/install, which installs bootblocks on floppy discs
3210 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3211 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3212 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3213 # OS/2's system install, which has a completely different semantic
3214 # ./install, which can be erroneously created by make from ./install.sh.
3215 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3216 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3217 if test -z "$INSTALL"; then
3218 if test "${ac_cv_path_install+set}" = set; then
3219   echo $ECHO_N "(cached) $ECHO_C" >&6
3220 else
3221   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3222 for as_dir in $PATH
3223 do
3224   IFS=$as_save_IFS
3225   test -z "$as_dir" && as_dir=.
3226   # Account for people who put trailing slashes in PATH elements.
3227 case $as_dir/ in
3228   ./ | .// | /cC/* | \
3229   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3230   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3231   /usr/ucb/* ) ;;
3232   *)
3233     # OSF1 and SCO ODT 3.0 have their own names for install.
3234     # Don't use installbsd from OSF since it installs stuff as root
3235     # by default.
3236     for ac_prog in ginstall scoinst install; do
3237       for ac_exec_ext in '' $ac_executable_extensions; do
3238         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3239           if test $ac_prog = install &&
3240             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3241             # AIX install.  It has an incompatible calling convention.
3242             :
3243           elif test $ac_prog = install &&
3244             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3245             # program-specific install script used by HP pwplus--don't use.
3246             :
3247           else
3248             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3249             break 3
3250           fi
3251         fi
3252       done
3253     done
3254     ;;
3255 esac
3256 done
3257
3258
3259 fi
3260   if test "${ac_cv_path_install+set}" = set; then
3261     INSTALL=$ac_cv_path_install
3262   else
3263     # As a last resort, use the slow shell script.  We don't cache a
3264     # path for INSTALL within a source directory, because that will
3265     # break other packages using the cache if that directory is
3266     # removed, or if the path is relative.
3267     INSTALL=$ac_install_sh
3268   fi
3269 fi
3270 echo "$as_me:$LINENO: result: $INSTALL" >&5
3271 echo "${ECHO_T}$INSTALL" >&6
3272
3273 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3274 # It thinks the first close brace ends the variable substitution.
3275 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3276
3277 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3278
3279 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3280
3281 if test -n "$ac_tool_prefix"; then
3282   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3283 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3284 echo "$as_me:$LINENO: checking for $ac_word" >&5
3285 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3286 if test "${ac_cv_prog_RANLIB+set}" = set; then
3287   echo $ECHO_N "(cached) $ECHO_C" >&6
3288 else
3289   if test -n "$RANLIB"; then
3290   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3291 else
3292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3293 for as_dir in $PATH
3294 do
3295   IFS=$as_save_IFS
3296   test -z "$as_dir" && as_dir=.
3297   for ac_exec_ext in '' $ac_executable_extensions; do
3298   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3299     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3300     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3301     break 2
3302   fi
3303 done
3304 done
3305
3306 fi
3307 fi
3308 RANLIB=$ac_cv_prog_RANLIB
3309 if test -n "$RANLIB"; then
3310   echo "$as_me:$LINENO: result: $RANLIB" >&5
3311 echo "${ECHO_T}$RANLIB" >&6
3312 else
3313   echo "$as_me:$LINENO: result: no" >&5
3314 echo "${ECHO_T}no" >&6
3315 fi
3316
3317 fi
3318 if test -z "$ac_cv_prog_RANLIB"; then
3319   ac_ct_RANLIB=$RANLIB
3320   # Extract the first word of "ranlib", so it can be a program name with args.
3321 set dummy ranlib; ac_word=$2
3322 echo "$as_me:$LINENO: checking for $ac_word" >&5
3323 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3324 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3325   echo $ECHO_N "(cached) $ECHO_C" >&6
3326 else
3327   if test -n "$ac_ct_RANLIB"; then
3328   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3329 else
3330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3331 for as_dir in $PATH
3332 do
3333   IFS=$as_save_IFS
3334   test -z "$as_dir" && as_dir=.
3335   for ac_exec_ext in '' $ac_executable_extensions; do
3336   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3337     ac_cv_prog_ac_ct_RANLIB="ranlib"
3338     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3339     break 2
3340   fi
3341 done
3342 done
3343
3344   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3345 fi
3346 fi
3347 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3348 if test -n "$ac_ct_RANLIB"; then
3349   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3350 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3351 else
3352   echo "$as_me:$LINENO: result: no" >&5
3353 echo "${ECHO_T}no" >&6
3354 fi
3355
3356   RANLIB=$ac_ct_RANLIB
3357 else
3358   RANLIB="$ac_cv_prog_RANLIB"
3359 fi
3360
3361 # Extract the first word of "mv", so it can be a program name with args.
3362 set dummy mv; ac_word=$2
3363 echo "$as_me:$LINENO: checking for $ac_word" >&5
3364 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3365 if test "${ac_cv_path_MV+set}" = set; then
3366   echo $ECHO_N "(cached) $ECHO_C" >&6
3367 else
3368   case $MV in
3369   [\\/]* | ?:[\\/]*)
3370   ac_cv_path_MV="$MV" # Let the user override the test with a path.
3371   ;;
3372   *)
3373   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3374 for as_dir in $PATH
3375 do
3376   IFS=$as_save_IFS
3377   test -z "$as_dir" && as_dir=.
3378   for ac_exec_ext in '' $ac_executable_extensions; do
3379   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3380     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
3381     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3382     break 2
3383   fi
3384 done
3385 done
3386
3387   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
3388   ;;
3389 esac
3390 fi
3391 MV=$ac_cv_path_MV
3392
3393 if test -n "$MV"; then
3394   echo "$as_me:$LINENO: result: $MV" >&5
3395 echo "${ECHO_T}$MV" >&6
3396 else
3397   echo "$as_me:$LINENO: result: no" >&5
3398 echo "${ECHO_T}no" >&6
3399 fi
3400
3401 # Extract the first word of "rm", so it can be a program name with args.
3402 set dummy rm; ac_word=$2
3403 echo "$as_me:$LINENO: checking for $ac_word" >&5
3404 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3405 if test "${ac_cv_path_RM+set}" = set; then
3406   echo $ECHO_N "(cached) $ECHO_C" >&6
3407 else
3408   case $RM in
3409   [\\/]* | ?:[\\/]*)
3410   ac_cv_path_RM="$RM" # Let the user override the test with a path.
3411   ;;
3412   *)
3413   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3414 for as_dir in $PATH
3415 do
3416   IFS=$as_save_IFS
3417   test -z "$as_dir" && as_dir=.
3418   for ac_exec_ext in '' $ac_executable_extensions; do
3419   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3420     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
3421     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3422     break 2
3423   fi
3424 done
3425 done
3426
3427   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
3428   ;;
3429 esac
3430 fi
3431 RM=$ac_cv_path_RM
3432
3433 if test -n "$RM"; then
3434   echo "$as_me:$LINENO: result: $RM" >&5
3435 echo "${ECHO_T}$RM" >&6
3436 else
3437   echo "$as_me:$LINENO: result: no" >&5
3438 echo "${ECHO_T}no" >&6
3439 fi
3440
3441 # Extract the first word of "cp", so it can be a program name with args.
3442 set dummy cp; ac_word=$2
3443 echo "$as_me:$LINENO: checking for $ac_word" >&5
3444 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3445 if test "${ac_cv_path_CP+set}" = set; then
3446   echo $ECHO_N "(cached) $ECHO_C" >&6
3447 else
3448   case $CP in
3449   [\\/]* | ?:[\\/]*)
3450   ac_cv_path_CP="$CP" # Let the user override the test with a path.
3451   ;;
3452   *)
3453   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3454 for as_dir in $PATH
3455 do
3456   IFS=$as_save_IFS
3457   test -z "$as_dir" && as_dir=.
3458   for ac_exec_ext in '' $ac_executable_extensions; do
3459   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3460     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
3461     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3462     break 2
3463   fi
3464 done
3465 done
3466
3467   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
3468   ;;
3469 esac
3470 fi
3471 CP=$ac_cv_path_CP
3472
3473 if test -n "$CP"; then
3474   echo "$as_me:$LINENO: result: $CP" >&5
3475 echo "${ECHO_T}$CP" >&6
3476 else
3477   echo "$as_me:$LINENO: result: no" >&5
3478 echo "${ECHO_T}no" >&6
3479 fi
3480
3481 # Extract the first word of "sed", so it can be a program name with args.
3482 set dummy sed; ac_word=$2
3483 echo "$as_me:$LINENO: checking for $ac_word" >&5
3484 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3485 if test "${ac_cv_path_SED+set}" = set; then
3486   echo $ECHO_N "(cached) $ECHO_C" >&6
3487 else
3488   case $SED in
3489   [\\/]* | ?:[\\/]*)
3490   ac_cv_path_SED="$SED" # Let the user override the test with a path.
3491   ;;
3492   *)
3493   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3494 for as_dir in $PATH
3495 do
3496   IFS=$as_save_IFS
3497   test -z "$as_dir" && as_dir=.
3498   for ac_exec_ext in '' $ac_executable_extensions; do
3499   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3500     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
3501     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3502     break 2
3503   fi
3504 done
3505 done
3506
3507   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
3508   ;;
3509 esac
3510 fi
3511 SED=$ac_cv_path_SED
3512
3513 if test -n "$SED"; then
3514   echo "$as_me:$LINENO: result: $SED" >&5
3515 echo "${ECHO_T}$SED" >&6
3516 else
3517   echo "$as_me:$LINENO: result: no" >&5
3518 echo "${ECHO_T}no" >&6
3519 fi
3520
3521 # Extract the first word of "echo", so it can be a program name with args.
3522 set dummy echo; ac_word=$2
3523 echo "$as_me:$LINENO: checking for $ac_word" >&5
3524 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3525 if test "${ac_cv_path_ECHO+set}" = set; then
3526   echo $ECHO_N "(cached) $ECHO_C" >&6
3527 else
3528   case $ECHO in
3529   [\\/]* | ?:[\\/]*)
3530   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
3531   ;;
3532   *)
3533   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3534 for as_dir in $PATH
3535 do
3536   IFS=$as_save_IFS
3537   test -z "$as_dir" && as_dir=.
3538   for ac_exec_ext in '' $ac_executable_extensions; do
3539   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3540     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
3541     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3542     break 2
3543   fi
3544 done
3545 done
3546
3547   test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
3548   ;;
3549 esac
3550 fi
3551 ECHO=$ac_cv_path_ECHO
3552
3553 if test -n "$ECHO"; then
3554   echo "$as_me:$LINENO: result: $ECHO" >&5
3555 echo "${ECHO_T}$ECHO" >&6
3556 else
3557   echo "$as_me:$LINENO: result: no" >&5
3558 echo "${ECHO_T}no" >&6
3559 fi
3560
3561 # Extract the first word of "cmp", so it can be a program name with args.
3562 set dummy cmp; ac_word=$2
3563 echo "$as_me:$LINENO: checking for $ac_word" >&5
3564 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3565 if test "${ac_cv_path_CMP+set}" = set; then
3566   echo $ECHO_N "(cached) $ECHO_C" >&6
3567 else
3568   case $CMP in
3569   [\\/]* | ?:[\\/]*)
3570   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
3571   ;;
3572   *)
3573   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3574 for as_dir in $PATH
3575 do
3576   IFS=$as_save_IFS
3577   test -z "$as_dir" && as_dir=.
3578   for ac_exec_ext in '' $ac_executable_extensions; do
3579   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3580     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
3581     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3582     break 2
3583   fi
3584 done
3585 done
3586
3587   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
3588   ;;
3589 esac
3590 fi
3591 CMP=$ac_cv_path_CMP
3592
3593 if test -n "$CMP"; then
3594   echo "$as_me:$LINENO: result: $CMP" >&5
3595 echo "${ECHO_T}$CMP" >&6
3596 else
3597   echo "$as_me:$LINENO: result: no" >&5
3598 echo "${ECHO_T}no" >&6
3599 fi
3600
3601 # Extract the first word of "tbl", so it can be a program name with args.
3602 set dummy tbl; ac_word=$2
3603 echo "$as_me:$LINENO: checking for $ac_word" >&5
3604 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3605 if test "${ac_cv_path_TBL+set}" = set; then
3606   echo $ECHO_N "(cached) $ECHO_C" >&6
3607 else
3608   case $TBL in
3609   [\\/]* | ?:[\\/]*)
3610   ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
3611   ;;
3612   *)
3613   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3614 for as_dir in $PATH
3615 do
3616   IFS=$as_save_IFS
3617   test -z "$as_dir" && as_dir=.
3618   for ac_exec_ext in '' $ac_executable_extensions; do
3619   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3620     ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
3621     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3622     break 2
3623   fi
3624 done
3625 done
3626
3627   test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
3628   ;;
3629 esac
3630 fi
3631 TBL=$ac_cv_path_TBL
3632
3633 if test -n "$TBL"; then
3634   echo "$as_me:$LINENO: result: $TBL" >&5
3635 echo "${ECHO_T}$TBL" >&6
3636 else
3637   echo "$as_me:$LINENO: result: no" >&5
3638 echo "${ECHO_T}no" >&6
3639 fi
3640
3641 # Extract the first word of "ar", so it can be a program name with args.
3642 set dummy ar; ac_word=$2
3643 echo "$as_me:$LINENO: checking for $ac_word" >&5
3644 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3645 if test "${ac_cv_path_AR+set}" = set; then
3646   echo $ECHO_N "(cached) $ECHO_C" >&6
3647 else
3648   case $AR in
3649   [\\/]* | ?:[\\/]*)
3650   ac_cv_path_AR="$AR" # Let the user override the test with a path.
3651   ;;
3652   *)
3653   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3654 for as_dir in $PATH
3655 do
3656   IFS=$as_save_IFS
3657   test -z "$as_dir" && as_dir=.
3658   for ac_exec_ext in '' $ac_executable_extensions; do
3659   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3660     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3661     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3662     break 2
3663   fi
3664 done
3665 done
3666
3667   test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
3668   ;;
3669 esac
3670 fi
3671 AR=$ac_cv_path_AR
3672
3673 if test -n "$AR"; then
3674   echo "$as_me:$LINENO: result: $AR" >&5
3675 echo "${ECHO_T}$AR" >&6
3676 else
3677   echo "$as_me:$LINENO: result: no" >&5
3678 echo "${ECHO_T}no" >&6
3679 fi
3680
3681 # Extract the first word of "openssl", so it can be a program name with args.
3682 set dummy openssl; ac_word=$2
3683 echo "$as_me:$LINENO: checking for $ac_word" >&5
3684 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3685 if test "${ac_cv_path_OPENSSL+set}" = set; then
3686   echo $ECHO_N "(cached) $ECHO_C" >&6
3687 else
3688   case $OPENSSL in
3689   [\\/]* | ?:[\\/]*)
3690   ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
3691   ;;
3692   *)
3693   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3694 for as_dir in $PATH
3695 do
3696   IFS=$as_save_IFS
3697   test -z "$as_dir" && as_dir=.
3698   for ac_exec_ext in '' $ac_executable_extensions; do
3699   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3700     ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
3701     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3702     break 2
3703   fi
3704 done
3705 done
3706
3707   test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
3708   ;;
3709 esac
3710 fi
3711 OPENSSL=$ac_cv_path_OPENSSL
3712
3713 if test -n "$OPENSSL"; then
3714   echo "$as_me:$LINENO: result: $OPENSSL" >&5
3715 echo "${ECHO_T}$OPENSSL" >&6
3716 else
3717   echo "$as_me:$LINENO: result: no" >&5
3718 echo "${ECHO_T}no" >&6
3719 fi
3720
3721 # Extract the first word of "mtx", so it can be a program name with args.
3722 set dummy mtx; ac_word=$2
3723 echo "$as_me:$LINENO: checking for $ac_word" >&5
3724 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3725 if test "${ac_cv_path_MTX+set}" = set; then
3726   echo $ECHO_N "(cached) $ECHO_C" >&6
3727 else
3728   case $MTX in
3729   [\\/]* | ?:[\\/]*)
3730   ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
3731   ;;
3732   *)
3733   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3734 for as_dir in $PATH
3735 do
3736   IFS=$as_save_IFS
3737   test -z "$as_dir" && as_dir=.
3738   for ac_exec_ext in '' $ac_executable_extensions; do
3739   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3740     ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
3741     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3742     break 2
3743   fi
3744 done
3745 done
3746
3747   test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
3748   ;;
3749 esac
3750 fi
3751 MTX=$ac_cv_path_MTX
3752
3753 if test -n "$MTX"; then
3754   echo "$as_me:$LINENO: result: $MTX" >&5
3755 echo "${ECHO_T}$MTX" >&6
3756 else
3757   echo "$as_me:$LINENO: result: no" >&5
3758 echo "${ECHO_T}no" >&6
3759 fi
3760
3761 # Extract the first word of "mkisofs", so it can be a program name with args.
3762 set dummy mkisofs; ac_word=$2
3763 echo "$as_me:$LINENO: checking for $ac_word" >&5
3764 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3765 if test "${ac_cv_path_MKISOFS+set}" = set; then
3766   echo $ECHO_N "(cached) $ECHO_C" >&6
3767 else
3768   case $MKISOFS in
3769   [\\/]* | ?:[\\/]*)
3770   ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
3771   ;;
3772   *)
3773   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3774 for as_dir in $PATH
3775 do
3776   IFS=$as_save_IFS
3777   test -z "$as_dir" && as_dir=.
3778   for ac_exec_ext in '' $ac_executable_extensions; do
3779   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3780     ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
3781     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3782     break 2
3783   fi
3784 done
3785 done
3786
3787   test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
3788   ;;
3789 esac
3790 fi
3791 MKISOFS=$ac_cv_path_MKISOFS
3792
3793 if test -n "$MKISOFS"; then
3794   echo "$as_me:$LINENO: result: $MKISOFS" >&5
3795 echo "${ECHO_T}$MKISOFS" >&6
3796 else
3797   echo "$as_me:$LINENO: result: no" >&5
3798 echo "${ECHO_T}no" >&6
3799 fi
3800
3801 # Extract the first word of "python", so it can be a program name with args.
3802 set dummy python; ac_word=$2
3803 echo "$as_me:$LINENO: checking for $ac_word" >&5
3804 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3805 if test "${ac_cv_path_PYTHON+set}" = set; then
3806   echo $ECHO_N "(cached) $ECHO_C" >&6
3807 else
3808   case $PYTHON in
3809   [\\/]* | ?:[\\/]*)
3810   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
3811   ;;
3812   *)
3813   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3814 for as_dir in $PATH
3815 do
3816   IFS=$as_save_IFS
3817   test -z "$as_dir" && as_dir=.
3818   for ac_exec_ext in '' $ac_executable_extensions; do
3819   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3820     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
3821     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3822     break 2
3823   fi
3824 done
3825 done
3826
3827   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
3828   ;;
3829 esac
3830 fi
3831 PYTHON=$ac_cv_path_PYTHON
3832
3833 if test -n "$PYTHON"; then
3834   echo "$as_me:$LINENO: result: $PYTHON" >&5
3835 echo "${ECHO_T}$PYTHON" >&6
3836 else
3837   echo "$as_me:$LINENO: result: no" >&5
3838 echo "${ECHO_T}no" >&6
3839 fi
3840
3841 # Extract the first word of "growisofs", so it can be a program name with args.
3842 set dummy growisofs; ac_word=$2
3843 echo "$as_me:$LINENO: checking for $ac_word" >&5
3844 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3845 if test "${ac_cv_path_GROWISOFS+set}" = set; then
3846   echo $ECHO_N "(cached) $ECHO_C" >&6
3847 else
3848   case $GROWISOFS in
3849   [\\/]* | ?:[\\/]*)
3850   ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
3851   ;;
3852   *)
3853   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3854 for as_dir in $PATH
3855 do
3856   IFS=$as_save_IFS
3857   test -z "$as_dir" && as_dir=.
3858   for ac_exec_ext in '' $ac_executable_extensions; do
3859   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3860     ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
3861     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3862     break 2
3863   fi
3864 done
3865 done
3866
3867   test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
3868   ;;
3869 esac
3870 fi
3871 GROWISOFS=$ac_cv_path_GROWISOFS
3872
3873 if test -n "$GROWISOFS"; then
3874   echo "$as_me:$LINENO: result: $GROWISOFS" >&5
3875 echo "${ECHO_T}$GROWISOFS" >&6
3876 else
3877   echo "$as_me:$LINENO: result: no" >&5
3878 echo "${ECHO_T}no" >&6
3879 fi
3880
3881 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
3882 set dummy dvd+rw-mediainfo; ac_word=$2
3883 echo "$as_me:$LINENO: checking for $ac_word" >&5
3884 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3885 if test "${ac_cv_path_DVDRWMEDIAINFO+set}" = set; then
3886   echo $ECHO_N "(cached) $ECHO_C" >&6
3887 else
3888   case $DVDRWMEDIAINFO in
3889   [\\/]* | ?:[\\/]*)
3890   ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
3891   ;;
3892   *)
3893   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3894 for as_dir in $PATH
3895 do
3896   IFS=$as_save_IFS
3897   test -z "$as_dir" && as_dir=.
3898   for ac_exec_ext in '' $ac_executable_extensions; do
3899   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3900     ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
3901     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3902     break 2
3903   fi
3904 done
3905 done
3906
3907   test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
3908   ;;
3909 esac
3910 fi
3911 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
3912
3913 if test -n "$DVDRWMEDIAINFO"; then
3914   echo "$as_me:$LINENO: result: $DVDRWMEDIAINFO" >&5
3915 echo "${ECHO_T}$DVDRWMEDIAINFO" >&6
3916 else
3917   echo "$as_me:$LINENO: result: no" >&5
3918 echo "${ECHO_T}no" >&6
3919 fi
3920
3921 # Extract the first word of "pkg-config", so it can be a program name with args.
3922 set dummy pkg-config; ac_word=$2
3923 echo "$as_me:$LINENO: checking for $ac_word" >&5
3924 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3925 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
3926   echo $ECHO_N "(cached) $ECHO_C" >&6
3927 else
3928   case $PKGCONFIG in
3929   [\\/]* | ?:[\\/]*)
3930   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
3931   ;;
3932   *)
3933   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3934 for as_dir in $PATH
3935 do
3936   IFS=$as_save_IFS
3937   test -z "$as_dir" && as_dir=.
3938   for ac_exec_ext in '' $ac_executable_extensions; do
3939   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3940     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
3941     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3942     break 2
3943   fi
3944 done
3945 done
3946
3947   test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
3948   ;;
3949 esac
3950 fi
3951 PKGCONFIG=$ac_cv_path_PKGCONFIG
3952
3953 if test -n "$PKGCONFIG"; then
3954   echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
3955 echo "${ECHO_T}$PKGCONFIG" >&6
3956 else
3957   echo "$as_me:$LINENO: result: no" >&5
3958 echo "${ECHO_T}no" >&6
3959 fi
3960
3961 # Extract the first word of "wx-config", so it can be a program name with args.
3962 set dummy wx-config; ac_word=$2
3963 echo "$as_me:$LINENO: checking for $ac_word" >&5
3964 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3965 if test "${ac_cv_path_WXCONFIG+set}" = set; then
3966   echo $ECHO_N "(cached) $ECHO_C" >&6
3967 else
3968   case $WXCONFIG in
3969   [\\/]* | ?:[\\/]*)
3970   ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
3971   ;;
3972   *)
3973   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3974 for as_dir in $PATH
3975 do
3976   IFS=$as_save_IFS
3977   test -z "$as_dir" && as_dir=.
3978   for ac_exec_ext in '' $ac_executable_extensions; do
3979   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3980     ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
3981     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3982     break 2
3983   fi
3984 done
3985 done
3986
3987   test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="wx-config"
3988   ;;
3989 esac
3990 fi
3991 WXCONFIG=$ac_cv_path_WXCONFIG
3992
3993 if test -n "$WXCONFIG"; then
3994   echo "$as_me:$LINENO: result: $WXCONFIG" >&5
3995 echo "${ECHO_T}$WXCONFIG" >&6
3996 else
3997   echo "$as_me:$LINENO: result: no" >&5
3998 echo "${ECHO_T}no" >&6
3999 fi
4000
4001 # Extract the first word of "cdrecord", so it can be a program name with args.
4002 set dummy cdrecord; ac_word=$2
4003 echo "$as_me:$LINENO: checking for $ac_word" >&5
4004 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4005 if test "${ac_cv_path_CDRECORD+set}" = set; then
4006   echo $ECHO_N "(cached) $ECHO_C" >&6
4007 else
4008   case $CDRECORD in
4009   [\\/]* | ?:[\\/]*)
4010   ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
4011   ;;
4012   *)
4013   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4014 for as_dir in $PATH
4015 do
4016   IFS=$as_save_IFS
4017   test -z "$as_dir" && as_dir=.
4018   for ac_exec_ext in '' $ac_executable_extensions; do
4019   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4020     ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
4021     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4022     break 2
4023   fi
4024 done
4025 done
4026
4027   test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
4028   ;;
4029 esac
4030 fi
4031 CDRECORD=$ac_cv_path_CDRECORD
4032
4033 if test -n "$CDRECORD"; then
4034   echo "$as_me:$LINENO: result: $CDRECORD" >&5
4035 echo "${ECHO_T}$CDRECORD" >&6
4036 else
4037   echo "$as_me:$LINENO: result: no" >&5
4038 echo "${ECHO_T}no" >&6
4039 fi
4040
4041 # Extract the first word of "pidof", so it can be a program name with args.
4042 set dummy pidof; ac_word=$2
4043 echo "$as_me:$LINENO: checking for $ac_word" >&5
4044 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4045 if test "${ac_cv_path_PIDOF+set}" = set; then
4046   echo $ECHO_N "(cached) $ECHO_C" >&6
4047 else
4048   case $PIDOF in
4049   [\\/]* | ?:[\\/]*)
4050   ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
4051   ;;
4052   *)
4053   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4054 for as_dir in $PATH
4055 do
4056   IFS=$as_save_IFS
4057   test -z "$as_dir" && as_dir=.
4058   for ac_exec_ext in '' $ac_executable_extensions; do
4059   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4060     ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
4061     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4062     break 2
4063   fi
4064 done
4065 done
4066
4067   test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
4068   ;;
4069 esac
4070 fi
4071 PIDOF=$ac_cv_path_PIDOF
4072
4073 if test -n "$PIDOF"; then
4074   echo "$as_me:$LINENO: result: $PIDOF" >&5
4075 echo "${ECHO_T}$PIDOF" >&6
4076 else
4077   echo "$as_me:$LINENO: result: no" >&5
4078 echo "${ECHO_T}no" >&6
4079 fi
4080
4081 for ac_prog in gawk mawk nawk awk
4082 do
4083   # Extract the first word of "$ac_prog", so it can be a program name with args.
4084 set dummy $ac_prog; ac_word=$2
4085 echo "$as_me:$LINENO: checking for $ac_word" >&5
4086 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4087 if test "${ac_cv_prog_AWK+set}" = set; then
4088   echo $ECHO_N "(cached) $ECHO_C" >&6
4089 else
4090   if test -n "$AWK"; then
4091   ac_cv_prog_AWK="$AWK" # Let the user override the test.
4092 else
4093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4094 for as_dir in $PATH
4095 do
4096   IFS=$as_save_IFS
4097   test -z "$as_dir" && as_dir=.
4098   for ac_exec_ext in '' $ac_executable_extensions; do
4099   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4100     ac_cv_prog_AWK="$ac_prog"
4101     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4102     break 2
4103   fi
4104 done
4105 done
4106
4107 fi
4108 fi
4109 AWK=$ac_cv_prog_AWK
4110 if test -n "$AWK"; then
4111   echo "$as_me:$LINENO: result: $AWK" >&5
4112 echo "${ECHO_T}$AWK" >&6
4113 else
4114   echo "$as_me:$LINENO: result: no" >&5
4115 echo "${ECHO_T}no" >&6
4116 fi
4117
4118   test -n "$AWK" && break
4119 done
4120
4121 # Some AWK programs fail, so test it and warn the user
4122 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
4123       { if ((prog == $2) || (("(" prog ")") == $2) ||
4124            (("" prog "") == $2) ||
4125            ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
4126 else
4127   { { echo "$as_me:$LINENO: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
4128    The regex engine of $AWK is too broken to be used you
4129    might want to install GNU AWK.
4130    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&5
4131 echo "$as_me: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
4132    The regex engine of $AWK is too broken to be used you
4133    might want to install GNU AWK.
4134    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&2;}
4135    { (exit 1); exit 1; }; }
4136 fi
4137 THE_AWK=$AWK
4138 # Extract the first word of "$THE_AWK", so it can be a program name with args.
4139 set dummy $THE_AWK; ac_word=$2
4140 echo "$as_me:$LINENO: checking for $ac_word" >&5
4141 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4142 if test "${ac_cv_path_AWK+set}" = set; then
4143   echo $ECHO_N "(cached) $ECHO_C" >&6
4144 else
4145   case $AWK in
4146   [\\/]* | ?:[\\/]*)
4147   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
4148   ;;
4149   *)
4150   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4151 for as_dir in $PATH
4152 do
4153   IFS=$as_save_IFS
4154   test -z "$as_dir" && as_dir=.
4155   for ac_exec_ext in '' $ac_executable_extensions; do
4156   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4157     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
4158     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4159     break 2
4160   fi
4161 done
4162 done
4163
4164   test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
4165   ;;
4166 esac
4167 fi
4168 AWK=$ac_cv_path_AWK
4169
4170 if test -n "$AWK"; then
4171   echo "$as_me:$LINENO: result: $AWK" >&5
4172 echo "${ECHO_T}$AWK" >&6
4173 else
4174   echo "$as_me:$LINENO: result: no" >&5
4175 echo "${ECHO_T}no" >&6
4176 fi
4177
4178
4179 test -n "$ARFLAG" || ARFLAGS="cr"
4180
4181
4182 MAKE_SHELL=/bin/sh
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192 # Make sure we can run config.sub.
4193 $ac_config_sub sun4 >/dev/null 2>&1 ||
4194   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
4195 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
4196    { (exit 1); exit 1; }; }
4197
4198 echo "$as_me:$LINENO: checking build system type" >&5
4199 echo $ECHO_N "checking build system type... $ECHO_C" >&6
4200 if test "${ac_cv_build+set}" = set; then
4201   echo $ECHO_N "(cached) $ECHO_C" >&6
4202 else
4203   ac_cv_build_alias=$build_alias
4204 test -z "$ac_cv_build_alias" &&
4205   ac_cv_build_alias=`$ac_config_guess`
4206 test -z "$ac_cv_build_alias" &&
4207   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4208 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4209    { (exit 1); exit 1; }; }
4210 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
4211   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
4212 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
4213    { (exit 1); exit 1; }; }
4214
4215 fi
4216 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4217 echo "${ECHO_T}$ac_cv_build" >&6
4218 build=$ac_cv_build
4219 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4220 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4221 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4222
4223
4224
4225 echo "$as_me:$LINENO: checking host system type" >&5
4226 echo $ECHO_N "checking host system type... $ECHO_C" >&6
4227 if test "${ac_cv_host+set}" = set; then
4228   echo $ECHO_N "(cached) $ECHO_C" >&6
4229 else
4230   ac_cv_host_alias=$host_alias
4231 test -z "$ac_cv_host_alias" &&
4232   ac_cv_host_alias=$ac_cv_build_alias
4233 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
4234   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
4235 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
4236    { (exit 1); exit 1; }; }
4237
4238 fi
4239 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4240 echo "${ECHO_T}$ac_cv_host" >&6
4241 host=$ac_cv_host
4242 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4243 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4244 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4245
4246
4247 case $host_os in
4248   *cygwin* ) CYGWIN=yes;;
4249          * ) CYGWIN=no;;
4250 esac
4251
4252 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4253 then
4254
4255
4256 if $TRUEPRG; then
4257   HAVE_SUN_OS_TRUE=
4258   HAVE_SUN_OS_FALSE='#'
4259 else
4260   HAVE_SUN_OS_TRUE='#'
4261   HAVE_SUN_OS_FALSE=
4262 fi
4263         cat >>confdefs.h <<\_ACEOF
4264 #define HAVE_SUN_OS 1
4265 _ACEOF
4266
4267 else
4268
4269
4270 if $FALSEPRG; then
4271   HAVE_SUN_OS_TRUE=
4272   HAVE_SUN_OS_FALSE='#'
4273 else
4274   HAVE_SUN_OS_TRUE='#'
4275   HAVE_SUN_OS_FALSE=
4276 fi
4277 fi
4278
4279 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4280 then
4281
4282
4283 if $TRUEPRG; then
4284   HAVE_OSF1_OS_TRUE=
4285   HAVE_OSF1_OS_FALSE='#'
4286 else
4287   HAVE_OSF1_OS_TRUE='#'
4288   HAVE_OSF1_OS_FALSE=
4289 fi
4290         cat >>confdefs.h <<\_ACEOF
4291 #define HAVE_OSF1_OS 1
4292 _ACEOF
4293
4294 else
4295
4296
4297 if $FALSEPRG; then
4298   HAVE_OSF1_OS_TRUE=
4299   HAVE_OSF1_OS_FALSE='#'
4300 else
4301   HAVE_OSF1_OS_TRUE='#'
4302   HAVE_OSF1_OS_FALSE=
4303 fi
4304 fi
4305
4306 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4307 then
4308
4309
4310 if $TRUEPRG; then
4311   HAVE_AIX_OS_TRUE=
4312   HAVE_AIX_OS_FALSE='#'
4313 else
4314   HAVE_AIX_OS_TRUE='#'
4315   HAVE_AIX_OS_FALSE=
4316 fi
4317         cat >>confdefs.h <<\_ACEOF
4318 #define HAVE_AIX_OS 1
4319 _ACEOF
4320
4321 else
4322
4323
4324 if $FALSEPRG; then
4325   HAVE_AIX_OS_TRUE=
4326   HAVE_AIX_OS_FALSE='#'
4327 else
4328   HAVE_AIX_OS_TRUE='#'
4329   HAVE_AIX_OS_FALSE=
4330 fi
4331 fi
4332
4333 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4334 then
4335
4336
4337 if $TRUEPRG; then
4338   HAVE_HPUX_OS_TRUE=
4339   HAVE_HPUX_OS_FALSE='#'
4340 else
4341   HAVE_HPUX_OS_TRUE='#'
4342   HAVE_HPUX_OS_FALSE=
4343 fi
4344         cat >>confdefs.h <<\_ACEOF
4345 #define HAVE_HPUX_OS 1
4346 _ACEOF
4347
4348 else
4349
4350
4351 if $FALSEPRG; then
4352   HAVE_HPUX_OS_TRUE=
4353   HAVE_HPUX_OS_FALSE='#'
4354 else
4355   HAVE_HPUX_OS_TRUE='#'
4356   HAVE_HPUX_OS_FALSE=
4357 fi
4358 fi
4359
4360 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
4361 then
4362
4363
4364 if $TRUEPRG; then
4365   HAVE_LINUX_OS_TRUE=
4366   HAVE_LINUX_OS_FALSE='#'
4367 else
4368   HAVE_LINUX_OS_TRUE='#'
4369   HAVE_LINUX_OS_FALSE=
4370 fi
4371         cat >>confdefs.h <<\_ACEOF
4372 #define HAVE_LINUX_OS 1
4373 _ACEOF
4374
4375 else
4376
4377
4378 if $FALSEPRG; then
4379   HAVE_LINUX_OS_TRUE=
4380   HAVE_LINUX_OS_FALSE='#'
4381 else
4382   HAVE_LINUX_OS_TRUE='#'
4383   HAVE_LINUX_OS_FALSE=
4384 fi
4385 fi
4386
4387 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4388 then
4389
4390
4391 if $TRUEPRG; then
4392   HAVE_FREEBSD_OS_TRUE=
4393   HAVE_FREEBSD_OS_FALSE='#'
4394 else
4395   HAVE_FREEBSD_OS_TRUE='#'
4396   HAVE_FREEBSD_OS_FALSE=
4397 fi
4398         cat >>confdefs.h <<\_ACEOF
4399 #define HAVE_FREEBSD_OS 1
4400 _ACEOF
4401
4402 else
4403
4404
4405 if $FALSEPRG; then
4406   HAVE_FREEBSD_OS_TRUE=
4407   HAVE_FREEBSD_OS_FALSE='#'
4408 else
4409   HAVE_FREEBSD_OS_TRUE='#'
4410   HAVE_FREEBSD_OS_FALSE=
4411 fi
4412 fi
4413
4414 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4415 then
4416
4417
4418 if $TRUEPRG; then
4419   HAVE_NETBSD_OS_TRUE=
4420   HAVE_NETBSD_OS_FALSE='#'
4421 else
4422   HAVE_NETBSD_OS_TRUE='#'
4423   HAVE_NETBSD_OS_FALSE=
4424 fi
4425         cat >>confdefs.h <<\_ACEOF
4426 #define HAVE_NETBSD_OS 1
4427 _ACEOF
4428
4429 else
4430
4431
4432 if $FALSEPRG; then
4433   HAVE_NETBSD_OS_TRUE=
4434   HAVE_NETBSD_OS_FALSE='#'
4435 else
4436   HAVE_NETBSD_OS_TRUE='#'
4437   HAVE_NETBSD_OS_FALSE=
4438 fi
4439 fi
4440
4441 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4442 then
4443
4444
4445 if $TRUEPRG; then
4446   HAVE_OPENBSD_OS_TRUE=
4447   HAVE_OPENBSD_OS_FALSE='#'
4448 else
4449   HAVE_OPENBSD_OS_TRUE='#'
4450   HAVE_OPENBSD_OS_FALSE=
4451 fi
4452         cat >>confdefs.h <<\_ACEOF
4453 #define HAVE_OPENBSD_OS 1
4454 _ACEOF
4455
4456 else
4457
4458
4459 if $FALSEPRG; then
4460   HAVE_OPENBSD_OS_TRUE=
4461   HAVE_OPENBSD_OS_FALSE='#'
4462 else
4463   HAVE_OPENBSD_OS_TRUE='#'
4464   HAVE_OPENBSD_OS_FALSE=
4465 fi
4466 fi
4467
4468 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4469 then
4470
4471
4472 if $TRUEPRG; then
4473   HAVE_BSDI_OS_TRUE=
4474   HAVE_BSDI_OS_FALSE='#'
4475 else
4476   HAVE_BSDI_OS_TRUE='#'
4477   HAVE_BSDI_OS_FALSE=
4478 fi
4479         cat >>confdefs.h <<\_ACEOF
4480 #define HAVE_BSDI_OS 1
4481 _ACEOF
4482
4483 else
4484
4485
4486 if $FALSEPRG; then
4487   HAVE_BSDI_OS_TRUE=
4488   HAVE_BSDI_OS_FALSE='#'
4489 else
4490   HAVE_BSDI_OS_TRUE='#'
4491   HAVE_BSDI_OS_FALSE=
4492 fi
4493 fi
4494
4495 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
4496 then
4497
4498
4499 if $TRUEPRG; then
4500   HAVE_SGI_OS_TRUE=
4501   HAVE_SGI_OS_FALSE='#'
4502 else
4503   HAVE_SGI_OS_TRUE='#'
4504   HAVE_SGI_OS_FALSE=
4505 fi
4506         cat >>confdefs.h <<\_ACEOF
4507 #define HAVE_SGI_OS 1
4508 _ACEOF
4509
4510 else
4511
4512
4513 if $FALSEPRG; then
4514   HAVE_SGI_OS_TRUE=
4515   HAVE_SGI_OS_FALSE='#'
4516 else
4517   HAVE_SGI_OS_TRUE='#'
4518   HAVE_SGI_OS_FALSE=
4519 fi
4520 fi
4521
4522 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4523 then
4524
4525
4526 if $TRUEPRG; then
4527   HAVE_IRIX_OS_TRUE=
4528   HAVE_IRIX_OS_FALSE='#'
4529 else
4530   HAVE_IRIX_OS_TRUE='#'
4531   HAVE_IRIX_OS_FALSE=
4532 fi
4533         cat >>confdefs.h <<\_ACEOF
4534 #define HAVE_IRIX_OS 1
4535 _ACEOF
4536
4537 else
4538
4539
4540 if $FALSEPRG; then
4541   HAVE_IRIX_OS_TRUE=
4542   HAVE_IRIX_OS_FALSE='#'
4543 else
4544   HAVE_IRIX_OS_TRUE='#'
4545   HAVE_IRIX_OS_FALSE=
4546 fi
4547 fi
4548
4549 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4550 then
4551
4552
4553 if $TRUEPRG; then
4554   HAVE_DARWIN_OS_TRUE=
4555   HAVE_DARWIN_OS_FALSE='#'
4556 else
4557   HAVE_DARWIN_OS_TRUE='#'
4558   HAVE_DARWIN_OS_FALSE=
4559 fi
4560     cat >>confdefs.h <<\_ACEOF
4561 #define HAVE_DARWIN_OS 1
4562 _ACEOF
4563
4564 else
4565
4566
4567 if $FALSEPRG; then
4568   HAVE_DARWIN_OS_TRUE=
4569   HAVE_DARWIN_OS_FALSE='#'
4570 else
4571   HAVE_DARWIN_OS_TRUE='#'
4572   HAVE_DARWIN_OS_FALSE=
4573 fi
4574 fi
4575
4576
4577 # -----------------------------------------------------------
4578 # ----------------------------------------------------------
4579 echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
4580 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6
4581 if test "x$DISTNAME" != "x"
4582 then
4583         echo "distname set to $DISTNAME"
4584 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4585 then
4586         DISTNAME=alpha
4587 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4588 then
4589         DISTNAME=aix
4590 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4591 then
4592         DISTNAME=hpux
4593 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4594 then
4595         DISTNAME=solaris
4596 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4597 then
4598         DISTNAME=freebsd
4599 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4600 then
4601         DISTNAME=netbsd
4602 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4603 then
4604         DISTNAME=openbsd
4605 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4606 then
4607         DISTNAME=irix
4608 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4609 then
4610         DISTNAME=bsdi
4611 elif test -f /etc/SuSE-release
4612 then
4613         DISTNAME=suse
4614 elif test -d /etc/SuSEconfig
4615 then
4616         DISTNAME=suse5
4617 elif test -f /etc/mandrake-release
4618 then
4619         DISTNAME=mandrake
4620 elif test -f /etc/whitebox-release
4621 then
4622        DISTNAME=redhat
4623 elif test -f /etc/redhat-release
4624 then
4625         DISTNAME=redhat
4626 elif test -f /etc/gentoo-release
4627 then
4628         DISTNAME=gentoo
4629 elif test -f /etc/debian_version
4630 then
4631         DISTNAME=debian
4632 elif test -f /etc/slackware-version
4633 then
4634         DISTNAME=slackware
4635 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4636 then
4637     DISTNAME=darwin
4638 elif test -f /etc/engarde-version
4639 then
4640         DISTNAME=engarde
4641 elif test "$CYGWIN" = yes
4642 then
4643         DISTNAME=cygwin
4644         cat >>confdefs.h <<\_ACEOF
4645 #define HAVE_CYGWIN 1
4646 _ACEOF
4647
4648 else
4649         DISTNAME=unknown
4650 fi
4651 echo "$as_me:$LINENO: result: done" >&5
4652 echo "${ECHO_T}done" >&6
4653
4654
4655 # -----------------------------------------------------------
4656 # ----------------------------------------------------------
4657
4658
4659
4660 if false; then
4661   INSIDE_GNOME_COMMON_TRUE=
4662   INSIDE_GNOME_COMMON_FALSE='#'
4663 else
4664   INSIDE_GNOME_COMMON_TRUE='#'
4665   INSIDE_GNOME_COMMON_FALSE=
4666 fi
4667
4668         test -n "$ACLOCAL_FLAGS" && ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
4669
4670         for k in gnome-macros ; do ACLOCAL="$ACLOCAL -I $k" ; done
4671
4672
4673 # ------------------------------------------------------------------
4674 #  If the user has not set --prefix, we set our default to nothing.
4675 #  In this case, if the user has not set --sysconfdir, we set it
4676 #  to the package default of /etc/bacula.  If either --prefix or
4677 #  --sysconfdir is set, we leave sysconfdir alone except to eval it.
4678 # ------------------------------------------------------------------
4679 if test x${prefix} = xNONE ; then
4680     if test `eval echo ${sysconfdir}` = NONE/etc ; then
4681         sysconfdir=/etc/bacula
4682     fi
4683     prefix=
4684 fi
4685 sysconfdir=`eval echo ${sysconfdir}`
4686
4687 # -------------------------------------------------------------------------
4688 #  If the user has not set --exec-prefix, we default to ${prefix}
4689 # -------------------------------------------------------------------------
4690 if test x${exec_prefix} = xNONE ; then
4691     exec_prefix=${prefix}
4692 fi
4693
4694 # ------------------------------------------------------------------
4695 # If the user has not set --sbindir, we set our default as /sbin
4696 # ------------------------------------------------------------------
4697 if test x$sbindir = x'${exec_prefix}/sbin' ; then
4698     sbindir=${exec_prefix}/sbin
4699 fi
4700 sbindir=`eval echo ${sbindir}`
4701
4702 # ------------------------------------------------------------------
4703 # All list of languages for which a translation exist. Each
4704 #  language is separated by a space.
4705 # ------------------------------------------------------------------
4706 ALL_LINGUAS=""
4707
4708 for ac_prog in msgfmt
4709 do
4710   # Extract the first word of "$ac_prog", so it can be a program name with args.
4711 set dummy $ac_prog; ac_word=$2
4712 echo "$as_me:$LINENO: checking for $ac_word" >&5
4713 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4714 if test "${ac_cv_path_MSGFMT+set}" = set; then
4715   echo $ECHO_N "(cached) $ECHO_C" >&6
4716 else
4717   case $MSGFMT in
4718   [\\/]* | ?:[\\/]*)
4719   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4720   ;;
4721   *)
4722   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4723 for as_dir in $PATH
4724 do
4725   IFS=$as_save_IFS
4726   test -z "$as_dir" && as_dir=.
4727   for ac_exec_ext in '' $ac_executable_extensions; do
4728   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4729     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
4730     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4731     break 2
4732   fi
4733 done
4734 done
4735
4736   ;;
4737 esac
4738 fi
4739 MSGFMT=$ac_cv_path_MSGFMT
4740
4741 if test -n "$MSGFMT"; then
4742   echo "$as_me:$LINENO: result: $MSGFMT" >&5
4743 echo "${ECHO_T}$MSGFMT" >&6
4744 else
4745   echo "$as_me:$LINENO: result: no" >&5
4746 echo "${ECHO_T}no" >&6
4747 fi
4748
4749   test -n "$MSGFMT" && break
4750 done
4751 test -n "$MSGFMT" || MSGFMT="no"
4752
4753 if test "$MSGFMT" = "no"
4754 then
4755    echo 'msgfmt program not found, disabling NLS !'
4756    USE_NLS=no
4757    USE_INCLUDED_LIBINTL=no
4758 #else
4759 #   AM_GNU_GETTEXT
4760 fi
4761
4762
4763 support_mysql=no
4764 support_sqlite=no
4765 support_sqlite3=no
4766 support_postgresql=no
4767 support_smartalloc=yes
4768 support_readline=yes
4769 support_conio=yes
4770 support_gnome=no
4771 support_wx_console=no
4772 gnome_version=
4773 support_static_tools=no
4774 support_static_fd=no
4775 support_static_sd=no
4776 support_static_dir=no
4777 support_static_cons=no
4778 support_python=no
4779 build_client_only=no
4780 cats=
4781 db_name=Internal
4782 DB_NAME=bdb
4783
4784
4785 # -------------------------------------------
4786 # gnome (default off)
4787 # -------------------------------------------
4788 # Check whether --enable-gnome or --disable-gnome was given.
4789 if test "${enable_gnome+set}" = set; then
4790   enableval="$enable_gnome"
4791   if test x$enableval = xyes; then
4792     support_gnome=yes
4793   fi
4794 fi;
4795
4796 GNOME_DIR=
4797 if test x$support_gnome = xyes; then
4798   abc=`$PKGCONFIG --exists libgnomeui-2.0`
4799   pkg=$?
4800   if test $pkg = 0; then
4801      GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
4802      GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
4803      GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
4804      GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
4805
4806
4807
4808
4809      GNOME_DIR=src/gnome2-console
4810      gnome_version="Version 2.x"
4811   else
4812
4813
4814
4815
4816
4817
4818
4819
4820
4821
4822
4823 # Check whether --with-gnome-includes or --without-gnome-includes was given.
4824 if test "${with_gnome_includes+set}" = set; then
4825   withval="$with_gnome_includes"
4826
4827         CFLAGS="$CFLAGS -I$withval"
4828
4829 fi;
4830
4831
4832 # Check whether --with-gnome-libs or --without-gnome-libs was given.
4833 if test "${with_gnome_libs+set}" = set; then
4834   withval="$with_gnome_libs"
4835
4836         LDFLAGS="$LDFLAGS -L$withval"
4837         gnome_prefix=$withval
4838
4839 fi;
4840
4841
4842 # Check whether --with-gnome or --without-gnome was given.
4843 if test "${with_gnome+set}" = set; then
4844   withval="$with_gnome"
4845   if test x$withval = xyes; then
4846                         want_gnome=yes
4847                                                                         :
4848                 else
4849                         if test "x$withval" = xno; then
4850                                 want_gnome=no
4851                         else
4852                                 want_gnome=yes
4853                                 LDFLAGS="$LDFLAGS -L$withval/lib"
4854                                 CFLAGS="$CFLAGS -I$withval/include"
4855                                 gnome_prefix=$withval/lib
4856                         fi
4857                 fi
4858 else
4859   want_gnome=yes
4860 fi;
4861
4862         if test "x$want_gnome" = xyes; then
4863
4864             # Extract the first word of "gnome-config", so it can be a program name with args.
4865 set dummy gnome-config; ac_word=$2
4866 echo "$as_me:$LINENO: checking for $ac_word" >&5
4867 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4868 if test "${ac_cv_path_GNOME_CONFIG+set}" = set; then
4869   echo $ECHO_N "(cached) $ECHO_C" >&6
4870 else
4871   case $GNOME_CONFIG in
4872   [\\/]* | ?:[\\/]*)
4873   ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
4874   ;;
4875   *)
4876   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4877 for as_dir in $PATH
4878 do
4879   IFS=$as_save_IFS
4880   test -z "$as_dir" && as_dir=.
4881   for ac_exec_ext in '' $ac_executable_extensions; do
4882   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4883     ac_cv_path_GNOME_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4884     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4885     break 2
4886   fi
4887 done
4888 done
4889
4890   test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
4891   ;;
4892 esac
4893 fi
4894 GNOME_CONFIG=$ac_cv_path_GNOME_CONFIG
4895
4896 if test -n "$GNOME_CONFIG"; then
4897   echo "$as_me:$LINENO: result: $GNOME_CONFIG" >&5
4898 echo "${ECHO_T}$GNOME_CONFIG" >&6
4899 else
4900   echo "$as_me:$LINENO: result: no" >&5
4901 echo "${ECHO_T}no" >&6
4902 fi
4903
4904             if test "$GNOME_CONFIG" = "no"; then
4905               no_gnome_config="yes"
4906             else
4907               echo "$as_me:$LINENO: checking if $GNOME_CONFIG works" >&5
4908 echo $ECHO_N "checking if $GNOME_CONFIG works... $ECHO_C" >&6
4909               if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then
4910                 echo "$as_me:$LINENO: result: yes" >&5
4911 echo "${ECHO_T}yes" >&6
4912
4913
4914         # Extract the first word of "orbit-config", so it can be a program name with args.
4915 set dummy orbit-config; ac_word=$2
4916 echo "$as_me:$LINENO: checking for $ac_word" >&5
4917 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4918 if test "${ac_cv_path_ORBIT_CONFIG+set}" = set; then
4919   echo $ECHO_N "(cached) $ECHO_C" >&6
4920 else
4921   case $ORBIT_CONFIG in
4922   [\\/]* | ?:[\\/]*)
4923   ac_cv_path_ORBIT_CONFIG="$ORBIT_CONFIG" # Let the user override the test with a path.
4924   ;;
4925   *)
4926   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4927 for as_dir in $PATH
4928 do
4929   IFS=$as_save_IFS
4930   test -z "$as_dir" && as_dir=.
4931   for ac_exec_ext in '' $ac_executable_extensions; do
4932   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4933     ac_cv_path_ORBIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4934     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4935     break 2
4936   fi
4937 done
4938 done
4939
4940   test -z "$ac_cv_path_ORBIT_CONFIG" && ac_cv_path_ORBIT_CONFIG="no"
4941   ;;
4942 esac
4943 fi
4944 ORBIT_CONFIG=$ac_cv_path_ORBIT_CONFIG
4945
4946 if test -n "$ORBIT_CONFIG"; then
4947   echo "$as_me:$LINENO: result: $ORBIT_CONFIG" >&5
4948 echo "${ECHO_T}$ORBIT_CONFIG" >&6
4949 else
4950   echo "$as_me:$LINENO: result: no" >&5
4951 echo "${ECHO_T}no" >&6
4952 fi
4953
4954         # Extract the first word of "orbit-idl", so it can be a program name with args.
4955 set dummy orbit-idl; ac_word=$2
4956 echo "$as_me:$LINENO: checking for $ac_word" >&5
4957 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4958 if test "${ac_cv_path_ORBIT_IDL+set}" = set; then
4959   echo $ECHO_N "(cached) $ECHO_C" >&6
4960 else
4961   case $ORBIT_IDL in
4962   [\\/]* | ?:[\\/]*)
4963   ac_cv_path_ORBIT_IDL="$ORBIT_IDL" # Let the user override the test with a path.
4964   ;;
4965   *)
4966   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4967 for as_dir in $PATH
4968 do
4969   IFS=$as_save_IFS
4970   test -z "$as_dir" && as_dir=.
4971   for ac_exec_ext in '' $ac_executable_extensions; do
4972   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4973     ac_cv_path_ORBIT_IDL="$as_dir/$ac_word$ac_exec_ext"
4974     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4975     break 2
4976   fi
4977 done
4978 done
4979
4980   test -z "$ac_cv_path_ORBIT_IDL" && ac_cv_path_ORBIT_IDL="no"
4981   ;;
4982 esac
4983 fi
4984 ORBIT_IDL=$ac_cv_path_ORBIT_IDL
4985
4986 if test -n "$ORBIT_IDL"; then
4987   echo "$as_me:$LINENO: result: $ORBIT_IDL" >&5
4988 echo "${ECHO_T}$ORBIT_IDL" >&6
4989 else
4990   echo "$as_me:$LINENO: result: no" >&5
4991 echo "${ECHO_T}no" >&6
4992 fi
4993
4994         echo "$as_me:$LINENO: checking for working ORBit environment" >&5
4995 echo $ECHO_N "checking for working ORBit environment... $ECHO_C" >&6
4996 if test "${gnome_cv_orbit_found+set}" = set; then
4997   echo $ECHO_N "(cached) $ECHO_C" >&6
4998 else
4999
5000                 if test x$ORBIT_CONFIG = xno -o x$ORBIT_IDL = xno; then
5001                         gnome_cv_orbit_found=no
5002                 else
5003                         gnome_cv_orbit_found=yes
5004                 fi
5005
5006 fi
5007 echo "$as_me:$LINENO: result: $gnome_cv_orbit_found" >&5
5008 echo "${ECHO_T}$gnome_cv_orbit_found" >&6
5009
5010
5011 if test x$gnome_cv_orbit_found = xyes; then
5012   HAVE_ORBIT_TRUE=
5013   HAVE_ORBIT_FALSE='#'
5014 else
5015   HAVE_ORBIT_TRUE='#'
5016   HAVE_ORBIT_FALSE=
5017 fi
5018         if test x$gnome_cv_orbit_found = xyes; then
5019
5020                 ORBIT_CFLAGS=`orbit-config --cflags client server`
5021                 ORBIT_LIBS=`orbit-config --use-service=name --libs client server`
5022
5023
5024         else
5025                 if test xfail = xfailure; then
5026                         { { echo "$as_me:$LINENO: error: ORBit not installed or installation problem" >&5
5027 echo "$as_me: error: ORBit not installed or installation problem" >&2;}
5028    { (exit 1); exit 1; }; }
5029                 fi
5030         fi
5031
5032         echo "$as_me:$LINENO: checking for gnorba libraries" >&5
5033 echo $ECHO_N "checking for gnorba libraries... $ECHO_C" >&6
5034 if test "${gnome_cv_gnorba_found+set}" = set; then
5035   echo $ECHO_N "(cached) $ECHO_C" >&6
5036 else
5037
5038                 gnome_cv_gnorba_found=no
5039                 if test x$gnome_cv_orbit_found = xyes; then
5040                         GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
5041                         GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
5042                         if test -n "$GNORBA_LIBS"; then
5043                                 gnome_cv_gnorba_found=yes
5044                         fi
5045                 fi
5046
5047 fi
5048 echo "$as_me:$LINENO: result: $gnome_cv_gnorba_found" >&5
5049 echo "${ECHO_T}$gnome_cv_gnorba_found" >&6
5050
5051
5052 if test x$gnome_cv_gnorba_found = xyes; then
5053   HAVE_GNORBA_TRUE=
5054   HAVE_GNORBA_FALSE='#'
5055 else
5056   HAVE_GNORBA_TRUE='#'
5057   HAVE_GNORBA_FALSE=
5058 fi
5059         if test x$gnome_cv_orbit_found = xyes; then
5060
5061                 GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
5062                 GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
5063
5064
5065         else
5066                 if test xfail = xfailure; then
5067                         { { echo "$as_me:$LINENO: error: gnorba library not installed or installation problem" >&5
5068 echo "$as_me: error: gnorba library not installed or installation problem" >&2;}
5069    { (exit 1); exit 1; }; }
5070                 fi
5071         fi
5072
5073                 GNOME_LIBS="`$GNOME_CONFIG --libs-only-l gnome`"
5074                 GNOMEUI_LIBS="`$GNOME_CONFIG --libs-only-l gnomeui`"
5075                 GNOMEGNORBA_LIBS="`$GNOME_CONFIG --libs-only-l gnorba gnomeui`"
5076                 GTKXMHTML_LIBS="`$GNOME_CONFIG --libs-only-l gtkxmhtml`"
5077                 ZVT_LIBS="`$GNOME_CONFIG --libs-only-l zvt`"
5078                 GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui`"
5079                 GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui`"
5080
5081               else
5082                 echo "$as_me:$LINENO: result: no" >&5
5083 echo "${ECHO_T}no" >&6
5084                 no_gnome_config="yes"
5085               fi
5086             fi
5087
5088             if test x$exec_prefix = xNONE; then
5089                 if test x$prefix = xNONE; then
5090                     gnome_prefix=$ac_default_prefix/lib
5091                 else
5092                     gnome_prefix=$prefix/lib
5093                 fi
5094             else
5095                 gnome_prefix=`eval echo \`echo $libdir\``
5096             fi
5097
5098             if test "$no_gnome_config" = "yes"; then
5099               echo "$as_me:$LINENO: checking for gnomeConf.sh file in $gnome_prefix" >&5
5100 echo $ECHO_N "checking for gnomeConf.sh file in $gnome_prefix... $ECHO_C" >&6
5101               if test -f $gnome_prefix/gnomeConf.sh; then
5102                 echo "$as_me:$LINENO: result: found" >&5
5103 echo "${ECHO_T}found" >&6
5104                 echo "loading gnome configuration from" \
5105                      "$gnome_prefix/gnomeConf.sh"
5106                 . $gnome_prefix/gnomeConf.sh
5107
5108               else
5109                 echo "$as_me:$LINENO: result: not found" >&5
5110 echo "${ECHO_T}not found" >&6
5111                 if test xfail = xfail; then
5112                   { { echo "$as_me:$LINENO: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&5
5113 echo "$as_me: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&2;}
5114    { (exit 1); exit 1; }; }
5115                 fi
5116               fi
5117             fi
5118         fi
5119
5120         if test -n ""; then
5121           n=""
5122           for i in $n; do
5123             echo "$as_me:$LINENO: checking extra library \"$i\"" >&5
5124 echo $ECHO_N "checking extra library \"$i\"... $ECHO_C" >&6
5125             case $i in
5126               applets)
5127
5128                 GNOME_APPLETS_LIBS=`$GNOME_CONFIG --libs-only-l applets`
5129                 echo "$as_me:$LINENO: result: $GNOME_APPLETS_LIBS" >&5
5130 echo "${ECHO_T}$GNOME_APPLETS_LIBS" >&6;;
5131               docklets)
5132
5133                 GNOME_DOCKLETS_LIBS=`$GNOME_CONFIG --libs-only-l docklets`
5134                 echo "$as_me:$LINENO: result: $GNOME_DOCKLETS_LIBS" >&5
5135 echo "${ECHO_T}$GNOME_DOCKLETS_LIBS" >&6;;
5136               capplet)
5137
5138                 GNOME_CAPPLET_LIBS=`$GNOME_CONFIG --libs-only-l capplet`
5139                 echo "$as_me:$LINENO: result: $GNOME_CAPPLET_LIBS" >&5
5140 echo "${ECHO_T}$GNOME_CAPPLET_LIBS" >&6;;
5141               *)
5142                 echo "$as_me:$LINENO: result: unknown library" >&5
5143 echo "${ECHO_T}unknown library" >&6
5144             esac
5145             EXTRA_INCLUDEDIR=`$GNOME_CONFIG --cflags $i`
5146             GNOME_INCLUDEDIR="$GNOME_INCLUDEDIR $EXTRA_INCLUDEDIR"
5147           done
5148         fi
5149
5150
5151      GNOME_DIR=src/gnome-console
5152      gnome_version="Version 1.4"
5153   fi
5154 fi
5155
5156
5157
5158 # -------------------------------------------
5159 # wx-console (default off)
5160 # -------------------------------------------
5161 # Check whether --enable-wx-console or --disable-wx-console was given.
5162 if test "${enable_wx_console+set}" = set; then
5163   enableval="$enable_wx_console"
5164   if test x$enableval = xyes; then
5165     support_wx_console=yes
5166   fi
5167 fi;
5168
5169 WX_DIR=
5170 if test x$support_wx_console = xyes; then
5171   abc=`$WXCONFIG --cppflags`
5172   pkg=$?
5173   if test $pkg = 0; then
5174      WXCONS_CPPFLAGS=`$WXCONFIG --cppflags`
5175      WXCONS_LDFLAGS=`$WXCONFIG --libs`
5176
5177
5178      WX_DIR=src/wx-console
5179   else
5180      echo " "
5181      echo "wx-config program not found. wx-console disabled."
5182      echo " "
5183      support_wx_console=no
5184   fi
5185 fi
5186
5187
5188
5189 # -------------------------------------------
5190 # tray-monitor (default off)
5191 # -------------------------------------------
5192 # Check whether --enable-tray-monitor or --disable-tray-monitor was given.
5193 if test "${enable_tray_monitor+set}" = set; then
5194   enableval="$enable_tray_monitor"
5195   if test x$enableval = xyes; then
5196     support_tray_monitor=yes
5197   fi
5198 fi;
5199
5200 TRAY_MONITOR_DIR=
5201 if test x$support_tray_monitor = xyes; then
5202   abc=`$PKGCONFIG --exists gtk+-2.0`
5203   pkg=$?
5204   if test $pkg = 0; then
5205      TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
5206      TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
5207
5208
5209      TRAY_MONITOR_DIR=src/tray-monitor
5210      abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
5211      pkg=$?
5212      if test $pkg = 0; then
5213         cat >>confdefs.h <<\_ACEOF
5214 #define HAVE_GTK_2_4 1
5215 _ACEOF
5216
5217      fi
5218   fi
5219 fi
5220
5221
5222 # -------------------------------------------
5223 # smartalloc (default off)
5224 # -------------------------------------------
5225 # Check whether --enable-smartalloc or --disable-smartalloc was given.
5226 if test "${enable_smartalloc+set}" = set; then
5227   enableval="$enable_smartalloc"
5228   if test x$enableval = xno; then
5229     support_smartalloc=no
5230   fi
5231 fi;
5232
5233 if test x$support_smartalloc = xyes; then
5234    cat >>confdefs.h <<\_ACEOF
5235 #define SMARTALLOC 1
5236 _ACEOF
5237
5238 fi
5239
5240 # -------------------------------------------
5241 # static-tools (default off)
5242 # -------------------------------------------
5243 # Check whether --enable-static-tools or --disable-static-tools was given.
5244 if test "${enable_static_tools+set}" = set; then
5245   enableval="$enable_static_tools"
5246   if test x$enableval = xyes; then
5247      support_static_tools=yes
5248    fi
5249 fi;
5250
5251 TTOOL_LDFLAGS=
5252 if test x$support_static_tools = xyes; then
5253    TTOOL_LDFLAGS="-static"
5254 fi
5255
5256
5257 # -------------------------------------------
5258 # static-fd    (default off)
5259 # -------------------------------------------
5260 # Check whether --enable-static-fd or --disable-static-fd was given.
5261 if test "${enable_static_fd+set}" = set; then
5262   enableval="$enable_static_fd"
5263   if test x$enableval = xyes; then
5264      support_static_fd=yes
5265    fi
5266 fi;
5267
5268 STATIC_FD=
5269 if test x$support_static_fd = xyes; then
5270    STATIC_FD="static-bacula-fd"
5271 fi
5272
5273
5274 # -------------------------------------------
5275 # static-sd    (default off)
5276 # -------------------------------------------
5277 # Check whether --enable-static-sd or --disable-static-sd was given.
5278 if test "${enable_static_sd+set}" = set; then
5279   enableval="$enable_static_sd"
5280   if test x$enableval = xyes; then
5281      support_static_sd=yes
5282    fi
5283 fi;
5284
5285 STATIC_SD=
5286 if test x$support_static_sd = xyes; then
5287    STATIC_SD="static-bacula-sd"
5288 fi
5289
5290
5291 # -------------------------------------------
5292 # static-dir   (default off)
5293 # -------------------------------------------
5294 # Check whether --enable-static-dir or --disable-static-dir was given.
5295 if test "${enable_static_dir+set}" = set; then
5296   enableval="$enable_static_dir"
5297   if test x$enableval = xyes; then
5298      support_static_dir=yes
5299    fi
5300 fi;
5301
5302 STATIC_DIR=
5303 if test x$support_static_dir = xyes; then
5304    STATIC_DIR="static-bacula-dir"
5305 fi
5306
5307
5308 # -------------------------------------------
5309 # static-cons  (default off)
5310 # -------------------------------------------
5311 # Check whether --enable-static-cons or --disable-static-cons was given.
5312 if test "${enable_static_cons+set}" = set; then
5313   enableval="$enable_static_cons"
5314   if test x$enableval = xyes; then
5315      support_static_cons=yes
5316    fi
5317 fi;
5318
5319 STATIC_CONS=
5320 STATIC_GNOME_CONS=
5321 STATIC_WX_CONS=
5322 if test x$support_static_cons = xyes; then
5323    STATIC_CONS="static-bconsole"
5324    STATIC_GNOME_CONS="static-gnome-console"
5325    STATIC_WX_CONS="static-wx-console"
5326 fi
5327
5328
5329
5330
5331 # -------------------------------------------
5332 # client_only  (default off)
5333 # -------------------------------------------
5334 # Check whether --enable-client-only or --disable-client-only was given.
5335 if test "${enable_client_only+set}" = set; then
5336   enableval="$enable_client_only"
5337   if test x$enableval = xyes; then
5338      build_client_only=yes
5339     db_name=None
5340     DB_NAME=none
5341    fi
5342 fi;
5343 if test x$build_client_only = xno; then
5344    ALL_DIRS="subdirs"
5345 else
5346    ALL_DIRS=""
5347 fi
5348
5349
5350 # ---------------------------------------------------
5351 # Check for conio (Bacula readline substitute)(
5352 # ---------------------------------------------------
5353 # this allows you to turn it completely off
5354 # Check whether --enable-conio or --disable-conio was given.
5355 if test "${enable_conio+set}" = set; then
5356   enableval="$enable_conio"
5357   if test x$enableval = xno; then
5358     support_conio=no
5359   fi
5360 fi;
5361
5362 got_conio="no"
5363 if test x$support_conio = xyes; then
5364    echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5365 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5366 if test "${ac_cv_header_stdc+set}" = set; then
5367   echo $ECHO_N "(cached) $ECHO_C" >&6
5368 else
5369   cat >conftest.$ac_ext <<_ACEOF
5370 /* confdefs.h.  */
5371 _ACEOF
5372 cat confdefs.h >>conftest.$ac_ext
5373 cat >>conftest.$ac_ext <<_ACEOF
5374 /* end confdefs.h.  */
5375 #include <stdlib.h>
5376 #include <stdarg.h>
5377 #include <string.h>
5378 #include <float.h>
5379
5380 int
5381 main ()
5382 {
5383
5384   ;
5385   return 0;
5386 }
5387 _ACEOF
5388 rm -f conftest.$ac_objext
5389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5390   (eval $ac_compile) 2>conftest.er1
5391   ac_status=$?
5392   grep -v '^ *+' conftest.er1 >conftest.err
5393   rm -f conftest.er1
5394   cat conftest.err >&5
5395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5396   (exit $ac_status); } &&
5397          { ac_try='test -z "$ac_c_werror_flag"
5398                          || test ! -s conftest.err'
5399   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5400   (eval $ac_try) 2>&5
5401   ac_status=$?
5402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5403   (exit $ac_status); }; } &&
5404          { ac_try='test -s conftest.$ac_objext'
5405   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5406   (eval $ac_try) 2>&5
5407   ac_status=$?
5408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5409   (exit $ac_status); }; }; then
5410   ac_cv_header_stdc=yes
5411 else
5412   echo "$as_me: failed program was:" >&5
5413 sed 's/^/| /' conftest.$ac_ext >&5
5414
5415 ac_cv_header_stdc=no
5416 fi
5417 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5418
5419 if test $ac_cv_header_stdc = yes; then
5420   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5421   cat >conftest.$ac_ext <<_ACEOF
5422 /* confdefs.h.  */
5423 _ACEOF
5424 cat confdefs.h >>conftest.$ac_ext
5425 cat >>conftest.$ac_ext <<_ACEOF
5426 /* end confdefs.h.  */
5427 #include <string.h>
5428
5429 _ACEOF
5430 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5431   $EGREP "memchr" >/dev/null 2>&1; then
5432   :
5433 else
5434   ac_cv_header_stdc=no
5435 fi
5436 rm -f conftest*
5437
5438 fi
5439
5440 if test $ac_cv_header_stdc = yes; then
5441   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5442   cat >conftest.$ac_ext <<_ACEOF
5443 /* confdefs.h.  */
5444 _ACEOF
5445 cat confdefs.h >>conftest.$ac_ext
5446 cat >>conftest.$ac_ext <<_ACEOF
5447 /* end confdefs.h.  */
5448 #include <stdlib.h>
5449
5450 _ACEOF
5451 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5452   $EGREP "free" >/dev/null 2>&1; then
5453   :
5454 else
5455   ac_cv_header_stdc=no
5456 fi
5457 rm -f conftest*
5458
5459 fi
5460
5461 if test $ac_cv_header_stdc = yes; then
5462   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5463   if test "$cross_compiling" = yes; then
5464   :
5465 else
5466   cat >conftest.$ac_ext <<_ACEOF
5467 /* confdefs.h.  */
5468 _ACEOF
5469 cat confdefs.h >>conftest.$ac_ext
5470 cat >>conftest.$ac_ext <<_ACEOF
5471 /* end confdefs.h.  */
5472 #include <ctype.h>
5473 #if ((' ' & 0x0FF) == 0x020)
5474 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5475 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5476 #else
5477 # define ISLOWER(c) \
5478                    (('a' <= (c) && (c) <= 'i') \
5479                      || ('j' <= (c) && (c) <= 'r') \
5480                      || ('s' <= (c) && (c) <= 'z'))
5481 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5482 #endif
5483
5484 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5485 int
5486 main ()
5487 {
5488   int i;
5489   for (i = 0; i < 256; i++)
5490     if (XOR (islower (i), ISLOWER (i))
5491         || toupper (i) != TOUPPER (i))
5492       exit(2);
5493   exit (0);
5494 }
5495 _ACEOF
5496 rm -f conftest$ac_exeext
5497 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5498   (eval $ac_link) 2>&5
5499   ac_status=$?
5500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5501   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5502   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5503   (eval $ac_try) 2>&5
5504   ac_status=$?
5505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5506   (exit $ac_status); }; }; then
5507   :
5508 else
5509   echo "$as_me: program exited with status $ac_status" >&5
5510 echo "$as_me: failed program was:" >&5
5511 sed 's/^/| /' conftest.$ac_ext >&5
5512
5513 ( exit $ac_status )
5514 ac_cv_header_stdc=no
5515 fi
5516 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5517 fi
5518 fi
5519 fi
5520 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5521 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5522 if test $ac_cv_header_stdc = yes; then
5523
5524 cat >>confdefs.h <<\_ACEOF
5525 #define STDC_HEADERS 1
5526 _ACEOF
5527
5528 fi
5529
5530 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5531
5532
5533
5534
5535
5536
5537
5538
5539
5540 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5541                   inttypes.h stdint.h unistd.h
5542 do
5543 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5544 echo "$as_me:$LINENO: checking for $ac_header" >&5
5545 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5546 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5547   echo $ECHO_N "(cached) $ECHO_C" >&6
5548 else
5549   cat >conftest.$ac_ext <<_ACEOF
5550 /* confdefs.h.  */
5551 _ACEOF
5552 cat confdefs.h >>conftest.$ac_ext
5553 cat >>conftest.$ac_ext <<_ACEOF
5554 /* end confdefs.h.  */
5555 $ac_includes_default
5556
5557 #include <$ac_header>
5558 _ACEOF
5559 rm -f conftest.$ac_objext
5560 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5561   (eval $ac_compile) 2>conftest.er1
5562   ac_status=$?
5563   grep -v '^ *+' conftest.er1 >conftest.err
5564   rm -f conftest.er1
5565   cat conftest.err >&5
5566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5567   (exit $ac_status); } &&
5568          { ac_try='test -z "$ac_c_werror_flag"
5569                          || test ! -s conftest.err'
5570   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5571   (eval $ac_try) 2>&5
5572   ac_status=$?
5573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5574   (exit $ac_status); }; } &&
5575          { ac_try='test -s conftest.$ac_objext'
5576   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5577   (eval $ac_try) 2>&5
5578   ac_status=$?
5579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5580   (exit $ac_status); }; }; then
5581   eval "$as_ac_Header=yes"
5582 else
5583   echo "$as_me: failed program was:" >&5
5584 sed 's/^/| /' conftest.$ac_ext >&5
5585
5586 eval "$as_ac_Header=no"
5587 fi
5588 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5589 fi
5590 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5591 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5592 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5593   cat >>confdefs.h <<_ACEOF
5594 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5595 _ACEOF
5596
5597 fi
5598
5599 done
5600
5601
5602 if test "${ac_cv_header_termcap_h+set}" = set; then
5603   echo "$as_me:$LINENO: checking for termcap.h" >&5
5604 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
5605 if test "${ac_cv_header_termcap_h+set}" = set; then
5606   echo $ECHO_N "(cached) $ECHO_C" >&6
5607 fi
5608 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
5609 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
5610 else
5611   # Is the header compilable?
5612 echo "$as_me:$LINENO: checking termcap.h usability" >&5
5613 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6
5614 cat >conftest.$ac_ext <<_ACEOF
5615 /* confdefs.h.  */
5616 _ACEOF
5617 cat confdefs.h >>conftest.$ac_ext
5618 cat >>conftest.$ac_ext <<_ACEOF
5619 /* end confdefs.h.  */
5620 $ac_includes_default
5621 #include <termcap.h>
5622 _ACEOF
5623 rm -f conftest.$ac_objext
5624 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5625   (eval $ac_compile) 2>conftest.er1
5626   ac_status=$?
5627   grep -v '^ *+' conftest.er1 >conftest.err
5628   rm -f conftest.er1
5629   cat conftest.err >&5
5630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5631   (exit $ac_status); } &&
5632          { ac_try='test -z "$ac_c_werror_flag"
5633                          || test ! -s conftest.err'
5634   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5635   (eval $ac_try) 2>&5
5636   ac_status=$?
5637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5638   (exit $ac_status); }; } &&
5639          { ac_try='test -s conftest.$ac_objext'
5640   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5641   (eval $ac_try) 2>&5
5642   ac_status=$?
5643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5644   (exit $ac_status); }; }; then
5645   ac_header_compiler=yes
5646 else
5647   echo "$as_me: failed program was:" >&5
5648 sed 's/^/| /' conftest.$ac_ext >&5
5649
5650 ac_header_compiler=no
5651 fi
5652 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5653 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5654 echo "${ECHO_T}$ac_header_compiler" >&6
5655
5656 # Is the header present?
5657 echo "$as_me:$LINENO: checking termcap.h presence" >&5
5658 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6
5659 cat >conftest.$ac_ext <<_ACEOF
5660 /* confdefs.h.  */
5661 _ACEOF
5662 cat confdefs.h >>conftest.$ac_ext
5663 cat >>conftest.$ac_ext <<_ACEOF
5664 /* end confdefs.h.  */
5665 #include <termcap.h>
5666 _ACEOF
5667 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5668   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5669   ac_status=$?
5670   grep -v '^ *+' conftest.er1 >conftest.err
5671   rm -f conftest.er1
5672   cat conftest.err >&5
5673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5674   (exit $ac_status); } >/dev/null; then
5675   if test -s conftest.err; then
5676     ac_cpp_err=$ac_c_preproc_warn_flag
5677     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5678   else
5679     ac_cpp_err=
5680   fi
5681 else
5682   ac_cpp_err=yes
5683 fi
5684 if test -z "$ac_cpp_err"; then
5685   ac_header_preproc=yes
5686 else
5687   echo "$as_me: failed program was:" >&5
5688 sed 's/^/| /' conftest.$ac_ext >&5
5689
5690   ac_header_preproc=no
5691 fi
5692 rm -f conftest.err conftest.$ac_ext
5693 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5694 echo "${ECHO_T}$ac_header_preproc" >&6
5695
5696 # So?  What about this header?
5697 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5698   yes:no: )
5699     { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
5700 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5701     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the compiler's result" >&5
5702 echo "$as_me: WARNING: termcap.h: proceeding with the compiler's result" >&2;}
5703     ac_header_preproc=yes
5704     ;;
5705   no:yes:* )
5706     { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
5707 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
5708     { echo "$as_me:$LINENO: WARNING: termcap.h:     check for missing prerequisite headers?" >&5
5709 echo "$as_me: WARNING: termcap.h:     check for missing prerequisite headers?" >&2;}
5710     { echo "$as_me:$LINENO: WARNING: termcap.h: see the Autoconf documentation" >&5
5711 echo "$as_me: WARNING: termcap.h: see the Autoconf documentation" >&2;}
5712     { echo "$as_me:$LINENO: WARNING: termcap.h:     section \"Present But Cannot Be Compiled\"" >&5
5713 echo "$as_me: WARNING: termcap.h:     section \"Present But Cannot Be Compiled\"" >&2;}
5714     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
5715 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
5716     { echo "$as_me:$LINENO: WARNING: termcap.h: in the future, the compiler will take precedence" >&5
5717 echo "$as_me: WARNING: termcap.h: in the future, the compiler will take precedence" >&2;}
5718     (
5719       cat <<\_ASBOX
5720 ## ------------------------------------------ ##
5721 ## Report this to the AC_PACKAGE_NAME lists.  ##
5722 ## ------------------------------------------ ##
5723 _ASBOX
5724     ) |
5725       sed "s/^/$as_me: WARNING:     /" >&2
5726     ;;
5727 esac
5728 echo "$as_me:$LINENO: checking for termcap.h" >&5
5729 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
5730 if test "${ac_cv_header_termcap_h+set}" = set; then
5731   echo $ECHO_N "(cached) $ECHO_C" >&6
5732 else
5733   ac_cv_header_termcap_h=$ac_header_preproc
5734 fi
5735 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
5736 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
5737
5738 fi
5739 if test $ac_cv_header_termcap_h = yes; then
5740    echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
5741 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
5742 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
5743   echo $ECHO_N "(cached) $ECHO_C" >&6
5744 else
5745   ac_check_lib_save_LIBS=$LIBS
5746 LIBS="-ltermcap  $LIBS"
5747 cat >conftest.$ac_ext <<_ACEOF
5748 /* confdefs.h.  */
5749 _ACEOF
5750 cat confdefs.h >>conftest.$ac_ext
5751 cat >>conftest.$ac_ext <<_ACEOF
5752 /* end confdefs.h.  */
5753
5754 /* Override any gcc2 internal prototype to avoid an error.  */
5755 #ifdef __cplusplus
5756 extern "C"
5757 #endif
5758 /* We use char because int might match the return type of a gcc2
5759    builtin and then its argument prototype would still apply.  */
5760 char tgetent ();
5761 int
5762 main ()
5763 {
5764 tgetent ();
5765   ;
5766   return 0;
5767 }
5768 _ACEOF
5769 rm -f conftest.$ac_objext conftest$ac_exeext
5770 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5771   (eval $ac_link) 2>conftest.er1
5772   ac_status=$?
5773   grep -v '^ *+' conftest.er1 >conftest.err
5774   rm -f conftest.er1
5775   cat conftest.err >&5
5776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5777   (exit $ac_status); } &&
5778          { ac_try='test -z "$ac_c_werror_flag"
5779                          || test ! -s conftest.err'
5780   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5781   (eval $ac_try) 2>&5
5782   ac_status=$?
5783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5784   (exit $ac_status); }; } &&
5785          { ac_try='test -s conftest$ac_exeext'
5786   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5787   (eval $ac_try) 2>&5
5788   ac_status=$?
5789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5790   (exit $ac_status); }; }; then
5791   ac_cv_lib_termcap_tgetent=yes
5792 else
5793   echo "$as_me: failed program was:" >&5
5794 sed 's/^/| /' conftest.$ac_ext >&5
5795
5796 ac_cv_lib_termcap_tgetent=no
5797 fi
5798 rm -f conftest.err conftest.$ac_objext \
5799       conftest$ac_exeext conftest.$ac_ext
5800 LIBS=$ac_check_lib_save_LIBS
5801 fi
5802 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
5803 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
5804 if test $ac_cv_lib_termcap_tgetent = yes; then
5805    CONS_LIBS="-ltermcap"
5806          CONS_OBJ="conio.o"
5807          CONS_SRC="conio.c"
5808          got_conio="yes"
5809          support_readline=no
5810
5811 cat >>confdefs.h <<\_ACEOF
5812 #define HAVE_CONIO 1
5813 _ACEOF
5814
5815
5816 else
5817    echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
5818 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6
5819 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
5820   echo $ECHO_N "(cached) $ECHO_C" >&6
5821 else
5822   ac_check_lib_save_LIBS=$LIBS
5823 LIBS="-lncurses  $LIBS"
5824 cat >conftest.$ac_ext <<_ACEOF
5825 /* confdefs.h.  */
5826 _ACEOF
5827 cat confdefs.h >>conftest.$ac_ext
5828 cat >>conftest.$ac_ext <<_ACEOF
5829 /* end confdefs.h.  */
5830
5831 /* Override any gcc2 internal prototype to avoid an error.  */
5832 #ifdef __cplusplus
5833 extern "C"
5834 #endif
5835 /* We use char because int might match the return type of a gcc2
5836    builtin and then its argument prototype would still apply.  */
5837 char tgetent ();
5838 int
5839 main ()
5840 {
5841 tgetent ();
5842   ;
5843   return 0;
5844 }
5845 _ACEOF
5846 rm -f conftest.$ac_objext conftest$ac_exeext
5847 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5848   (eval $ac_link) 2>conftest.er1
5849   ac_status=$?
5850   grep -v '^ *+' conftest.er1 >conftest.err
5851   rm -f conftest.er1
5852   cat conftest.err >&5
5853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5854   (exit $ac_status); } &&
5855          { ac_try='test -z "$ac_c_werror_flag"
5856                          || test ! -s conftest.err'
5857   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5858   (eval $ac_try) 2>&5
5859   ac_status=$?
5860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5861   (exit $ac_status); }; } &&
5862          { ac_try='test -s conftest$ac_exeext'
5863   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5864   (eval $ac_try) 2>&5
5865   ac_status=$?
5866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5867   (exit $ac_status); }; }; then
5868   ac_cv_lib_ncurses_tgetent=yes
5869 else
5870   echo "$as_me: failed program was:" >&5
5871 sed 's/^/| /' conftest.$ac_ext >&5
5872
5873 ac_cv_lib_ncurses_tgetent=no
5874 fi
5875 rm -f conftest.err conftest.$ac_objext \
5876       conftest$ac_exeext conftest.$ac_ext
5877 LIBS=$ac_check_lib_save_LIBS
5878 fi
5879 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
5880 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6
5881 if test $ac_cv_lib_ncurses_tgetent = yes; then
5882    CONS_LIBS="-lncurses"
5883            CONS_OBJ="conio.o"
5884            CONS_SRC="conio.c"
5885            got_conio="yes"
5886            support_readline=no
5887
5888 cat >>confdefs.h <<\_ACEOF
5889 #define HAVE_CONIO 1
5890 _ACEOF
5891
5892
5893 fi
5894
5895
5896 fi
5897
5898
5899 else
5900
5901
5902 for ac_header in curses.h
5903 do
5904 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5905 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5906   echo "$as_me:$LINENO: checking for $ac_header" >&5
5907 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5908 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5909   echo $ECHO_N "(cached) $ECHO_C" >&6
5910 fi
5911 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5912 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5913 else
5914   # Is the header compilable?
5915 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5916 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5917 cat >conftest.$ac_ext <<_ACEOF
5918 /* confdefs.h.  */
5919 _ACEOF
5920 cat confdefs.h >>conftest.$ac_ext
5921 cat >>conftest.$ac_ext <<_ACEOF
5922 /* end confdefs.h.  */
5923 $ac_includes_default
5924 #include <$ac_header>
5925 _ACEOF
5926 rm -f conftest.$ac_objext
5927 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5928   (eval $ac_compile) 2>conftest.er1
5929   ac_status=$?
5930   grep -v '^ *+' conftest.er1 >conftest.err
5931   rm -f conftest.er1
5932   cat conftest.err >&5
5933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5934   (exit $ac_status); } &&
5935          { ac_try='test -z "$ac_c_werror_flag"
5936                          || test ! -s conftest.err'
5937   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5938   (eval $ac_try) 2>&5
5939   ac_status=$?
5940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5941   (exit $ac_status); }; } &&
5942          { ac_try='test -s conftest.$ac_objext'
5943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5944   (eval $ac_try) 2>&5
5945   ac_status=$?
5946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5947   (exit $ac_status); }; }; then
5948   ac_header_compiler=yes
5949 else
5950   echo "$as_me: failed program was:" >&5
5951 sed 's/^/| /' conftest.$ac_ext >&5
5952
5953 ac_header_compiler=no
5954 fi
5955 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5956 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5957 echo "${ECHO_T}$ac_header_compiler" >&6
5958
5959 # Is the header present?
5960 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5961 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5962 cat >conftest.$ac_ext <<_ACEOF
5963 /* confdefs.h.  */
5964 _ACEOF
5965 cat confdefs.h >>conftest.$ac_ext
5966 cat >>conftest.$ac_ext <<_ACEOF
5967 /* end confdefs.h.  */
5968 #include <$ac_header>
5969 _ACEOF
5970 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5971   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5972   ac_status=$?
5973   grep -v '^ *+' conftest.er1 >conftest.err
5974   rm -f conftest.er1
5975   cat conftest.err >&5
5976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5977   (exit $ac_status); } >/dev/null; then
5978   if test -s conftest.err; then
5979     ac_cpp_err=$ac_c_preproc_warn_flag
5980     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5981   else
5982     ac_cpp_err=
5983   fi
5984 else
5985   ac_cpp_err=yes
5986 fi
5987 if test -z "$ac_cpp_err"; then
5988   ac_header_preproc=yes
5989 else
5990   echo "$as_me: failed program was:" >&5
5991 sed 's/^/| /' conftest.$ac_ext >&5
5992
5993   ac_header_preproc=no
5994 fi
5995 rm -f conftest.err conftest.$ac_ext
5996 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5997 echo "${ECHO_T}$ac_header_preproc" >&6
5998
5999 # So?  What about this header?
6000 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6001   yes:no: )
6002     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6003 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6004     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6005 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6006     ac_header_preproc=yes
6007     ;;
6008   no:yes:* )
6009     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6010 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6011     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6012 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6013     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6014 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6015     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6016 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6017     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6018 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6019     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6020 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6021     (
6022       cat <<\_ASBOX
6023 ## ------------------------------------------ ##
6024 ## Report this to the AC_PACKAGE_NAME lists.  ##
6025 ## ------------------------------------------ ##
6026 _ASBOX
6027     ) |
6028       sed "s/^/$as_me: WARNING:     /" >&2
6029     ;;
6030 esac
6031 echo "$as_me:$LINENO: checking for $ac_header" >&5
6032 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6033 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6034   echo $ECHO_N "(cached) $ECHO_C" >&6
6035 else
6036   eval "$as_ac_Header=\$ac_header_preproc"
6037 fi
6038 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6039 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6040
6041 fi
6042 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6043   cat >>confdefs.h <<_ACEOF
6044 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6045 _ACEOF
6046
6047 fi
6048
6049 done
6050
6051          echo "$as_me:$LINENO: checking for term.h" >&5
6052 echo $ECHO_N "checking for term.h... $ECHO_C" >&6
6053 if test "${ac_cv_header_term_h+set}" = set; then
6054   echo $ECHO_N "(cached) $ECHO_C" >&6
6055 else
6056   cat >conftest.$ac_ext <<_ACEOF
6057 /* confdefs.h.  */
6058 _ACEOF
6059 cat confdefs.h >>conftest.$ac_ext
6060 cat >>conftest.$ac_ext <<_ACEOF
6061 /* end confdefs.h.  */
6062 #if HAVE_CURSES_H
6063 #include <curses.h>
6064 #endif
6065
6066
6067 #include <term.h>
6068 _ACEOF
6069 rm -f conftest.$ac_objext
6070 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6071   (eval $ac_compile) 2>conftest.er1
6072   ac_status=$?
6073   grep -v '^ *+' conftest.er1 >conftest.err
6074   rm -f conftest.er1
6075   cat conftest.err >&5
6076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6077   (exit $ac_status); } &&
6078          { ac_try='test -z "$ac_c_werror_flag"
6079                          || test ! -s conftest.err'
6080   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6081   (eval $ac_try) 2>&5
6082   ac_status=$?
6083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6084   (exit $ac_status); }; } &&
6085          { ac_try='test -s conftest.$ac_objext'
6086   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6087   (eval $ac_try) 2>&5
6088   ac_status=$?
6089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6090   (exit $ac_status); }; }; then
6091   ac_cv_header_term_h=yes
6092 else
6093   echo "$as_me: failed program was:" >&5
6094 sed 's/^/| /' conftest.$ac_ext >&5
6095
6096 ac_cv_header_term_h=no
6097 fi
6098 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6099 fi
6100 echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
6101 echo "${ECHO_T}$ac_cv_header_term_h" >&6
6102 if test $ac_cv_header_term_h = yes; then
6103    echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
6104 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6
6105 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
6106   echo $ECHO_N "(cached) $ECHO_C" >&6
6107 else
6108   ac_check_lib_save_LIBS=$LIBS
6109 LIBS="-lcurses  $LIBS"
6110 cat >conftest.$ac_ext <<_ACEOF
6111 /* confdefs.h.  */
6112 _ACEOF
6113 cat confdefs.h >>conftest.$ac_ext
6114 cat >>conftest.$ac_ext <<_ACEOF
6115 /* end confdefs.h.  */
6116
6117 /* Override any gcc2 internal prototype to avoid an error.  */
6118 #ifdef __cplusplus
6119 extern "C"
6120 #endif
6121 /* We use char because int might match the return type of a gcc2
6122    builtin and then its argument prototype would still apply.  */
6123 char tgetent ();
6124 int
6125 main ()
6126 {
6127 tgetent ();
6128   ;
6129   return 0;
6130 }
6131 _ACEOF
6132 rm -f conftest.$ac_objext conftest$ac_exeext
6133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6134   (eval $ac_link) 2>conftest.er1
6135   ac_status=$?
6136   grep -v '^ *+' conftest.er1 >conftest.err
6137   rm -f conftest.er1
6138   cat conftest.err >&5
6139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6140   (exit $ac_status); } &&
6141          { ac_try='test -z "$ac_c_werror_flag"
6142                          || test ! -s conftest.err'
6143   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6144   (eval $ac_try) 2>&5
6145   ac_status=$?
6146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6147   (exit $ac_status); }; } &&
6148          { ac_try='test -s conftest$ac_exeext'
6149   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6150   (eval $ac_try) 2>&5
6151   ac_status=$?
6152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6153   (exit $ac_status); }; }; then
6154   ac_cv_lib_curses_tgetent=yes
6155 else
6156   echo "$as_me: failed program was:" >&5
6157 sed 's/^/| /' conftest.$ac_ext >&5
6158
6159 ac_cv_lib_curses_tgetent=no
6160 fi
6161 rm -f conftest.err conftest.$ac_objext \
6162       conftest$ac_exeext conftest.$ac_ext
6163 LIBS=$ac_check_lib_save_LIBS
6164 fi
6165 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
6166 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6
6167 if test $ac_cv_lib_curses_tgetent = yes; then
6168    CONS_LIBS="-lcurses"
6169                    CONS_OBJ="conio.o"
6170                    CONS_SRC="conio.c"
6171                    got_conio="yes"
6172                    support_readline=no
6173
6174 cat >>confdefs.h <<\_ACEOF
6175 #define HAVE_CONIO 1
6176 _ACEOF
6177
6178
6179 fi
6180
6181
6182 else
6183    echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
6184 fi
6185
6186
6187
6188 fi
6189
6190
6191 fi
6192
6193
6194 # ---------------------------------------------------
6195 # Check for readline support/directory (default off)
6196 # ---------------------------------------------------
6197 # this allows you to turn it completely off
6198 # Check whether --enable-readline or --disable-readline was given.
6199 if test "${enable_readline+set}" = set; then
6200   enableval="$enable_readline"
6201   if test x$enableval = xno; then
6202     support_readline=no
6203   fi
6204 fi;
6205
6206 got_readline="no"
6207 READLINE_SRC=
6208 if test x$support_readline = xyes; then
6209
6210 # Check whether --with-readline or --without-readline was given.
6211 if test "${with_readline+set}" = set; then
6212   withval="$with_readline"
6213
6214         case "$with_readline" in
6215         no) : ;;
6216         yes|*)
6217           if test "$with_readline" != "yes"; then
6218             CONS_INC="-I${with_readline}"
6219             CONS_LDFLAGS="-L$with_readline"
6220           else
6221              with_readline="/usr/include/readline"
6222           fi
6223           as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
6224 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6225   echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
6226 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
6227 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6228   echo $ECHO_N "(cached) $ECHO_C" >&6
6229 fi
6230 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6231 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6232 else
6233   # Is the header compilable?
6234 echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
6235 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6
6236 cat >conftest.$ac_ext <<_ACEOF
6237 /* confdefs.h.  */
6238 _ACEOF
6239 cat confdefs.h >>conftest.$ac_ext
6240 cat >>conftest.$ac_ext <<_ACEOF
6241 /* end confdefs.h.  */
6242 $ac_includes_default
6243 #include <${with_readline}/readline.h>
6244 _ACEOF
6245 rm -f conftest.$ac_objext
6246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6247   (eval $ac_compile) 2>conftest.er1
6248   ac_status=$?
6249   grep -v '^ *+' conftest.er1 >conftest.err
6250   rm -f conftest.er1
6251   cat conftest.err >&5
6252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6253   (exit $ac_status); } &&
6254          { ac_try='test -z "$ac_c_werror_flag"
6255                          || test ! -s conftest.err'
6256   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6257   (eval $ac_try) 2>&5
6258   ac_status=$?
6259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6260   (exit $ac_status); }; } &&
6261          { ac_try='test -s conftest.$ac_objext'
6262   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6263   (eval $ac_try) 2>&5
6264   ac_status=$?
6265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6266   (exit $ac_status); }; }; then
6267   ac_header_compiler=yes
6268 else
6269   echo "$as_me: failed program was:" >&5
6270 sed 's/^/| /' conftest.$ac_ext >&5
6271
6272 ac_header_compiler=no
6273 fi
6274 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6275 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6276 echo "${ECHO_T}$ac_header_compiler" >&6
6277
6278 # Is the header present?
6279 echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
6280 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6
6281 cat >conftest.$ac_ext <<_ACEOF
6282 /* confdefs.h.  */
6283 _ACEOF
6284 cat confdefs.h >>conftest.$ac_ext
6285 cat >>conftest.$ac_ext <<_ACEOF
6286 /* end confdefs.h.  */
6287 #include <${with_readline}/readline.h>
6288 _ACEOF
6289 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6290   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6291   ac_status=$?
6292   grep -v '^ *+' conftest.er1 >conftest.err
6293   rm -f conftest.er1
6294   cat conftest.err >&5
6295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6296   (exit $ac_status); } >/dev/null; then
6297   if test -s conftest.err; then
6298     ac_cpp_err=$ac_c_preproc_warn_flag
6299     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6300   else
6301     ac_cpp_err=
6302   fi
6303 else
6304   ac_cpp_err=yes
6305 fi
6306 if test -z "$ac_cpp_err"; then
6307   ac_header_preproc=yes
6308 else
6309   echo "$as_me: failed program was:" >&5
6310 sed 's/^/| /' conftest.$ac_ext >&5
6311
6312   ac_header_preproc=no
6313 fi
6314 rm -f conftest.err conftest.$ac_ext
6315 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6316 echo "${ECHO_T}$ac_header_preproc" >&6
6317
6318 # So?  What about this header?
6319 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6320   yes:no: )
6321     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
6322 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6323     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&5
6324 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&2;}
6325     ac_header_preproc=yes
6326     ;;
6327   no:yes:* )
6328     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
6329 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
6330     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h:     check for missing prerequisite headers?" >&5
6331 echo "$as_me: WARNING: ${with_readline}/readline.h:     check for missing prerequisite headers?" >&2;}
6332     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&5
6333 echo "$as_me: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&2;}
6334     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
6335 echo "$as_me: WARNING: ${with_readline}/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
6336     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
6337 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
6338     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&5
6339 echo "$as_me: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&2;}
6340     (
6341       cat <<\_ASBOX
6342 ## ------------------------------------------ ##
6343 ## Report this to the AC_PACKAGE_NAME lists.  ##
6344 ## ------------------------------------------ ##
6345 _ASBOX
6346     ) |
6347       sed "s/^/$as_me: WARNING:     /" >&2
6348     ;;
6349 esac
6350 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
6351 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
6352 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6353   echo $ECHO_N "(cached) $ECHO_C" >&6
6354 else
6355   eval "$as_ac_Header=\$ac_header_preproc"
6356 fi
6357 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6358 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6359
6360 fi
6361 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6362    cat >>confdefs.h <<\_ACEOF
6363 #define HAVE_READLINE 1
6364 _ACEOF
6365
6366                CONS_LIBS="-lreadline -ltermcap"
6367                got_readline="yes"
6368
6369 else
6370    echo " "
6371                echo "readline.h not found. readline turned off ..."
6372                echo " "
6373
6374
6375 fi
6376
6377
6378           ;;
6379         esac
6380
6381 else
6382
6383        # check for standard readline library
6384        if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
6385   echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
6386 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
6387 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
6388   echo $ECHO_N "(cached) $ECHO_C" >&6
6389 fi
6390 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
6391 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
6392 else
6393   # Is the header compilable?
6394 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
6395 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6
6396 cat >conftest.$ac_ext <<_ACEOF
6397 /* confdefs.h.  */
6398 _ACEOF
6399 cat confdefs.h >>conftest.$ac_ext
6400 cat >>conftest.$ac_ext <<_ACEOF
6401 /* end confdefs.h.  */
6402 $ac_includes_default
6403 #include </usr/include/readline/readline.h>
6404 _ACEOF
6405 rm -f conftest.$ac_objext
6406 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6407   (eval $ac_compile) 2>conftest.er1
6408   ac_status=$?
6409   grep -v '^ *+' conftest.er1 >conftest.err
6410   rm -f conftest.er1
6411   cat conftest.err >&5
6412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6413   (exit $ac_status); } &&
6414          { ac_try='test -z "$ac_c_werror_flag"
6415                          || test ! -s conftest.err'
6416   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6417   (eval $ac_try) 2>&5
6418   ac_status=$?
6419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6420   (exit $ac_status); }; } &&
6421          { ac_try='test -s conftest.$ac_objext'
6422   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6423   (eval $ac_try) 2>&5
6424   ac_status=$?
6425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6426   (exit $ac_status); }; }; then
6427   ac_header_compiler=yes
6428 else
6429   echo "$as_me: failed program was:" >&5
6430 sed 's/^/| /' conftest.$ac_ext >&5
6431
6432 ac_header_compiler=no
6433 fi
6434 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6435 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6436 echo "${ECHO_T}$ac_header_compiler" >&6
6437
6438 # Is the header present?
6439 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
6440 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6
6441 cat >conftest.$ac_ext <<_ACEOF
6442 /* confdefs.h.  */
6443 _ACEOF
6444 cat confdefs.h >>conftest.$ac_ext
6445 cat >>conftest.$ac_ext <<_ACEOF
6446 /* end confdefs.h.  */
6447 #include </usr/include/readline/readline.h>
6448 _ACEOF
6449 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6450   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6451   ac_status=$?
6452   grep -v '^ *+' conftest.er1 >conftest.err
6453   rm -f conftest.er1
6454   cat conftest.err >&5
6455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6456   (exit $ac_status); } >/dev/null; then
6457   if test -s conftest.err; then
6458     ac_cpp_err=$ac_c_preproc_warn_flag
6459     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6460   else
6461     ac_cpp_err=
6462   fi
6463 else
6464   ac_cpp_err=yes
6465 fi
6466 if test -z "$ac_cpp_err"; then
6467   ac_header_preproc=yes
6468 else
6469   echo "$as_me: failed program was:" >&5
6470 sed 's/^/| /' conftest.$ac_ext >&5
6471
6472   ac_header_preproc=no
6473 fi
6474 rm -f conftest.err conftest.$ac_ext
6475 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6476 echo "${ECHO_T}$ac_header_preproc" >&6
6477
6478 # So?  What about this header?
6479 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6480   yes:no: )
6481     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
6482 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6483     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&5
6484 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&2;}
6485     ac_header_preproc=yes
6486     ;;
6487   no:yes:* )
6488     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
6489 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
6490     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h:     check for missing prerequisite headers?" >&5
6491 echo "$as_me: WARNING: /usr/include/readline/readline.h:     check for missing prerequisite headers?" >&2;}
6492     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&5
6493 echo "$as_me: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&2;}
6494     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
6495 echo "$as_me: WARNING: /usr/include/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
6496     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
6497 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
6498     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&5
6499 echo "$as_me: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&2;}
6500     (
6501       cat <<\_ASBOX
6502 ## ------------------------------------------ ##
6503 ## Report this to the AC_PACKAGE_NAME lists.  ##
6504 ## ------------------------------------------ ##
6505 _ASBOX
6506     ) |
6507       sed "s/^/$as_me: WARNING:     /" >&2
6508     ;;
6509 esac
6510 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
6511 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
6512 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
6513   echo $ECHO_N "(cached) $ECHO_C" >&6
6514 else
6515   ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
6516 fi
6517 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
6518 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
6519
6520 fi
6521 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
6522    cat >>confdefs.h <<\_ACEOF
6523 #define HAVE_READLINE 1
6524 _ACEOF
6525
6526            got_readline="yes"
6527            CONS_INC="-I/usr/include/readline"
6528            CONS_LIBS="-lreadline -ltermcap"
6529
6530 else
6531
6532            # Did not find standard library, so try Bacula's default
6533             as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
6534 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6535   echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
6536 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
6537 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6538   echo $ECHO_N "(cached) $ECHO_C" >&6
6539 fi
6540 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6541 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6542 else
6543   # Is the header compilable?
6544 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
6545 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6
6546 cat >conftest.$ac_ext <<_ACEOF
6547 /* confdefs.h.  */
6548 _ACEOF
6549 cat confdefs.h >>conftest.$ac_ext
6550 cat >>conftest.$ac_ext <<_ACEOF
6551 /* end confdefs.h.  */
6552 $ac_includes_default
6553 #include <${TOP_DIR}/depkgs/readline/readline.h>
6554 _ACEOF
6555 rm -f conftest.$ac_objext
6556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6557   (eval $ac_compile) 2>conftest.er1
6558   ac_status=$?
6559   grep -v '^ *+' conftest.er1 >conftest.err
6560   rm -f conftest.er1
6561   cat conftest.err >&5
6562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6563   (exit $ac_status); } &&
6564          { ac_try='test -z "$ac_c_werror_flag"
6565                          || test ! -s conftest.err'
6566   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6567   (eval $ac_try) 2>&5
6568   ac_status=$?
6569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6570   (exit $ac_status); }; } &&
6571          { ac_try='test -s conftest.$ac_objext'
6572   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6573   (eval $ac_try) 2>&5
6574   ac_status=$?
6575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6576   (exit $ac_status); }; }; then
6577   ac_header_compiler=yes
6578 else
6579   echo "$as_me: failed program was:" >&5
6580 sed 's/^/| /' conftest.$ac_ext >&5
6581
6582 ac_header_compiler=no
6583 fi
6584 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6585 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6586 echo "${ECHO_T}$ac_header_compiler" >&6
6587
6588 # Is the header present?
6589 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
6590 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6
6591 cat >conftest.$ac_ext <<_ACEOF
6592 /* confdefs.h.  */
6593 _ACEOF
6594 cat confdefs.h >>conftest.$ac_ext
6595 cat >>conftest.$ac_ext <<_ACEOF
6596 /* end confdefs.h.  */
6597 #include <${TOP_DIR}/depkgs/readline/readline.h>
6598 _ACEOF
6599 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6600   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6601   ac_status=$?
6602   grep -v '^ *+' conftest.er1 >conftest.err
6603   rm -f conftest.er1
6604   cat conftest.err >&5
6605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6606   (exit $ac_status); } >/dev/null; then
6607   if test -s conftest.err; then
6608     ac_cpp_err=$ac_c_preproc_warn_flag
6609     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6610   else
6611     ac_cpp_err=
6612   fi
6613 else
6614   ac_cpp_err=yes
6615 fi
6616 if test -z "$ac_cpp_err"; then
6617   ac_header_preproc=yes
6618 else
6619   echo "$as_me: failed program was:" >&5
6620 sed 's/^/| /' conftest.$ac_ext >&5
6621
6622   ac_header_preproc=no
6623 fi
6624 rm -f conftest.err conftest.$ac_ext
6625 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6626 echo "${ECHO_T}$ac_header_preproc" >&6
6627
6628 # So?  What about this header?
6629 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6630   yes:no: )
6631     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
6632 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6633     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&5
6634 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&2;}
6635     ac_header_preproc=yes
6636     ;;
6637   no:yes:* )
6638     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
6639 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
6640     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     check for missing prerequisite headers?" >&5
6641 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     check for missing prerequisite headers?" >&2;}
6642     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&5
6643 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&2;}
6644     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
6645 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
6646     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
6647 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
6648     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&5
6649 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&2;}
6650     (
6651       cat <<\_ASBOX
6652 ## ------------------------------------------ ##
6653 ## Report this to the AC_PACKAGE_NAME lists.  ##
6654 ## ------------------------------------------ ##
6655 _ASBOX
6656     ) |
6657       sed "s/^/$as_me: WARNING:     /" >&2
6658     ;;
6659 esac
6660 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
6661 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
6662 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6663   echo $ECHO_N "(cached) $ECHO_C" >&6
6664 else
6665   eval "$as_ac_Header=\$ac_header_preproc"
6666 fi
6667 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6668 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6669
6670 fi
6671 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6672    cat >>confdefs.h <<\_ACEOF
6673 #define HAVE_READLINE 1
6674 _ACEOF
6675
6676                  got_readline="yes"
6677                  CONS_INC="-I${TOP_DIR}/depkgs/readline"
6678                  CONS_LIBS="-lreadline -lhistory -ltermcap"
6679                  CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
6680                  PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
6681
6682 else
6683    echo " "
6684                 echo "readline.h not found. readline turned off ..."
6685                 echo " "
6686
6687
6688 fi
6689
6690
6691
6692
6693 fi
6694
6695
6696
6697
6698 fi;
6699 fi
6700
6701
6702
6703
6704
6705
6706
6707
6708
6709
6710 # Minimal stuff for readline Makefile configuration
6711 MAKE_SHELL=/bin/sh
6712
6713 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
6714 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
6715 if test "${ac_cv_header_stat_broken+set}" = set; then
6716   echo $ECHO_N "(cached) $ECHO_C" >&6
6717 else
6718   cat >conftest.$ac_ext <<_ACEOF
6719 /* confdefs.h.  */
6720 _ACEOF
6721 cat confdefs.h >>conftest.$ac_ext
6722 cat >>conftest.$ac_ext <<_ACEOF
6723 /* end confdefs.h.  */
6724 #include <sys/types.h>
6725 #include <sys/stat.h>
6726
6727 #if defined(S_ISBLK) && defined(S_IFDIR)
6728 # if S_ISBLK (S_IFDIR)
6729 You lose.
6730 # endif
6731 #endif
6732
6733 #if defined(S_ISBLK) && defined(S_IFCHR)
6734 # if S_ISBLK (S_IFCHR)
6735 You lose.
6736 # endif
6737 #endif
6738
6739 #if defined(S_ISLNK) && defined(S_IFREG)
6740 # if S_ISLNK (S_IFREG)
6741 You lose.
6742 # endif
6743 #endif
6744
6745 #if defined(S_ISSOCK) && defined(S_IFREG)
6746 # if S_ISSOCK (S_IFREG)
6747 You lose.
6748 # endif
6749 #endif
6750
6751 _ACEOF
6752 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6753   $EGREP "You lose" >/dev/null 2>&1; then
6754   ac_cv_header_stat_broken=yes
6755 else
6756   ac_cv_header_stat_broken=no
6757 fi
6758 rm -f conftest*
6759
6760 fi
6761 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
6762 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
6763 if test $ac_cv_header_stat_broken = yes; then
6764
6765 cat >>confdefs.h <<\_ACEOF
6766 #define STAT_MACROS_BROKEN 1
6767 _ACEOF
6768
6769 fi
6770
6771
6772
6773
6774
6775
6776 ac_header_dirent=no
6777 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6778   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6779 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6780 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
6781 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6782   echo $ECHO_N "(cached) $ECHO_C" >&6
6783 else
6784   cat >conftest.$ac_ext <<_ACEOF
6785 /* confdefs.h.  */
6786 _ACEOF
6787 cat confdefs.h >>conftest.$ac_ext
6788 cat >>conftest.$ac_ext <<_ACEOF
6789 /* end confdefs.h.  */
6790 #include <sys/types.h>
6791 #include <$ac_hdr>
6792
6793 int
6794 main ()
6795 {
6796 if ((DIR *) 0)
6797 return 0;
6798   ;
6799   return 0;
6800 }
6801 _ACEOF
6802 rm -f conftest.$ac_objext
6803 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6804   (eval $ac_compile) 2>conftest.er1
6805   ac_status=$?
6806   grep -v '^ *+' conftest.er1 >conftest.err
6807   rm -f conftest.er1
6808   cat conftest.err >&5
6809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6810   (exit $ac_status); } &&
6811          { ac_try='test -z "$ac_c_werror_flag"
6812                          || test ! -s conftest.err'
6813   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6814   (eval $ac_try) 2>&5
6815   ac_status=$?
6816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6817   (exit $ac_status); }; } &&
6818          { ac_try='test -s conftest.$ac_objext'
6819   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6820   (eval $ac_try) 2>&5
6821   ac_status=$?
6822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6823   (exit $ac_status); }; }; then
6824   eval "$as_ac_Header=yes"
6825 else
6826   echo "$as_me: failed program was:" >&5
6827 sed 's/^/| /' conftest.$ac_ext >&5
6828
6829 eval "$as_ac_Header=no"
6830 fi
6831 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6832 fi
6833 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6834 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6835 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6836   cat >>confdefs.h <<_ACEOF
6837 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6838 _ACEOF
6839
6840 ac_header_dirent=$ac_hdr; break
6841 fi
6842
6843 done
6844 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6845 if test $ac_header_dirent = dirent.h; then
6846   echo "$as_me:$LINENO: checking for library containing opendir" >&5
6847 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6848 if test "${ac_cv_search_opendir+set}" = set; then
6849   echo $ECHO_N "(cached) $ECHO_C" >&6
6850 else
6851   ac_func_search_save_LIBS=$LIBS
6852 ac_cv_search_opendir=no
6853 cat >conftest.$ac_ext <<_ACEOF
6854 /* confdefs.h.  */
6855 _ACEOF
6856 cat confdefs.h >>conftest.$ac_ext
6857 cat >>conftest.$ac_ext <<_ACEOF
6858 /* end confdefs.h.  */
6859
6860 /* Override any gcc2 internal prototype to avoid an error.  */
6861 #ifdef __cplusplus
6862 extern "C"
6863 #endif
6864 /* We use char because int might match the return type of a gcc2
6865    builtin and then its argument prototype would still apply.  */
6866 char opendir ();
6867 int
6868 main ()
6869 {
6870 opendir ();
6871   ;
6872   return 0;
6873 }
6874 _ACEOF
6875 rm -f conftest.$ac_objext conftest$ac_exeext
6876 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6877   (eval $ac_link) 2>conftest.er1
6878   ac_status=$?
6879   grep -v '^ *+' conftest.er1 >conftest.err
6880   rm -f conftest.er1
6881   cat conftest.err >&5
6882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6883   (exit $ac_status); } &&
6884          { ac_try='test -z "$ac_c_werror_flag"
6885                          || test ! -s conftest.err'
6886   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6887   (eval $ac_try) 2>&5
6888   ac_status=$?
6889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6890   (exit $ac_status); }; } &&
6891          { ac_try='test -s conftest$ac_exeext'
6892   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6893   (eval $ac_try) 2>&5
6894   ac_status=$?
6895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6896   (exit $ac_status); }; }; then
6897   ac_cv_search_opendir="none required"
6898 else
6899   echo "$as_me: failed program was:" >&5
6900 sed 's/^/| /' conftest.$ac_ext >&5
6901
6902 fi
6903 rm -f conftest.err conftest.$ac_objext \
6904       conftest$ac_exeext conftest.$ac_ext
6905 if test "$ac_cv_search_opendir" = no; then
6906   for ac_lib in dir; do
6907     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6908     cat >conftest.$ac_ext <<_ACEOF
6909 /* confdefs.h.  */
6910 _ACEOF
6911 cat confdefs.h >>conftest.$ac_ext
6912 cat >>conftest.$ac_ext <<_ACEOF
6913 /* end confdefs.h.  */
6914
6915 /* Override any gcc2 internal prototype to avoid an error.  */
6916 #ifdef __cplusplus
6917 extern "C"
6918 #endif
6919 /* We use char because int might match the return type of a gcc2
6920    builtin and then its argument prototype would still apply.  */
6921 char opendir ();
6922 int
6923 main ()
6924 {
6925 opendir ();
6926   ;
6927   return 0;
6928 }
6929 _ACEOF
6930 rm -f conftest.$ac_objext conftest$ac_exeext
6931 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6932   (eval $ac_link) 2>conftest.er1
6933   ac_status=$?
6934   grep -v '^ *+' conftest.er1 >conftest.err
6935   rm -f conftest.er1
6936   cat conftest.err >&5
6937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6938   (exit $ac_status); } &&
6939          { ac_try='test -z "$ac_c_werror_flag"
6940                          || test ! -s conftest.err'
6941   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6942   (eval $ac_try) 2>&5
6943   ac_status=$?
6944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6945   (exit $ac_status); }; } &&
6946          { ac_try='test -s conftest$ac_exeext'
6947   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6948   (eval $ac_try) 2>&5
6949   ac_status=$?
6950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6951   (exit $ac_status); }; }; then
6952   ac_cv_search_opendir="-l$ac_lib"
6953 break
6954 else
6955   echo "$as_me: failed program was:" >&5
6956 sed 's/^/| /' conftest.$ac_ext >&5
6957
6958 fi
6959 rm -f conftest.err conftest.$ac_objext \
6960       conftest$ac_exeext conftest.$ac_ext
6961   done
6962 fi
6963 LIBS=$ac_func_search_save_LIBS
6964 fi
6965 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6966 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6967 if test "$ac_cv_search_opendir" != no; then
6968   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6969
6970 fi
6971
6972 else
6973   echo "$as_me:$LINENO: checking for library containing opendir" >&5
6974 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6975 if test "${ac_cv_search_opendir+set}" = set; then
6976   echo $ECHO_N "(cached) $ECHO_C" >&6
6977 else
6978   ac_func_search_save_LIBS=$LIBS
6979 ac_cv_search_opendir=no
6980 cat >conftest.$ac_ext <<_ACEOF
6981 /* confdefs.h.  */
6982 _ACEOF
6983 cat confdefs.h >>conftest.$ac_ext
6984 cat >>conftest.$ac_ext <<_ACEOF
6985 /* end confdefs.h.  */
6986
6987 /* Override any gcc2 internal prototype to avoid an error.  */
6988 #ifdef __cplusplus
6989 extern "C"
6990 #endif
6991 /* We use char because int might match the return type of a gcc2
6992    builtin and then its argument prototype would still apply.  */
6993 char opendir ();
6994 int
6995 main ()
6996 {
6997 opendir ();
6998   ;
6999   return 0;
7000 }
7001 _ACEOF
7002 rm -f conftest.$ac_objext conftest$ac_exeext
7003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7004   (eval $ac_link) 2>conftest.er1
7005   ac_status=$?
7006   grep -v '^ *+' conftest.er1 >conftest.err
7007   rm -f conftest.er1
7008   cat conftest.err >&5
7009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7010   (exit $ac_status); } &&
7011          { ac_try='test -z "$ac_c_werror_flag"
7012                          || test ! -s conftest.err'
7013   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7014   (eval $ac_try) 2>&5
7015   ac_status=$?
7016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7017   (exit $ac_status); }; } &&
7018          { ac_try='test -s conftest$ac_exeext'
7019   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7020   (eval $ac_try) 2>&5
7021   ac_status=$?
7022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7023   (exit $ac_status); }; }; then
7024   ac_cv_search_opendir="none required"
7025 else
7026   echo "$as_me: failed program was:" >&5
7027 sed 's/^/| /' conftest.$ac_ext >&5
7028
7029 fi
7030 rm -f conftest.err conftest.$ac_objext \
7031       conftest$ac_exeext conftest.$ac_ext
7032 if test "$ac_cv_search_opendir" = no; then
7033   for ac_lib in x; do
7034     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7035     cat >conftest.$ac_ext <<_ACEOF
7036 /* confdefs.h.  */
7037 _ACEOF
7038 cat confdefs.h >>conftest.$ac_ext
7039 cat >>conftest.$ac_ext <<_ACEOF
7040 /* end confdefs.h.  */
7041
7042 /* Override any gcc2 internal prototype to avoid an error.  */
7043 #ifdef __cplusplus
7044 extern "C"
7045 #endif
7046 /* We use char because int might match the return type of a gcc2
7047    builtin and then its argument prototype would still apply.  */
7048 char opendir ();
7049 int
7050 main ()
7051 {
7052 opendir ();
7053   ;
7054   return 0;
7055 }
7056 _ACEOF
7057 rm -f conftest.$ac_objext conftest$ac_exeext
7058 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7059   (eval $ac_link) 2>conftest.er1
7060   ac_status=$?
7061   grep -v '^ *+' conftest.er1 >conftest.err
7062   rm -f conftest.er1
7063   cat conftest.err >&5
7064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7065   (exit $ac_status); } &&
7066          { ac_try='test -z "$ac_c_werror_flag"
7067                          || test ! -s conftest.err'
7068   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7069   (eval $ac_try) 2>&5
7070   ac_status=$?
7071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7072   (exit $ac_status); }; } &&
7073          { ac_try='test -s conftest$ac_exeext'
7074   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7075   (eval $ac_try) 2>&5
7076   ac_status=$?
7077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7078   (exit $ac_status); }; }; then
7079   ac_cv_search_opendir="-l$ac_lib"
7080 break
7081 else
7082   echo "$as_me: failed program was:" >&5
7083 sed 's/^/| /' conftest.$ac_ext >&5
7084
7085 fi
7086 rm -f conftest.err conftest.$ac_objext \
7087       conftest$ac_exeext conftest.$ac_ext
7088   done
7089 fi
7090 LIBS=$ac_func_search_save_LIBS
7091 fi
7092 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
7093 echo "${ECHO_T}$ac_cv_search_opendir" >&6
7094 if test "$ac_cv_search_opendir" != no; then
7095   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
7096
7097 fi
7098
7099 fi
7100
7101
7102
7103
7104
7105
7106
7107
7108
7109 for ac_func in strcasecmp select setenv putenv tcgetattr setlocale lstat lchown
7110 do
7111 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7112 echo "$as_me:$LINENO: checking for $ac_func" >&5
7113 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7114 if eval "test \"\${$as_ac_var+set}\" = set"; then
7115   echo $ECHO_N "(cached) $ECHO_C" >&6
7116 else
7117   cat >conftest.$ac_ext <<_ACEOF
7118 /* confdefs.h.  */
7119 _ACEOF
7120 cat confdefs.h >>conftest.$ac_ext
7121 cat >>conftest.$ac_ext <<_ACEOF
7122 /* end confdefs.h.  */
7123 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7124    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7125 #define $ac_func innocuous_$ac_func
7126
7127 /* System header to define __stub macros and hopefully few prototypes,
7128     which can conflict with char $ac_func (); below.
7129     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7130     <limits.h> exists even on freestanding compilers.  */
7131
7132 #ifdef __STDC__
7133 # include <limits.h>
7134 #else
7135 # include <assert.h>
7136 #endif
7137
7138 #undef $ac_func
7139
7140 /* Override any gcc2 internal prototype to avoid an error.  */
7141 #ifdef __cplusplus
7142 extern "C"
7143 {
7144 #endif
7145 /* We use char because int might match the return type of a gcc2
7146    builtin and then its argument prototype would still apply.  */
7147 char $ac_func ();
7148 /* The GNU C library defines this for functions which it implements
7149     to always fail with ENOSYS.  Some functions are actually named
7150     something starting with __ and the normal name is an alias.  */
7151 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7152 choke me
7153 #else
7154 char (*f) () = $ac_func;
7155 #endif
7156 #ifdef __cplusplus
7157 }
7158 #endif
7159
7160 int
7161 main ()
7162 {
7163 return f != $ac_func;
7164   ;
7165   return 0;
7166 }
7167 _ACEOF
7168 rm -f conftest.$ac_objext conftest$ac_exeext
7169 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7170   (eval $ac_link) 2>conftest.er1
7171   ac_status=$?
7172   grep -v '^ *+' conftest.er1 >conftest.err
7173   rm -f conftest.er1
7174   cat conftest.err >&5
7175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7176   (exit $ac_status); } &&
7177          { ac_try='test -z "$ac_c_werror_flag"
7178                          || test ! -s conftest.err'
7179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7180   (eval $ac_try) 2>&5
7181   ac_status=$?
7182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7183   (exit $ac_status); }; } &&
7184          { ac_try='test -s conftest$ac_exeext'
7185   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7186   (eval $ac_try) 2>&5
7187   ac_status=$?
7188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7189   (exit $ac_status); }; }; then
7190   eval "$as_ac_var=yes"
7191 else
7192   echo "$as_me: failed program was:" >&5
7193 sed 's/^/| /' conftest.$ac_ext >&5
7194
7195 eval "$as_ac_var=no"
7196 fi
7197 rm -f conftest.err conftest.$ac_objext \
7198       conftest$ac_exeext conftest.$ac_ext
7199 fi
7200 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7201 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7202 if test `eval echo '${'$as_ac_var'}'` = yes; then
7203   cat >>confdefs.h <<_ACEOF
7204 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7205 _ACEOF
7206
7207 fi
7208 done
7209
7210
7211
7212 for ac_func in nanosleep nl_langinfo
7213 do
7214 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7215 echo "$as_me:$LINENO: checking for $ac_func" >&5
7216 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7217 if eval "test \"\${$as_ac_var+set}\" = set"; then
7218   echo $ECHO_N "(cached) $ECHO_C" >&6
7219 else
7220   cat >conftest.$ac_ext <<_ACEOF
7221 /* confdefs.h.  */
7222 _ACEOF
7223 cat confdefs.h >>conftest.$ac_ext
7224 cat >>conftest.$ac_ext <<_ACEOF
7225 /* end confdefs.h.  */
7226 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7227    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7228 #define $ac_func innocuous_$ac_func
7229
7230 /* System header to define __stub macros and hopefully few prototypes,
7231     which can conflict with char $ac_func (); below.
7232     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7233     <limits.h> exists even on freestanding compilers.  */
7234
7235 #ifdef __STDC__
7236 # include <limits.h>
7237 #else
7238 # include <assert.h>
7239 #endif
7240
7241 #undef $ac_func
7242
7243 /* Override any gcc2 internal prototype to avoid an error.  */
7244 #ifdef __cplusplus
7245 extern "C"
7246 {
7247 #endif
7248 /* We use char because int might match the return type of a gcc2
7249    builtin and then its argument prototype would still apply.  */
7250 char $ac_func ();
7251 /* The GNU C library defines this for functions which it implements
7252     to always fail with ENOSYS.  Some functions are actually named
7253     something starting with __ and the normal name is an alias.  */
7254 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7255 choke me
7256 #else
7257 char (*f) () = $ac_func;
7258 #endif
7259 #ifdef __cplusplus
7260 }
7261 #endif
7262
7263 int
7264 main ()
7265 {
7266 return f != $ac_func;
7267   ;
7268   return 0;
7269 }
7270 _ACEOF
7271 rm -f conftest.$ac_objext conftest$ac_exeext
7272 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7273   (eval $ac_link) 2>conftest.er1
7274   ac_status=$?
7275   grep -v '^ *+' conftest.er1 >conftest.err
7276   rm -f conftest.er1
7277   cat conftest.err >&5
7278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7279   (exit $ac_status); } &&
7280          { ac_try='test -z "$ac_c_werror_flag"
7281                          || test ! -s conftest.err'
7282   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7283   (eval $ac_try) 2>&5
7284   ac_status=$?
7285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7286   (exit $ac_status); }; } &&
7287          { ac_try='test -s conftest$ac_exeext'
7288   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7289   (eval $ac_try) 2>&5
7290   ac_status=$?
7291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7292   (exit $ac_status); }; }; then
7293   eval "$as_ac_var=yes"
7294 else
7295   echo "$as_me: failed program was:" >&5
7296 sed 's/^/| /' conftest.$ac_ext >&5
7297
7298 eval "$as_ac_var=no"
7299 fi
7300 rm -f conftest.err conftest.$ac_objext \
7301       conftest$ac_exeext conftest.$ac_ext
7302 fi
7303 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7304 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7305 if test `eval echo '${'$as_ac_var'}'` = yes; then
7306   cat >>confdefs.h <<_ACEOF
7307 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7308 _ACEOF
7309
7310 fi
7311 done
7312
7313
7314 for ac_header in varargs.h
7315 do
7316 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7317 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7318   echo "$as_me:$LINENO: checking for $ac_header" >&5
7319 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7320 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7321   echo $ECHO_N "(cached) $ECHO_C" >&6
7322 fi
7323 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7324 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7325 else
7326   # Is the header compilable?
7327 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7328 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7329 cat >conftest.$ac_ext <<_ACEOF
7330 /* confdefs.h.  */
7331 _ACEOF
7332 cat confdefs.h >>conftest.$ac_ext
7333 cat >>conftest.$ac_ext <<_ACEOF
7334 /* end confdefs.h.  */
7335 $ac_includes_default
7336 #include <$ac_header>
7337 _ACEOF
7338 rm -f conftest.$ac_objext
7339 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7340   (eval $ac_compile) 2>conftest.er1
7341   ac_status=$?
7342   grep -v '^ *+' conftest.er1 >conftest.err
7343   rm -f conftest.er1
7344   cat conftest.err >&5
7345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7346   (exit $ac_status); } &&
7347          { ac_try='test -z "$ac_c_werror_flag"
7348                          || test ! -s conftest.err'
7349   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7350   (eval $ac_try) 2>&5
7351   ac_status=$?
7352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7353   (exit $ac_status); }; } &&
7354          { ac_try='test -s conftest.$ac_objext'
7355   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7356   (eval $ac_try) 2>&5
7357   ac_status=$?
7358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7359   (exit $ac_status); }; }; then
7360   ac_header_compiler=yes
7361 else
7362   echo "$as_me: failed program was:" >&5
7363 sed 's/^/| /' conftest.$ac_ext >&5
7364
7365 ac_header_compiler=no
7366 fi
7367 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7368 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7369 echo "${ECHO_T}$ac_header_compiler" >&6
7370
7371 # Is the header present?
7372 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7373 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7374 cat >conftest.$ac_ext <<_ACEOF
7375 /* confdefs.h.  */
7376 _ACEOF
7377 cat confdefs.h >>conftest.$ac_ext
7378 cat >>conftest.$ac_ext <<_ACEOF
7379 /* end confdefs.h.  */
7380 #include <$ac_header>
7381 _ACEOF
7382 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7383   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7384   ac_status=$?
7385   grep -v '^ *+' conftest.er1 >conftest.err
7386   rm -f conftest.er1
7387   cat conftest.err >&5
7388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7389   (exit $ac_status); } >/dev/null; then
7390   if test -s conftest.err; then
7391     ac_cpp_err=$ac_c_preproc_warn_flag
7392     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7393   else
7394     ac_cpp_err=
7395   fi
7396 else
7397   ac_cpp_err=yes
7398 fi
7399 if test -z "$ac_cpp_err"; then
7400   ac_header_preproc=yes
7401 else
7402   echo "$as_me: failed program was:" >&5
7403 sed 's/^/| /' conftest.$ac_ext >&5
7404
7405   ac_header_preproc=no
7406 fi
7407 rm -f conftest.err conftest.$ac_ext
7408 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7409 echo "${ECHO_T}$ac_header_preproc" >&6
7410
7411 # So?  What about this header?
7412 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7413   yes:no: )
7414     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7415 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7416     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7417 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7418     ac_header_preproc=yes
7419     ;;
7420   no:yes:* )
7421     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7422 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7423     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7424 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7425     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7426 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7427     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7428 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7429     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7430 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7431     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7432 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7433     (
7434       cat <<\_ASBOX
7435 ## ------------------------------------------ ##
7436 ## Report this to the AC_PACKAGE_NAME lists.  ##
7437 ## ------------------------------------------ ##
7438 _ASBOX
7439     ) |
7440       sed "s/^/$as_me: WARNING:     /" >&2
7441     ;;
7442 esac
7443 echo "$as_me:$LINENO: checking for $ac_header" >&5
7444 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7445 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7446   echo $ECHO_N "(cached) $ECHO_C" >&6
7447 else
7448   eval "$as_ac_Header=\$ac_header_preproc"
7449 fi
7450 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7451 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7452
7453 fi
7454 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7455   cat >>confdefs.h <<_ACEOF
7456 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7457 _ACEOF
7458
7459 fi
7460
7461 done
7462
7463
7464 # End of readline/conio stuff
7465 # -----------------------------------------------------------------------
7466
7467 # -----------------------------------------------------------------------
7468 #  Check for Python support
7469 #
7470 echo "$as_me:$LINENO: checking for Python support" >&5
7471 echo $ECHO_N "checking for Python support... $ECHO_C" >&6
7472
7473 # Check whether --with-python or --without-python was given.
7474 if test "${with_python+set}" = set; then
7475   withval="$with_python"
7476
7477   PYTHON_INCDIR=
7478   PYTHON_LIBS=
7479   if test "$withval" != "no"; then
7480      if test "$withval" = "yes"; then
7481         if test -f /usr/include/python2.2/Python.h; then
7482            PYTHON_INCDIR=-I/usr/include/python2.2
7483            PYTHON_LIBS="-L/usr/lib/python2.2/config -lpython2.2 -lutil -ldl"
7484         elif test -f /usr/include/python2.3/Python.h; then
7485            PYTHON_INCDIR=-I/usr/include/python2.3
7486            PYTHON_LIBS="-L/usr/lib/python2.3/config -lpython2.3 -lutil -ldl"
7487         elif test -f /usr/include/python2.4/Python.h; then
7488            PYTHON_INCDIR=-I/usr/include/python2.4
7489            PYTHON_LIBS="-L/usr/lib/python2.4/config -lpython2.4 -lutil -ldl"
7490         elif test -f $prefix/include/Python.h; then
7491            PYTHON_INCDIR=-I$prefix/include
7492            PYTHON_LIBS="-L$prefix/lib/config -lpython -lutil -ldl"
7493         else
7494            echo "$as_me:$LINENO: result: no" >&5
7495 echo "${ECHO_T}no" >&6
7496            { { echo "$as_me:$LINENO: error: Unable to find Python.h in standard locations" >&5
7497 echo "$as_me: error: Unable to find Python.h in standard locations" >&2;}
7498    { (exit 1); exit 1; }; }
7499         fi
7500      else
7501         if test -f $withval/Python.h; then
7502            PYTHON_INCDIR=-I$withval
7503            PYTHON_LIBS="-L$withval/config -lpython -lutil -ldl"
7504         elif test -f $withval/include/Python.h; then
7505            PYTHON_INCDIR=-I$withval/include
7506            PYTHON_LIBS="-L$withval/lib/config -lpython -lutil -ldl"
7507         else
7508            echo "$as_me:$LINENO: result: no" >&5
7509 echo "${ECHO_T}no" >&6
7510            { { echo "$as_me:$LINENO: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&5
7511 echo "$as_me: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&2;}
7512    { (exit 1); exit 1; }; }
7513         fi
7514      fi
7515      cat >>confdefs.h <<\_ACEOF
7516 #define HAVE_PYTHON 1
7517 _ACEOF
7518
7519      echo "$as_me:$LINENO: result: yes" >&5
7520 echo "${ECHO_T}yes" >&6
7521      support_python=yes
7522
7523   else
7524      echo "$as_me:$LINENO: result: no" >&5
7525 echo "${ECHO_T}no" >&6
7526   fi
7527
7528 else
7529
7530   echo "$as_me:$LINENO: result: no" >&5
7531 echo "${ECHO_T}no" >&6
7532
7533 fi;
7534
7535
7536
7537
7538 # -------------------------------------------
7539 # check for cdrecord writer location
7540 # get scsibus,target,lun
7541 # -------------------------------------------
7542 CDSTL="3,0,0"
7543 if test ! x$CDRECORD = x ; then
7544    CDSTL=`${CDRECORD} -scanbus 2>/dev/null | grep CD-RW | ${AWK} '{print $1}'`
7545    if test x${CDSTL} = x ; then
7546       CDSTL=`${CDRECORD} -scanbus 2>/dev/null | grep CD+RW | ${AWK} '{print $1}'`
7547    fi
7548    if test x${CDSTL} = x ; then
7549       CDSTL=`${CDRECORD} -scanbus 2>/dev/null | grep DVD+RW | ${AWK} '{print $1}'`
7550    fi
7551    if test x${CDSTL} = x ; then
7552       CDSTL=`${CDRECORD} -scanbus 2>/dev/null | grep DVD-RW | ${AWK} '{print $1}'`
7553    fi
7554    if test x${CDSTL} = x ; then
7555       CDSTL="3,0,0"
7556    fi
7557 fi
7558
7559
7560
7561 #
7562 # Find where sockets are (especially for Solaris)
7563 # Do this before the TCP Wrappers test since tcp wrappers
7564 # uses the socket library and some linkers are stupid.
7565 #
7566 echo "$as_me:$LINENO: checking for socket" >&5
7567 echo $ECHO_N "checking for socket... $ECHO_C" >&6
7568 if test "${ac_cv_func_socket+set}" = set; then
7569   echo $ECHO_N "(cached) $ECHO_C" >&6
7570 else
7571   cat >conftest.$ac_ext <<_ACEOF
7572 /* confdefs.h.  */
7573 _ACEOF
7574 cat confdefs.h >>conftest.$ac_ext
7575 cat >>conftest.$ac_ext <<_ACEOF
7576 /* end confdefs.h.  */
7577 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
7578    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7579 #define socket innocuous_socket
7580
7581 /* System header to define __stub macros and hopefully few prototypes,
7582     which can conflict with char socket (); below.
7583     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7584     <limits.h> exists even on freestanding compilers.  */
7585
7586 #ifdef __STDC__
7587 # include <limits.h>
7588 #else
7589 # include <assert.h>
7590 #endif
7591
7592 #undef socket
7593
7594 /* Override any gcc2 internal prototype to avoid an error.  */
7595 #ifdef __cplusplus
7596 extern "C"
7597 {
7598 #endif
7599 /* We use char because int might match the return type of a gcc2
7600    builtin and then its argument prototype would still apply.  */
7601 char socket ();
7602 /* The GNU C library defines this for functions which it implements
7603     to always fail with ENOSYS.  Some functions are actually named
7604     something starting with __ and the normal name is an alias.  */
7605 #if defined (__stub_socket) || defined (__stub___socket)
7606 choke me
7607 #else
7608 char (*f) () = socket;
7609 #endif
7610 #ifdef __cplusplus
7611 }
7612 #endif
7613
7614 int
7615 main ()
7616 {
7617 return f != socket;
7618   ;
7619   return 0;
7620 }
7621 _ACEOF
7622 rm -f conftest.$ac_objext conftest$ac_exeext
7623 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7624   (eval $ac_link) 2>conftest.er1
7625   ac_status=$?
7626   grep -v '^ *+' conftest.er1 >conftest.err
7627   rm -f conftest.er1
7628   cat conftest.err >&5
7629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7630   (exit $ac_status); } &&
7631          { ac_try='test -z "$ac_c_werror_flag"
7632                          || test ! -s conftest.err'
7633   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7634   (eval $ac_try) 2>&5
7635   ac_status=$?
7636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7637   (exit $ac_status); }; } &&
7638          { ac_try='test -s conftest$ac_exeext'
7639   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7640   (eval $ac_try) 2>&5
7641   ac_status=$?
7642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7643   (exit $ac_status); }; }; then
7644   ac_cv_func_socket=yes
7645 else
7646   echo "$as_me: failed program was:" >&5
7647 sed 's/^/| /' conftest.$ac_ext >&5
7648
7649 ac_cv_func_socket=no
7650 fi
7651 rm -f conftest.err conftest.$ac_objext \
7652       conftest$ac_exeext conftest.$ac_ext
7653 fi
7654 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
7655 echo "${ECHO_T}$ac_cv_func_socket" >&6
7656 if test $ac_cv_func_socket = yes; then
7657   echo "$as_me:$LINENO: result: using libc's socket" >&5
7658 echo "${ECHO_T}using libc's socket" >&6
7659 else
7660
7661 echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
7662 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6
7663 if test "${ac_cv_lib_xnet_socket+set}" = set; then
7664   echo $ECHO_N "(cached) $ECHO_C" >&6
7665 else
7666   ac_check_lib_save_LIBS=$LIBS
7667 LIBS="-lxnet  $LIBS"
7668 cat >conftest.$ac_ext <<_ACEOF
7669 /* confdefs.h.  */
7670 _ACEOF
7671 cat confdefs.h >>conftest.$ac_ext
7672 cat >>conftest.$ac_ext <<_ACEOF
7673 /* end confdefs.h.  */
7674
7675 /* Override any gcc2 internal prototype to avoid an error.  */
7676 #ifdef __cplusplus
7677 extern "C"
7678 #endif
7679 /* We use char because int might match the return type of a gcc2
7680    builtin and then its argument prototype would still apply.  */
7681 char socket ();
7682 int
7683 main ()
7684 {
7685 socket ();
7686   ;
7687   return 0;
7688 }
7689 _ACEOF
7690 rm -f conftest.$ac_objext conftest$ac_exeext
7691 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7692   (eval $ac_link) 2>conftest.er1
7693   ac_status=$?
7694   grep -v '^ *+' conftest.er1 >conftest.err
7695   rm -f conftest.er1
7696   cat conftest.err >&5
7697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7698   (exit $ac_status); } &&
7699          { ac_try='test -z "$ac_c_werror_flag"
7700                          || test ! -s conftest.err'
7701   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7702   (eval $ac_try) 2>&5
7703   ac_status=$?
7704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7705   (exit $ac_status); }; } &&
7706          { ac_try='test -s conftest$ac_exeext'
7707   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7708   (eval $ac_try) 2>&5
7709   ac_status=$?
7710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7711   (exit $ac_status); }; }; then
7712   ac_cv_lib_xnet_socket=yes
7713 else
7714   echo "$as_me: failed program was:" >&5
7715 sed 's/^/| /' conftest.$ac_ext >&5
7716
7717 ac_cv_lib_xnet_socket=no
7718 fi
7719 rm -f conftest.err conftest.$ac_objext \
7720       conftest$ac_exeext conftest.$ac_ext
7721 LIBS=$ac_check_lib_save_LIBS
7722 fi
7723 echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
7724 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6
7725 if test $ac_cv_lib_xnet_socket = yes; then
7726   cat >>confdefs.h <<_ACEOF
7727 #define HAVE_LIBXNET 1
7728 _ACEOF
7729
7730   LIBS="-lxnet $LIBS"
7731
7732 fi
7733
7734
7735 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
7736 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
7737 if test "${ac_cv_lib_socket_socket+set}" = set; then
7738   echo $ECHO_N "(cached) $ECHO_C" >&6
7739 else
7740   ac_check_lib_save_LIBS=$LIBS
7741 LIBS="-lsocket  $LIBS"
7742 cat >conftest.$ac_ext <<_ACEOF
7743 /* confdefs.h.  */
7744 _ACEOF
7745 cat confdefs.h >>conftest.$ac_ext
7746 cat >>conftest.$ac_ext <<_ACEOF
7747 /* end confdefs.h.  */
7748
7749 /* Override any gcc2 internal prototype to avoid an error.  */
7750 #ifdef __cplusplus
7751 extern "C"
7752 #endif
7753 /* We use char because int might match the return type of a gcc2
7754    builtin and then its argument prototype would still apply.  */
7755 char socket ();
7756 int
7757 main ()
7758 {
7759 socket ();
7760   ;
7761   return 0;
7762 }
7763 _ACEOF
7764 rm -f conftest.$ac_objext conftest$ac_exeext
7765 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7766   (eval $ac_link) 2>conftest.er1
7767   ac_status=$?
7768   grep -v '^ *+' conftest.er1 >conftest.err
7769   rm -f conftest.er1
7770   cat conftest.err >&5
7771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7772   (exit $ac_status); } &&
7773          { ac_try='test -z "$ac_c_werror_flag"
7774                          || test ! -s conftest.err'
7775   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7776   (eval $ac_try) 2>&5
7777   ac_status=$?
7778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7779   (exit $ac_status); }; } &&
7780          { ac_try='test -s conftest$ac_exeext'
7781   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7782   (eval $ac_try) 2>&5
7783   ac_status=$?
7784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7785   (exit $ac_status); }; }; then
7786   ac_cv_lib_socket_socket=yes
7787 else
7788   echo "$as_me: failed program was:" >&5
7789 sed 's/^/| /' conftest.$ac_ext >&5
7790
7791 ac_cv_lib_socket_socket=no
7792 fi
7793 rm -f conftest.err conftest.$ac_objext \
7794       conftest$ac_exeext conftest.$ac_ext
7795 LIBS=$ac_check_lib_save_LIBS
7796 fi
7797 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
7798 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
7799 if test $ac_cv_lib_socket_socket = yes; then
7800   cat >>confdefs.h <<_ACEOF
7801 #define HAVE_LIBSOCKET 1
7802 _ACEOF
7803
7804   LIBS="-lsocket $LIBS"
7805
7806 fi
7807
7808
7809 echo "$as_me:$LINENO: checking for socket in -linet" >&5
7810 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
7811 if test "${ac_cv_lib_inet_socket+set}" = set; then
7812   echo $ECHO_N "(cached) $ECHO_C" >&6
7813 else
7814   ac_check_lib_save_LIBS=$LIBS
7815 LIBS="-linet  $LIBS"
7816 cat >conftest.$ac_ext <<_ACEOF
7817 /* confdefs.h.  */
7818 _ACEOF
7819 cat confdefs.h >>conftest.$ac_ext
7820 cat >>conftest.$ac_ext <<_ACEOF
7821 /* end confdefs.h.  */
7822
7823 /* Override any gcc2 internal prototype to avoid an error.  */
7824 #ifdef __cplusplus
7825 extern "C"
7826 #endif
7827 /* We use char because int might match the return type of a gcc2
7828    builtin and then its argument prototype would still apply.  */
7829 char socket ();
7830 int
7831 main ()
7832 {
7833 socket ();
7834   ;
7835   return 0;
7836 }
7837 _ACEOF
7838 rm -f conftest.$ac_objext conftest$ac_exeext
7839 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7840   (eval $ac_link) 2>conftest.er1
7841   ac_status=$?
7842   grep -v '^ *+' conftest.er1 >conftest.err
7843   rm -f conftest.er1
7844   cat conftest.err >&5
7845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7846   (exit $ac_status); } &&
7847          { ac_try='test -z "$ac_c_werror_flag"
7848                          || test ! -s conftest.err'
7849   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7850   (eval $ac_try) 2>&5
7851   ac_status=$?
7852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7853   (exit $ac_status); }; } &&
7854          { ac_try='test -s conftest$ac_exeext'
7855   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7856   (eval $ac_try) 2>&5
7857   ac_status=$?
7858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7859   (exit $ac_status); }; }; then
7860   ac_cv_lib_inet_socket=yes
7861 else
7862   echo "$as_me: failed program was:" >&5
7863 sed 's/^/| /' conftest.$ac_ext >&5
7864
7865 ac_cv_lib_inet_socket=no
7866 fi
7867 rm -f conftest.err conftest.$ac_objext \
7868       conftest$ac_exeext conftest.$ac_ext
7869 LIBS=$ac_check_lib_save_LIBS
7870 fi
7871 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
7872 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
7873 if test $ac_cv_lib_inet_socket = yes; then
7874   cat >>confdefs.h <<_ACEOF
7875 #define HAVE_LIBINET 1
7876 _ACEOF
7877
7878   LIBS="-linet $LIBS"
7879
7880 fi
7881
7882 fi
7883
7884
7885
7886 # -----------------------------------------------------------
7887 # Check whether user wants TCP wrappers support (default off)
7888 # -----------------------------------------------------------
7889 TCPW_MSG="no"
7890
7891 # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
7892 if test "${with_tcp_wrappers+set}" = set; then
7893   withval="$with_tcp_wrappers"
7894
7895     if test "x$withval" != "xno" ; then
7896        saved_LIBS="$LIBS"
7897        LIBS="$saved_LIBS -lwrap"
7898        echo "$as_me:$LINENO: checking for libwrap" >&5
7899 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6
7900        cat >conftest.$ac_ext <<_ACEOF
7901 /* confdefs.h.  */
7902 _ACEOF
7903 cat confdefs.h >>conftest.$ac_ext
7904 cat >>conftest.$ac_ext <<_ACEOF
7905 /* end confdefs.h.  */
7906  #include <tcpd.h>
7907              int deny_severity = 0;
7908              int allow_severity = 0;
7909              struct request_info *req;
7910 int
7911 main ()
7912 {
7913  hosts_access(req);
7914   ;
7915   return 0;
7916 }
7917 _ACEOF
7918 rm -f conftest.$ac_objext conftest$ac_exeext
7919 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7920   (eval $ac_link) 2>conftest.er1
7921   ac_status=$?
7922   grep -v '^ *+' conftest.er1 >conftest.err
7923   rm -f conftest.er1
7924   cat conftest.err >&5
7925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7926   (exit $ac_status); } &&
7927          { ac_try='test -z "$ac_c_werror_flag"
7928                          || test ! -s conftest.err'
7929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7930   (eval $ac_try) 2>&5
7931   ac_status=$?
7932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7933   (exit $ac_status); }; } &&
7934          { ac_try='test -s conftest$ac_exeext'
7935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7936   (eval $ac_try) 2>&5
7937   ac_status=$?
7938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7939   (exit $ac_status); }; }; then
7940
7941             echo "$as_me:$LINENO: result: yes" >&5
7942 echo "${ECHO_T}yes" >&6
7943             cat >>confdefs.h <<\_ACEOF
7944 #define HAVE_LIBWRAP 1
7945 _ACEOF
7946
7947             TCPW_MSG="yes"
7948
7949 else
7950   echo "$as_me: failed program was:" >&5
7951 sed 's/^/| /' conftest.$ac_ext >&5
7952
7953
7954             LIBS="$saved_LIBS -lwrap -lnsl"
7955             cat >conftest.$ac_ext <<_ACEOF
7956 /* confdefs.h.  */
7957 _ACEOF
7958 cat confdefs.h >>conftest.$ac_ext
7959 cat >>conftest.$ac_ext <<_ACEOF
7960 /* end confdefs.h.  */
7961  #include <tcpd.h>
7962                  int deny_severity = 0;
7963                  int allow_severity = 0;
7964                  struct request_info *req;
7965 int
7966 main ()
7967 {
7968  hosts_access(req);
7969   ;
7970   return 0;
7971 }
7972 _ACEOF
7973 rm -f conftest.$ac_objext conftest$ac_exeext
7974 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7975   (eval $ac_link) 2>conftest.er1
7976   ac_status=$?
7977   grep -v '^ *+' conftest.er1 >conftest.err
7978   rm -f conftest.er1
7979   cat conftest.err >&5
7980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7981   (exit $ac_status); } &&
7982          { ac_try='test -z "$ac_c_werror_flag"
7983                          || test ! -s conftest.err'
7984   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7985   (eval $ac_try) 2>&5
7986   ac_status=$?
7987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7988   (exit $ac_status); }; } &&
7989          { ac_try='test -s conftest$ac_exeext'
7990   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7991   (eval $ac_try) 2>&5
7992   ac_status=$?
7993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7994   (exit $ac_status); }; }; then
7995
7996                  echo "$as_me:$LINENO: result: yes" >&5
7997 echo "${ECHO_T}yes" >&6
7998                  cat >>confdefs.h <<\_ACEOF
7999 #define HAVE_LIBWRAP 1
8000 _ACEOF
8001
8002                  TCPW_MSG="yes"
8003
8004 else
8005   echo "$as_me: failed program was:" >&5
8006 sed 's/^/| /' conftest.$ac_ext >&5
8007
8008 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
8009 echo "$as_me: error: *** libwrap missing" >&2;}
8010    { (exit 1); exit 1; }; }
8011
8012 fi
8013 rm -f conftest.err conftest.$ac_objext \
8014       conftest$ac_exeext conftest.$ac_ext
8015
8016 fi
8017 rm -f conftest.err conftest.$ac_objext \
8018       conftest$ac_exeext conftest.$ac_ext
8019     fi
8020
8021
8022 fi;
8023
8024 # ------------------------------------------
8025 # Where to place working dir
8026 # ------------------------------------------
8027 working_dir=`eval echo ${prefix}/var/bacula/working`
8028
8029 # Check whether --with-working-dir or --without-working-dir was given.
8030 if test "${with_working_dir+set}" = set; then
8031   withval="$with_working_dir"
8032
8033        if test "x$withval" != "xno" ; then
8034               working_dir=$withval
8035        fi
8036
8037
8038 fi;
8039
8040
8041
8042
8043 # ------------------------------------------
8044 # Where to place scriptdir (script files)
8045 # ------------------------------------------
8046 scriptdir=`eval echo ${sysconfdir}`
8047
8048 # Check whether --with-scriptdir or --without-scriptdir was given.
8049 if test "${with_scriptdir+set}" = set; then
8050   withval="$with_scriptdir"
8051
8052        if test "x$withval" != "xno" ; then
8053               scriptdir=$withval
8054        fi
8055
8056
8057 fi;
8058
8059
8060
8061
8062 # ------------------------------------------
8063 # Where to send dump email
8064 # ------------------------------------------
8065 dump_email=root@localhost
8066
8067 # Check whether --with-dump-email or --without-dump-email was given.
8068 if test "${with_dump_email+set}" = set; then
8069   withval="$with_dump_email"
8070
8071        if test "x$withval" != "xno" ; then
8072               dump_email=$withval
8073        fi
8074
8075
8076 fi;
8077
8078
8079
8080 # ------------------------------------------
8081 # Where to send job email
8082 # ------------------------------------------
8083 job_email=root@localhost
8084
8085 # Check whether --with-job-email or --without-job-email was given.
8086 if test "${with_job_email+set}" = set; then
8087   withval="$with_job_email"
8088
8089        if test "x$withval" != "xno" ; then
8090               job_email=$withval
8091        fi
8092
8093
8094 fi;
8095
8096
8097
8098 # ------------------------------------------
8099 # Where to find smtp host
8100 # ------------------------------------------
8101 smtp_host=localhost
8102
8103 # Check whether --with-smtp_host or --without-smtp_host was given.
8104 if test "${with_smtp_host+set}" = set; then
8105   withval="$with_smtp_host"
8106
8107        if test "x$withval" != "xno" ; then
8108               smtp_host=$withval
8109        fi
8110
8111
8112 fi;
8113
8114
8115
8116
8117 # ------------------------------------
8118 # Where to place pid files
8119 # ------------------------------------
8120 piddir=/var/run
8121
8122 # Check whether --with-pid-dir or --without-pid-dir was given.
8123 if test "${with_pid_dir+set}" = set; then
8124   withval="$with_pid_dir"
8125
8126         if test "x$withval" != "xno" ; then
8127             piddir=$withval
8128         fi
8129
8130
8131 fi;
8132
8133 cat >>confdefs.h <<_ACEOF
8134 #define _PATH_BACULA_PIDDIR "$piddir"
8135 _ACEOF
8136
8137
8138
8139
8140 # ------------------------------------
8141 # Where to place subsys "lock file"
8142 # ------------------------------------
8143 subsysdir=/var/run/subsys
8144
8145 # Check whether --with-subsys-dir or --without-subsys-dir was given.
8146 if test "${with_subsys_dir+set}" = set; then
8147   withval="$with_subsys_dir"
8148
8149         if test "x$withval" != "xno" ; then
8150             subsysdir=$withval
8151         fi
8152
8153
8154 fi;
8155
8156
8157
8158
8159
8160 # ------------------------------------
8161 # Where to start assigning ports
8162 # ------------------------------------
8163 baseport=9101
8164
8165 # Check whether --with-baseport or --without-baseport was given.
8166 if test "${with_baseport+set}" = set; then
8167   withval="$with_baseport"
8168
8169         if test "x$withval" != "xno" ; then
8170              baseport=$withval
8171         fi
8172
8173
8174 fi;
8175
8176
8177 dir_port=`expr $baseport`
8178 fd_port=`expr $baseport + 1`
8179 sd_port=`expr $fd_port + 1`
8180
8181
8182
8183
8184
8185
8186 # ------------------------------------------
8187 # Generate passwords
8188 # ------------------------------------------
8189 dir_password=
8190
8191 # Check whether --with-dir-password or --without-dir-password was given.
8192 if test "${with_dir_password+set}" = set; then
8193   withval="$with_dir_password"
8194
8195        if test "x$withval" != "xno" ; then
8196            dir_password=$withval
8197        fi
8198
8199
8200 fi;
8201
8202 if test "x$dir_password" = "x" ; then
8203    if test "x$OPENSSL" = "xnone" ; then
8204 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" abcdefghijklmnopqrst | awk '{getline} {print} {exit}'`
8205       key=`autoconf/randpass 33`
8206    else
8207       key=`openssl rand -base64 33`
8208    fi
8209    dir_password=$key
8210 fi
8211
8212 fd_password=
8213
8214 # Check whether --with-fd-password or --without-fd-password was given.
8215 if test "${with_fd_password+set}" = set; then
8216   withval="$with_fd_password"
8217
8218        if test "x$withval" != "xno" ; then
8219            fd_password=$withval
8220        fi
8221
8222
8223 fi;
8224
8225 if test "x$fd_password" = "x" ; then
8226    if test "x$OPENSSL" = "xnone" ; then
8227 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" tsrqponmlkjihgfedcba | awk '{getline} {print} {exit}'`
8228       key=`autoconf/randpass 37`
8229    else
8230       key=`openssl rand -base64 33`
8231    fi
8232    fd_password=$key
8233 fi
8234
8235 sd_password=
8236
8237 # Check whether --with-sd-password or --without-sd-password was given.
8238 if test "${with_sd_password+set}" = set; then
8239   withval="$with_sd_password"
8240
8241        if test "x$withval" != "xno" ; then
8242            sd_password=$withval
8243        fi
8244
8245
8246 fi;
8247
8248 if test "x$sd_password" = "x" ; then
8249    if test "x$OPENSSL" = "xnone" ; then
8250 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" 123456789uvwxyzabcdef | awk '{getline} {print} {exit}'`
8251       key=`autoconf/randpass 41`
8252    else
8253       key=`openssl rand -base64 33`
8254    fi
8255    sd_password=$key
8256 fi
8257
8258 mon_dir_password=
8259
8260 # Check whether --with-mon-dir-password or --without-mon-dir-password was given.
8261 if test "${with_mon_dir_password+set}" = set; then
8262   withval="$with_mon_dir_password"
8263
8264        if test "x$withval" != "xno" ; then
8265            mon_dir_password=$withval
8266        fi
8267
8268
8269 fi;
8270
8271 if test "x$mon_dir_password" = "x" ; then
8272    if test "x$OPENSSL" = "xnone" ; then
8273 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" abcdefghijklmnopqrst | awk '{getline} {print} {exit}'`
8274       key=`autoconf/randpass 33`
8275    else
8276       key=`openssl rand -base64 33`
8277    fi
8278    mon_dir_password=$key
8279 fi
8280
8281 mon_fd_password=
8282
8283 # Check whether --with-mon-fd-password or --without-mon-fd-password was given.
8284 if test "${with_mon_fd_password+set}" = set; then
8285   withval="$with_mon_fd_password"
8286
8287        if test "x$withval" != "xno" ; then
8288            mon_fd_password=$withval
8289        fi
8290
8291
8292 fi;
8293
8294 if test "x$mon_fd_password" = "x" ; then
8295    if test "x$OPENSSL" = "xnone" ; then
8296 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" tsrqponmlkjihgfedcba | awk '{getline} {print} {exit}'`
8297       key=`autoconf/randpass 37`
8298    else
8299       key=`openssl rand -base64 33`
8300    fi
8301    mon_fd_password=$key
8302 fi
8303
8304 mon_sd_password=
8305
8306 # Check whether --with-mon-sd-password or --without-mon-sd-password was given.
8307 if test "${with_mon_sd_password+set}" = set; then
8308   withval="$with_mon_sd_password"
8309
8310        if test "x$withval" != "xno" ; then
8311            mon_sd_password=$withval
8312        fi
8313
8314
8315 fi;
8316
8317 if test "x$mon_sd_password" = "x" ; then
8318    if test "x$OPENSSL" = "xnone" ; then
8319 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" 123456789uvwxyzabcdef | awk '{getline} {print} {exit}'`
8320       key=`autoconf/randpass 41`
8321    else
8322       key=`openssl rand -base64 33`
8323    fi
8324    mon_sd_password=$key
8325 fi
8326
8327
8328
8329
8330
8331
8332
8333
8334 # -------------------------------------------------------------------------
8335 #  Set variables for bimagemgr installation
8336 # -------------------------------------------------------------------------
8337 bimagemgr_cgidir=/var/www/cgi-bin
8338
8339 # Check whether --with-bimagemgr-cgidir or --without-bimagemgr-cgidir was given.
8340 if test "${with_bimagemgr_cgidir+set}" = set; then
8341   withval="$with_bimagemgr_cgidir"
8342
8343        if test "x$withval" != "xno" ; then
8344            bimagemgr_cgidir=$withval
8345        fi
8346
8347
8348 fi;
8349
8350 bimagemgr_docdir=/var/www/html
8351
8352 # Check whether --with-bimagemgr-docdir or --without-bimagemgr-docdir was given.
8353 if test "${with_bimagemgr_docdir+set}" = set; then
8354   withval="$with_bimagemgr_docdir"
8355
8356        if test "x$withval" != "xno" ; then
8357            bimagemgr_docdir=$withval
8358        fi
8359
8360
8361 fi;
8362
8363 bimagemgr_binowner=root
8364
8365 # Check whether --with-bimagemgr-binowner or --without-bimagemgr-binowner was given.
8366 if test "${with_bimagemgr_binowner+set}" = set; then
8367   withval="$with_bimagemgr_binowner"
8368
8369        if test "x$withval" != "xno" ; then
8370            bimagemgr_binowner=$withval
8371        fi
8372
8373
8374 fi;
8375
8376 bimagemgr_bingroup=root
8377
8378 # Check whether --with-bimagemgr-bingroup or --without-bimagemgr-bingroup was given.
8379 if test "${with_bimagemgr_bingroup+set}" = set; then
8380   withval="$with_bimagemgr_bingroup"
8381
8382        if test "x$withval" != "xno" ; then
8383            bimagemgr_bingroup=$withval
8384        fi
8385
8386
8387 fi;
8388
8389 bimagemgr_dataowner=apache
8390
8391 # Check whether --with-bimagemgr-dataowner or --without-bimagemgr-dataowner was given.
8392 if test "${with_bimagemgr_dataowner+set}" = set; then
8393   withval="$with_bimagemgr_dataowner"
8394
8395        if test "x$withval" != "xno" ; then
8396            bimagemgr_dataowner=$withval
8397        fi
8398
8399
8400 fi;
8401
8402 bimagemgr_datagroup=apache
8403
8404 # Check whether --with-bimagemgr-datagroup or --without-bimagemgr-datagroup was given.
8405 if test "${with_bimagemgr_datagroup+set}" = set; then
8406   withval="$with_bimagemgr_datagroup"
8407
8408        if test "x$withval" != "xno" ; then
8409            bimagemgr_datagroup=$withval
8410        fi
8411
8412
8413 fi;
8414
8415
8416
8417
8418
8419
8420
8421
8422 #
8423 # Handle users and groups for each daemon
8424 #
8425 dir_user=
8426
8427 # Check whether --with-dir_user or --without-dir_user was given.
8428 if test "${with_dir_user+set}" = set; then
8429   withval="$with_dir_user"
8430
8431         if test "x$withval" != "x" ; then
8432              dir_user=$withval
8433         fi
8434
8435
8436 fi;
8437
8438 dir_group=
8439
8440 # Check whether --with-dir_group or --without-dir_group was given.
8441 if test "${with_dir_group+set}" = set; then
8442   withval="$with_dir_group"
8443
8444         if test "x$withval" != "x" ; then
8445              dir_group=$withval
8446         fi
8447
8448
8449 fi;
8450
8451 sd_user=
8452
8453 # Check whether --with-sd_user or --without-sd_user was given.
8454 if test "${with_sd_user+set}" = set; then
8455   withval="$with_sd_user"
8456
8457         if test "x$withval" != "x" ; then
8458              sd_user=$withval
8459         fi
8460
8461
8462 fi;
8463
8464 sd_group=
8465
8466 # Check whether --with-sd_group or --without-sd_group was given.
8467 if test "${with_sd_group+set}" = set; then
8468   withval="$with_sd_group"
8469
8470         if test "x$withval" != "x" ; then
8471              sd_group=$withval
8472         fi
8473
8474
8475 fi;
8476
8477 fd_user=
8478
8479 # Check whether --with-fd_user or --without-fd_user was given.
8480 if test "${with_fd_user+set}" = set; then
8481   withval="$with_fd_user"
8482
8483         if test "x$withval" != "x" ; then
8484              fd_user=$withval
8485         fi
8486
8487
8488 fi;
8489
8490 fd_group=
8491
8492 # Check whether --with-fd_group or --without-fd_group was given.
8493 if test "${with_fd_group+set}" = set; then
8494   withval="$with_fd_group"
8495
8496         if test "x$withval" != "x" ; then
8497              fd_group=$withval
8498         fi
8499
8500
8501 fi;
8502
8503
8504
8505
8506
8507
8508
8509
8510
8511
8512
8513 #
8514 # allow setting default executable permissions
8515 #
8516 SBINPERM=0754
8517
8518 # Check whether --with-sbin-perm or --without-sbin-perm was given.
8519 if test "${with_sbin_perm+set}" = set; then
8520   withval="$with_sbin_perm"
8521
8522         if test "x$withval" != "x" ; then
8523             SBINPERM=$withval
8524         fi
8525
8526
8527 fi;
8528
8529
8530
8531 # ------------------------------------------------
8532 # Bacula check for various SQL database engines
8533 # ------------------------------------------------
8534
8535 db_found=no
8536 echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
8537 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6
8538
8539 # Check whether --with-postgresql or --without-postgresql was given.
8540 if test "${with_postgresql+set}" = set; then
8541   withval="$with_postgresql"
8542
8543   if test "$withval" != "no"; then
8544       if test "$db_found" = "yes"; then
8545           echo "$as_me:$LINENO: result: error" >&5
8546 echo "${ECHO_T}error" >&6
8547           { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
8548 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
8549    { (exit 1); exit 1; }; };
8550       fi
8551       if test "$withval" = "yes"; then
8552           if test -f /usr/local/include/libpq-fe.h; then
8553               POSTGRESQL_INCDIR=/usr/local/include
8554               POSTGRESQL_LIBDIR=/usr/local/lib
8555               POSTGRESQL_BINDIR=/usr/local/bin
8556           elif test -f /usr/include/libpq-fe.h; then
8557               POSTGRESQL_INCDIR=/usr/include
8558               POSTGRESQL_LIBDIR=/usr/lib
8559               POSTGRESQL_BINDIR=/usr/bin
8560           elif test -f /usr/include/pgsql/libpq-fe.h; then
8561               POSTGRESQL_INCDIR=/usr/include/pgsql
8562               POSTGRESQL_LIBDIR=/usr/lib/pgsql
8563               POSTGRESQL_BINDIR=/usr/bin
8564           elif test -f /usr/include/postgresql/libpq-fe.h; then
8565               POSTGRESQL_INCDIR=/usr/include/postgresql
8566               POSTGRESQL_LIBDIR=/usr/lib/postgresql
8567               POSTGRESQL_BINDIR=/usr/bin
8568           else
8569               echo "$as_me:$LINENO: result: no" >&5
8570 echo "${ECHO_T}no" >&6
8571               { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
8572 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
8573    { (exit 1); exit 1; }; }
8574           fi
8575       elif test -f $withval/include/libpq-fe.h; then
8576           POSTGRESQL_INCDIR=$withval/include
8577           POSTGRESQL_LIBDIR=$withval/lib
8578           POSTGRESQL_BINDIR=$withval/bin
8579       elif test -f $withval/include/postgresql/libpq-fe.h; then
8580           POSTGRESQL_INCDIR=$withval/include/postgresql
8581           POSTGRESQL_LIBDIR=$withval/lib
8582           POSTGRESQL_BINDIR=$withval/bin
8583       else
8584           echo "$as_me:$LINENO: result: no" >&5
8585 echo "${ECHO_T}no" >&6
8586           { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
8587 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
8588    { (exit 1); exit 1; }; }
8589       fi
8590       POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
8591       echo "$as_me:$LINENO: checking for crypt" >&5
8592 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
8593 if test "${ac_cv_func_crypt+set}" = set; then
8594   echo $ECHO_N "(cached) $ECHO_C" >&6
8595 else
8596   cat >conftest.$ac_ext <<_ACEOF
8597 /* confdefs.h.  */
8598 _ACEOF
8599 cat confdefs.h >>conftest.$ac_ext
8600 cat >>conftest.$ac_ext <<_ACEOF
8601 /* end confdefs.h.  */
8602 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
8603    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8604 #define crypt innocuous_crypt
8605
8606 /* System header to define __stub macros and hopefully few prototypes,
8607     which can conflict with char crypt (); below.
8608     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8609     <limits.h> exists even on freestanding compilers.  */
8610
8611 #ifdef __STDC__
8612 # include <limits.h>
8613 #else
8614 # include <assert.h>
8615 #endif
8616
8617 #undef crypt
8618
8619 /* Override any gcc2 internal prototype to avoid an error.  */
8620 #ifdef __cplusplus
8621 extern "C"
8622 {
8623 #endif
8624 /* We use char because int might match the return type of a gcc2
8625    builtin and then its argument prototype would still apply.  */
8626 char crypt ();
8627 /* The GNU C library defines this for functions which it implements
8628     to always fail with ENOSYS.  Some functions are actually named
8629     something starting with __ and the normal name is an alias.  */
8630 #if defined (__stub_crypt) || defined (__stub___crypt)
8631 choke me
8632 #else
8633 char (*f) () = crypt;
8634 #endif
8635 #ifdef __cplusplus
8636 }
8637 #endif
8638
8639 int
8640 main ()
8641 {
8642 return f != crypt;
8643   ;
8644   return 0;
8645 }
8646 _ACEOF
8647 rm -f conftest.$ac_objext conftest$ac_exeext
8648 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8649   (eval $ac_link) 2>conftest.er1
8650   ac_status=$?
8651   grep -v '^ *+' conftest.er1 >conftest.err
8652   rm -f conftest.er1
8653   cat conftest.err >&5
8654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8655   (exit $ac_status); } &&
8656          { ac_try='test -z "$ac_c_werror_flag"
8657                          || test ! -s conftest.err'
8658   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8659   (eval $ac_try) 2>&5
8660   ac_status=$?
8661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8662   (exit $ac_status); }; } &&
8663          { ac_try='test -s conftest$ac_exeext'
8664   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8665   (eval $ac_try) 2>&5
8666   ac_status=$?
8667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8668   (exit $ac_status); }; }; then
8669   ac_cv_func_crypt=yes
8670 else
8671   echo "$as_me: failed program was:" >&5
8672 sed 's/^/| /' conftest.$ac_ext >&5
8673
8674 ac_cv_func_crypt=no
8675 fi
8676 rm -f conftest.err conftest.$ac_objext \
8677       conftest$ac_exeext conftest.$ac_ext
8678 fi
8679 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
8680 echo "${ECHO_T}$ac_cv_func_crypt" >&6
8681 if test $ac_cv_func_crypt = yes; then
8682   :
8683 else
8684   echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
8685 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
8686 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
8687   echo $ECHO_N "(cached) $ECHO_C" >&6
8688 else
8689   ac_check_lib_save_LIBS=$LIBS
8690 LIBS="-lcrypt  $LIBS"
8691 cat >conftest.$ac_ext <<_ACEOF
8692 /* confdefs.h.  */
8693 _ACEOF
8694 cat confdefs.h >>conftest.$ac_ext
8695 cat >>conftest.$ac_ext <<_ACEOF
8696 /* end confdefs.h.  */
8697
8698 /* Override any gcc2 internal prototype to avoid an error.  */
8699 #ifdef __cplusplus
8700 extern "C"
8701 #endif
8702 /* We use char because int might match the return type of a gcc2
8703    builtin and then its argument prototype would still apply.  */
8704 char crypt ();
8705 int
8706 main ()
8707 {
8708 crypt ();
8709   ;
8710   return 0;
8711 }
8712 _ACEOF
8713 rm -f conftest.$ac_objext conftest$ac_exeext
8714 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8715   (eval $ac_link) 2>conftest.er1
8716   ac_status=$?
8717   grep -v '^ *+' conftest.er1 >conftest.err
8718   rm -f conftest.er1
8719   cat conftest.err >&5
8720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8721   (exit $ac_status); } &&
8722          { ac_try='test -z "$ac_c_werror_flag"
8723                          || test ! -s conftest.err'
8724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8725   (eval $ac_try) 2>&5
8726   ac_status=$?
8727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8728   (exit $ac_status); }; } &&
8729          { ac_try='test -s conftest$ac_exeext'
8730   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8731   (eval $ac_try) 2>&5
8732   ac_status=$?
8733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8734   (exit $ac_status); }; }; then
8735   ac_cv_lib_crypt_crypt=yes
8736 else
8737   echo "$as_me: failed program was:" >&5
8738 sed 's/^/| /' conftest.$ac_ext >&5
8739
8740 ac_cv_lib_crypt_crypt=no
8741 fi
8742 rm -f conftest.err conftest.$ac_objext \
8743       conftest$ac_exeext conftest.$ac_ext
8744 LIBS=$ac_check_lib_save_LIBS
8745 fi
8746 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
8747 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
8748 if test $ac_cv_lib_crypt_crypt = yes; then
8749   POSTGRESQL_LFLAGS="-lcrypt $POSTGRESQL_LFLAGS"
8750 fi
8751
8752 fi
8753
8754       SQL_INCLUDE=-I$POSTGRESQL_INCDIR
8755       SQL_LFLAGS=$POSTGRESQL_LFLAGS
8756       SQL_BINDIR=$POSTGRESQL_BINDIR
8757       cat >>confdefs.h <<\_ACEOF
8758 #define HAVE_POSTGRESQL 1
8759 _ACEOF
8760
8761       echo "$as_me:$LINENO: result: yes" >&5
8762 echo "${ECHO_T}yes" >&6
8763       db_found=yes
8764       support_postgresql=yes
8765       db_name=PostgreSQL
8766       DB_NAME=postgresql
8767   else
8768       echo "$as_me:$LINENO: result: no" >&5
8769 echo "${ECHO_T}no" >&6
8770   fi
8771
8772 else
8773
8774   echo "$as_me:$LINENO: result: no" >&5
8775 echo "${ECHO_T}no" >&6
8776
8777 fi;
8778
8779
8780
8781
8782
8783
8784
8785 db_found=no
8786 echo "$as_me:$LINENO: checking for MySQL support" >&5
8787 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6
8788
8789 # Check whether --with-mysql or --without-mysql was given.
8790 if test "${with_mysql+set}" = set; then
8791   withval="$with_mysql"
8792
8793   if test "$withval" != "no"; then
8794         if test "$withval" = "yes"; then
8795                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
8796                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
8797                         MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
8798                         MYSQL_BINDIR=/usr/local/mysql/bin
8799                 elif test -f /usr/include/mysql/mysql.h; then
8800                         MYSQL_INCDIR=/usr/include/mysql
8801                         MYSQL_LIBDIR=/usr/lib/mysql
8802                         MYSQL_BINDIR=/usr/bin
8803                 elif test -f /usr/include/mysql.h; then
8804                         MYSQL_INCDIR=/usr/include
8805                         MYSQL_LIBDIR=/usr/lib
8806                         MYSQL_BINDIR=/usr/bin
8807                 elif test -f /usr/local/include/mysql/mysql.h; then
8808                         MYSQL_INCDIR=/usr/local/include/mysql
8809                         MYSQL_LIBDIR=/usr/local/lib/mysql
8810                         MYSQL_BINDIR=/usr/local/bin
8811                 elif test -f /usr/local/include/mysql.h; then
8812                         MYSQL_INCDIR=/usr/local/include
8813                         MYSQL_LIBDIR=/usr/local/lib
8814                         MYSQL_BINDIR=/usr/local/bin
8815                 else
8816                    echo "$as_me:$LINENO: result: no" >&5
8817 echo "${ECHO_T}no" >&6
8818                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
8819 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
8820    { (exit 1); exit 1; }; }
8821                 fi
8822         else
8823                 if test -f $withval/include/mysql/mysql.h; then
8824                         MYSQL_INCDIR=$withval/include/mysql
8825                         MYSQL_LIBDIR=$withval/lib/mysql
8826                         MYSQL_BINDIR=$withval/bin
8827                 elif test -f $withval/include/mysql.h; then
8828                         MYSQL_INCDIR=$withval/include
8829                         MYSQL_LIBDIR=$withval/lib
8830                         MYSQL_BINDIR=$withval/bin
8831                 else
8832                    echo "$as_me:$LINENO: result: no" >&5
8833 echo "${ECHO_T}no" >&6
8834                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
8835 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
8836    { (exit 1); exit 1; }; }
8837                 fi
8838         fi
8839     SQL_INCLUDE=-I$MYSQL_INCDIR
8840     if test -f $MYSQL_LIBDIR/libmysqlclient_r.a; then
8841        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
8842        cat >>confdefs.h <<\_ACEOF
8843 #define HAVE_THREAD_SAFE_MYSQL 1
8844 _ACEOF
8845
8846     else
8847        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient -lz"
8848     fi
8849     SQL_BINDIR=$MYSQL_BINDIR
8850
8851     cat >>confdefs.h <<\_ACEOF
8852 #define HAVE_MYSQL 1
8853 _ACEOF
8854
8855     echo "$as_me:$LINENO: result: yes" >&5
8856 echo "${ECHO_T}yes" >&6
8857     db_found=yes
8858     support_mysql=yes
8859     db_name=MySQL
8860     DB_NAME=mysql
8861
8862   else
8863         echo "$as_me:$LINENO: result: no" >&5
8864 echo "${ECHO_T}no" >&6
8865   fi
8866
8867
8868 fi;
8869
8870
8871 # Check whether --with-embedded-mysql or --without-embedded-mysql was given.
8872 if test "${with_embedded_mysql+set}" = set; then
8873   withval="$with_embedded_mysql"
8874
8875   if test "$withval" != "no"; then
8876         if test "$withval" = "yes"; then
8877                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
8878                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
8879                         MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
8880                         MYSQL_BINDIR=/usr/local/mysql/bin
8881                 elif test -f /usr/include/mysql/mysql.h; then
8882                         MYSQL_INCDIR=/usr/include/mysql
8883                         MYSQL_LIBDIR=/usr/lib/mysql
8884                         MYSQL_BINDIR=/usr/bin
8885                 elif test -f /usr/include/mysql.h; then
8886                         MYSQL_INCDIR=/usr/include
8887                         MYSQL_LIBDIR=/usr/lib
8888                         MYSQL_BINDIR=/usr/bin
8889                 elif test -f /usr/local/include/mysql/mysql.h; then
8890                         MYSQL_INCDIR=/usr/local/include/mysql
8891                         MYSQL_LIBDIR=/usr/local/lib/mysql
8892                         MYSQL_BINDIR=/usr/local/bin
8893                 elif test -f /usr/local/include/mysql.h; then
8894                         MYSQL_INCDIR=/usr/local/include
8895                         MYSQL_LIBDIR=/usr/local/lib
8896                         MYSQL_BINDIR=/usr/local/bin
8897                 else
8898                    echo "$as_me:$LINENO: result: no" >&5
8899 echo "${ECHO_T}no" >&6
8900                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
8901 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
8902    { (exit 1); exit 1; }; }
8903                 fi
8904         else
8905                 if test -f $withval/include/mysql/mysql.h; then
8906                         MYSQL_INCDIR=$withval/include/mysql
8907                         MYSQL_LIBDIR=$withval/lib/mysql
8908                         MYSQL_BINDIR=$withval/bin
8909                 elif test -f $withval/include/mysql.h; then
8910                         MYSQL_INCDIR=$withval/include
8911                         MYSQL_LIBDIR=$withval/lib
8912                         MYSQL_BINDIR=$withval/bin
8913                 else
8914                    echo "$as_me:$LINENO: result: no" >&5
8915 echo "${ECHO_T}no" >&6
8916                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
8917 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
8918    { (exit 1); exit 1; }; }
8919                 fi
8920         fi
8921     SQL_INCLUDE=-I$MYSQL_INCDIR
8922     SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
8923     SQL_BINDIR=$MYSQL_BINDIR
8924
8925     cat >>confdefs.h <<\_ACEOF
8926 #define HAVE_MYSQL 1
8927 _ACEOF
8928
8929     cat >>confdefs.h <<\_ACEOF
8930 #define HAVE_EMBEDDED_MYSQL 1
8931 _ACEOF
8932
8933     echo "$as_me:$LINENO: result: yes" >&5
8934 echo "${ECHO_T}yes" >&6
8935     db_found=yes
8936     support_mysql=yes
8937     db_name=MySQL
8938     DB_NAME=mysql
8939
8940   else
8941         echo "$as_me:$LINENO: result: no" >&5
8942 echo "${ECHO_T}no" >&6
8943   fi
8944
8945
8946 fi;
8947
8948
8949
8950
8951
8952
8953
8954
8955
8956 db_found=no
8957 echo "$as_me:$LINENO: checking for SQLite3 support" >&5
8958 echo $ECHO_N "checking for SQLite3 support... $ECHO_C" >&6
8959
8960 # Check whether --with-sqlite3 or --without-sqlite3 was given.
8961 if test "${with_sqlite3+set}" = set; then
8962   withval="$with_sqlite3"
8963
8964   if test "$withval" != "no"; then
8965      if test "$withval" = "yes"; then
8966         if test -f /usr/local/include/sqlite3.h; then
8967            SQLITE_INCDIR=/usr/local/include
8968            SQLITE_LIBDIR=/usr/local/lib
8969            SQLITE_BINDIR=/usr/local/bin
8970         elif test -f /usr/include/sqlite3.h; then
8971            SQLITE_INCDIR=/usr/include
8972            SQLITE_LIBDIR=/usr/lib
8973            SQLITE_BINDIR=/usr/bin
8974         elif test -f $prefix/include/sqlite3.h; then
8975            SQLITE_INCDIR=$prefix/include
8976            SQLITE_LIBDIR=$prefix/lib
8977            SQLITE_BINDIR=$prefix/bin
8978         else
8979            echo "$as_me:$LINENO: result: no" >&5
8980 echo "${ECHO_T}no" >&6
8981            { { echo "$as_me:$LINENO: error: Unable to find sqlite3.h in standard locations" >&5
8982 echo "$as_me: error: Unable to find sqlite3.h in standard locations" >&2;}
8983    { (exit 1); exit 1; }; }
8984         fi
8985      else
8986         if test -f $withval/sqlite3.h; then
8987            SQLITE_INCDIR=$withval
8988            SQLITE_LIBDIR=$withval
8989            SQLITE_BINDIR=$withval
8990         elif test -f $withval/include/sqlite3.h; then
8991            SQLITE_INCDIR=$withval/include
8992            SQLITE_LIBDIR=$withval/lib
8993            SQLITE_BINDIR=$withval/bin
8994         else
8995            echo "$as_me:$LINENO: result: no" >&5
8996 echo "${ECHO_T}no" >&6
8997            { { echo "$as_me:$LINENO: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&5
8998 echo "$as_me: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&2;}
8999    { (exit 1); exit 1; }; }
9000         fi
9001      fi
9002      SQL_INCLUDE=-I$SQLITE_INCDIR
9003      SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite3"
9004      SQL_BINDIR=$SQLITE_BINDIR
9005
9006      cat >>confdefs.h <<\_ACEOF
9007 #define HAVE_SQLITE3 1
9008 _ACEOF
9009
9010      echo "$as_me:$LINENO: result: yes" >&5
9011 echo "${ECHO_T}yes" >&6
9012      db_found=yes
9013      support_sqlite3=yes
9014      db_name=SQLite3
9015      DB_NAME=sqlite3
9016
9017   else
9018      echo "$as_me:$LINENO: result: no" >&5
9019 echo "${ECHO_T}no" >&6
9020   fi
9021
9022 else
9023
9024   echo "$as_me:$LINENO: result: no" >&5
9025 echo "${ECHO_T}no" >&6
9026
9027 fi;
9028
9029
9030
9031
9032
9033
9034
9035 db_found=no
9036 echo "$as_me:$LINENO: checking for SQLite support" >&5
9037 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6
9038
9039 # Check whether --with-sqlite or --without-sqlite was given.
9040 if test "${with_sqlite+set}" = set; then
9041   withval="$with_sqlite"
9042
9043   if test "$withval" != "no"; then
9044      if test "$withval" = "yes"; then
9045         if test -f /usr/local/include/sqlite.h; then
9046            SQLITE_INCDIR=/usr/local/include
9047            SQLITE_LIBDIR=/usr/local/lib
9048            SQLITE_BINDIR=/usr/local/bin
9049         elif test -f /usr/include/sqlite.h; then
9050            SQLITE_INCDIR=/usr/include
9051            SQLITE_LIBDIR=/usr/lib
9052            SQLITE_BINDIR=/usr/bin
9053         elif test -f $prefix/include/sqlite.h; then
9054            SQLITE_INCDIR=$prefix/include
9055            SQLITE_LIBDIR=$prefix/lib
9056            SQLITE_BINDIR=$prefix/bin
9057         else
9058            echo "$as_me:$LINENO: result: no" >&5
9059 echo "${ECHO_T}no" >&6
9060            { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
9061 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
9062    { (exit 1); exit 1; }; }
9063         fi
9064      else
9065         if test -f $withval/sqlite.h; then
9066            SQLITE_INCDIR=$withval
9067            SQLITE_LIBDIR=$withval
9068            SQLITE_BINDIR=$withval
9069         elif test -f $withval/include/sqlite.h; then
9070            SQLITE_INCDIR=$withval/include
9071            SQLITE_LIBDIR=$withval/lib
9072            SQLITE_BINDIR=$withval/bin
9073         else
9074            echo "$as_me:$LINENO: result: no" >&5
9075 echo "${ECHO_T}no" >&6
9076            { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
9077 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
9078    { (exit 1); exit 1; }; }
9079         fi
9080      fi
9081      SQL_INCLUDE=-I$SQLITE_INCDIR
9082      SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
9083      SQL_BINDIR=$SQLITE_BINDIR
9084
9085      cat >>confdefs.h <<\_ACEOF
9086 #define HAVE_SQLITE 1
9087 _ACEOF
9088
9089      echo "$as_me:$LINENO: result: yes" >&5
9090 echo "${ECHO_T}yes" >&6
9091      db_found=yes
9092      support_sqlite=yes
9093      db_name=SQLite
9094      DB_NAME=sqlite
9095
9096   else
9097      echo "$as_me:$LINENO: result: no" >&5
9098 echo "${ECHO_T}no" >&6
9099   fi
9100
9101 else
9102
9103   echo "$as_me:$LINENO: result: no" >&5
9104 echo "${ECHO_T}no" >&6
9105
9106 fi;
9107
9108
9109
9110
9111
9112
9113
9114
9115
9116 cat >>confdefs.h <<\_ACEOF
9117 #define PROTOTYPES 1
9118 _ACEOF
9119
9120
9121 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
9122     if test -z "$CCOPTS"; then
9123         CCOPTS='-g -O2 -Wall'
9124     fi
9125     CFLAGS="$CCOPTS"
9126 fi
9127
9128
9129
9130
9131 largefile_support="no"
9132
9133    # Check whether --enable-largefile or --disable-largefile was given.
9134 if test "${enable_largefile+set}" = set; then
9135   enableval="$enable_largefile"
9136
9137 fi;
9138    if test "$enable_largefile" != no; then
9139      if test -n "$ac_tool_prefix"; then
9140   # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
9141 set dummy ${ac_tool_prefix}getconf; ac_word=$2
9142 echo "$as_me:$LINENO: checking for $ac_word" >&5
9143 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9144 if test "${ac_cv_prog_GETCONF+set}" = set; then
9145   echo $ECHO_N "(cached) $ECHO_C" >&6
9146 else
9147   if test -n "$GETCONF"; then
9148   ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
9149 else
9150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9151 for as_dir in $PATH
9152 do
9153   IFS=$as_save_IFS
9154   test -z "$as_dir" && as_dir=.
9155   for ac_exec_ext in '' $ac_executable_extensions; do
9156   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9157     ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
9158     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9159     break 2
9160   fi
9161 done
9162 done
9163
9164 fi
9165 fi
9166 GETCONF=$ac_cv_prog_GETCONF
9167 if test -n "$GETCONF"; then
9168   echo "$as_me:$LINENO: result: $GETCONF" >&5
9169 echo "${ECHO_T}$GETCONF" >&6
9170 else
9171   echo "$as_me:$LINENO: result: no" >&5
9172 echo "${ECHO_T}no" >&6
9173 fi
9174
9175 fi
9176 if test -z "$ac_cv_prog_GETCONF"; then
9177   ac_ct_GETCONF=$GETCONF
9178   # Extract the first word of "getconf", so it can be a program name with args.
9179 set dummy getconf; ac_word=$2
9180 echo "$as_me:$LINENO: checking for $ac_word" >&5
9181 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9182 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
9183   echo $ECHO_N "(cached) $ECHO_C" >&6
9184 else
9185   if test -n "$ac_ct_GETCONF"; then
9186   ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
9187 else
9188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9189 for as_dir in $PATH
9190 do
9191   IFS=$as_save_IFS
9192   test -z "$as_dir" && as_dir=.
9193   for ac_exec_ext in '' $ac_executable_extensions; do
9194   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9195     ac_cv_prog_ac_ct_GETCONF="getconf"
9196     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9197     break 2
9198   fi
9199 done
9200 done
9201
9202 fi
9203 fi
9204 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
9205 if test -n "$ac_ct_GETCONF"; then
9206   echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
9207 echo "${ECHO_T}$ac_ct_GETCONF" >&6
9208 else
9209   echo "$as_me:$LINENO: result: no" >&5
9210 echo "${ECHO_T}no" >&6
9211 fi
9212
9213   GETCONF=$ac_ct_GETCONF
9214 else
9215   GETCONF="$ac_cv_prog_GETCONF"
9216 fi
9217
9218      echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
9219 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6
9220 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
9221   echo $ECHO_N "(cached) $ECHO_C" >&6
9222 else
9223   ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
9224         ac_cv_sys_largefile_CFLAGS=no
9225         case "$host_os" in
9226            # IRIX 6.2 and later require cc -n32.
9227            irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
9228              if test "$GCC" != yes; then
9229                ac_cv_sys_largefile_CFLAGS=-n32
9230              fi
9231              ac_save_CC="$CC"
9232              CC="$CC $ac_cv_sys_largefile_CFLAGS"
9233              cat >conftest.$ac_ext <<_ACEOF
9234 /* confdefs.h.  */
9235 _ACEOF
9236 cat confdefs.h >>conftest.$ac_ext
9237 cat >>conftest.$ac_ext <<_ACEOF
9238 /* end confdefs.h.  */
9239
9240 int
9241 main ()
9242 {
9243
9244   ;
9245   return 0;
9246 }
9247 _ACEOF
9248 rm -f conftest.$ac_objext conftest$ac_exeext
9249 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9250   (eval $ac_link) 2>conftest.er1
9251   ac_status=$?
9252   grep -v '^ *+' conftest.er1 >conftest.err
9253   rm -f conftest.er1
9254   cat conftest.err >&5
9255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9256   (exit $ac_status); } &&
9257          { ac_try='test -z "$ac_c_werror_flag"
9258                          || test ! -s conftest.err'
9259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9260   (eval $ac_try) 2>&5
9261   ac_status=$?
9262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9263   (exit $ac_status); }; } &&
9264          { ac_try='test -s conftest$ac_exeext'
9265   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9266   (eval $ac_try) 2>&5
9267   ac_status=$?
9268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9269   (exit $ac_status); }; }; then
9270   :
9271 else
9272   echo "$as_me: failed program was:" >&5
9273 sed 's/^/| /' conftest.$ac_ext >&5
9274
9275 ac_cv_sys_largefile_CFLAGS=no
9276 fi
9277 rm -f conftest.err conftest.$ac_objext \
9278       conftest$ac_exeext conftest.$ac_ext
9279              CC="$ac_save_CC"
9280            esac
9281       }
9282 fi
9283 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
9284 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6
9285      echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
9286 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6
9287 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
9288   echo $ECHO_N "(cached) $ECHO_C" >&6
9289 else
9290   ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
9291         ac_cv_sys_largefile_LDFLAGS=no
9292
9293       }
9294 fi
9295 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
9296 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6
9297      echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
9298 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6
9299 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
9300   echo $ECHO_N "(cached) $ECHO_C" >&6
9301 else
9302   ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
9303         ac_cv_sys_largefile_LIBS=no
9304
9305       }
9306 fi
9307 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
9308 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6
9309
9310      for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
9311        case "$ac_flag" in
9312        no) ;;
9313        -D_FILE_OFFSET_BITS=*) ;;
9314        -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
9315        -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
9316        -D?* | -I?*)
9317          case "$ac_flag" in
9318    no) ;;
9319    ?*)
9320      case "$CPPFLAGS" in
9321      '') CPPFLAGS="$ac_flag" ;;
9322      *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
9323      esac ;;
9324    esac ;;
9325        *)
9326          case "$ac_flag" in
9327    no) ;;
9328    ?*)
9329      case "$CFLAGS" in
9330      '') CFLAGS="$ac_flag" ;;
9331      *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
9332      esac ;;
9333    esac ;;
9334        esac
9335      done
9336      case "$ac_cv_sys_largefile_LDFLAGS" in
9337    no) ;;
9338    ?*)
9339      case "$LDFLAGS" in
9340      '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
9341      *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
9342      esac ;;
9343    esac
9344      case "$ac_cv_sys_largefile_LIBS" in
9345    no) ;;
9346    ?*)
9347      case "$LIBS" in
9348      '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
9349      *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
9350      esac ;;
9351    esac
9352      echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
9353 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6
9354 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
9355   echo $ECHO_N "(cached) $ECHO_C" >&6
9356 else
9357   ac_cv_sys_file_offset_bits=no
9358       ac_cv_sys_file_offset_bits=64
9359       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
9360         case "$ac_flag" in
9361         -D_FILE_OFFSET_BITS)
9362           ac_cv_sys_file_offset_bits=1 ;;
9363         -D_FILE_OFFSET_BITS=*)
9364           ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
9365         esac
9366       done
9367
9368 fi
9369 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
9370 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
9371    if test "$ac_cv_sys_file_offset_bits" != no; then
9372
9373 cat >>confdefs.h <<_ACEOF
9374 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
9375 _ACEOF
9376
9377    fi
9378      echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
9379 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6
9380 if test "${ac_cv_sys_largefile_source+set}" = set; then
9381   echo $ECHO_N "(cached) $ECHO_C" >&6
9382 else
9383   ac_cv_sys_largefile_source=no
9384       ac_cv_sys_largefile_source=1
9385       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
9386         case "$ac_flag" in
9387         -D_LARGEFILE_SOURCE)
9388           ac_cv_sys_largefile_source=1 ;;
9389         -D_LARGEFILE_SOURCE=*)
9390           ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
9391         esac
9392       done
9393
9394 fi
9395 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
9396 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
9397    if test "$ac_cv_sys_largefile_source" != no; then
9398
9399 cat >>confdefs.h <<_ACEOF
9400 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
9401 _ACEOF
9402
9403    fi
9404      echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
9405 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6
9406 if test "${ac_cv_sys_large_files+set}" = set; then
9407   echo $ECHO_N "(cached) $ECHO_C" >&6
9408 else
9409   ac_cv_sys_large_files=no
9410       ac_cv_sys_large_files=1
9411       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
9412         case "$ac_flag" in
9413         -D_LARGE_FILES)
9414           ac_cv_sys_large_files=1 ;;
9415         -D_LARGE_FILES=*)
9416           ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
9417         esac
9418       done
9419
9420 fi
9421 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
9422 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
9423    if test "$ac_cv_sys_large_files" != no; then
9424
9425 cat >>confdefs.h <<_ACEOF
9426 #define _LARGE_FILES $ac_cv_sys_large_files
9427 _ACEOF
9428
9429    fi
9430    fi
9431
9432
9433
9434 echo "$as_me:$LINENO: checking for X" >&5
9435 echo $ECHO_N "checking for X... $ECHO_C" >&6
9436
9437
9438 # Check whether --with-x or --without-x was given.
9439 if test "${with_x+set}" = set; then
9440   withval="$with_x"
9441
9442 fi;
9443 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9444 if test "x$with_x" = xno; then
9445   # The user explicitly disabled X.
9446   have_x=disabled
9447 else
9448   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
9449     # Both variables are already set.
9450     have_x=yes
9451   else
9452     if test "${ac_cv_have_x+set}" = set; then
9453   echo $ECHO_N "(cached) $ECHO_C" >&6
9454 else
9455   # One or both of the vars are not set, and there is no cached value.
9456 ac_x_includes=no ac_x_libraries=no
9457 rm -fr conftest.dir
9458 if mkdir conftest.dir; then
9459   cd conftest.dir
9460   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
9461   cat >Imakefile <<'_ACEOF'
9462 acfindx:
9463         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
9464 _ACEOF
9465   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
9466     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9467     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
9468     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9469     for ac_extension in a so sl; do
9470       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
9471          test -f $ac_im_libdir/libX11.$ac_extension; then
9472         ac_im_usrlibdir=$ac_im_libdir; break
9473       fi
9474     done
9475     # Screen out bogus values from the imake configuration.  They are
9476     # bogus both because they are the default anyway, and because
9477     # using them would break gcc on systems where it needs fixed includes.
9478     case $ac_im_incroot in
9479         /usr/include) ;;
9480         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9481     esac
9482     case $ac_im_usrlibdir in
9483         /usr/lib | /lib) ;;
9484         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9485     esac
9486   fi
9487   cd ..
9488   rm -fr conftest.dir
9489 fi
9490
9491 # Standard set of common directories for X headers.
9492 # Check X11 before X11Rn because it is often a symlink to the current release.
9493 ac_x_header_dirs='
9494 /usr/X11/include
9495 /usr/X11R6/include
9496 /usr/X11R5/include
9497 /usr/X11R4/include
9498
9499 /usr/include/X11
9500 /usr/include/X11R6
9501 /usr/include/X11R5
9502 /usr/include/X11R4
9503
9504 /usr/local/X11/include
9505 /usr/local/X11R6/include
9506 /usr/local/X11R5/include
9507 /usr/local/X11R4/include
9508
9509 /usr/local/include/X11
9510 /usr/local/include/X11R6
9511 /usr/local/include/X11R5
9512 /usr/local/include/X11R4
9513
9514 /usr/X386/include
9515 /usr/x386/include
9516 /usr/XFree86/include/X11
9517
9518 /usr/include
9519 /usr/local/include
9520 /usr/unsupported/include
9521 /usr/athena/include
9522 /usr/local/x11r5/include
9523 /usr/lpp/Xamples/include
9524
9525 /usr/openwin/include
9526 /usr/openwin/share/include'
9527
9528 if test "$ac_x_includes" = no; then
9529   # Guess where to find include files, by looking for Intrinsic.h.
9530   # First, try using that file with no special directory specified.
9531   cat >conftest.$ac_ext <<_ACEOF
9532 /* confdefs.h.  */
9533 _ACEOF
9534 cat confdefs.h >>conftest.$ac_ext
9535 cat >>conftest.$ac_ext <<_ACEOF
9536 /* end confdefs.h.  */
9537 #include <X11/Intrinsic.h>
9538 _ACEOF
9539 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9540   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9541   ac_status=$?
9542   grep -v '^ *+' conftest.er1 >conftest.err
9543   rm -f conftest.er1
9544   cat conftest.err >&5
9545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9546   (exit $ac_status); } >/dev/null; then
9547   if test -s conftest.err; then
9548     ac_cpp_err=$ac_c_preproc_warn_flag
9549     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9550   else
9551     ac_cpp_err=
9552   fi
9553 else
9554   ac_cpp_err=yes
9555 fi
9556 if test -z "$ac_cpp_err"; then
9557   # We can compile using X headers with no special include directory.
9558 ac_x_includes=
9559 else
9560   echo "$as_me: failed program was:" >&5
9561 sed 's/^/| /' conftest.$ac_ext >&5
9562
9563   for ac_dir in $ac_x_header_dirs; do
9564   if test -r "$ac_dir/X11/Intrinsic.h"; then
9565     ac_x_includes=$ac_dir
9566     break
9567   fi
9568 done
9569 fi
9570 rm -f conftest.err conftest.$ac_ext
9571 fi # $ac_x_includes = no
9572
9573 if test "$ac_x_libraries" = no; then
9574   # Check for the libraries.
9575   # See if we find them without any special options.
9576   # Don't add to $LIBS permanently.
9577   ac_save_LIBS=$LIBS
9578   LIBS="-lXt $LIBS"
9579   cat >conftest.$ac_ext <<_ACEOF
9580 /* confdefs.h.  */
9581 _ACEOF
9582 cat confdefs.h >>conftest.$ac_ext
9583 cat >>conftest.$ac_ext <<_ACEOF
9584 /* end confdefs.h.  */
9585 #include <X11/Intrinsic.h>
9586 int
9587 main ()
9588 {
9589 XtMalloc (0)
9590   ;
9591   return 0;
9592 }
9593 _ACEOF
9594 rm -f conftest.$ac_objext conftest$ac_exeext
9595 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9596   (eval $ac_link) 2>conftest.er1
9597   ac_status=$?
9598   grep -v '^ *+' conftest.er1 >conftest.err
9599   rm -f conftest.er1
9600   cat conftest.err >&5
9601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9602   (exit $ac_status); } &&
9603          { ac_try='test -z "$ac_c_werror_flag"
9604                          || test ! -s conftest.err'
9605   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9606   (eval $ac_try) 2>&5
9607   ac_status=$?
9608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9609   (exit $ac_status); }; } &&
9610          { ac_try='test -s conftest$ac_exeext'
9611   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9612   (eval $ac_try) 2>&5
9613   ac_status=$?
9614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9615   (exit $ac_status); }; }; then
9616   LIBS=$ac_save_LIBS
9617 # We can link X programs with no special library path.
9618 ac_x_libraries=
9619 else
9620   echo "$as_me: failed program was:" >&5
9621 sed 's/^/| /' conftest.$ac_ext >&5
9622
9623 LIBS=$ac_save_LIBS
9624 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9625 do
9626   # Don't even attempt the hair of trying to link an X program!
9627   for ac_extension in a so sl; do
9628     if test -r $ac_dir/libXt.$ac_extension; then
9629       ac_x_libraries=$ac_dir
9630       break 2
9631     fi
9632   done
9633 done
9634 fi
9635 rm -f conftest.err conftest.$ac_objext \
9636       conftest$ac_exeext conftest.$ac_ext
9637 fi # $ac_x_libraries = no
9638
9639 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
9640   # Didn't find X anywhere.  Cache the known absence of X.
9641   ac_cv_have_x="have_x=no"
9642 else
9643   # Record where we found X for the cache.
9644   ac_cv_have_x="have_x=yes \
9645                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
9646 fi
9647 fi
9648
9649   fi
9650   eval "$ac_cv_have_x"
9651 fi # $with_x != no
9652
9653 if test "$have_x" != yes; then
9654   echo "$as_me:$LINENO: result: $have_x" >&5
9655 echo "${ECHO_T}$have_x" >&6
9656   no_x=yes
9657 else
9658   # If each of the values was on the command line, it overrides each guess.
9659   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9660   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9661   # Update the cache value to reflect the command line values.
9662   ac_cv_have_x="have_x=yes \
9663                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
9664   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9665 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
9666 fi
9667
9668 if test "$no_x" = yes; then
9669   # Not all programs may use this symbol, but it does not hurt to define it.
9670
9671 cat >>confdefs.h <<\_ACEOF
9672 #define X_DISPLAY_MISSING 1
9673 _ACEOF
9674
9675   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
9676 else
9677   if test -n "$x_includes"; then
9678     X_CFLAGS="$X_CFLAGS -I$x_includes"
9679   fi
9680
9681   # It would also be nice to do this for all -L options, not just this one.
9682   if test -n "$x_libraries"; then
9683     X_LIBS="$X_LIBS -L$x_libraries"
9684     # For Solaris; some versions of Sun CC require a space after -R and
9685     # others require no space.  Words are not sufficient . . . .
9686     case `(uname -sr) 2>/dev/null` in
9687     "SunOS 5"*)
9688       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
9689 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
9690       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
9691       cat >conftest.$ac_ext <<_ACEOF
9692 /* confdefs.h.  */
9693 _ACEOF
9694 cat confdefs.h >>conftest.$ac_ext
9695 cat >>conftest.$ac_ext <<_ACEOF
9696 /* end confdefs.h.  */
9697
9698 int
9699 main ()
9700 {
9701
9702   ;
9703   return 0;
9704 }
9705 _ACEOF
9706 rm -f conftest.$ac_objext conftest$ac_exeext
9707 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9708   (eval $ac_link) 2>conftest.er1
9709   ac_status=$?
9710   grep -v '^ *+' conftest.er1 >conftest.err
9711   rm -f conftest.er1
9712   cat conftest.err >&5
9713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9714   (exit $ac_status); } &&
9715          { ac_try='test -z "$ac_c_werror_flag"
9716                          || test ! -s conftest.err'
9717   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9718   (eval $ac_try) 2>&5
9719   ac_status=$?
9720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9721   (exit $ac_status); }; } &&
9722          { ac_try='test -s conftest$ac_exeext'
9723   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9724   (eval $ac_try) 2>&5
9725   ac_status=$?
9726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9727   (exit $ac_status); }; }; then
9728   ac_R_nospace=yes
9729 else
9730   echo "$as_me: failed program was:" >&5
9731 sed 's/^/| /' conftest.$ac_ext >&5
9732
9733 ac_R_nospace=no
9734 fi
9735 rm -f conftest.err conftest.$ac_objext \
9736       conftest$ac_exeext conftest.$ac_ext
9737       if test $ac_R_nospace = yes; then
9738         echo "$as_me:$LINENO: result: no" >&5
9739 echo "${ECHO_T}no" >&6
9740         X_LIBS="$X_LIBS -R$x_libraries"
9741       else
9742         LIBS="$ac_xsave_LIBS -R $x_libraries"
9743         cat >conftest.$ac_ext <<_ACEOF
9744 /* confdefs.h.  */
9745 _ACEOF
9746 cat confdefs.h >>conftest.$ac_ext
9747 cat >>conftest.$ac_ext <<_ACEOF
9748 /* end confdefs.h.  */
9749
9750 int
9751 main ()
9752 {
9753
9754   ;
9755   return 0;
9756 }
9757 _ACEOF
9758 rm -f conftest.$ac_objext conftest$ac_exeext
9759 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9760   (eval $ac_link) 2>conftest.er1
9761   ac_status=$?
9762   grep -v '^ *+' conftest.er1 >conftest.err
9763   rm -f conftest.er1
9764   cat conftest.err >&5
9765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9766   (exit $ac_status); } &&
9767          { ac_try='test -z "$ac_c_werror_flag"
9768                          || test ! -s conftest.err'
9769   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9770   (eval $ac_try) 2>&5
9771   ac_status=$?
9772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9773   (exit $ac_status); }; } &&
9774          { ac_try='test -s conftest$ac_exeext'
9775   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9776   (eval $ac_try) 2>&5
9777   ac_status=$?
9778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9779   (exit $ac_status); }; }; then
9780   ac_R_space=yes
9781 else
9782   echo "$as_me: failed program was:" >&5
9783 sed 's/^/| /' conftest.$ac_ext >&5
9784
9785 ac_R_space=no
9786 fi
9787 rm -f conftest.err conftest.$ac_objext \
9788       conftest$ac_exeext conftest.$ac_ext
9789         if test $ac_R_space = yes; then
9790           echo "$as_me:$LINENO: result: yes" >&5
9791 echo "${ECHO_T}yes" >&6
9792           X_LIBS="$X_LIBS -R $x_libraries"
9793         else
9794           echo "$as_me:$LINENO: result: neither works" >&5
9795 echo "${ECHO_T}neither works" >&6
9796         fi
9797       fi
9798       LIBS=$ac_xsave_LIBS
9799     esac
9800   fi
9801
9802   # Check for system-dependent libraries X programs must link with.
9803   # Do this before checking for the system-independent R6 libraries
9804   # (-lICE), since we may need -lsocket or whatever for X linking.
9805
9806   if test "$ISC" = yes; then
9807     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
9808   else
9809     # Martyn Johnson says this is needed for Ultrix, if the X
9810     # libraries were built with DECnet support.  And Karl Berry says
9811     # the Alpha needs dnet_stub (dnet does not exist).
9812     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
9813     cat >conftest.$ac_ext <<_ACEOF
9814 /* confdefs.h.  */
9815 _ACEOF
9816 cat confdefs.h >>conftest.$ac_ext
9817 cat >>conftest.$ac_ext <<_ACEOF
9818 /* end confdefs.h.  */
9819
9820 /* Override any gcc2 internal prototype to avoid an error.  */
9821 #ifdef __cplusplus
9822 extern "C"
9823 #endif
9824 /* We use char because int might match the return type of a gcc2
9825    builtin and then its argument prototype would still apply.  */
9826 char XOpenDisplay ();
9827 int
9828 main ()
9829 {
9830 XOpenDisplay ();
9831   ;
9832   return 0;
9833 }
9834 _ACEOF
9835 rm -f conftest.$ac_objext conftest$ac_exeext
9836 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9837   (eval $ac_link) 2>conftest.er1
9838   ac_status=$?
9839   grep -v '^ *+' conftest.er1 >conftest.err
9840   rm -f conftest.er1
9841   cat conftest.err >&5
9842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9843   (exit $ac_status); } &&
9844          { ac_try='test -z "$ac_c_werror_flag"
9845                          || test ! -s conftest.err'
9846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9847   (eval $ac_try) 2>&5
9848   ac_status=$?
9849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9850   (exit $ac_status); }; } &&
9851          { ac_try='test -s conftest$ac_exeext'
9852   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9853   (eval $ac_try) 2>&5
9854   ac_status=$?
9855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9856   (exit $ac_status); }; }; then
9857   :
9858 else
9859   echo "$as_me: failed program was:" >&5
9860 sed 's/^/| /' conftest.$ac_ext >&5
9861
9862 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
9863 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
9864 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
9865   echo $ECHO_N "(cached) $ECHO_C" >&6
9866 else
9867   ac_check_lib_save_LIBS=$LIBS
9868 LIBS="-ldnet  $LIBS"
9869 cat >conftest.$ac_ext <<_ACEOF
9870 /* confdefs.h.  */
9871 _ACEOF
9872 cat confdefs.h >>conftest.$ac_ext
9873 cat >>conftest.$ac_ext <<_ACEOF
9874 /* end confdefs.h.  */
9875
9876 /* Override any gcc2 internal prototype to avoid an error.  */
9877 #ifdef __cplusplus
9878 extern "C"
9879 #endif
9880 /* We use char because int might match the return type of a gcc2
9881    builtin and then its argument prototype would still apply.  */
9882 char dnet_ntoa ();
9883 int
9884 main ()
9885 {
9886 dnet_ntoa ();
9887   ;
9888   return 0;
9889 }
9890 _ACEOF
9891 rm -f conftest.$ac_objext conftest$ac_exeext
9892 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9893   (eval $ac_link) 2>conftest.er1
9894   ac_status=$?
9895   grep -v '^ *+' conftest.er1 >conftest.err
9896   rm -f conftest.er1
9897   cat conftest.err >&5
9898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9899   (exit $ac_status); } &&
9900          { ac_try='test -z "$ac_c_werror_flag"
9901                          || test ! -s conftest.err'
9902   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9903   (eval $ac_try) 2>&5
9904   ac_status=$?
9905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9906   (exit $ac_status); }; } &&
9907          { ac_try='test -s conftest$ac_exeext'
9908   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9909   (eval $ac_try) 2>&5
9910   ac_status=$?
9911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9912   (exit $ac_status); }; }; then
9913   ac_cv_lib_dnet_dnet_ntoa=yes
9914 else
9915   echo "$as_me: failed program was:" >&5
9916 sed 's/^/| /' conftest.$ac_ext >&5
9917
9918 ac_cv_lib_dnet_dnet_ntoa=no
9919 fi
9920 rm -f conftest.err conftest.$ac_objext \
9921       conftest$ac_exeext conftest.$ac_ext
9922 LIBS=$ac_check_lib_save_LIBS
9923 fi
9924 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9925 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
9926 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
9927   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
9928 fi
9929
9930     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
9931       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
9932 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
9933 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
9934   echo $ECHO_N "(cached) $ECHO_C" >&6
9935 else
9936   ac_check_lib_save_LIBS=$LIBS
9937 LIBS="-ldnet_stub  $LIBS"
9938 cat >conftest.$ac_ext <<_ACEOF
9939 /* confdefs.h.  */
9940 _ACEOF
9941 cat confdefs.h >>conftest.$ac_ext
9942 cat >>conftest.$ac_ext <<_ACEOF
9943 /* end confdefs.h.  */
9944
9945 /* Override any gcc2 internal prototype to avoid an error.  */
9946 #ifdef __cplusplus
9947 extern "C"
9948 #endif
9949 /* We use char because int might match the return type of a gcc2
9950    builtin and then its argument prototype would still apply.  */
9951 char dnet_ntoa ();
9952 int
9953 main ()
9954 {
9955 dnet_ntoa ();
9956   ;
9957   return 0;
9958 }
9959 _ACEOF
9960 rm -f conftest.$ac_objext conftest$ac_exeext
9961 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9962   (eval $ac_link) 2>conftest.er1
9963   ac_status=$?
9964   grep -v '^ *+' conftest.er1 >conftest.err
9965   rm -f conftest.er1
9966   cat conftest.err >&5
9967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9968   (exit $ac_status); } &&
9969          { ac_try='test -z "$ac_c_werror_flag"
9970                          || test ! -s conftest.err'
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); }; } &&
9976          { ac_try='test -s conftest$ac_exeext'
9977   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9978   (eval $ac_try) 2>&5
9979   ac_status=$?
9980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9981   (exit $ac_status); }; }; then
9982   ac_cv_lib_dnet_stub_dnet_ntoa=yes
9983 else
9984   echo "$as_me: failed program was:" >&5
9985 sed 's/^/| /' conftest.$ac_ext >&5
9986
9987 ac_cv_lib_dnet_stub_dnet_ntoa=no
9988 fi
9989 rm -f conftest.err conftest.$ac_objext \
9990       conftest$ac_exeext conftest.$ac_ext
9991 LIBS=$ac_check_lib_save_LIBS
9992 fi
9993 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
9994 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
9995 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
9996   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
9997 fi
9998
9999     fi
10000 fi
10001 rm -f conftest.err conftest.$ac_objext \
10002       conftest$ac_exeext conftest.$ac_ext
10003     LIBS="$ac_xsave_LIBS"
10004
10005     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
10006     # to get the SysV transport functions.
10007     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
10008     # needs -lnsl.
10009     # The nsl library prevents programs from opening the X display
10010     # on Irix 5.2, according to T.E. Dickey.
10011     # The functions gethostbyname, getservbyname, and inet_addr are
10012     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
10013     echo "$as_me:$LINENO: checking for gethostbyname" >&5
10014 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
10015 if test "${ac_cv_func_gethostbyname+set}" = set; then
10016   echo $ECHO_N "(cached) $ECHO_C" >&6
10017 else
10018   cat >conftest.$ac_ext <<_ACEOF
10019 /* confdefs.h.  */
10020 _ACEOF
10021 cat confdefs.h >>conftest.$ac_ext
10022 cat >>conftest.$ac_ext <<_ACEOF
10023 /* end confdefs.h.  */
10024 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
10025    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10026 #define gethostbyname innocuous_gethostbyname
10027
10028 /* System header to define __stub macros and hopefully few prototypes,
10029     which can conflict with char gethostbyname (); below.
10030     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10031     <limits.h> exists even on freestanding compilers.  */
10032
10033 #ifdef __STDC__
10034 # include <limits.h>
10035 #else
10036 # include <assert.h>
10037 #endif
10038
10039 #undef gethostbyname
10040
10041 /* Override any gcc2 internal prototype to avoid an error.  */
10042 #ifdef __cplusplus
10043 extern "C"
10044 {
10045 #endif
10046 /* We use char because int might match the return type of a gcc2
10047    builtin and then its argument prototype would still apply.  */
10048 char gethostbyname ();
10049 /* The GNU C library defines this for functions which it implements
10050     to always fail with ENOSYS.  Some functions are actually named
10051     something starting with __ and the normal name is an alias.  */
10052 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
10053 choke me
10054 #else
10055 char (*f) () = gethostbyname;
10056 #endif
10057 #ifdef __cplusplus
10058 }
10059 #endif
10060
10061 int
10062 main ()
10063 {
10064 return f != gethostbyname;
10065   ;
10066   return 0;
10067 }
10068 _ACEOF
10069 rm -f conftest.$ac_objext conftest$ac_exeext
10070 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10071   (eval $ac_link) 2>conftest.er1
10072   ac_status=$?
10073   grep -v '^ *+' conftest.er1 >conftest.err
10074   rm -f conftest.er1
10075   cat conftest.err >&5
10076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10077   (exit $ac_status); } &&
10078          { ac_try='test -z "$ac_c_werror_flag"
10079                          || test ! -s conftest.err'
10080   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10081   (eval $ac_try) 2>&5
10082   ac_status=$?
10083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10084   (exit $ac_status); }; } &&
10085          { ac_try='test -s conftest$ac_exeext'
10086   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10087   (eval $ac_try) 2>&5
10088   ac_status=$?
10089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10090   (exit $ac_status); }; }; then
10091   ac_cv_func_gethostbyname=yes
10092 else
10093   echo "$as_me: failed program was:" >&5
10094 sed 's/^/| /' conftest.$ac_ext >&5
10095
10096 ac_cv_func_gethostbyname=no
10097 fi
10098 rm -f conftest.err conftest.$ac_objext \
10099       conftest$ac_exeext conftest.$ac_ext
10100 fi
10101 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
10102 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
10103
10104     if test $ac_cv_func_gethostbyname = no; then
10105       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
10106 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
10107 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
10108   echo $ECHO_N "(cached) $ECHO_C" >&6
10109 else
10110   ac_check_lib_save_LIBS=$LIBS
10111 LIBS="-lnsl  $LIBS"
10112 cat >conftest.$ac_ext <<_ACEOF
10113 /* confdefs.h.  */
10114 _ACEOF
10115 cat confdefs.h >>conftest.$ac_ext
10116 cat >>conftest.$ac_ext <<_ACEOF
10117 /* end confdefs.h.  */
10118
10119 /* Override any gcc2 internal prototype to avoid an error.  */
10120 #ifdef __cplusplus
10121 extern "C"
10122 #endif
10123 /* We use char because int might match the return type of a gcc2
10124    builtin and then its argument prototype would still apply.  */
10125 char gethostbyname ();
10126 int
10127 main ()
10128 {
10129 gethostbyname ();
10130   ;
10131   return 0;
10132 }
10133 _ACEOF
10134 rm -f conftest.$ac_objext conftest$ac_exeext
10135 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10136   (eval $ac_link) 2>conftest.er1
10137   ac_status=$?
10138   grep -v '^ *+' conftest.er1 >conftest.err
10139   rm -f conftest.er1
10140   cat conftest.err >&5
10141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10142   (exit $ac_status); } &&
10143          { ac_try='test -z "$ac_c_werror_flag"
10144                          || test ! -s conftest.err'
10145   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10146   (eval $ac_try) 2>&5
10147   ac_status=$?
10148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10149   (exit $ac_status); }; } &&
10150          { ac_try='test -s conftest$ac_exeext'
10151   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10152   (eval $ac_try) 2>&5
10153   ac_status=$?
10154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10155   (exit $ac_status); }; }; then
10156   ac_cv_lib_nsl_gethostbyname=yes
10157 else
10158   echo "$as_me: failed program was:" >&5
10159 sed 's/^/| /' conftest.$ac_ext >&5
10160
10161 ac_cv_lib_nsl_gethostbyname=no
10162 fi
10163 rm -f conftest.err conftest.$ac_objext \
10164       conftest$ac_exeext conftest.$ac_ext
10165 LIBS=$ac_check_lib_save_LIBS
10166 fi
10167 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
10168 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
10169 if test $ac_cv_lib_nsl_gethostbyname = yes; then
10170   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
10171 fi
10172
10173       if test $ac_cv_lib_nsl_gethostbyname = no; then
10174         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
10175 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
10176 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
10177   echo $ECHO_N "(cached) $ECHO_C" >&6
10178 else
10179   ac_check_lib_save_LIBS=$LIBS
10180 LIBS="-lbsd  $LIBS"
10181 cat >conftest.$ac_ext <<_ACEOF
10182 /* confdefs.h.  */
10183 _ACEOF
10184 cat confdefs.h >>conftest.$ac_ext
10185 cat >>conftest.$ac_ext <<_ACEOF
10186 /* end confdefs.h.  */
10187
10188 /* Override any gcc2 internal prototype to avoid an error.  */
10189 #ifdef __cplusplus
10190 extern "C"
10191 #endif
10192 /* We use char because int might match the return type of a gcc2
10193    builtin and then its argument prototype would still apply.  */
10194 char gethostbyname ();
10195 int
10196 main ()
10197 {
10198 gethostbyname ();
10199   ;
10200   return 0;
10201 }
10202 _ACEOF
10203 rm -f conftest.$ac_objext conftest$ac_exeext
10204 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10205   (eval $ac_link) 2>conftest.er1
10206   ac_status=$?
10207   grep -v '^ *+' conftest.er1 >conftest.err
10208   rm -f conftest.er1
10209   cat conftest.err >&5
10210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10211   (exit $ac_status); } &&
10212          { ac_try='test -z "$ac_c_werror_flag"
10213                          || test ! -s conftest.err'
10214   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10215   (eval $ac_try) 2>&5
10216   ac_status=$?
10217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10218   (exit $ac_status); }; } &&
10219          { ac_try='test -s conftest$ac_exeext'
10220   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10221   (eval $ac_try) 2>&5
10222   ac_status=$?
10223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10224   (exit $ac_status); }; }; then
10225   ac_cv_lib_bsd_gethostbyname=yes
10226 else
10227   echo "$as_me: failed program was:" >&5
10228 sed 's/^/| /' conftest.$ac_ext >&5
10229
10230 ac_cv_lib_bsd_gethostbyname=no
10231 fi
10232 rm -f conftest.err conftest.$ac_objext \
10233       conftest$ac_exeext conftest.$ac_ext
10234 LIBS=$ac_check_lib_save_LIBS
10235 fi
10236 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
10237 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
10238 if test $ac_cv_lib_bsd_gethostbyname = yes; then
10239   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
10240 fi
10241
10242       fi
10243     fi
10244
10245     # lieder@skyler.mavd.honeywell.com says without -lsocket,
10246     # socket/setsockopt and other routines are undefined under SCO ODT
10247     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
10248     # on later versions), says Simon Leinen: it contains gethostby*
10249     # variants that don't use the name server (or something).  -lsocket
10250     # must be given before -lnsl if both are needed.  We assume that
10251     # if connect needs -lnsl, so does gethostbyname.
10252     echo "$as_me:$LINENO: checking for connect" >&5
10253 echo $ECHO_N "checking for connect... $ECHO_C" >&6
10254 if test "${ac_cv_func_connect+set}" = set; then
10255   echo $ECHO_N "(cached) $ECHO_C" >&6
10256 else
10257   cat >conftest.$ac_ext <<_ACEOF
10258 /* confdefs.h.  */
10259 _ACEOF
10260 cat confdefs.h >>conftest.$ac_ext
10261 cat >>conftest.$ac_ext <<_ACEOF
10262 /* end confdefs.h.  */
10263 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
10264    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10265 #define connect innocuous_connect
10266
10267 /* System header to define __stub macros and hopefully few prototypes,
10268     which can conflict with char connect (); below.
10269     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10270     <limits.h> exists even on freestanding compilers.  */
10271
10272 #ifdef __STDC__
10273 # include <limits.h>
10274 #else
10275 # include <assert.h>
10276 #endif
10277
10278 #undef connect
10279
10280 /* Override any gcc2 internal prototype to avoid an error.  */
10281 #ifdef __cplusplus
10282 extern "C"
10283 {
10284 #endif
10285 /* We use char because int might match the return type of a gcc2
10286    builtin and then its argument prototype would still apply.  */
10287 char connect ();
10288 /* The GNU C library defines this for functions which it implements
10289     to always fail with ENOSYS.  Some functions are actually named
10290     something starting with __ and the normal name is an alias.  */
10291 #if defined (__stub_connect) || defined (__stub___connect)
10292 choke me
10293 #else
10294 char (*f) () = connect;
10295 #endif
10296 #ifdef __cplusplus
10297 }
10298 #endif
10299
10300 int
10301 main ()
10302 {
10303 return f != connect;
10304   ;
10305   return 0;
10306 }
10307 _ACEOF
10308 rm -f conftest.$ac_objext conftest$ac_exeext
10309 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10310   (eval $ac_link) 2>conftest.er1
10311   ac_status=$?
10312   grep -v '^ *+' conftest.er1 >conftest.err
10313   rm -f conftest.er1
10314   cat conftest.err >&5
10315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10316   (exit $ac_status); } &&
10317          { ac_try='test -z "$ac_c_werror_flag"
10318                          || test ! -s conftest.err'
10319   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10320   (eval $ac_try) 2>&5
10321   ac_status=$?
10322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10323   (exit $ac_status); }; } &&
10324          { ac_try='test -s conftest$ac_exeext'
10325   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10326   (eval $ac_try) 2>&5
10327   ac_status=$?
10328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10329   (exit $ac_status); }; }; then
10330   ac_cv_func_connect=yes
10331 else
10332   echo "$as_me: failed program was:" >&5
10333 sed 's/^/| /' conftest.$ac_ext >&5
10334
10335 ac_cv_func_connect=no
10336 fi
10337 rm -f conftest.err conftest.$ac_objext \
10338       conftest$ac_exeext conftest.$ac_ext
10339 fi
10340 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
10341 echo "${ECHO_T}$ac_cv_func_connect" >&6
10342
10343     if test $ac_cv_func_connect = no; then
10344       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
10345 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
10346 if test "${ac_cv_lib_socket_connect+set}" = set; then
10347   echo $ECHO_N "(cached) $ECHO_C" >&6
10348 else
10349   ac_check_lib_save_LIBS=$LIBS
10350 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
10351 cat >conftest.$ac_ext <<_ACEOF
10352 /* confdefs.h.  */
10353 _ACEOF
10354 cat confdefs.h >>conftest.$ac_ext
10355 cat >>conftest.$ac_ext <<_ACEOF
10356 /* end confdefs.h.  */
10357
10358 /* Override any gcc2 internal prototype to avoid an error.  */
10359 #ifdef __cplusplus
10360 extern "C"
10361 #endif
10362 /* We use char because int might match the return type of a gcc2
10363    builtin and then its argument prototype would still apply.  */
10364 char connect ();
10365 int
10366 main ()
10367 {
10368 connect ();
10369   ;
10370   return 0;
10371 }
10372 _ACEOF
10373 rm -f conftest.$ac_objext conftest$ac_exeext
10374 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10375   (eval $ac_link) 2>conftest.er1
10376   ac_status=$?
10377   grep -v '^ *+' conftest.er1 >conftest.err
10378   rm -f conftest.er1
10379   cat conftest.err >&5
10380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10381   (exit $ac_status); } &&
10382          { ac_try='test -z "$ac_c_werror_flag"
10383                          || test ! -s conftest.err'
10384   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10385   (eval $ac_try) 2>&5
10386   ac_status=$?
10387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10388   (exit $ac_status); }; } &&
10389          { ac_try='test -s conftest$ac_exeext'
10390   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10391   (eval $ac_try) 2>&5
10392   ac_status=$?
10393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10394   (exit $ac_status); }; }; then
10395   ac_cv_lib_socket_connect=yes
10396 else
10397   echo "$as_me: failed program was:" >&5
10398 sed 's/^/| /' conftest.$ac_ext >&5
10399
10400 ac_cv_lib_socket_connect=no
10401 fi
10402 rm -f conftest.err conftest.$ac_objext \
10403       conftest$ac_exeext conftest.$ac_ext
10404 LIBS=$ac_check_lib_save_LIBS
10405 fi
10406 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
10407 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
10408 if test $ac_cv_lib_socket_connect = yes; then
10409   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
10410 fi
10411
10412     fi
10413
10414     # Guillermo Gomez says -lposix is necessary on A/UX.
10415     echo "$as_me:$LINENO: checking for remove" >&5
10416 echo $ECHO_N "checking for remove... $ECHO_C" >&6
10417 if test "${ac_cv_func_remove+set}" = set; then
10418   echo $ECHO_N "(cached) $ECHO_C" >&6
10419 else
10420   cat >conftest.$ac_ext <<_ACEOF
10421 /* confdefs.h.  */
10422 _ACEOF
10423 cat confdefs.h >>conftest.$ac_ext
10424 cat >>conftest.$ac_ext <<_ACEOF
10425 /* end confdefs.h.  */
10426 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
10427    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10428 #define remove innocuous_remove
10429
10430 /* System header to define __stub macros and hopefully few prototypes,
10431     which can conflict with char remove (); below.
10432     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10433     <limits.h> exists even on freestanding compilers.  */
10434
10435 #ifdef __STDC__
10436 # include <limits.h>
10437 #else
10438 # include <assert.h>
10439 #endif
10440
10441 #undef remove
10442
10443 /* Override any gcc2 internal prototype to avoid an error.  */
10444 #ifdef __cplusplus
10445 extern "C"
10446 {
10447 #endif
10448 /* We use char because int might match the return type of a gcc2
10449    builtin and then its argument prototype would still apply.  */
10450 char remove ();
10451 /* The GNU C library defines this for functions which it implements
10452     to always fail with ENOSYS.  Some functions are actually named
10453     something starting with __ and the normal name is an alias.  */
10454 #if defined (__stub_remove) || defined (__stub___remove)
10455 choke me
10456 #else
10457 char (*f) () = remove;
10458 #endif
10459 #ifdef __cplusplus
10460 }
10461 #endif
10462
10463 int
10464 main ()
10465 {
10466 return f != remove;
10467   ;
10468   return 0;
10469 }
10470 _ACEOF
10471 rm -f conftest.$ac_objext conftest$ac_exeext
10472 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10473   (eval $ac_link) 2>conftest.er1
10474   ac_status=$?
10475   grep -v '^ *+' conftest.er1 >conftest.err
10476   rm -f conftest.er1
10477   cat conftest.err >&5
10478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10479   (exit $ac_status); } &&
10480          { ac_try='test -z "$ac_c_werror_flag"
10481                          || test ! -s conftest.err'
10482   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10483   (eval $ac_try) 2>&5
10484   ac_status=$?
10485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10486   (exit $ac_status); }; } &&
10487          { ac_try='test -s conftest$ac_exeext'
10488   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10489   (eval $ac_try) 2>&5
10490   ac_status=$?
10491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10492   (exit $ac_status); }; }; then
10493   ac_cv_func_remove=yes
10494 else
10495   echo "$as_me: failed program was:" >&5
10496 sed 's/^/| /' conftest.$ac_ext >&5
10497
10498 ac_cv_func_remove=no
10499 fi
10500 rm -f conftest.err conftest.$ac_objext \
10501       conftest$ac_exeext conftest.$ac_ext
10502 fi
10503 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
10504 echo "${ECHO_T}$ac_cv_func_remove" >&6
10505
10506     if test $ac_cv_func_remove = no; then
10507       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
10508 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
10509 if test "${ac_cv_lib_posix_remove+set}" = set; then
10510   echo $ECHO_N "(cached) $ECHO_C" >&6
10511 else
10512   ac_check_lib_save_LIBS=$LIBS
10513 LIBS="-lposix  $LIBS"
10514 cat >conftest.$ac_ext <<_ACEOF
10515 /* confdefs.h.  */
10516 _ACEOF
10517 cat confdefs.h >>conftest.$ac_ext
10518 cat >>conftest.$ac_ext <<_ACEOF
10519 /* end confdefs.h.  */
10520
10521 /* Override any gcc2 internal prototype to avoid an error.  */
10522 #ifdef __cplusplus
10523 extern "C"
10524 #endif
10525 /* We use char because int might match the return type of a gcc2
10526    builtin and then its argument prototype would still apply.  */
10527 char remove ();
10528 int
10529 main ()
10530 {
10531 remove ();
10532   ;
10533   return 0;
10534 }
10535 _ACEOF
10536 rm -f conftest.$ac_objext conftest$ac_exeext
10537 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10538   (eval $ac_link) 2>conftest.er1
10539   ac_status=$?
10540   grep -v '^ *+' conftest.er1 >conftest.err
10541   rm -f conftest.er1
10542   cat conftest.err >&5
10543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10544   (exit $ac_status); } &&
10545          { ac_try='test -z "$ac_c_werror_flag"
10546                          || test ! -s conftest.err'
10547   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10548   (eval $ac_try) 2>&5
10549   ac_status=$?
10550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10551   (exit $ac_status); }; } &&
10552          { ac_try='test -s conftest$ac_exeext'
10553   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10554   (eval $ac_try) 2>&5
10555   ac_status=$?
10556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10557   (exit $ac_status); }; }; then
10558   ac_cv_lib_posix_remove=yes
10559 else
10560   echo "$as_me: failed program was:" >&5
10561 sed 's/^/| /' conftest.$ac_ext >&5
10562
10563 ac_cv_lib_posix_remove=no
10564 fi
10565 rm -f conftest.err conftest.$ac_objext \
10566       conftest$ac_exeext conftest.$ac_ext
10567 LIBS=$ac_check_lib_save_LIBS
10568 fi
10569 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
10570 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
10571 if test $ac_cv_lib_posix_remove = yes; then
10572   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
10573 fi
10574
10575     fi
10576
10577     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
10578     echo "$as_me:$LINENO: checking for shmat" >&5
10579 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
10580 if test "${ac_cv_func_shmat+set}" = set; then
10581   echo $ECHO_N "(cached) $ECHO_C" >&6
10582 else
10583   cat >conftest.$ac_ext <<_ACEOF
10584 /* confdefs.h.  */
10585 _ACEOF
10586 cat confdefs.h >>conftest.$ac_ext
10587 cat >>conftest.$ac_ext <<_ACEOF
10588 /* end confdefs.h.  */
10589 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
10590    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10591 #define shmat innocuous_shmat
10592
10593 /* System header to define __stub macros and hopefully few prototypes,
10594     which can conflict with char shmat (); below.
10595     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10596     <limits.h> exists even on freestanding compilers.  */
10597
10598 #ifdef __STDC__
10599 # include <limits.h>
10600 #else
10601 # include <assert.h>
10602 #endif
10603
10604 #undef shmat
10605
10606 /* Override any gcc2 internal prototype to avoid an error.  */
10607 #ifdef __cplusplus
10608 extern "C"
10609 {
10610 #endif
10611 /* We use char because int might match the return type of a gcc2
10612    builtin and then its argument prototype would still apply.  */
10613 char shmat ();
10614 /* The GNU C library defines this for functions which it implements
10615     to always fail with ENOSYS.  Some functions are actually named
10616     something starting with __ and the normal name is an alias.  */
10617 #if defined (__stub_shmat) || defined (__stub___shmat)
10618 choke me
10619 #else
10620 char (*f) () = shmat;
10621 #endif
10622 #ifdef __cplusplus
10623 }
10624 #endif
10625
10626 int
10627 main ()
10628 {
10629 return f != shmat;
10630   ;
10631   return 0;
10632 }
10633 _ACEOF
10634 rm -f conftest.$ac_objext conftest$ac_exeext
10635 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10636   (eval $ac_link) 2>conftest.er1
10637   ac_status=$?
10638   grep -v '^ *+' conftest.er1 >conftest.err
10639   rm -f conftest.er1
10640   cat conftest.err >&5
10641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10642   (exit $ac_status); } &&
10643          { ac_try='test -z "$ac_c_werror_flag"
10644                          || test ! -s conftest.err'
10645   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10646   (eval $ac_try) 2>&5
10647   ac_status=$?
10648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10649   (exit $ac_status); }; } &&
10650          { ac_try='test -s conftest$ac_exeext'
10651   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10652   (eval $ac_try) 2>&5
10653   ac_status=$?
10654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10655   (exit $ac_status); }; }; then
10656   ac_cv_func_shmat=yes
10657 else
10658   echo "$as_me: failed program was:" >&5
10659 sed 's/^/| /' conftest.$ac_ext >&5
10660
10661 ac_cv_func_shmat=no
10662 fi
10663 rm -f conftest.err conftest.$ac_objext \
10664       conftest$ac_exeext conftest.$ac_ext
10665 fi
10666 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
10667 echo "${ECHO_T}$ac_cv_func_shmat" >&6
10668
10669     if test $ac_cv_func_shmat = no; then
10670       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
10671 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
10672 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
10673   echo $ECHO_N "(cached) $ECHO_C" >&6
10674 else
10675   ac_check_lib_save_LIBS=$LIBS
10676 LIBS="-lipc  $LIBS"
10677 cat >conftest.$ac_ext <<_ACEOF
10678 /* confdefs.h.  */
10679 _ACEOF
10680 cat confdefs.h >>conftest.$ac_ext
10681 cat >>conftest.$ac_ext <<_ACEOF
10682 /* end confdefs.h.  */
10683
10684 /* Override any gcc2 internal prototype to avoid an error.  */
10685 #ifdef __cplusplus
10686 extern "C"
10687 #endif
10688 /* We use char because int might match the return type of a gcc2
10689    builtin and then its argument prototype would still apply.  */
10690 char shmat ();
10691 int
10692 main ()
10693 {
10694 shmat ();
10695   ;
10696   return 0;
10697 }
10698 _ACEOF
10699 rm -f conftest.$ac_objext conftest$ac_exeext
10700 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10701   (eval $ac_link) 2>conftest.er1
10702   ac_status=$?
10703   grep -v '^ *+' conftest.er1 >conftest.err
10704   rm -f conftest.er1
10705   cat conftest.err >&5
10706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10707   (exit $ac_status); } &&
10708          { ac_try='test -z "$ac_c_werror_flag"
10709                          || test ! -s conftest.err'
10710   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10711   (eval $ac_try) 2>&5
10712   ac_status=$?
10713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10714   (exit $ac_status); }; } &&
10715          { ac_try='test -s conftest$ac_exeext'
10716   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10717   (eval $ac_try) 2>&5
10718   ac_status=$?
10719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10720   (exit $ac_status); }; }; then
10721   ac_cv_lib_ipc_shmat=yes
10722 else
10723   echo "$as_me: failed program was:" >&5
10724 sed 's/^/| /' conftest.$ac_ext >&5
10725
10726 ac_cv_lib_ipc_shmat=no
10727 fi
10728 rm -f conftest.err conftest.$ac_objext \
10729       conftest$ac_exeext conftest.$ac_ext
10730 LIBS=$ac_check_lib_save_LIBS
10731 fi
10732 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
10733 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
10734 if test $ac_cv_lib_ipc_shmat = yes; then
10735   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
10736 fi
10737
10738     fi
10739   fi
10740
10741   # Check for libraries that X11R6 Xt/Xaw programs need.
10742   ac_save_LDFLAGS=$LDFLAGS
10743   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
10744   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
10745   # check for ICE first), but we must link in the order -lSM -lICE or
10746   # we get undefined symbols.  So assume we have SM if we have ICE.
10747   # These have to be linked with before -lX11, unlike the other
10748   # libraries we check for below, so use a different variable.
10749   # John Interrante, Karl Berry
10750   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
10751 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
10752 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
10753   echo $ECHO_N "(cached) $ECHO_C" >&6
10754 else
10755   ac_check_lib_save_LIBS=$LIBS
10756 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
10757 cat >conftest.$ac_ext <<_ACEOF
10758 /* confdefs.h.  */
10759 _ACEOF
10760 cat confdefs.h >>conftest.$ac_ext
10761 cat >>conftest.$ac_ext <<_ACEOF
10762 /* end confdefs.h.  */
10763
10764 /* Override any gcc2 internal prototype to avoid an error.  */
10765 #ifdef __cplusplus
10766 extern "C"
10767 #endif
10768 /* We use char because int might match the return type of a gcc2
10769    builtin and then its argument prototype would still apply.  */
10770 char IceConnectionNumber ();
10771 int
10772 main ()
10773 {
10774 IceConnectionNumber ();
10775   ;
10776   return 0;
10777 }
10778 _ACEOF
10779 rm -f conftest.$ac_objext conftest$ac_exeext
10780 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10781   (eval $ac_link) 2>conftest.er1
10782   ac_status=$?
10783   grep -v '^ *+' conftest.er1 >conftest.err
10784   rm -f conftest.er1
10785   cat conftest.err >&5
10786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10787   (exit $ac_status); } &&
10788          { ac_try='test -z "$ac_c_werror_flag"
10789                          || test ! -s conftest.err'
10790   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10791   (eval $ac_try) 2>&5
10792   ac_status=$?
10793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10794   (exit $ac_status); }; } &&
10795          { ac_try='test -s conftest$ac_exeext'
10796   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10797   (eval $ac_try) 2>&5
10798   ac_status=$?
10799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10800   (exit $ac_status); }; }; then
10801   ac_cv_lib_ICE_IceConnectionNumber=yes
10802 else
10803   echo "$as_me: failed program was:" >&5
10804 sed 's/^/| /' conftest.$ac_ext >&5
10805
10806 ac_cv_lib_ICE_IceConnectionNumber=no
10807 fi
10808 rm -f conftest.err conftest.$ac_objext \
10809       conftest$ac_exeext conftest.$ac_ext
10810 LIBS=$ac_check_lib_save_LIBS
10811 fi
10812 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
10813 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
10814 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
10815   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
10816 fi
10817
10818   LDFLAGS=$ac_save_LDFLAGS
10819
10820 fi
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850 for ac_header in \
10851         assert.h \
10852         fcntl.h \
10853         grp.h \
10854         pwd.h \
10855         libc.h \
10856         limits.h \
10857         stdarg.h \
10858         stdlib.h \
10859         stdint.h \
10860         string.h \
10861         termios.h \
10862         termcap.h \
10863         term.h \
10864         unistd.h \
10865         sys/bitypes.h \
10866         sys/byteorder.h \
10867         sys/ioctl.h \
10868         sys/select.h \
10869         sys/sockio.h \
10870         sys/time.h \
10871         sys/socket.h \
10872         arpa/nameser.h \
10873         resolv.h \
10874         mtio.h \
10875         sys/mtio.h \
10876         sys/tape.h \
10877         regex.h \
10878
10879 do
10880 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10881 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10882   echo "$as_me:$LINENO: checking for $ac_header" >&5
10883 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10884 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10885   echo $ECHO_N "(cached) $ECHO_C" >&6
10886 fi
10887 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10888 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10889 else
10890   # Is the header compilable?
10891 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10892 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10893 cat >conftest.$ac_ext <<_ACEOF
10894 /* confdefs.h.  */
10895 _ACEOF
10896 cat confdefs.h >>conftest.$ac_ext
10897 cat >>conftest.$ac_ext <<_ACEOF
10898 /* end confdefs.h.  */
10899 $ac_includes_default
10900 #include <$ac_header>
10901 _ACEOF
10902 rm -f conftest.$ac_objext
10903 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10904   (eval $ac_compile) 2>conftest.er1
10905   ac_status=$?
10906   grep -v '^ *+' conftest.er1 >conftest.err
10907   rm -f conftest.er1
10908   cat conftest.err >&5
10909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10910   (exit $ac_status); } &&
10911          { ac_try='test -z "$ac_c_werror_flag"
10912                          || test ! -s conftest.err'
10913   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10914   (eval $ac_try) 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_header_compiler=yes
10925 else
10926   echo "$as_me: failed program was:" >&5
10927 sed 's/^/| /' conftest.$ac_ext >&5
10928
10929 ac_header_compiler=no
10930 fi
10931 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10932 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10933 echo "${ECHO_T}$ac_header_compiler" >&6
10934
10935 # Is the header present?
10936 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10937 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10938 cat >conftest.$ac_ext <<_ACEOF
10939 /* confdefs.h.  */
10940 _ACEOF
10941 cat confdefs.h >>conftest.$ac_ext
10942 cat >>conftest.$ac_ext <<_ACEOF
10943 /* end confdefs.h.  */
10944 #include <$ac_header>
10945 _ACEOF
10946 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10947   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10948   ac_status=$?
10949   grep -v '^ *+' conftest.er1 >conftest.err
10950   rm -f conftest.er1
10951   cat conftest.err >&5
10952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10953   (exit $ac_status); } >/dev/null; then
10954   if test -s conftest.err; then
10955     ac_cpp_err=$ac_c_preproc_warn_flag
10956     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10957   else
10958     ac_cpp_err=
10959   fi
10960 else
10961   ac_cpp_err=yes
10962 fi
10963 if test -z "$ac_cpp_err"; then
10964   ac_header_preproc=yes
10965 else
10966   echo "$as_me: failed program was:" >&5
10967 sed 's/^/| /' conftest.$ac_ext >&5
10968
10969   ac_header_preproc=no
10970 fi
10971 rm -f conftest.err conftest.$ac_ext
10972 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10973 echo "${ECHO_T}$ac_header_preproc" >&6
10974
10975 # So?  What about this header?
10976 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10977   yes:no: )
10978     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10979 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10980     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10981 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10982     ac_header_preproc=yes
10983     ;;
10984   no:yes:* )
10985     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10986 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10987     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10988 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10989     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10990 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10991     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10992 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10993     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10994 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10995     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10996 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10997     (
10998       cat <<\_ASBOX
10999 ## ------------------------------------------ ##
11000 ## Report this to the AC_PACKAGE_NAME lists.  ##
11001 ## ------------------------------------------ ##
11002 _ASBOX
11003     ) |
11004       sed "s/^/$as_me: WARNING:     /" >&2
11005     ;;
11006 esac
11007 echo "$as_me:$LINENO: checking for $ac_header" >&5
11008 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11009 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11010   echo $ECHO_N "(cached) $ECHO_C" >&6
11011 else
11012   eval "$as_ac_Header=\$ac_header_preproc"
11013 fi
11014 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11015 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11016
11017 fi
11018 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11019   cat >>confdefs.h <<_ACEOF
11020 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11021 _ACEOF
11022
11023 fi
11024
11025 done
11026
11027 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
11028 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
11029 if test "${ac_cv_header_stdc+set}" = set; then
11030   echo $ECHO_N "(cached) $ECHO_C" >&6
11031 else
11032   cat >conftest.$ac_ext <<_ACEOF
11033 /* confdefs.h.  */
11034 _ACEOF
11035 cat confdefs.h >>conftest.$ac_ext
11036 cat >>conftest.$ac_ext <<_ACEOF
11037 /* end confdefs.h.  */
11038 #include <stdlib.h>
11039 #include <stdarg.h>
11040 #include <string.h>
11041 #include <float.h>
11042
11043 int
11044 main ()
11045 {
11046
11047   ;
11048   return 0;
11049 }
11050 _ACEOF
11051 rm -f conftest.$ac_objext
11052 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11053   (eval $ac_compile) 2>conftest.er1
11054   ac_status=$?
11055   grep -v '^ *+' conftest.er1 >conftest.err
11056   rm -f conftest.er1
11057   cat conftest.err >&5
11058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11059   (exit $ac_status); } &&
11060          { ac_try='test -z "$ac_c_werror_flag"
11061                          || test ! -s conftest.err'
11062   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11063   (eval $ac_try) 2>&5
11064   ac_status=$?
11065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11066   (exit $ac_status); }; } &&
11067          { ac_try='test -s conftest.$ac_objext'
11068   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11069   (eval $ac_try) 2>&5
11070   ac_status=$?
11071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11072   (exit $ac_status); }; }; then
11073   ac_cv_header_stdc=yes
11074 else
11075   echo "$as_me: failed program was:" >&5
11076 sed 's/^/| /' conftest.$ac_ext >&5
11077
11078 ac_cv_header_stdc=no
11079 fi
11080 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11081
11082 if test $ac_cv_header_stdc = yes; then
11083   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11084   cat >conftest.$ac_ext <<_ACEOF
11085 /* confdefs.h.  */
11086 _ACEOF
11087 cat confdefs.h >>conftest.$ac_ext
11088 cat >>conftest.$ac_ext <<_ACEOF
11089 /* end confdefs.h.  */
11090 #include <string.h>
11091
11092 _ACEOF
11093 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11094   $EGREP "memchr" >/dev/null 2>&1; then
11095   :
11096 else
11097   ac_cv_header_stdc=no
11098 fi
11099 rm -f conftest*
11100
11101 fi
11102
11103 if test $ac_cv_header_stdc = yes; then
11104   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11105   cat >conftest.$ac_ext <<_ACEOF
11106 /* confdefs.h.  */
11107 _ACEOF
11108 cat confdefs.h >>conftest.$ac_ext
11109 cat >>conftest.$ac_ext <<_ACEOF
11110 /* end confdefs.h.  */
11111 #include <stdlib.h>
11112
11113 _ACEOF
11114 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11115   $EGREP "free" >/dev/null 2>&1; then
11116   :
11117 else
11118   ac_cv_header_stdc=no
11119 fi
11120 rm -f conftest*
11121
11122 fi
11123
11124 if test $ac_cv_header_stdc = yes; then
11125   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11126   if test "$cross_compiling" = yes; then
11127   :
11128 else
11129   cat >conftest.$ac_ext <<_ACEOF
11130 /* confdefs.h.  */
11131 _ACEOF
11132 cat confdefs.h >>conftest.$ac_ext
11133 cat >>conftest.$ac_ext <<_ACEOF
11134 /* end confdefs.h.  */
11135 #include <ctype.h>
11136 #if ((' ' & 0x0FF) == 0x020)
11137 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11138 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11139 #else
11140 # define ISLOWER(c) \
11141                    (('a' <= (c) && (c) <= 'i') \
11142                      || ('j' <= (c) && (c) <= 'r') \
11143                      || ('s' <= (c) && (c) <= 'z'))
11144 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11145 #endif
11146
11147 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11148 int
11149 main ()
11150 {
11151   int i;
11152   for (i = 0; i < 256; i++)
11153     if (XOR (islower (i), ISLOWER (i))
11154         || toupper (i) != TOUPPER (i))
11155       exit(2);
11156   exit (0);
11157 }
11158 _ACEOF
11159 rm -f conftest$ac_exeext
11160 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11161   (eval $ac_link) 2>&5
11162   ac_status=$?
11163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11164   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11165   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11166   (eval $ac_try) 2>&5
11167   ac_status=$?
11168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11169   (exit $ac_status); }; }; then
11170   :
11171 else
11172   echo "$as_me: program exited with status $ac_status" >&5
11173 echo "$as_me: failed program was:" >&5
11174 sed 's/^/| /' conftest.$ac_ext >&5
11175
11176 ( exit $ac_status )
11177 ac_cv_header_stdc=no
11178 fi
11179 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11180 fi
11181 fi
11182 fi
11183 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
11184 echo "${ECHO_T}$ac_cv_header_stdc" >&6
11185 if test $ac_cv_header_stdc = yes; then
11186
11187 cat >>confdefs.h <<\_ACEOF
11188 #define STDC_HEADERS 1
11189 _ACEOF
11190
11191 fi
11192
11193 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
11194 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
11195 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
11196   echo $ECHO_N "(cached) $ECHO_C" >&6
11197 else
11198   cat >conftest.$ac_ext <<_ACEOF
11199 /* confdefs.h.  */
11200 _ACEOF
11201 cat confdefs.h >>conftest.$ac_ext
11202 cat >>conftest.$ac_ext <<_ACEOF
11203 /* end confdefs.h.  */
11204 #include <sys/types.h>
11205 int
11206 main ()
11207 {
11208 return makedev(0, 0);
11209   ;
11210   return 0;
11211 }
11212 _ACEOF
11213 rm -f conftest.$ac_objext conftest$ac_exeext
11214 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11215   (eval $ac_link) 2>conftest.er1
11216   ac_status=$?
11217   grep -v '^ *+' conftest.er1 >conftest.err
11218   rm -f conftest.er1
11219   cat conftest.err >&5
11220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11221   (exit $ac_status); } &&
11222          { ac_try='test -z "$ac_c_werror_flag"
11223                          || test ! -s conftest.err'
11224   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11225   (eval $ac_try) 2>&5
11226   ac_status=$?
11227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11228   (exit $ac_status); }; } &&
11229          { ac_try='test -s conftest$ac_exeext'
11230   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11231   (eval $ac_try) 2>&5
11232   ac_status=$?
11233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11234   (exit $ac_status); }; }; then
11235   ac_cv_header_sys_types_h_makedev=yes
11236 else
11237   echo "$as_me: failed program was:" >&5
11238 sed 's/^/| /' conftest.$ac_ext >&5
11239
11240 ac_cv_header_sys_types_h_makedev=no
11241 fi
11242 rm -f conftest.err conftest.$ac_objext \
11243       conftest$ac_exeext conftest.$ac_ext
11244
11245 fi
11246 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
11247 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
11248
11249 if test $ac_cv_header_sys_types_h_makedev = no; then
11250 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
11251   echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
11252 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
11253 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
11254   echo $ECHO_N "(cached) $ECHO_C" >&6
11255 fi
11256 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
11257 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
11258 else
11259   # Is the header compilable?
11260 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
11261 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
11262 cat >conftest.$ac_ext <<_ACEOF
11263 /* confdefs.h.  */
11264 _ACEOF
11265 cat confdefs.h >>conftest.$ac_ext
11266 cat >>conftest.$ac_ext <<_ACEOF
11267 /* end confdefs.h.  */
11268 $ac_includes_default
11269 #include <sys/mkdev.h>
11270 _ACEOF
11271 rm -f conftest.$ac_objext
11272 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11273   (eval $ac_compile) 2>conftest.er1
11274   ac_status=$?
11275   grep -v '^ *+' conftest.er1 >conftest.err
11276   rm -f conftest.er1
11277   cat conftest.err >&5
11278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11279   (exit $ac_status); } &&
11280          { ac_try='test -z "$ac_c_werror_flag"
11281                          || test ! -s conftest.err'
11282   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11283   (eval $ac_try) 2>&5
11284   ac_status=$?
11285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11286   (exit $ac_status); }; } &&
11287          { ac_try='test -s conftest.$ac_objext'
11288   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11289   (eval $ac_try) 2>&5
11290   ac_status=$?
11291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11292   (exit $ac_status); }; }; then
11293   ac_header_compiler=yes
11294 else
11295   echo "$as_me: failed program was:" >&5
11296 sed 's/^/| /' conftest.$ac_ext >&5
11297
11298 ac_header_compiler=no
11299 fi
11300 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11301 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11302 echo "${ECHO_T}$ac_header_compiler" >&6
11303
11304 # Is the header present?
11305 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
11306 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
11307 cat >conftest.$ac_ext <<_ACEOF
11308 /* confdefs.h.  */
11309 _ACEOF
11310 cat confdefs.h >>conftest.$ac_ext
11311 cat >>conftest.$ac_ext <<_ACEOF
11312 /* end confdefs.h.  */
11313 #include <sys/mkdev.h>
11314 _ACEOF
11315 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11316   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11317   ac_status=$?
11318   grep -v '^ *+' conftest.er1 >conftest.err
11319   rm -f conftest.er1
11320   cat conftest.err >&5
11321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11322   (exit $ac_status); } >/dev/null; then
11323   if test -s conftest.err; then
11324     ac_cpp_err=$ac_c_preproc_warn_flag
11325     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11326   else
11327     ac_cpp_err=
11328   fi
11329 else
11330   ac_cpp_err=yes
11331 fi
11332 if test -z "$ac_cpp_err"; then
11333   ac_header_preproc=yes
11334 else
11335   echo "$as_me: failed program was:" >&5
11336 sed 's/^/| /' conftest.$ac_ext >&5
11337
11338   ac_header_preproc=no
11339 fi
11340 rm -f conftest.err conftest.$ac_ext
11341 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11342 echo "${ECHO_T}$ac_header_preproc" >&6
11343
11344 # So?  What about this header?
11345 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11346   yes:no: )
11347     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
11348 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11349     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
11350 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
11351     ac_header_preproc=yes
11352     ;;
11353   no:yes:* )
11354     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
11355 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
11356     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&5
11357 echo "$as_me: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&2;}
11358     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
11359 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
11360     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&5
11361 echo "$as_me: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&2;}
11362     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
11363 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
11364     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
11365 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
11366     (
11367       cat <<\_ASBOX
11368 ## ------------------------------------------ ##
11369 ## Report this to the AC_PACKAGE_NAME lists.  ##
11370 ## ------------------------------------------ ##
11371 _ASBOX
11372     ) |
11373       sed "s/^/$as_me: WARNING:     /" >&2
11374     ;;
11375 esac
11376 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
11377 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
11378 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
11379   echo $ECHO_N "(cached) $ECHO_C" >&6
11380 else
11381   ac_cv_header_sys_mkdev_h=$ac_header_preproc
11382 fi
11383 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
11384 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
11385
11386 fi
11387 if test $ac_cv_header_sys_mkdev_h = yes; then
11388
11389 cat >>confdefs.h <<\_ACEOF
11390 #define MAJOR_IN_MKDEV 1
11391 _ACEOF
11392
11393 fi
11394
11395
11396
11397   if test $ac_cv_header_sys_mkdev_h = no; then
11398     if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
11399   echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
11400 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
11401 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
11402   echo $ECHO_N "(cached) $ECHO_C" >&6
11403 fi
11404 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
11405 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
11406 else
11407   # Is the header compilable?
11408 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
11409 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
11410 cat >conftest.$ac_ext <<_ACEOF
11411 /* confdefs.h.  */
11412 _ACEOF
11413 cat confdefs.h >>conftest.$ac_ext
11414 cat >>conftest.$ac_ext <<_ACEOF
11415 /* end confdefs.h.  */
11416 $ac_includes_default
11417 #include <sys/sysmacros.h>
11418 _ACEOF
11419 rm -f conftest.$ac_objext
11420 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11421   (eval $ac_compile) 2>conftest.er1
11422   ac_status=$?
11423   grep -v '^ *+' conftest.er1 >conftest.err
11424   rm -f conftest.er1
11425   cat conftest.err >&5
11426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11427   (exit $ac_status); } &&
11428          { ac_try='test -z "$ac_c_werror_flag"
11429                          || test ! -s conftest.err'
11430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11431   (eval $ac_try) 2>&5
11432   ac_status=$?
11433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11434   (exit $ac_status); }; } &&
11435          { ac_try='test -s conftest.$ac_objext'
11436   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11437   (eval $ac_try) 2>&5
11438   ac_status=$?
11439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11440   (exit $ac_status); }; }; then
11441   ac_header_compiler=yes
11442 else
11443   echo "$as_me: failed program was:" >&5
11444 sed 's/^/| /' conftest.$ac_ext >&5
11445
11446 ac_header_compiler=no
11447 fi
11448 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11449 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11450 echo "${ECHO_T}$ac_header_compiler" >&6
11451
11452 # Is the header present?
11453 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
11454 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
11455 cat >conftest.$ac_ext <<_ACEOF
11456 /* confdefs.h.  */
11457 _ACEOF
11458 cat confdefs.h >>conftest.$ac_ext
11459 cat >>conftest.$ac_ext <<_ACEOF
11460 /* end confdefs.h.  */
11461 #include <sys/sysmacros.h>
11462 _ACEOF
11463 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11464   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11465   ac_status=$?
11466   grep -v '^ *+' conftest.er1 >conftest.err
11467   rm -f conftest.er1
11468   cat conftest.err >&5
11469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11470   (exit $ac_status); } >/dev/null; then
11471   if test -s conftest.err; then
11472     ac_cpp_err=$ac_c_preproc_warn_flag
11473     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11474   else
11475     ac_cpp_err=
11476   fi
11477 else
11478   ac_cpp_err=yes
11479 fi
11480 if test -z "$ac_cpp_err"; then
11481   ac_header_preproc=yes
11482 else
11483   echo "$as_me: failed program was:" >&5
11484 sed 's/^/| /' conftest.$ac_ext >&5
11485
11486   ac_header_preproc=no
11487 fi
11488 rm -f conftest.err conftest.$ac_ext
11489 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11490 echo "${ECHO_T}$ac_header_preproc" >&6
11491
11492 # So?  What about this header?
11493 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11494   yes:no: )
11495     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
11496 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11497     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
11498 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
11499     ac_header_preproc=yes
11500     ;;
11501   no:yes:* )
11502     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
11503 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
11504     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&5
11505 echo "$as_me: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&2;}
11506     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
11507 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
11508     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&5
11509 echo "$as_me: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&2;}
11510     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
11511 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
11512     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
11513 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
11514     (
11515       cat <<\_ASBOX
11516 ## ------------------------------------------ ##
11517 ## Report this to the AC_PACKAGE_NAME lists.  ##
11518 ## ------------------------------------------ ##
11519 _ASBOX
11520     ) |
11521       sed "s/^/$as_me: WARNING:     /" >&2
11522     ;;
11523 esac
11524 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
11525 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
11526 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
11527   echo $ECHO_N "(cached) $ECHO_C" >&6
11528 else
11529   ac_cv_header_sys_sysmacros_h=$ac_header_preproc
11530 fi
11531 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
11532 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
11533
11534 fi
11535 if test $ac_cv_header_sys_sysmacros_h = yes; then
11536
11537 cat >>confdefs.h <<\_ACEOF
11538 #define MAJOR_IN_SYSMACROS 1
11539 _ACEOF
11540
11541 fi
11542
11543
11544   fi
11545 fi
11546
11547
11548
11549
11550
11551
11552 ac_header_dirent=no
11553 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
11554   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
11555 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
11556 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
11557 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11558   echo $ECHO_N "(cached) $ECHO_C" >&6
11559 else
11560   cat >conftest.$ac_ext <<_ACEOF
11561 /* confdefs.h.  */
11562 _ACEOF
11563 cat confdefs.h >>conftest.$ac_ext
11564 cat >>conftest.$ac_ext <<_ACEOF
11565 /* end confdefs.h.  */
11566 #include <sys/types.h>
11567 #include <$ac_hdr>
11568
11569 int
11570 main ()
11571 {
11572 if ((DIR *) 0)
11573 return 0;
11574   ;
11575   return 0;
11576 }
11577 _ACEOF
11578 rm -f conftest.$ac_objext
11579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11580   (eval $ac_compile) 2>conftest.er1
11581   ac_status=$?
11582   grep -v '^ *+' conftest.er1 >conftest.err
11583   rm -f conftest.er1
11584   cat conftest.err >&5
11585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11586   (exit $ac_status); } &&
11587          { ac_try='test -z "$ac_c_werror_flag"
11588                          || test ! -s conftest.err'
11589   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11590   (eval $ac_try) 2>&5
11591   ac_status=$?
11592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11593   (exit $ac_status); }; } &&
11594          { ac_try='test -s conftest.$ac_objext'
11595   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11596   (eval $ac_try) 2>&5
11597   ac_status=$?
11598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11599   (exit $ac_status); }; }; then
11600   eval "$as_ac_Header=yes"
11601 else
11602   echo "$as_me: failed program was:" >&5
11603 sed 's/^/| /' conftest.$ac_ext >&5
11604
11605 eval "$as_ac_Header=no"
11606 fi
11607 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11608 fi
11609 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11610 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11611 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11612   cat >>confdefs.h <<_ACEOF
11613 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
11614 _ACEOF
11615
11616 ac_header_dirent=$ac_hdr; break
11617 fi
11618
11619 done
11620 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
11621 if test $ac_header_dirent = dirent.h; then
11622   echo "$as_me:$LINENO: checking for library containing opendir" >&5
11623 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
11624 if test "${ac_cv_search_opendir+set}" = set; then
11625   echo $ECHO_N "(cached) $ECHO_C" >&6
11626 else
11627   ac_func_search_save_LIBS=$LIBS
11628 ac_cv_search_opendir=no
11629 cat >conftest.$ac_ext <<_ACEOF
11630 /* confdefs.h.  */
11631 _ACEOF
11632 cat confdefs.h >>conftest.$ac_ext
11633 cat >>conftest.$ac_ext <<_ACEOF
11634 /* end confdefs.h.  */
11635
11636 /* Override any gcc2 internal prototype to avoid an error.  */
11637 #ifdef __cplusplus
11638 extern "C"
11639 #endif
11640 /* We use char because int might match the return type of a gcc2
11641    builtin and then its argument prototype would still apply.  */
11642 char opendir ();
11643 int
11644 main ()
11645 {
11646 opendir ();
11647   ;
11648   return 0;
11649 }
11650 _ACEOF
11651 rm -f conftest.$ac_objext conftest$ac_exeext
11652 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11653   (eval $ac_link) 2>conftest.er1
11654   ac_status=$?
11655   grep -v '^ *+' conftest.er1 >conftest.err
11656   rm -f conftest.er1
11657   cat conftest.err >&5
11658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11659   (exit $ac_status); } &&
11660          { ac_try='test -z "$ac_c_werror_flag"
11661                          || test ! -s conftest.err'
11662   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11663   (eval $ac_try) 2>&5
11664   ac_status=$?
11665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11666   (exit $ac_status); }; } &&
11667          { ac_try='test -s conftest$ac_exeext'
11668   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11669   (eval $ac_try) 2>&5
11670   ac_status=$?
11671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11672   (exit $ac_status); }; }; then
11673   ac_cv_search_opendir="none required"
11674 else
11675   echo "$as_me: failed program was:" >&5
11676 sed 's/^/| /' conftest.$ac_ext >&5
11677
11678 fi
11679 rm -f conftest.err conftest.$ac_objext \
11680       conftest$ac_exeext conftest.$ac_ext
11681 if test "$ac_cv_search_opendir" = no; then
11682   for ac_lib in dir; do
11683     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11684     cat >conftest.$ac_ext <<_ACEOF
11685 /* confdefs.h.  */
11686 _ACEOF
11687 cat confdefs.h >>conftest.$ac_ext
11688 cat >>conftest.$ac_ext <<_ACEOF
11689 /* end confdefs.h.  */
11690
11691 /* Override any gcc2 internal prototype to avoid an error.  */
11692 #ifdef __cplusplus
11693 extern "C"
11694 #endif
11695 /* We use char because int might match the return type of a gcc2
11696    builtin and then its argument prototype would still apply.  */
11697 char opendir ();
11698 int
11699 main ()
11700 {
11701 opendir ();
11702   ;
11703   return 0;
11704 }
11705 _ACEOF
11706 rm -f conftest.$ac_objext conftest$ac_exeext
11707 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11708   (eval $ac_link) 2>conftest.er1
11709   ac_status=$?
11710   grep -v '^ *+' conftest.er1 >conftest.err
11711   rm -f conftest.er1
11712   cat conftest.err >&5
11713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11714   (exit $ac_status); } &&
11715          { ac_try='test -z "$ac_c_werror_flag"
11716                          || test ! -s conftest.err'
11717   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11718   (eval $ac_try) 2>&5
11719   ac_status=$?
11720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11721   (exit $ac_status); }; } &&
11722          { ac_try='test -s conftest$ac_exeext'
11723   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11724   (eval $ac_try) 2>&5
11725   ac_status=$?
11726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11727   (exit $ac_status); }; }; then
11728   ac_cv_search_opendir="-l$ac_lib"
11729 break
11730 else
11731   echo "$as_me: failed program was:" >&5
11732 sed 's/^/| /' conftest.$ac_ext >&5
11733
11734 fi
11735 rm -f conftest.err conftest.$ac_objext \
11736       conftest$ac_exeext conftest.$ac_ext
11737   done
11738 fi
11739 LIBS=$ac_func_search_save_LIBS
11740 fi
11741 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11742 echo "${ECHO_T}$ac_cv_search_opendir" >&6
11743 if test "$ac_cv_search_opendir" != no; then
11744   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
11745
11746 fi
11747
11748 else
11749   echo "$as_me:$LINENO: checking for library containing opendir" >&5
11750 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
11751 if test "${ac_cv_search_opendir+set}" = set; then
11752   echo $ECHO_N "(cached) $ECHO_C" >&6
11753 else
11754   ac_func_search_save_LIBS=$LIBS
11755 ac_cv_search_opendir=no
11756 cat >conftest.$ac_ext <<_ACEOF
11757 /* confdefs.h.  */
11758 _ACEOF
11759 cat confdefs.h >>conftest.$ac_ext
11760 cat >>conftest.$ac_ext <<_ACEOF
11761 /* end confdefs.h.  */
11762
11763 /* Override any gcc2 internal prototype to avoid an error.  */
11764 #ifdef __cplusplus
11765 extern "C"
11766 #endif
11767 /* We use char because int might match the return type of a gcc2
11768    builtin and then its argument prototype would still apply.  */
11769 char opendir ();
11770 int
11771 main ()
11772 {
11773 opendir ();
11774   ;
11775   return 0;
11776 }
11777 _ACEOF
11778 rm -f conftest.$ac_objext conftest$ac_exeext
11779 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11780   (eval $ac_link) 2>conftest.er1
11781   ac_status=$?
11782   grep -v '^ *+' conftest.er1 >conftest.err
11783   rm -f conftest.er1
11784   cat conftest.err >&5
11785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11786   (exit $ac_status); } &&
11787          { ac_try='test -z "$ac_c_werror_flag"
11788                          || test ! -s conftest.err'
11789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11790   (eval $ac_try) 2>&5
11791   ac_status=$?
11792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11793   (exit $ac_status); }; } &&
11794          { ac_try='test -s conftest$ac_exeext'
11795   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11796   (eval $ac_try) 2>&5
11797   ac_status=$?
11798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11799   (exit $ac_status); }; }; then
11800   ac_cv_search_opendir="none required"
11801 else
11802   echo "$as_me: failed program was:" >&5
11803 sed 's/^/| /' conftest.$ac_ext >&5
11804
11805 fi
11806 rm -f conftest.err conftest.$ac_objext \
11807       conftest$ac_exeext conftest.$ac_ext
11808 if test "$ac_cv_search_opendir" = no; then
11809   for ac_lib in x; do
11810     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11811     cat >conftest.$ac_ext <<_ACEOF
11812 /* confdefs.h.  */
11813 _ACEOF
11814 cat confdefs.h >>conftest.$ac_ext
11815 cat >>conftest.$ac_ext <<_ACEOF
11816 /* end confdefs.h.  */
11817
11818 /* Override any gcc2 internal prototype to avoid an error.  */
11819 #ifdef __cplusplus
11820 extern "C"
11821 #endif
11822 /* We use char because int might match the return type of a gcc2
11823    builtin and then its argument prototype would still apply.  */
11824 char opendir ();
11825 int
11826 main ()
11827 {
11828 opendir ();
11829   ;
11830   return 0;
11831 }
11832 _ACEOF
11833 rm -f conftest.$ac_objext conftest$ac_exeext
11834 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11835   (eval $ac_link) 2>conftest.er1
11836   ac_status=$?
11837   grep -v '^ *+' conftest.er1 >conftest.err
11838   rm -f conftest.er1
11839   cat conftest.err >&5
11840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11841   (exit $ac_status); } &&
11842          { ac_try='test -z "$ac_c_werror_flag"
11843                          || test ! -s conftest.err'
11844   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11845   (eval $ac_try) 2>&5
11846   ac_status=$?
11847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11848   (exit $ac_status); }; } &&
11849          { ac_try='test -s conftest$ac_exeext'
11850   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11851   (eval $ac_try) 2>&5
11852   ac_status=$?
11853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11854   (exit $ac_status); }; }; then
11855   ac_cv_search_opendir="-l$ac_lib"
11856 break
11857 else
11858   echo "$as_me: failed program was:" >&5
11859 sed 's/^/| /' conftest.$ac_ext >&5
11860
11861 fi
11862 rm -f conftest.err conftest.$ac_objext \
11863       conftest$ac_exeext conftest.$ac_ext
11864   done
11865 fi
11866 LIBS=$ac_func_search_save_LIBS
11867 fi
11868 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11869 echo "${ECHO_T}$ac_cv_search_opendir" >&6
11870 if test "$ac_cv_search_opendir" != no; then
11871   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
11872
11873 fi
11874
11875 fi
11876
11877 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
11878 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
11879 if test "${ac_cv_header_stat_broken+set}" = set; then
11880   echo $ECHO_N "(cached) $ECHO_C" >&6
11881 else
11882   cat >conftest.$ac_ext <<_ACEOF
11883 /* confdefs.h.  */
11884 _ACEOF
11885 cat confdefs.h >>conftest.$ac_ext
11886 cat >>conftest.$ac_ext <<_ACEOF
11887 /* end confdefs.h.  */
11888 #include <sys/types.h>
11889 #include <sys/stat.h>
11890
11891 #if defined(S_ISBLK) && defined(S_IFDIR)
11892 # if S_ISBLK (S_IFDIR)
11893 You lose.
11894 # endif
11895 #endif
11896
11897 #if defined(S_ISBLK) && defined(S_IFCHR)
11898 # if S_ISBLK (S_IFCHR)
11899 You lose.
11900 # endif
11901 #endif
11902
11903 #if defined(S_ISLNK) && defined(S_IFREG)
11904 # if S_ISLNK (S_IFREG)
11905 You lose.
11906 # endif
11907 #endif
11908
11909 #if defined(S_ISSOCK) && defined(S_IFREG)
11910 # if S_ISSOCK (S_IFREG)
11911 You lose.
11912 # endif
11913 #endif
11914
11915 _ACEOF
11916 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11917   $EGREP "You lose" >/dev/null 2>&1; then
11918   ac_cv_header_stat_broken=yes
11919 else
11920   ac_cv_header_stat_broken=no
11921 fi
11922 rm -f conftest*
11923
11924 fi
11925 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
11926 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
11927 if test $ac_cv_header_stat_broken = yes; then
11928
11929 cat >>confdefs.h <<\_ACEOF
11930 #define STAT_MACROS_BROKEN 1
11931 _ACEOF
11932
11933 fi
11934
11935 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
11936 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
11937 if test "${ac_cv_header_sys_wait_h+set}" = set; then
11938   echo $ECHO_N "(cached) $ECHO_C" >&6
11939 else
11940   cat >conftest.$ac_ext <<_ACEOF
11941 /* confdefs.h.  */
11942 _ACEOF
11943 cat confdefs.h >>conftest.$ac_ext
11944 cat >>conftest.$ac_ext <<_ACEOF
11945 /* end confdefs.h.  */
11946 #include <sys/types.h>
11947 #include <sys/wait.h>
11948 #ifndef WEXITSTATUS
11949 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
11950 #endif
11951 #ifndef WIFEXITED
11952 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
11953 #endif
11954
11955 int
11956 main ()
11957 {
11958   int s;
11959   wait (&s);
11960   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
11961   ;
11962   return 0;
11963 }
11964 _ACEOF
11965 rm -f conftest.$ac_objext
11966 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11967   (eval $ac_compile) 2>conftest.er1
11968   ac_status=$?
11969   grep -v '^ *+' conftest.er1 >conftest.err
11970   rm -f conftest.er1
11971   cat conftest.err >&5
11972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11973   (exit $ac_status); } &&
11974          { ac_try='test -z "$ac_c_werror_flag"
11975                          || test ! -s conftest.err'
11976   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11977   (eval $ac_try) 2>&5
11978   ac_status=$?
11979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11980   (exit $ac_status); }; } &&
11981          { ac_try='test -s conftest.$ac_objext'
11982   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11983   (eval $ac_try) 2>&5
11984   ac_status=$?
11985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11986   (exit $ac_status); }; }; then
11987   ac_cv_header_sys_wait_h=yes
11988 else
11989   echo "$as_me: failed program was:" >&5
11990 sed 's/^/| /' conftest.$ac_ext >&5
11991
11992 ac_cv_header_sys_wait_h=no
11993 fi
11994 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11995 fi
11996 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
11997 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
11998 if test $ac_cv_header_sys_wait_h = yes; then
11999
12000 cat >>confdefs.h <<\_ACEOF
12001 #define HAVE_SYS_WAIT_H 1
12002 _ACEOF
12003
12004 fi
12005
12006 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
12007 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
12008 if test "${ac_cv_header_time+set}" = set; then
12009   echo $ECHO_N "(cached) $ECHO_C" >&6
12010 else
12011   cat >conftest.$ac_ext <<_ACEOF
12012 /* confdefs.h.  */
12013 _ACEOF
12014 cat confdefs.h >>conftest.$ac_ext
12015 cat >>conftest.$ac_ext <<_ACEOF
12016 /* end confdefs.h.  */
12017 #include <sys/types.h>
12018 #include <sys/time.h>
12019 #include <time.h>
12020
12021 int
12022 main ()
12023 {
12024 if ((struct tm *) 0)
12025 return 0;
12026   ;
12027   return 0;
12028 }
12029 _ACEOF
12030 rm -f conftest.$ac_objext
12031 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12032   (eval $ac_compile) 2>conftest.er1
12033   ac_status=$?
12034   grep -v '^ *+' conftest.er1 >conftest.err
12035   rm -f conftest.er1
12036   cat conftest.err >&5
12037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12038   (exit $ac_status); } &&
12039          { ac_try='test -z "$ac_c_werror_flag"
12040                          || test ! -s conftest.err'
12041   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12042   (eval $ac_try) 2>&5
12043   ac_status=$?
12044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12045   (exit $ac_status); }; } &&
12046          { ac_try='test -s conftest.$ac_objext'
12047   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12048   (eval $ac_try) 2>&5
12049   ac_status=$?
12050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12051   (exit $ac_status); }; }; then
12052   ac_cv_header_time=yes
12053 else
12054   echo "$as_me: failed program was:" >&5
12055 sed 's/^/| /' conftest.$ac_ext >&5
12056
12057 ac_cv_header_time=no
12058 fi
12059 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12060 fi
12061 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
12062 echo "${ECHO_T}$ac_cv_header_time" >&6
12063 if test $ac_cv_header_time = yes; then
12064
12065 cat >>confdefs.h <<\_ACEOF
12066 #define TIME_WITH_SYS_TIME 1
12067 _ACEOF
12068
12069 fi
12070
12071
12072 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
12073 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
12074 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
12075   echo $ECHO_N "(cached) $ECHO_C" >&6
12076 else
12077   cat >conftest.$ac_ext <<_ACEOF
12078 /* confdefs.h.  */
12079 _ACEOF
12080 cat confdefs.h >>conftest.$ac_ext
12081 cat >>conftest.$ac_ext <<_ACEOF
12082 /* end confdefs.h.  */
12083 $ac_includes_default
12084 int
12085 main ()
12086 {
12087 static struct stat ac_aggr;
12088 if (ac_aggr.st_blksize)
12089 return 0;
12090   ;
12091   return 0;
12092 }
12093 _ACEOF
12094 rm -f conftest.$ac_objext
12095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12096   (eval $ac_compile) 2>conftest.er1
12097   ac_status=$?
12098   grep -v '^ *+' conftest.er1 >conftest.err
12099   rm -f conftest.er1
12100   cat conftest.err >&5
12101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12102   (exit $ac_status); } &&
12103          { ac_try='test -z "$ac_c_werror_flag"
12104                          || test ! -s conftest.err'
12105   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12106   (eval $ac_try) 2>&5
12107   ac_status=$?
12108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12109   (exit $ac_status); }; } &&
12110          { ac_try='test -s conftest.$ac_objext'
12111   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12112   (eval $ac_try) 2>&5
12113   ac_status=$?
12114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12115   (exit $ac_status); }; }; then
12116   ac_cv_member_struct_stat_st_blksize=yes
12117 else
12118   echo "$as_me: failed program was:" >&5
12119 sed 's/^/| /' conftest.$ac_ext >&5
12120
12121 cat >conftest.$ac_ext <<_ACEOF
12122 /* confdefs.h.  */
12123 _ACEOF
12124 cat confdefs.h >>conftest.$ac_ext
12125 cat >>conftest.$ac_ext <<_ACEOF
12126 /* end confdefs.h.  */
12127 $ac_includes_default
12128 int
12129 main ()
12130 {
12131 static struct stat ac_aggr;
12132 if (sizeof ac_aggr.st_blksize)
12133 return 0;
12134   ;
12135   return 0;
12136 }
12137 _ACEOF
12138 rm -f conftest.$ac_objext
12139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12140   (eval $ac_compile) 2>conftest.er1
12141   ac_status=$?
12142   grep -v '^ *+' conftest.er1 >conftest.err
12143   rm -f conftest.er1
12144   cat conftest.err >&5
12145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12146   (exit $ac_status); } &&
12147          { ac_try='test -z "$ac_c_werror_flag"
12148                          || test ! -s conftest.err'
12149   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12150   (eval $ac_try) 2>&5
12151   ac_status=$?
12152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12153   (exit $ac_status); }; } &&
12154          { ac_try='test -s conftest.$ac_objext'
12155   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12156   (eval $ac_try) 2>&5
12157   ac_status=$?
12158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12159   (exit $ac_status); }; }; then
12160   ac_cv_member_struct_stat_st_blksize=yes
12161 else
12162   echo "$as_me: failed program was:" >&5
12163 sed 's/^/| /' conftest.$ac_ext >&5
12164
12165 ac_cv_member_struct_stat_st_blksize=no
12166 fi
12167 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12168 fi
12169 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12170 fi
12171 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
12172 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
12173 if test $ac_cv_member_struct_stat_st_blksize = yes; then
12174
12175 cat >>confdefs.h <<_ACEOF
12176 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
12177 _ACEOF
12178
12179
12180 cat >>confdefs.h <<\_ACEOF
12181 #define HAVE_ST_BLKSIZE 1
12182 _ACEOF
12183
12184 fi
12185
12186
12187 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
12188 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
12189 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
12190   echo $ECHO_N "(cached) $ECHO_C" >&6
12191 else
12192   cat >conftest.$ac_ext <<_ACEOF
12193 /* confdefs.h.  */
12194 _ACEOF
12195 cat confdefs.h >>conftest.$ac_ext
12196 cat >>conftest.$ac_ext <<_ACEOF
12197 /* end confdefs.h.  */
12198 $ac_includes_default
12199 int
12200 main ()
12201 {
12202 static struct stat ac_aggr;
12203 if (ac_aggr.st_blocks)
12204 return 0;
12205   ;
12206   return 0;
12207 }
12208 _ACEOF
12209 rm -f conftest.$ac_objext
12210 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12211   (eval $ac_compile) 2>conftest.er1
12212   ac_status=$?
12213   grep -v '^ *+' conftest.er1 >conftest.err
12214   rm -f conftest.er1
12215   cat conftest.err >&5
12216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12217   (exit $ac_status); } &&
12218          { ac_try='test -z "$ac_c_werror_flag"
12219                          || test ! -s conftest.err'
12220   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12221   (eval $ac_try) 2>&5
12222   ac_status=$?
12223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12224   (exit $ac_status); }; } &&
12225          { ac_try='test -s conftest.$ac_objext'
12226   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12227   (eval $ac_try) 2>&5
12228   ac_status=$?
12229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12230   (exit $ac_status); }; }; then
12231   ac_cv_member_struct_stat_st_blocks=yes
12232 else
12233   echo "$as_me: failed program was:" >&5
12234 sed 's/^/| /' conftest.$ac_ext >&5
12235
12236 cat >conftest.$ac_ext <<_ACEOF
12237 /* confdefs.h.  */
12238 _ACEOF
12239 cat confdefs.h >>conftest.$ac_ext
12240 cat >>conftest.$ac_ext <<_ACEOF
12241 /* end confdefs.h.  */
12242 $ac_includes_default
12243 int
12244 main ()
12245 {
12246 static struct stat ac_aggr;
12247 if (sizeof ac_aggr.st_blocks)
12248 return 0;
12249   ;
12250   return 0;
12251 }
12252 _ACEOF
12253 rm -f conftest.$ac_objext
12254 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12255   (eval $ac_compile) 2>conftest.er1
12256   ac_status=$?
12257   grep -v '^ *+' conftest.er1 >conftest.err
12258   rm -f conftest.er1
12259   cat conftest.err >&5
12260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12261   (exit $ac_status); } &&
12262          { ac_try='test -z "$ac_c_werror_flag"
12263                          || test ! -s conftest.err'
12264   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12265   (eval $ac_try) 2>&5
12266   ac_status=$?
12267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12268   (exit $ac_status); }; } &&
12269          { ac_try='test -s conftest.$ac_objext'
12270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12271   (eval $ac_try) 2>&5
12272   ac_status=$?
12273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12274   (exit $ac_status); }; }; then
12275   ac_cv_member_struct_stat_st_blocks=yes
12276 else
12277   echo "$as_me: failed program was:" >&5
12278 sed 's/^/| /' conftest.$ac_ext >&5
12279
12280 ac_cv_member_struct_stat_st_blocks=no
12281 fi
12282 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12283 fi
12284 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12285 fi
12286 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
12287 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
12288 if test $ac_cv_member_struct_stat_st_blocks = yes; then
12289
12290 cat >>confdefs.h <<_ACEOF
12291 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
12292 _ACEOF
12293
12294
12295 cat >>confdefs.h <<\_ACEOF
12296 #define HAVE_ST_BLOCKS 1
12297 _ACEOF
12298
12299 else
12300   case $LIBOBJS in
12301     "fileblocks.$ac_objext"   | \
12302   *" fileblocks.$ac_objext"   | \
12303     "fileblocks.$ac_objext "* | \
12304   *" fileblocks.$ac_objext "* ) ;;
12305   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;;
12306 esac
12307
12308 fi
12309
12310
12311 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
12312 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
12313 if test "${ac_cv_struct_tm+set}" = set; then
12314   echo $ECHO_N "(cached) $ECHO_C" >&6
12315 else
12316   cat >conftest.$ac_ext <<_ACEOF
12317 /* confdefs.h.  */
12318 _ACEOF
12319 cat confdefs.h >>conftest.$ac_ext
12320 cat >>conftest.$ac_ext <<_ACEOF
12321 /* end confdefs.h.  */
12322 #include <sys/types.h>
12323 #include <time.h>
12324
12325 int
12326 main ()
12327 {
12328 struct tm *tp; tp->tm_sec;
12329   ;
12330   return 0;
12331 }
12332 _ACEOF
12333 rm -f conftest.$ac_objext
12334 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12335   (eval $ac_compile) 2>conftest.er1
12336   ac_status=$?
12337   grep -v '^ *+' conftest.er1 >conftest.err
12338   rm -f conftest.er1
12339   cat conftest.err >&5
12340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12341   (exit $ac_status); } &&
12342          { ac_try='test -z "$ac_c_werror_flag"
12343                          || test ! -s conftest.err'
12344   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12345   (eval $ac_try) 2>&5
12346   ac_status=$?
12347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12348   (exit $ac_status); }; } &&
12349          { ac_try='test -s conftest.$ac_objext'
12350   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12351   (eval $ac_try) 2>&5
12352   ac_status=$?
12353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12354   (exit $ac_status); }; }; then
12355   ac_cv_struct_tm=time.h
12356 else
12357   echo "$as_me: failed program was:" >&5
12358 sed 's/^/| /' conftest.$ac_ext >&5
12359
12360 ac_cv_struct_tm=sys/time.h
12361 fi
12362 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12363 fi
12364 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
12365 echo "${ECHO_T}$ac_cv_struct_tm" >&6
12366 if test $ac_cv_struct_tm = sys/time.h; then
12367
12368 cat >>confdefs.h <<\_ACEOF
12369 #define TM_IN_SYS_TIME 1
12370 _ACEOF
12371
12372 fi
12373
12374 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
12375 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
12376 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
12377   echo $ECHO_N "(cached) $ECHO_C" >&6
12378 else
12379   cat >conftest.$ac_ext <<_ACEOF
12380 /* confdefs.h.  */
12381 _ACEOF
12382 cat confdefs.h >>conftest.$ac_ext
12383 cat >>conftest.$ac_ext <<_ACEOF
12384 /* end confdefs.h.  */
12385 #include <sys/types.h>
12386 #include <$ac_cv_struct_tm>
12387
12388
12389 int
12390 main ()
12391 {
12392 static struct tm ac_aggr;
12393 if (ac_aggr.tm_zone)
12394 return 0;
12395   ;
12396   return 0;
12397 }
12398 _ACEOF
12399 rm -f conftest.$ac_objext
12400 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12401   (eval $ac_compile) 2>conftest.er1
12402   ac_status=$?
12403   grep -v '^ *+' conftest.er1 >conftest.err
12404   rm -f conftest.er1
12405   cat conftest.err >&5
12406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12407   (exit $ac_status); } &&
12408          { ac_try='test -z "$ac_c_werror_flag"
12409                          || test ! -s conftest.err'
12410   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12411   (eval $ac_try) 2>&5
12412   ac_status=$?
12413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12414   (exit $ac_status); }; } &&
12415          { ac_try='test -s conftest.$ac_objext'
12416   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12417   (eval $ac_try) 2>&5
12418   ac_status=$?
12419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12420   (exit $ac_status); }; }; then
12421   ac_cv_member_struct_tm_tm_zone=yes
12422 else
12423   echo "$as_me: failed program was:" >&5
12424 sed 's/^/| /' conftest.$ac_ext >&5
12425
12426 cat >conftest.$ac_ext <<_ACEOF
12427 /* confdefs.h.  */
12428 _ACEOF
12429 cat confdefs.h >>conftest.$ac_ext
12430 cat >>conftest.$ac_ext <<_ACEOF
12431 /* end confdefs.h.  */
12432 #include <sys/types.h>
12433 #include <$ac_cv_struct_tm>
12434
12435
12436 int
12437 main ()
12438 {
12439 static struct tm ac_aggr;
12440 if (sizeof ac_aggr.tm_zone)
12441 return 0;
12442   ;
12443   return 0;
12444 }
12445 _ACEOF
12446 rm -f conftest.$ac_objext
12447 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12448   (eval $ac_compile) 2>conftest.er1
12449   ac_status=$?
12450   grep -v '^ *+' conftest.er1 >conftest.err
12451   rm -f conftest.er1
12452   cat conftest.err >&5
12453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12454   (exit $ac_status); } &&
12455          { ac_try='test -z "$ac_c_werror_flag"
12456                          || test ! -s conftest.err'
12457   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12458   (eval $ac_try) 2>&5
12459   ac_status=$?
12460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12461   (exit $ac_status); }; } &&
12462          { ac_try='test -s conftest.$ac_objext'
12463   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12464   (eval $ac_try) 2>&5
12465   ac_status=$?
12466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12467   (exit $ac_status); }; }; then
12468   ac_cv_member_struct_tm_tm_zone=yes
12469 else
12470   echo "$as_me: failed program was:" >&5
12471 sed 's/^/| /' conftest.$ac_ext >&5
12472
12473 ac_cv_member_struct_tm_tm_zone=no
12474 fi
12475 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12476 fi
12477 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12478 fi
12479 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
12480 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
12481 if test $ac_cv_member_struct_tm_tm_zone = yes; then
12482
12483 cat >>confdefs.h <<_ACEOF
12484 #define HAVE_STRUCT_TM_TM_ZONE 1
12485 _ACEOF
12486
12487
12488 fi
12489
12490 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
12491
12492 cat >>confdefs.h <<\_ACEOF
12493 #define HAVE_TM_ZONE 1
12494 _ACEOF
12495
12496 else
12497   echo "$as_me:$LINENO: checking for tzname" >&5
12498 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
12499 if test "${ac_cv_var_tzname+set}" = set; then
12500   echo $ECHO_N "(cached) $ECHO_C" >&6
12501 else
12502   cat >conftest.$ac_ext <<_ACEOF
12503 /* confdefs.h.  */
12504 _ACEOF
12505 cat confdefs.h >>conftest.$ac_ext
12506 cat >>conftest.$ac_ext <<_ACEOF
12507 /* end confdefs.h.  */
12508 #include <time.h>
12509 #ifndef tzname /* For SGI.  */
12510 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
12511 #endif
12512
12513 int
12514 main ()
12515 {
12516 atoi(*tzname);
12517   ;
12518   return 0;
12519 }
12520 _ACEOF
12521 rm -f conftest.$ac_objext conftest$ac_exeext
12522 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12523   (eval $ac_link) 2>conftest.er1
12524   ac_status=$?
12525   grep -v '^ *+' conftest.er1 >conftest.err
12526   rm -f conftest.er1
12527   cat conftest.err >&5
12528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12529   (exit $ac_status); } &&
12530          { ac_try='test -z "$ac_c_werror_flag"
12531                          || test ! -s conftest.err'
12532   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12533   (eval $ac_try) 2>&5
12534   ac_status=$?
12535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12536   (exit $ac_status); }; } &&
12537          { ac_try='test -s conftest$ac_exeext'
12538   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12539   (eval $ac_try) 2>&5
12540   ac_status=$?
12541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12542   (exit $ac_status); }; }; then
12543   ac_cv_var_tzname=yes
12544 else
12545   echo "$as_me: failed program was:" >&5
12546 sed 's/^/| /' conftest.$ac_ext >&5
12547
12548 ac_cv_var_tzname=no
12549 fi
12550 rm -f conftest.err conftest.$ac_objext \
12551       conftest$ac_exeext conftest.$ac_ext
12552 fi
12553 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
12554 echo "${ECHO_T}$ac_cv_var_tzname" >&6
12555   if test $ac_cv_var_tzname = yes; then
12556
12557 cat >>confdefs.h <<\_ACEOF
12558 #define HAVE_TZNAME 1
12559 _ACEOF
12560
12561   fi
12562 fi
12563
12564
12565 echo "$as_me:$LINENO: checking for utime.h" >&5
12566 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6
12567 if test "${ba_cv_header_utime_h+set}" = set; then
12568   echo $ECHO_N "(cached) $ECHO_C" >&6
12569 else
12570   cat >conftest.$ac_ext <<_ACEOF
12571 /* confdefs.h.  */
12572 _ACEOF
12573 cat confdefs.h >>conftest.$ac_ext
12574 cat >>conftest.$ac_ext <<_ACEOF
12575 /* end confdefs.h.  */
12576
12577 #include <sys/types.h>
12578 #include <utime.h>
12579 int
12580 main ()
12581 {
12582 struct utimbuf foo
12583   ;
12584   return 0;
12585 }
12586 _ACEOF
12587 rm -f conftest.$ac_objext
12588 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12589   (eval $ac_compile) 2>conftest.er1
12590   ac_status=$?
12591   grep -v '^ *+' conftest.er1 >conftest.err
12592   rm -f conftest.er1
12593   cat conftest.err >&5
12594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12595   (exit $ac_status); } &&
12596          { ac_try='test -z "$ac_c_werror_flag"
12597                          || test ! -s conftest.err'
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); }; } &&
12603          { ac_try='test -s conftest.$ac_objext'
12604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12605   (eval $ac_try) 2>&5
12606   ac_status=$?
12607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12608   (exit $ac_status); }; }; then
12609   ba_cv_header_utime_h=yes
12610 else
12611   echo "$as_me: failed program was:" >&5
12612 sed 's/^/| /' conftest.$ac_ext >&5
12613
12614 ba_cv_header_utime_h=no
12615 fi
12616 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12617 fi
12618 echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
12619 echo "${ECHO_T}$ba_cv_header_utime_h" >&6
12620 test $ba_cv_header_utime_h = yes && cat >>confdefs.h <<\_ACEOF
12621 #define HAVE_UTIME_H 1
12622 _ACEOF
12623
12624
12625 echo "$as_me:$LINENO: checking for socklen_t" >&5
12626 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
12627 if test "${ba_cv_header_socklen_t+set}" = set; then
12628   echo $ECHO_N "(cached) $ECHO_C" >&6
12629 else
12630   cat >conftest.$ac_ext <<_ACEOF
12631 /* confdefs.h.  */
12632 _ACEOF
12633 cat confdefs.h >>conftest.$ac_ext
12634 cat >>conftest.$ac_ext <<_ACEOF
12635 /* end confdefs.h.  */
12636
12637 #include <sys/types.h>
12638 #include <sys/socket.h>
12639 int
12640 main ()
12641 {
12642 socklen_t x
12643   ;
12644   return 0;
12645 }
12646 _ACEOF
12647 rm -f conftest.$ac_objext
12648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12649   (eval $ac_compile) 2>conftest.er1
12650   ac_status=$?
12651   grep -v '^ *+' conftest.er1 >conftest.err
12652   rm -f conftest.er1
12653   cat conftest.err >&5
12654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12655   (exit $ac_status); } &&
12656          { ac_try='test -z "$ac_c_werror_flag"
12657                          || test ! -s conftest.err'
12658   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12659   (eval $ac_try) 2>&5
12660   ac_status=$?
12661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12662   (exit $ac_status); }; } &&
12663          { ac_try='test -s conftest.$ac_objext'
12664   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12665   (eval $ac_try) 2>&5
12666   ac_status=$?
12667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12668   (exit $ac_status); }; }; then
12669   ba_cv_header_socklen_t=yes
12670 else
12671   echo "$as_me: failed program was:" >&5
12672 sed 's/^/| /' conftest.$ac_ext >&5
12673
12674 ba_cv_header_socklen_t=no
12675 fi
12676 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12677 fi
12678 echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
12679 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6
12680 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
12681 #define HAVE_SOCKLEN_T 1
12682 _ACEOF
12683
12684
12685 echo "$as_me:$LINENO: checking for bigendian" >&5
12686 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6
12687 if test "${ba_cv_bigendian+set}" = set; then
12688   echo $ECHO_N "(cached) $ECHO_C" >&6
12689 else
12690   if test "$cross_compiling" = yes; then
12691   ba_cv_bigendian=no
12692 else
12693   cat >conftest.$ac_ext <<_ACEOF
12694 /* confdefs.h.  */
12695 _ACEOF
12696 cat confdefs.h >>conftest.$ac_ext
12697 cat >>conftest.$ac_ext <<_ACEOF
12698 /* end confdefs.h.  */
12699 main(){long a=1L; char *p=(char *)&a; exit(*p);}
12700 _ACEOF
12701 rm -f conftest$ac_exeext
12702 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12703   (eval $ac_link) 2>&5
12704   ac_status=$?
12705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12706   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12707   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12708   (eval $ac_try) 2>&5
12709   ac_status=$?
12710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12711   (exit $ac_status); }; }; then
12712   ba_cv_bigendian=yes
12713 else
12714   echo "$as_me: program exited with status $ac_status" >&5
12715 echo "$as_me: failed program was:" >&5
12716 sed 's/^/| /' conftest.$ac_ext >&5
12717
12718 ( exit $ac_status )
12719 ba_cv_bigendian=no
12720 fi
12721 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12722 fi
12723 fi
12724 echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
12725 echo "${ECHO_T}$ba_cv_bigendian" >&6
12726 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
12727 #define HAVE_BIGENDIAN 1
12728 _ACEOF
12729
12730
12731
12732 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
12733 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
12734 if test "${ac_cv_c_const+set}" = set; then
12735   echo $ECHO_N "(cached) $ECHO_C" >&6
12736 else
12737   cat >conftest.$ac_ext <<_ACEOF
12738 /* confdefs.h.  */
12739 _ACEOF
12740 cat confdefs.h >>conftest.$ac_ext
12741 cat >>conftest.$ac_ext <<_ACEOF
12742 /* end confdefs.h.  */
12743
12744 int
12745 main ()
12746 {
12747 /* FIXME: Include the comments suggested by Paul. */
12748 #ifndef __cplusplus
12749   /* Ultrix mips cc rejects this.  */
12750   typedef int charset[2];
12751   const charset x;
12752   /* SunOS 4.1.1 cc rejects this.  */
12753   char const *const *ccp;
12754   char **p;
12755   /* NEC SVR4.0.2 mips cc rejects this.  */
12756   struct point {int x, y;};
12757   static struct point const zero = {0,0};
12758   /* AIX XL C 1.02.0.0 rejects this.
12759      It does not let you subtract one const X* pointer from another in
12760      an arm of an if-expression whose if-part is not a constant
12761      expression */
12762   const char *g = "string";
12763   ccp = &g + (g ? g-g : 0);
12764   /* HPUX 7.0 cc rejects these. */
12765   ++ccp;
12766   p = (char**) ccp;
12767   ccp = (char const *const *) p;
12768   { /* SCO 3.2v4 cc rejects this.  */
12769     char *t;
12770     char const *s = 0 ? (char *) 0 : (char const *) 0;
12771
12772     *t++ = 0;
12773   }
12774   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
12775     int x[] = {25, 17};
12776     const int *foo = &x[0];
12777     ++foo;
12778   }
12779   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12780     typedef const int *iptr;
12781     iptr p = 0;
12782     ++p;
12783   }
12784   { /* AIX XL C 1.02.0.0 rejects this saying
12785        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12786     struct s { int j; const int *ap[3]; };
12787     struct s *b; b->j = 5;
12788   }
12789   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12790     const int foo = 10;
12791   }
12792 #endif
12793
12794   ;
12795   return 0;
12796 }
12797 _ACEOF
12798 rm -f conftest.$ac_objext
12799 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12800   (eval $ac_compile) 2>conftest.er1
12801   ac_status=$?
12802   grep -v '^ *+' conftest.er1 >conftest.err
12803   rm -f conftest.er1
12804   cat conftest.err >&5
12805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12806   (exit $ac_status); } &&
12807          { ac_try='test -z "$ac_c_werror_flag"
12808                          || test ! -s conftest.err'
12809   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12810   (eval $ac_try) 2>&5
12811   ac_status=$?
12812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12813   (exit $ac_status); }; } &&
12814          { ac_try='test -s conftest.$ac_objext'
12815   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12816   (eval $ac_try) 2>&5
12817   ac_status=$?
12818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12819   (exit $ac_status); }; }; then
12820   ac_cv_c_const=yes
12821 else
12822   echo "$as_me: failed program was:" >&5
12823 sed 's/^/| /' conftest.$ac_ext >&5
12824
12825 ac_cv_c_const=no
12826 fi
12827 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12828 fi
12829 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
12830 echo "${ECHO_T}$ac_cv_c_const" >&6
12831 if test $ac_cv_c_const = no; then
12832
12833 cat >>confdefs.h <<\_ACEOF
12834 #define const
12835 _ACEOF
12836
12837 fi
12838
12839
12840
12841 echo "$as_me:$LINENO: checking how to get filesystem type" >&5
12842 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6
12843 fstype=no
12844 # The order of these tests is important.
12845 cat >conftest.$ac_ext <<_ACEOF
12846 /* confdefs.h.  */
12847 _ACEOF
12848 cat confdefs.h >>conftest.$ac_ext
12849 cat >>conftest.$ac_ext <<_ACEOF
12850 /* end confdefs.h.  */
12851 #include <sys/statvfs.h>
12852 #include <sys/fstyp.h>
12853 _ACEOF
12854 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12855   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12856   ac_status=$?
12857   grep -v '^ *+' conftest.er1 >conftest.err
12858   rm -f conftest.er1
12859   cat conftest.err >&5
12860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12861   (exit $ac_status); } >/dev/null; then
12862   if test -s conftest.err; then
12863     ac_cpp_err=$ac_c_preproc_warn_flag
12864     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12865   else
12866     ac_cpp_err=
12867   fi
12868 else
12869   ac_cpp_err=yes
12870 fi
12871 if test -z "$ac_cpp_err"; then
12872   cat >>confdefs.h <<\_ACEOF
12873 #define FSTYPE_STATVFS 1
12874 _ACEOF
12875  fstype=SVR4
12876 else
12877   echo "$as_me: failed program was:" >&5
12878 sed 's/^/| /' conftest.$ac_ext >&5
12879
12880
12881 fi
12882 rm -f conftest.err conftest.$ac_ext
12883 if test $fstype = no; then
12884 cat >conftest.$ac_ext <<_ACEOF
12885 /* confdefs.h.  */
12886 _ACEOF
12887 cat confdefs.h >>conftest.$ac_ext
12888 cat >>conftest.$ac_ext <<_ACEOF
12889 /* end confdefs.h.  */
12890 #include <sys/statfs.h>
12891 #include <sys/fstyp.h>
12892 _ACEOF
12893 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12894   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12895   ac_status=$?
12896   grep -v '^ *+' conftest.er1 >conftest.err
12897   rm -f conftest.er1
12898   cat conftest.err >&5
12899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12900   (exit $ac_status); } >/dev/null; then
12901   if test -s conftest.err; then
12902     ac_cpp_err=$ac_c_preproc_warn_flag
12903     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12904   else
12905     ac_cpp_err=
12906   fi
12907 else
12908   ac_cpp_err=yes
12909 fi
12910 if test -z "$ac_cpp_err"; then
12911   cat >>confdefs.h <<\_ACEOF
12912 #define FSTYPE_USG_STATFS 1
12913 _ACEOF
12914  fstype=SVR3
12915 else
12916   echo "$as_me: failed program was:" >&5
12917 sed 's/^/| /' conftest.$ac_ext >&5
12918
12919
12920 fi
12921 rm -f conftest.err conftest.$ac_ext
12922 fi
12923 if test $fstype = no; then
12924 cat >conftest.$ac_ext <<_ACEOF
12925 /* confdefs.h.  */
12926 _ACEOF
12927 cat confdefs.h >>conftest.$ac_ext
12928 cat >>conftest.$ac_ext <<_ACEOF
12929 /* end confdefs.h.  */
12930 #include <sys/statfs.h>
12931 #include <sys/vmount.h>
12932 _ACEOF
12933 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12934   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12935   ac_status=$?
12936   grep -v '^ *+' conftest.er1 >conftest.err
12937   rm -f conftest.er1
12938   cat conftest.err >&5
12939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12940   (exit $ac_status); } >/dev/null; then
12941   if test -s conftest.err; then
12942     ac_cpp_err=$ac_c_preproc_warn_flag
12943     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12944   else
12945     ac_cpp_err=
12946   fi
12947 else
12948   ac_cpp_err=yes
12949 fi
12950 if test -z "$ac_cpp_err"; then
12951   cat >>confdefs.h <<\_ACEOF
12952 #define FSTYPE_AIX_STATFS 1
12953 _ACEOF
12954  fstype=AIX
12955 else
12956   echo "$as_me: failed program was:" >&5
12957 sed 's/^/| /' conftest.$ac_ext >&5
12958
12959
12960 fi
12961 rm -f conftest.err conftest.$ac_ext
12962 fi
12963 if test $fstype = no; then
12964 cat >conftest.$ac_ext <<_ACEOF
12965 /* confdefs.h.  */
12966 _ACEOF
12967 cat confdefs.h >>conftest.$ac_ext
12968 cat >>conftest.$ac_ext <<_ACEOF
12969 /* end confdefs.h.  */
12970 #include <mntent.h>
12971 _ACEOF
12972 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12973   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12974   ac_status=$?
12975   grep -v '^ *+' conftest.er1 >conftest.err
12976   rm -f conftest.er1
12977   cat conftest.err >&5
12978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12979   (exit $ac_status); } >/dev/null; then
12980   if test -s conftest.err; then
12981     ac_cpp_err=$ac_c_preproc_warn_flag
12982     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12983   else
12984     ac_cpp_err=
12985   fi
12986 else
12987   ac_cpp_err=yes
12988 fi
12989 if test -z "$ac_cpp_err"; then
12990   cat >>confdefs.h <<\_ACEOF
12991 #define FSTYPE_MNTENT 1
12992 _ACEOF
12993  fstype=4.3BSD
12994 else
12995   echo "$as_me: failed program was:" >&5
12996 sed 's/^/| /' conftest.$ac_ext >&5
12997
12998
12999 fi
13000 rm -f conftest.err conftest.$ac_ext
13001 fi
13002 if test $fstype = no; then
13003 cat >conftest.$ac_ext <<_ACEOF
13004 /* confdefs.h.  */
13005 _ACEOF
13006 cat confdefs.h >>conftest.$ac_ext
13007 cat >>conftest.$ac_ext <<_ACEOF
13008 /* end confdefs.h.  */
13009 #include <sys/mount.h>
13010
13011 _ACEOF
13012 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13013   $EGREP "f_type;" >/dev/null 2>&1; then
13014   cat >>confdefs.h <<\_ACEOF
13015 #define FSTYPE_STATFS 1
13016 _ACEOF
13017  fstype=4.4BSD/OSF1
13018 fi
13019 rm -f conftest*
13020
13021 fi
13022 if test $fstype = no; then
13023 cat >conftest.$ac_ext <<_ACEOF
13024 /* confdefs.h.  */
13025 _ACEOF
13026 cat confdefs.h >>conftest.$ac_ext
13027 cat >>conftest.$ac_ext <<_ACEOF
13028 /* end confdefs.h.  */
13029 #include <sys/mount.h>
13030 #include <sys/fs_types.h>
13031 _ACEOF
13032 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13033   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13034   ac_status=$?
13035   grep -v '^ *+' conftest.er1 >conftest.err
13036   rm -f conftest.er1
13037   cat conftest.err >&5
13038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13039   (exit $ac_status); } >/dev/null; then
13040   if test -s conftest.err; then
13041     ac_cpp_err=$ac_c_preproc_warn_flag
13042     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13043   else
13044     ac_cpp_err=
13045   fi
13046 else
13047   ac_cpp_err=yes
13048 fi
13049 if test -z "$ac_cpp_err"; then
13050   cat >>confdefs.h <<\_ACEOF
13051 #define FSTYPE_GETMNT 1
13052 _ACEOF
13053  fstype=Ultrix
13054 else
13055   echo "$as_me: failed program was:" >&5
13056 sed 's/^/| /' conftest.$ac_ext >&5
13057
13058
13059 fi
13060 rm -f conftest.err conftest.$ac_ext
13061 fi
13062 echo "$as_me:$LINENO: result: $fstype" >&5
13063 echo "${ECHO_T}$fstype" >&6
13064
13065 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
13066 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
13067 if test "${ac_cv_type_signal+set}" = set; then
13068   echo $ECHO_N "(cached) $ECHO_C" >&6
13069 else
13070   cat >conftest.$ac_ext <<_ACEOF
13071 /* confdefs.h.  */
13072 _ACEOF
13073 cat confdefs.h >>conftest.$ac_ext
13074 cat >>conftest.$ac_ext <<_ACEOF
13075 /* end confdefs.h.  */
13076 #include <sys/types.h>
13077 #include <signal.h>
13078 #ifdef signal
13079 # undef signal
13080 #endif
13081 #ifdef __cplusplus
13082 extern "C" void (*signal (int, void (*)(int)))(int);
13083 #else
13084 void (*signal ()) ();
13085 #endif
13086
13087 int
13088 main ()
13089 {
13090 int i;
13091   ;
13092   return 0;
13093 }
13094 _ACEOF
13095 rm -f conftest.$ac_objext
13096 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13097   (eval $ac_compile) 2>conftest.er1
13098   ac_status=$?
13099   grep -v '^ *+' conftest.er1 >conftest.err
13100   rm -f conftest.er1
13101   cat conftest.err >&5
13102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13103   (exit $ac_status); } &&
13104          { ac_try='test -z "$ac_c_werror_flag"
13105                          || test ! -s conftest.err'
13106   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13107   (eval $ac_try) 2>&5
13108   ac_status=$?
13109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13110   (exit $ac_status); }; } &&
13111          { ac_try='test -s conftest.$ac_objext'
13112   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13113   (eval $ac_try) 2>&5
13114   ac_status=$?
13115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13116   (exit $ac_status); }; }; then
13117   ac_cv_type_signal=void
13118 else
13119   echo "$as_me: failed program was:" >&5
13120 sed 's/^/| /' conftest.$ac_ext >&5
13121
13122 ac_cv_type_signal=int
13123 fi
13124 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13125 fi
13126 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
13127 echo "${ECHO_T}$ac_cv_type_signal" >&6
13128
13129 cat >>confdefs.h <<_ACEOF
13130 #define RETSIGTYPE $ac_cv_type_signal
13131 _ACEOF
13132
13133
13134
13135 echo "$as_me:$LINENO: checking for type of signal functions" >&5
13136 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6
13137 if test "${bash_cv_signal_vintage+set}" = set; then
13138   echo $ECHO_N "(cached) $ECHO_C" >&6
13139 else
13140
13141   cat >conftest.$ac_ext <<_ACEOF
13142 /* confdefs.h.  */
13143 _ACEOF
13144 cat confdefs.h >>conftest.$ac_ext
13145 cat >>conftest.$ac_ext <<_ACEOF
13146 /* end confdefs.h.  */
13147 #include <signal.h>
13148 int
13149 main ()
13150 {
13151
13152     sigset_t ss;
13153     struct sigaction sa;
13154     sigemptyset(&ss); sigsuspend(&ss);
13155     sigaction(SIGINT, &sa, (struct sigaction *) 0);
13156     sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
13157
13158   ;
13159   return 0;
13160 }
13161 _ACEOF
13162 rm -f conftest.$ac_objext conftest$ac_exeext
13163 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13164   (eval $ac_link) 2>conftest.er1
13165   ac_status=$?
13166   grep -v '^ *+' conftest.er1 >conftest.err
13167   rm -f conftest.er1
13168   cat conftest.err >&5
13169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13170   (exit $ac_status); } &&
13171          { ac_try='test -z "$ac_c_werror_flag"
13172                          || test ! -s conftest.err'
13173   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13174   (eval $ac_try) 2>&5
13175   ac_status=$?
13176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13177   (exit $ac_status); }; } &&
13178          { ac_try='test -s conftest$ac_exeext'
13179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13180   (eval $ac_try) 2>&5
13181   ac_status=$?
13182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13183   (exit $ac_status); }; }; then
13184   bash_cv_signal_vintage=posix
13185 else
13186   echo "$as_me: failed program was:" >&5
13187 sed 's/^/| /' conftest.$ac_ext >&5
13188
13189
13190     cat >conftest.$ac_ext <<_ACEOF
13191 /* confdefs.h.  */
13192 _ACEOF
13193 cat confdefs.h >>conftest.$ac_ext
13194 cat >>conftest.$ac_ext <<_ACEOF
13195 /* end confdefs.h.  */
13196 #include <signal.h>
13197 int
13198 main ()
13199 {
13200
13201         int mask = sigmask(SIGINT);
13202         sigsetmask(mask); sigblock(mask); sigpause(mask);
13203
13204   ;
13205   return 0;
13206 }
13207 _ACEOF
13208 rm -f conftest.$ac_objext conftest$ac_exeext
13209 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13210   (eval $ac_link) 2>conftest.er1
13211   ac_status=$?
13212   grep -v '^ *+' conftest.er1 >conftest.err
13213   rm -f conftest.er1
13214   cat conftest.err >&5
13215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13216   (exit $ac_status); } &&
13217          { ac_try='test -z "$ac_c_werror_flag"
13218                          || test ! -s conftest.err'
13219   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13220   (eval $ac_try) 2>&5
13221   ac_status=$?
13222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13223   (exit $ac_status); }; } &&
13224          { ac_try='test -s conftest$ac_exeext'
13225   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13226   (eval $ac_try) 2>&5
13227   ac_status=$?
13228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13229   (exit $ac_status); }; }; then
13230   bash_cv_signal_vintage=4.2bsd
13231 else
13232   echo "$as_me: failed program was:" >&5
13233 sed 's/^/| /' conftest.$ac_ext >&5
13234
13235
13236       cat >conftest.$ac_ext <<_ACEOF
13237 /* confdefs.h.  */
13238 _ACEOF
13239 cat confdefs.h >>conftest.$ac_ext
13240 cat >>conftest.$ac_ext <<_ACEOF
13241 /* end confdefs.h.  */
13242
13243         #include <signal.h>
13244         RETSIGTYPE foo() { }
13245 int
13246 main ()
13247 {
13248
13249                 int mask = sigmask(SIGINT);
13250                 sigset(SIGINT, foo); sigrelse(SIGINT);
13251                 sighold(SIGINT); sigpause(SIGINT);
13252
13253   ;
13254   return 0;
13255 }
13256 _ACEOF
13257 rm -f conftest.$ac_objext conftest$ac_exeext
13258 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13259   (eval $ac_link) 2>conftest.er1
13260   ac_status=$?
13261   grep -v '^ *+' conftest.er1 >conftest.err
13262   rm -f conftest.er1
13263   cat conftest.err >&5
13264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13265   (exit $ac_status); } &&
13266          { ac_try='test -z "$ac_c_werror_flag"
13267                          || test ! -s conftest.err'
13268   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13269   (eval $ac_try) 2>&5
13270   ac_status=$?
13271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13272   (exit $ac_status); }; } &&
13273          { ac_try='test -s conftest$ac_exeext'
13274   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13275   (eval $ac_try) 2>&5
13276   ac_status=$?
13277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13278   (exit $ac_status); }; }; then
13279   bash_cv_signal_vintage=svr3
13280 else
13281   echo "$as_me: failed program was:" >&5
13282 sed 's/^/| /' conftest.$ac_ext >&5
13283
13284 bash_cv_signal_vintage=v7
13285
13286 fi
13287 rm -f conftest.err conftest.$ac_objext \
13288       conftest$ac_exeext conftest.$ac_ext
13289
13290 fi
13291 rm -f conftest.err conftest.$ac_objext \
13292       conftest$ac_exeext conftest.$ac_ext
13293
13294 fi
13295 rm -f conftest.err conftest.$ac_objext \
13296       conftest$ac_exeext conftest.$ac_ext
13297
13298 fi
13299
13300 echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
13301 echo "${ECHO_T}$bash_cv_signal_vintage" >&6
13302 if test "$bash_cv_signal_vintage" = posix; then
13303 cat >>confdefs.h <<\_ACEOF
13304 #define HAVE_POSIX_SIGNALS 1
13305 _ACEOF
13306
13307 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
13308 cat >>confdefs.h <<\_ACEOF
13309 #define HAVE_BSD_SIGNALS 1
13310 _ACEOF
13311
13312 elif test "$bash_cv_signal_vintage" = svr3; then
13313 cat >>confdefs.h <<\_ACEOF
13314 #define HAVE_USG_SIGHOLD 1
13315 _ACEOF
13316
13317 fi
13318
13319 echo "$as_me:$LINENO: checking for mode_t" >&5
13320 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
13321 if test "${ac_cv_type_mode_t+set}" = set; then
13322   echo $ECHO_N "(cached) $ECHO_C" >&6
13323 else
13324   cat >conftest.$ac_ext <<_ACEOF
13325 /* confdefs.h.  */
13326 _ACEOF
13327 cat confdefs.h >>conftest.$ac_ext
13328 cat >>conftest.$ac_ext <<_ACEOF
13329 /* end confdefs.h.  */
13330 $ac_includes_default
13331 int
13332 main ()
13333 {
13334 if ((mode_t *) 0)
13335   return 0;
13336 if (sizeof (mode_t))
13337   return 0;
13338   ;
13339   return 0;
13340 }
13341 _ACEOF
13342 rm -f conftest.$ac_objext
13343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13344   (eval $ac_compile) 2>conftest.er1
13345   ac_status=$?
13346   grep -v '^ *+' conftest.er1 >conftest.err
13347   rm -f conftest.er1
13348   cat conftest.err >&5
13349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13350   (exit $ac_status); } &&
13351          { ac_try='test -z "$ac_c_werror_flag"
13352                          || test ! -s conftest.err'
13353   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13354   (eval $ac_try) 2>&5
13355   ac_status=$?
13356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13357   (exit $ac_status); }; } &&
13358          { ac_try='test -s conftest.$ac_objext'
13359   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13360   (eval $ac_try) 2>&5
13361   ac_status=$?
13362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13363   (exit $ac_status); }; }; then
13364   ac_cv_type_mode_t=yes
13365 else
13366   echo "$as_me: failed program was:" >&5
13367 sed 's/^/| /' conftest.$ac_ext >&5
13368
13369 ac_cv_type_mode_t=no
13370 fi
13371 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13372 fi
13373 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
13374 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
13375 if test $ac_cv_type_mode_t = yes; then
13376   :
13377 else
13378
13379 cat >>confdefs.h <<_ACEOF
13380 #define mode_t int
13381 _ACEOF
13382
13383 fi
13384
13385 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
13386 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
13387 if test "${ac_cv_type_uid_t+set}" = set; then
13388   echo $ECHO_N "(cached) $ECHO_C" >&6
13389 else
13390   cat >conftest.$ac_ext <<_ACEOF
13391 /* confdefs.h.  */
13392 _ACEOF
13393 cat confdefs.h >>conftest.$ac_ext
13394 cat >>conftest.$ac_ext <<_ACEOF
13395 /* end confdefs.h.  */
13396 #include <sys/types.h>
13397
13398 _ACEOF
13399 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13400   $EGREP "uid_t" >/dev/null 2>&1; then
13401   ac_cv_type_uid_t=yes
13402 else
13403   ac_cv_type_uid_t=no
13404 fi
13405 rm -f conftest*
13406
13407 fi
13408 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
13409 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
13410 if test $ac_cv_type_uid_t = no; then
13411
13412 cat >>confdefs.h <<\_ACEOF
13413 #define uid_t int
13414 _ACEOF
13415
13416
13417 cat >>confdefs.h <<\_ACEOF
13418 #define gid_t int
13419 _ACEOF
13420
13421 fi
13422
13423 echo "$as_me:$LINENO: checking for size_t" >&5
13424 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
13425 if test "${ac_cv_type_size_t+set}" = set; then
13426   echo $ECHO_N "(cached) $ECHO_C" >&6
13427 else
13428   cat >conftest.$ac_ext <<_ACEOF
13429 /* confdefs.h.  */
13430 _ACEOF
13431 cat confdefs.h >>conftest.$ac_ext
13432 cat >>conftest.$ac_ext <<_ACEOF
13433 /* end confdefs.h.  */
13434 $ac_includes_default
13435 int
13436 main ()
13437 {
13438 if ((size_t *) 0)
13439   return 0;
13440 if (sizeof (size_t))
13441   return 0;
13442   ;
13443   return 0;
13444 }
13445 _ACEOF
13446 rm -f conftest.$ac_objext
13447 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13448   (eval $ac_compile) 2>conftest.er1
13449   ac_status=$?
13450   grep -v '^ *+' conftest.er1 >conftest.err
13451   rm -f conftest.er1
13452   cat conftest.err >&5
13453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13454   (exit $ac_status); } &&
13455          { ac_try='test -z "$ac_c_werror_flag"
13456                          || test ! -s conftest.err'
13457   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13458   (eval $ac_try) 2>&5
13459   ac_status=$?
13460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13461   (exit $ac_status); }; } &&
13462          { ac_try='test -s conftest.$ac_objext'
13463   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13464   (eval $ac_try) 2>&5
13465   ac_status=$?
13466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13467   (exit $ac_status); }; }; then
13468   ac_cv_type_size_t=yes
13469 else
13470   echo "$as_me: failed program was:" >&5
13471 sed 's/^/| /' conftest.$ac_ext >&5
13472
13473 ac_cv_type_size_t=no
13474 fi
13475 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13476 fi
13477 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
13478 echo "${ECHO_T}$ac_cv_type_size_t" >&6
13479 if test $ac_cv_type_size_t = yes; then
13480   :
13481 else
13482
13483 cat >>confdefs.h <<_ACEOF
13484 #define size_t unsigned
13485 _ACEOF
13486
13487 fi
13488
13489 echo "$as_me:$LINENO: checking for pid_t" >&5
13490 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
13491 if test "${ac_cv_type_pid_t+set}" = set; then
13492   echo $ECHO_N "(cached) $ECHO_C" >&6
13493 else
13494   cat >conftest.$ac_ext <<_ACEOF
13495 /* confdefs.h.  */
13496 _ACEOF
13497 cat confdefs.h >>conftest.$ac_ext
13498 cat >>conftest.$ac_ext <<_ACEOF
13499 /* end confdefs.h.  */
13500 $ac_includes_default
13501 int
13502 main ()
13503 {
13504 if ((pid_t *) 0)
13505   return 0;
13506 if (sizeof (pid_t))
13507   return 0;
13508   ;
13509   return 0;
13510 }
13511 _ACEOF
13512 rm -f conftest.$ac_objext
13513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13514   (eval $ac_compile) 2>conftest.er1
13515   ac_status=$?
13516   grep -v '^ *+' conftest.er1 >conftest.err
13517   rm -f conftest.er1
13518   cat conftest.err >&5
13519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13520   (exit $ac_status); } &&
13521          { ac_try='test -z "$ac_c_werror_flag"
13522                          || test ! -s conftest.err'
13523   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13524   (eval $ac_try) 2>&5
13525   ac_status=$?
13526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13527   (exit $ac_status); }; } &&
13528          { ac_try='test -s conftest.$ac_objext'
13529   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13530   (eval $ac_try) 2>&5
13531   ac_status=$?
13532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13533   (exit $ac_status); }; }; then
13534   ac_cv_type_pid_t=yes
13535 else
13536   echo "$as_me: failed program was:" >&5
13537 sed 's/^/| /' conftest.$ac_ext >&5
13538
13539 ac_cv_type_pid_t=no
13540 fi
13541 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13542 fi
13543 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
13544 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
13545 if test $ac_cv_type_pid_t = yes; then
13546   :
13547 else
13548
13549 cat >>confdefs.h <<_ACEOF
13550 #define pid_t int
13551 _ACEOF
13552
13553 fi
13554
13555 echo "$as_me:$LINENO: checking for off_t" >&5
13556 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
13557 if test "${ac_cv_type_off_t+set}" = set; then
13558   echo $ECHO_N "(cached) $ECHO_C" >&6
13559 else
13560   cat >conftest.$ac_ext <<_ACEOF
13561 /* confdefs.h.  */
13562 _ACEOF
13563 cat confdefs.h >>conftest.$ac_ext
13564 cat >>conftest.$ac_ext <<_ACEOF
13565 /* end confdefs.h.  */
13566 $ac_includes_default
13567 int
13568 main ()
13569 {
13570 if ((off_t *) 0)
13571   return 0;
13572 if (sizeof (off_t))
13573   return 0;
13574   ;
13575   return 0;
13576 }
13577 _ACEOF
13578 rm -f conftest.$ac_objext
13579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13580   (eval $ac_compile) 2>conftest.er1
13581   ac_status=$?
13582   grep -v '^ *+' conftest.er1 >conftest.err
13583   rm -f conftest.er1
13584   cat conftest.err >&5
13585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13586   (exit $ac_status); } &&
13587          { ac_try='test -z "$ac_c_werror_flag"
13588                          || test ! -s conftest.err'
13589   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13590   (eval $ac_try) 2>&5
13591   ac_status=$?
13592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13593   (exit $ac_status); }; } &&
13594          { ac_try='test -s conftest.$ac_objext'
13595   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13596   (eval $ac_try) 2>&5
13597   ac_status=$?
13598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13599   (exit $ac_status); }; }; then
13600   ac_cv_type_off_t=yes
13601 else
13602   echo "$as_me: failed program was:" >&5
13603 sed 's/^/| /' conftest.$ac_ext >&5
13604
13605 ac_cv_type_off_t=no
13606 fi
13607 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13608 fi
13609 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
13610 echo "${ECHO_T}$ac_cv_type_off_t" >&6
13611 if test $ac_cv_type_off_t = yes; then
13612   :
13613 else
13614
13615 cat >>confdefs.h <<_ACEOF
13616 #define off_t long
13617 _ACEOF
13618
13619 fi
13620
13621 echo "$as_me:$LINENO: checking for ino_t" >&5
13622 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
13623 if test "${ac_cv_type_ino_t+set}" = set; then
13624   echo $ECHO_N "(cached) $ECHO_C" >&6
13625 else
13626   cat >conftest.$ac_ext <<_ACEOF
13627 /* confdefs.h.  */
13628 _ACEOF
13629 cat confdefs.h >>conftest.$ac_ext
13630 cat >>conftest.$ac_ext <<_ACEOF
13631 /* end confdefs.h.  */
13632 $ac_includes_default
13633 int
13634 main ()
13635 {
13636 if ((ino_t *) 0)
13637   return 0;
13638 if (sizeof (ino_t))
13639   return 0;
13640   ;
13641   return 0;
13642 }
13643 _ACEOF
13644 rm -f conftest.$ac_objext
13645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13646   (eval $ac_compile) 2>conftest.er1
13647   ac_status=$?
13648   grep -v '^ *+' conftest.er1 >conftest.err
13649   rm -f conftest.er1
13650   cat conftest.err >&5
13651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13652   (exit $ac_status); } &&
13653          { ac_try='test -z "$ac_c_werror_flag"
13654                          || test ! -s conftest.err'
13655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13656   (eval $ac_try) 2>&5
13657   ac_status=$?
13658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13659   (exit $ac_status); }; } &&
13660          { ac_try='test -s conftest.$ac_objext'
13661   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13662   (eval $ac_try) 2>&5
13663   ac_status=$?
13664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13665   (exit $ac_status); }; }; then
13666   ac_cv_type_ino_t=yes
13667 else
13668   echo "$as_me: failed program was:" >&5
13669 sed 's/^/| /' conftest.$ac_ext >&5
13670
13671 ac_cv_type_ino_t=no
13672 fi
13673 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13674 fi
13675 echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
13676 echo "${ECHO_T}$ac_cv_type_ino_t" >&6
13677 if test $ac_cv_type_ino_t = yes; then
13678   :
13679 else
13680
13681 cat >>confdefs.h <<_ACEOF
13682 #define ino_t unsigned long
13683 _ACEOF
13684
13685 fi
13686
13687 echo "$as_me:$LINENO: checking for dev_t" >&5
13688 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6
13689 if test "${ac_cv_type_dev_t+set}" = set; then
13690   echo $ECHO_N "(cached) $ECHO_C" >&6
13691 else
13692   cat >conftest.$ac_ext <<_ACEOF
13693 /* confdefs.h.  */
13694 _ACEOF
13695 cat confdefs.h >>conftest.$ac_ext
13696 cat >>conftest.$ac_ext <<_ACEOF
13697 /* end confdefs.h.  */
13698 $ac_includes_default
13699 int
13700 main ()
13701 {
13702 if ((dev_t *) 0)
13703   return 0;
13704 if (sizeof (dev_t))
13705   return 0;
13706   ;
13707   return 0;
13708 }
13709 _ACEOF
13710 rm -f conftest.$ac_objext
13711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13712   (eval $ac_compile) 2>conftest.er1
13713   ac_status=$?
13714   grep -v '^ *+' conftest.er1 >conftest.err
13715   rm -f conftest.er1
13716   cat conftest.err >&5
13717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13718   (exit $ac_status); } &&
13719          { ac_try='test -z "$ac_c_werror_flag"
13720                          || test ! -s conftest.err'
13721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13722   (eval $ac_try) 2>&5
13723   ac_status=$?
13724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13725   (exit $ac_status); }; } &&
13726          { ac_try='test -s conftest.$ac_objext'
13727   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13728   (eval $ac_try) 2>&5
13729   ac_status=$?
13730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13731   (exit $ac_status); }; }; then
13732   ac_cv_type_dev_t=yes
13733 else
13734   echo "$as_me: failed program was:" >&5
13735 sed 's/^/| /' conftest.$ac_ext >&5
13736
13737 ac_cv_type_dev_t=no
13738 fi
13739 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13740 fi
13741 echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
13742 echo "${ECHO_T}$ac_cv_type_dev_t" >&6
13743 if test $ac_cv_type_dev_t = yes; then
13744   :
13745 else
13746
13747 cat >>confdefs.h <<_ACEOF
13748 #define dev_t unsigned long
13749 _ACEOF
13750
13751 fi
13752
13753 echo "$as_me:$LINENO: checking for daddr_t" >&5
13754 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6
13755 if test "${ac_cv_type_daddr_t+set}" = set; then
13756   echo $ECHO_N "(cached) $ECHO_C" >&6
13757 else
13758   cat >conftest.$ac_ext <<_ACEOF
13759 /* confdefs.h.  */
13760 _ACEOF
13761 cat confdefs.h >>conftest.$ac_ext
13762 cat >>conftest.$ac_ext <<_ACEOF
13763 /* end confdefs.h.  */
13764 $ac_includes_default
13765 int
13766 main ()
13767 {
13768 if ((daddr_t *) 0)
13769   return 0;
13770 if (sizeof (daddr_t))
13771   return 0;
13772   ;
13773   return 0;
13774 }
13775 _ACEOF
13776 rm -f conftest.$ac_objext
13777 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13778   (eval $ac_compile) 2>conftest.er1
13779   ac_status=$?
13780   grep -v '^ *+' conftest.er1 >conftest.err
13781   rm -f conftest.er1
13782   cat conftest.err >&5
13783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13784   (exit $ac_status); } &&
13785          { ac_try='test -z "$ac_c_werror_flag"
13786                          || test ! -s conftest.err'
13787   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13788   (eval $ac_try) 2>&5
13789   ac_status=$?
13790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13791   (exit $ac_status); }; } &&
13792          { ac_try='test -s conftest.$ac_objext'
13793   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13794   (eval $ac_try) 2>&5
13795   ac_status=$?
13796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13797   (exit $ac_status); }; }; then
13798   ac_cv_type_daddr_t=yes
13799 else
13800   echo "$as_me: failed program was:" >&5
13801 sed 's/^/| /' conftest.$ac_ext >&5
13802
13803 ac_cv_type_daddr_t=no
13804 fi
13805 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13806 fi
13807 echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
13808 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6
13809 if test $ac_cv_type_daddr_t = yes; then
13810   :
13811 else
13812
13813 cat >>confdefs.h <<_ACEOF
13814 #define daddr_t long
13815 _ACEOF
13816
13817 fi
13818
13819 echo "$as_me:$LINENO: checking for major_t" >&5
13820 echo $ECHO_N "checking for major_t... $ECHO_C" >&6
13821 if test "${ac_cv_type_major_t+set}" = set; then
13822   echo $ECHO_N "(cached) $ECHO_C" >&6
13823 else
13824   cat >conftest.$ac_ext <<_ACEOF
13825 /* confdefs.h.  */
13826 _ACEOF
13827 cat confdefs.h >>conftest.$ac_ext
13828 cat >>conftest.$ac_ext <<_ACEOF
13829 /* end confdefs.h.  */
13830 $ac_includes_default
13831 int
13832 main ()
13833 {
13834 if ((major_t *) 0)
13835   return 0;
13836 if (sizeof (major_t))
13837   return 0;
13838   ;
13839   return 0;
13840 }
13841 _ACEOF
13842 rm -f conftest.$ac_objext
13843 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13844   (eval $ac_compile) 2>conftest.er1
13845   ac_status=$?
13846   grep -v '^ *+' conftest.er1 >conftest.err
13847   rm -f conftest.er1
13848   cat conftest.err >&5
13849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13850   (exit $ac_status); } &&
13851          { ac_try='test -z "$ac_c_werror_flag"
13852                          || test ! -s conftest.err'
13853   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13854   (eval $ac_try) 2>&5
13855   ac_status=$?
13856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13857   (exit $ac_status); }; } &&
13858          { ac_try='test -s conftest.$ac_objext'
13859   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13860   (eval $ac_try) 2>&5
13861   ac_status=$?
13862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13863   (exit $ac_status); }; }; then
13864   ac_cv_type_major_t=yes
13865 else
13866   echo "$as_me: failed program was:" >&5
13867 sed 's/^/| /' conftest.$ac_ext >&5
13868
13869 ac_cv_type_major_t=no
13870 fi
13871 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13872 fi
13873 echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
13874 echo "${ECHO_T}$ac_cv_type_major_t" >&6
13875 if test $ac_cv_type_major_t = yes; then
13876   :
13877 else
13878
13879 cat >>confdefs.h <<_ACEOF
13880 #define major_t int
13881 _ACEOF
13882
13883 fi
13884
13885 echo "$as_me:$LINENO: checking for minor_t" >&5
13886 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6
13887 if test "${ac_cv_type_minor_t+set}" = set; then
13888   echo $ECHO_N "(cached) $ECHO_C" >&6
13889 else
13890   cat >conftest.$ac_ext <<_ACEOF
13891 /* confdefs.h.  */
13892 _ACEOF
13893 cat confdefs.h >>conftest.$ac_ext
13894 cat >>conftest.$ac_ext <<_ACEOF
13895 /* end confdefs.h.  */
13896 $ac_includes_default
13897 int
13898 main ()
13899 {
13900 if ((minor_t *) 0)
13901   return 0;
13902 if (sizeof (minor_t))
13903   return 0;
13904   ;
13905   return 0;
13906 }
13907 _ACEOF
13908 rm -f conftest.$ac_objext
13909 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13910   (eval $ac_compile) 2>conftest.er1
13911   ac_status=$?
13912   grep -v '^ *+' conftest.er1 >conftest.err
13913   rm -f conftest.er1
13914   cat conftest.err >&5
13915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13916   (exit $ac_status); } &&
13917          { ac_try='test -z "$ac_c_werror_flag"
13918                          || test ! -s conftest.err'
13919   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13920   (eval $ac_try) 2>&5
13921   ac_status=$?
13922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13923   (exit $ac_status); }; } &&
13924          { ac_try='test -s conftest.$ac_objext'
13925   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13926   (eval $ac_try) 2>&5
13927   ac_status=$?
13928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13929   (exit $ac_status); }; }; then
13930   ac_cv_type_minor_t=yes
13931 else
13932   echo "$as_me: failed program was:" >&5
13933 sed 's/^/| /' conftest.$ac_ext >&5
13934
13935 ac_cv_type_minor_t=no
13936 fi
13937 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13938 fi
13939 echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
13940 echo "${ECHO_T}$ac_cv_type_minor_t" >&6
13941 if test $ac_cv_type_minor_t = yes; then
13942   :
13943 else
13944
13945 cat >>confdefs.h <<_ACEOF
13946 #define minor_t int
13947 _ACEOF
13948
13949 fi
13950
13951 echo "$as_me:$LINENO: checking for ssize_t" >&5
13952 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
13953 if test "${ac_cv_type_ssize_t+set}" = set; then
13954   echo $ECHO_N "(cached) $ECHO_C" >&6
13955 else
13956   cat >conftest.$ac_ext <<_ACEOF
13957 /* confdefs.h.  */
13958 _ACEOF
13959 cat confdefs.h >>conftest.$ac_ext
13960 cat >>conftest.$ac_ext <<_ACEOF
13961 /* end confdefs.h.  */
13962 $ac_includes_default
13963 int
13964 main ()
13965 {
13966 if ((ssize_t *) 0)
13967   return 0;
13968 if (sizeof (ssize_t))
13969   return 0;
13970   ;
13971   return 0;
13972 }
13973 _ACEOF
13974 rm -f conftest.$ac_objext
13975 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13976   (eval $ac_compile) 2>conftest.er1
13977   ac_status=$?
13978   grep -v '^ *+' conftest.er1 >conftest.err
13979   rm -f conftest.er1
13980   cat conftest.err >&5
13981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13982   (exit $ac_status); } &&
13983          { ac_try='test -z "$ac_c_werror_flag"
13984                          || test ! -s conftest.err'
13985   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13986   (eval $ac_try) 2>&5
13987   ac_status=$?
13988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13989   (exit $ac_status); }; } &&
13990          { ac_try='test -s conftest.$ac_objext'
13991   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13992   (eval $ac_try) 2>&5
13993   ac_status=$?
13994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13995   (exit $ac_status); }; }; then
13996   ac_cv_type_ssize_t=yes
13997 else
13998   echo "$as_me: failed program was:" >&5
13999 sed 's/^/| /' conftest.$ac_ext >&5
14000
14001 ac_cv_type_ssize_t=no
14002 fi
14003 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14004 fi
14005 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
14006 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
14007 if test $ac_cv_type_ssize_t = yes; then
14008   :
14009 else
14010
14011 cat >>confdefs.h <<_ACEOF
14012 #define ssize_t int
14013 _ACEOF
14014
14015 fi
14016
14017 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
14018 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
14019 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
14020   echo $ECHO_N "(cached) $ECHO_C" >&6
14021 else
14022   cat >conftest.$ac_ext <<_ACEOF
14023 /* confdefs.h.  */
14024 _ACEOF
14025 cat confdefs.h >>conftest.$ac_ext
14026 cat >>conftest.$ac_ext <<_ACEOF
14027 /* end confdefs.h.  */
14028 $ac_includes_default
14029 int
14030 main ()
14031 {
14032 static struct stat ac_aggr;
14033 if (ac_aggr.st_blocks)
14034 return 0;
14035   ;
14036   return 0;
14037 }
14038 _ACEOF
14039 rm -f conftest.$ac_objext
14040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14041   (eval $ac_compile) 2>conftest.er1
14042   ac_status=$?
14043   grep -v '^ *+' conftest.er1 >conftest.err
14044   rm -f conftest.er1
14045   cat conftest.err >&5
14046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14047   (exit $ac_status); } &&
14048          { ac_try='test -z "$ac_c_werror_flag"
14049                          || test ! -s conftest.err'
14050   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14051   (eval $ac_try) 2>&5
14052   ac_status=$?
14053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14054   (exit $ac_status); }; } &&
14055          { ac_try='test -s conftest.$ac_objext'
14056   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14057   (eval $ac_try) 2>&5
14058   ac_status=$?
14059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14060   (exit $ac_status); }; }; then
14061   ac_cv_member_struct_stat_st_blocks=yes
14062 else
14063   echo "$as_me: failed program was:" >&5
14064 sed 's/^/| /' conftest.$ac_ext >&5
14065
14066 cat >conftest.$ac_ext <<_ACEOF
14067 /* confdefs.h.  */
14068 _ACEOF
14069 cat confdefs.h >>conftest.$ac_ext
14070 cat >>conftest.$ac_ext <<_ACEOF
14071 /* end confdefs.h.  */
14072 $ac_includes_default
14073 int
14074 main ()
14075 {
14076 static struct stat ac_aggr;
14077 if (sizeof ac_aggr.st_blocks)
14078 return 0;
14079   ;
14080   return 0;
14081 }
14082 _ACEOF
14083 rm -f conftest.$ac_objext
14084 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14085   (eval $ac_compile) 2>conftest.er1
14086   ac_status=$?
14087   grep -v '^ *+' conftest.er1 >conftest.err
14088   rm -f conftest.er1
14089   cat conftest.err >&5
14090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14091   (exit $ac_status); } &&
14092          { ac_try='test -z "$ac_c_werror_flag"
14093                          || test ! -s conftest.err'
14094   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14095   (eval $ac_try) 2>&5
14096   ac_status=$?
14097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14098   (exit $ac_status); }; } &&
14099          { ac_try='test -s conftest.$ac_objext'
14100   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14101   (eval $ac_try) 2>&5
14102   ac_status=$?
14103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14104   (exit $ac_status); }; }; then
14105   ac_cv_member_struct_stat_st_blocks=yes
14106 else
14107   echo "$as_me: failed program was:" >&5
14108 sed 's/^/| /' conftest.$ac_ext >&5
14109
14110 ac_cv_member_struct_stat_st_blocks=no
14111 fi
14112 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14113 fi
14114 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14115 fi
14116 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
14117 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
14118 if test $ac_cv_member_struct_stat_st_blocks = yes; then
14119
14120 cat >>confdefs.h <<_ACEOF
14121 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
14122 _ACEOF
14123
14124
14125 cat >>confdefs.h <<\_ACEOF
14126 #define HAVE_ST_BLOCKS 1
14127 _ACEOF
14128
14129 else
14130   case $LIBOBJS in
14131     "fileblocks.$ac_objext"   | \
14132   *" fileblocks.$ac_objext"   | \
14133     "fileblocks.$ac_objext "* | \
14134   *" fileblocks.$ac_objext "* ) ;;
14135   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;;
14136 esac
14137
14138 fi
14139
14140
14141
14142 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
14143 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
14144 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
14145   echo $ECHO_N "(cached) $ECHO_C" >&6
14146 else
14147   cat >conftest.$ac_ext <<_ACEOF
14148 /* confdefs.h.  */
14149 _ACEOF
14150 cat confdefs.h >>conftest.$ac_ext
14151 cat >>conftest.$ac_ext <<_ACEOF
14152 /* end confdefs.h.  */
14153 $ac_includes_default
14154 int
14155 main ()
14156 {
14157 static struct stat ac_aggr;
14158 if (ac_aggr.st_rdev)
14159 return 0;
14160   ;
14161   return 0;
14162 }
14163 _ACEOF
14164 rm -f conftest.$ac_objext
14165 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14166   (eval $ac_compile) 2>conftest.er1
14167   ac_status=$?
14168   grep -v '^ *+' conftest.er1 >conftest.err
14169   rm -f conftest.er1
14170   cat conftest.err >&5
14171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14172   (exit $ac_status); } &&
14173          { ac_try='test -z "$ac_c_werror_flag"
14174                          || test ! -s conftest.err'
14175   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14176   (eval $ac_try) 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_member_struct_stat_st_rdev=yes
14187 else
14188   echo "$as_me: failed program was:" >&5
14189 sed 's/^/| /' conftest.$ac_ext >&5
14190
14191 cat >conftest.$ac_ext <<_ACEOF
14192 /* confdefs.h.  */
14193 _ACEOF
14194 cat confdefs.h >>conftest.$ac_ext
14195 cat >>conftest.$ac_ext <<_ACEOF
14196 /* end confdefs.h.  */
14197 $ac_includes_default
14198 int
14199 main ()
14200 {
14201 static struct stat ac_aggr;
14202 if (sizeof ac_aggr.st_rdev)
14203 return 0;
14204   ;
14205   return 0;
14206 }
14207 _ACEOF
14208 rm -f conftest.$ac_objext
14209 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14210   (eval $ac_compile) 2>conftest.er1
14211   ac_status=$?
14212   grep -v '^ *+' conftest.er1 >conftest.err
14213   rm -f conftest.er1
14214   cat conftest.err >&5
14215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14216   (exit $ac_status); } &&
14217          { ac_try='test -z "$ac_c_werror_flag"
14218                          || test ! -s conftest.err'
14219   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14220   (eval $ac_try) 2>&5
14221   ac_status=$?
14222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14223   (exit $ac_status); }; } &&
14224          { ac_try='test -s conftest.$ac_objext'
14225   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14226   (eval $ac_try) 2>&5
14227   ac_status=$?
14228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14229   (exit $ac_status); }; }; then
14230   ac_cv_member_struct_stat_st_rdev=yes
14231 else
14232   echo "$as_me: failed program was:" >&5
14233 sed 's/^/| /' conftest.$ac_ext >&5
14234
14235 ac_cv_member_struct_stat_st_rdev=no
14236 fi
14237 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14238 fi
14239 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14240 fi
14241 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
14242 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
14243 if test $ac_cv_member_struct_stat_st_rdev = yes; then
14244
14245 cat >>confdefs.h <<_ACEOF
14246 #define HAVE_STRUCT_STAT_ST_RDEV 1
14247 _ACEOF
14248
14249
14250 cat >>confdefs.h <<\_ACEOF
14251 #define HAVE_ST_RDEV 1
14252 _ACEOF
14253
14254 fi
14255
14256
14257 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
14258 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
14259 if test "${ac_cv_struct_tm+set}" = set; then
14260   echo $ECHO_N "(cached) $ECHO_C" >&6
14261 else
14262   cat >conftest.$ac_ext <<_ACEOF
14263 /* confdefs.h.  */
14264 _ACEOF
14265 cat confdefs.h >>conftest.$ac_ext
14266 cat >>conftest.$ac_ext <<_ACEOF
14267 /* end confdefs.h.  */
14268 #include <sys/types.h>
14269 #include <time.h>
14270
14271 int
14272 main ()
14273 {
14274 struct tm *tp; tp->tm_sec;
14275   ;
14276   return 0;
14277 }
14278 _ACEOF
14279 rm -f conftest.$ac_objext
14280 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14281   (eval $ac_compile) 2>conftest.er1
14282   ac_status=$?
14283   grep -v '^ *+' conftest.er1 >conftest.err
14284   rm -f conftest.er1
14285   cat conftest.err >&5
14286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14287   (exit $ac_status); } &&
14288          { ac_try='test -z "$ac_c_werror_flag"
14289                          || test ! -s conftest.err'
14290   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14291   (eval $ac_try) 2>&5
14292   ac_status=$?
14293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14294   (exit $ac_status); }; } &&
14295          { ac_try='test -s conftest.$ac_objext'
14296   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14297   (eval $ac_try) 2>&5
14298   ac_status=$?
14299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14300   (exit $ac_status); }; }; then
14301   ac_cv_struct_tm=time.h
14302 else
14303   echo "$as_me: failed program was:" >&5
14304 sed 's/^/| /' conftest.$ac_ext >&5
14305
14306 ac_cv_struct_tm=sys/time.h
14307 fi
14308 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14309 fi
14310 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
14311 echo "${ECHO_T}$ac_cv_struct_tm" >&6
14312 if test $ac_cv_struct_tm = sys/time.h; then
14313
14314 cat >>confdefs.h <<\_ACEOF
14315 #define TM_IN_SYS_TIME 1
14316 _ACEOF
14317
14318 fi
14319
14320 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
14321 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
14322 if test "${ac_cv_c_const+set}" = set; then
14323   echo $ECHO_N "(cached) $ECHO_C" >&6
14324 else
14325   cat >conftest.$ac_ext <<_ACEOF
14326 /* confdefs.h.  */
14327 _ACEOF
14328 cat confdefs.h >>conftest.$ac_ext
14329 cat >>conftest.$ac_ext <<_ACEOF
14330 /* end confdefs.h.  */
14331
14332 int
14333 main ()
14334 {
14335 /* FIXME: Include the comments suggested by Paul. */
14336 #ifndef __cplusplus
14337   /* Ultrix mips cc rejects this.  */
14338   typedef int charset[2];
14339   const charset x;
14340   /* SunOS 4.1.1 cc rejects this.  */
14341   char const *const *ccp;
14342   char **p;
14343   /* NEC SVR4.0.2 mips cc rejects this.  */
14344   struct point {int x, y;};
14345   static struct point const zero = {0,0};
14346   /* AIX XL C 1.02.0.0 rejects this.
14347      It does not let you subtract one const X* pointer from another in
14348      an arm of an if-expression whose if-part is not a constant
14349      expression */
14350   const char *g = "string";
14351   ccp = &g + (g ? g-g : 0);
14352   /* HPUX 7.0 cc rejects these. */
14353   ++ccp;
14354   p = (char**) ccp;
14355   ccp = (char const *const *) p;
14356   { /* SCO 3.2v4 cc rejects this.  */
14357     char *t;
14358     char const *s = 0 ? (char *) 0 : (char const *) 0;
14359
14360     *t++ = 0;
14361   }
14362   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
14363     int x[] = {25, 17};
14364     const int *foo = &x[0];
14365     ++foo;
14366   }
14367   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14368     typedef const int *iptr;
14369     iptr p = 0;
14370     ++p;
14371   }
14372   { /* AIX XL C 1.02.0.0 rejects this saying
14373        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14374     struct s { int j; const int *ap[3]; };
14375     struct s *b; b->j = 5;
14376   }
14377   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14378     const int foo = 10;
14379   }
14380 #endif
14381
14382   ;
14383   return 0;
14384 }
14385 _ACEOF
14386 rm -f conftest.$ac_objext
14387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14388   (eval $ac_compile) 2>conftest.er1
14389   ac_status=$?
14390   grep -v '^ *+' conftest.er1 >conftest.err
14391   rm -f conftest.er1
14392   cat conftest.err >&5
14393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14394   (exit $ac_status); } &&
14395          { ac_try='test -z "$ac_c_werror_flag"
14396                          || test ! -s conftest.err'
14397   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14398   (eval $ac_try) 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_cv_c_const=yes
14409 else
14410   echo "$as_me: failed program was:" >&5
14411 sed 's/^/| /' conftest.$ac_ext >&5
14412
14413 ac_cv_c_const=no
14414 fi
14415 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14416 fi
14417 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
14418 echo "${ECHO_T}$ac_cv_c_const" >&6
14419 if test $ac_cv_c_const = no; then
14420
14421 cat >>confdefs.h <<\_ACEOF
14422 #define const
14423 _ACEOF
14424
14425 fi
14426
14427
14428
14429 echo "$as_me:$LINENO: checking for char" >&5
14430 echo $ECHO_N "checking for char... $ECHO_C" >&6
14431 if test "${ac_cv_type_char+set}" = set; then
14432   echo $ECHO_N "(cached) $ECHO_C" >&6
14433 else
14434   cat >conftest.$ac_ext <<_ACEOF
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 int
14442 main ()
14443 {
14444 if ((char *) 0)
14445   return 0;
14446 if (sizeof (char))
14447   return 0;
14448   ;
14449   return 0;
14450 }
14451 _ACEOF
14452 rm -f conftest.$ac_objext
14453 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14454   (eval $ac_compile) 2>conftest.er1
14455   ac_status=$?
14456   grep -v '^ *+' conftest.er1 >conftest.err
14457   rm -f conftest.er1
14458   cat conftest.err >&5
14459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14460   (exit $ac_status); } &&
14461          { ac_try='test -z "$ac_c_werror_flag"
14462                          || test ! -s conftest.err'
14463   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14464   (eval $ac_try) 2>&5
14465   ac_status=$?
14466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14467   (exit $ac_status); }; } &&
14468          { ac_try='test -s conftest.$ac_objext'
14469   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14470   (eval $ac_try) 2>&5
14471   ac_status=$?
14472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14473   (exit $ac_status); }; }; then
14474   ac_cv_type_char=yes
14475 else
14476   echo "$as_me: failed program was:" >&5
14477 sed 's/^/| /' conftest.$ac_ext >&5
14478
14479 ac_cv_type_char=no
14480 fi
14481 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14482 fi
14483 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
14484 echo "${ECHO_T}$ac_cv_type_char" >&6
14485
14486 echo "$as_me:$LINENO: checking size of char" >&5
14487 echo $ECHO_N "checking size of char... $ECHO_C" >&6
14488 if test "${ac_cv_sizeof_char+set}" = set; then
14489   echo $ECHO_N "(cached) $ECHO_C" >&6
14490 else
14491   if test "$ac_cv_type_char" = yes; then
14492   # The cast to unsigned long works around a bug in the HP C Compiler
14493   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14494   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14495   # This bug is HP SR number 8606223364.
14496   if test "$cross_compiling" = yes; then
14497   # Depending upon the size, compute the lo and hi bounds.
14498 cat >conftest.$ac_ext <<_ACEOF
14499 /* confdefs.h.  */
14500 _ACEOF
14501 cat confdefs.h >>conftest.$ac_ext
14502 cat >>conftest.$ac_ext <<_ACEOF
14503 /* end confdefs.h.  */
14504 $ac_includes_default
14505 int
14506 main ()
14507 {
14508 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
14509 test_array [0] = 0
14510
14511   ;
14512   return 0;
14513 }
14514 _ACEOF
14515 rm -f conftest.$ac_objext
14516 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14517   (eval $ac_compile) 2>conftest.er1
14518   ac_status=$?
14519   grep -v '^ *+' conftest.er1 >conftest.err
14520   rm -f conftest.er1
14521   cat conftest.err >&5
14522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14523   (exit $ac_status); } &&
14524          { ac_try='test -z "$ac_c_werror_flag"
14525                          || test ! -s conftest.err'
14526   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14527   (eval $ac_try) 2>&5
14528   ac_status=$?
14529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14530   (exit $ac_status); }; } &&
14531          { ac_try='test -s conftest.$ac_objext'
14532   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14533   (eval $ac_try) 2>&5
14534   ac_status=$?
14535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14536   (exit $ac_status); }; }; then
14537   ac_lo=0 ac_mid=0
14538   while :; do
14539     cat >conftest.$ac_ext <<_ACEOF
14540 /* confdefs.h.  */
14541 _ACEOF
14542 cat confdefs.h >>conftest.$ac_ext
14543 cat >>conftest.$ac_ext <<_ACEOF
14544 /* end confdefs.h.  */
14545 $ac_includes_default
14546 int
14547 main ()
14548 {
14549 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
14550 test_array [0] = 0
14551
14552   ;
14553   return 0;
14554 }
14555 _ACEOF
14556 rm -f conftest.$ac_objext
14557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14558   (eval $ac_compile) 2>conftest.er1
14559   ac_status=$?
14560   grep -v '^ *+' conftest.er1 >conftest.err
14561   rm -f conftest.er1
14562   cat conftest.err >&5
14563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14564   (exit $ac_status); } &&
14565          { ac_try='test -z "$ac_c_werror_flag"
14566                          || test ! -s conftest.err'
14567   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14568   (eval $ac_try) 2>&5
14569   ac_status=$?
14570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14571   (exit $ac_status); }; } &&
14572          { ac_try='test -s conftest.$ac_objext'
14573   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14574   (eval $ac_try) 2>&5
14575   ac_status=$?
14576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14577   (exit $ac_status); }; }; then
14578   ac_hi=$ac_mid; break
14579 else
14580   echo "$as_me: failed program was:" >&5
14581 sed 's/^/| /' conftest.$ac_ext >&5
14582
14583 ac_lo=`expr $ac_mid + 1`
14584                     if test $ac_lo -le $ac_mid; then
14585                       ac_lo= ac_hi=
14586                       break
14587                     fi
14588                     ac_mid=`expr 2 '*' $ac_mid + 1`
14589 fi
14590 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14591   done
14592 else
14593   echo "$as_me: failed program was:" >&5
14594 sed 's/^/| /' conftest.$ac_ext >&5
14595
14596 cat >conftest.$ac_ext <<_ACEOF
14597 /* confdefs.h.  */
14598 _ACEOF
14599 cat confdefs.h >>conftest.$ac_ext
14600 cat >>conftest.$ac_ext <<_ACEOF
14601 /* end confdefs.h.  */
14602 $ac_includes_default
14603 int
14604 main ()
14605 {
14606 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
14607 test_array [0] = 0
14608
14609   ;
14610   return 0;
14611 }
14612 _ACEOF
14613 rm -f conftest.$ac_objext
14614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14615   (eval $ac_compile) 2>conftest.er1
14616   ac_status=$?
14617   grep -v '^ *+' conftest.er1 >conftest.err
14618   rm -f conftest.er1
14619   cat conftest.err >&5
14620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14621   (exit $ac_status); } &&
14622          { ac_try='test -z "$ac_c_werror_flag"
14623                          || test ! -s conftest.err'
14624   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14625   (eval $ac_try) 2>&5
14626   ac_status=$?
14627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14628   (exit $ac_status); }; } &&
14629          { ac_try='test -s conftest.$ac_objext'
14630   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14631   (eval $ac_try) 2>&5
14632   ac_status=$?
14633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14634   (exit $ac_status); }; }; then
14635   ac_hi=-1 ac_mid=-1
14636   while :; do
14637     cat >conftest.$ac_ext <<_ACEOF
14638 /* confdefs.h.  */
14639 _ACEOF
14640 cat confdefs.h >>conftest.$ac_ext
14641 cat >>conftest.$ac_ext <<_ACEOF
14642 /* end confdefs.h.  */
14643 $ac_includes_default
14644 int
14645 main ()
14646 {
14647 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
14648 test_array [0] = 0
14649
14650   ;
14651   return 0;
14652 }
14653 _ACEOF
14654 rm -f conftest.$ac_objext
14655 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14656   (eval $ac_compile) 2>conftest.er1
14657   ac_status=$?
14658   grep -v '^ *+' conftest.er1 >conftest.err
14659   rm -f conftest.er1
14660   cat conftest.err >&5
14661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14662   (exit $ac_status); } &&
14663          { ac_try='test -z "$ac_c_werror_flag"
14664                          || test ! -s conftest.err'
14665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14666   (eval $ac_try) 2>&5
14667   ac_status=$?
14668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14669   (exit $ac_status); }; } &&
14670          { ac_try='test -s conftest.$ac_objext'
14671   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14672   (eval $ac_try) 2>&5
14673   ac_status=$?
14674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14675   (exit $ac_status); }; }; then
14676   ac_lo=$ac_mid; break
14677 else
14678   echo "$as_me: failed program was:" >&5
14679 sed 's/^/| /' conftest.$ac_ext >&5
14680
14681 ac_hi=`expr '(' $ac_mid ')' - 1`
14682                        if test $ac_mid -le $ac_hi; then
14683                          ac_lo= ac_hi=
14684                          break
14685                        fi
14686                        ac_mid=`expr 2 '*' $ac_mid`
14687 fi
14688 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14689   done
14690 else
14691   echo "$as_me: failed program was:" >&5
14692 sed 's/^/| /' conftest.$ac_ext >&5
14693
14694 ac_lo= ac_hi=
14695 fi
14696 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14697 fi
14698 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14699 # Binary search between lo and hi bounds.
14700 while test "x$ac_lo" != "x$ac_hi"; do
14701   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14702   cat >conftest.$ac_ext <<_ACEOF
14703 /* confdefs.h.  */
14704 _ACEOF
14705 cat confdefs.h >>conftest.$ac_ext
14706 cat >>conftest.$ac_ext <<_ACEOF
14707 /* end confdefs.h.  */
14708 $ac_includes_default
14709 int
14710 main ()
14711 {
14712 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
14713 test_array [0] = 0
14714
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>conftest.er1
14722   ac_status=$?
14723   grep -v '^ *+' conftest.er1 >conftest.err
14724   rm -f conftest.er1
14725   cat conftest.err >&5
14726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14727   (exit $ac_status); } &&
14728          { ac_try='test -z "$ac_c_werror_flag"
14729                          || test ! -s conftest.err'
14730   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14731   (eval $ac_try) 2>&5
14732   ac_status=$?
14733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14734   (exit $ac_status); }; } &&
14735          { ac_try='test -s conftest.$ac_objext'
14736   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14737   (eval $ac_try) 2>&5
14738   ac_status=$?
14739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14740   (exit $ac_status); }; }; then
14741   ac_hi=$ac_mid
14742 else
14743   echo "$as_me: failed program was:" >&5
14744 sed 's/^/| /' conftest.$ac_ext >&5
14745
14746 ac_lo=`expr '(' $ac_mid ')' + 1`
14747 fi
14748 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14749 done
14750 case $ac_lo in
14751 ?*) ac_cv_sizeof_char=$ac_lo;;
14752 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14753 See \`config.log' for more details." >&5
14754 echo "$as_me: error: cannot compute sizeof (char), 77
14755 See \`config.log' for more details." >&2;}
14756    { (exit 1); exit 1; }; } ;;
14757 esac
14758 else
14759   if test "$cross_compiling" = yes; then
14760   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14761 See \`config.log' for more details." >&5
14762 echo "$as_me: error: cannot run test program while cross compiling
14763 See \`config.log' for more details." >&2;}
14764    { (exit 1); exit 1; }; }
14765 else
14766   cat >conftest.$ac_ext <<_ACEOF
14767 /* confdefs.h.  */
14768 _ACEOF
14769 cat confdefs.h >>conftest.$ac_ext
14770 cat >>conftest.$ac_ext <<_ACEOF
14771 /* end confdefs.h.  */
14772 $ac_includes_default
14773 long longval () { return (long) (sizeof (char)); }
14774 unsigned long ulongval () { return (long) (sizeof (char)); }
14775 #include <stdio.h>
14776 #include <stdlib.h>
14777 int
14778 main ()
14779 {
14780
14781   FILE *f = fopen ("conftest.val", "w");
14782   if (! f)
14783     exit (1);
14784   if (((long) (sizeof (char))) < 0)
14785     {
14786       long i = longval ();
14787       if (i != ((long) (sizeof (char))))
14788         exit (1);
14789       fprintf (f, "%ld\n", i);
14790     }
14791   else
14792     {
14793       unsigned long i = ulongval ();
14794       if (i != ((long) (sizeof (char))))
14795         exit (1);
14796       fprintf (f, "%lu\n", i);
14797     }
14798   exit (ferror (f) || fclose (f) != 0);
14799
14800   ;
14801   return 0;
14802 }
14803 _ACEOF
14804 rm -f conftest$ac_exeext
14805 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14806   (eval $ac_link) 2>&5
14807   ac_status=$?
14808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14809   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14811   (eval $ac_try) 2>&5
14812   ac_status=$?
14813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14814   (exit $ac_status); }; }; then
14815   ac_cv_sizeof_char=`cat conftest.val`
14816 else
14817   echo "$as_me: program exited with status $ac_status" >&5
14818 echo "$as_me: failed program was:" >&5
14819 sed 's/^/| /' conftest.$ac_ext >&5
14820
14821 ( exit $ac_status )
14822 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14823 See \`config.log' for more details." >&5
14824 echo "$as_me: error: cannot compute sizeof (char), 77
14825 See \`config.log' for more details." >&2;}
14826    { (exit 1); exit 1; }; }
14827 fi
14828 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14829 fi
14830 fi
14831 rm -f conftest.val
14832 else
14833   ac_cv_sizeof_char=0
14834 fi
14835 fi
14836 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
14837 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
14838 cat >>confdefs.h <<_ACEOF
14839 #define SIZEOF_CHAR $ac_cv_sizeof_char
14840 _ACEOF
14841
14842
14843 echo "$as_me:$LINENO: checking for short int" >&5
14844 echo $ECHO_N "checking for short int... $ECHO_C" >&6
14845 if test "${ac_cv_type_short_int+set}" = set; then
14846   echo $ECHO_N "(cached) $ECHO_C" >&6
14847 else
14848   cat >conftest.$ac_ext <<_ACEOF
14849 /* confdefs.h.  */
14850 _ACEOF
14851 cat confdefs.h >>conftest.$ac_ext
14852 cat >>conftest.$ac_ext <<_ACEOF
14853 /* end confdefs.h.  */
14854 $ac_includes_default
14855 int
14856 main ()
14857 {
14858 if ((short int *) 0)
14859   return 0;
14860 if (sizeof (short int))
14861   return 0;
14862   ;
14863   return 0;
14864 }
14865 _ACEOF
14866 rm -f conftest.$ac_objext
14867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14868   (eval $ac_compile) 2>conftest.er1
14869   ac_status=$?
14870   grep -v '^ *+' conftest.er1 >conftest.err
14871   rm -f conftest.er1
14872   cat conftest.err >&5
14873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14874   (exit $ac_status); } &&
14875          { ac_try='test -z "$ac_c_werror_flag"
14876                          || test ! -s conftest.err'
14877   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14878   (eval $ac_try) 2>&5
14879   ac_status=$?
14880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14881   (exit $ac_status); }; } &&
14882          { ac_try='test -s conftest.$ac_objext'
14883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14884   (eval $ac_try) 2>&5
14885   ac_status=$?
14886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14887   (exit $ac_status); }; }; then
14888   ac_cv_type_short_int=yes
14889 else
14890   echo "$as_me: failed program was:" >&5
14891 sed 's/^/| /' conftest.$ac_ext >&5
14892
14893 ac_cv_type_short_int=no
14894 fi
14895 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14896 fi
14897 echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
14898 echo "${ECHO_T}$ac_cv_type_short_int" >&6
14899
14900 echo "$as_me:$LINENO: checking size of short int" >&5
14901 echo $ECHO_N "checking size of short int... $ECHO_C" >&6
14902 if test "${ac_cv_sizeof_short_int+set}" = set; then
14903   echo $ECHO_N "(cached) $ECHO_C" >&6
14904 else
14905   if test "$ac_cv_type_short_int" = yes; then
14906   # The cast to unsigned long works around a bug in the HP C Compiler
14907   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14908   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14909   # This bug is HP SR number 8606223364.
14910   if test "$cross_compiling" = yes; then
14911   # Depending upon the size, compute the lo and hi bounds.
14912 cat >conftest.$ac_ext <<_ACEOF
14913 /* confdefs.h.  */
14914 _ACEOF
14915 cat confdefs.h >>conftest.$ac_ext
14916 cat >>conftest.$ac_ext <<_ACEOF
14917 /* end confdefs.h.  */
14918 $ac_includes_default
14919 int
14920 main ()
14921 {
14922 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= 0)];
14923 test_array [0] = 0
14924
14925   ;
14926   return 0;
14927 }
14928 _ACEOF
14929 rm -f conftest.$ac_objext
14930 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14931   (eval $ac_compile) 2>conftest.er1
14932   ac_status=$?
14933   grep -v '^ *+' conftest.er1 >conftest.err
14934   rm -f conftest.er1
14935   cat conftest.err >&5
14936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14937   (exit $ac_status); } &&
14938          { ac_try='test -z "$ac_c_werror_flag"
14939                          || test ! -s conftest.err'
14940   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14941   (eval $ac_try) 2>&5
14942   ac_status=$?
14943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14944   (exit $ac_status); }; } &&
14945          { ac_try='test -s conftest.$ac_objext'
14946   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14947   (eval $ac_try) 2>&5
14948   ac_status=$?
14949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14950   (exit $ac_status); }; }; then
14951   ac_lo=0 ac_mid=0
14952   while :; do
14953     cat >conftest.$ac_ext <<_ACEOF
14954 /* confdefs.h.  */
14955 _ACEOF
14956 cat confdefs.h >>conftest.$ac_ext
14957 cat >>conftest.$ac_ext <<_ACEOF
14958 /* end confdefs.h.  */
14959 $ac_includes_default
14960 int
14961 main ()
14962 {
14963 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
14964 test_array [0] = 0
14965
14966   ;
14967   return 0;
14968 }
14969 _ACEOF
14970 rm -f conftest.$ac_objext
14971 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14972   (eval $ac_compile) 2>conftest.er1
14973   ac_status=$?
14974   grep -v '^ *+' conftest.er1 >conftest.err
14975   rm -f conftest.er1
14976   cat conftest.err >&5
14977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14978   (exit $ac_status); } &&
14979          { ac_try='test -z "$ac_c_werror_flag"
14980                          || test ! -s conftest.err'
14981   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14982   (eval $ac_try) 2>&5
14983   ac_status=$?
14984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14985   (exit $ac_status); }; } &&
14986          { ac_try='test -s conftest.$ac_objext'
14987   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14988   (eval $ac_try) 2>&5
14989   ac_status=$?
14990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14991   (exit $ac_status); }; }; then
14992   ac_hi=$ac_mid; break
14993 else
14994   echo "$as_me: failed program was:" >&5
14995 sed 's/^/| /' conftest.$ac_ext >&5
14996
14997 ac_lo=`expr $ac_mid + 1`
14998                     if test $ac_lo -le $ac_mid; then
14999                       ac_lo= ac_hi=
15000                       break
15001                     fi
15002                     ac_mid=`expr 2 '*' $ac_mid + 1`
15003 fi
15004 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15005   done
15006 else
15007   echo "$as_me: failed program was:" >&5
15008 sed 's/^/| /' conftest.$ac_ext >&5
15009
15010 cat >conftest.$ac_ext <<_ACEOF
15011 /* confdefs.h.  */
15012 _ACEOF
15013 cat confdefs.h >>conftest.$ac_ext
15014 cat >>conftest.$ac_ext <<_ACEOF
15015 /* end confdefs.h.  */
15016 $ac_includes_default
15017 int
15018 main ()
15019 {
15020 static int test_array [1 - 2 * !(((long) (sizeof (short int))) < 0)];
15021 test_array [0] = 0
15022
15023   ;
15024   return 0;
15025 }
15026 _ACEOF
15027 rm -f conftest.$ac_objext
15028 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15029   (eval $ac_compile) 2>conftest.er1
15030   ac_status=$?
15031   grep -v '^ *+' conftest.er1 >conftest.err
15032   rm -f conftest.er1
15033   cat conftest.err >&5
15034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15035   (exit $ac_status); } &&
15036          { ac_try='test -z "$ac_c_werror_flag"
15037                          || test ! -s conftest.err'
15038   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15039   (eval $ac_try) 2>&5
15040   ac_status=$?
15041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15042   (exit $ac_status); }; } &&
15043          { ac_try='test -s conftest.$ac_objext'
15044   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15045   (eval $ac_try) 2>&5
15046   ac_status=$?
15047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15048   (exit $ac_status); }; }; then
15049   ac_hi=-1 ac_mid=-1
15050   while :; do
15051     cat >conftest.$ac_ext <<_ACEOF
15052 /* confdefs.h.  */
15053 _ACEOF
15054 cat confdefs.h >>conftest.$ac_ext
15055 cat >>conftest.$ac_ext <<_ACEOF
15056 /* end confdefs.h.  */
15057 $ac_includes_default
15058 int
15059 main ()
15060 {
15061 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= $ac_mid)];
15062 test_array [0] = 0
15063
15064   ;
15065   return 0;
15066 }
15067 _ACEOF
15068 rm -f conftest.$ac_objext
15069 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15070   (eval $ac_compile) 2>conftest.er1
15071   ac_status=$?
15072   grep -v '^ *+' conftest.er1 >conftest.err
15073   rm -f conftest.er1
15074   cat conftest.err >&5
15075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15076   (exit $ac_status); } &&
15077          { ac_try='test -z "$ac_c_werror_flag"
15078                          || test ! -s conftest.err'
15079   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15080   (eval $ac_try) 2>&5
15081   ac_status=$?
15082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15083   (exit $ac_status); }; } &&
15084          { ac_try='test -s conftest.$ac_objext'
15085   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15086   (eval $ac_try) 2>&5
15087   ac_status=$?
15088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15089   (exit $ac_status); }; }; then
15090   ac_lo=$ac_mid; break
15091 else
15092   echo "$as_me: failed program was:" >&5
15093 sed 's/^/| /' conftest.$ac_ext >&5
15094
15095 ac_hi=`expr '(' $ac_mid ')' - 1`
15096                        if test $ac_mid -le $ac_hi; then
15097                          ac_lo= ac_hi=
15098                          break
15099                        fi
15100                        ac_mid=`expr 2 '*' $ac_mid`
15101 fi
15102 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15103   done
15104 else
15105   echo "$as_me: failed program was:" >&5
15106 sed 's/^/| /' conftest.$ac_ext >&5
15107
15108 ac_lo= ac_hi=
15109 fi
15110 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15111 fi
15112 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15113 # Binary search between lo and hi bounds.
15114 while test "x$ac_lo" != "x$ac_hi"; do
15115   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15116   cat >conftest.$ac_ext <<_ACEOF
15117 /* confdefs.h.  */
15118 _ACEOF
15119 cat confdefs.h >>conftest.$ac_ext
15120 cat >>conftest.$ac_ext <<_ACEOF
15121 /* end confdefs.h.  */
15122 $ac_includes_default
15123 int
15124 main ()
15125 {
15126 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
15127 test_array [0] = 0
15128
15129   ;
15130   return 0;
15131 }
15132 _ACEOF
15133 rm -f conftest.$ac_objext
15134 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15135   (eval $ac_compile) 2>conftest.er1
15136   ac_status=$?
15137   grep -v '^ *+' conftest.er1 >conftest.err
15138   rm -f conftest.er1
15139   cat conftest.err >&5
15140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15141   (exit $ac_status); } &&
15142          { ac_try='test -z "$ac_c_werror_flag"
15143                          || test ! -s conftest.err'
15144   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15145   (eval $ac_try) 2>&5
15146   ac_status=$?
15147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15148   (exit $ac_status); }; } &&
15149          { ac_try='test -s conftest.$ac_objext'
15150   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15151   (eval $ac_try) 2>&5
15152   ac_status=$?
15153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15154   (exit $ac_status); }; }; then
15155   ac_hi=$ac_mid
15156 else
15157   echo "$as_me: failed program was:" >&5
15158 sed 's/^/| /' conftest.$ac_ext >&5
15159
15160 ac_lo=`expr '(' $ac_mid ')' + 1`
15161 fi
15162 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15163 done
15164 case $ac_lo in
15165 ?*) ac_cv_sizeof_short_int=$ac_lo;;
15166 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
15167 See \`config.log' for more details." >&5
15168 echo "$as_me: error: cannot compute sizeof (short int), 77
15169 See \`config.log' for more details." >&2;}
15170    { (exit 1); exit 1; }; } ;;
15171 esac
15172 else
15173   if test "$cross_compiling" = yes; then
15174   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15175 See \`config.log' for more details." >&5
15176 echo "$as_me: error: cannot run test program while cross compiling
15177 See \`config.log' for more details." >&2;}
15178    { (exit 1); exit 1; }; }
15179 else
15180   cat >conftest.$ac_ext <<_ACEOF
15181 /* confdefs.h.  */
15182 _ACEOF
15183 cat confdefs.h >>conftest.$ac_ext
15184 cat >>conftest.$ac_ext <<_ACEOF
15185 /* end confdefs.h.  */
15186 $ac_includes_default
15187 long longval () { return (long) (sizeof (short int)); }
15188 unsigned long ulongval () { return (long) (sizeof (short int)); }
15189 #include <stdio.h>
15190 #include <stdlib.h>
15191 int
15192 main ()
15193 {
15194
15195   FILE *f = fopen ("conftest.val", "w");
15196   if (! f)
15197     exit (1);
15198   if (((long) (sizeof (short int))) < 0)
15199     {
15200       long i = longval ();
15201       if (i != ((long) (sizeof (short int))))
15202         exit (1);
15203       fprintf (f, "%ld\n", i);
15204     }
15205   else
15206     {
15207       unsigned long i = ulongval ();
15208       if (i != ((long) (sizeof (short int))))
15209         exit (1);
15210       fprintf (f, "%lu\n", i);
15211     }
15212   exit (ferror (f) || fclose (f) != 0);
15213
15214   ;
15215   return 0;
15216 }
15217 _ACEOF
15218 rm -f conftest$ac_exeext
15219 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15220   (eval $ac_link) 2>&5
15221   ac_status=$?
15222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15223   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15224   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15225   (eval $ac_try) 2>&5
15226   ac_status=$?
15227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15228   (exit $ac_status); }; }; then
15229   ac_cv_sizeof_short_int=`cat conftest.val`
15230 else
15231   echo "$as_me: program exited with status $ac_status" >&5
15232 echo "$as_me: failed program was:" >&5
15233 sed 's/^/| /' conftest.$ac_ext >&5
15234
15235 ( exit $ac_status )
15236 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
15237 See \`config.log' for more details." >&5
15238 echo "$as_me: error: cannot compute sizeof (short int), 77
15239 See \`config.log' for more details." >&2;}
15240    { (exit 1); exit 1; }; }
15241 fi
15242 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15243 fi
15244 fi
15245 rm -f conftest.val
15246 else
15247   ac_cv_sizeof_short_int=0
15248 fi
15249 fi
15250 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
15251 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6
15252 cat >>confdefs.h <<_ACEOF
15253 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
15254 _ACEOF
15255
15256
15257 echo "$as_me:$LINENO: checking for int" >&5
15258 echo $ECHO_N "checking for int... $ECHO_C" >&6
15259 if test "${ac_cv_type_int+set}" = set; then
15260   echo $ECHO_N "(cached) $ECHO_C" >&6
15261 else
15262   cat >conftest.$ac_ext <<_ACEOF
15263 /* confdefs.h.  */
15264 _ACEOF
15265 cat confdefs.h >>conftest.$ac_ext
15266 cat >>conftest.$ac_ext <<_ACEOF
15267 /* end confdefs.h.  */
15268 $ac_includes_default
15269 int
15270 main ()
15271 {
15272 if ((int *) 0)
15273   return 0;
15274 if (sizeof (int))
15275   return 0;
15276   ;
15277   return 0;
15278 }
15279 _ACEOF
15280 rm -f conftest.$ac_objext
15281 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15282   (eval $ac_compile) 2>conftest.er1
15283   ac_status=$?
15284   grep -v '^ *+' conftest.er1 >conftest.err
15285   rm -f conftest.er1
15286   cat conftest.err >&5
15287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15288   (exit $ac_status); } &&
15289          { ac_try='test -z "$ac_c_werror_flag"
15290                          || test ! -s conftest.err'
15291   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15292   (eval $ac_try) 2>&5
15293   ac_status=$?
15294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15295   (exit $ac_status); }; } &&
15296          { ac_try='test -s conftest.$ac_objext'
15297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15298   (eval $ac_try) 2>&5
15299   ac_status=$?
15300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15301   (exit $ac_status); }; }; then
15302   ac_cv_type_int=yes
15303 else
15304   echo "$as_me: failed program was:" >&5
15305 sed 's/^/| /' conftest.$ac_ext >&5
15306
15307 ac_cv_type_int=no
15308 fi
15309 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15310 fi
15311 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
15312 echo "${ECHO_T}$ac_cv_type_int" >&6
15313
15314 echo "$as_me:$LINENO: checking size of int" >&5
15315 echo $ECHO_N "checking size of int... $ECHO_C" >&6
15316 if test "${ac_cv_sizeof_int+set}" = set; then
15317   echo $ECHO_N "(cached) $ECHO_C" >&6
15318 else
15319   if test "$ac_cv_type_int" = yes; then
15320   # The cast to unsigned long works around a bug in the HP C Compiler
15321   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15322   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15323   # This bug is HP SR number 8606223364.
15324   if test "$cross_compiling" = yes; then
15325   # Depending upon the size, compute the lo and hi bounds.
15326 cat >conftest.$ac_ext <<_ACEOF
15327 /* confdefs.h.  */
15328 _ACEOF
15329 cat confdefs.h >>conftest.$ac_ext
15330 cat >>conftest.$ac_ext <<_ACEOF
15331 /* end confdefs.h.  */
15332 $ac_includes_default
15333 int
15334 main ()
15335 {
15336 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
15337 test_array [0] = 0
15338
15339   ;
15340   return 0;
15341 }
15342 _ACEOF
15343 rm -f conftest.$ac_objext
15344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15345   (eval $ac_compile) 2>conftest.er1
15346   ac_status=$?
15347   grep -v '^ *+' conftest.er1 >conftest.err
15348   rm -f conftest.er1
15349   cat conftest.err >&5
15350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15351   (exit $ac_status); } &&
15352          { ac_try='test -z "$ac_c_werror_flag"
15353                          || test ! -s conftest.err'
15354   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15355   (eval $ac_try) 2>&5
15356   ac_status=$?
15357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15358   (exit $ac_status); }; } &&
15359          { ac_try='test -s conftest.$ac_objext'
15360   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15361   (eval $ac_try) 2>&5
15362   ac_status=$?
15363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15364   (exit $ac_status); }; }; then
15365   ac_lo=0 ac_mid=0
15366   while :; do
15367     cat >conftest.$ac_ext <<_ACEOF
15368 /* confdefs.h.  */
15369 _ACEOF
15370 cat confdefs.h >>conftest.$ac_ext
15371 cat >>conftest.$ac_ext <<_ACEOF
15372 /* end confdefs.h.  */
15373 $ac_includes_default
15374 int
15375 main ()
15376 {
15377 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15378 test_array [0] = 0
15379
15380   ;
15381   return 0;
15382 }
15383 _ACEOF
15384 rm -f conftest.$ac_objext
15385 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15386   (eval $ac_compile) 2>conftest.er1
15387   ac_status=$?
15388   grep -v '^ *+' conftest.er1 >conftest.err
15389   rm -f conftest.er1
15390   cat conftest.err >&5
15391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15392   (exit $ac_status); } &&
15393          { ac_try='test -z "$ac_c_werror_flag"
15394                          || test ! -s conftest.err'
15395   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15396   (eval $ac_try) 2>&5
15397   ac_status=$?
15398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15399   (exit $ac_status); }; } &&
15400          { ac_try='test -s conftest.$ac_objext'
15401   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15402   (eval $ac_try) 2>&5
15403   ac_status=$?
15404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15405   (exit $ac_status); }; }; then
15406   ac_hi=$ac_mid; break
15407 else
15408   echo "$as_me: failed program was:" >&5
15409 sed 's/^/| /' conftest.$ac_ext >&5
15410
15411 ac_lo=`expr $ac_mid + 1`
15412                     if test $ac_lo -le $ac_mid; then
15413                       ac_lo= ac_hi=
15414                       break
15415                     fi
15416                     ac_mid=`expr 2 '*' $ac_mid + 1`
15417 fi
15418 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15419   done
15420 else
15421   echo "$as_me: failed program was:" >&5
15422 sed 's/^/| /' conftest.$ac_ext >&5
15423
15424 cat >conftest.$ac_ext <<_ACEOF
15425 /* confdefs.h.  */
15426 _ACEOF
15427 cat confdefs.h >>conftest.$ac_ext
15428 cat >>conftest.$ac_ext <<_ACEOF
15429 /* end confdefs.h.  */
15430 $ac_includes_default
15431 int
15432 main ()
15433 {
15434 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
15435 test_array [0] = 0
15436
15437   ;
15438   return 0;
15439 }
15440 _ACEOF
15441 rm -f conftest.$ac_objext
15442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15443   (eval $ac_compile) 2>conftest.er1
15444   ac_status=$?
15445   grep -v '^ *+' conftest.er1 >conftest.err
15446   rm -f conftest.er1
15447   cat conftest.err >&5
15448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15449   (exit $ac_status); } &&
15450          { ac_try='test -z "$ac_c_werror_flag"
15451                          || test ! -s conftest.err'
15452   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15453   (eval $ac_try) 2>&5
15454   ac_status=$?
15455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15456   (exit $ac_status); }; } &&
15457          { ac_try='test -s conftest.$ac_objext'
15458   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15459   (eval $ac_try) 2>&5
15460   ac_status=$?
15461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15462   (exit $ac_status); }; }; then
15463   ac_hi=-1 ac_mid=-1
15464   while :; do
15465     cat >conftest.$ac_ext <<_ACEOF
15466 /* confdefs.h.  */
15467 _ACEOF
15468 cat confdefs.h >>conftest.$ac_ext
15469 cat >>conftest.$ac_ext <<_ACEOF
15470 /* end confdefs.h.  */
15471 $ac_includes_default
15472 int
15473 main ()
15474 {
15475 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
15476 test_array [0] = 0
15477
15478   ;
15479   return 0;
15480 }
15481 _ACEOF
15482 rm -f conftest.$ac_objext
15483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15484   (eval $ac_compile) 2>conftest.er1
15485   ac_status=$?
15486   grep -v '^ *+' conftest.er1 >conftest.err
15487   rm -f conftest.er1
15488   cat conftest.err >&5
15489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15490   (exit $ac_status); } &&
15491          { ac_try='test -z "$ac_c_werror_flag"
15492                          || test ! -s conftest.err'
15493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15494   (eval $ac_try) 2>&5
15495   ac_status=$?
15496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15497   (exit $ac_status); }; } &&
15498          { ac_try='test -s conftest.$ac_objext'
15499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15500   (eval $ac_try) 2>&5
15501   ac_status=$?
15502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15503   (exit $ac_status); }; }; then
15504   ac_lo=$ac_mid; break
15505 else
15506   echo "$as_me: failed program was:" >&5
15507 sed 's/^/| /' conftest.$ac_ext >&5
15508
15509 ac_hi=`expr '(' $ac_mid ')' - 1`
15510                        if test $ac_mid -le $ac_hi; then
15511                          ac_lo= ac_hi=
15512                          break
15513                        fi
15514                        ac_mid=`expr 2 '*' $ac_mid`
15515 fi
15516 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15517   done
15518 else
15519   echo "$as_me: failed program was:" >&5
15520 sed 's/^/| /' conftest.$ac_ext >&5
15521
15522 ac_lo= ac_hi=
15523 fi
15524 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15525 fi
15526 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15527 # Binary search between lo and hi bounds.
15528 while test "x$ac_lo" != "x$ac_hi"; do
15529   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15530   cat >conftest.$ac_ext <<_ACEOF
15531 /* confdefs.h.  */
15532 _ACEOF
15533 cat confdefs.h >>conftest.$ac_ext
15534 cat >>conftest.$ac_ext <<_ACEOF
15535 /* end confdefs.h.  */
15536 $ac_includes_default
15537 int
15538 main ()
15539 {
15540 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15541 test_array [0] = 0
15542
15543   ;
15544   return 0;
15545 }
15546 _ACEOF
15547 rm -f conftest.$ac_objext
15548 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15549   (eval $ac_compile) 2>conftest.er1
15550   ac_status=$?
15551   grep -v '^ *+' conftest.er1 >conftest.err
15552   rm -f conftest.er1
15553   cat conftest.err >&5
15554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15555   (exit $ac_status); } &&
15556          { ac_try='test -z "$ac_c_werror_flag"
15557                          || test ! -s conftest.err'
15558   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15559   (eval $ac_try) 2>&5
15560   ac_status=$?
15561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15562   (exit $ac_status); }; } &&
15563          { ac_try='test -s conftest.$ac_objext'
15564   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15565   (eval $ac_try) 2>&5
15566   ac_status=$?
15567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15568   (exit $ac_status); }; }; then
15569   ac_hi=$ac_mid
15570 else
15571   echo "$as_me: failed program was:" >&5
15572 sed 's/^/| /' conftest.$ac_ext >&5
15573
15574 ac_lo=`expr '(' $ac_mid ')' + 1`
15575 fi
15576 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15577 done
15578 case $ac_lo in
15579 ?*) ac_cv_sizeof_int=$ac_lo;;
15580 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15581 See \`config.log' for more details." >&5
15582 echo "$as_me: error: cannot compute sizeof (int), 77
15583 See \`config.log' for more details." >&2;}
15584    { (exit 1); exit 1; }; } ;;
15585 esac
15586 else
15587   if test "$cross_compiling" = yes; then
15588   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15589 See \`config.log' for more details." >&5
15590 echo "$as_me: error: cannot run test program while cross compiling
15591 See \`config.log' for more details." >&2;}
15592    { (exit 1); exit 1; }; }
15593 else
15594   cat >conftest.$ac_ext <<_ACEOF
15595 /* confdefs.h.  */
15596 _ACEOF
15597 cat confdefs.h >>conftest.$ac_ext
15598 cat >>conftest.$ac_ext <<_ACEOF
15599 /* end confdefs.h.  */
15600 $ac_includes_default
15601 long longval () { return (long) (sizeof (int)); }
15602 unsigned long ulongval () { return (long) (sizeof (int)); }
15603 #include <stdio.h>
15604 #include <stdlib.h>
15605 int
15606 main ()
15607 {
15608
15609   FILE *f = fopen ("conftest.val", "w");
15610   if (! f)
15611     exit (1);
15612   if (((long) (sizeof (int))) < 0)
15613     {
15614       long i = longval ();
15615       if (i != ((long) (sizeof (int))))
15616         exit (1);
15617       fprintf (f, "%ld\n", i);
15618     }
15619   else
15620     {
15621       unsigned long i = ulongval ();
15622       if (i != ((long) (sizeof (int))))
15623         exit (1);
15624       fprintf (f, "%lu\n", i);
15625     }
15626   exit (ferror (f) || fclose (f) != 0);
15627
15628   ;
15629   return 0;
15630 }
15631 _ACEOF
15632 rm -f conftest$ac_exeext
15633 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15634   (eval $ac_link) 2>&5
15635   ac_status=$?
15636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15637   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15638   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15639   (eval $ac_try) 2>&5
15640   ac_status=$?
15641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15642   (exit $ac_status); }; }; then
15643   ac_cv_sizeof_int=`cat conftest.val`
15644 else
15645   echo "$as_me: program exited with status $ac_status" >&5
15646 echo "$as_me: failed program was:" >&5
15647 sed 's/^/| /' conftest.$ac_ext >&5
15648
15649 ( exit $ac_status )
15650 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15651 See \`config.log' for more details." >&5
15652 echo "$as_me: error: cannot compute sizeof (int), 77
15653 See \`config.log' for more details." >&2;}
15654    { (exit 1); exit 1; }; }
15655 fi
15656 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15657 fi
15658 fi
15659 rm -f conftest.val
15660 else
15661   ac_cv_sizeof_int=0
15662 fi
15663 fi
15664 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
15665 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
15666 cat >>confdefs.h <<_ACEOF
15667 #define SIZEOF_INT $ac_cv_sizeof_int
15668 _ACEOF
15669
15670
15671 echo "$as_me:$LINENO: checking for long int" >&5
15672 echo $ECHO_N "checking for long int... $ECHO_C" >&6
15673 if test "${ac_cv_type_long_int+set}" = set; then
15674   echo $ECHO_N "(cached) $ECHO_C" >&6
15675 else
15676   cat >conftest.$ac_ext <<_ACEOF
15677 /* confdefs.h.  */
15678 _ACEOF
15679 cat confdefs.h >>conftest.$ac_ext
15680 cat >>conftest.$ac_ext <<_ACEOF
15681 /* end confdefs.h.  */
15682 $ac_includes_default
15683 int
15684 main ()
15685 {
15686 if ((long int *) 0)
15687   return 0;
15688 if (sizeof (long int))
15689   return 0;
15690   ;
15691   return 0;
15692 }
15693 _ACEOF
15694 rm -f conftest.$ac_objext
15695 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15696   (eval $ac_compile) 2>conftest.er1
15697   ac_status=$?
15698   grep -v '^ *+' conftest.er1 >conftest.err
15699   rm -f conftest.er1
15700   cat conftest.err >&5
15701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15702   (exit $ac_status); } &&
15703          { ac_try='test -z "$ac_c_werror_flag"
15704                          || test ! -s conftest.err'
15705   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15706   (eval $ac_try) 2>&5
15707   ac_status=$?
15708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15709   (exit $ac_status); }; } &&
15710          { ac_try='test -s conftest.$ac_objext'
15711   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15712   (eval $ac_try) 2>&5
15713   ac_status=$?
15714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15715   (exit $ac_status); }; }; then
15716   ac_cv_type_long_int=yes
15717 else
15718   echo "$as_me: failed program was:" >&5
15719 sed 's/^/| /' conftest.$ac_ext >&5
15720
15721 ac_cv_type_long_int=no
15722 fi
15723 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15724 fi
15725 echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
15726 echo "${ECHO_T}$ac_cv_type_long_int" >&6
15727
15728 echo "$as_me:$LINENO: checking size of long int" >&5
15729 echo $ECHO_N "checking size of long int... $ECHO_C" >&6
15730 if test "${ac_cv_sizeof_long_int+set}" = set; then
15731   echo $ECHO_N "(cached) $ECHO_C" >&6
15732 else
15733   if test "$ac_cv_type_long_int" = yes; then
15734   # The cast to unsigned long works around a bug in the HP C Compiler
15735   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15736   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15737   # This bug is HP SR number 8606223364.
15738   if test "$cross_compiling" = yes; then
15739   # Depending upon the size, compute the lo and hi bounds.
15740 cat >conftest.$ac_ext <<_ACEOF
15741 /* confdefs.h.  */
15742 _ACEOF
15743 cat confdefs.h >>conftest.$ac_ext
15744 cat >>conftest.$ac_ext <<_ACEOF
15745 /* end confdefs.h.  */
15746 $ac_includes_default
15747 int
15748 main ()
15749 {
15750 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= 0)];
15751 test_array [0] = 0
15752
15753   ;
15754   return 0;
15755 }
15756 _ACEOF
15757 rm -f conftest.$ac_objext
15758 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15759   (eval $ac_compile) 2>conftest.er1
15760   ac_status=$?
15761   grep -v '^ *+' conftest.er1 >conftest.err
15762   rm -f conftest.er1
15763   cat conftest.err >&5
15764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15765   (exit $ac_status); } &&
15766          { ac_try='test -z "$ac_c_werror_flag"
15767                          || test ! -s conftest.err'
15768   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15769   (eval $ac_try) 2>&5
15770   ac_status=$?
15771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15772   (exit $ac_status); }; } &&
15773          { ac_try='test -s conftest.$ac_objext'
15774   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15775   (eval $ac_try) 2>&5
15776   ac_status=$?
15777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15778   (exit $ac_status); }; }; then
15779   ac_lo=0 ac_mid=0
15780   while :; do
15781     cat >conftest.$ac_ext <<_ACEOF
15782 /* confdefs.h.  */
15783 _ACEOF
15784 cat confdefs.h >>conftest.$ac_ext
15785 cat >>conftest.$ac_ext <<_ACEOF
15786 /* end confdefs.h.  */
15787 $ac_includes_default
15788 int
15789 main ()
15790 {
15791 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
15792 test_array [0] = 0
15793
15794   ;
15795   return 0;
15796 }
15797 _ACEOF
15798 rm -f conftest.$ac_objext
15799 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15800   (eval $ac_compile) 2>conftest.er1
15801   ac_status=$?
15802   grep -v '^ *+' conftest.er1 >conftest.err
15803   rm -f conftest.er1
15804   cat conftest.err >&5
15805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15806   (exit $ac_status); } &&
15807          { ac_try='test -z "$ac_c_werror_flag"
15808                          || test ! -s conftest.err'
15809   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15810   (eval $ac_try) 2>&5
15811   ac_status=$?
15812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15813   (exit $ac_status); }; } &&
15814          { ac_try='test -s conftest.$ac_objext'
15815   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15816   (eval $ac_try) 2>&5
15817   ac_status=$?
15818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15819   (exit $ac_status); }; }; then
15820   ac_hi=$ac_mid; break
15821 else
15822   echo "$as_me: failed program was:" >&5
15823 sed 's/^/| /' conftest.$ac_ext >&5
15824
15825 ac_lo=`expr $ac_mid + 1`
15826                     if test $ac_lo -le $ac_mid; then
15827                       ac_lo= ac_hi=
15828                       break
15829                     fi
15830                     ac_mid=`expr 2 '*' $ac_mid + 1`
15831 fi
15832 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15833   done
15834 else
15835   echo "$as_me: failed program was:" >&5
15836 sed 's/^/| /' conftest.$ac_ext >&5
15837
15838 cat >conftest.$ac_ext <<_ACEOF
15839 /* confdefs.h.  */
15840 _ACEOF
15841 cat confdefs.h >>conftest.$ac_ext
15842 cat >>conftest.$ac_ext <<_ACEOF
15843 /* end confdefs.h.  */
15844 $ac_includes_default
15845 int
15846 main ()
15847 {
15848 static int test_array [1 - 2 * !(((long) (sizeof (long int))) < 0)];
15849 test_array [0] = 0
15850
15851   ;
15852   return 0;
15853 }
15854 _ACEOF
15855 rm -f conftest.$ac_objext
15856 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15857   (eval $ac_compile) 2>conftest.er1
15858   ac_status=$?
15859   grep -v '^ *+' conftest.er1 >conftest.err
15860   rm -f conftest.er1
15861   cat conftest.err >&5
15862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15863   (exit $ac_status); } &&
15864          { ac_try='test -z "$ac_c_werror_flag"
15865                          || test ! -s conftest.err'
15866   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15867   (eval $ac_try) 2>&5
15868   ac_status=$?
15869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15870   (exit $ac_status); }; } &&
15871          { ac_try='test -s conftest.$ac_objext'
15872   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15873   (eval $ac_try) 2>&5
15874   ac_status=$?
15875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15876   (exit $ac_status); }; }; then
15877   ac_hi=-1 ac_mid=-1
15878   while :; do
15879     cat >conftest.$ac_ext <<_ACEOF
15880 /* confdefs.h.  */
15881 _ACEOF
15882 cat confdefs.h >>conftest.$ac_ext
15883 cat >>conftest.$ac_ext <<_ACEOF
15884 /* end confdefs.h.  */
15885 $ac_includes_default
15886 int
15887 main ()
15888 {
15889 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= $ac_mid)];
15890 test_array [0] = 0
15891
15892   ;
15893   return 0;
15894 }
15895 _ACEOF
15896 rm -f conftest.$ac_objext
15897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15898   (eval $ac_compile) 2>conftest.er1
15899   ac_status=$?
15900   grep -v '^ *+' conftest.er1 >conftest.err
15901   rm -f conftest.er1
15902   cat conftest.err >&5
15903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15904   (exit $ac_status); } &&
15905          { ac_try='test -z "$ac_c_werror_flag"
15906                          || test ! -s conftest.err'
15907   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15908   (eval $ac_try) 2>&5
15909   ac_status=$?
15910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15911   (exit $ac_status); }; } &&
15912          { ac_try='test -s conftest.$ac_objext'
15913   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15914   (eval $ac_try) 2>&5
15915   ac_status=$?
15916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15917   (exit $ac_status); }; }; then
15918   ac_lo=$ac_mid; break
15919 else
15920   echo "$as_me: failed program was:" >&5
15921 sed 's/^/| /' conftest.$ac_ext >&5
15922
15923 ac_hi=`expr '(' $ac_mid ')' - 1`
15924                        if test $ac_mid -le $ac_hi; then
15925                          ac_lo= ac_hi=
15926                          break
15927                        fi
15928                        ac_mid=`expr 2 '*' $ac_mid`
15929 fi
15930 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15931   done
15932 else
15933   echo "$as_me: failed program was:" >&5
15934 sed 's/^/| /' conftest.$ac_ext >&5
15935
15936 ac_lo= ac_hi=
15937 fi
15938 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15939 fi
15940 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15941 # Binary search between lo and hi bounds.
15942 while test "x$ac_lo" != "x$ac_hi"; do
15943   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15944   cat >conftest.$ac_ext <<_ACEOF
15945 /* confdefs.h.  */
15946 _ACEOF
15947 cat confdefs.h >>conftest.$ac_ext
15948 cat >>conftest.$ac_ext <<_ACEOF
15949 /* end confdefs.h.  */
15950 $ac_includes_default
15951 int
15952 main ()
15953 {
15954 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
15955 test_array [0] = 0
15956
15957   ;
15958   return 0;
15959 }
15960 _ACEOF
15961 rm -f conftest.$ac_objext
15962 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15963   (eval $ac_compile) 2>conftest.er1
15964   ac_status=$?
15965   grep -v '^ *+' conftest.er1 >conftest.err
15966   rm -f conftest.er1
15967   cat conftest.err >&5
15968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15969   (exit $ac_status); } &&
15970          { ac_try='test -z "$ac_c_werror_flag"
15971                          || test ! -s conftest.err'
15972   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15973   (eval $ac_try) 2>&5
15974   ac_status=$?
15975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15976   (exit $ac_status); }; } &&
15977          { ac_try='test -s conftest.$ac_objext'
15978   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15979   (eval $ac_try) 2>&5
15980   ac_status=$?
15981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15982   (exit $ac_status); }; }; then
15983   ac_hi=$ac_mid
15984 else
15985   echo "$as_me: failed program was:" >&5
15986 sed 's/^/| /' conftest.$ac_ext >&5
15987
15988 ac_lo=`expr '(' $ac_mid ')' + 1`
15989 fi
15990 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15991 done
15992 case $ac_lo in
15993 ?*) ac_cv_sizeof_long_int=$ac_lo;;
15994 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
15995 See \`config.log' for more details." >&5
15996 echo "$as_me: error: cannot compute sizeof (long int), 77
15997 See \`config.log' for more details." >&2;}
15998    { (exit 1); exit 1; }; } ;;
15999 esac
16000 else
16001   if test "$cross_compiling" = yes; then
16002   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16003 See \`config.log' for more details." >&5
16004 echo "$as_me: error: cannot run test program while cross compiling
16005 See \`config.log' for more details." >&2;}
16006    { (exit 1); exit 1; }; }
16007 else
16008   cat >conftest.$ac_ext <<_ACEOF
16009 /* confdefs.h.  */
16010 _ACEOF
16011 cat confdefs.h >>conftest.$ac_ext
16012 cat >>conftest.$ac_ext <<_ACEOF
16013 /* end confdefs.h.  */
16014 $ac_includes_default
16015 long longval () { return (long) (sizeof (long int)); }
16016 unsigned long ulongval () { return (long) (sizeof (long int)); }
16017 #include <stdio.h>
16018 #include <stdlib.h>
16019 int
16020 main ()
16021 {
16022
16023   FILE *f = fopen ("conftest.val", "w");
16024   if (! f)
16025     exit (1);
16026   if (((long) (sizeof (long int))) < 0)
16027     {
16028       long i = longval ();
16029       if (i != ((long) (sizeof (long int))))
16030         exit (1);
16031       fprintf (f, "%ld\n", i);
16032     }
16033   else
16034     {
16035       unsigned long i = ulongval ();
16036       if (i != ((long) (sizeof (long int))))
16037         exit (1);
16038       fprintf (f, "%lu\n", i);
16039     }
16040   exit (ferror (f) || fclose (f) != 0);
16041
16042   ;
16043   return 0;
16044 }
16045 _ACEOF
16046 rm -f conftest$ac_exeext
16047 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16048   (eval $ac_link) 2>&5
16049   ac_status=$?
16050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16051   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16052   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16053   (eval $ac_try) 2>&5
16054   ac_status=$?
16055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16056   (exit $ac_status); }; }; then
16057   ac_cv_sizeof_long_int=`cat conftest.val`
16058 else
16059   echo "$as_me: program exited with status $ac_status" >&5
16060 echo "$as_me: failed program was:" >&5
16061 sed 's/^/| /' conftest.$ac_ext >&5
16062
16063 ( exit $ac_status )
16064 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
16065 See \`config.log' for more details." >&5
16066 echo "$as_me: error: cannot compute sizeof (long int), 77
16067 See \`config.log' for more details." >&2;}
16068    { (exit 1); exit 1; }; }
16069 fi
16070 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16071 fi
16072 fi
16073 rm -f conftest.val
16074 else
16075   ac_cv_sizeof_long_int=0
16076 fi
16077 fi
16078 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
16079 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6
16080 cat >>confdefs.h <<_ACEOF
16081 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
16082 _ACEOF
16083
16084
16085 echo "$as_me:$LINENO: checking for long long int" >&5
16086 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
16087 if test "${ac_cv_type_long_long_int+set}" = set; then
16088   echo $ECHO_N "(cached) $ECHO_C" >&6
16089 else
16090   cat >conftest.$ac_ext <<_ACEOF
16091 /* confdefs.h.  */
16092 _ACEOF
16093 cat confdefs.h >>conftest.$ac_ext
16094 cat >>conftest.$ac_ext <<_ACEOF
16095 /* end confdefs.h.  */
16096 $ac_includes_default
16097 int
16098 main ()
16099 {
16100 if ((long long int *) 0)
16101   return 0;
16102 if (sizeof (long long int))
16103   return 0;
16104   ;
16105   return 0;
16106 }
16107 _ACEOF
16108 rm -f conftest.$ac_objext
16109 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16110   (eval $ac_compile) 2>conftest.er1
16111   ac_status=$?
16112   grep -v '^ *+' conftest.er1 >conftest.err
16113   rm -f conftest.er1
16114   cat conftest.err >&5
16115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16116   (exit $ac_status); } &&
16117          { ac_try='test -z "$ac_c_werror_flag"
16118                          || test ! -s conftest.err'
16119   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16120   (eval $ac_try) 2>&5
16121   ac_status=$?
16122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16123   (exit $ac_status); }; } &&
16124          { ac_try='test -s conftest.$ac_objext'
16125   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16126   (eval $ac_try) 2>&5
16127   ac_status=$?
16128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16129   (exit $ac_status); }; }; then
16130   ac_cv_type_long_long_int=yes
16131 else
16132   echo "$as_me: failed program was:" >&5
16133 sed 's/^/| /' conftest.$ac_ext >&5
16134
16135 ac_cv_type_long_long_int=no
16136 fi
16137 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16138 fi
16139 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
16140 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
16141
16142 echo "$as_me:$LINENO: checking size of long long int" >&5
16143 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6
16144 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
16145   echo $ECHO_N "(cached) $ECHO_C" >&6
16146 else
16147   if test "$ac_cv_type_long_long_int" = yes; then
16148   # The cast to unsigned long works around a bug in the HP C Compiler
16149   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16150   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16151   # This bug is HP SR number 8606223364.
16152   if test "$cross_compiling" = yes; then
16153   # Depending upon the size, compute the lo and hi bounds.
16154 cat >conftest.$ac_ext <<_ACEOF
16155 /* confdefs.h.  */
16156 _ACEOF
16157 cat confdefs.h >>conftest.$ac_ext
16158 cat >>conftest.$ac_ext <<_ACEOF
16159 /* end confdefs.h.  */
16160 $ac_includes_default
16161 int
16162 main ()
16163 {
16164 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= 0)];
16165 test_array [0] = 0
16166
16167   ;
16168   return 0;
16169 }
16170 _ACEOF
16171 rm -f conftest.$ac_objext
16172 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16173   (eval $ac_compile) 2>conftest.er1
16174   ac_status=$?
16175   grep -v '^ *+' conftest.er1 >conftest.err
16176   rm -f conftest.er1
16177   cat conftest.err >&5
16178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16179   (exit $ac_status); } &&
16180          { ac_try='test -z "$ac_c_werror_flag"
16181                          || test ! -s conftest.err'
16182   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16183   (eval $ac_try) 2>&5
16184   ac_status=$?
16185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16186   (exit $ac_status); }; } &&
16187          { ac_try='test -s conftest.$ac_objext'
16188   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16189   (eval $ac_try) 2>&5
16190   ac_status=$?
16191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16192   (exit $ac_status); }; }; then
16193   ac_lo=0 ac_mid=0
16194   while :; do
16195     cat >conftest.$ac_ext <<_ACEOF
16196 /* confdefs.h.  */
16197 _ACEOF
16198 cat confdefs.h >>conftest.$ac_ext
16199 cat >>conftest.$ac_ext <<_ACEOF
16200 /* end confdefs.h.  */
16201 $ac_includes_default
16202 int
16203 main ()
16204 {
16205 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
16206 test_array [0] = 0
16207
16208   ;
16209   return 0;
16210 }
16211 _ACEOF
16212 rm -f conftest.$ac_objext
16213 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16214   (eval $ac_compile) 2>conftest.er1
16215   ac_status=$?
16216   grep -v '^ *+' conftest.er1 >conftest.err
16217   rm -f conftest.er1
16218   cat conftest.err >&5
16219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16220   (exit $ac_status); } &&
16221          { ac_try='test -z "$ac_c_werror_flag"
16222                          || test ! -s conftest.err'
16223   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16224   (eval $ac_try) 2>&5
16225   ac_status=$?
16226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16227   (exit $ac_status); }; } &&
16228          { ac_try='test -s conftest.$ac_objext'
16229   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16230   (eval $ac_try) 2>&5
16231   ac_status=$?
16232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16233   (exit $ac_status); }; }; then
16234   ac_hi=$ac_mid; break
16235 else
16236   echo "$as_me: failed program was:" >&5
16237 sed 's/^/| /' conftest.$ac_ext >&5
16238
16239 ac_lo=`expr $ac_mid + 1`
16240                     if test $ac_lo -le $ac_mid; then
16241                       ac_lo= ac_hi=
16242                       break
16243                     fi
16244                     ac_mid=`expr 2 '*' $ac_mid + 1`
16245 fi
16246 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16247   done
16248 else
16249   echo "$as_me: failed program was:" >&5
16250 sed 's/^/| /' conftest.$ac_ext >&5
16251
16252 cat >conftest.$ac_ext <<_ACEOF
16253 /* confdefs.h.  */
16254 _ACEOF
16255 cat confdefs.h >>conftest.$ac_ext
16256 cat >>conftest.$ac_ext <<_ACEOF
16257 /* end confdefs.h.  */
16258 $ac_includes_default
16259 int
16260 main ()
16261 {
16262 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) < 0)];
16263 test_array [0] = 0
16264
16265   ;
16266   return 0;
16267 }
16268 _ACEOF
16269 rm -f conftest.$ac_objext
16270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16271   (eval $ac_compile) 2>conftest.er1
16272   ac_status=$?
16273   grep -v '^ *+' conftest.er1 >conftest.err
16274   rm -f conftest.er1
16275   cat conftest.err >&5
16276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16277   (exit $ac_status); } &&
16278          { ac_try='test -z "$ac_c_werror_flag"
16279                          || test ! -s conftest.err'
16280   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16281   (eval $ac_try) 2>&5
16282   ac_status=$?
16283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16284   (exit $ac_status); }; } &&
16285          { ac_try='test -s conftest.$ac_objext'
16286   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16287   (eval $ac_try) 2>&5
16288   ac_status=$?
16289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16290   (exit $ac_status); }; }; then
16291   ac_hi=-1 ac_mid=-1
16292   while :; do
16293     cat >conftest.$ac_ext <<_ACEOF
16294 /* confdefs.h.  */
16295 _ACEOF
16296 cat confdefs.h >>conftest.$ac_ext
16297 cat >>conftest.$ac_ext <<_ACEOF
16298 /* end confdefs.h.  */
16299 $ac_includes_default
16300 int
16301 main ()
16302 {
16303 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= $ac_mid)];
16304 test_array [0] = 0
16305
16306   ;
16307   return 0;
16308 }
16309 _ACEOF
16310 rm -f conftest.$ac_objext
16311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16312   (eval $ac_compile) 2>conftest.er1
16313   ac_status=$?
16314   grep -v '^ *+' conftest.er1 >conftest.err
16315   rm -f conftest.er1
16316   cat conftest.err >&5
16317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16318   (exit $ac_status); } &&
16319          { ac_try='test -z "$ac_c_werror_flag"
16320                          || test ! -s conftest.err'
16321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16322   (eval $ac_try) 2>&5
16323   ac_status=$?
16324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16325   (exit $ac_status); }; } &&
16326          { ac_try='test -s conftest.$ac_objext'
16327   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16328   (eval $ac_try) 2>&5
16329   ac_status=$?
16330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16331   (exit $ac_status); }; }; then
16332   ac_lo=$ac_mid; break
16333 else
16334   echo "$as_me: failed program was:" >&5
16335 sed 's/^/| /' conftest.$ac_ext >&5
16336
16337 ac_hi=`expr '(' $ac_mid ')' - 1`
16338                        if test $ac_mid -le $ac_hi; then
16339                          ac_lo= ac_hi=
16340                          break
16341                        fi
16342                        ac_mid=`expr 2 '*' $ac_mid`
16343 fi
16344 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16345   done
16346 else
16347   echo "$as_me: failed program was:" >&5
16348 sed 's/^/| /' conftest.$ac_ext >&5
16349
16350 ac_lo= ac_hi=
16351 fi
16352 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16353 fi
16354 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16355 # Binary search between lo and hi bounds.
16356 while test "x$ac_lo" != "x$ac_hi"; do
16357   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16358   cat >conftest.$ac_ext <<_ACEOF
16359 /* confdefs.h.  */
16360 _ACEOF
16361 cat confdefs.h >>conftest.$ac_ext
16362 cat >>conftest.$ac_ext <<_ACEOF
16363 /* end confdefs.h.  */
16364 $ac_includes_default
16365 int
16366 main ()
16367 {
16368 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
16369 test_array [0] = 0
16370
16371   ;
16372   return 0;
16373 }
16374 _ACEOF
16375 rm -f conftest.$ac_objext
16376 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16377   (eval $ac_compile) 2>conftest.er1
16378   ac_status=$?
16379   grep -v '^ *+' conftest.er1 >conftest.err
16380   rm -f conftest.er1
16381   cat conftest.err >&5
16382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16383   (exit $ac_status); } &&
16384          { ac_try='test -z "$ac_c_werror_flag"
16385                          || test ! -s conftest.err'
16386   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16387   (eval $ac_try) 2>&5
16388   ac_status=$?
16389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16390   (exit $ac_status); }; } &&
16391          { ac_try='test -s conftest.$ac_objext'
16392   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16393   (eval $ac_try) 2>&5
16394   ac_status=$?
16395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16396   (exit $ac_status); }; }; then
16397   ac_hi=$ac_mid
16398 else
16399   echo "$as_me: failed program was:" >&5
16400 sed 's/^/| /' conftest.$ac_ext >&5
16401
16402 ac_lo=`expr '(' $ac_mid ')' + 1`
16403 fi
16404 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16405 done
16406 case $ac_lo in
16407 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
16408 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
16409 See \`config.log' for more details." >&5
16410 echo "$as_me: error: cannot compute sizeof (long long int), 77
16411 See \`config.log' for more details." >&2;}
16412    { (exit 1); exit 1; }; } ;;
16413 esac
16414 else
16415   if test "$cross_compiling" = yes; then
16416   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16417 See \`config.log' for more details." >&5
16418 echo "$as_me: error: cannot run test program while cross compiling
16419 See \`config.log' for more details." >&2;}
16420    { (exit 1); exit 1; }; }
16421 else
16422   cat >conftest.$ac_ext <<_ACEOF
16423 /* confdefs.h.  */
16424 _ACEOF
16425 cat confdefs.h >>conftest.$ac_ext
16426 cat >>conftest.$ac_ext <<_ACEOF
16427 /* end confdefs.h.  */
16428 $ac_includes_default
16429 long longval () { return (long) (sizeof (long long int)); }
16430 unsigned long ulongval () { return (long) (sizeof (long long int)); }
16431 #include <stdio.h>
16432 #include <stdlib.h>
16433 int
16434 main ()
16435 {
16436
16437   FILE *f = fopen ("conftest.val", "w");
16438   if (! f)
16439     exit (1);
16440   if (((long) (sizeof (long long int))) < 0)
16441     {
16442       long i = longval ();
16443       if (i != ((long) (sizeof (long long int))))
16444         exit (1);
16445       fprintf (f, "%ld\n", i);
16446     }
16447   else
16448     {
16449       unsigned long i = ulongval ();
16450       if (i != ((long) (sizeof (long long int))))
16451         exit (1);
16452       fprintf (f, "%lu\n", i);
16453     }
16454   exit (ferror (f) || fclose (f) != 0);
16455
16456   ;
16457   return 0;
16458 }
16459 _ACEOF
16460 rm -f conftest$ac_exeext
16461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16462   (eval $ac_link) 2>&5
16463   ac_status=$?
16464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16465   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16466   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16467   (eval $ac_try) 2>&5
16468   ac_status=$?
16469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16470   (exit $ac_status); }; }; then
16471   ac_cv_sizeof_long_long_int=`cat conftest.val`
16472 else
16473   echo "$as_me: program exited with status $ac_status" >&5
16474 echo "$as_me: failed program was:" >&5
16475 sed 's/^/| /' conftest.$ac_ext >&5
16476
16477 ( exit $ac_status )
16478 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
16479 See \`config.log' for more details." >&5
16480 echo "$as_me: error: cannot compute sizeof (long long int), 77
16481 See \`config.log' for more details." >&2;}
16482    { (exit 1); exit 1; }; }
16483 fi
16484 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16485 fi
16486 fi
16487 rm -f conftest.val
16488 else
16489   ac_cv_sizeof_long_long_int=0
16490 fi
16491 fi
16492 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
16493 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6
16494 cat >>confdefs.h <<_ACEOF
16495 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
16496 _ACEOF
16497
16498
16499 echo "$as_me:$LINENO: checking for int *" >&5
16500 echo $ECHO_N "checking for int *... $ECHO_C" >&6
16501 if test "${ac_cv_type_int_p+set}" = set; then
16502   echo $ECHO_N "(cached) $ECHO_C" >&6
16503 else
16504   cat >conftest.$ac_ext <<_ACEOF
16505 /* confdefs.h.  */
16506 _ACEOF
16507 cat confdefs.h >>conftest.$ac_ext
16508 cat >>conftest.$ac_ext <<_ACEOF
16509 /* end confdefs.h.  */
16510 $ac_includes_default
16511 int
16512 main ()
16513 {
16514 if ((int * *) 0)
16515   return 0;
16516 if (sizeof (int *))
16517   return 0;
16518   ;
16519   return 0;
16520 }
16521 _ACEOF
16522 rm -f conftest.$ac_objext
16523 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16524   (eval $ac_compile) 2>conftest.er1
16525   ac_status=$?
16526   grep -v '^ *+' conftest.er1 >conftest.err
16527   rm -f conftest.er1
16528   cat conftest.err >&5
16529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16530   (exit $ac_status); } &&
16531          { ac_try='test -z "$ac_c_werror_flag"
16532                          || test ! -s conftest.err'
16533   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16534   (eval $ac_try) 2>&5
16535   ac_status=$?
16536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16537   (exit $ac_status); }; } &&
16538          { ac_try='test -s conftest.$ac_objext'
16539   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16540   (eval $ac_try) 2>&5
16541   ac_status=$?
16542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16543   (exit $ac_status); }; }; then
16544   ac_cv_type_int_p=yes
16545 else
16546   echo "$as_me: failed program was:" >&5
16547 sed 's/^/| /' conftest.$ac_ext >&5
16548
16549 ac_cv_type_int_p=no
16550 fi
16551 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16552 fi
16553 echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
16554 echo "${ECHO_T}$ac_cv_type_int_p" >&6
16555
16556 echo "$as_me:$LINENO: checking size of int *" >&5
16557 echo $ECHO_N "checking size of int *... $ECHO_C" >&6
16558 if test "${ac_cv_sizeof_int_p+set}" = set; then
16559   echo $ECHO_N "(cached) $ECHO_C" >&6
16560 else
16561   if test "$ac_cv_type_int_p" = yes; then
16562   # The cast to unsigned long works around a bug in the HP C Compiler
16563   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16564   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16565   # This bug is HP SR number 8606223364.
16566   if test "$cross_compiling" = yes; then
16567   # Depending upon the size, compute the lo and hi bounds.
16568 cat >conftest.$ac_ext <<_ACEOF
16569 /* confdefs.h.  */
16570 _ACEOF
16571 cat confdefs.h >>conftest.$ac_ext
16572 cat >>conftest.$ac_ext <<_ACEOF
16573 /* end confdefs.h.  */
16574 $ac_includes_default
16575 int
16576 main ()
16577 {
16578 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= 0)];
16579 test_array [0] = 0
16580
16581   ;
16582   return 0;
16583 }
16584 _ACEOF
16585 rm -f conftest.$ac_objext
16586 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16587   (eval $ac_compile) 2>conftest.er1
16588   ac_status=$?
16589   grep -v '^ *+' conftest.er1 >conftest.err
16590   rm -f conftest.er1
16591   cat conftest.err >&5
16592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16593   (exit $ac_status); } &&
16594          { ac_try='test -z "$ac_c_werror_flag"
16595                          || test ! -s conftest.err'
16596   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16597   (eval $ac_try) 2>&5
16598   ac_status=$?
16599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16600   (exit $ac_status); }; } &&
16601          { ac_try='test -s conftest.$ac_objext'
16602   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16603   (eval $ac_try) 2>&5
16604   ac_status=$?
16605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16606   (exit $ac_status); }; }; then
16607   ac_lo=0 ac_mid=0
16608   while :; do
16609     cat >conftest.$ac_ext <<_ACEOF
16610 /* confdefs.h.  */
16611 _ACEOF
16612 cat confdefs.h >>conftest.$ac_ext
16613 cat >>conftest.$ac_ext <<_ACEOF
16614 /* end confdefs.h.  */
16615 $ac_includes_default
16616 int
16617 main ()
16618 {
16619 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
16620 test_array [0] = 0
16621
16622   ;
16623   return 0;
16624 }
16625 _ACEOF
16626 rm -f conftest.$ac_objext
16627 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16628   (eval $ac_compile) 2>conftest.er1
16629   ac_status=$?
16630   grep -v '^ *+' conftest.er1 >conftest.err
16631   rm -f conftest.er1
16632   cat conftest.err >&5
16633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16634   (exit $ac_status); } &&
16635          { ac_try='test -z "$ac_c_werror_flag"
16636                          || test ! -s conftest.err'
16637   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16638   (eval $ac_try) 2>&5
16639   ac_status=$?
16640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16641   (exit $ac_status); }; } &&
16642          { ac_try='test -s conftest.$ac_objext'
16643   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16644   (eval $ac_try) 2>&5
16645   ac_status=$?
16646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16647   (exit $ac_status); }; }; then
16648   ac_hi=$ac_mid; break
16649 else
16650   echo "$as_me: failed program was:" >&5
16651 sed 's/^/| /' conftest.$ac_ext >&5
16652
16653 ac_lo=`expr $ac_mid + 1`
16654                     if test $ac_lo -le $ac_mid; then
16655                       ac_lo= ac_hi=
16656                       break
16657                     fi
16658                     ac_mid=`expr 2 '*' $ac_mid + 1`
16659 fi
16660 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16661   done
16662 else
16663   echo "$as_me: failed program was:" >&5
16664 sed 's/^/| /' conftest.$ac_ext >&5
16665
16666 cat >conftest.$ac_ext <<_ACEOF
16667 /* confdefs.h.  */
16668 _ACEOF
16669 cat confdefs.h >>conftest.$ac_ext
16670 cat >>conftest.$ac_ext <<_ACEOF
16671 /* end confdefs.h.  */
16672 $ac_includes_default
16673 int
16674 main ()
16675 {
16676 static int test_array [1 - 2 * !(((long) (sizeof (int *))) < 0)];
16677 test_array [0] = 0
16678
16679   ;
16680   return 0;
16681 }
16682 _ACEOF
16683 rm -f conftest.$ac_objext
16684 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16685   (eval $ac_compile) 2>conftest.er1
16686   ac_status=$?
16687   grep -v '^ *+' conftest.er1 >conftest.err
16688   rm -f conftest.er1
16689   cat conftest.err >&5
16690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16691   (exit $ac_status); } &&
16692          { ac_try='test -z "$ac_c_werror_flag"
16693                          || test ! -s conftest.err'
16694   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16695   (eval $ac_try) 2>&5
16696   ac_status=$?
16697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16698   (exit $ac_status); }; } &&
16699          { ac_try='test -s conftest.$ac_objext'
16700   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16701   (eval $ac_try) 2>&5
16702   ac_status=$?
16703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16704   (exit $ac_status); }; }; then
16705   ac_hi=-1 ac_mid=-1
16706   while :; do
16707     cat >conftest.$ac_ext <<_ACEOF
16708 /* confdefs.h.  */
16709 _ACEOF
16710 cat confdefs.h >>conftest.$ac_ext
16711 cat >>conftest.$ac_ext <<_ACEOF
16712 /* end confdefs.h.  */
16713 $ac_includes_default
16714 int
16715 main ()
16716 {
16717 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= $ac_mid)];
16718 test_array [0] = 0
16719
16720   ;
16721   return 0;
16722 }
16723 _ACEOF
16724 rm -f conftest.$ac_objext
16725 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16726   (eval $ac_compile) 2>conftest.er1
16727   ac_status=$?
16728   grep -v '^ *+' conftest.er1 >conftest.err
16729   rm -f conftest.er1
16730   cat conftest.err >&5
16731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16732   (exit $ac_status); } &&
16733          { ac_try='test -z "$ac_c_werror_flag"
16734                          || test ! -s conftest.err'
16735   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16736   (eval $ac_try) 2>&5
16737   ac_status=$?
16738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16739   (exit $ac_status); }; } &&
16740          { ac_try='test -s conftest.$ac_objext'
16741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16742   (eval $ac_try) 2>&5
16743   ac_status=$?
16744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16745   (exit $ac_status); }; }; then
16746   ac_lo=$ac_mid; break
16747 else
16748   echo "$as_me: failed program was:" >&5
16749 sed 's/^/| /' conftest.$ac_ext >&5
16750
16751 ac_hi=`expr '(' $ac_mid ')' - 1`
16752                        if test $ac_mid -le $ac_hi; then
16753                          ac_lo= ac_hi=
16754                          break
16755                        fi
16756                        ac_mid=`expr 2 '*' $ac_mid`
16757 fi
16758 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16759   done
16760 else
16761   echo "$as_me: failed program was:" >&5
16762 sed 's/^/| /' conftest.$ac_ext >&5
16763
16764 ac_lo= ac_hi=
16765 fi
16766 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16767 fi
16768 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16769 # Binary search between lo and hi bounds.
16770 while test "x$ac_lo" != "x$ac_hi"; do
16771   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16772   cat >conftest.$ac_ext <<_ACEOF
16773 /* confdefs.h.  */
16774 _ACEOF
16775 cat confdefs.h >>conftest.$ac_ext
16776 cat >>conftest.$ac_ext <<_ACEOF
16777 /* end confdefs.h.  */
16778 $ac_includes_default
16779 int
16780 main ()
16781 {
16782 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
16783 test_array [0] = 0
16784
16785   ;
16786   return 0;
16787 }
16788 _ACEOF
16789 rm -f conftest.$ac_objext
16790 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16791   (eval $ac_compile) 2>conftest.er1
16792   ac_status=$?
16793   grep -v '^ *+' conftest.er1 >conftest.err
16794   rm -f conftest.er1
16795   cat conftest.err >&5
16796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16797   (exit $ac_status); } &&
16798          { ac_try='test -z "$ac_c_werror_flag"
16799                          || test ! -s conftest.err'
16800   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16801   (eval $ac_try) 2>&5
16802   ac_status=$?
16803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16804   (exit $ac_status); }; } &&
16805          { ac_try='test -s conftest.$ac_objext'
16806   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16807   (eval $ac_try) 2>&5
16808   ac_status=$?
16809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16810   (exit $ac_status); }; }; then
16811   ac_hi=$ac_mid
16812 else
16813   echo "$as_me: failed program was:" >&5
16814 sed 's/^/| /' conftest.$ac_ext >&5
16815
16816 ac_lo=`expr '(' $ac_mid ')' + 1`
16817 fi
16818 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16819 done
16820 case $ac_lo in
16821 ?*) ac_cv_sizeof_int_p=$ac_lo;;
16822 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
16823 See \`config.log' for more details." >&5
16824 echo "$as_me: error: cannot compute sizeof (int *), 77
16825 See \`config.log' for more details." >&2;}
16826    { (exit 1); exit 1; }; } ;;
16827 esac
16828 else
16829   if test "$cross_compiling" = yes; then
16830   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16831 See \`config.log' for more details." >&5
16832 echo "$as_me: error: cannot run test program while cross compiling
16833 See \`config.log' for more details." >&2;}
16834    { (exit 1); exit 1; }; }
16835 else
16836   cat >conftest.$ac_ext <<_ACEOF
16837 /* confdefs.h.  */
16838 _ACEOF
16839 cat confdefs.h >>conftest.$ac_ext
16840 cat >>conftest.$ac_ext <<_ACEOF
16841 /* end confdefs.h.  */
16842 $ac_includes_default
16843 long longval () { return (long) (sizeof (int *)); }
16844 unsigned long ulongval () { return (long) (sizeof (int *)); }
16845 #include <stdio.h>
16846 #include <stdlib.h>
16847 int
16848 main ()
16849 {
16850
16851   FILE *f = fopen ("conftest.val", "w");
16852   if (! f)
16853     exit (1);
16854   if (((long) (sizeof (int *))) < 0)
16855     {
16856       long i = longval ();
16857       if (i != ((long) (sizeof (int *))))
16858         exit (1);
16859       fprintf (f, "%ld\n", i);
16860     }
16861   else
16862     {
16863       unsigned long i = ulongval ();
16864       if (i != ((long) (sizeof (int *))))
16865         exit (1);
16866       fprintf (f, "%lu\n", i);
16867     }
16868   exit (ferror (f) || fclose (f) != 0);
16869
16870   ;
16871   return 0;
16872 }
16873 _ACEOF
16874 rm -f conftest$ac_exeext
16875 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16876   (eval $ac_link) 2>&5
16877   ac_status=$?
16878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16879   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16880   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16881   (eval $ac_try) 2>&5
16882   ac_status=$?
16883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16884   (exit $ac_status); }; }; then
16885   ac_cv_sizeof_int_p=`cat conftest.val`
16886 else
16887   echo "$as_me: program exited with status $ac_status" >&5
16888 echo "$as_me: failed program was:" >&5
16889 sed 's/^/| /' conftest.$ac_ext >&5
16890
16891 ( exit $ac_status )
16892 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
16893 See \`config.log' for more details." >&5
16894 echo "$as_me: error: cannot compute sizeof (int *), 77
16895 See \`config.log' for more details." >&2;}
16896    { (exit 1); exit 1; }; }
16897 fi
16898 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16899 fi
16900 fi
16901 rm -f conftest.val
16902 else
16903   ac_cv_sizeof_int_p=0
16904 fi
16905 fi
16906 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
16907 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6
16908 cat >>confdefs.h <<_ACEOF
16909 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
16910 _ACEOF
16911
16912
16913
16914 # Check for sys/types.h types
16915 echo "$as_me:$LINENO: checking for u_int type" >&5
16916 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6
16917 if test "${ac_cv_have_u_int+set}" = set; then
16918   echo $ECHO_N "(cached) $ECHO_C" >&6
16919 else
16920
16921     cat >conftest.$ac_ext <<_ACEOF
16922 /* confdefs.h.  */
16923 _ACEOF
16924 cat confdefs.h >>conftest.$ac_ext
16925 cat >>conftest.$ac_ext <<_ACEOF
16926 /* end confdefs.h.  */
16927  #include <sys/types.h>
16928 int
16929 main ()
16930 {
16931  u_int a; a = 1;
16932   ;
16933   return 0;
16934 }
16935 _ACEOF
16936 rm -f conftest.$ac_objext
16937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16938   (eval $ac_compile) 2>conftest.er1
16939   ac_status=$?
16940   grep -v '^ *+' conftest.er1 >conftest.err
16941   rm -f conftest.er1
16942   cat conftest.err >&5
16943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16944   (exit $ac_status); } &&
16945          { ac_try='test -z "$ac_c_werror_flag"
16946                          || test ! -s conftest.err'
16947   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16948   (eval $ac_try) 2>&5
16949   ac_status=$?
16950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16951   (exit $ac_status); }; } &&
16952          { ac_try='test -s conftest.$ac_objext'
16953   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16954   (eval $ac_try) 2>&5
16955   ac_status=$?
16956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16957   (exit $ac_status); }; }; then
16958    ac_cv_have_u_int="yes"
16959 else
16960   echo "$as_me: failed program was:" >&5
16961 sed 's/^/| /' conftest.$ac_ext >&5
16962
16963  ac_cv_have_u_int="no"
16964
16965 fi
16966 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16967
16968 fi
16969 echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
16970 echo "${ECHO_T}$ac_cv_have_u_int" >&6
16971 if test "x$ac_cv_have_u_int" = "xyes" ; then
16972    cat >>confdefs.h <<\_ACEOF
16973 #define HAVE_U_INT 1
16974 _ACEOF
16975
16976    have_u_int=1
16977 fi
16978
16979 echo "$as_me:$LINENO: checking for intmax_t type" >&5
16980 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6
16981 if test "${ac_cv_have_intmax_t+set}" = set; then
16982   echo $ECHO_N "(cached) $ECHO_C" >&6
16983 else
16984
16985    cat >conftest.$ac_ext <<_ACEOF
16986 /* confdefs.h.  */
16987 _ACEOF
16988 cat confdefs.h >>conftest.$ac_ext
16989 cat >>conftest.$ac_ext <<_ACEOF
16990 /* end confdefs.h.  */
16991  #include <sys/types.h>
16992 int
16993 main ()
16994 {
16995  intmax_t a; a = 1;
16996   ;
16997   return 0;
16998 }
16999 _ACEOF
17000 rm -f conftest.$ac_objext
17001 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17002   (eval $ac_compile) 2>conftest.er1
17003   ac_status=$?
17004   grep -v '^ *+' conftest.er1 >conftest.err
17005   rm -f conftest.er1
17006   cat conftest.err >&5
17007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17008   (exit $ac_status); } &&
17009          { ac_try='test -z "$ac_c_werror_flag"
17010                          || test ! -s conftest.err'
17011   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17012   (eval $ac_try) 2>&5
17013   ac_status=$?
17014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17015   (exit $ac_status); }; } &&
17016          { ac_try='test -s conftest.$ac_objext'
17017   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17018   (eval $ac_try) 2>&5
17019   ac_status=$?
17020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17021   (exit $ac_status); }; }; then
17022    ac_cv_have_intmax_t="yes"
17023 else
17024   echo "$as_me: failed program was:" >&5
17025 sed 's/^/| /' conftest.$ac_ext >&5
17026
17027
17028          cat >conftest.$ac_ext <<_ACEOF
17029 /* confdefs.h.  */
17030 _ACEOF
17031 cat confdefs.h >>conftest.$ac_ext
17032 cat >>conftest.$ac_ext <<_ACEOF
17033 /* end confdefs.h.  */
17034  #include <stdint.h>
17035 int
17036 main ()
17037 {
17038  intmax_t a; a = 1;
17039   ;
17040   return 0;
17041 }
17042 _ACEOF
17043 rm -f conftest.$ac_objext
17044 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17045   (eval $ac_compile) 2>conftest.er1
17046   ac_status=$?
17047   grep -v '^ *+' conftest.er1 >conftest.err
17048   rm -f conftest.er1
17049   cat conftest.err >&5
17050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17051   (exit $ac_status); } &&
17052          { ac_try='test -z "$ac_c_werror_flag"
17053                          || test ! -s conftest.err'
17054   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17055   (eval $ac_try) 2>&5
17056   ac_status=$?
17057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17058   (exit $ac_status); }; } &&
17059          { ac_try='test -s conftest.$ac_objext'
17060   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17061   (eval $ac_try) 2>&5
17062   ac_status=$?
17063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17064   (exit $ac_status); }; }; then
17065    ac_cv_have_intmax_t="yes"
17066 else
17067   echo "$as_me: failed program was:" >&5
17068 sed 's/^/| /' conftest.$ac_ext >&5
17069
17070  ac_cv_have_intmax_t="no"
17071
17072 fi
17073 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17074
17075
17076 fi
17077 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17078
17079
17080 fi
17081 echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
17082 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6
17083 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
17084    cat >>confdefs.h <<\_ACEOF
17085 #define HAVE_INTMAX_T 1
17086 _ACEOF
17087
17088    have_intmax_t=1
17089 fi
17090
17091
17092 echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
17093 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6
17094 if test "${ac_cv_have_u_intmax_t+set}" = set; then
17095   echo $ECHO_N "(cached) $ECHO_C" >&6
17096 else
17097
17098    cat >conftest.$ac_ext <<_ACEOF
17099 /* confdefs.h.  */
17100 _ACEOF
17101 cat confdefs.h >>conftest.$ac_ext
17102 cat >>conftest.$ac_ext <<_ACEOF
17103 /* end confdefs.h.  */
17104  #include <sys/types.h>
17105 int
17106 main ()
17107 {
17108  u_intmax_t a; a = 1;
17109   ;
17110   return 0;
17111 }
17112 _ACEOF
17113 rm -f conftest.$ac_objext
17114 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17115   (eval $ac_compile) 2>conftest.er1
17116   ac_status=$?
17117   grep -v '^ *+' conftest.er1 >conftest.err
17118   rm -f conftest.er1
17119   cat conftest.err >&5
17120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17121   (exit $ac_status); } &&
17122          { ac_try='test -z "$ac_c_werror_flag"
17123                          || test ! -s conftest.err'
17124   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17125   (eval $ac_try) 2>&5
17126   ac_status=$?
17127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17128   (exit $ac_status); }; } &&
17129          { ac_try='test -s conftest.$ac_objext'
17130   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17131   (eval $ac_try) 2>&5
17132   ac_status=$?
17133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17134   (exit $ac_status); }; }; then
17135    ac_cv_have_u_intmax_t="yes"
17136 else
17137   echo "$as_me: failed program was:" >&5
17138 sed 's/^/| /' conftest.$ac_ext >&5
17139
17140
17141          cat >conftest.$ac_ext <<_ACEOF
17142 /* confdefs.h.  */
17143 _ACEOF
17144 cat confdefs.h >>conftest.$ac_ext
17145 cat >>conftest.$ac_ext <<_ACEOF
17146 /* end confdefs.h.  */
17147  #include <stdint.h>
17148 int
17149 main ()
17150 {
17151  u_intmax_t a; a = 1;
17152   ;
17153   return 0;
17154 }
17155 _ACEOF
17156 rm -f conftest.$ac_objext
17157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17158   (eval $ac_compile) 2>conftest.er1
17159   ac_status=$?
17160   grep -v '^ *+' conftest.er1 >conftest.err
17161   rm -f conftest.er1
17162   cat conftest.err >&5
17163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17164   (exit $ac_status); } &&
17165          { ac_try='test -z "$ac_c_werror_flag"
17166                          || test ! -s conftest.err'
17167   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17168   (eval $ac_try) 2>&5
17169   ac_status=$?
17170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17171   (exit $ac_status); }; } &&
17172          { ac_try='test -s conftest.$ac_objext'
17173   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17174   (eval $ac_try) 2>&5
17175   ac_status=$?
17176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17177   (exit $ac_status); }; }; then
17178    ac_cv_have_u_intmax_t="yes"
17179 else
17180   echo "$as_me: failed program was:" >&5
17181 sed 's/^/| /' conftest.$ac_ext >&5
17182
17183  ac_cv_have_u_intmax_t="no"
17184
17185 fi
17186 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17187
17188
17189 fi
17190 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17191
17192 fi
17193 echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
17194 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6
17195 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
17196    cat >>confdefs.h <<\_ACEOF
17197 #define HAVE_U_INTMAX_T 1
17198 _ACEOF
17199
17200    have_u_intmax_t=1
17201 fi
17202
17203
17204 echo "$as_me:$LINENO: checking for intXX_t types" >&5
17205 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6
17206 if test "${ac_cv_have_intxx_t+set}" = set; then
17207   echo $ECHO_N "(cached) $ECHO_C" >&6
17208 else
17209
17210    cat >conftest.$ac_ext <<_ACEOF
17211 /* confdefs.h.  */
17212 _ACEOF
17213 cat confdefs.h >>conftest.$ac_ext
17214 cat >>conftest.$ac_ext <<_ACEOF
17215 /* end confdefs.h.  */
17216  #include <sys/types.h>
17217 int
17218 main ()
17219 {
17220  int8_t a; int16_t b; int32_t c; a = b = c = 1;
17221   ;
17222   return 0;
17223 }
17224 _ACEOF
17225 rm -f conftest.$ac_objext
17226 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17227   (eval $ac_compile) 2>conftest.er1
17228   ac_status=$?
17229   grep -v '^ *+' conftest.er1 >conftest.err
17230   rm -f conftest.er1
17231   cat conftest.err >&5
17232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17233   (exit $ac_status); } &&
17234          { ac_try='test -z "$ac_c_werror_flag"
17235                          || test ! -s conftest.err'
17236   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17237   (eval $ac_try) 2>&5
17238   ac_status=$?
17239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17240   (exit $ac_status); }; } &&
17241          { ac_try='test -s conftest.$ac_objext'
17242   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17243   (eval $ac_try) 2>&5
17244   ac_status=$?
17245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17246   (exit $ac_status); }; }; then
17247    ac_cv_have_intxx_t="yes"
17248 else
17249   echo "$as_me: failed program was:" >&5
17250 sed 's/^/| /' conftest.$ac_ext >&5
17251
17252  ac_cv_have_intxx_t="no"
17253
17254 fi
17255 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17256
17257 fi
17258 echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
17259 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6
17260 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
17261    cat >>confdefs.h <<\_ACEOF
17262 #define HAVE_INTXX_T 1
17263 _ACEOF
17264
17265    have_intxx_t=1
17266 fi
17267
17268 echo "$as_me:$LINENO: checking for int64_t type" >&5
17269 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6
17270 if test "${ac_cv_have_int64_t+set}" = set; then
17271   echo $ECHO_N "(cached) $ECHO_C" >&6
17272 else
17273
17274    cat >conftest.$ac_ext <<_ACEOF
17275 /* confdefs.h.  */
17276 _ACEOF
17277 cat confdefs.h >>conftest.$ac_ext
17278 cat >>conftest.$ac_ext <<_ACEOF
17279 /* end confdefs.h.  */
17280  #include <sys/types.h>
17281 int
17282 main ()
17283 {
17284  int64_t a; a = 1;
17285   ;
17286   return 0;
17287 }
17288 _ACEOF
17289 rm -f conftest.$ac_objext
17290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17291   (eval $ac_compile) 2>conftest.er1
17292   ac_status=$?
17293   grep -v '^ *+' conftest.er1 >conftest.err
17294   rm -f conftest.er1
17295   cat conftest.err >&5
17296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17297   (exit $ac_status); } &&
17298          { ac_try='test -z "$ac_c_werror_flag"
17299                          || test ! -s conftest.err'
17300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17301   (eval $ac_try) 2>&5
17302   ac_status=$?
17303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17304   (exit $ac_status); }; } &&
17305          { ac_try='test -s conftest.$ac_objext'
17306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17307   (eval $ac_try) 2>&5
17308   ac_status=$?
17309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17310   (exit $ac_status); }; }; then
17311    ac_cv_have_int64_t="yes"
17312 else
17313   echo "$as_me: failed program was:" >&5
17314 sed 's/^/| /' conftest.$ac_ext >&5
17315
17316  ac_cv_have_int64_t="no"
17317
17318 fi
17319 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17320
17321 fi
17322 echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
17323 echo "${ECHO_T}$ac_cv_have_int64_t" >&6
17324 if test "x$ac_cv_have_int64_t" = "xyes" ; then
17325    cat >>confdefs.h <<\_ACEOF
17326 #define HAVE_INT64_T 1
17327 _ACEOF
17328
17329    have_int64_t=1
17330 fi
17331
17332 echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
17333 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6
17334 if test "${ac_cv_have_u_intxx_t+set}" = set; then
17335   echo $ECHO_N "(cached) $ECHO_C" >&6
17336 else
17337
17338    cat >conftest.$ac_ext <<_ACEOF
17339 /* confdefs.h.  */
17340 _ACEOF
17341 cat confdefs.h >>conftest.$ac_ext
17342 cat >>conftest.$ac_ext <<_ACEOF
17343 /* end confdefs.h.  */
17344  #include <sys/types.h>
17345 int
17346 main ()
17347 {
17348  u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
17349   ;
17350   return 0;
17351 }
17352 _ACEOF
17353 rm -f conftest.$ac_objext
17354 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17355   (eval $ac_compile) 2>conftest.er1
17356   ac_status=$?
17357   grep -v '^ *+' conftest.er1 >conftest.err
17358   rm -f conftest.er1
17359   cat conftest.err >&5
17360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17361   (exit $ac_status); } &&
17362          { ac_try='test -z "$ac_c_werror_flag"
17363                          || test ! -s conftest.err'
17364   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17365   (eval $ac_try) 2>&5
17366   ac_status=$?
17367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17368   (exit $ac_status); }; } &&
17369          { ac_try='test -s conftest.$ac_objext'
17370   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17371   (eval $ac_try) 2>&5
17372   ac_status=$?
17373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17374   (exit $ac_status); }; }; then
17375    ac_cv_have_u_intxx_t="yes"
17376 else
17377   echo "$as_me: failed program was:" >&5
17378 sed 's/^/| /' conftest.$ac_ext >&5
17379
17380  ac_cv_have_u_intxx_t="no"
17381
17382 fi
17383 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17384
17385 fi
17386 echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
17387 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6
17388 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
17389    cat >>confdefs.h <<\_ACEOF
17390 #define HAVE_U_INTXX_T 1
17391 _ACEOF
17392
17393    have_u_intxx_t=1
17394 fi
17395
17396 echo "$as_me:$LINENO: checking for u_int64_t types" >&5
17397 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6
17398 if test "${ac_cv_have_u_int64_t+set}" = set; then
17399   echo $ECHO_N "(cached) $ECHO_C" >&6
17400 else
17401
17402    cat >conftest.$ac_ext <<_ACEOF
17403 /* confdefs.h.  */
17404 _ACEOF
17405 cat confdefs.h >>conftest.$ac_ext
17406 cat >>conftest.$ac_ext <<_ACEOF
17407 /* end confdefs.h.  */
17408  #include <sys/types.h>
17409 int
17410 main ()
17411 {
17412  u_int64_t a; a = 1;
17413   ;
17414   return 0;
17415 }
17416 _ACEOF
17417 rm -f conftest.$ac_objext
17418 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17419   (eval $ac_compile) 2>conftest.er1
17420   ac_status=$?
17421   grep -v '^ *+' conftest.er1 >conftest.err
17422   rm -f conftest.er1
17423   cat conftest.err >&5
17424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17425   (exit $ac_status); } &&
17426          { ac_try='test -z "$ac_c_werror_flag"
17427                          || test ! -s conftest.err'
17428   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17429   (eval $ac_try) 2>&5
17430   ac_status=$?
17431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17432   (exit $ac_status); }; } &&
17433          { ac_try='test -s conftest.$ac_objext'
17434   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17435   (eval $ac_try) 2>&5
17436   ac_status=$?
17437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17438   (exit $ac_status); }; }; then
17439    ac_cv_have_u_int64_t="yes"
17440 else
17441   echo "$as_me: failed program was:" >&5
17442 sed 's/^/| /' conftest.$ac_ext >&5
17443
17444  ac_cv_have_u_int64_t="no"
17445
17446 fi
17447 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17448
17449 fi
17450 echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
17451 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6
17452 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
17453    cat >>confdefs.h <<\_ACEOF
17454 #define HAVE_U_INT64_T 1
17455 _ACEOF
17456
17457    have_u_int64_t=1
17458 fi
17459
17460 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
17461            test "x$ac_cv_header_sys_bitypes_h" = "xyes")
17462 then
17463    echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
17464 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6
17465    cat >conftest.$ac_ext <<_ACEOF
17466 /* confdefs.h.  */
17467 _ACEOF
17468 cat confdefs.h >>conftest.$ac_ext
17469 cat >>conftest.$ac_ext <<_ACEOF
17470 /* end confdefs.h.  */
17471  #include <sys/bitypes.h>
17472 int
17473 main ()
17474 {
17475  int8_t a; int16_t b; int32_t c;
17476         u_int8_t e; u_int16_t f; u_int32_t g;
17477         a = b = c = e = f = g = 1;
17478   ;
17479   return 0;
17480 }
17481 _ACEOF
17482 rm -f conftest.$ac_objext
17483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17484   (eval $ac_compile) 2>conftest.er1
17485   ac_status=$?
17486   grep -v '^ *+' conftest.er1 >conftest.err
17487   rm -f conftest.er1
17488   cat conftest.err >&5
17489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17490   (exit $ac_status); } &&
17491          { ac_try='test -z "$ac_c_werror_flag"
17492                          || test ! -s conftest.err'
17493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17494   (eval $ac_try) 2>&5
17495   ac_status=$?
17496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17497   (exit $ac_status); }; } &&
17498          { ac_try='test -s conftest.$ac_objext'
17499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17500   (eval $ac_try) 2>&5
17501   ac_status=$?
17502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17503   (exit $ac_status); }; }; then
17504    cat >>confdefs.h <<\_ACEOF
17505 #define HAVE_U_INTXX_T 1
17506 _ACEOF
17507
17508         cat >>confdefs.h <<\_ACEOF
17509 #define HAVE_INTXX_T 1
17510 _ACEOF
17511
17512         cat >>confdefs.h <<\_ACEOF
17513 #define HAVE_SYS_BITYPES_H 1
17514 _ACEOF
17515
17516         echo "$as_me:$LINENO: result: yes" >&5
17517 echo "${ECHO_T}yes" >&6
17518 else
17519   echo "$as_me: failed program was:" >&5
17520 sed 's/^/| /' conftest.$ac_ext >&5
17521
17522  echo "$as_me:$LINENO: result: no" >&5
17523 echo "${ECHO_T}no" >&6
17524
17525 fi
17526 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17527 fi
17528
17529 if test -z "$have_u_intxx_t" ; then
17530    echo "$as_me:$LINENO: checking for uintXX_t types" >&5
17531 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6
17532 if test "${ac_cv_have_uintxx_t+set}" = set; then
17533   echo $ECHO_N "(cached) $ECHO_C" >&6
17534 else
17535
17536       cat >conftest.$ac_ext <<_ACEOF
17537 /* confdefs.h.  */
17538 _ACEOF
17539 cat confdefs.h >>conftest.$ac_ext
17540 cat >>conftest.$ac_ext <<_ACEOF
17541 /* end confdefs.h.  */
17542  #include <sys/types.h>
17543 int
17544 main ()
17545 {
17546  uint8_t a; uint16_t b;
17547            uint32_t c; a = b = c = 1;
17548   ;
17549   return 0;
17550 }
17551 _ACEOF
17552 rm -f conftest.$ac_objext
17553 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17554   (eval $ac_compile) 2>conftest.er1
17555   ac_status=$?
17556   grep -v '^ *+' conftest.er1 >conftest.err
17557   rm -f conftest.er1
17558   cat conftest.err >&5
17559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17560   (exit $ac_status); } &&
17561          { ac_try='test -z "$ac_c_werror_flag"
17562                          || test ! -s conftest.err'
17563   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17564   (eval $ac_try) 2>&5
17565   ac_status=$?
17566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17567   (exit $ac_status); }; } &&
17568          { ac_try='test -s conftest.$ac_objext'
17569   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17570   (eval $ac_try) 2>&5
17571   ac_status=$?
17572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17573   (exit $ac_status); }; }; then
17574    ac_cv_have_uintxx_t="yes"
17575 else
17576   echo "$as_me: failed program was:" >&5
17577 sed 's/^/| /' conftest.$ac_ext >&5
17578
17579  ac_cv_have_uintxx_t="no"
17580
17581 fi
17582 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17583
17584 fi
17585 echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
17586 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6
17587    if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
17588       cat >>confdefs.h <<\_ACEOF
17589 #define HAVE_UINTXX_T 1
17590 _ACEOF
17591
17592    fi
17593 fi
17594
17595 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
17596           test "x$ac_cv_header_sys_bitypes_h" = "xyes")
17597 then
17598    echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
17599 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6
17600    cat >conftest.$ac_ext <<_ACEOF
17601 /* confdefs.h.  */
17602 _ACEOF
17603 cat confdefs.h >>conftest.$ac_ext
17604 cat >>conftest.$ac_ext <<_ACEOF
17605 /* end confdefs.h.  */
17606  #include <sys/bitypes.h>
17607 int
17608 main ()
17609 {
17610  int64_t a; u_int64_t b;
17611        a = b = 1;
17612   ;
17613   return 0;
17614 }
17615 _ACEOF
17616 rm -f conftest.$ac_objext
17617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17618   (eval $ac_compile) 2>conftest.er1
17619   ac_status=$?
17620   grep -v '^ *+' conftest.er1 >conftest.err
17621   rm -f conftest.er1
17622   cat conftest.err >&5
17623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17624   (exit $ac_status); } &&
17625          { ac_try='test -z "$ac_c_werror_flag"
17626                          || test ! -s conftest.err'
17627   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17628   (eval $ac_try) 2>&5
17629   ac_status=$?
17630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17631   (exit $ac_status); }; } &&
17632          { ac_try='test -s conftest.$ac_objext'
17633   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17634   (eval $ac_try) 2>&5
17635   ac_status=$?
17636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17637   (exit $ac_status); }; }; then
17638    cat >>confdefs.h <<\_ACEOF
17639 #define HAVE_U_INT64_T 1
17640 _ACEOF
17641
17642        cat >>confdefs.h <<\_ACEOF
17643 #define HAVE_INT64_T 1
17644 _ACEOF
17645
17646        echo "$as_me:$LINENO: result: yes" >&5
17647 echo "${ECHO_T}yes" >&6
17648 else
17649   echo "$as_me: failed program was:" >&5
17650 sed 's/^/| /' conftest.$ac_ext >&5
17651
17652  echo "$as_me:$LINENO: result: no" >&5
17653 echo "${ECHO_T}no" >&6
17654
17655 fi
17656 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17657 fi
17658
17659 if (test -z "$have_uintxx_t" && \
17660           test "x$ac_cv_header_sys_bitypes_h" = "xyes")
17661 then
17662    echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
17663 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6
17664    cat >conftest.$ac_ext <<_ACEOF
17665 /* confdefs.h.  */
17666 _ACEOF
17667 cat confdefs.h >>conftest.$ac_ext
17668 cat >>conftest.$ac_ext <<_ACEOF
17669 /* end confdefs.h.  */
17670  #include <sys/bitypes.h>
17671 int
17672 main ()
17673 {
17674  uint8_t a; uint16_t b;
17675           uint32_t c; a = b = c = 1;
17676   ;
17677   return 0;
17678 }
17679 _ACEOF
17680 rm -f conftest.$ac_objext
17681 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17682   (eval $ac_compile) 2>conftest.er1
17683   ac_status=$?
17684   grep -v '^ *+' conftest.er1 >conftest.err
17685   rm -f conftest.er1
17686   cat conftest.err >&5
17687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17688   (exit $ac_status); } &&
17689          { ac_try='test -z "$ac_c_werror_flag"
17690                          || test ! -s conftest.err'
17691   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17692   (eval $ac_try) 2>&5
17693   ac_status=$?
17694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17695   (exit $ac_status); }; } &&
17696          { ac_try='test -s conftest.$ac_objext'
17697   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17698   (eval $ac_try) 2>&5
17699   ac_status=$?
17700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17701   (exit $ac_status); }; }; then
17702    cat >>confdefs.h <<\_ACEOF
17703 #define HAVE_UINTXX_T 1
17704 _ACEOF
17705
17706        echo "$as_me:$LINENO: result: yes" >&5
17707 echo "${ECHO_T}yes" >&6
17708 else
17709   echo "$as_me: failed program was:" >&5
17710 sed 's/^/| /' conftest.$ac_ext >&5
17711
17712  echo "$as_me:$LINENO: result: no" >&5
17713 echo "${ECHO_T}no" >&6
17714
17715 fi
17716 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17717
17718 fi
17719
17720
17721
17722
17723
17724
17725
17726
17727
17728
17729
17730
17731
17732
17733
17734
17735
17736 for ac_func in \
17737         fork \
17738         getcwd \
17739         gethostname \
17740         getpid \
17741         gettimeofday \
17742         setpgid \
17743         setpgrp \
17744         setsid \
17745         signal \
17746         strerror \
17747         strncmp \
17748         strncpy \
17749         vfprintf \
17750
17751 do
17752 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17753 echo "$as_me:$LINENO: checking for $ac_func" >&5
17754 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17755 if eval "test \"\${$as_ac_var+set}\" = set"; then
17756   echo $ECHO_N "(cached) $ECHO_C" >&6
17757 else
17758   cat >conftest.$ac_ext <<_ACEOF
17759 /* confdefs.h.  */
17760 _ACEOF
17761 cat confdefs.h >>conftest.$ac_ext
17762 cat >>conftest.$ac_ext <<_ACEOF
17763 /* end confdefs.h.  */
17764 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17765    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17766 #define $ac_func innocuous_$ac_func
17767
17768 /* System header to define __stub macros and hopefully few prototypes,
17769     which can conflict with char $ac_func (); below.
17770     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17771     <limits.h> exists even on freestanding compilers.  */
17772
17773 #ifdef __STDC__
17774 # include <limits.h>
17775 #else
17776 # include <assert.h>
17777 #endif
17778
17779 #undef $ac_func
17780
17781 /* Override any gcc2 internal prototype to avoid an error.  */
17782 #ifdef __cplusplus
17783 extern "C"
17784 {
17785 #endif
17786 /* We use char because int might match the return type of a gcc2
17787    builtin and then its argument prototype would still apply.  */
17788 char $ac_func ();
17789 /* The GNU C library defines this for functions which it implements
17790     to always fail with ENOSYS.  Some functions are actually named
17791     something starting with __ and the normal name is an alias.  */
17792 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17793 choke me
17794 #else
17795 char (*f) () = $ac_func;
17796 #endif
17797 #ifdef __cplusplus
17798 }
17799 #endif
17800
17801 int
17802 main ()
17803 {
17804 return f != $ac_func;
17805   ;
17806   return 0;
17807 }
17808 _ACEOF
17809 rm -f conftest.$ac_objext conftest$ac_exeext
17810 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17811   (eval $ac_link) 2>conftest.er1
17812   ac_status=$?
17813   grep -v '^ *+' conftest.er1 >conftest.err
17814   rm -f conftest.er1
17815   cat conftest.err >&5
17816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17817   (exit $ac_status); } &&
17818          { ac_try='test -z "$ac_c_werror_flag"
17819                          || test ! -s conftest.err'
17820   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17821   (eval $ac_try) 2>&5
17822   ac_status=$?
17823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17824   (exit $ac_status); }; } &&
17825          { ac_try='test -s conftest$ac_exeext'
17826   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17827   (eval $ac_try) 2>&5
17828   ac_status=$?
17829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17830   (exit $ac_status); }; }; then
17831   eval "$as_ac_var=yes"
17832 else
17833   echo "$as_me: failed program was:" >&5
17834 sed 's/^/| /' conftest.$ac_ext >&5
17835
17836 eval "$as_ac_var=no"
17837 fi
17838 rm -f conftest.err conftest.$ac_objext \
17839       conftest$ac_exeext conftest.$ac_ext
17840 fi
17841 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17842 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17843 if test `eval echo '${'$as_ac_var'}'` = yes; then
17844   cat >>confdefs.h <<_ACEOF
17845 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17846 _ACEOF
17847
17848 else
17849   echo 'configure: cannot find needed function.'; exit 1
17850
17851 fi
17852 done
17853
17854
17855
17856 for ac_func in fchdir
17857 do
17858 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17859 echo "$as_me:$LINENO: checking for $ac_func" >&5
17860 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17861 if eval "test \"\${$as_ac_var+set}\" = set"; then
17862   echo $ECHO_N "(cached) $ECHO_C" >&6
17863 else
17864   cat >conftest.$ac_ext <<_ACEOF
17865 /* confdefs.h.  */
17866 _ACEOF
17867 cat confdefs.h >>conftest.$ac_ext
17868 cat >>conftest.$ac_ext <<_ACEOF
17869 /* end confdefs.h.  */
17870 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17871    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17872 #define $ac_func innocuous_$ac_func
17873
17874 /* System header to define __stub macros and hopefully few prototypes,
17875     which can conflict with char $ac_func (); below.
17876     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17877     <limits.h> exists even on freestanding compilers.  */
17878
17879 #ifdef __STDC__
17880 # include <limits.h>
17881 #else
17882 # include <assert.h>
17883 #endif
17884
17885 #undef $ac_func
17886
17887 /* Override any gcc2 internal prototype to avoid an error.  */
17888 #ifdef __cplusplus
17889 extern "C"
17890 {
17891 #endif
17892 /* We use char because int might match the return type of a gcc2
17893    builtin and then its argument prototype would still apply.  */
17894 char $ac_func ();
17895 /* The GNU C library defines this for functions which it implements
17896     to always fail with ENOSYS.  Some functions are actually named
17897     something starting with __ and the normal name is an alias.  */
17898 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17899 choke me
17900 #else
17901 char (*f) () = $ac_func;
17902 #endif
17903 #ifdef __cplusplus
17904 }
17905 #endif
17906
17907 int
17908 main ()
17909 {
17910 return f != $ac_func;
17911   ;
17912   return 0;
17913 }
17914 _ACEOF
17915 rm -f conftest.$ac_objext conftest$ac_exeext
17916 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17917   (eval $ac_link) 2>conftest.er1
17918   ac_status=$?
17919   grep -v '^ *+' conftest.er1 >conftest.err
17920   rm -f conftest.er1
17921   cat conftest.err >&5
17922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17923   (exit $ac_status); } &&
17924          { ac_try='test -z "$ac_c_werror_flag"
17925                          || test ! -s conftest.err'
17926   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17927   (eval $ac_try) 2>&5
17928   ac_status=$?
17929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17930   (exit $ac_status); }; } &&
17931          { ac_try='test -s conftest$ac_exeext'
17932   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17933   (eval $ac_try) 2>&5
17934   ac_status=$?
17935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17936   (exit $ac_status); }; }; then
17937   eval "$as_ac_var=yes"
17938 else
17939   echo "$as_me: failed program was:" >&5
17940 sed 's/^/| /' conftest.$ac_ext >&5
17941
17942 eval "$as_ac_var=no"
17943 fi
17944 rm -f conftest.err conftest.$ac_objext \
17945       conftest$ac_exeext conftest.$ac_ext
17946 fi
17947 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17948 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17949 if test `eval echo '${'$as_ac_var'}'` = yes; then
17950   cat >>confdefs.h <<_ACEOF
17951 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17952 _ACEOF
17953  cat >>confdefs.h <<\_ACEOF
17954 #define HAVE_FCHDIR 1
17955 _ACEOF
17956
17957 fi
17958 done
17959
17960
17961 for ac_func in strtoll
17962 do
17963 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17964 echo "$as_me:$LINENO: checking for $ac_func" >&5
17965 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17966 if eval "test \"\${$as_ac_var+set}\" = set"; then
17967   echo $ECHO_N "(cached) $ECHO_C" >&6
17968 else
17969   cat >conftest.$ac_ext <<_ACEOF
17970 /* confdefs.h.  */
17971 _ACEOF
17972 cat confdefs.h >>conftest.$ac_ext
17973 cat >>conftest.$ac_ext <<_ACEOF
17974 /* end confdefs.h.  */
17975 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17976    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17977 #define $ac_func innocuous_$ac_func
17978
17979 /* System header to define __stub macros and hopefully few prototypes,
17980     which can conflict with char $ac_func (); below.
17981     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17982     <limits.h> exists even on freestanding compilers.  */
17983
17984 #ifdef __STDC__
17985 # include <limits.h>
17986 #else
17987 # include <assert.h>
17988 #endif
17989
17990 #undef $ac_func
17991
17992 /* Override any gcc2 internal prototype to avoid an error.  */
17993 #ifdef __cplusplus
17994 extern "C"
17995 {
17996 #endif
17997 /* We use char because int might match the return type of a gcc2
17998    builtin and then its argument prototype would still apply.  */
17999 char $ac_func ();
18000 /* The GNU C library defines this for functions which it implements
18001     to always fail with ENOSYS.  Some functions are actually named
18002     something starting with __ and the normal name is an alias.  */
18003 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18004 choke me
18005 #else
18006 char (*f) () = $ac_func;
18007 #endif
18008 #ifdef __cplusplus
18009 }
18010 #endif
18011
18012 int
18013 main ()
18014 {
18015 return f != $ac_func;
18016   ;
18017   return 0;
18018 }
18019 _ACEOF
18020 rm -f conftest.$ac_objext conftest$ac_exeext
18021 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18022   (eval $ac_link) 2>conftest.er1
18023   ac_status=$?
18024   grep -v '^ *+' conftest.er1 >conftest.err
18025   rm -f conftest.er1
18026   cat conftest.err >&5
18027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18028   (exit $ac_status); } &&
18029          { ac_try='test -z "$ac_c_werror_flag"
18030                          || test ! -s conftest.err'
18031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18032   (eval $ac_try) 2>&5
18033   ac_status=$?
18034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18035   (exit $ac_status); }; } &&
18036          { ac_try='test -s conftest$ac_exeext'
18037   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18038   (eval $ac_try) 2>&5
18039   ac_status=$?
18040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18041   (exit $ac_status); }; }; then
18042   eval "$as_ac_var=yes"
18043 else
18044   echo "$as_me: failed program was:" >&5
18045 sed 's/^/| /' conftest.$ac_ext >&5
18046
18047 eval "$as_ac_var=no"
18048 fi
18049 rm -f conftest.err conftest.$ac_objext \
18050       conftest$ac_exeext conftest.$ac_ext
18051 fi
18052 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18053 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18054 if test `eval echo '${'$as_ac_var'}'` = yes; then
18055   cat >>confdefs.h <<_ACEOF
18056 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18057 _ACEOF
18058  cat >>confdefs.h <<\_ACEOF
18059 #define HAVE_STRTOLL 1
18060 _ACEOF
18061
18062 fi
18063 done
18064
18065
18066
18067 for ac_func in chflags
18068 do
18069 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18070 echo "$as_me:$LINENO: checking for $ac_func" >&5
18071 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18072 if eval "test \"\${$as_ac_var+set}\" = set"; then
18073   echo $ECHO_N "(cached) $ECHO_C" >&6
18074 else
18075   cat >conftest.$ac_ext <<_ACEOF
18076 /* confdefs.h.  */
18077 _ACEOF
18078 cat confdefs.h >>conftest.$ac_ext
18079 cat >>conftest.$ac_ext <<_ACEOF
18080 /* end confdefs.h.  */
18081 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18082    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18083 #define $ac_func innocuous_$ac_func
18084
18085 /* System header to define __stub macros and hopefully few prototypes,
18086     which can conflict with char $ac_func (); below.
18087     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18088     <limits.h> exists even on freestanding compilers.  */
18089
18090 #ifdef __STDC__
18091 # include <limits.h>
18092 #else
18093 # include <assert.h>
18094 #endif
18095
18096 #undef $ac_func
18097
18098 /* Override any gcc2 internal prototype to avoid an error.  */
18099 #ifdef __cplusplus
18100 extern "C"
18101 {
18102 #endif
18103 /* We use char because int might match the return type of a gcc2
18104    builtin and then its argument prototype would still apply.  */
18105 char $ac_func ();
18106 /* The GNU C library defines this for functions which it implements
18107     to always fail with ENOSYS.  Some functions are actually named
18108     something starting with __ and the normal name is an alias.  */
18109 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18110 choke me
18111 #else
18112 char (*f) () = $ac_func;
18113 #endif
18114 #ifdef __cplusplus
18115 }
18116 #endif
18117
18118 int
18119 main ()
18120 {
18121 return f != $ac_func;
18122   ;
18123   return 0;
18124 }
18125 _ACEOF
18126 rm -f conftest.$ac_objext conftest$ac_exeext
18127 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18128   (eval $ac_link) 2>conftest.er1
18129   ac_status=$?
18130   grep -v '^ *+' conftest.er1 >conftest.err
18131   rm -f conftest.er1
18132   cat conftest.err >&5
18133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18134   (exit $ac_status); } &&
18135          { ac_try='test -z "$ac_c_werror_flag"
18136                          || test ! -s conftest.err'
18137   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18138   (eval $ac_try) 2>&5
18139   ac_status=$?
18140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18141   (exit $ac_status); }; } &&
18142          { ac_try='test -s conftest$ac_exeext'
18143   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18144   (eval $ac_try) 2>&5
18145   ac_status=$?
18146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18147   (exit $ac_status); }; }; then
18148   eval "$as_ac_var=yes"
18149 else
18150   echo "$as_me: failed program was:" >&5
18151 sed 's/^/| /' conftest.$ac_ext >&5
18152
18153 eval "$as_ac_var=no"
18154 fi
18155 rm -f conftest.err conftest.$ac_objext \
18156       conftest$ac_exeext conftest.$ac_ext
18157 fi
18158 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18159 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18160 if test `eval echo '${'$as_ac_var'}'` = yes; then
18161   cat >>confdefs.h <<_ACEOF
18162 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18163 _ACEOF
18164
18165 fi
18166 done
18167
18168
18169
18170
18171
18172 for ac_func in snprintf vsnprintf gethostid
18173 do
18174 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18175 echo "$as_me:$LINENO: checking for $ac_func" >&5
18176 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18177 if eval "test \"\${$as_ac_var+set}\" = set"; then
18178   echo $ECHO_N "(cached) $ECHO_C" >&6
18179 else
18180   cat >conftest.$ac_ext <<_ACEOF
18181 /* confdefs.h.  */
18182 _ACEOF
18183 cat confdefs.h >>conftest.$ac_ext
18184 cat >>conftest.$ac_ext <<_ACEOF
18185 /* end confdefs.h.  */
18186 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18187    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18188 #define $ac_func innocuous_$ac_func
18189
18190 /* System header to define __stub macros and hopefully few prototypes,
18191     which can conflict with char $ac_func (); below.
18192     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18193     <limits.h> exists even on freestanding compilers.  */
18194
18195 #ifdef __STDC__
18196 # include <limits.h>
18197 #else
18198 # include <assert.h>
18199 #endif
18200
18201 #undef $ac_func
18202
18203 /* Override any gcc2 internal prototype to avoid an error.  */
18204 #ifdef __cplusplus
18205 extern "C"
18206 {
18207 #endif
18208 /* We use char because int might match the return type of a gcc2
18209    builtin and then its argument prototype would still apply.  */
18210 char $ac_func ();
18211 /* The GNU C library defines this for functions which it implements
18212     to always fail with ENOSYS.  Some functions are actually named
18213     something starting with __ and the normal name is an alias.  */
18214 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18215 choke me
18216 #else
18217 char (*f) () = $ac_func;
18218 #endif
18219 #ifdef __cplusplus
18220 }
18221 #endif
18222
18223 int
18224 main ()
18225 {
18226 return f != $ac_func;
18227   ;
18228   return 0;
18229 }
18230 _ACEOF
18231 rm -f conftest.$ac_objext conftest$ac_exeext
18232 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18233   (eval $ac_link) 2>conftest.er1
18234   ac_status=$?
18235   grep -v '^ *+' conftest.er1 >conftest.err
18236   rm -f conftest.er1
18237   cat conftest.err >&5
18238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18239   (exit $ac_status); } &&
18240          { ac_try='test -z "$ac_c_werror_flag"
18241                          || test ! -s conftest.err'
18242   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18243   (eval $ac_try) 2>&5
18244   ac_status=$?
18245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18246   (exit $ac_status); }; } &&
18247          { ac_try='test -s conftest$ac_exeext'
18248   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18249   (eval $ac_try) 2>&5
18250   ac_status=$?
18251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18252   (exit $ac_status); }; }; then
18253   eval "$as_ac_var=yes"
18254 else
18255   echo "$as_me: failed program was:" >&5
18256 sed 's/^/| /' conftest.$ac_ext >&5
18257
18258 eval "$as_ac_var=no"
18259 fi
18260 rm -f conftest.err conftest.$ac_objext \
18261       conftest$ac_exeext conftest.$ac_ext
18262 fi
18263 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18264 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18265 if test `eval echo '${'$as_ac_var'}'` = yes; then
18266   cat >>confdefs.h <<_ACEOF
18267 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18268 _ACEOF
18269
18270 fi
18271 done
18272
18273
18274
18275
18276
18277
18278 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
18279 do
18280 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18281 echo "$as_me:$LINENO: checking for $ac_func" >&5
18282 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18283 if eval "test \"\${$as_ac_var+set}\" = set"; then
18284   echo $ECHO_N "(cached) $ECHO_C" >&6
18285 else
18286   cat >conftest.$ac_ext <<_ACEOF
18287 /* confdefs.h.  */
18288 _ACEOF
18289 cat confdefs.h >>conftest.$ac_ext
18290 cat >>conftest.$ac_ext <<_ACEOF
18291 /* end confdefs.h.  */
18292 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18293    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18294 #define $ac_func innocuous_$ac_func
18295
18296 /* System header to define __stub macros and hopefully few prototypes,
18297     which can conflict with char $ac_func (); below.
18298     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18299     <limits.h> exists even on freestanding compilers.  */
18300
18301 #ifdef __STDC__
18302 # include <limits.h>
18303 #else
18304 # include <assert.h>
18305 #endif
18306
18307 #undef $ac_func
18308
18309 /* Override any gcc2 internal prototype to avoid an error.  */
18310 #ifdef __cplusplus
18311 extern "C"
18312 {
18313 #endif
18314 /* We use char because int might match the return type of a gcc2
18315    builtin and then its argument prototype would still apply.  */
18316 char $ac_func ();
18317 /* The GNU C library defines this for functions which it implements
18318     to always fail with ENOSYS.  Some functions are actually named
18319     something starting with __ and the normal name is an alias.  */
18320 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18321 choke me
18322 #else
18323 char (*f) () = $ac_func;
18324 #endif
18325 #ifdef __cplusplus
18326 }
18327 #endif
18328
18329 int
18330 main ()
18331 {
18332 return f != $ac_func;
18333   ;
18334   return 0;
18335 }
18336 _ACEOF
18337 rm -f conftest.$ac_objext conftest$ac_exeext
18338 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18339   (eval $ac_link) 2>conftest.er1
18340   ac_status=$?
18341   grep -v '^ *+' conftest.er1 >conftest.err
18342   rm -f conftest.er1
18343   cat conftest.err >&5
18344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18345   (exit $ac_status); } &&
18346          { ac_try='test -z "$ac_c_werror_flag"
18347                          || test ! -s conftest.err'
18348   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18349   (eval $ac_try) 2>&5
18350   ac_status=$?
18351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18352   (exit $ac_status); }; } &&
18353          { ac_try='test -s conftest$ac_exeext'
18354   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18355   (eval $ac_try) 2>&5
18356   ac_status=$?
18357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18358   (exit $ac_status); }; }; then
18359   eval "$as_ac_var=yes"
18360 else
18361   echo "$as_me: failed program was:" >&5
18362 sed 's/^/| /' conftest.$ac_ext >&5
18363
18364 eval "$as_ac_var=no"
18365 fi
18366 rm -f conftest.err conftest.$ac_objext \
18367       conftest$ac_exeext conftest.$ac_ext
18368 fi
18369 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18370 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18371 if test `eval echo '${'$as_ac_var'}'` = yes; then
18372   cat >>confdefs.h <<_ACEOF
18373 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18374 _ACEOF
18375
18376 fi
18377 done
18378
18379
18380 # If resolver functions are not in libc check for -lnsl or -lresolv.
18381 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
18382 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
18383 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
18384   echo $ECHO_N "(cached) $ECHO_C" >&6
18385 else
18386   cat >conftest.$ac_ext <<_ACEOF
18387 /* confdefs.h.  */
18388 _ACEOF
18389 cat confdefs.h >>conftest.$ac_ext
18390 cat >>conftest.$ac_ext <<_ACEOF
18391 /* end confdefs.h.  */
18392 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
18393    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18394 #define gethostbyname_r innocuous_gethostbyname_r
18395
18396 /* System header to define __stub macros and hopefully few prototypes,
18397     which can conflict with char gethostbyname_r (); below.
18398     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18399     <limits.h> exists even on freestanding compilers.  */
18400
18401 #ifdef __STDC__
18402 # include <limits.h>
18403 #else
18404 # include <assert.h>
18405 #endif
18406
18407 #undef gethostbyname_r
18408
18409 /* Override any gcc2 internal prototype to avoid an error.  */
18410 #ifdef __cplusplus
18411 extern "C"
18412 {
18413 #endif
18414 /* We use char because int might match the return type of a gcc2
18415    builtin and then its argument prototype would still apply.  */
18416 char gethostbyname_r ();
18417 /* The GNU C library defines this for functions which it implements
18418     to always fail with ENOSYS.  Some functions are actually named
18419     something starting with __ and the normal name is an alias.  */
18420 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
18421 choke me
18422 #else
18423 char (*f) () = gethostbyname_r;
18424 #endif
18425 #ifdef __cplusplus
18426 }
18427 #endif
18428
18429 int
18430 main ()
18431 {
18432 return f != gethostbyname_r;
18433   ;
18434   return 0;
18435 }
18436 _ACEOF
18437 rm -f conftest.$ac_objext conftest$ac_exeext
18438 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18439   (eval $ac_link) 2>conftest.er1
18440   ac_status=$?
18441   grep -v '^ *+' conftest.er1 >conftest.err
18442   rm -f conftest.er1
18443   cat conftest.err >&5
18444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18445   (exit $ac_status); } &&
18446          { ac_try='test -z "$ac_c_werror_flag"
18447                          || test ! -s conftest.err'
18448   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18449   (eval $ac_try) 2>&5
18450   ac_status=$?
18451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18452   (exit $ac_status); }; } &&
18453          { ac_try='test -s conftest$ac_exeext'
18454   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18455   (eval $ac_try) 2>&5
18456   ac_status=$?
18457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18458   (exit $ac_status); }; }; then
18459   ac_cv_func_gethostbyname_r=yes
18460 else
18461   echo "$as_me: failed program was:" >&5
18462 sed 's/^/| /' conftest.$ac_ext >&5
18463
18464 ac_cv_func_gethostbyname_r=no
18465 fi
18466 rm -f conftest.err conftest.$ac_objext \
18467       conftest$ac_exeext conftest.$ac_ext
18468 fi
18469 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
18470 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
18471 if test $ac_cv_func_gethostbyname_r = yes; then
18472   echo "$as_me:$LINENO: result: using libc's resolver" >&5
18473 echo "${ECHO_T}using libc's resolver" >&6
18474 else
18475
18476 echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
18477 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6
18478 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
18479   echo $ECHO_N "(cached) $ECHO_C" >&6
18480 else
18481   ac_check_lib_save_LIBS=$LIBS
18482 LIBS="-lnsl  $LIBS"
18483 cat >conftest.$ac_ext <<_ACEOF
18484 /* confdefs.h.  */
18485 _ACEOF
18486 cat confdefs.h >>conftest.$ac_ext
18487 cat >>conftest.$ac_ext <<_ACEOF
18488 /* end confdefs.h.  */
18489
18490 /* Override any gcc2 internal prototype to avoid an error.  */
18491 #ifdef __cplusplus
18492 extern "C"
18493 #endif
18494 /* We use char because int might match the return type of a gcc2
18495    builtin and then its argument prototype would still apply.  */
18496 char gethostbyname_r ();
18497 int
18498 main ()
18499 {
18500 gethostbyname_r ();
18501   ;
18502   return 0;
18503 }
18504 _ACEOF
18505 rm -f conftest.$ac_objext conftest$ac_exeext
18506 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18507   (eval $ac_link) 2>conftest.er1
18508   ac_status=$?
18509   grep -v '^ *+' conftest.er1 >conftest.err
18510   rm -f conftest.er1
18511   cat conftest.err >&5
18512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18513   (exit $ac_status); } &&
18514          { ac_try='test -z "$ac_c_werror_flag"
18515                          || test ! -s conftest.err'
18516   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18517   (eval $ac_try) 2>&5
18518   ac_status=$?
18519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18520   (exit $ac_status); }; } &&
18521          { ac_try='test -s conftest$ac_exeext'
18522   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18523   (eval $ac_try) 2>&5
18524   ac_status=$?
18525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18526   (exit $ac_status); }; }; then
18527   ac_cv_lib_nsl_gethostbyname_r=yes
18528 else
18529   echo "$as_me: failed program was:" >&5
18530 sed 's/^/| /' conftest.$ac_ext >&5
18531
18532 ac_cv_lib_nsl_gethostbyname_r=no
18533 fi
18534 rm -f conftest.err conftest.$ac_objext \
18535       conftest$ac_exeext conftest.$ac_ext
18536 LIBS=$ac_check_lib_save_LIBS
18537 fi
18538 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
18539 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6
18540 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
18541   cat >>confdefs.h <<_ACEOF
18542 #define HAVE_LIBNSL 1
18543 _ACEOF
18544
18545   LIBS="-lnsl $LIBS"
18546
18547 fi
18548
18549
18550 echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
18551 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6
18552 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
18553   echo $ECHO_N "(cached) $ECHO_C" >&6
18554 else
18555   ac_check_lib_save_LIBS=$LIBS
18556 LIBS="-lresolv  $LIBS"
18557 cat >conftest.$ac_ext <<_ACEOF
18558 /* confdefs.h.  */
18559 _ACEOF
18560 cat confdefs.h >>conftest.$ac_ext
18561 cat >>conftest.$ac_ext <<_ACEOF
18562 /* end confdefs.h.  */
18563
18564 /* Override any gcc2 internal prototype to avoid an error.  */
18565 #ifdef __cplusplus
18566 extern "C"
18567 #endif
18568 /* We use char because int might match the return type of a gcc2
18569    builtin and then its argument prototype would still apply.  */
18570 char gethostbyname_r ();
18571 int
18572 main ()
18573 {
18574 gethostbyname_r ();
18575   ;
18576   return 0;
18577 }
18578 _ACEOF
18579 rm -f conftest.$ac_objext conftest$ac_exeext
18580 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18581   (eval $ac_link) 2>conftest.er1
18582   ac_status=$?
18583   grep -v '^ *+' conftest.er1 >conftest.err
18584   rm -f conftest.er1
18585   cat conftest.err >&5
18586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18587   (exit $ac_status); } &&
18588          { ac_try='test -z "$ac_c_werror_flag"
18589                          || test ! -s conftest.err'
18590   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18591   (eval $ac_try) 2>&5
18592   ac_status=$?
18593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18594   (exit $ac_status); }; } &&
18595          { ac_try='test -s conftest$ac_exeext'
18596   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18597   (eval $ac_try) 2>&5
18598   ac_status=$?
18599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18600   (exit $ac_status); }; }; then
18601   ac_cv_lib_resolv_gethostbyname_r=yes
18602 else
18603   echo "$as_me: failed program was:" >&5
18604 sed 's/^/| /' conftest.$ac_ext >&5
18605
18606 ac_cv_lib_resolv_gethostbyname_r=no
18607 fi
18608 rm -f conftest.err conftest.$ac_objext \
18609       conftest$ac_exeext conftest.$ac_ext
18610 LIBS=$ac_check_lib_save_LIBS
18611 fi
18612 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
18613 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6
18614 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
18615   cat >>confdefs.h <<_ACEOF
18616 #define HAVE_LIBRESOLV 1
18617 _ACEOF
18618
18619   LIBS="-lresolv $LIBS"
18620
18621 fi
18622
18623 fi
18624
18625
18626
18627
18628
18629 for ac_func in inet_pton
18630 do
18631 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18632 echo "$as_me:$LINENO: checking for $ac_func" >&5
18633 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18634 if eval "test \"\${$as_ac_var+set}\" = set"; then
18635   echo $ECHO_N "(cached) $ECHO_C" >&6
18636 else
18637   cat >conftest.$ac_ext <<_ACEOF
18638 /* confdefs.h.  */
18639 _ACEOF
18640 cat confdefs.h >>conftest.$ac_ext
18641 cat >>conftest.$ac_ext <<_ACEOF
18642 /* end confdefs.h.  */
18643 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18644    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18645 #define $ac_func innocuous_$ac_func
18646
18647 /* System header to define __stub macros and hopefully few prototypes,
18648     which can conflict with char $ac_func (); below.
18649     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18650     <limits.h> exists even on freestanding compilers.  */
18651
18652 #ifdef __STDC__
18653 # include <limits.h>
18654 #else
18655 # include <assert.h>
18656 #endif
18657
18658 #undef $ac_func
18659
18660 /* Override any gcc2 internal prototype to avoid an error.  */
18661 #ifdef __cplusplus
18662 extern "C"
18663 {
18664 #endif
18665 /* We use char because int might match the return type of a gcc2
18666    builtin and then its argument prototype would still apply.  */
18667 char $ac_func ();
18668 /* The GNU C library defines this for functions which it implements
18669     to always fail with ENOSYS.  Some functions are actually named
18670     something starting with __ and the normal name is an alias.  */
18671 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18672 choke me
18673 #else
18674 char (*f) () = $ac_func;
18675 #endif
18676 #ifdef __cplusplus
18677 }
18678 #endif
18679
18680 int
18681 main ()
18682 {
18683 return f != $ac_func;
18684   ;
18685   return 0;
18686 }
18687 _ACEOF
18688 rm -f conftest.$ac_objext conftest$ac_exeext
18689 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18690   (eval $ac_link) 2>conftest.er1
18691   ac_status=$?
18692   grep -v '^ *+' conftest.er1 >conftest.err
18693   rm -f conftest.er1
18694   cat conftest.err >&5
18695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18696   (exit $ac_status); } &&
18697          { ac_try='test -z "$ac_c_werror_flag"
18698                          || test ! -s conftest.err'
18699   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18700   (eval $ac_try) 2>&5
18701   ac_status=$?
18702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18703   (exit $ac_status); }; } &&
18704          { ac_try='test -s conftest$ac_exeext'
18705   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18706   (eval $ac_try) 2>&5
18707   ac_status=$?
18708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18709   (exit $ac_status); }; }; then
18710   eval "$as_ac_var=yes"
18711 else
18712   echo "$as_me: failed program was:" >&5
18713 sed 's/^/| /' conftest.$ac_ext >&5
18714
18715 eval "$as_ac_var=no"
18716 fi
18717 rm -f conftest.err conftest.$ac_objext \
18718       conftest$ac_exeext conftest.$ac_ext
18719 fi
18720 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18721 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18722 if test `eval echo '${'$as_ac_var'}'` = yes; then
18723   cat >>confdefs.h <<_ACEOF
18724 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18725 _ACEOF
18726  cat >>confdefs.h <<\_ACEOF
18727 #define HAVE_INET_PTON 1
18728 _ACEOF
18729
18730 fi
18731 done
18732
18733
18734 for ac_func in inet_ntop
18735 do
18736 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18737 echo "$as_me:$LINENO: checking for $ac_func" >&5
18738 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18739 if eval "test \"\${$as_ac_var+set}\" = set"; then
18740   echo $ECHO_N "(cached) $ECHO_C" >&6
18741 else
18742   cat >conftest.$ac_ext <<_ACEOF
18743 /* confdefs.h.  */
18744 _ACEOF
18745 cat confdefs.h >>conftest.$ac_ext
18746 cat >>conftest.$ac_ext <<_ACEOF
18747 /* end confdefs.h.  */
18748 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18749    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18750 #define $ac_func innocuous_$ac_func
18751
18752 /* System header to define __stub macros and hopefully few prototypes,
18753     which can conflict with char $ac_func (); below.
18754     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18755     <limits.h> exists even on freestanding compilers.  */
18756
18757 #ifdef __STDC__
18758 # include <limits.h>
18759 #else
18760 # include <assert.h>
18761 #endif
18762
18763 #undef $ac_func
18764
18765 /* Override any gcc2 internal prototype to avoid an error.  */
18766 #ifdef __cplusplus
18767 extern "C"
18768 {
18769 #endif
18770 /* We use char because int might match the return type of a gcc2
18771    builtin and then its argument prototype would still apply.  */
18772 char $ac_func ();
18773 /* The GNU C library defines this for functions which it implements
18774     to always fail with ENOSYS.  Some functions are actually named
18775     something starting with __ and the normal name is an alias.  */
18776 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18777 choke me
18778 #else
18779 char (*f) () = $ac_func;
18780 #endif
18781 #ifdef __cplusplus
18782 }
18783 #endif
18784
18785 int
18786 main ()
18787 {
18788 return f != $ac_func;
18789   ;
18790   return 0;
18791 }
18792 _ACEOF
18793 rm -f conftest.$ac_objext conftest$ac_exeext
18794 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18795   (eval $ac_link) 2>conftest.er1
18796   ac_status=$?
18797   grep -v '^ *+' conftest.er1 >conftest.err
18798   rm -f conftest.er1
18799   cat conftest.err >&5
18800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18801   (exit $ac_status); } &&
18802          { ac_try='test -z "$ac_c_werror_flag"
18803                          || test ! -s conftest.err'
18804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18805   (eval $ac_try) 2>&5
18806   ac_status=$?
18807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18808   (exit $ac_status); }; } &&
18809          { ac_try='test -s conftest$ac_exeext'
18810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18811   (eval $ac_try) 2>&5
18812   ac_status=$?
18813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18814   (exit $ac_status); }; }; then
18815   eval "$as_ac_var=yes"
18816 else
18817   echo "$as_me: failed program was:" >&5
18818 sed 's/^/| /' conftest.$ac_ext >&5
18819
18820 eval "$as_ac_var=no"
18821 fi
18822 rm -f conftest.err conftest.$ac_objext \
18823       conftest$ac_exeext conftest.$ac_ext
18824 fi
18825 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18826 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18827 if test `eval echo '${'$as_ac_var'}'` = yes; then
18828   cat >>confdefs.h <<_ACEOF
18829 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18830 _ACEOF
18831  cat >>confdefs.h <<\_ACEOF
18832 #define HAVE_INET_NTOP 1
18833 _ACEOF
18834
18835 fi
18836 done
18837
18838
18839 for ac_func in gethostbyname2
18840 do
18841 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18842 echo "$as_me:$LINENO: checking for $ac_func" >&5
18843 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18844 if eval "test \"\${$as_ac_var+set}\" = set"; then
18845   echo $ECHO_N "(cached) $ECHO_C" >&6
18846 else
18847   cat >conftest.$ac_ext <<_ACEOF
18848 /* confdefs.h.  */
18849 _ACEOF
18850 cat confdefs.h >>conftest.$ac_ext
18851 cat >>conftest.$ac_ext <<_ACEOF
18852 /* end confdefs.h.  */
18853 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18854    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18855 #define $ac_func innocuous_$ac_func
18856
18857 /* System header to define __stub macros and hopefully few prototypes,
18858     which can conflict with char $ac_func (); below.
18859     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18860     <limits.h> exists even on freestanding compilers.  */
18861
18862 #ifdef __STDC__
18863 # include <limits.h>
18864 #else
18865 # include <assert.h>
18866 #endif
18867
18868 #undef $ac_func
18869
18870 /* Override any gcc2 internal prototype to avoid an error.  */
18871 #ifdef __cplusplus
18872 extern "C"
18873 {
18874 #endif
18875 /* We use char because int might match the return type of a gcc2
18876    builtin and then its argument prototype would still apply.  */
18877 char $ac_func ();
18878 /* The GNU C library defines this for functions which it implements
18879     to always fail with ENOSYS.  Some functions are actually named
18880     something starting with __ and the normal name is an alias.  */
18881 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18882 choke me
18883 #else
18884 char (*f) () = $ac_func;
18885 #endif
18886 #ifdef __cplusplus
18887 }
18888 #endif
18889
18890 int
18891 main ()
18892 {
18893 return f != $ac_func;
18894   ;
18895   return 0;
18896 }
18897 _ACEOF
18898 rm -f conftest.$ac_objext conftest$ac_exeext
18899 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18900   (eval $ac_link) 2>conftest.er1
18901   ac_status=$?
18902   grep -v '^ *+' conftest.er1 >conftest.err
18903   rm -f conftest.er1
18904   cat conftest.err >&5
18905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18906   (exit $ac_status); } &&
18907          { ac_try='test -z "$ac_c_werror_flag"
18908                          || test ! -s conftest.err'
18909   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18910   (eval $ac_try) 2>&5
18911   ac_status=$?
18912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18913   (exit $ac_status); }; } &&
18914          { ac_try='test -s conftest$ac_exeext'
18915   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18916   (eval $ac_try) 2>&5
18917   ac_status=$?
18918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18919   (exit $ac_status); }; }; then
18920   eval "$as_ac_var=yes"
18921 else
18922   echo "$as_me: failed program was:" >&5
18923 sed 's/^/| /' conftest.$ac_ext >&5
18924
18925 eval "$as_ac_var=no"
18926 fi
18927 rm -f conftest.err conftest.$ac_objext \
18928       conftest$ac_exeext conftest.$ac_ext
18929 fi
18930 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18931 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18932 if test `eval echo '${'$as_ac_var'}'` = yes; then
18933   cat >>confdefs.h <<_ACEOF
18934 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18935 _ACEOF
18936  cat >>confdefs.h <<\_ACEOF
18937 #define HAVE_GETHOSTBYNAME2 1
18938 _ACEOF
18939
18940 fi
18941 done
18942
18943
18944 echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
18945 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6
18946 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
18947   echo $ECHO_N "(cached) $ECHO_C" >&6
18948 else
18949   cat >conftest.$ac_ext <<_ACEOF
18950 /* confdefs.h.  */
18951 _ACEOF
18952 cat confdefs.h >>conftest.$ac_ext
18953 cat >>conftest.$ac_ext <<_ACEOF
18954 /* end confdefs.h.  */
18955 #include <sys/socket.h>
18956 int
18957 main ()
18958 {
18959 struct sockaddr s; s.sa_len;
18960   ;
18961   return 0;
18962 }
18963 _ACEOF
18964 rm -f conftest.$ac_objext
18965 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18966   (eval $ac_compile) 2>conftest.er1
18967   ac_status=$?
18968   grep -v '^ *+' conftest.er1 >conftest.err
18969   rm -f conftest.er1
18970   cat conftest.err >&5
18971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18972   (exit $ac_status); } &&
18973          { ac_try='test -z "$ac_c_werror_flag"
18974                          || test ! -s conftest.err'
18975   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18976   (eval $ac_try) 2>&5
18977   ac_status=$?
18978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18979   (exit $ac_status); }; } &&
18980          { ac_try='test -s conftest.$ac_objext'
18981   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18982   (eval $ac_try) 2>&5
18983   ac_status=$?
18984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18985   (exit $ac_status); }; }; then
18986   ac_cv_struct_sockaddr_sa_len=yes
18987 else
18988   echo "$as_me: failed program was:" >&5
18989 sed 's/^/| /' conftest.$ac_ext >&5
18990
18991 ac_cv_struct_sockaddr_sa_len=no
18992 fi
18993 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18994 fi
18995 echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
18996 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6
18997
18998  if test $ac_cv_struct_sockaddr_sa_len = yes; then
18999
19000 cat >>confdefs.h <<\_ACEOF
19001 #define HAVE_SA_LEN 1
19002 _ACEOF
19003
19004  fi
19005
19006
19007 echo "$as_me:$LINENO: checking for IPv6 support" >&5
19008 echo $ECHO_N "checking for IPv6 support... $ECHO_C" >&6
19009 if test "${ac_cv_ipv6_support+set}" = set; then
19010   echo $ECHO_N "(cached) $ECHO_C" >&6
19011 else
19012   cat >conftest.$ac_ext <<_ACEOF
19013 /* confdefs.h.  */
19014 _ACEOF
19015 cat confdefs.h >>conftest.$ac_ext
19016 cat >>conftest.$ac_ext <<_ACEOF
19017 /* end confdefs.h.  */
19018  #include <sys/types.h>
19019 #include <sys/socket.h>
19020 #include <netinet/in.h>
19021 int
19022 main ()
19023 {
19024 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] =
19025  0;
19026   ;
19027   return 0;
19028 }
19029 _ACEOF
19030 rm -f conftest.$ac_objext conftest$ac_exeext
19031 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19032   (eval $ac_link) 2>conftest.er1
19033   ac_status=$?
19034   grep -v '^ *+' conftest.er1 >conftest.err
19035   rm -f conftest.er1
19036   cat conftest.err >&5
19037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19038   (exit $ac_status); } &&
19039          { ac_try='test -z "$ac_c_werror_flag"
19040                          || test ! -s conftest.err'
19041   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19042   (eval $ac_try) 2>&5
19043   ac_status=$?
19044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19045   (exit $ac_status); }; } &&
19046          { ac_try='test -s conftest$ac_exeext'
19047   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19048   (eval $ac_try) 2>&5
19049   ac_status=$?
19050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19051   (exit $ac_status); }; }; then
19052   ac_cv_ipv6_support=yes
19053 else
19054   echo "$as_me: failed program was:" >&5
19055 sed 's/^/| /' conftest.$ac_ext >&5
19056
19057 ac_cv_ipv6_support=no
19058 fi
19059 rm -f conftest.err conftest.$ac_objext \
19060       conftest$ac_exeext conftest.$ac_ext
19061 fi
19062 echo "$as_me:$LINENO: result: $ac_cv_ipv6_support" >&5
19063 echo "${ECHO_T}$ac_cv_ipv6_support" >&6
19064
19065 if test "$ac_cv_ipv6_support" = yes; then
19066
19067 cat >>confdefs.h <<\_ACEOF
19068 #define HAVE_IPV6 1
19069 _ACEOF
19070
19071 fi
19072
19073
19074
19075
19076 for ac_func in strftime
19077 do
19078 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19079 echo "$as_me:$LINENO: checking for $ac_func" >&5
19080 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19081 if eval "test \"\${$as_ac_var+set}\" = set"; then
19082   echo $ECHO_N "(cached) $ECHO_C" >&6
19083 else
19084   cat >conftest.$ac_ext <<_ACEOF
19085 /* confdefs.h.  */
19086 _ACEOF
19087 cat confdefs.h >>conftest.$ac_ext
19088 cat >>conftest.$ac_ext <<_ACEOF
19089 /* end confdefs.h.  */
19090 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19091    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19092 #define $ac_func innocuous_$ac_func
19093
19094 /* System header to define __stub macros and hopefully few prototypes,
19095     which can conflict with char $ac_func (); below.
19096     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19097     <limits.h> exists even on freestanding compilers.  */
19098
19099 #ifdef __STDC__
19100 # include <limits.h>
19101 #else
19102 # include <assert.h>
19103 #endif
19104
19105 #undef $ac_func
19106
19107 /* Override any gcc2 internal prototype to avoid an error.  */
19108 #ifdef __cplusplus
19109 extern "C"
19110 {
19111 #endif
19112 /* We use char because int might match the return type of a gcc2
19113    builtin and then its argument prototype would still apply.  */
19114 char $ac_func ();
19115 /* The GNU C library defines this for functions which it implements
19116     to always fail with ENOSYS.  Some functions are actually named
19117     something starting with __ and the normal name is an alias.  */
19118 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19119 choke me
19120 #else
19121 char (*f) () = $ac_func;
19122 #endif
19123 #ifdef __cplusplus
19124 }
19125 #endif
19126
19127 int
19128 main ()
19129 {
19130 return f != $ac_func;
19131   ;
19132   return 0;
19133 }
19134 _ACEOF
19135 rm -f conftest.$ac_objext conftest$ac_exeext
19136 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19137   (eval $ac_link) 2>conftest.er1
19138   ac_status=$?
19139   grep -v '^ *+' conftest.er1 >conftest.err
19140   rm -f conftest.er1
19141   cat conftest.err >&5
19142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19143   (exit $ac_status); } &&
19144          { ac_try='test -z "$ac_c_werror_flag"
19145                          || test ! -s conftest.err'
19146   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19147   (eval $ac_try) 2>&5
19148   ac_status=$?
19149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19150   (exit $ac_status); }; } &&
19151          { ac_try='test -s conftest$ac_exeext'
19152   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19153   (eval $ac_try) 2>&5
19154   ac_status=$?
19155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19156   (exit $ac_status); }; }; then
19157   eval "$as_ac_var=yes"
19158 else
19159   echo "$as_me: failed program was:" >&5
19160 sed 's/^/| /' conftest.$ac_ext >&5
19161
19162 eval "$as_ac_var=no"
19163 fi
19164 rm -f conftest.err conftest.$ac_objext \
19165       conftest$ac_exeext conftest.$ac_ext
19166 fi
19167 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19168 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19169 if test `eval echo '${'$as_ac_var'}'` = yes; then
19170   cat >>confdefs.h <<_ACEOF
19171 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19172 _ACEOF
19173
19174 else
19175   # strftime is in -lintl on SCO UNIX.
19176 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
19177 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
19178 if test "${ac_cv_lib_intl_strftime+set}" = set; then
19179   echo $ECHO_N "(cached) $ECHO_C" >&6
19180 else
19181   ac_check_lib_save_LIBS=$LIBS
19182 LIBS="-lintl  $LIBS"
19183 cat >conftest.$ac_ext <<_ACEOF
19184 /* confdefs.h.  */
19185 _ACEOF
19186 cat confdefs.h >>conftest.$ac_ext
19187 cat >>conftest.$ac_ext <<_ACEOF
19188 /* end confdefs.h.  */
19189
19190 /* Override any gcc2 internal prototype to avoid an error.  */
19191 #ifdef __cplusplus
19192 extern "C"
19193 #endif
19194 /* We use char because int might match the return type of a gcc2
19195    builtin and then its argument prototype would still apply.  */
19196 char strftime ();
19197 int
19198 main ()
19199 {
19200 strftime ();
19201   ;
19202   return 0;
19203 }
19204 _ACEOF
19205 rm -f conftest.$ac_objext conftest$ac_exeext
19206 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19207   (eval $ac_link) 2>conftest.er1
19208   ac_status=$?
19209   grep -v '^ *+' conftest.er1 >conftest.err
19210   rm -f conftest.er1
19211   cat conftest.err >&5
19212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19213   (exit $ac_status); } &&
19214          { ac_try='test -z "$ac_c_werror_flag"
19215                          || test ! -s conftest.err'
19216   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19217   (eval $ac_try) 2>&5
19218   ac_status=$?
19219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19220   (exit $ac_status); }; } &&
19221          { ac_try='test -s conftest$ac_exeext'
19222   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19223   (eval $ac_try) 2>&5
19224   ac_status=$?
19225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19226   (exit $ac_status); }; }; then
19227   ac_cv_lib_intl_strftime=yes
19228 else
19229   echo "$as_me: failed program was:" >&5
19230 sed 's/^/| /' conftest.$ac_ext >&5
19231
19232 ac_cv_lib_intl_strftime=no
19233 fi
19234 rm -f conftest.err conftest.$ac_objext \
19235       conftest$ac_exeext conftest.$ac_ext
19236 LIBS=$ac_check_lib_save_LIBS
19237 fi
19238 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
19239 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
19240 if test $ac_cv_lib_intl_strftime = yes; then
19241   cat >>confdefs.h <<\_ACEOF
19242 #define HAVE_STRFTIME 1
19243 _ACEOF
19244
19245 LIBS="-lintl $LIBS"
19246 fi
19247
19248 fi
19249 done
19250
19251
19252 for ac_func in vprintf
19253 do
19254 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19255 echo "$as_me:$LINENO: checking for $ac_func" >&5
19256 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19257 if eval "test \"\${$as_ac_var+set}\" = set"; then
19258   echo $ECHO_N "(cached) $ECHO_C" >&6
19259 else
19260   cat >conftest.$ac_ext <<_ACEOF
19261 /* confdefs.h.  */
19262 _ACEOF
19263 cat confdefs.h >>conftest.$ac_ext
19264 cat >>conftest.$ac_ext <<_ACEOF
19265 /* end confdefs.h.  */
19266 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19267    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19268 #define $ac_func innocuous_$ac_func
19269
19270 /* System header to define __stub macros and hopefully few prototypes,
19271     which can conflict with char $ac_func (); below.
19272     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19273     <limits.h> exists even on freestanding compilers.  */
19274
19275 #ifdef __STDC__
19276 # include <limits.h>
19277 #else
19278 # include <assert.h>
19279 #endif
19280
19281 #undef $ac_func
19282
19283 /* Override any gcc2 internal prototype to avoid an error.  */
19284 #ifdef __cplusplus
19285 extern "C"
19286 {
19287 #endif
19288 /* We use char because int might match the return type of a gcc2
19289    builtin and then its argument prototype would still apply.  */
19290 char $ac_func ();
19291 /* The GNU C library defines this for functions which it implements
19292     to always fail with ENOSYS.  Some functions are actually named
19293     something starting with __ and the normal name is an alias.  */
19294 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19295 choke me
19296 #else
19297 char (*f) () = $ac_func;
19298 #endif
19299 #ifdef __cplusplus
19300 }
19301 #endif
19302
19303 int
19304 main ()
19305 {
19306 return f != $ac_func;
19307   ;
19308   return 0;
19309 }
19310 _ACEOF
19311 rm -f conftest.$ac_objext conftest$ac_exeext
19312 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19313   (eval $ac_link) 2>conftest.er1
19314   ac_status=$?
19315   grep -v '^ *+' conftest.er1 >conftest.err
19316   rm -f conftest.er1
19317   cat conftest.err >&5
19318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19319   (exit $ac_status); } &&
19320          { ac_try='test -z "$ac_c_werror_flag"
19321                          || test ! -s conftest.err'
19322   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19323   (eval $ac_try) 2>&5
19324   ac_status=$?
19325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19326   (exit $ac_status); }; } &&
19327          { ac_try='test -s conftest$ac_exeext'
19328   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19329   (eval $ac_try) 2>&5
19330   ac_status=$?
19331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19332   (exit $ac_status); }; }; then
19333   eval "$as_ac_var=yes"
19334 else
19335   echo "$as_me: failed program was:" >&5
19336 sed 's/^/| /' conftest.$ac_ext >&5
19337
19338 eval "$as_ac_var=no"
19339 fi
19340 rm -f conftest.err conftest.$ac_objext \
19341       conftest$ac_exeext conftest.$ac_ext
19342 fi
19343 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19344 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19345 if test `eval echo '${'$as_ac_var'}'` = yes; then
19346   cat >>confdefs.h <<_ACEOF
19347 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19348 _ACEOF
19349
19350 echo "$as_me:$LINENO: checking for _doprnt" >&5
19351 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
19352 if test "${ac_cv_func__doprnt+set}" = set; then
19353   echo $ECHO_N "(cached) $ECHO_C" >&6
19354 else
19355   cat >conftest.$ac_ext <<_ACEOF
19356 /* confdefs.h.  */
19357 _ACEOF
19358 cat confdefs.h >>conftest.$ac_ext
19359 cat >>conftest.$ac_ext <<_ACEOF
19360 /* end confdefs.h.  */
19361 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
19362    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19363 #define _doprnt innocuous__doprnt
19364
19365 /* System header to define __stub macros and hopefully few prototypes,
19366     which can conflict with char _doprnt (); below.
19367     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19368     <limits.h> exists even on freestanding compilers.  */
19369
19370 #ifdef __STDC__
19371 # include <limits.h>
19372 #else
19373 # include <assert.h>
19374 #endif
19375
19376 #undef _doprnt
19377
19378 /* Override any gcc2 internal prototype to avoid an error.  */
19379 #ifdef __cplusplus
19380 extern "C"
19381 {
19382 #endif
19383 /* We use char because int might match the return type of a gcc2
19384    builtin and then its argument prototype would still apply.  */
19385 char _doprnt ();
19386 /* The GNU C library defines this for functions which it implements
19387     to always fail with ENOSYS.  Some functions are actually named
19388     something starting with __ and the normal name is an alias.  */
19389 #if defined (__stub__doprnt) || defined (__stub____doprnt)
19390 choke me
19391 #else
19392 char (*f) () = _doprnt;
19393 #endif
19394 #ifdef __cplusplus
19395 }
19396 #endif
19397
19398 int
19399 main ()
19400 {
19401 return f != _doprnt;
19402   ;
19403   return 0;
19404 }
19405 _ACEOF
19406 rm -f conftest.$ac_objext conftest$ac_exeext
19407 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19408   (eval $ac_link) 2>conftest.er1
19409   ac_status=$?
19410   grep -v '^ *+' conftest.er1 >conftest.err
19411   rm -f conftest.er1
19412   cat conftest.err >&5
19413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19414   (exit $ac_status); } &&
19415          { ac_try='test -z "$ac_c_werror_flag"
19416                          || test ! -s conftest.err'
19417   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19418   (eval $ac_try) 2>&5
19419   ac_status=$?
19420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19421   (exit $ac_status); }; } &&
19422          { ac_try='test -s conftest$ac_exeext'
19423   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19424   (eval $ac_try) 2>&5
19425   ac_status=$?
19426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19427   (exit $ac_status); }; }; then
19428   ac_cv_func__doprnt=yes
19429 else
19430   echo "$as_me: failed program was:" >&5
19431 sed 's/^/| /' conftest.$ac_ext >&5
19432
19433 ac_cv_func__doprnt=no
19434 fi
19435 rm -f conftest.err conftest.$ac_objext \
19436       conftest$ac_exeext conftest.$ac_ext
19437 fi
19438 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
19439 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
19440 if test $ac_cv_func__doprnt = yes; then
19441
19442 cat >>confdefs.h <<\_ACEOF
19443 #define HAVE_DOPRNT 1
19444 _ACEOF
19445
19446 fi
19447
19448 fi
19449 done
19450
19451
19452 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
19453 # for constant arguments.  Useless!
19454 echo "$as_me:$LINENO: checking for working alloca.h" >&5
19455 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
19456 if test "${ac_cv_working_alloca_h+set}" = set; then
19457   echo $ECHO_N "(cached) $ECHO_C" >&6
19458 else
19459   cat >conftest.$ac_ext <<_ACEOF
19460 /* confdefs.h.  */
19461 _ACEOF
19462 cat confdefs.h >>conftest.$ac_ext
19463 cat >>conftest.$ac_ext <<_ACEOF
19464 /* end confdefs.h.  */
19465 #include <alloca.h>
19466 int
19467 main ()
19468 {
19469 char *p = (char *) alloca (2 * sizeof (int));
19470   ;
19471   return 0;
19472 }
19473 _ACEOF
19474 rm -f conftest.$ac_objext conftest$ac_exeext
19475 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19476   (eval $ac_link) 2>conftest.er1
19477   ac_status=$?
19478   grep -v '^ *+' conftest.er1 >conftest.err
19479   rm -f conftest.er1
19480   cat conftest.err >&5
19481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19482   (exit $ac_status); } &&
19483          { ac_try='test -z "$ac_c_werror_flag"
19484                          || test ! -s conftest.err'
19485   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19486   (eval $ac_try) 2>&5
19487   ac_status=$?
19488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19489   (exit $ac_status); }; } &&
19490          { ac_try='test -s conftest$ac_exeext'
19491   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19492   (eval $ac_try) 2>&5
19493   ac_status=$?
19494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19495   (exit $ac_status); }; }; then
19496   ac_cv_working_alloca_h=yes
19497 else
19498   echo "$as_me: failed program was:" >&5
19499 sed 's/^/| /' conftest.$ac_ext >&5
19500
19501 ac_cv_working_alloca_h=no
19502 fi
19503 rm -f conftest.err conftest.$ac_objext \
19504       conftest$ac_exeext conftest.$ac_ext
19505 fi
19506 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
19507 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
19508 if test $ac_cv_working_alloca_h = yes; then
19509
19510 cat >>confdefs.h <<\_ACEOF
19511 #define HAVE_ALLOCA_H 1
19512 _ACEOF
19513
19514 fi
19515
19516 echo "$as_me:$LINENO: checking for alloca" >&5
19517 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
19518 if test "${ac_cv_func_alloca_works+set}" = set; then
19519   echo $ECHO_N "(cached) $ECHO_C" >&6
19520 else
19521   cat >conftest.$ac_ext <<_ACEOF
19522 /* confdefs.h.  */
19523 _ACEOF
19524 cat confdefs.h >>conftest.$ac_ext
19525 cat >>conftest.$ac_ext <<_ACEOF
19526 /* end confdefs.h.  */
19527 #ifdef __GNUC__
19528 # define alloca __builtin_alloca
19529 #else
19530 # ifdef _MSC_VER
19531 #  include <malloc.h>
19532 #  define alloca _alloca
19533 # else
19534 #  if HAVE_ALLOCA_H
19535 #   include <alloca.h>
19536 #  else
19537 #   ifdef _AIX
19538  #pragma alloca
19539 #   else
19540 #    ifndef alloca /* predefined by HP cc +Olibcalls */
19541 char *alloca ();
19542 #    endif
19543 #   endif
19544 #  endif
19545 # endif
19546 #endif
19547
19548 int
19549 main ()
19550 {
19551 char *p = (char *) alloca (1);
19552   ;
19553   return 0;
19554 }
19555 _ACEOF
19556 rm -f conftest.$ac_objext conftest$ac_exeext
19557 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19558   (eval $ac_link) 2>conftest.er1
19559   ac_status=$?
19560   grep -v '^ *+' conftest.er1 >conftest.err
19561   rm -f conftest.er1
19562   cat conftest.err >&5
19563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19564   (exit $ac_status); } &&
19565          { ac_try='test -z "$ac_c_werror_flag"
19566                          || test ! -s conftest.err'
19567   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19568   (eval $ac_try) 2>&5
19569   ac_status=$?
19570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19571   (exit $ac_status); }; } &&
19572          { ac_try='test -s conftest$ac_exeext'
19573   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19574   (eval $ac_try) 2>&5
19575   ac_status=$?
19576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19577   (exit $ac_status); }; }; then
19578   ac_cv_func_alloca_works=yes
19579 else
19580   echo "$as_me: failed program was:" >&5
19581 sed 's/^/| /' conftest.$ac_ext >&5
19582
19583 ac_cv_func_alloca_works=no
19584 fi
19585 rm -f conftest.err conftest.$ac_objext \
19586       conftest$ac_exeext conftest.$ac_ext
19587 fi
19588 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
19589 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
19590
19591 if test $ac_cv_func_alloca_works = yes; then
19592
19593 cat >>confdefs.h <<\_ACEOF
19594 #define HAVE_ALLOCA 1
19595 _ACEOF
19596
19597 else
19598   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
19599 # that cause trouble.  Some versions do not even contain alloca or
19600 # contain a buggy version.  If you still want to use their alloca,
19601 # use ar to extract alloca.o from them instead of compiling alloca.c.
19602
19603 ALLOCA=alloca.$ac_objext
19604
19605 cat >>confdefs.h <<\_ACEOF
19606 #define C_ALLOCA 1
19607 _ACEOF
19608
19609
19610 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
19611 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
19612 if test "${ac_cv_os_cray+set}" = set; then
19613   echo $ECHO_N "(cached) $ECHO_C" >&6
19614 else
19615   cat >conftest.$ac_ext <<_ACEOF
19616 /* confdefs.h.  */
19617 _ACEOF
19618 cat confdefs.h >>conftest.$ac_ext
19619 cat >>conftest.$ac_ext <<_ACEOF
19620 /* end confdefs.h.  */
19621 #if defined(CRAY) && ! defined(CRAY2)
19622 webecray
19623 #else
19624 wenotbecray
19625 #endif
19626
19627 _ACEOF
19628 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19629   $EGREP "webecray" >/dev/null 2>&1; then
19630   ac_cv_os_cray=yes
19631 else
19632   ac_cv_os_cray=no
19633 fi
19634 rm -f conftest*
19635
19636 fi
19637 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
19638 echo "${ECHO_T}$ac_cv_os_cray" >&6
19639 if test $ac_cv_os_cray = yes; then
19640   for ac_func in _getb67 GETB67 getb67; do
19641     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19642 echo "$as_me:$LINENO: checking for $ac_func" >&5
19643 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19644 if eval "test \"\${$as_ac_var+set}\" = set"; then
19645   echo $ECHO_N "(cached) $ECHO_C" >&6
19646 else
19647   cat >conftest.$ac_ext <<_ACEOF
19648 /* confdefs.h.  */
19649 _ACEOF
19650 cat confdefs.h >>conftest.$ac_ext
19651 cat >>conftest.$ac_ext <<_ACEOF
19652 /* end confdefs.h.  */
19653 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19654    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19655 #define $ac_func innocuous_$ac_func
19656
19657 /* System header to define __stub macros and hopefully few prototypes,
19658     which can conflict with char $ac_func (); below.
19659     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19660     <limits.h> exists even on freestanding compilers.  */
19661
19662 #ifdef __STDC__
19663 # include <limits.h>
19664 #else
19665 # include <assert.h>
19666 #endif
19667
19668 #undef $ac_func
19669
19670 /* Override any gcc2 internal prototype to avoid an error.  */
19671 #ifdef __cplusplus
19672 extern "C"
19673 {
19674 #endif
19675 /* We use char because int might match the return type of a gcc2
19676    builtin and then its argument prototype would still apply.  */
19677 char $ac_func ();
19678 /* The GNU C library defines this for functions which it implements
19679     to always fail with ENOSYS.  Some functions are actually named
19680     something starting with __ and the normal name is an alias.  */
19681 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19682 choke me
19683 #else
19684 char (*f) () = $ac_func;
19685 #endif
19686 #ifdef __cplusplus
19687 }
19688 #endif
19689
19690 int
19691 main ()
19692 {
19693 return f != $ac_func;
19694   ;
19695   return 0;
19696 }
19697 _ACEOF
19698 rm -f conftest.$ac_objext conftest$ac_exeext
19699 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19700   (eval $ac_link) 2>conftest.er1
19701   ac_status=$?
19702   grep -v '^ *+' conftest.er1 >conftest.err
19703   rm -f conftest.er1
19704   cat conftest.err >&5
19705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19706   (exit $ac_status); } &&
19707          { ac_try='test -z "$ac_c_werror_flag"
19708                          || test ! -s conftest.err'
19709   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19710   (eval $ac_try) 2>&5
19711   ac_status=$?
19712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19713   (exit $ac_status); }; } &&
19714          { ac_try='test -s conftest$ac_exeext'
19715   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19716   (eval $ac_try) 2>&5
19717   ac_status=$?
19718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19719   (exit $ac_status); }; }; then
19720   eval "$as_ac_var=yes"
19721 else
19722   echo "$as_me: failed program was:" >&5
19723 sed 's/^/| /' conftest.$ac_ext >&5
19724
19725 eval "$as_ac_var=no"
19726 fi
19727 rm -f conftest.err conftest.$ac_objext \
19728       conftest$ac_exeext conftest.$ac_ext
19729 fi
19730 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19731 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19732 if test `eval echo '${'$as_ac_var'}'` = yes; then
19733
19734 cat >>confdefs.h <<_ACEOF
19735 #define CRAY_STACKSEG_END $ac_func
19736 _ACEOF
19737
19738     break
19739 fi
19740
19741   done
19742 fi
19743
19744 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
19745 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
19746 if test "${ac_cv_c_stack_direction+set}" = set; then
19747   echo $ECHO_N "(cached) $ECHO_C" >&6
19748 else
19749   if test "$cross_compiling" = yes; then
19750   ac_cv_c_stack_direction=0
19751 else
19752   cat >conftest.$ac_ext <<_ACEOF
19753 /* confdefs.h.  */
19754 _ACEOF
19755 cat confdefs.h >>conftest.$ac_ext
19756 cat >>conftest.$ac_ext <<_ACEOF
19757 /* end confdefs.h.  */
19758 int
19759 find_stack_direction ()
19760 {
19761   static char *addr = 0;
19762   auto char dummy;
19763   if (addr == 0)
19764     {
19765       addr = &dummy;
19766       return find_stack_direction ();
19767     }
19768   else
19769     return (&dummy > addr) ? 1 : -1;
19770 }
19771
19772 int
19773 main ()
19774 {
19775   exit (find_stack_direction () < 0);
19776 }
19777 _ACEOF
19778 rm -f conftest$ac_exeext
19779 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19780   (eval $ac_link) 2>&5
19781   ac_status=$?
19782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19783   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19784   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19785   (eval $ac_try) 2>&5
19786   ac_status=$?
19787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19788   (exit $ac_status); }; }; then
19789   ac_cv_c_stack_direction=1
19790 else
19791   echo "$as_me: program exited with status $ac_status" >&5
19792 echo "$as_me: failed program was:" >&5
19793 sed 's/^/| /' conftest.$ac_ext >&5
19794
19795 ( exit $ac_status )
19796 ac_cv_c_stack_direction=-1
19797 fi
19798 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19799 fi
19800 fi
19801 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
19802 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
19803
19804 cat >>confdefs.h <<_ACEOF
19805 #define STACK_DIRECTION $ac_cv_c_stack_direction
19806 _ACEOF
19807
19808
19809 fi
19810
19811 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
19812 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
19813 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
19814 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
19815   echo $ECHO_N "(cached) $ECHO_C" >&6
19816 else
19817   ac_check_lib_save_LIBS=$LIBS
19818 LIBS="-lsun  $LIBS"
19819 cat >conftest.$ac_ext <<_ACEOF
19820 /* confdefs.h.  */
19821 _ACEOF
19822 cat confdefs.h >>conftest.$ac_ext
19823 cat >>conftest.$ac_ext <<_ACEOF
19824 /* end confdefs.h.  */
19825
19826 /* Override any gcc2 internal prototype to avoid an error.  */
19827 #ifdef __cplusplus
19828 extern "C"
19829 #endif
19830 /* We use char because int might match the return type of a gcc2
19831    builtin and then its argument prototype would still apply.  */
19832 char getmntent ();
19833 int
19834 main ()
19835 {
19836 getmntent ();
19837   ;
19838   return 0;
19839 }
19840 _ACEOF
19841 rm -f conftest.$ac_objext conftest$ac_exeext
19842 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19843   (eval $ac_link) 2>conftest.er1
19844   ac_status=$?
19845   grep -v '^ *+' conftest.er1 >conftest.err
19846   rm -f conftest.er1
19847   cat conftest.err >&5
19848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19849   (exit $ac_status); } &&
19850          { ac_try='test -z "$ac_c_werror_flag"
19851                          || test ! -s conftest.err'
19852   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19853   (eval $ac_try) 2>&5
19854   ac_status=$?
19855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19856   (exit $ac_status); }; } &&
19857          { ac_try='test -s conftest$ac_exeext'
19858   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19859   (eval $ac_try) 2>&5
19860   ac_status=$?
19861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19862   (exit $ac_status); }; }; then
19863   ac_cv_lib_sun_getmntent=yes
19864 else
19865   echo "$as_me: failed program was:" >&5
19866 sed 's/^/| /' conftest.$ac_ext >&5
19867
19868 ac_cv_lib_sun_getmntent=no
19869 fi
19870 rm -f conftest.err conftest.$ac_objext \
19871       conftest$ac_exeext conftest.$ac_ext
19872 LIBS=$ac_check_lib_save_LIBS
19873 fi
19874 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
19875 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
19876 if test $ac_cv_lib_sun_getmntent = yes; then
19877   LIBS="-lsun $LIBS"
19878 else
19879   echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
19880 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
19881 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
19882   echo $ECHO_N "(cached) $ECHO_C" >&6
19883 else
19884   ac_check_lib_save_LIBS=$LIBS
19885 LIBS="-lseq  $LIBS"
19886 cat >conftest.$ac_ext <<_ACEOF
19887 /* confdefs.h.  */
19888 _ACEOF
19889 cat confdefs.h >>conftest.$ac_ext
19890 cat >>conftest.$ac_ext <<_ACEOF
19891 /* end confdefs.h.  */
19892
19893 /* Override any gcc2 internal prototype to avoid an error.  */
19894 #ifdef __cplusplus
19895 extern "C"
19896 #endif
19897 /* We use char because int might match the return type of a gcc2
19898    builtin and then its argument prototype would still apply.  */
19899 char getmntent ();
19900 int
19901 main ()
19902 {
19903 getmntent ();
19904   ;
19905   return 0;
19906 }
19907 _ACEOF
19908 rm -f conftest.$ac_objext conftest$ac_exeext
19909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19910   (eval $ac_link) 2>conftest.er1
19911   ac_status=$?
19912   grep -v '^ *+' conftest.er1 >conftest.err
19913   rm -f conftest.er1
19914   cat conftest.err >&5
19915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19916   (exit $ac_status); } &&
19917          { ac_try='test -z "$ac_c_werror_flag"
19918                          || test ! -s conftest.err'
19919   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19920   (eval $ac_try) 2>&5
19921   ac_status=$?
19922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19923   (exit $ac_status); }; } &&
19924          { ac_try='test -s conftest$ac_exeext'
19925   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19926   (eval $ac_try) 2>&5
19927   ac_status=$?
19928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19929   (exit $ac_status); }; }; then
19930   ac_cv_lib_seq_getmntent=yes
19931 else
19932   echo "$as_me: failed program was:" >&5
19933 sed 's/^/| /' conftest.$ac_ext >&5
19934
19935 ac_cv_lib_seq_getmntent=no
19936 fi
19937 rm -f conftest.err conftest.$ac_objext \
19938       conftest$ac_exeext conftest.$ac_ext
19939 LIBS=$ac_check_lib_save_LIBS
19940 fi
19941 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
19942 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
19943 if test $ac_cv_lib_seq_getmntent = yes; then
19944   LIBS="-lseq $LIBS"
19945 else
19946   echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
19947 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
19948 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
19949   echo $ECHO_N "(cached) $ECHO_C" >&6
19950 else
19951   ac_check_lib_save_LIBS=$LIBS
19952 LIBS="-lgen  $LIBS"
19953 cat >conftest.$ac_ext <<_ACEOF
19954 /* confdefs.h.  */
19955 _ACEOF
19956 cat confdefs.h >>conftest.$ac_ext
19957 cat >>conftest.$ac_ext <<_ACEOF
19958 /* end confdefs.h.  */
19959
19960 /* Override any gcc2 internal prototype to avoid an error.  */
19961 #ifdef __cplusplus
19962 extern "C"
19963 #endif
19964 /* We use char because int might match the return type of a gcc2
19965    builtin and then its argument prototype would still apply.  */
19966 char getmntent ();
19967 int
19968 main ()
19969 {
19970 getmntent ();
19971   ;
19972   return 0;
19973 }
19974 _ACEOF
19975 rm -f conftest.$ac_objext conftest$ac_exeext
19976 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19977   (eval $ac_link) 2>conftest.er1
19978   ac_status=$?
19979   grep -v '^ *+' conftest.er1 >conftest.err
19980   rm -f conftest.er1
19981   cat conftest.err >&5
19982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19983   (exit $ac_status); } &&
19984          { ac_try='test -z "$ac_c_werror_flag"
19985                          || test ! -s conftest.err'
19986   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19987   (eval $ac_try) 2>&5
19988   ac_status=$?
19989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19990   (exit $ac_status); }; } &&
19991          { ac_try='test -s conftest$ac_exeext'
19992   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19993   (eval $ac_try) 2>&5
19994   ac_status=$?
19995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19996   (exit $ac_status); }; }; then
19997   ac_cv_lib_gen_getmntent=yes
19998 else
19999   echo "$as_me: failed program was:" >&5
20000 sed 's/^/| /' conftest.$ac_ext >&5
20001
20002 ac_cv_lib_gen_getmntent=no
20003 fi
20004 rm -f conftest.err conftest.$ac_objext \
20005       conftest$ac_exeext conftest.$ac_ext
20006 LIBS=$ac_check_lib_save_LIBS
20007 fi
20008 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
20009 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
20010 if test $ac_cv_lib_gen_getmntent = yes; then
20011   LIBS="-lgen $LIBS"
20012 fi
20013
20014 fi
20015
20016 fi
20017
20018
20019 for ac_func in getmntent
20020 do
20021 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20022 echo "$as_me:$LINENO: checking for $ac_func" >&5
20023 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20024 if eval "test \"\${$as_ac_var+set}\" = set"; then
20025   echo $ECHO_N "(cached) $ECHO_C" >&6
20026 else
20027   cat >conftest.$ac_ext <<_ACEOF
20028 /* confdefs.h.  */
20029 _ACEOF
20030 cat confdefs.h >>conftest.$ac_ext
20031 cat >>conftest.$ac_ext <<_ACEOF
20032 /* end confdefs.h.  */
20033 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20034    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20035 #define $ac_func innocuous_$ac_func
20036
20037 /* System header to define __stub macros and hopefully few prototypes,
20038     which can conflict with char $ac_func (); below.
20039     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20040     <limits.h> exists even on freestanding compilers.  */
20041
20042 #ifdef __STDC__
20043 # include <limits.h>
20044 #else
20045 # include <assert.h>
20046 #endif
20047
20048 #undef $ac_func
20049
20050 /* Override any gcc2 internal prototype to avoid an error.  */
20051 #ifdef __cplusplus
20052 extern "C"
20053 {
20054 #endif
20055 /* We use char because int might match the return type of a gcc2
20056    builtin and then its argument prototype would still apply.  */
20057 char $ac_func ();
20058 /* The GNU C library defines this for functions which it implements
20059     to always fail with ENOSYS.  Some functions are actually named
20060     something starting with __ and the normal name is an alias.  */
20061 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20062 choke me
20063 #else
20064 char (*f) () = $ac_func;
20065 #endif
20066 #ifdef __cplusplus
20067 }
20068 #endif
20069
20070 int
20071 main ()
20072 {
20073 return f != $ac_func;
20074   ;
20075   return 0;
20076 }
20077 _ACEOF
20078 rm -f conftest.$ac_objext conftest$ac_exeext
20079 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20080   (eval $ac_link) 2>conftest.er1
20081   ac_status=$?
20082   grep -v '^ *+' conftest.er1 >conftest.err
20083   rm -f conftest.er1
20084   cat conftest.err >&5
20085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20086   (exit $ac_status); } &&
20087          { ac_try='test -z "$ac_c_werror_flag"
20088                          || test ! -s conftest.err'
20089   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20090   (eval $ac_try) 2>&5
20091   ac_status=$?
20092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20093   (exit $ac_status); }; } &&
20094          { ac_try='test -s conftest$ac_exeext'
20095   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20096   (eval $ac_try) 2>&5
20097   ac_status=$?
20098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20099   (exit $ac_status); }; }; then
20100   eval "$as_ac_var=yes"
20101 else
20102   echo "$as_me: failed program was:" >&5
20103 sed 's/^/| /' conftest.$ac_ext >&5
20104
20105 eval "$as_ac_var=no"
20106 fi
20107 rm -f conftest.err conftest.$ac_objext \
20108       conftest$ac_exeext conftest.$ac_ext
20109 fi
20110 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20111 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20112 if test `eval echo '${'$as_ac_var'}'` = yes; then
20113   cat >>confdefs.h <<_ACEOF
20114 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20115 _ACEOF
20116
20117 fi
20118 done
20119
20120
20121 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
20122 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
20123 if test "${ac_cv_func_closedir_void+set}" = set; then
20124   echo $ECHO_N "(cached) $ECHO_C" >&6
20125 else
20126   if test "$cross_compiling" = yes; then
20127   ac_cv_func_closedir_void=yes
20128 else
20129   cat >conftest.$ac_ext <<_ACEOF
20130 /* confdefs.h.  */
20131 _ACEOF
20132 cat confdefs.h >>conftest.$ac_ext
20133 cat >>conftest.$ac_ext <<_ACEOF
20134 /* end confdefs.h.  */
20135 $ac_includes_default
20136 #include <$ac_header_dirent>
20137 #ifndef __cplusplus
20138 int closedir ();
20139 #endif
20140
20141 int
20142 main ()
20143 {
20144 exit (closedir (opendir (".")) != 0);
20145   ;
20146   return 0;
20147 }
20148 _ACEOF
20149 rm -f conftest$ac_exeext
20150 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20151   (eval $ac_link) 2>&5
20152   ac_status=$?
20153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20154   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20155   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20156   (eval $ac_try) 2>&5
20157   ac_status=$?
20158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20159   (exit $ac_status); }; }; then
20160   ac_cv_func_closedir_void=no
20161 else
20162   echo "$as_me: program exited with status $ac_status" >&5
20163 echo "$as_me: failed program was:" >&5
20164 sed 's/^/| /' conftest.$ac_ext >&5
20165
20166 ( exit $ac_status )
20167 ac_cv_func_closedir_void=yes
20168 fi
20169 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20170 fi
20171 fi
20172 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
20173 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
20174 if test $ac_cv_func_closedir_void = yes; then
20175
20176 cat >>confdefs.h <<\_ACEOF
20177 #define CLOSEDIR_VOID 1
20178 _ACEOF
20179
20180 fi
20181
20182 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
20183 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
20184 if test "${ac_cv_func_setpgrp_void+set}" = set; then
20185   echo $ECHO_N "(cached) $ECHO_C" >&6
20186 else
20187   if test "$cross_compiling" = yes; then
20188   { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
20189 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
20190    { (exit 1); exit 1; }; }
20191 else
20192   cat >conftest.$ac_ext <<_ACEOF
20193 /* confdefs.h.  */
20194 _ACEOF
20195 cat confdefs.h >>conftest.$ac_ext
20196 cat >>conftest.$ac_ext <<_ACEOF
20197 /* end confdefs.h.  */
20198 #if HAVE_UNISTD_H
20199 # include <unistd.h>
20200 #endif
20201
20202 int
20203 main ()
20204 {
20205 /* If this system has a BSD-style setpgrp which takes arguments,
20206   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
20207   exit successfully. */
20208   exit (setpgrp (1,1) == -1 ? 0 : 1);
20209   ;
20210   return 0;
20211 }
20212 _ACEOF
20213 rm -f conftest$ac_exeext
20214 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20215   (eval $ac_link) 2>&5
20216   ac_status=$?
20217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20218   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20219   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20220   (eval $ac_try) 2>&5
20221   ac_status=$?
20222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20223   (exit $ac_status); }; }; then
20224   ac_cv_func_setpgrp_void=no
20225 else
20226   echo "$as_me: program exited with status $ac_status" >&5
20227 echo "$as_me: failed program was:" >&5
20228 sed 's/^/| /' conftest.$ac_ext >&5
20229
20230 ( exit $ac_status )
20231 ac_cv_func_setpgrp_void=yes
20232 fi
20233 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20234 fi
20235 fi
20236 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
20237 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
20238 if test $ac_cv_func_setpgrp_void = yes; then
20239
20240 cat >>confdefs.h <<\_ACEOF
20241 #define SETPGRP_VOID 1
20242 _ACEOF
20243
20244 fi
20245                       # AC_FUNC_FNMATCH    dnl use local version
20246
20247
20248 echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
20249 echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
20250 if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
20251   echo $ECHO_N "(cached) $ECHO_C" >&6
20252 else
20253   ac_check_lib_save_LIBS=$LIBS
20254 LIBS="-lxpg4  $LIBS"
20255 cat >conftest.$ac_ext <<_ACEOF
20256 /* confdefs.h.  */
20257 _ACEOF
20258 cat confdefs.h >>conftest.$ac_ext
20259 cat >>conftest.$ac_ext <<_ACEOF
20260 /* end confdefs.h.  */
20261
20262 /* Override any gcc2 internal prototype to avoid an error.  */
20263 #ifdef __cplusplus
20264 extern "C"
20265 #endif
20266 /* We use char because int might match the return type of a gcc2
20267    builtin and then its argument prototype would still apply.  */
20268 char setlocale ();
20269 int
20270 main ()
20271 {
20272 setlocale ();
20273   ;
20274   return 0;
20275 }
20276 _ACEOF
20277 rm -f conftest.$ac_objext conftest$ac_exeext
20278 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20279   (eval $ac_link) 2>conftest.er1
20280   ac_status=$?
20281   grep -v '^ *+' conftest.er1 >conftest.err
20282   rm -f conftest.er1
20283   cat conftest.err >&5
20284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20285   (exit $ac_status); } &&
20286          { ac_try='test -z "$ac_c_werror_flag"
20287                          || test ! -s conftest.err'
20288   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20289   (eval $ac_try) 2>&5
20290   ac_status=$?
20291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20292   (exit $ac_status); }; } &&
20293          { ac_try='test -s conftest$ac_exeext'
20294   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20295   (eval $ac_try) 2>&5
20296   ac_status=$?
20297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20298   (exit $ac_status); }; }; then
20299   ac_cv_lib_xpg4_setlocale=yes
20300 else
20301   echo "$as_me: failed program was:" >&5
20302 sed 's/^/| /' conftest.$ac_ext >&5
20303
20304 ac_cv_lib_xpg4_setlocale=no
20305 fi
20306 rm -f conftest.err conftest.$ac_objext \
20307       conftest$ac_exeext conftest.$ac_ext
20308 LIBS=$ac_check_lib_save_LIBS
20309 fi
20310 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
20311 echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
20312 if test $ac_cv_lib_xpg4_setlocale = yes; then
20313   LIBS="$LIBS -lxpg4"
20314 fi
20315
20316
20317
20318
20319 echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
20320 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6
20321 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
20322   echo $ECHO_N "(cached) $ECHO_C" >&6
20323 else
20324   ac_check_lib_save_LIBS=$LIBS
20325 LIBS="-lsun  $LIBS"
20326 cat >conftest.$ac_ext <<_ACEOF
20327 /* confdefs.h.  */
20328 _ACEOF
20329 cat confdefs.h >>conftest.$ac_ext
20330 cat >>conftest.$ac_ext <<_ACEOF
20331 /* end confdefs.h.  */
20332
20333 /* Override any gcc2 internal prototype to avoid an error.  */
20334 #ifdef __cplusplus
20335 extern "C"
20336 #endif
20337 /* We use char because int might match the return type of a gcc2
20338    builtin and then its argument prototype would still apply.  */
20339 char getpwnam ();
20340 int
20341 main ()
20342 {
20343 getpwnam ();
20344   ;
20345   return 0;
20346 }
20347 _ACEOF
20348 rm -f conftest.$ac_objext conftest$ac_exeext
20349 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20350   (eval $ac_link) 2>conftest.er1
20351   ac_status=$?
20352   grep -v '^ *+' conftest.er1 >conftest.err
20353   rm -f conftest.er1
20354   cat conftest.err >&5
20355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20356   (exit $ac_status); } &&
20357          { ac_try='test -z "$ac_c_werror_flag"
20358                          || test ! -s conftest.err'
20359   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20360   (eval $ac_try) 2>&5
20361   ac_status=$?
20362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20363   (exit $ac_status); }; } &&
20364          { ac_try='test -s conftest$ac_exeext'
20365   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20366   (eval $ac_try) 2>&5
20367   ac_status=$?
20368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20369   (exit $ac_status); }; }; then
20370   ac_cv_lib_sun_getpwnam=yes
20371 else
20372   echo "$as_me: failed program was:" >&5
20373 sed 's/^/| /' conftest.$ac_ext >&5
20374
20375 ac_cv_lib_sun_getpwnam=no
20376 fi
20377 rm -f conftest.err conftest.$ac_objext \
20378       conftest$ac_exeext conftest.$ac_ext
20379 LIBS=$ac_check_lib_save_LIBS
20380 fi
20381 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
20382 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6
20383 if test $ac_cv_lib_sun_getpwnam = yes; then
20384   cat >>confdefs.h <<_ACEOF
20385 #define HAVE_LIBSUN 1
20386 _ACEOF
20387
20388   LIBS="-lsun $LIBS"
20389
20390 fi
20391
20392
20393
20394 for ac_header in zlib.h
20395 do
20396 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20397 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20398   echo "$as_me:$LINENO: checking for $ac_header" >&5
20399 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20400 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20401   echo $ECHO_N "(cached) $ECHO_C" >&6
20402 fi
20403 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20404 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20405 else
20406   # Is the header compilable?
20407 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20408 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20409 cat >conftest.$ac_ext <<_ACEOF
20410 /* confdefs.h.  */
20411 _ACEOF
20412 cat confdefs.h >>conftest.$ac_ext
20413 cat >>conftest.$ac_ext <<_ACEOF
20414 /* end confdefs.h.  */
20415 $ac_includes_default
20416 #include <$ac_header>
20417 _ACEOF
20418 rm -f conftest.$ac_objext
20419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20420   (eval $ac_compile) 2>conftest.er1
20421   ac_status=$?
20422   grep -v '^ *+' conftest.er1 >conftest.err
20423   rm -f conftest.er1
20424   cat conftest.err >&5
20425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20426   (exit $ac_status); } &&
20427          { ac_try='test -z "$ac_c_werror_flag"
20428                          || test ! -s conftest.err'
20429   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20430   (eval $ac_try) 2>&5
20431   ac_status=$?
20432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20433   (exit $ac_status); }; } &&
20434          { ac_try='test -s conftest.$ac_objext'
20435   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20436   (eval $ac_try) 2>&5
20437   ac_status=$?
20438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20439   (exit $ac_status); }; }; then
20440   ac_header_compiler=yes
20441 else
20442   echo "$as_me: failed program was:" >&5
20443 sed 's/^/| /' conftest.$ac_ext >&5
20444
20445 ac_header_compiler=no
20446 fi
20447 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20448 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20449 echo "${ECHO_T}$ac_header_compiler" >&6
20450
20451 # Is the header present?
20452 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20453 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20454 cat >conftest.$ac_ext <<_ACEOF
20455 /* confdefs.h.  */
20456 _ACEOF
20457 cat confdefs.h >>conftest.$ac_ext
20458 cat >>conftest.$ac_ext <<_ACEOF
20459 /* end confdefs.h.  */
20460 #include <$ac_header>
20461 _ACEOF
20462 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20463   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20464   ac_status=$?
20465   grep -v '^ *+' conftest.er1 >conftest.err
20466   rm -f conftest.er1
20467   cat conftest.err >&5
20468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20469   (exit $ac_status); } >/dev/null; then
20470   if test -s conftest.err; then
20471     ac_cpp_err=$ac_c_preproc_warn_flag
20472     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20473   else
20474     ac_cpp_err=
20475   fi
20476 else
20477   ac_cpp_err=yes
20478 fi
20479 if test -z "$ac_cpp_err"; then
20480   ac_header_preproc=yes
20481 else
20482   echo "$as_me: failed program was:" >&5
20483 sed 's/^/| /' conftest.$ac_ext >&5
20484
20485   ac_header_preproc=no
20486 fi
20487 rm -f conftest.err conftest.$ac_ext
20488 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20489 echo "${ECHO_T}$ac_header_preproc" >&6
20490
20491 # So?  What about this header?
20492 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20493   yes:no: )
20494     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20495 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20496     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20497 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20498     ac_header_preproc=yes
20499     ;;
20500   no:yes:* )
20501     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20502 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20503     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20504 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20505     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20506 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20507     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20508 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20509     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20510 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20511     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20512 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20513     (
20514       cat <<\_ASBOX
20515 ## ------------------------------------------ ##
20516 ## Report this to the AC_PACKAGE_NAME lists.  ##
20517 ## ------------------------------------------ ##
20518 _ASBOX
20519     ) |
20520       sed "s/^/$as_me: WARNING:     /" >&2
20521     ;;
20522 esac
20523 echo "$as_me:$LINENO: checking for $ac_header" >&5
20524 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20525 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20526   echo $ECHO_N "(cached) $ECHO_C" >&6
20527 else
20528   eval "$as_ac_Header=\$ac_header_preproc"
20529 fi
20530 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20531 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20532
20533 fi
20534 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20535   cat >>confdefs.h <<_ACEOF
20536 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20537 _ACEOF
20538
20539 fi
20540
20541 done
20542
20543 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
20544 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
20545 if test "${ac_cv_lib_z_deflate+set}" = set; then
20546   echo $ECHO_N "(cached) $ECHO_C" >&6
20547 else
20548   ac_check_lib_save_LIBS=$LIBS
20549 LIBS="-lz  $LIBS"
20550 cat >conftest.$ac_ext <<_ACEOF
20551 /* confdefs.h.  */
20552 _ACEOF
20553 cat confdefs.h >>conftest.$ac_ext
20554 cat >>conftest.$ac_ext <<_ACEOF
20555 /* end confdefs.h.  */
20556
20557 /* Override any gcc2 internal prototype to avoid an error.  */
20558 #ifdef __cplusplus
20559 extern "C"
20560 #endif
20561 /* We use char because int might match the return type of a gcc2
20562    builtin and then its argument prototype would still apply.  */
20563 char deflate ();
20564 int
20565 main ()
20566 {
20567 deflate ();
20568   ;
20569   return 0;
20570 }
20571 _ACEOF
20572 rm -f conftest.$ac_objext conftest$ac_exeext
20573 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20574   (eval $ac_link) 2>conftest.er1
20575   ac_status=$?
20576   grep -v '^ *+' conftest.er1 >conftest.err
20577   rm -f conftest.er1
20578   cat conftest.err >&5
20579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20580   (exit $ac_status); } &&
20581          { ac_try='test -z "$ac_c_werror_flag"
20582                          || test ! -s conftest.err'
20583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20584   (eval $ac_try) 2>&5
20585   ac_status=$?
20586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20587   (exit $ac_status); }; } &&
20588          { ac_try='test -s conftest$ac_exeext'
20589   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20590   (eval $ac_try) 2>&5
20591   ac_status=$?
20592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20593   (exit $ac_status); }; }; then
20594   ac_cv_lib_z_deflate=yes
20595 else
20596   echo "$as_me: failed program was:" >&5
20597 sed 's/^/| /' conftest.$ac_ext >&5
20598
20599 ac_cv_lib_z_deflate=no
20600 fi
20601 rm -f conftest.err conftest.$ac_objext \
20602       conftest$ac_exeext conftest.$ac_ext
20603 LIBS=$ac_check_lib_save_LIBS
20604 fi
20605 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
20606 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
20607 if test $ac_cv_lib_z_deflate = yes; then
20608   FDLIBS="-lz"
20609 fi
20610
20611 have_zlib=no
20612 if test x$FDLIBS = x-lz; then
20613   cat >>confdefs.h <<\_ACEOF
20614 #define HAVE_LIBZ 1
20615 _ACEOF
20616
20617   have_zlib=yes
20618 fi
20619
20620 if test "${ac_cv_header_sys_acl_h+set}" = set; then
20621   echo "$as_me:$LINENO: checking for sys/acl.h" >&5
20622 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
20623 if test "${ac_cv_header_sys_acl_h+set}" = set; then
20624   echo $ECHO_N "(cached) $ECHO_C" >&6
20625 fi
20626 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
20627 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
20628 else
20629   # Is the header compilable?
20630 echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
20631 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6
20632 cat >conftest.$ac_ext <<_ACEOF
20633 /* confdefs.h.  */
20634 _ACEOF
20635 cat confdefs.h >>conftest.$ac_ext
20636 cat >>conftest.$ac_ext <<_ACEOF
20637 /* end confdefs.h.  */
20638 $ac_includes_default
20639 #include <sys/acl.h>
20640 _ACEOF
20641 rm -f conftest.$ac_objext
20642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20643   (eval $ac_compile) 2>conftest.er1
20644   ac_status=$?
20645   grep -v '^ *+' conftest.er1 >conftest.err
20646   rm -f conftest.er1
20647   cat conftest.err >&5
20648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20649   (exit $ac_status); } &&
20650          { ac_try='test -z "$ac_c_werror_flag"
20651                          || test ! -s conftest.err'
20652   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20653   (eval $ac_try) 2>&5
20654   ac_status=$?
20655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20656   (exit $ac_status); }; } &&
20657          { ac_try='test -s conftest.$ac_objext'
20658   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20659   (eval $ac_try) 2>&5
20660   ac_status=$?
20661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20662   (exit $ac_status); }; }; then
20663   ac_header_compiler=yes
20664 else
20665   echo "$as_me: failed program was:" >&5
20666 sed 's/^/| /' conftest.$ac_ext >&5
20667
20668 ac_header_compiler=no
20669 fi
20670 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20671 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20672 echo "${ECHO_T}$ac_header_compiler" >&6
20673
20674 # Is the header present?
20675 echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
20676 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6
20677 cat >conftest.$ac_ext <<_ACEOF
20678 /* confdefs.h.  */
20679 _ACEOF
20680 cat confdefs.h >>conftest.$ac_ext
20681 cat >>conftest.$ac_ext <<_ACEOF
20682 /* end confdefs.h.  */
20683 #include <sys/acl.h>
20684 _ACEOF
20685 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20686   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20687   ac_status=$?
20688   grep -v '^ *+' conftest.er1 >conftest.err
20689   rm -f conftest.er1
20690   cat conftest.err >&5
20691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20692   (exit $ac_status); } >/dev/null; then
20693   if test -s conftest.err; then
20694     ac_cpp_err=$ac_c_preproc_warn_flag
20695     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20696   else
20697     ac_cpp_err=
20698   fi
20699 else
20700   ac_cpp_err=yes
20701 fi
20702 if test -z "$ac_cpp_err"; then
20703   ac_header_preproc=yes
20704 else
20705   echo "$as_me: failed program was:" >&5
20706 sed 's/^/| /' conftest.$ac_ext >&5
20707
20708   ac_header_preproc=no
20709 fi
20710 rm -f conftest.err conftest.$ac_ext
20711 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20712 echo "${ECHO_T}$ac_header_preproc" >&6
20713
20714 # So?  What about this header?
20715 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20716   yes:no: )
20717     { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
20718 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20719     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the compiler's result" >&5
20720 echo "$as_me: WARNING: sys/acl.h: proceeding with the compiler's result" >&2;}
20721     ac_header_preproc=yes
20722     ;;
20723   no:yes:* )
20724     { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
20725 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
20726     { echo "$as_me:$LINENO: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&5
20727 echo "$as_me: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&2;}
20728     { echo "$as_me:$LINENO: WARNING: sys/acl.h: see the Autoconf documentation" >&5
20729 echo "$as_me: WARNING: sys/acl.h: see the Autoconf documentation" >&2;}
20730     { echo "$as_me:$LINENO: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&5
20731 echo "$as_me: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
20732     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
20733 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
20734     { echo "$as_me:$LINENO: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&5
20735 echo "$as_me: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&2;}
20736     (
20737       cat <<\_ASBOX
20738 ## ------------------------------------------ ##
20739 ## Report this to the AC_PACKAGE_NAME lists.  ##
20740 ## ------------------------------------------ ##
20741 _ASBOX
20742     ) |
20743       sed "s/^/$as_me: WARNING:     /" >&2
20744     ;;
20745 esac
20746 echo "$as_me:$LINENO: checking for sys/acl.h" >&5
20747 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
20748 if test "${ac_cv_header_sys_acl_h+set}" = set; then
20749   echo $ECHO_N "(cached) $ECHO_C" >&6
20750 else
20751   ac_cv_header_sys_acl_h=$ac_header_preproc
20752 fi
20753 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
20754 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
20755
20756 fi
20757
20758
20759 echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
20760 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6
20761 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
20762   echo $ECHO_N "(cached) $ECHO_C" >&6
20763 else
20764   ac_check_lib_save_LIBS=$LIBS
20765 LIBS="-lacl  $LIBS"
20766 cat >conftest.$ac_ext <<_ACEOF
20767 /* confdefs.h.  */
20768 _ACEOF
20769 cat confdefs.h >>conftest.$ac_ext
20770 cat >>conftest.$ac_ext <<_ACEOF
20771 /* end confdefs.h.  */
20772
20773 /* Override any gcc2 internal prototype to avoid an error.  */
20774 #ifdef __cplusplus
20775 extern "C"
20776 #endif
20777 /* We use char because int might match the return type of a gcc2
20778    builtin and then its argument prototype would still apply.  */
20779 char acl_get_file ();
20780 int
20781 main ()
20782 {
20783 acl_get_file ();
20784   ;
20785   return 0;
20786 }
20787 _ACEOF
20788 rm -f conftest.$ac_objext conftest$ac_exeext
20789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20790   (eval $ac_link) 2>conftest.er1
20791   ac_status=$?
20792   grep -v '^ *+' conftest.er1 >conftest.err
20793   rm -f conftest.er1
20794   cat conftest.err >&5
20795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20796   (exit $ac_status); } &&
20797          { ac_try='test -z "$ac_c_werror_flag"
20798                          || test ! -s conftest.err'
20799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20800   (eval $ac_try) 2>&5
20801   ac_status=$?
20802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20803   (exit $ac_status); }; } &&
20804          { ac_try='test -s conftest$ac_exeext'
20805   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20806   (eval $ac_try) 2>&5
20807   ac_status=$?
20808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20809   (exit $ac_status); }; }; then
20810   ac_cv_lib_acl_acl_get_file=yes
20811 else
20812   echo "$as_me: failed program was:" >&5
20813 sed 's/^/| /' conftest.$ac_ext >&5
20814
20815 ac_cv_lib_acl_acl_get_file=no
20816 fi
20817 rm -f conftest.err conftest.$ac_objext \
20818       conftest$ac_exeext conftest.$ac_ext
20819 LIBS=$ac_check_lib_save_LIBS
20820 fi
20821 echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
20822 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6
20823 if test $ac_cv_lib_acl_acl_get_file = yes; then
20824   FDLIBS="-lacl $FDLIBS"
20825 fi
20826
20827 have_acl=no
20828 if test $ac_cv_lib_acl_acl_get_file = yes; then
20829    cat >>confdefs.h <<\_ACEOF
20830 #define HAVE_ACL 1
20831 _ACEOF
20832
20833    have_acl=yes
20834 fi
20835
20836 PTHREAD_LIB=""
20837 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
20838 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
20839 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
20840   echo $ECHO_N "(cached) $ECHO_C" >&6
20841 else
20842   ac_check_lib_save_LIBS=$LIBS
20843 LIBS="-lpthread  $LIBS"
20844 cat >conftest.$ac_ext <<_ACEOF
20845 /* confdefs.h.  */
20846 _ACEOF
20847 cat confdefs.h >>conftest.$ac_ext
20848 cat >>conftest.$ac_ext <<_ACEOF
20849 /* end confdefs.h.  */
20850
20851 /* Override any gcc2 internal prototype to avoid an error.  */
20852 #ifdef __cplusplus
20853 extern "C"
20854 #endif
20855 /* We use char because int might match the return type of a gcc2
20856    builtin and then its argument prototype would still apply.  */
20857 char pthread_create ();
20858 int
20859 main ()
20860 {
20861 pthread_create ();
20862   ;
20863   return 0;
20864 }
20865 _ACEOF
20866 rm -f conftest.$ac_objext conftest$ac_exeext
20867 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20868   (eval $ac_link) 2>conftest.er1
20869   ac_status=$?
20870   grep -v '^ *+' conftest.er1 >conftest.err
20871   rm -f conftest.er1
20872   cat conftest.err >&5
20873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20874   (exit $ac_status); } &&
20875          { ac_try='test -z "$ac_c_werror_flag"
20876                          || test ! -s conftest.err'
20877   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20878   (eval $ac_try) 2>&5
20879   ac_status=$?
20880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20881   (exit $ac_status); }; } &&
20882          { ac_try='test -s conftest$ac_exeext'
20883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20884   (eval $ac_try) 2>&5
20885   ac_status=$?
20886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20887   (exit $ac_status); }; }; then
20888   ac_cv_lib_pthread_pthread_create=yes
20889 else
20890   echo "$as_me: failed program was:" >&5
20891 sed 's/^/| /' conftest.$ac_ext >&5
20892
20893 ac_cv_lib_pthread_pthread_create=no
20894 fi
20895 rm -f conftest.err conftest.$ac_objext \
20896       conftest$ac_exeext conftest.$ac_ext
20897 LIBS=$ac_check_lib_save_LIBS
20898 fi
20899 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
20900 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
20901 if test $ac_cv_lib_pthread_pthread_create = yes; then
20902   PTHREAD_LIB="-lpthread"
20903 else
20904   echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
20905 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
20906 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
20907   echo $ECHO_N "(cached) $ECHO_C" >&6
20908 else
20909   ac_check_lib_save_LIBS=$LIBS
20910 LIBS="-lpthreads  $LIBS"
20911 cat >conftest.$ac_ext <<_ACEOF
20912 /* confdefs.h.  */
20913 _ACEOF
20914 cat confdefs.h >>conftest.$ac_ext
20915 cat >>conftest.$ac_ext <<_ACEOF
20916 /* end confdefs.h.  */
20917
20918 /* Override any gcc2 internal prototype to avoid an error.  */
20919 #ifdef __cplusplus
20920 extern "C"
20921 #endif
20922 /* We use char because int might match the return type of a gcc2
20923    builtin and then its argument prototype would still apply.  */
20924 char pthread_create ();
20925 int
20926 main ()
20927 {
20928 pthread_create ();
20929   ;
20930   return 0;
20931 }
20932 _ACEOF
20933 rm -f conftest.$ac_objext conftest$ac_exeext
20934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20935   (eval $ac_link) 2>conftest.er1
20936   ac_status=$?
20937   grep -v '^ *+' conftest.er1 >conftest.err
20938   rm -f conftest.er1
20939   cat conftest.err >&5
20940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20941   (exit $ac_status); } &&
20942          { ac_try='test -z "$ac_c_werror_flag"
20943                          || test ! -s conftest.err'
20944   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20945   (eval $ac_try) 2>&5
20946   ac_status=$?
20947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20948   (exit $ac_status); }; } &&
20949          { ac_try='test -s conftest$ac_exeext'
20950   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20951   (eval $ac_try) 2>&5
20952   ac_status=$?
20953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20954   (exit $ac_status); }; }; then
20955   ac_cv_lib_pthreads_pthread_create=yes
20956 else
20957   echo "$as_me: failed program was:" >&5
20958 sed 's/^/| /' conftest.$ac_ext >&5
20959
20960 ac_cv_lib_pthreads_pthread_create=no
20961 fi
20962 rm -f conftest.err conftest.$ac_objext \
20963       conftest$ac_exeext conftest.$ac_ext
20964 LIBS=$ac_check_lib_save_LIBS
20965 fi
20966 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
20967 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
20968 if test $ac_cv_lib_pthreads_pthread_create = yes; then
20969   PTHREAD_LIB="-lpthreads"
20970 else
20971   echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
20972 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
20973 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
20974   echo $ECHO_N "(cached) $ECHO_C" >&6
20975 else
20976   ac_check_lib_save_LIBS=$LIBS
20977 LIBS="-lc_r  $LIBS"
20978 cat >conftest.$ac_ext <<_ACEOF
20979 /* confdefs.h.  */
20980 _ACEOF
20981 cat confdefs.h >>conftest.$ac_ext
20982 cat >>conftest.$ac_ext <<_ACEOF
20983 /* end confdefs.h.  */
20984
20985 /* Override any gcc2 internal prototype to avoid an error.  */
20986 #ifdef __cplusplus
20987 extern "C"
20988 #endif
20989 /* We use char because int might match the return type of a gcc2
20990    builtin and then its argument prototype would still apply.  */
20991 char pthread_create ();
20992 int
20993 main ()
20994 {
20995 pthread_create ();
20996   ;
20997   return 0;
20998 }
20999 _ACEOF
21000 rm -f conftest.$ac_objext conftest$ac_exeext
21001 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21002   (eval $ac_link) 2>conftest.er1
21003   ac_status=$?
21004   grep -v '^ *+' conftest.er1 >conftest.err
21005   rm -f conftest.er1
21006   cat conftest.err >&5
21007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21008   (exit $ac_status); } &&
21009          { ac_try='test -z "$ac_c_werror_flag"
21010                          || test ! -s conftest.err'
21011   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21012   (eval $ac_try) 2>&5
21013   ac_status=$?
21014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21015   (exit $ac_status); }; } &&
21016          { ac_try='test -s conftest$ac_exeext'
21017   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21018   (eval $ac_try) 2>&5
21019   ac_status=$?
21020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21021   (exit $ac_status); }; }; then
21022   ac_cv_lib_c_r_pthread_create=yes
21023 else
21024   echo "$as_me: failed program was:" >&5
21025 sed 's/^/| /' conftest.$ac_ext >&5
21026
21027 ac_cv_lib_c_r_pthread_create=no
21028 fi
21029 rm -f conftest.err conftest.$ac_objext \
21030       conftest$ac_exeext conftest.$ac_ext
21031 LIBS=$ac_check_lib_save_LIBS
21032 fi
21033 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
21034 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
21035 if test $ac_cv_lib_c_r_pthread_create = yes; then
21036   PTHREAD_LIB="-lc_r"
21037 else
21038   echo "$as_me:$LINENO: checking for pthread_create" >&5
21039 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6
21040 if test "${ac_cv_func_pthread_create+set}" = set; then
21041   echo $ECHO_N "(cached) $ECHO_C" >&6
21042 else
21043   cat >conftest.$ac_ext <<_ACEOF
21044 /* confdefs.h.  */
21045 _ACEOF
21046 cat confdefs.h >>conftest.$ac_ext
21047 cat >>conftest.$ac_ext <<_ACEOF
21048 /* end confdefs.h.  */
21049 /* Define pthread_create to an innocuous variant, in case <limits.h> declares pthread_create.
21050    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21051 #define pthread_create innocuous_pthread_create
21052
21053 /* System header to define __stub macros and hopefully few prototypes,
21054     which can conflict with char pthread_create (); below.
21055     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21056     <limits.h> exists even on freestanding compilers.  */
21057
21058 #ifdef __STDC__
21059 # include <limits.h>
21060 #else
21061 # include <assert.h>
21062 #endif
21063
21064 #undef pthread_create
21065
21066 /* Override any gcc2 internal prototype to avoid an error.  */
21067 #ifdef __cplusplus
21068 extern "C"
21069 {
21070 #endif
21071 /* We use char because int might match the return type of a gcc2
21072    builtin and then its argument prototype would still apply.  */
21073 char pthread_create ();
21074 /* The GNU C library defines this for functions which it implements
21075     to always fail with ENOSYS.  Some functions are actually named
21076     something starting with __ and the normal name is an alias.  */
21077 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
21078 choke me
21079 #else
21080 char (*f) () = pthread_create;
21081 #endif
21082 #ifdef __cplusplus
21083 }
21084 #endif
21085
21086 int
21087 main ()
21088 {
21089 return f != pthread_create;
21090   ;
21091   return 0;
21092 }
21093 _ACEOF
21094 rm -f conftest.$ac_objext conftest$ac_exeext
21095 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21096   (eval $ac_link) 2>conftest.er1
21097   ac_status=$?
21098   grep -v '^ *+' conftest.er1 >conftest.err
21099   rm -f conftest.er1
21100   cat conftest.err >&5
21101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21102   (exit $ac_status); } &&
21103          { ac_try='test -z "$ac_c_werror_flag"
21104                          || test ! -s conftest.err'
21105   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21106   (eval $ac_try) 2>&5
21107   ac_status=$?
21108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21109   (exit $ac_status); }; } &&
21110          { ac_try='test -s conftest$ac_exeext'
21111   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21112   (eval $ac_try) 2>&5
21113   ac_status=$?
21114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21115   (exit $ac_status); }; }; then
21116   ac_cv_func_pthread_create=yes
21117 else
21118   echo "$as_me: failed program was:" >&5
21119 sed 's/^/| /' conftest.$ac_ext >&5
21120
21121 ac_cv_func_pthread_create=no
21122 fi
21123 rm -f conftest.err conftest.$ac_objext \
21124       conftest$ac_exeext conftest.$ac_ext
21125 fi
21126 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
21127 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6
21128
21129
21130 fi
21131
21132
21133 fi
21134
21135
21136 fi
21137
21138
21139
21140 cat >>confdefs.h <<\_ACEOF
21141 #define FDLIBS 1
21142 _ACEOF
21143
21144
21145
21146 CFLAGS=${CFLAGS--O}
21147 LDFLAGS=${LDFLAGS--O}
21148 DB_LIBS="${SQL_LFLAGS}"
21149
21150 CPPFLAGS="$CPPFLAGS"
21151
21152
21153
21154
21155
21156
21157
21158
21159
21160
21161
21162
21163
21164
21165 OBJLIST=
21166
21167
21168 lld="lld"
21169 llu="llu"
21170
21171 WCFLAGS=
21172 WLDFLAGS=
21173
21174 #
21175 # Finally we set appropriate distribution specific
21176 #  variables and defaults
21177 #
21178 # PFILES are platform specific files
21179 PFILES="platforms/Makefile"
21180 PSCMD="ps -e"
21181 WIN32=
21182 MACOSX=
21183 hostname=`uname -n | cut -d '.' -f 1`
21184 case "$DISTNAME" in
21185 aix)
21186         DISTVER=`uname -r`
21187         PSCMD="ps -e -o pid,comm"
21188         PFILES="${PFILES} \
21189            platforms/aix/Makefile"
21190         TAPEDRIVE="/dev/rmt0.1"
21191   ;;
21192 alpha)
21193         DISTVER=`uname -r`
21194         PTHREAD_LIB="-lpthread -lexc"
21195         if test "${CC}" = "gcc" ; then
21196            lld="lld"
21197            llu="llu"
21198         else
21199            lld="ld"
21200            llu="lu"
21201         fi
21202         TAPEDRIVE="/dev/nrmt0"
21203   ;;
21204 bsdi)
21205         DISTVER=`uname -a |awk '{print $3}'`
21206         TAPEDRIVE="/dev/nrmt0"
21207         PTHREAD_LIB="-pthread"
21208         CFLAGS="${CFLAGS} -pthread"
21209         PSCMD="ps -x -o pid,command"
21210         lld="qd"
21211         llu="qu"
21212         PFILES="${PFILES} \
21213             platforms/bsdi/Makefile \
21214             platforms/bsdi/bacula-fd \
21215             platforms/bsdi/bacula-sd \
21216             platforms/bsdi/bacula-dir"
21217         largefile_support="yes"
21218   ;;
21219 cygwin)
21220         DISTVER=`uname -a |awk '{print $3}'`
21221         TAPEDRIVE="/dev/nrst0"
21222         WIN32=win32
21223         WCFLAGS="-mwindows"
21224         WLDFLAGS="-mwindows"
21225   ;;
21226 darwin)
21227         DISTVER=`uname -r`
21228         TAPEDRIVE="/dev/nst0"
21229         PSCMD="ps -e -o pid,command"
21230         MACOSX=macosx
21231         PFILES="${PFILES} \
21232            platforms/darwin/Makefile"
21233   ;;
21234 debian)
21235         DISTVER=`cat /etc/debian_version`
21236         TAPEDRIVE="/dev/nrst0"
21237         PSCMD="ps -e -o pid,command"
21238   ;;
21239 freebsd)
21240         DISTVER=`uname -a |awk '{print $3}'`
21241         VER=`echo $DISTVER | cut -c 1`
21242         if test x$VER = x4 ; then
21243            PTHREAD_LIB="-pthread"
21244            CFLAGS="${CFLAGS} -pthread"
21245         fi
21246         lld="qd"
21247         llu="qu"
21248         TAPEDRIVE="/dev/nrsa0"
21249         PSCMD="ps -x -o pid,command"
21250         PFILES="${PFILES} \
21251             platforms/freebsd/Makefile \
21252             platforms/freebsd/bacula-fd \
21253             platforms/freebsd/bacula-sd \
21254             platforms/freebsd/bacula-dir"
21255         largefile_support="yes"
21256   ;;
21257 hpux)
21258         PSCMD="UNIX95=1 ps -e -o pid,comm"
21259         CFLAGS="$(CFLAGS) -D_XOPEN_SOURCE_EXTENDED=1"
21260         DISTVER=`uname -r`
21261         TAPEDRIVE="/dev/rmt/0hnb"
21262         PTHREAD_LIB="-lpthread"
21263         cat >>confdefs.h <<\_ACEOF
21264 #define _INCLUDE_LONGLONG 1
21265 _ACEOF
21266
21267   ;;
21268 irix)
21269         DISTVER=`uname -r`
21270         TAPEDRIVE="/dev/rmt/0cbn"
21271         PSCMD="ps -e -o pid,comm"
21272         PFILES="${PFILES} \
21273             platforms/irix/Makefile \
21274             platforms/irix/bacula-fd \
21275             platforms/irix/bacula-sd \
21276             platforms/irix/bacula-dir"
21277   ;;
21278 netbsd)
21279         DISTVER=`uname -a |awk '{print $3}'`
21280         lld="qd"
21281         llu="qu"
21282         TAPEDRIVE="/dev/nrst0"
21283         PSCMD="ps -a -o pid,command"
21284         PTHREAD_LIB="-pthread"
21285         CFLAGS="${CFLAGS} -pthread"
21286   ;;
21287 openbsd)
21288         DISTVER=`uname -a |awk '{print $3}'`
21289         lld="qd"
21290         llu="qu"
21291         TAPEDRIVE="/dev/nrst0"
21292         PSCMD="ps -ax -o pid,command"
21293         PTHREAD_LIB="-pthread"
21294         CFLAGS="${CFLAGS} -pthread"
21295         PFILES="${PFILES} \
21296             platforms/openbsd/Makefile \
21297             platforms/openbsd/bacula-fd \
21298             platforms/openbsd/bacula-sd \
21299             platforms/openbsd/bacula-dir"
21300   ;;
21301 redhat)
21302         if test -f /etc/whitebox-release ; then
21303            f=/etc/whitebox-release
21304         else
21305            f=/etc/redhat-release
21306         fi
21307         if test `cat $f | grep release |\
21308                    cut -f 3 -d ' '`x = "Enterprise"x ; then
21309            DISTVER="Enterprise "`cat $f | grep release |\
21310                     cut -f 6 -d ' '`
21311         else
21312             DISTVER=`cat /etc/redhat-release | grep release |\
21313                      cut -f 5 -d ' '`
21314         fi
21315         TAPEDRIVE="/dev/nst0"
21316         PSCMD="ps -e -o pid,command"
21317         PFILES="${PFILES} \
21318             platforms/redhat/Makefile \
21319             platforms/redhat/bacula-fd \
21320             platforms/redhat/bacula-sd \
21321             platforms/redhat/bacula-dir \
21322             platforms/redhat/bacula.spec \
21323             "
21324         hostname=`hostname -s`
21325   ;;
21326 mandrake)
21327         DISTVER=`cat /etc/mandrake-release | grep release |\
21328            cut -f 5 -d ' '`
21329         TAPEDRIVE="/dev/nst0"
21330         PSCMD="ps -e -o pid,command"
21331         PFILES="${PFILES} \
21332             platforms/mandrake/Makefile \
21333             platforms/mandrake/bacula-fd \
21334             platforms/mandrake/bacula-sd \
21335             platforms/mandrake/bacula-dir \
21336             platforms/mandrake/bacula.spec \
21337             "
21338   ;;
21339 gentoo)
21340         DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
21341         TAPEDRIVE="/dev/nst0"
21342         PSCMD="ps -e -o pid,command"
21343         PFILES="${PFILES} \
21344             platforms/gentoo/Makefile \
21345          platforms/gentoo/bacula-init \
21346             platforms/gentoo/bacula-fd \
21347             platforms/gentoo/bacula-sd \
21348             platforms/gentoo/bacula-dir"
21349   ;;
21350 slackware)
21351         DISTVER=`cat /etc/slackware-version`
21352         TAPEDRIVE="/dev/nst0"
21353         PSCMD="ps -e -o pid,command"
21354         PFILES="${PFILES} \
21355             platforms/slackware/Makefile \
21356             platforms/slackware/rc.bacula-fd \
21357             platforms/slackware/rc.bacula-sd \
21358             platforms/slackware/rc.bacula-dir\
21359             platforms/slackware/functions.bacula"
21360   ;;
21361 solaris)
21362         DISTVER=`uname -r`
21363         TAPEDRIVE="/dev/rmt/0cbn"
21364         PSCMD="ps -e -o pid,comm"
21365         PFILES="${PFILES} \
21366             platforms/solaris/Makefile \
21367             platforms/solaris/bacula-fd \
21368             platforms/solaris/bacula-sd \
21369             platforms/solaris/bacula-dir"
21370         if test x$DISTVER = x5.6 ; then
21371             cat >>confdefs.h <<\_ACEOF
21372 #define HAVE_OLD_SOCKOPT 1
21373 _ACEOF
21374
21375         fi
21376         LIBS="$LIBS -lresolv"
21377   ;;
21378 suse)
21379         DISTVER=`cat /etc/SuSE-release |grep VERSION|\
21380             cut -f 3 -d ' '`
21381         TAPEDRIVE="/dev/nst0"
21382         PSCMD="ps -e -o pid,command"
21383         PFILES="${PFILES} \
21384             platforms/suse/Makefile \
21385             platforms/suse/bacula-fd \
21386             platforms/suse/bacula-sd \
21387             platforms/suse/bacula-dir \
21388             platforms/suse/bacula \
21389             platforms/suse/bacula.spec"
21390   ;;
21391 suse5)
21392         DISTNAME=suse
21393         DISTVER=5.x
21394         TAPEDRIVE="/dev/nst0"
21395         PSCMD="ps -e -o pid,command"
21396         PFILES="${PFILES} \
21397             platforms/suse/Makefile \
21398             platforms/suse/bacula-fd \
21399             platforms/suse/bacula-sd \
21400             platforms/suse/bacula-dir"
21401   ;;
21402 unknown)
21403         DISTVER=unknown
21404         TAPEDRIVE="/dev/nst0"
21405   ;;
21406 *)
21407   echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
21408   ;;
21409 esac
21410
21411
21412
21413 LIBS="$PTHREAD_LIB $LIBS"
21414
21415 cat >>confdefs.h <<_ACEOF
21416 #define lld "$lld"
21417 _ACEOF
21418
21419 cat >>confdefs.h <<_ACEOF
21420 #define llu "$llu"
21421 _ACEOF
21422
21423
21424
21425
21426
21427
21428
21429
21430 MCOMMON=./autoconf/Make.common
21431
21432
21433 if test "x${subsysdir}" = "x${sbindir}" ; then
21434    echo " "
21435    echo " "
21436    echo "You have set both --sbindir and --with-subsys-dir"
21437    echo "  equal to: ${subsysdir} "
21438    echo "This is not permitted. Please reconfigure."
21439    echo " "
21440    echo "Aborting configuration ..."
21441    echo " "
21442    echo " "
21443    exit 1
21444 fi
21445
21446                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     ac_config_files="$ac_config_files autoconf/Make.common Makefile rescue/Makefile rescue/linux/Makefile rescue/linux/floppy/Makefile rescue/linux/cdrom/Makefile rescue/linux/cdrom/bacula/Makefile rescue/freebsd/Makefile rescue/solaris/Makefile scripts/startmysql scripts/stopmysql scripts/btraceback scripts/startit scripts/stopit scripts/bconsole scripts/gconsole scripts/bacula scripts/devel_bacula scripts/Makefile scripts/logrotate scripts/bacula.desktop.gnome1 scripts/bacula.desktop.gnome2 scripts/bacula.desktop.gnome1.consolehelper scripts/bacula.desktop.gnome2.consolehelper scripts/bacula.desktop.gnome1.xsu scripts/bacula.desktop.gnome2.xsu scripts/gnome-console.console_apps scripts/mtx-changer scripts/dvd-writepart scripts/dvd-freespace scripts/bacula-tray-monitor.desktop scripts/logwatch/Makefile scripts/logwatch/logfile.bacula.conf 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/create_sqlite3_database src/cats/update_sqlite3_tables src/cats/make_sqlite3_tables src/cats/grant_sqlite3_privileges src/cats/drop_sqlite3_tables src/cats/drop_sqlite3_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 src/win32/pebuilder/Makefile src/bimagemgr/Makefile src/bimagemgr/bacula-bimagemgr.spec $PFILES"
21447           ac_config_commands="$ac_config_commands default"
21448 cat >confcache <<\_ACEOF
21449 # This file is a shell script that caches the results of configure
21450 # tests run on this system so they can be shared between configure
21451 # scripts and configure runs, see configure's option --config-cache.
21452 # It is not useful on other systems.  If it contains results you don't
21453 # want to keep, you may remove or edit it.
21454 #
21455 # config.status only pays attention to the cache file if you give it
21456 # the --recheck option to rerun configure.
21457 #
21458 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21459 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21460 # following values.
21461
21462 _ACEOF
21463
21464 # The following way of writing the cache mishandles newlines in values,
21465 # but we know of no workaround that is simple, portable, and efficient.
21466 # So, don't put newlines in cache variables' values.
21467 # Ultrix sh set writes to stderr and can't be redirected directly,
21468 # and sets the high bit in the cache file unless we assign to the vars.
21469 {
21470   (set) 2>&1 |
21471     case `(ac_space=' '; set | grep ac_space) 2>&1` in
21472     *ac_space=\ *)
21473       # `set' does not quote correctly, so add quotes (double-quote
21474       # substitution turns \\\\ into \\, and sed turns \\ into \).
21475       sed -n \
21476         "s/'/'\\\\''/g;
21477           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21478       ;;
21479     *)
21480       # `set' quotes correctly as required by POSIX, so do not add quotes.
21481       sed -n \
21482         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
21483       ;;
21484     esac;
21485 } |
21486   sed '
21487      t clear
21488      : clear
21489      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21490      t end
21491      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21492      : end' >>confcache
21493 if diff $cache_file confcache >/dev/null 2>&1; then :; else
21494   if test -w $cache_file; then
21495     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21496     cat confcache >$cache_file
21497   else
21498     echo "not updating unwritable cache $cache_file"
21499   fi
21500 fi
21501 rm -f confcache
21502
21503 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21504 # Let make expand exec_prefix.
21505 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21506
21507 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21508 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21509 # trailing colons and then remove the whole line if VPATH becomes empty
21510 # (actually we leave an empty line to preserve line numbers).
21511 if test "x$srcdir" = x.; then
21512   ac_vpsub='/^[  ]*VPATH[        ]*=/{
21513 s/:*\$(srcdir):*/:/;
21514 s/:*\${srcdir}:*/:/;
21515 s/:*@srcdir@:*/:/;
21516 s/^\([^=]*=[     ]*\):*/\1/;
21517 s/:*$//;
21518 s/^[^=]*=[       ]*$//;
21519 }'
21520 fi
21521
21522 DEFS=-DHAVE_CONFIG_H
21523
21524 ac_libobjs=
21525 ac_ltlibobjs=
21526 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21527   # 1. Remove the extension, and $U if already installed.
21528   ac_i=`echo "$ac_i" |
21529          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
21530   # 2. Add them.
21531   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
21532   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
21533 done
21534 LIBOBJS=$ac_libobjs
21535
21536 LTLIBOBJS=$ac_ltlibobjs
21537
21538
21539
21540 : ${CONFIG_STATUS=./config.status}
21541 ac_clean_files_save=$ac_clean_files
21542 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21543 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21544 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21545 cat >$CONFIG_STATUS <<_ACEOF
21546 #! $SHELL
21547 # Generated by $as_me.
21548 # Run this file to recreate the current configuration.
21549 # Compiler output produced by configure, useful for debugging
21550 # configure, is in config.log if it exists.
21551
21552 debug=false
21553 ac_cs_recheck=false
21554 ac_cs_silent=false
21555 SHELL=\${CONFIG_SHELL-$SHELL}
21556 _ACEOF
21557
21558 cat >>$CONFIG_STATUS <<\_ACEOF
21559 ## --------------------- ##
21560 ## M4sh Initialization.  ##
21561 ## --------------------- ##
21562
21563 # Be Bourne compatible
21564 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21565   emulate sh
21566   NULLCMD=:
21567   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21568   # is contrary to our usage.  Disable this feature.
21569   alias -g '${1+"$@"}'='"$@"'
21570 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21571   set -o posix
21572 fi
21573 DUALCASE=1; export DUALCASE # for MKS sh
21574
21575 # Support unset when possible.
21576 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21577   as_unset=unset
21578 else
21579   as_unset=false
21580 fi
21581
21582
21583 # Work around bugs in pre-3.0 UWIN ksh.
21584 $as_unset ENV MAIL MAILPATH
21585 PS1='$ '
21586 PS2='> '
21587 PS4='+ '
21588
21589 # NLS nuisances.
21590 for as_var in \
21591   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21592   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21593   LC_TELEPHONE LC_TIME
21594 do
21595   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21596     eval $as_var=C; export $as_var
21597   else
21598     $as_unset $as_var
21599   fi
21600 done
21601
21602 # Required to use basename.
21603 if expr a : '\(a\)' >/dev/null 2>&1; then
21604   as_expr=expr
21605 else
21606   as_expr=false
21607 fi
21608
21609 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
21610   as_basename=basename
21611 else
21612   as_basename=false
21613 fi
21614
21615
21616 # Name of the executable.
21617 as_me=`$as_basename "$0" ||
21618 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21619          X"$0" : 'X\(//\)$' \| \
21620          X"$0" : 'X\(/\)$' \| \
21621          .     : '\(.\)' 2>/dev/null ||
21622 echo X/"$0" |
21623     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
21624           /^X\/\(\/\/\)$/{ s//\1/; q; }
21625           /^X\/\(\/\).*/{ s//\1/; q; }
21626           s/.*/./; q'`
21627
21628
21629 # PATH needs CR, and LINENO needs CR and PATH.
21630 # Avoid depending upon Character Ranges.
21631 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21632 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21633 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21634 as_cr_digits='0123456789'
21635 as_cr_alnum=$as_cr_Letters$as_cr_digits
21636
21637 # The user is always right.
21638 if test "${PATH_SEPARATOR+set}" != set; then
21639   echo "#! /bin/sh" >conf$$.sh
21640   echo  "exit 0"   >>conf$$.sh
21641   chmod +x conf$$.sh
21642   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21643     PATH_SEPARATOR=';'
21644   else
21645     PATH_SEPARATOR=:
21646   fi
21647   rm -f conf$$.sh
21648 fi
21649
21650
21651   as_lineno_1=$LINENO
21652   as_lineno_2=$LINENO
21653   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21654   test "x$as_lineno_1" != "x$as_lineno_2" &&
21655   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
21656   # Find who we are.  Look in the path if we contain no path at all
21657   # relative or not.
21658   case $0 in
21659     *[\\/]* ) as_myself=$0 ;;
21660     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21661 for as_dir in $PATH
21662 do
21663   IFS=$as_save_IFS
21664   test -z "$as_dir" && as_dir=.
21665   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21666 done
21667
21668        ;;
21669   esac
21670   # We did not find ourselves, most probably we were run as `sh COMMAND'
21671   # in which case we are not to be found in the path.
21672   if test "x$as_myself" = x; then
21673     as_myself=$0
21674   fi
21675   if test ! -f "$as_myself"; then
21676     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
21677 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
21678    { (exit 1); exit 1; }; }
21679   fi
21680   case $CONFIG_SHELL in
21681   '')
21682     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21683 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
21684 do
21685   IFS=$as_save_IFS
21686   test -z "$as_dir" && as_dir=.
21687   for as_base in sh bash ksh sh5; do
21688          case $as_dir in
21689          /*)
21690            if ("$as_dir/$as_base" -c '
21691   as_lineno_1=$LINENO
21692   as_lineno_2=$LINENO
21693   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21694   test "x$as_lineno_1" != "x$as_lineno_2" &&
21695   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
21696              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
21697              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
21698              CONFIG_SHELL=$as_dir/$as_base
21699              export CONFIG_SHELL
21700              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
21701            fi;;
21702          esac
21703        done
21704 done
21705 ;;
21706   esac
21707
21708   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21709   # uniformly replaced by the line number.  The first 'sed' inserts a
21710   # line-number line before each line; the second 'sed' does the real
21711   # work.  The second script uses 'N' to pair each line-number line
21712   # with the numbered line, and appends trailing '-' during
21713   # substitution so that $LINENO is not a special case at line end.
21714   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21715   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
21716   sed '=' <$as_myself |
21717     sed '
21718       N
21719       s,$,-,
21720       : loop
21721       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
21722       t loop
21723       s,-$,,
21724       s,^['$as_cr_digits']*\n,,
21725     ' >$as_me.lineno &&
21726   chmod +x $as_me.lineno ||
21727     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
21728 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
21729    { (exit 1); exit 1; }; }
21730
21731   # Don't try to exec as it changes $[0], causing all sort of problems
21732   # (the dirname of $[0] is not the place where we might find the
21733   # original and so on.  Autoconf is especially sensible to this).
21734   . ./$as_me.lineno
21735   # Exit status is that of the last command.
21736   exit
21737 }
21738
21739
21740 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
21741   *c*,-n*) ECHO_N= ECHO_C='
21742 ' ECHO_T='      ' ;;
21743   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
21744   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
21745 esac
21746
21747 if expr a : '\(a\)' >/dev/null 2>&1; then
21748   as_expr=expr
21749 else
21750   as_expr=false
21751 fi
21752
21753 rm -f conf$$ conf$$.exe conf$$.file
21754 echo >conf$$.file
21755 if ln -s conf$$.file conf$$ 2>/dev/null; then
21756   # We could just check for DJGPP; but this test a) works b) is more generic
21757   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
21758   if test -f conf$$.exe; then
21759     # Don't use ln at all; we don't have any links
21760     as_ln_s='cp -p'
21761   else
21762     as_ln_s='ln -s'
21763   fi
21764 elif ln conf$$.file conf$$ 2>/dev/null; then
21765   as_ln_s=ln
21766 else
21767   as_ln_s='cp -p'
21768 fi
21769 rm -f conf$$ conf$$.exe conf$$.file
21770
21771 if mkdir -p . 2>/dev/null; then
21772   as_mkdir_p=:
21773 else
21774   test -d ./-p && rmdir ./-p
21775   as_mkdir_p=false
21776 fi
21777
21778 as_executable_p="test -f"
21779
21780 # Sed expression to map a string onto a valid CPP name.
21781 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21782
21783 # Sed expression to map a string onto a valid variable name.
21784 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21785
21786
21787 # IFS
21788 # We need space, tab and new line, in precisely that order.
21789 as_nl='
21790 '
21791 IFS="   $as_nl"
21792
21793 # CDPATH.
21794 $as_unset CDPATH
21795
21796 exec 6>&1
21797
21798 # Open the log real soon, to keep \$[0] and so on meaningful, and to
21799 # report actual input values of CONFIG_FILES etc. instead of their
21800 # values after options handling.  Logging --version etc. is OK.
21801 exec 5>>config.log
21802 {
21803   echo
21804   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21805 ## Running $as_me. ##
21806 _ASBOX
21807 } >&5
21808 cat >&5 <<_CSEOF
21809
21810 This file was extended by $as_me, which was
21811 generated by GNU Autoconf 2.59.  Invocation command line was
21812
21813   CONFIG_FILES    = $CONFIG_FILES
21814   CONFIG_HEADERS  = $CONFIG_HEADERS
21815   CONFIG_LINKS    = $CONFIG_LINKS
21816   CONFIG_COMMANDS = $CONFIG_COMMANDS
21817   $ $0 $@
21818
21819 _CSEOF
21820 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
21821 echo >&5
21822 _ACEOF
21823
21824 # Files that config.status was made for.
21825 if test -n "$ac_config_files"; then
21826   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
21827 fi
21828
21829 if test -n "$ac_config_headers"; then
21830   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
21831 fi
21832
21833 if test -n "$ac_config_links"; then
21834   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
21835 fi
21836
21837 if test -n "$ac_config_commands"; then
21838   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
21839 fi
21840
21841 cat >>$CONFIG_STATUS <<\_ACEOF
21842
21843 ac_cs_usage="\
21844 \`$as_me' instantiates files from templates according to the
21845 current configuration.
21846
21847 Usage: $0 [OPTIONS] [FILE]...
21848
21849   -h, --help       print this help, then exit
21850   -V, --version    print version number, then exit
21851   -q, --quiet      do not print progress messages
21852   -d, --debug      don't remove temporary files
21853       --recheck    update $as_me by reconfiguring in the same conditions
21854   --file=FILE[:TEMPLATE]
21855                    instantiate the configuration file FILE
21856   --header=FILE[:TEMPLATE]
21857                    instantiate the configuration header FILE
21858
21859 Configuration files:
21860 $config_files
21861
21862 Configuration headers:
21863 $config_headers
21864
21865 Configuration commands:
21866 $config_commands
21867
21868 Report bugs to <bug-autoconf@gnu.org>."
21869 _ACEOF
21870
21871 cat >>$CONFIG_STATUS <<_ACEOF
21872 ac_cs_version="\\
21873 config.status
21874 configured by $0, generated by GNU Autoconf 2.59,
21875   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
21876
21877 Copyright (C) 2003 Free Software Foundation, Inc.
21878 This config.status script is free software; the Free Software Foundation
21879 gives unlimited permission to copy, distribute and modify it."
21880 srcdir=$srcdir
21881 INSTALL="$INSTALL"
21882 _ACEOF
21883
21884 cat >>$CONFIG_STATUS <<\_ACEOF
21885 # If no file are specified by the user, then we need to provide default
21886 # value.  By we need to know if files were specified by the user.
21887 ac_need_defaults=:
21888 while test $# != 0
21889 do
21890   case $1 in
21891   --*=*)
21892     ac_option=`expr "x$1" : 'x\([^=]*\)='`
21893     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
21894     ac_shift=:
21895     ;;
21896   -*)
21897     ac_option=$1
21898     ac_optarg=$2
21899     ac_shift=shift
21900     ;;
21901   *) # This is not an option, so the user has probably given explicit
21902      # arguments.
21903      ac_option=$1
21904      ac_need_defaults=false;;
21905   esac
21906
21907   case $ac_option in
21908   # Handling of the options.
21909 _ACEOF
21910 cat >>$CONFIG_STATUS <<\_ACEOF
21911   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21912     ac_cs_recheck=: ;;
21913   --version | --vers* | -V )
21914     echo "$ac_cs_version"; exit 0 ;;
21915   --he | --h)
21916     # Conflict between --help and --header
21917     { { echo "$as_me:$LINENO: error: ambiguous option: $1
21918 Try \`$0 --help' for more information." >&5
21919 echo "$as_me: error: ambiguous option: $1
21920 Try \`$0 --help' for more information." >&2;}
21921    { (exit 1); exit 1; }; };;
21922   --help | --hel | -h )
21923     echo "$ac_cs_usage"; exit 0 ;;
21924   --debug | --d* | -d )
21925     debug=: ;;
21926   --file | --fil | --fi | --f )
21927     $ac_shift
21928     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21929     ac_need_defaults=false;;
21930   --header | --heade | --head | --hea )
21931     $ac_shift
21932     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21933     ac_need_defaults=false;;
21934   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21935   | -silent | --silent | --silen | --sile | --sil | --si | --s)
21936     ac_cs_silent=: ;;
21937
21938   # This is an error.
21939   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
21940 Try \`$0 --help' for more information." >&5
21941 echo "$as_me: error: unrecognized option: $1
21942 Try \`$0 --help' for more information." >&2;}
21943    { (exit 1); exit 1; }; } ;;
21944
21945   *) ac_config_targets="$ac_config_targets $1" ;;
21946
21947   esac
21948   shift
21949 done
21950
21951 ac_configure_extra_args=
21952
21953 if $ac_cs_silent; then
21954   exec 6>/dev/null
21955   ac_configure_extra_args="$ac_configure_extra_args --silent"
21956 fi
21957
21958 _ACEOF
21959 cat >>$CONFIG_STATUS <<_ACEOF
21960 if \$ac_cs_recheck; then
21961   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21962   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21963 fi
21964
21965 _ACEOF
21966
21967
21968
21969
21970
21971 cat >>$CONFIG_STATUS <<\_ACEOF
21972 for ac_config_target in $ac_config_targets
21973 do
21974   case "$ac_config_target" in
21975   # Handling of arguments.
21976   "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
21977   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21978   "rescue/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/Makefile" ;;
21979   "rescue/linux/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/linux/Makefile" ;;
21980   "rescue/linux/floppy/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/linux/floppy/Makefile" ;;
21981   "rescue/linux/cdrom/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/linux/cdrom/Makefile" ;;
21982   "rescue/linux/cdrom/bacula/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/linux/cdrom/bacula/Makefile" ;;
21983   "rescue/freebsd/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/freebsd/Makefile" ;;
21984   "rescue/solaris/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/solaris/Makefile" ;;
21985   "scripts/startmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
21986   "scripts/stopmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
21987   "scripts/btraceback" ) CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
21988   "scripts/startit" ) CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
21989   "scripts/stopit" ) CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
21990   "scripts/bconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
21991   "scripts/gconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
21992   "scripts/bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
21993   "scripts/devel_bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
21994   "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
21995   "scripts/logrotate" ) CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
21996   "scripts/bacula.desktop.gnome1" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
21997   "scripts/bacula.desktop.gnome2" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
21998   "scripts/bacula.desktop.gnome1.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
21999   "scripts/bacula.desktop.gnome2.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
22000   "scripts/bacula.desktop.gnome1.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
22001   "scripts/bacula.desktop.gnome2.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
22002   "scripts/gnome-console.console_apps" ) CONFIG_FILES="$CONFIG_FILES scripts/gnome-console.console_apps" ;;
22003   "scripts/mtx-changer" ) CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
22004   "scripts/dvd-writepart" ) CONFIG_FILES="$CONFIG_FILES scripts/dvd-writepart" ;;
22005   "scripts/dvd-freespace" ) CONFIG_FILES="$CONFIG_FILES scripts/dvd-freespace" ;;
22006   "scripts/bacula-tray-monitor.desktop" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
22007   "scripts/logwatch/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
22008   "scripts/logwatch/logfile.bacula.conf" ) CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
22009   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
22010   "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
22011   "src/host.h" ) CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
22012   "src/console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
22013   "src/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
22014   "src/gnome-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/Makefile" ;;
22015   "src/gnome-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/gnome-console.conf" ;;
22016   "src/gnome2-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
22017   "src/gnome2-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/gnome-console.conf" ;;
22018   "src/wx-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
22019   "src/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/wx-console.conf" ;;
22020   "src/tray-monitor/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
22021   "src/tray-monitor/tray-monitor.conf" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
22022   "src/dird/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
22023   "src/dird/bacula-dir.conf" ) CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
22024   "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
22025   "src/stored/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
22026   "src/stored/bacula-sd.conf" ) CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
22027   "src/filed/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
22028   "src/filed/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
22029   "src/filed/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/win32/Makefile" ;;
22030   "src/cats/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
22031   "src/cats/make_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
22032   "src/cats/delete_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
22033   "src/cats/create_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
22034   "src/cats/update_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
22035   "src/cats/make_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
22036   "src/cats/grant_postgresql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
22037   "src/cats/drop_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
22038   "src/cats/drop_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
22039   "src/cats/create_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
22040   "src/cats/update_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
22041   "src/cats/make_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
22042   "src/cats/grant_mysql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
22043   "src/cats/drop_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
22044   "src/cats/drop_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
22045   "src/cats/create_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
22046   "src/cats/update_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
22047   "src/cats/make_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
22048   "src/cats/grant_sqlite_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
22049   "src/cats/drop_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
22050   "src/cats/drop_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
22051   "src/cats/create_sqlite3_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
22052   "src/cats/update_sqlite3_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
22053   "src/cats/make_sqlite3_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
22054   "src/cats/grant_sqlite3_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
22055   "src/cats/drop_sqlite3_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
22056   "src/cats/drop_sqlite3_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
22057   "src/cats/sqlite" ) CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
22058   "src/cats/mysql" ) CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
22059   "src/cats/create_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
22060   "src/cats/update_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
22061   "src/cats/make_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
22062   "src/cats/grant_bdb_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
22063   "src/cats/drop_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
22064   "src/cats/drop_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
22065   "src/cats/create_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
22066   "src/cats/update_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
22067   "src/cats/grant_bacula_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
22068   "src/cats/make_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
22069   "src/cats/drop_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
22070   "src/cats/drop_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
22071   "src/findlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
22072   "src/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
22073   "src/win32/winbacula.nsi" ) CONFIG_FILES="$CONFIG_FILES src/win32/winbacula.nsi" ;;
22074   "src/win32/baculafd/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/baculafd/bacula-fd.conf" ;;
22075   "src/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/win32/Makefile" ;;
22076   "src/win32/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/console/bconsole.conf" ;;
22077   "src/win32/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/wx-console/wx-console.conf" ;;
22078   "src/win32/pebuilder/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/win32/pebuilder/Makefile" ;;
22079   "src/bimagemgr/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/bimagemgr/Makefile" ;;
22080   "src/bimagemgr/bacula-bimagemgr.spec" ) CONFIG_FILES="$CONFIG_FILES src/bimagemgr/bacula-bimagemgr.spec" ;;
22081   "$PFILES" ) CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
22082   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
22083   "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
22084   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22085 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22086    { (exit 1); exit 1; }; };;
22087   esac
22088 done
22089
22090 # If the user did not use the arguments to specify the items to instantiate,
22091 # then the envvar interface is used.  Set only those that are not.
22092 # We use the long form for the default assignment because of an extremely
22093 # bizarre bug on SunOS 4.1.3.
22094 if $ac_need_defaults; then
22095   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22096   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22097   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22098 fi
22099
22100 # Have a temporary directory for convenience.  Make it in the build tree
22101 # simply because there is no reason to put it here, and in addition,
22102 # creating and moving files from /tmp can sometimes cause problems.
22103 # Create a temporary directory, and hook for its removal unless debugging.
22104 $debug ||
22105 {
22106   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22107   trap '{ (exit 1); exit 1; }' 1 2 13 15
22108 }
22109
22110 # Create a (secure) tmp directory for tmp files.
22111
22112 {
22113   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22114   test -n "$tmp" && test -d "$tmp"
22115 }  ||
22116 {
22117   tmp=./confstat$$-$RANDOM
22118   (umask 077 && mkdir $tmp)
22119 } ||
22120 {
22121    echo "$me: cannot create a temporary directory in ." >&2
22122    { (exit 1); exit 1; }
22123 }
22124
22125 _ACEOF
22126
22127 cat >>$CONFIG_STATUS <<_ACEOF
22128
22129 #
22130 # CONFIG_FILES section.
22131 #
22132
22133 # No need to generate the scripts if there are no CONFIG_FILES.
22134 # This happens for instance when ./config.status config.h
22135 if test -n "\$CONFIG_FILES"; then
22136   # Protect against being on the right side of a sed subst in config.status.
22137   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22138    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22139 s,@SHELL@,$SHELL,;t t
22140 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22141 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22142 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22143 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22144 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22145 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22146 s,@exec_prefix@,$exec_prefix,;t t
22147 s,@prefix@,$prefix,;t t
22148 s,@program_transform_name@,$program_transform_name,;t t
22149 s,@bindir@,$bindir,;t t
22150 s,@sbindir@,$sbindir,;t t
22151 s,@libexecdir@,$libexecdir,;t t
22152 s,@datadir@,$datadir,;t t
22153 s,@sysconfdir@,$sysconfdir,;t t
22154 s,@sharedstatedir@,$sharedstatedir,;t t
22155 s,@localstatedir@,$localstatedir,;t t
22156 s,@libdir@,$libdir,;t t
22157 s,@includedir@,$includedir,;t t
22158 s,@oldincludedir@,$oldincludedir,;t t
22159 s,@infodir@,$infodir,;t t
22160 s,@mandir@,$mandir,;t t
22161 s,@build_alias@,$build_alias,;t t
22162 s,@host_alias@,$host_alias,;t t
22163 s,@target_alias@,$target_alias,;t t
22164 s,@DEFS@,$DEFS,;t t
22165 s,@ECHO_C@,$ECHO_C,;t t
22166 s,@ECHO_N@,$ECHO_N,;t t
22167 s,@ECHO_T@,$ECHO_T,;t t
22168 s,@LIBS@,$LIBS,;t t
22169 s,@BUILD_DIR@,$BUILD_DIR,;t t
22170 s,@TRUEPRG@,$TRUEPRG,;t t
22171 s,@FALSEPRG@,$FALSEPRG,;t t
22172 s,@VERSION@,$VERSION,;t t
22173 s,@DATE@,$DATE,;t t
22174 s,@LSMDATE@,$LSMDATE,;t t
22175 s,@CC@,$CC,;t t
22176 s,@CFLAGS@,$CFLAGS,;t t
22177 s,@LDFLAGS@,$LDFLAGS,;t t
22178 s,@CPPFLAGS@,$CPPFLAGS,;t t
22179 s,@ac_ct_CC@,$ac_ct_CC,;t t
22180 s,@EXEEXT@,$EXEEXT,;t t
22181 s,@OBJEXT@,$OBJEXT,;t t
22182 s,@CXX@,$CXX,;t t
22183 s,@CXXFLAGS@,$CXXFLAGS,;t t
22184 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
22185 s,@CPP@,$CPP,;t t
22186 s,@EGREP@,$EGREP,;t t
22187 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22188 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22189 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22190 s,@RANLIB@,$RANLIB,;t t
22191 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22192 s,@MV@,$MV,;t t
22193 s,@RM@,$RM,;t t
22194 s,@CP@,$CP,;t t
22195 s,@SED@,$SED,;t t
22196 s,@ECHO@,$ECHO,;t t
22197 s,@CMP@,$CMP,;t t
22198 s,@TBL@,$TBL,;t t
22199 s,@AR@,$AR,;t t
22200 s,@OPENSSL@,$OPENSSL,;t t
22201 s,@MTX@,$MTX,;t t
22202 s,@MKISOFS@,$MKISOFS,;t t
22203 s,@PYTHON@,$PYTHON,;t t
22204 s,@GROWISOFS@,$GROWISOFS,;t t
22205 s,@DVDRWMEDIAINFO@,$DVDRWMEDIAINFO,;t t
22206 s,@PKGCONFIG@,$PKGCONFIG,;t t
22207 s,@WXCONFIG@,$WXCONFIG,;t t
22208 s,@CDRECORD@,$CDRECORD,;t t
22209 s,@PIDOF@,$PIDOF,;t t
22210 s,@AWK@,$AWK,;t t
22211 s,@ARFLAGS@,$ARFLAGS,;t t
22212 s,@MAKE_SHELL@,$MAKE_SHELL,;t t
22213 s,@LOCAL_LIBS@,$LOCAL_LIBS,;t t
22214 s,@LOCAL_CFLAGS@,$LOCAL_CFLAGS,;t t
22215 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
22216 s,@LOCAL_DEFS@,$LOCAL_DEFS,;t t
22217 s,@build@,$build,;t t
22218 s,@build_cpu@,$build_cpu,;t t
22219 s,@build_vendor@,$build_vendor,;t t
22220 s,@build_os@,$build_os,;t t
22221 s,@host@,$host,;t t
22222 s,@host_cpu@,$host_cpu,;t t
22223 s,@host_vendor@,$host_vendor,;t t
22224 s,@host_os@,$host_os,;t t
22225 s,@HAVE_SUN_OS_TRUE@,$HAVE_SUN_OS_TRUE,;t t
22226 s,@HAVE_SUN_OS_FALSE@,$HAVE_SUN_OS_FALSE,;t t
22227 s,@HAVE_OSF1_OS_TRUE@,$HAVE_OSF1_OS_TRUE,;t t
22228 s,@HAVE_OSF1_OS_FALSE@,$HAVE_OSF1_OS_FALSE,;t t
22229 s,@HAVE_AIX_OS_TRUE@,$HAVE_AIX_OS_TRUE,;t t
22230 s,@HAVE_AIX_OS_FALSE@,$HAVE_AIX_OS_FALSE,;t t
22231 s,@HAVE_HPUX_OS_TRUE@,$HAVE_HPUX_OS_TRUE,;t t
22232 s,@HAVE_HPUX_OS_FALSE@,$HAVE_HPUX_OS_FALSE,;t t
22233 s,@HAVE_LINUX_OS_TRUE@,$HAVE_LINUX_OS_TRUE,;t t
22234 s,@HAVE_LINUX_OS_FALSE@,$HAVE_LINUX_OS_FALSE,;t t
22235 s,@HAVE_FREEBSD_OS_TRUE@,$HAVE_FREEBSD_OS_TRUE,;t t
22236 s,@HAVE_FREEBSD_OS_FALSE@,$HAVE_FREEBSD_OS_FALSE,;t t
22237 s,@HAVE_NETBSD_OS_TRUE@,$HAVE_NETBSD_OS_TRUE,;t t
22238 s,@HAVE_NETBSD_OS_FALSE@,$HAVE_NETBSD_OS_FALSE,;t t
22239 s,@HAVE_OPENBSD_OS_TRUE@,$HAVE_OPENBSD_OS_TRUE,;t t
22240 s,@HAVE_OPENBSD_OS_FALSE@,$HAVE_OPENBSD_OS_FALSE,;t t
22241 s,@HAVE_BSDI_OS_TRUE@,$HAVE_BSDI_OS_TRUE,;t t
22242 s,@HAVE_BSDI_OS_FALSE@,$HAVE_BSDI_OS_FALSE,;t t
22243 s,@HAVE_SGI_OS_TRUE@,$HAVE_SGI_OS_TRUE,;t t
22244 s,@HAVE_SGI_OS_FALSE@,$HAVE_SGI_OS_FALSE,;t t
22245 s,@HAVE_IRIX_OS_TRUE@,$HAVE_IRIX_OS_TRUE,;t t
22246 s,@HAVE_IRIX_OS_FALSE@,$HAVE_IRIX_OS_FALSE,;t t
22247 s,@HAVE_DARWIN_OS_TRUE@,$HAVE_DARWIN_OS_TRUE,;t t
22248 s,@HAVE_DARWIN_OS_FALSE@,$HAVE_DARWIN_OS_FALSE,;t t
22249 s,@INSIDE_GNOME_COMMON_TRUE@,$INSIDE_GNOME_COMMON_TRUE,;t t
22250 s,@INSIDE_GNOME_COMMON_FALSE@,$INSIDE_GNOME_COMMON_FALSE,;t t
22251 s,@MSGFMT@,$MSGFMT,;t t
22252 s,@GNOME_INCLUDEDIR@,$GNOME_INCLUDEDIR,;t t
22253 s,@GNOMEUI_LIBS@,$GNOMEUI_LIBS,;t t
22254 s,@GNOME_LIBDIR@,$GNOME_LIBDIR,;t t
22255 s,@GNOME_LIBS@,$GNOME_LIBS,;t t
22256 s,@GNOMEGNORBA_LIBS@,$GNOMEGNORBA_LIBS,;t t
22257 s,@GTKXMHTML_LIBS@,$GTKXMHTML_LIBS,;t t
22258 s,@ZVT_LIBS@,$ZVT_LIBS,;t t
22259 s,@GNOME_CONFIG@,$GNOME_CONFIG,;t t
22260 s,@ORBIT_CONFIG@,$ORBIT_CONFIG,;t t
22261 s,@ORBIT_IDL@,$ORBIT_IDL,;t t
22262 s,@HAVE_ORBIT_TRUE@,$HAVE_ORBIT_TRUE,;t t
22263 s,@HAVE_ORBIT_FALSE@,$HAVE_ORBIT_FALSE,;t t
22264 s,@ORBIT_CFLAGS@,$ORBIT_CFLAGS,;t t
22265 s,@ORBIT_LIBS@,$ORBIT_LIBS,;t t
22266 s,@HAVE_GNORBA_TRUE@,$HAVE_GNORBA_TRUE,;t t
22267 s,@HAVE_GNORBA_FALSE@,$HAVE_GNORBA_FALSE,;t t
22268 s,@GNORBA_CFLAGS@,$GNORBA_CFLAGS,;t t
22269 s,@GNORBA_LIBS@,$GNORBA_LIBS,;t t
22270 s,@GNOME_APPLETS_LIBS@,$GNOME_APPLETS_LIBS,;t t
22271 s,@GNOME_DOCKLETS_LIBS@,$GNOME_DOCKLETS_LIBS,;t t
22272 s,@GNOME_CAPPLET_LIBS@,$GNOME_CAPPLET_LIBS,;t t
22273 s,@GNOME_DIR@,$GNOME_DIR,;t t
22274 s,@WXCONS_CPPFLAGS@,$WXCONS_CPPFLAGS,;t t
22275 s,@WXCONS_LDFLAGS@,$WXCONS_LDFLAGS,;t t
22276 s,@WX_DIR@,$WX_DIR,;t t
22277 s,@TRAY_MONITOR_CPPFLAGS@,$TRAY_MONITOR_CPPFLAGS,;t t
22278 s,@TRAY_MONITOR_LDFLAGS@,$TRAY_MONITOR_LDFLAGS,;t t
22279 s,@TRAY_MONITOR_DIR@,$TRAY_MONITOR_DIR,;t t
22280 s,@TTOOL_LDFLAGS@,$TTOOL_LDFLAGS,;t t
22281 s,@STATIC_FD@,$STATIC_FD,;t t
22282 s,@STATIC_SD@,$STATIC_SD,;t t
22283 s,@STATIC_DIR@,$STATIC_DIR,;t t
22284 s,@STATIC_CONS@,$STATIC_CONS,;t t
22285 s,@STATIC_GNOME_CONS@,$STATIC_GNOME_CONS,;t t
22286 s,@STATIC_WX_CONS@,$STATIC_WX_CONS,;t t
22287 s,@ALL_DIRS@,$ALL_DIRS,;t t
22288 s,@CONS_INC@,$CONS_INC,;t t
22289 s,@CONS_OBJ@,$CONS_OBJ,;t t
22290 s,@CONS_SRC@,$CONS_SRC,;t t
22291 s,@CONS_LIBS@,$CONS_LIBS,;t t
22292 s,@CONS_LDFLAGS@,$CONS_LDFLAGS,;t t
22293 s,@READLINE_SRC@,$READLINE_SRC,;t t
22294 s,@PYTHON_LIBS@,$PYTHON_LIBS,;t t
22295 s,@PYTHON_INCDIR@,$PYTHON_INCDIR,;t t
22296 s,@CDSTL@,$CDSTL,;t t
22297 s,@working_dir@,$working_dir,;t t
22298 s,@scriptdir@,$scriptdir,;t t
22299 s,@dump_email@,$dump_email,;t t
22300 s,@job_email@,$job_email,;t t
22301 s,@smtp_host@,$smtp_host,;t t
22302 s,@piddir@,$piddir,;t t
22303 s,@subsysdir@,$subsysdir,;t t
22304 s,@baseport@,$baseport,;t t
22305 s,@dir_port@,$dir_port,;t t
22306 s,@fd_port@,$fd_port,;t t
22307 s,@sd_port@,$sd_port,;t t
22308 s,@dir_password@,$dir_password,;t t
22309 s,@fd_password@,$fd_password,;t t
22310 s,@sd_password@,$sd_password,;t t
22311 s,@mon_dir_password@,$mon_dir_password,;t t
22312 s,@mon_fd_password@,$mon_fd_password,;t t
22313 s,@mon_sd_password@,$mon_sd_password,;t t
22314 s,@bimagemgr_cgidir@,$bimagemgr_cgidir,;t t
22315 s,@bimagemgr_docdir@,$bimagemgr_docdir,;t t
22316 s,@bimagemgr_binowner@,$bimagemgr_binowner,;t t
22317 s,@bimagemgr_bingroup@,$bimagemgr_bingroup,;t t
22318 s,@bimagemgr_dataowner@,$bimagemgr_dataowner,;t t
22319 s,@bimagemgr_datagroup@,$bimagemgr_datagroup,;t t
22320 s,@dir_user@,$dir_user,;t t
22321 s,@dir_group@,$dir_group,;t t
22322 s,@sd_user@,$sd_user,;t t
22323 s,@sd_group@,$sd_group,;t t
22324 s,@fd_user@,$fd_user,;t t
22325 s,@fd_group@,$fd_group,;t t
22326 s,@SBINPERM@,$SBINPERM,;t t
22327 s,@SQL_LFLAGS@,$SQL_LFLAGS,;t t
22328 s,@SQL_INCLUDE@,$SQL_INCLUDE,;t t
22329 s,@SQL_BINDIR@,$SQL_BINDIR,;t t
22330 s,@cats@,$cats,;t t
22331 s,@DB_NAME@,$DB_NAME,;t t
22332 s,@GETCONF@,$GETCONF,;t t
22333 s,@ac_ct_GETCONF@,$ac_ct_GETCONF,;t t
22334 s,@X_CFLAGS@,$X_CFLAGS,;t t
22335 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
22336 s,@X_LIBS@,$X_LIBS,;t t
22337 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
22338 s,@LIBOBJS@,$LIBOBJS,;t t
22339 s,@ALLOCA@,$ALLOCA,;t t
22340 s,@FDLIBS@,$FDLIBS,;t t
22341 s,@DEBUG@,$DEBUG,;t t
22342 s,@DINCLUDE@,$DINCLUDE,;t t
22343 s,@DLIB@,$DLIB,;t t
22344 s,@DB_LIBS@,$DB_LIBS,;t t
22345 s,@WCFLAGS@,$WCFLAGS,;t t
22346 s,@WLDFLAGS@,$WLDFLAGS,;t t
22347 s,@OBJLIST@,$OBJLIST,;t t
22348 s,@hostname@,$hostname,;t t
22349 s,@TAPEDRIVE@,$TAPEDRIVE,;t t
22350 s,@PSCMD@,$PSCMD,;t t
22351 s,@WIN32@,$WIN32,;t t
22352 s,@MACOSX@,$MACOSX,;t t
22353 s,@DISTNAME@,$DISTNAME,;t t
22354 s,@DISTVER@,$DISTVER,;t t
22355 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22356 /@MCOMMON@/r $MCOMMON
22357 s,@MCOMMON@,,;t t
22358 CEOF
22359
22360 _ACEOF
22361
22362   cat >>$CONFIG_STATUS <<\_ACEOF
22363   # Split the substitutions into bite-sized pieces for seds with
22364   # small command number limits, like on Digital OSF/1 and HP-UX.
22365   ac_max_sed_lines=48
22366   ac_sed_frag=1 # Number of current file.
22367   ac_beg=1 # First line for current file.
22368   ac_end=$ac_max_sed_lines # Line after last line for current file.
22369   ac_more_lines=:
22370   ac_sed_cmds=
22371   while $ac_more_lines; do
22372     if test $ac_beg -gt 1; then
22373       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22374     else
22375       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22376     fi
22377     if test ! -s $tmp/subs.frag; then
22378       ac_more_lines=false
22379     else
22380       # The purpose of the label and of the branching condition is to
22381       # speed up the sed processing (if there are no `@' at all, there
22382       # is no need to browse any of the substitutions).
22383       # These are the two extra sed commands mentioned above.
22384       (echo ':t
22385   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22386       if test -z "$ac_sed_cmds"; then
22387         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22388       else
22389         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22390       fi
22391       ac_sed_frag=`expr $ac_sed_frag + 1`
22392       ac_beg=$ac_end
22393       ac_end=`expr $ac_end + $ac_max_sed_lines`
22394     fi
22395   done
22396   if test -z "$ac_sed_cmds"; then
22397     ac_sed_cmds=cat
22398   fi
22399 fi # test -n "$CONFIG_FILES"
22400
22401 _ACEOF
22402 cat >>$CONFIG_STATUS <<\_ACEOF
22403 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
22404   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22405   case $ac_file in
22406   - | *:- | *:-:* ) # input from stdin
22407         cat >$tmp/stdin
22408         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22409         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22410   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22411         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22412   * )   ac_file_in=$ac_file.in ;;
22413   esac
22414
22415   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22416   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22417 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22418          X"$ac_file" : 'X\(//\)[^/]' \| \
22419          X"$ac_file" : 'X\(//\)$' \| \
22420          X"$ac_file" : 'X\(/\)' \| \
22421          .     : '\(.\)' 2>/dev/null ||
22422 echo X"$ac_file" |
22423     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22424           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22425           /^X\(\/\/\)$/{ s//\1/; q; }
22426           /^X\(\/\).*/{ s//\1/; q; }
22427           s/.*/./; q'`
22428   { if $as_mkdir_p; then
22429     mkdir -p "$ac_dir"
22430   else
22431     as_dir="$ac_dir"
22432     as_dirs=
22433     while test ! -d "$as_dir"; do
22434       as_dirs="$as_dir $as_dirs"
22435       as_dir=`(dirname "$as_dir") 2>/dev/null ||
22436 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22437          X"$as_dir" : 'X\(//\)[^/]' \| \
22438          X"$as_dir" : 'X\(//\)$' \| \
22439          X"$as_dir" : 'X\(/\)' \| \
22440          .     : '\(.\)' 2>/dev/null ||
22441 echo X"$as_dir" |
22442     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22443           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22444           /^X\(\/\/\)$/{ s//\1/; q; }
22445           /^X\(\/\).*/{ s//\1/; q; }
22446           s/.*/./; q'`
22447     done
22448     test ! -n "$as_dirs" || mkdir $as_dirs
22449   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22450 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22451    { (exit 1); exit 1; }; }; }
22452
22453   ac_builddir=.
22454
22455 if test "$ac_dir" != .; then
22456   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22457   # A "../" for each directory in $ac_dir_suffix.
22458   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22459 else
22460   ac_dir_suffix= ac_top_builddir=
22461 fi
22462
22463 case $srcdir in
22464   .)  # No --srcdir option.  We are building in place.
22465     ac_srcdir=.
22466     if test -z "$ac_top_builddir"; then
22467        ac_top_srcdir=.
22468     else
22469        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22470     fi ;;
22471   [\\/]* | ?:[\\/]* )  # Absolute path.
22472     ac_srcdir=$srcdir$ac_dir_suffix;
22473     ac_top_srcdir=$srcdir ;;
22474   *) # Relative path.
22475     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22476     ac_top_srcdir=$ac_top_builddir$srcdir ;;
22477 esac
22478
22479 # Do not use `cd foo && pwd` to compute absolute paths, because
22480 # the directories may not exist.
22481 case `pwd` in
22482 .) ac_abs_builddir="$ac_dir";;
22483 *)
22484   case "$ac_dir" in
22485   .) ac_abs_builddir=`pwd`;;
22486   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22487   *) ac_abs_builddir=`pwd`/"$ac_dir";;
22488   esac;;
22489 esac
22490 case $ac_abs_builddir in
22491 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22492 *)
22493   case ${ac_top_builddir}. in
22494   .) ac_abs_top_builddir=$ac_abs_builddir;;
22495   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22496   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22497   esac;;
22498 esac
22499 case $ac_abs_builddir in
22500 .) ac_abs_srcdir=$ac_srcdir;;
22501 *)
22502   case $ac_srcdir in
22503   .) ac_abs_srcdir=$ac_abs_builddir;;
22504   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22505   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22506   esac;;
22507 esac
22508 case $ac_abs_builddir in
22509 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22510 *)
22511   case $ac_top_srcdir in
22512   .) ac_abs_top_srcdir=$ac_abs_builddir;;
22513   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22514   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22515   esac;;
22516 esac
22517
22518
22519   case $INSTALL in
22520   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22521   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
22522   esac
22523
22524   if test x"$ac_file" != x-; then
22525     { echo "$as_me:$LINENO: creating $ac_file" >&5
22526 echo "$as_me: creating $ac_file" >&6;}
22527     rm -f "$ac_file"
22528   fi
22529   # Let's still pretend it is `configure' which instantiates (i.e., don't
22530   # use $as_me), people would be surprised to read:
22531   #    /* config.h.  Generated by config.status.  */
22532   if test x"$ac_file" = x-; then
22533     configure_input=
22534   else
22535     configure_input="$ac_file.  "
22536   fi
22537   configure_input=$configure_input"Generated from `echo $ac_file_in |
22538                                      sed 's,.*/,,'` by configure."
22539
22540   # First look for the input files in the build tree, otherwise in the
22541   # src tree.
22542   ac_file_inputs=`IFS=:
22543     for f in $ac_file_in; do
22544       case $f in
22545       -) echo $tmp/stdin ;;
22546       [\\/$]*)
22547          # Absolute (can't be DOS-style, as IFS=:)
22548          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22549 echo "$as_me: error: cannot find input file: $f" >&2;}
22550    { (exit 1); exit 1; }; }
22551          echo "$f";;
22552       *) # Relative
22553          if test -f "$f"; then
22554            # Build tree
22555            echo "$f"
22556          elif test -f "$srcdir/$f"; then
22557            # Source tree
22558            echo "$srcdir/$f"
22559          else
22560            # /dev/null tree
22561            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22562 echo "$as_me: error: cannot find input file: $f" >&2;}
22563    { (exit 1); exit 1; }; }
22564          fi;;
22565       esac
22566     done` || { (exit 1); exit 1; }
22567 _ACEOF
22568 cat >>$CONFIG_STATUS <<_ACEOF
22569   sed "$ac_vpsub
22570 $extrasub
22571 _ACEOF
22572 cat >>$CONFIG_STATUS <<\_ACEOF
22573 :t
22574 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22575 s,@configure_input@,$configure_input,;t t
22576 s,@srcdir@,$ac_srcdir,;t t
22577 s,@abs_srcdir@,$ac_abs_srcdir,;t t
22578 s,@top_srcdir@,$ac_top_srcdir,;t t
22579 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
22580 s,@builddir@,$ac_builddir,;t t
22581 s,@abs_builddir@,$ac_abs_builddir,;t t
22582 s,@top_builddir@,$ac_top_builddir,;t t
22583 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
22584 s,@INSTALL@,$ac_INSTALL,;t t
22585 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22586   rm -f $tmp/stdin
22587   if test x"$ac_file" != x-; then
22588     mv $tmp/out $ac_file
22589   else
22590     cat $tmp/out
22591     rm -f $tmp/out
22592   fi
22593
22594 done
22595 _ACEOF
22596 cat >>$CONFIG_STATUS <<\_ACEOF
22597
22598 #
22599 # CONFIG_HEADER section.
22600 #
22601
22602 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22603 # NAME is the cpp macro being defined and VALUE is the value it is being given.
22604 #
22605 # ac_d sets the value in "#define NAME VALUE" lines.
22606 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
22607 ac_dB='[         ].*$,\1#\2'
22608 ac_dC=' '
22609 ac_dD=',;t'
22610 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22611 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
22612 ac_uB='$,\1#\2define\3'
22613 ac_uC=' '
22614 ac_uD=',;t'
22615
22616 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
22617   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22618   case $ac_file in
22619   - | *:- | *:-:* ) # input from stdin
22620         cat >$tmp/stdin
22621         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22622         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22623   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22624         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22625   * )   ac_file_in=$ac_file.in ;;
22626   esac
22627
22628   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
22629 echo "$as_me: creating $ac_file" >&6;}
22630
22631   # First look for the input files in the build tree, otherwise in the
22632   # src tree.
22633   ac_file_inputs=`IFS=:
22634     for f in $ac_file_in; do
22635       case $f in
22636       -) echo $tmp/stdin ;;
22637       [\\/$]*)
22638          # Absolute (can't be DOS-style, as IFS=:)
22639          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22640 echo "$as_me: error: cannot find input file: $f" >&2;}
22641    { (exit 1); exit 1; }; }
22642          # Do quote $f, to prevent DOS paths from being IFS'd.
22643          echo "$f";;
22644       *) # Relative
22645          if test -f "$f"; then
22646            # Build tree
22647            echo "$f"
22648          elif test -f "$srcdir/$f"; then
22649            # Source tree
22650            echo "$srcdir/$f"
22651          else
22652            # /dev/null tree
22653            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22654 echo "$as_me: error: cannot find input file: $f" >&2;}
22655    { (exit 1); exit 1; }; }
22656          fi;;
22657       esac
22658     done` || { (exit 1); exit 1; }
22659   # Remove the trailing spaces.
22660   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
22661
22662 _ACEOF
22663
22664 # Transform confdefs.h into two sed scripts, `conftest.defines' and
22665 # `conftest.undefs', that substitutes the proper values into
22666 # config.h.in to produce config.h.  The first handles `#define'
22667 # templates, and the second `#undef' templates.
22668 # And first: Protect against being on the right side of a sed subst in
22669 # config.status.  Protect against being in an unquoted here document
22670 # in config.status.
22671 rm -f conftest.defines conftest.undefs
22672 # Using a here document instead of a string reduces the quoting nightmare.
22673 # Putting comments in sed scripts is not portable.
22674 #
22675 # `end' is used to avoid that the second main sed command (meant for
22676 # 0-ary CPP macros) applies to n-ary macro definitions.
22677 # See the Autoconf documentation for `clear'.
22678 cat >confdef2sed.sed <<\_ACEOF
22679 s/[\\&,]/\\&/g
22680 s,[\\$`],\\&,g
22681 t clear
22682 : clear
22683 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
22684 t end
22685 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
22686 : end
22687 _ACEOF
22688 # If some macros were called several times there might be several times
22689 # the same #defines, which is useless.  Nevertheless, we may not want to
22690 # sort them, since we want the *last* AC-DEFINE to be honored.
22691 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
22692 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
22693 rm -f confdef2sed.sed
22694
22695 # This sed command replaces #undef with comments.  This is necessary, for
22696 # example, in the case of _POSIX_SOURCE, which is predefined and required
22697 # on some systems where configure will not decide to define it.
22698 cat >>conftest.undefs <<\_ACEOF
22699 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
22700 _ACEOF
22701
22702 # Break up conftest.defines because some shells have a limit on the size
22703 # of here documents, and old seds have small limits too (100 cmds).
22704 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
22705 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
22706 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
22707 echo '  :' >>$CONFIG_STATUS
22708 rm -f conftest.tail
22709 while grep . conftest.defines >/dev/null
22710 do
22711   # Write a limited-size here document to $tmp/defines.sed.
22712   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
22713   # Speed up: don't consider the non `#define' lines.
22714   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
22715   # Work around the forget-to-reset-the-flag bug.
22716   echo 't clr' >>$CONFIG_STATUS
22717   echo ': clr' >>$CONFIG_STATUS
22718   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
22719   echo 'CEOF
22720   sed -f $tmp/defines.sed $tmp/in >$tmp/out
22721   rm -f $tmp/in
22722   mv $tmp/out $tmp/in
22723 ' >>$CONFIG_STATUS
22724   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
22725   rm -f conftest.defines
22726   mv conftest.tail conftest.defines
22727 done
22728 rm -f conftest.defines
22729 echo '  fi # grep' >>$CONFIG_STATUS
22730 echo >>$CONFIG_STATUS
22731
22732 # Break up conftest.undefs because some shells have a limit on the size
22733 # of here documents, and old seds have small limits too (100 cmds).
22734 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
22735 rm -f conftest.tail
22736 while grep . conftest.undefs >/dev/null
22737 do
22738   # Write a limited-size here document to $tmp/undefs.sed.
22739   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
22740   # Speed up: don't consider the non `#undef'
22741   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
22742   # Work around the forget-to-reset-the-flag bug.
22743   echo 't clr' >>$CONFIG_STATUS
22744   echo ': clr' >>$CONFIG_STATUS
22745   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
22746   echo 'CEOF
22747   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
22748   rm -f $tmp/in
22749   mv $tmp/out $tmp/in
22750 ' >>$CONFIG_STATUS
22751   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
22752   rm -f conftest.undefs
22753   mv conftest.tail conftest.undefs
22754 done
22755 rm -f conftest.undefs
22756
22757 cat >>$CONFIG_STATUS <<\_ACEOF
22758   # Let's still pretend it is `configure' which instantiates (i.e., don't
22759   # use $as_me), people would be surprised to read:
22760   #    /* config.h.  Generated by config.status.  */
22761   if test x"$ac_file" = x-; then
22762     echo "/* Generated by configure.  */" >$tmp/config.h
22763   else
22764     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
22765   fi
22766   cat $tmp/in >>$tmp/config.h
22767   rm -f $tmp/in
22768   if test x"$ac_file" != x-; then
22769     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
22770       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22771 echo "$as_me: $ac_file is unchanged" >&6;}
22772     else
22773       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22774 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22775          X"$ac_file" : 'X\(//\)[^/]' \| \
22776          X"$ac_file" : 'X\(//\)$' \| \
22777          X"$ac_file" : 'X\(/\)' \| \
22778          .     : '\(.\)' 2>/dev/null ||
22779 echo X"$ac_file" |
22780     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22781           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22782           /^X\(\/\/\)$/{ s//\1/; q; }
22783           /^X\(\/\).*/{ s//\1/; q; }
22784           s/.*/./; q'`
22785       { if $as_mkdir_p; then
22786     mkdir -p "$ac_dir"
22787   else
22788     as_dir="$ac_dir"
22789     as_dirs=
22790     while test ! -d "$as_dir"; do
22791       as_dirs="$as_dir $as_dirs"
22792       as_dir=`(dirname "$as_dir") 2>/dev/null ||
22793 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22794          X"$as_dir" : 'X\(//\)[^/]' \| \
22795          X"$as_dir" : 'X\(//\)$' \| \
22796          X"$as_dir" : 'X\(/\)' \| \
22797          .     : '\(.\)' 2>/dev/null ||
22798 echo X"$as_dir" |
22799     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22800           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22801           /^X\(\/\/\)$/{ s//\1/; q; }
22802           /^X\(\/\).*/{ s//\1/; q; }
22803           s/.*/./; q'`
22804     done
22805     test ! -n "$as_dirs" || mkdir $as_dirs
22806   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22807 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22808    { (exit 1); exit 1; }; }; }
22809
22810       rm -f $ac_file
22811       mv $tmp/config.h $ac_file
22812     fi
22813   else
22814     cat $tmp/config.h
22815     rm -f $tmp/config.h
22816   fi
22817 done
22818 _ACEOF
22819 cat >>$CONFIG_STATUS <<\_ACEOF
22820
22821 #
22822 # CONFIG_COMMANDS section.
22823 #
22824 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
22825   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
22826   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
22827   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
22828 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22829          X"$ac_dest" : 'X\(//\)[^/]' \| \
22830          X"$ac_dest" : 'X\(//\)$' \| \
22831          X"$ac_dest" : 'X\(/\)' \| \
22832          .     : '\(.\)' 2>/dev/null ||
22833 echo X"$ac_dest" |
22834     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22835           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22836           /^X\(\/\/\)$/{ s//\1/; q; }
22837           /^X\(\/\).*/{ s//\1/; q; }
22838           s/.*/./; q'`
22839   { if $as_mkdir_p; then
22840     mkdir -p "$ac_dir"
22841   else
22842     as_dir="$ac_dir"
22843     as_dirs=
22844     while test ! -d "$as_dir"; do
22845       as_dirs="$as_dir $as_dirs"
22846       as_dir=`(dirname "$as_dir") 2>/dev/null ||
22847 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22848          X"$as_dir" : 'X\(//\)[^/]' \| \
22849          X"$as_dir" : 'X\(//\)$' \| \
22850          X"$as_dir" : 'X\(/\)' \| \
22851          .     : '\(.\)' 2>/dev/null ||
22852 echo X"$as_dir" |
22853     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22854           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22855           /^X\(\/\/\)$/{ s//\1/; q; }
22856           /^X\(\/\).*/{ s//\1/; q; }
22857           s/.*/./; q'`
22858     done
22859     test ! -n "$as_dirs" || mkdir $as_dirs
22860   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22861 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22862    { (exit 1); exit 1; }; }; }
22863
22864   ac_builddir=.
22865
22866 if test "$ac_dir" != .; then
22867   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22868   # A "../" for each directory in $ac_dir_suffix.
22869   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22870 else
22871   ac_dir_suffix= ac_top_builddir=
22872 fi
22873
22874 case $srcdir in
22875   .)  # No --srcdir option.  We are building in place.
22876     ac_srcdir=.
22877     if test -z "$ac_top_builddir"; then
22878        ac_top_srcdir=.
22879     else
22880        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22881     fi ;;
22882   [\\/]* | ?:[\\/]* )  # Absolute path.
22883     ac_srcdir=$srcdir$ac_dir_suffix;
22884     ac_top_srcdir=$srcdir ;;
22885   *) # Relative path.
22886     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22887     ac_top_srcdir=$ac_top_builddir$srcdir ;;
22888 esac
22889
22890 # Do not use `cd foo && pwd` to compute absolute paths, because
22891 # the directories may not exist.
22892 case `pwd` in
22893 .) ac_abs_builddir="$ac_dir";;
22894 *)
22895   case "$ac_dir" in
22896   .) ac_abs_builddir=`pwd`;;
22897   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22898   *) ac_abs_builddir=`pwd`/"$ac_dir";;
22899   esac;;
22900 esac
22901 case $ac_abs_builddir in
22902 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22903 *)
22904   case ${ac_top_builddir}. in
22905   .) ac_abs_top_builddir=$ac_abs_builddir;;
22906   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22907   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22908   esac;;
22909 esac
22910 case $ac_abs_builddir in
22911 .) ac_abs_srcdir=$ac_srcdir;;
22912 *)
22913   case $ac_srcdir in
22914   .) ac_abs_srcdir=$ac_abs_builddir;;
22915   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22916   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22917   esac;;
22918 esac
22919 case $ac_abs_builddir in
22920 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22921 *)
22922   case $ac_top_srcdir in
22923   .) ac_abs_top_srcdir=$ac_abs_builddir;;
22924   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22925   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22926   esac;;
22927 esac
22928
22929
22930   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
22931 echo "$as_me: executing $ac_dest commands" >&6;}
22932   case $ac_dest in
22933     default ) (echo "Doing make of dependencies"; ${MAKE:-make} depend;)
22934  ;;
22935   esac
22936 done
22937 _ACEOF
22938
22939 cat >>$CONFIG_STATUS <<\_ACEOF
22940
22941 { (exit 0); exit 0; }
22942 _ACEOF
22943 chmod +x $CONFIG_STATUS
22944 ac_clean_files=$ac_clean_files_save
22945
22946
22947 # configure is writing to config.log, and then calls config.status.
22948 # config.status does its own redirection, appending to config.log.
22949 # Unfortunately, on DOS this fails, as config.log is still kept open
22950 # by configure, so config.status won't be able to write to it; its
22951 # output is simply discarded.  So we exec the FD to /dev/null,
22952 # effectively closing config.log, so it can be properly (re)opened and
22953 # appended to by config.status.  When coming back to configure, we
22954 # need to make the FD available again.
22955 if test "$no_create" != yes; then
22956   ac_cs_success=:
22957   ac_config_status_args=
22958   test "$silent" = yes &&
22959     ac_config_status_args="$ac_config_status_args --quiet"
22960   exec 5>/dev/null
22961   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22962   exec 5>>config.log
22963   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22964   # would make configure fail if this is the last instruction.
22965   $ac_cs_success || { (exit 1); exit 1; }
22966 fi
22967
22968
22969 cd scripts
22970 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
22971 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
22972 cd ..
22973
22974 c=src/cats
22975
22976 chmod 755 $c/create_bacula_database   $c/update_bacula_tables  $c/make_bacula_tables
22977 chmod 755 $c/grant_bacula_privileges  $c/drop_bacula_tables    $c/drop_bacula_database
22978
22979 chmod 755 $c/create_bdb_database      $c/update_bdb_tables     $c/make_bdb_tables
22980 chmod 755 $c/grant_bdb_privileges     $c/drop_bdb_tables       $c/drop_bdb_database
22981
22982 chmod 755 $c/create_mysql_database    $c/update_mysql_tables   $c/make_mysql_tables
22983 chmod 755 $c/grant_mysql_privileges   $c/drop_mysql_tables     $c/drop_mysql_database
22984
22985 chmod 755 $c/create_sqlite_database   $c/update_sqlite_tables  $c/make_sqlite_tables
22986 chmod 755 $c/grant_sqlite_privileges  $c/drop_sqlite_tables    $c/drop_sqlite_database
22987
22988 chmod 755 $c/create_postgresql_database  $c/update_postgresql_tables $c/make_postgresql_tables
22989 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables   $c/drop_postgresql_database
22990
22991 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
22992 chmod 755 $c/sqlite
22993 chmod 755 $c/mysql
22994
22995 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
22996    largefile_support="yes"
22997 fi
22998
22999 #
23000 # A whole lot of hand springs to get the compiler version.
23001 #  This is because gcc changed the output in version 3.0
23002 #
23003 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
23004 if test "x${CCVERSION}" = "x" ; then
23005   CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
23006 fi
23007 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
23008 if test x"${CXXVERSION}" = x ; then
23009   CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
23010 fi
23011
23012 if test "x${subsysdir}" = "x${sbindir}" ; then
23013    echo " "
23014    echo " "
23015    echo "You have set --sbindir and --with-subsys-dir"
23016    echo "  both equal to: ${subsysdir} "
23017    echo "  This is not permitted. Please reconfigure."
23018    echo " "
23019    echo "Aborting configuration ..."
23020    echo " "
23021    echo " "
23022    exit 1
23023 fi
23024
23025 if test "x${db_name}" = "xInternal" ; then
23026    echo " "
23027    echo " "
23028    echo "You have not specified either --enable-client-only or one of the"
23029    echo "  supported databases: MySQL, PostgreSQL, SQLite3 or SQLite."
23030    echo "  This is not permitted. Please reconfigure."
23031    echo " "
23032    echo "Aborting the configuration ..."
23033    echo " "
23034    echo " "
23035    exit 1
23036 fi
23037
23038 echo "
23039 Configuration on `date`:
23040
23041   Host:                       $host -- ${DISTNAME} ${DISTVER}
23042   Bacula version:             ${VERSION} (${DATE})
23043   Source code location:       ${srcdir}
23044   Install binaries:           ${sbindir}
23045   Install config files:       ${sysconfdir}
23046   Scripts directory:          ${scriptdir}
23047   Working directory:          ${working_dir}
23048   PID directory:              ${piddir}
23049   Subsys directory:           ${subsysdir}
23050   C Compiler:                 ${CC} ${CCVERSION}
23051   C++ Compiler:               ${CXX} ${CXXVERSION}
23052   Compiler flags:             ${WCFLAGS} ${CFLAGS}
23053   Linker flags:               ${WLDFLAGS} ${LDFLAGS}
23054   Libraries:                  ${LIBS}
23055   Statically Linked Tools:    ${support_static_tools}
23056   Statically Linked FD:       ${support_static_fd}
23057   Statically Linked SD:       ${support_static_sd}
23058   Statically Linked DIR:      ${support_static_dir}
23059   Statically Linked CONS:     ${support_static_cons}
23060   Database type:              ${db_name}
23061   Database lib:               ${DB_LIBS}
23062
23063   Job Output Email:           ${job_email}
23064   Traceback Email:            ${dump_email}
23065   SMTP Host Address:          ${smtp_host}
23066
23067   Director Port:              ${dir_port}
23068   File daemon Port:           ${fd_port}
23069   Storage daemon Port:        ${sd_port}
23070
23071   Director User:              ${dir_user}
23072   Director Group:             ${dir_group}
23073   Storage Daemon User:        ${sd_user}
23074   Storage DaemonGroup:        ${sd_group}
23075   File Daemon User:           ${fd_user}
23076   File Daemon Group:          ${fd_group}
23077
23078   SQL binaries Directory      ${SQL_BINDIR}
23079
23080   Large file support:         $largefile_support
23081   Bacula conio support:       ${got_conio} ${CONS_LIBS}
23082   readline support:           ${got_readline} ${PRTREADLINE_SRC}
23083   TCP Wrappers support:       ${TCPW_MSG}
23084   ZLIB support:               ${have_zlib}
23085   enable-smartalloc:          ${support_smartalloc}
23086   enable-gnome:               ${support_gnome} ${gnome_version}
23087   enable-wx-console:          ${support_wx_console}
23088   enable-tray-monitor:        ${support_tray_monitor}
23089   client-only:                ${build_client_only}
23090   ACL support:                ${have_acl}
23091   Python support:             ${support_python} ${PYTHON_LIBS}
23092
23093   " > config.out
23094
23095 cat config.out
23096
23097 # old stuff
23098 # cweb support:               ${got_cweb} ${CWEB_SRC}
23099 # gmp support:                ${got_gmp} ${GMP_SRC}