]> git.sur5r.net Git - bacula/bacula/blob - bacula/configure
Add debug option to more tests
[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 DF MKISOFS PYTHON GROWISOFS DVDRWMEDIAINFO PKGCONFIG WXCONFIG WXFLAGS 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 MSGFMT GNOME_INCLUDEDIR GNOMEUI_LIBS GNOME_LIBDIR GNOME_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 OPENSSL_LIBS OPENSSL_INC working_dir scriptdir dump_email job_email smtp_host piddir subsysdir baseport dir_port fd_port sd_port dir_password fd_password sd_password mon_dir_password mon_fd_password mon_sd_password dir_user dir_group sd_user sd_group fd_user fd_group SBINPERM SQL_LFLAGS SQL_INCLUDE SQL_BINDIR cats DB_NAME GETCONF ac_ct_GETCONF X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS LIBOBJS ALLOCA FDLIBS DEBUG DINCLUDE DLIB DB_LIBS WCFLAGS WLDFLAGS OBJLIST hostname TAPEDRIVE PSCMD WIN32 MACOSX DISTNAME DISTVER LTLIBOBJS'
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 ac_env_WXCONFIG_set=${WXCONFIG+set}
782 ac_env_WXCONFIG_value=$WXCONFIG
783 ac_cv_env_WXCONFIG_set=${WXCONFIG+set}
784 ac_cv_env_WXCONFIG_value=$WXCONFIG
785 ac_env_WXFLAGS_set=${WXFLAGS+set}
786 ac_env_WXFLAGS_value=$WXFLAGS
787 ac_cv_env_WXFLAGS_set=${WXFLAGS+set}
788 ac_cv_env_WXFLAGS_value=$WXFLAGS
789
790 #
791 # Report the --help message.
792 #
793 if test "$ac_init_help" = "long"; then
794   # Omit some internal or obsolete options to make the list less imposing.
795   # This message is too long to be a string in the A/UX 3.1 sh.
796   cat <<_ACEOF
797 \`configure' configures this package to adapt to many kinds of systems.
798
799 Usage: $0 [OPTION]... [VAR=VALUE]...
800
801 To assign environment variables (e.g., CC, CFLAGS...), specify them as
802 VAR=VALUE.  See below for descriptions of some of the useful variables.
803
804 Defaults for the options are specified in brackets.
805
806 Configuration:
807   -h, --help              display this help and exit
808       --help=short        display options specific to this package
809       --help=recursive    display the short help of all the included packages
810   -V, --version           display version information and exit
811   -q, --quiet, --silent   do not print \`checking...' messages
812       --cache-file=FILE   cache test results in FILE [disabled]
813   -C, --config-cache      alias for \`--cache-file=config.cache'
814   -n, --no-create         do not create output files
815       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
816
817 _ACEOF
818
819   cat <<_ACEOF
820 Installation directories:
821   --prefix=PREFIX         install architecture-independent files in PREFIX
822                           [$ac_default_prefix]
823   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
824                           [PREFIX]
825
826 By default, \`make install' will install all the files in
827 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
828 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
829 for instance \`--prefix=\$HOME'.
830
831 For better control, use the options below.
832
833 Fine tuning of the installation directories:
834   --bindir=DIR           user executables [EPREFIX/bin]
835   --sbindir=DIR          system admin executables [EPREFIX/sbin]
836   --libexecdir=DIR       program executables [EPREFIX/libexec]
837   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
838   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
839   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
840   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
841   --libdir=DIR           object code libraries [EPREFIX/lib]
842   --includedir=DIR       C header files [PREFIX/include]
843   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
844   --infodir=DIR          info documentation [PREFIX/info]
845   --mandir=DIR           man documentation [PREFIX/man]
846 _ACEOF
847
848   cat <<\_ACEOF
849
850 X features:
851   --x-includes=DIR    X include files are in DIR
852   --x-libraries=DIR   X library files are in DIR
853
854 System types:
855   --build=BUILD     configure for building on BUILD [guessed]
856   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
857 _ACEOF
858 fi
859
860 if test -n "$ac_init_help"; then
861
862   cat <<\_ACEOF
863
864 Optional Features:
865   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
866   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
867   --enable-gnome          enable build of gnome-console GUI disabled
868   --enable-wx-console     enable build of wxWidgets console disabled
869   --enable-tray-monitor   enable build of Gnome tray monitor (compatible with KDE) disabled
870   --enable-smartalloc     enable smartalloc debugging support disabled
871   --enable-static-tools   enable static tape tools disabled
872   --enable-static-fd      enable static File daemon disabled
873   --enable-static-sd      enable static Storage daemon disabled
874   --enable-static-dir     enable static Director disabled
875   --enable-static-cons    enable static Console disabled
876   --enable-client-only    build client (File daemon) only disabled
877   --disable-conio            disable conio support enabled
878
879   --disable-readline      disable readline support disable
880
881   --disable-largefile     omit support for large files
882
883 Optional Packages:
884   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
885   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
886  --with-readline=DIR             specify readline library directory
887
888   --with-python=DIR       Include Python support.  DIR is the Python base
889                           install directory, default is to search through
890                           a number of common places for the Python files.
891   --with-tcp-wrappers=DIR        enable tcpwrappers support
892   --with-openssl[=DIR]
893                           Include OpenSSL support. DIR is the OpenSSL base
894   --with-working-dir=PATH        specify path of Bacula working directory
895   --with-scriptdir=PATH    specify path of Bacula scripts directory
896   --with-dump-email=EMAIL        dump email address
897   --with-job-email=EMAIL         job output email address
898   --with-smtp-host=HOST          SMTP mail host address
899   --with-pid-dir=PATH            specify location of Bacula pid files
900   --with-subsys-dir=PATH         specify location of Bacula subsys file
901   --with-baseport=PORT           specify base port address for daemons
902   --with-dir-password=PASSWORD   specify Director's password
903   --with-fd-password=PASSWORD    specify Client's password
904   --with-sd-password=PASSWORD    specify Storage daemon's password
905   --with-mon-dir-password=PASSWORD       specify Director's password used by the monitor
906   --with-mon-fd-password=PASSWORD        specify Client's password used by the monitor
907   --with-mon-sd-password=PASSWORD        specify Storage daemon's password used by the monitor
908   --with-dir-user=USER           specify user for Director daemon
909   --with-dir-group=GROUP                 specify group for Director daemon
910   --with-sd-user=USER            specify user for Storage daemon
911   --with-sd-group=GROUP          specify group for Storage daemon
912   --with-fd-user=USER            specify user for File daemon
913   --with-fd-group=GROUP          specify group for File daemon
914   --with-sbin-perm=MODE          specify permissions for sbin binaries (0754)
915   --with-postgresql=DIR      Include PostgreSQL support.  DIR is the PostgreSQL
916                           base install directory, defaults to /usr/local/pgsql
917
918   --with-mysql=DIR      Include MySQL support.  DIR is the MySQL base
919                           install directory, default is to search through
920                           a number of common places for the MySQL files.
921
922   --with-embedded-mysql=DIR Include MySQL support.  DIR is the MySQL base
923                           install directory, default is to search through
924                           a number of common places for the MySQL files.
925
926   --with-sqlite3=DIR    Include SQLite3 support.  DIR is the SQLite3 base
927                           install directory, default is to search through
928                           a number of common places for the SQLite3 files.
929
930   --with-sqlite=DIR     Include SQLite support.  DIR is the SQLite base
931                           install directory, default is to search through
932                           a number of common places for the SQLite files.
933   --with-x                use the X Window System
934
935 Some influential environment variables:
936   CC          C compiler command
937   CFLAGS      C compiler flags
938   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
939               nonstandard directory <lib dir>
940   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
941               headers in a nonstandard directory <include dir>
942   CXX         C++ compiler command
943   CXXFLAGS    C++ compiler flags
944   CPP         C preprocessor
945   WXCONFIG    wx-config command. On some systems, you must set it to
946               wx-config-2.6 to use wxWidgets 2.6.
947   WXFLAGS     Parameters to pass to wx-config (e.g. --unicode=no).
948
949 Use these variables to override the choices made by `configure' or to help
950 it to find libraries and programs with nonstandard names/locations.
951
952 _ACEOF
953 fi
954
955 if test "$ac_init_help" = "recursive"; then
956   # If there are subdirs, report their specific --help.
957   ac_popdir=`pwd`
958   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
959     test -d $ac_dir || continue
960     ac_builddir=.
961
962 if test "$ac_dir" != .; then
963   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
964   # A "../" for each directory in $ac_dir_suffix.
965   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
966 else
967   ac_dir_suffix= ac_top_builddir=
968 fi
969
970 case $srcdir in
971   .)  # No --srcdir option.  We are building in place.
972     ac_srcdir=.
973     if test -z "$ac_top_builddir"; then
974        ac_top_srcdir=.
975     else
976        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
977     fi ;;
978   [\\/]* | ?:[\\/]* )  # Absolute path.
979     ac_srcdir=$srcdir$ac_dir_suffix;
980     ac_top_srcdir=$srcdir ;;
981   *) # Relative path.
982     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
983     ac_top_srcdir=$ac_top_builddir$srcdir ;;
984 esac
985
986 # Do not use `cd foo && pwd` to compute absolute paths, because
987 # the directories may not exist.
988 case `pwd` in
989 .) ac_abs_builddir="$ac_dir";;
990 *)
991   case "$ac_dir" in
992   .) ac_abs_builddir=`pwd`;;
993   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
994   *) ac_abs_builddir=`pwd`/"$ac_dir";;
995   esac;;
996 esac
997 case $ac_abs_builddir in
998 .) ac_abs_top_builddir=${ac_top_builddir}.;;
999 *)
1000   case ${ac_top_builddir}. in
1001   .) ac_abs_top_builddir=$ac_abs_builddir;;
1002   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1003   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1004   esac;;
1005 esac
1006 case $ac_abs_builddir in
1007 .) ac_abs_srcdir=$ac_srcdir;;
1008 *)
1009   case $ac_srcdir in
1010   .) ac_abs_srcdir=$ac_abs_builddir;;
1011   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1012   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1013   esac;;
1014 esac
1015 case $ac_abs_builddir in
1016 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1017 *)
1018   case $ac_top_srcdir in
1019   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1020   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1021   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1022   esac;;
1023 esac
1024
1025     cd $ac_dir
1026     # Check for guested configure; otherwise get Cygnus style configure.
1027     if test -f $ac_srcdir/configure.gnu; then
1028       echo
1029       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1030     elif test -f $ac_srcdir/configure; then
1031       echo
1032       $SHELL $ac_srcdir/configure  --help=recursive
1033     elif test -f $ac_srcdir/configure.ac ||
1034            test -f $ac_srcdir/configure.in; then
1035       echo
1036       $ac_configure --help
1037     else
1038       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1039     fi
1040     cd $ac_popdir
1041   done
1042 fi
1043
1044 test -n "$ac_init_help" && exit 0
1045 if $ac_init_version; then
1046   cat <<\_ACEOF
1047
1048 Copyright (C) 2003 Free Software Foundation, Inc.
1049 This configure script is free software; the Free Software Foundation
1050 gives unlimited permission to copy, distribute and modify it.
1051 _ACEOF
1052   exit 0
1053 fi
1054 exec 5>config.log
1055 cat >&5 <<_ACEOF
1056 This file contains any messages produced by compilers while
1057 running configure, to aid debugging if configure makes a mistake.
1058
1059 It was created by $as_me, which was
1060 generated by GNU Autoconf 2.59.  Invocation command line was
1061
1062   $ $0 $@
1063
1064 _ACEOF
1065 {
1066 cat <<_ASUNAME
1067 ## --------- ##
1068 ## Platform. ##
1069 ## --------- ##
1070
1071 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1072 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1073 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1074 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1075 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1076
1077 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1078 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1079
1080 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1081 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1082 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1083 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1084 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1085 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1086 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1087
1088 _ASUNAME
1089
1090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1091 for as_dir in $PATH
1092 do
1093   IFS=$as_save_IFS
1094   test -z "$as_dir" && as_dir=.
1095   echo "PATH: $as_dir"
1096 done
1097
1098 } >&5
1099
1100 cat >&5 <<_ACEOF
1101
1102
1103 ## ----------- ##
1104 ## Core tests. ##
1105 ## ----------- ##
1106
1107 _ACEOF
1108
1109
1110 # Keep a trace of the command line.
1111 # Strip out --no-create and --no-recursion so they do not pile up.
1112 # Strip out --silent because we don't want to record it for future runs.
1113 # Also quote any args containing shell meta-characters.
1114 # Make two passes to allow for proper duplicate-argument suppression.
1115 ac_configure_args=
1116 ac_configure_args0=
1117 ac_configure_args1=
1118 ac_sep=
1119 ac_must_keep_next=false
1120 for ac_pass in 1 2
1121 do
1122   for ac_arg
1123   do
1124     case $ac_arg in
1125     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1126     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1127     | -silent | --silent | --silen | --sile | --sil)
1128       continue ;;
1129     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1130       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1131     esac
1132     case $ac_pass in
1133     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1134     2)
1135       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1136       if test $ac_must_keep_next = true; then
1137         ac_must_keep_next=false # Got value, back to normal.
1138       else
1139         case $ac_arg in
1140           *=* | --config-cache | -C | -disable-* | --disable-* \
1141           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1142           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1143           | -with-* | --with-* | -without-* | --without-* | --x)
1144             case "$ac_configure_args0 " in
1145               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1146             esac
1147             ;;
1148           -* ) ac_must_keep_next=true ;;
1149         esac
1150       fi
1151       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1152       # Get rid of the leading space.
1153       ac_sep=" "
1154       ;;
1155     esac
1156   done
1157 done
1158 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1159 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1160
1161 # When interrupted or exit'd, cleanup temporary files, and complete
1162 # config.log.  We remove comments because anyway the quotes in there
1163 # would cause problems or look ugly.
1164 # WARNING: Be sure not to use single quotes in there, as some shells,
1165 # such as our DU 5.0 friend, will then `close' the trap.
1166 trap 'exit_status=$?
1167   # Save into config.log some information that might help in debugging.
1168   {
1169     echo
1170
1171     cat <<\_ASBOX
1172 ## ---------------- ##
1173 ## Cache variables. ##
1174 ## ---------------- ##
1175 _ASBOX
1176     echo
1177     # The following way of writing the cache mishandles newlines in values,
1178 {
1179   (set) 2>&1 |
1180     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1181     *ac_space=\ *)
1182       sed -n \
1183         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1184           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1185       ;;
1186     *)
1187       sed -n \
1188         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1189       ;;
1190     esac;
1191 }
1192     echo
1193
1194     cat <<\_ASBOX
1195 ## ----------------- ##
1196 ## Output variables. ##
1197 ## ----------------- ##
1198 _ASBOX
1199     echo
1200     for ac_var in $ac_subst_vars
1201     do
1202       eval ac_val=$`echo $ac_var`
1203       echo "$ac_var='"'"'$ac_val'"'"'"
1204     done | sort
1205     echo
1206
1207     if test -n "$ac_subst_files"; then
1208       cat <<\_ASBOX
1209 ## ------------- ##
1210 ## Output files. ##
1211 ## ------------- ##
1212 _ASBOX
1213       echo
1214       for ac_var in $ac_subst_files
1215       do
1216         eval ac_val=$`echo $ac_var`
1217         echo "$ac_var='"'"'$ac_val'"'"'"
1218       done | sort
1219       echo
1220     fi
1221
1222     if test -s confdefs.h; then
1223       cat <<\_ASBOX
1224 ## ----------- ##
1225 ## confdefs.h. ##
1226 ## ----------- ##
1227 _ASBOX
1228       echo
1229       sed "/^$/d" confdefs.h | sort
1230       echo
1231     fi
1232     test "$ac_signal" != 0 &&
1233       echo "$as_me: caught signal $ac_signal"
1234     echo "$as_me: exit $exit_status"
1235   } >&5
1236   rm -f core *.core &&
1237   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1238     exit $exit_status
1239      ' 0
1240 for ac_signal in 1 2 13 15; do
1241   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1242 done
1243 ac_signal=0
1244
1245 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1246 rm -rf conftest* confdefs.h
1247 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1248 echo >confdefs.h
1249
1250 # Predefined preprocessor variables.
1251
1252 cat >>confdefs.h <<_ACEOF
1253 #define PACKAGE_NAME "$PACKAGE_NAME"
1254 _ACEOF
1255
1256
1257 cat >>confdefs.h <<_ACEOF
1258 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1259 _ACEOF
1260
1261
1262 cat >>confdefs.h <<_ACEOF
1263 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1264 _ACEOF
1265
1266
1267 cat >>confdefs.h <<_ACEOF
1268 #define PACKAGE_STRING "$PACKAGE_STRING"
1269 _ACEOF
1270
1271
1272 cat >>confdefs.h <<_ACEOF
1273 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1274 _ACEOF
1275
1276
1277 # Let the site file select an alternate cache file if it wants to.
1278 # Prefer explicitly selected file to automatically selected ones.
1279 if test -z "$CONFIG_SITE"; then
1280   if test "x$prefix" != xNONE; then
1281     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1282   else
1283     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1284   fi
1285 fi
1286 for ac_site_file in $CONFIG_SITE; do
1287   if test -r "$ac_site_file"; then
1288     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1289 echo "$as_me: loading site script $ac_site_file" >&6;}
1290     sed 's/^/| /' "$ac_site_file" >&5
1291     . "$ac_site_file"
1292   fi
1293 done
1294
1295 if test -r "$cache_file"; then
1296   # Some versions of bash will fail to source /dev/null (special
1297   # files actually), so we avoid doing that.
1298   if test -f "$cache_file"; then
1299     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1300 echo "$as_me: loading cache $cache_file" >&6;}
1301     case $cache_file in
1302       [\\/]* | ?:[\\/]* ) . $cache_file;;
1303       *)                      . ./$cache_file;;
1304     esac
1305   fi
1306 else
1307   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1308 echo "$as_me: creating cache $cache_file" >&6;}
1309   >$cache_file
1310 fi
1311
1312 # Check that the precious variables saved in the cache have kept the same
1313 # value.
1314 ac_cache_corrupted=false
1315 for ac_var in `(set) 2>&1 |
1316                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1317   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1318   eval ac_new_set=\$ac_env_${ac_var}_set
1319   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1320   eval ac_new_val="\$ac_env_${ac_var}_value"
1321   case $ac_old_set,$ac_new_set in
1322     set,)
1323       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1324 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1325       ac_cache_corrupted=: ;;
1326     ,set)
1327       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1328 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1329       ac_cache_corrupted=: ;;
1330     ,);;
1331     *)
1332       if test "x$ac_old_val" != "x$ac_new_val"; then
1333         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1334 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1335         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1336 echo "$as_me:   former value:  $ac_old_val" >&2;}
1337         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1338 echo "$as_me:   current value: $ac_new_val" >&2;}
1339         ac_cache_corrupted=:
1340       fi;;
1341   esac
1342   # Pass precious variables to config.status.
1343   if test "$ac_new_set" = set; then
1344     case $ac_new_val in
1345     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1346       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1347     *) ac_arg=$ac_var=$ac_new_val ;;
1348     esac
1349     case " $ac_configure_args " in
1350       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1351       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1352     esac
1353   fi
1354 done
1355 if $ac_cache_corrupted; then
1356   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1357 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1358   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1359 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1360    { (exit 1); exit 1; }; }
1361 fi
1362
1363 ac_ext=c
1364 ac_cpp='$CPP $CPPFLAGS'
1365 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1366 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1367 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387 BUILD_DIR=`pwd`
1388 cd ..
1389 TOP_DIR=`pwd`
1390 cd ${BUILD_DIR}
1391
1392 ac_aux_dir=
1393 for ac_dir in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf; do
1394   if 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/install.sh; then
1399     ac_aux_dir=$ac_dir
1400     ac_install_sh="$ac_aux_dir/install.sh -c"
1401     break
1402   elif test -f $ac_dir/shtool; then
1403     ac_aux_dir=$ac_dir
1404     ac_install_sh="$ac_aux_dir/shtool install -c"
1405     break
1406   fi
1407 done
1408 if test -z "$ac_aux_dir"; then
1409   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&5
1410 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&2;}
1411    { (exit 1); exit 1; }; }
1412 fi
1413 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1414 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1415 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1416
1417           ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
1418
1419
1420
1421
1422
1423 for ac_prog in true
1424 do
1425   # Extract the first word of "$ac_prog", so it can be a program name with args.
1426 set dummy $ac_prog; ac_word=$2
1427 echo "$as_me:$LINENO: checking for $ac_word" >&5
1428 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1429 if test "${ac_cv_path_TRUEPRG+set}" = set; then
1430   echo $ECHO_N "(cached) $ECHO_C" >&6
1431 else
1432   case $TRUEPRG in
1433   [\\/]* | ?:[\\/]*)
1434   ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
1435   ;;
1436   *)
1437   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1438 for as_dir in $PATH
1439 do
1440   IFS=$as_save_IFS
1441   test -z "$as_dir" && as_dir=.
1442   for ac_exec_ext in '' $ac_executable_extensions; do
1443   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1444     ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
1445     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1446     break 2
1447   fi
1448 done
1449 done
1450
1451   ;;
1452 esac
1453 fi
1454 TRUEPRG=$ac_cv_path_TRUEPRG
1455
1456 if test -n "$TRUEPRG"; then
1457   echo "$as_me:$LINENO: result: $TRUEPRG" >&5
1458 echo "${ECHO_T}$TRUEPRG" >&6
1459 else
1460   echo "$as_me:$LINENO: result: no" >&5
1461 echo "${ECHO_T}no" >&6
1462 fi
1463
1464   test -n "$TRUEPRG" && break
1465 done
1466 test -n "$TRUEPRG" || TRUEPRG=":"
1467
1468 for ac_prog in false
1469 do
1470   # Extract the first word of "$ac_prog", so it can be a program name with args.
1471 set dummy $ac_prog; ac_word=$2
1472 echo "$as_me:$LINENO: checking for $ac_word" >&5
1473 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1474 if test "${ac_cv_path_FALSEPRG+set}" = set; then
1475   echo $ECHO_N "(cached) $ECHO_C" >&6
1476 else
1477   case $FALSEPRG in
1478   [\\/]* | ?:[\\/]*)
1479   ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
1480   ;;
1481   *)
1482   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1483 for as_dir in $PATH
1484 do
1485   IFS=$as_save_IFS
1486   test -z "$as_dir" && as_dir=.
1487   for ac_exec_ext in '' $ac_executable_extensions; do
1488   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1489     ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
1490     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1491     break 2
1492   fi
1493 done
1494 done
1495
1496   ;;
1497 esac
1498 fi
1499 FALSEPRG=$ac_cv_path_FALSEPRG
1500
1501 if test -n "$FALSEPRG"; then
1502   echo "$as_me:$LINENO: result: $FALSEPRG" >&5
1503 echo "${ECHO_T}$FALSEPRG" >&6
1504 else
1505   echo "$as_me:$LINENO: result: no" >&5
1506 echo "${ECHO_T}no" >&6
1507 fi
1508
1509   test -n "$FALSEPRG" && break
1510 done
1511 test -n "$FALSEPRG" || FALSEPRG=":"
1512
1513
1514 #AC_CANONICAL_HOST
1515
1516 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1517 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1518 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1519 echo "configuring for bacula $VERSION ($DATE)"
1520
1521
1522
1523 ac_ext=c
1524 ac_cpp='$CPP $CPPFLAGS'
1525 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1526 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1527 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1528 if test -n "$ac_tool_prefix"; then
1529   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1530 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1531 echo "$as_me:$LINENO: checking for $ac_word" >&5
1532 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1533 if test "${ac_cv_prog_CC+set}" = set; then
1534   echo $ECHO_N "(cached) $ECHO_C" >&6
1535 else
1536   if test -n "$CC"; then
1537   ac_cv_prog_CC="$CC" # Let the user override the test.
1538 else
1539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1540 for as_dir in $PATH
1541 do
1542   IFS=$as_save_IFS
1543   test -z "$as_dir" && as_dir=.
1544   for ac_exec_ext in '' $ac_executable_extensions; do
1545   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1546     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1547     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1548     break 2
1549   fi
1550 done
1551 done
1552
1553 fi
1554 fi
1555 CC=$ac_cv_prog_CC
1556 if test -n "$CC"; then
1557   echo "$as_me:$LINENO: result: $CC" >&5
1558 echo "${ECHO_T}$CC" >&6
1559 else
1560   echo "$as_me:$LINENO: result: no" >&5
1561 echo "${ECHO_T}no" >&6
1562 fi
1563
1564 fi
1565 if test -z "$ac_cv_prog_CC"; then
1566   ac_ct_CC=$CC
1567   # Extract the first word of "gcc", so it can be a program name with args.
1568 set dummy gcc; ac_word=$2
1569 echo "$as_me:$LINENO: checking for $ac_word" >&5
1570 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1571 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1572   echo $ECHO_N "(cached) $ECHO_C" >&6
1573 else
1574   if test -n "$ac_ct_CC"; then
1575   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1576 else
1577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1578 for as_dir in $PATH
1579 do
1580   IFS=$as_save_IFS
1581   test -z "$as_dir" && as_dir=.
1582   for ac_exec_ext in '' $ac_executable_extensions; do
1583   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1584     ac_cv_prog_ac_ct_CC="gcc"
1585     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1586     break 2
1587   fi
1588 done
1589 done
1590
1591 fi
1592 fi
1593 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1594 if test -n "$ac_ct_CC"; then
1595   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1596 echo "${ECHO_T}$ac_ct_CC" >&6
1597 else
1598   echo "$as_me:$LINENO: result: no" >&5
1599 echo "${ECHO_T}no" >&6
1600 fi
1601
1602   CC=$ac_ct_CC
1603 else
1604   CC="$ac_cv_prog_CC"
1605 fi
1606
1607 if test -z "$CC"; then
1608   if test -n "$ac_tool_prefix"; then
1609   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1610 set dummy ${ac_tool_prefix}cc; ac_word=$2
1611 echo "$as_me:$LINENO: checking for $ac_word" >&5
1612 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1613 if test "${ac_cv_prog_CC+set}" = set; then
1614   echo $ECHO_N "(cached) $ECHO_C" >&6
1615 else
1616   if test -n "$CC"; then
1617   ac_cv_prog_CC="$CC" # Let the user override the test.
1618 else
1619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1620 for as_dir in $PATH
1621 do
1622   IFS=$as_save_IFS
1623   test -z "$as_dir" && as_dir=.
1624   for ac_exec_ext in '' $ac_executable_extensions; do
1625   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1626     ac_cv_prog_CC="${ac_tool_prefix}cc"
1627     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1628     break 2
1629   fi
1630 done
1631 done
1632
1633 fi
1634 fi
1635 CC=$ac_cv_prog_CC
1636 if test -n "$CC"; then
1637   echo "$as_me:$LINENO: result: $CC" >&5
1638 echo "${ECHO_T}$CC" >&6
1639 else
1640   echo "$as_me:$LINENO: result: no" >&5
1641 echo "${ECHO_T}no" >&6
1642 fi
1643
1644 fi
1645 if test -z "$ac_cv_prog_CC"; then
1646   ac_ct_CC=$CC
1647   # Extract the first word of "cc", so it can be a program name with args.
1648 set dummy cc; ac_word=$2
1649 echo "$as_me:$LINENO: checking for $ac_word" >&5
1650 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1651 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1652   echo $ECHO_N "(cached) $ECHO_C" >&6
1653 else
1654   if test -n "$ac_ct_CC"; then
1655   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1656 else
1657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1658 for as_dir in $PATH
1659 do
1660   IFS=$as_save_IFS
1661   test -z "$as_dir" && as_dir=.
1662   for ac_exec_ext in '' $ac_executable_extensions; do
1663   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1664     ac_cv_prog_ac_ct_CC="cc"
1665     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1666     break 2
1667   fi
1668 done
1669 done
1670
1671 fi
1672 fi
1673 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1674 if test -n "$ac_ct_CC"; then
1675   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1676 echo "${ECHO_T}$ac_ct_CC" >&6
1677 else
1678   echo "$as_me:$LINENO: result: no" >&5
1679 echo "${ECHO_T}no" >&6
1680 fi
1681
1682   CC=$ac_ct_CC
1683 else
1684   CC="$ac_cv_prog_CC"
1685 fi
1686
1687 fi
1688 if test -z "$CC"; then
1689   # Extract the first word of "cc", so it can be a program name with args.
1690 set dummy cc; ac_word=$2
1691 echo "$as_me:$LINENO: checking for $ac_word" >&5
1692 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1693 if test "${ac_cv_prog_CC+set}" = set; then
1694   echo $ECHO_N "(cached) $ECHO_C" >&6
1695 else
1696   if test -n "$CC"; then
1697   ac_cv_prog_CC="$CC" # Let the user override the test.
1698 else
1699   ac_prog_rejected=no
1700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1701 for as_dir in $PATH
1702 do
1703   IFS=$as_save_IFS
1704   test -z "$as_dir" && as_dir=.
1705   for ac_exec_ext in '' $ac_executable_extensions; do
1706   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1707     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1708        ac_prog_rejected=yes
1709        continue
1710      fi
1711     ac_cv_prog_CC="cc"
1712     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1713     break 2
1714   fi
1715 done
1716 done
1717
1718 if test $ac_prog_rejected = yes; then
1719   # We found a bogon in the path, so make sure we never use it.
1720   set dummy $ac_cv_prog_CC
1721   shift
1722   if test $# != 0; then
1723     # We chose a different compiler from the bogus one.
1724     # However, it has the same basename, so the bogon will be chosen
1725     # first if we set CC to just the basename; use the full file name.
1726     shift
1727     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1728   fi
1729 fi
1730 fi
1731 fi
1732 CC=$ac_cv_prog_CC
1733 if test -n "$CC"; then
1734   echo "$as_me:$LINENO: result: $CC" >&5
1735 echo "${ECHO_T}$CC" >&6
1736 else
1737   echo "$as_me:$LINENO: result: no" >&5
1738 echo "${ECHO_T}no" >&6
1739 fi
1740
1741 fi
1742 if test -z "$CC"; then
1743   if test -n "$ac_tool_prefix"; then
1744   for ac_prog in cl
1745   do
1746     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1747 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1748 echo "$as_me:$LINENO: checking for $ac_word" >&5
1749 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1750 if test "${ac_cv_prog_CC+set}" = set; then
1751   echo $ECHO_N "(cached) $ECHO_C" >&6
1752 else
1753   if test -n "$CC"; then
1754   ac_cv_prog_CC="$CC" # Let the user override the test.
1755 else
1756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1757 for as_dir in $PATH
1758 do
1759   IFS=$as_save_IFS
1760   test -z "$as_dir" && as_dir=.
1761   for ac_exec_ext in '' $ac_executable_extensions; do
1762   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1763     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1764     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1765     break 2
1766   fi
1767 done
1768 done
1769
1770 fi
1771 fi
1772 CC=$ac_cv_prog_CC
1773 if test -n "$CC"; then
1774   echo "$as_me:$LINENO: result: $CC" >&5
1775 echo "${ECHO_T}$CC" >&6
1776 else
1777   echo "$as_me:$LINENO: result: no" >&5
1778 echo "${ECHO_T}no" >&6
1779 fi
1780
1781     test -n "$CC" && break
1782   done
1783 fi
1784 if test -z "$CC"; then
1785   ac_ct_CC=$CC
1786   for ac_prog in cl
1787 do
1788   # Extract the first word of "$ac_prog", so it can be a program name with args.
1789 set dummy $ac_prog; ac_word=$2
1790 echo "$as_me:$LINENO: checking for $ac_word" >&5
1791 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1792 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1793   echo $ECHO_N "(cached) $ECHO_C" >&6
1794 else
1795   if test -n "$ac_ct_CC"; then
1796   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1797 else
1798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1799 for as_dir in $PATH
1800 do
1801   IFS=$as_save_IFS
1802   test -z "$as_dir" && as_dir=.
1803   for ac_exec_ext in '' $ac_executable_extensions; do
1804   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1805     ac_cv_prog_ac_ct_CC="$ac_prog"
1806     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1807     break 2
1808   fi
1809 done
1810 done
1811
1812 fi
1813 fi
1814 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1815 if test -n "$ac_ct_CC"; then
1816   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1817 echo "${ECHO_T}$ac_ct_CC" >&6
1818 else
1819   echo "$as_me:$LINENO: result: no" >&5
1820 echo "${ECHO_T}no" >&6
1821 fi
1822
1823   test -n "$ac_ct_CC" && break
1824 done
1825
1826   CC=$ac_ct_CC
1827 fi
1828
1829 fi
1830
1831
1832 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1833 See \`config.log' for more details." >&5
1834 echo "$as_me: error: no acceptable C compiler found in \$PATH
1835 See \`config.log' for more details." >&2;}
1836    { (exit 1); exit 1; }; }
1837
1838 # Provide some information about the compiler.
1839 echo "$as_me:$LINENO:" \
1840      "checking for C compiler version" >&5
1841 ac_compiler=`set X $ac_compile; echo $2`
1842 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1843   (eval $ac_compiler --version </dev/null >&5) 2>&5
1844   ac_status=$?
1845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1846   (exit $ac_status); }
1847 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1848   (eval $ac_compiler -v </dev/null >&5) 2>&5
1849   ac_status=$?
1850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1851   (exit $ac_status); }
1852 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1853   (eval $ac_compiler -V </dev/null >&5) 2>&5
1854   ac_status=$?
1855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1856   (exit $ac_status); }
1857
1858 cat >conftest.$ac_ext <<_ACEOF
1859 /* confdefs.h.  */
1860 _ACEOF
1861 cat confdefs.h >>conftest.$ac_ext
1862 cat >>conftest.$ac_ext <<_ACEOF
1863 /* end confdefs.h.  */
1864
1865 int
1866 main ()
1867 {
1868
1869   ;
1870   return 0;
1871 }
1872 _ACEOF
1873 ac_clean_files_save=$ac_clean_files
1874 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1875 # Try to create an executable without -o first, disregard a.out.
1876 # It will help us diagnose broken compilers, and finding out an intuition
1877 # of exeext.
1878 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1879 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1880 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1881 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1882   (eval $ac_link_default) 2>&5
1883   ac_status=$?
1884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1885   (exit $ac_status); }; then
1886   # Find the output, starting from the most likely.  This scheme is
1887 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1888 # resort.
1889
1890 # Be careful to initialize this variable, since it used to be cached.
1891 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1892 ac_cv_exeext=
1893 # b.out is created by i960 compilers.
1894 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1895 do
1896   test -f "$ac_file" || continue
1897   case $ac_file in
1898     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1899         ;;
1900     conftest.$ac_ext )
1901         # This is the source file.
1902         ;;
1903     [ab].out )
1904         # We found the default executable, but exeext='' is most
1905         # certainly right.
1906         break;;
1907     *.* )
1908         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1909         # FIXME: I believe we export ac_cv_exeext for Libtool,
1910         # but it would be cool to find out if it's true.  Does anybody
1911         # maintain Libtool? --akim.
1912         export ac_cv_exeext
1913         break;;
1914     * )
1915         break;;
1916   esac
1917 done
1918 else
1919   echo "$as_me: failed program was:" >&5
1920 sed 's/^/| /' conftest.$ac_ext >&5
1921
1922 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1923 See \`config.log' for more details." >&5
1924 echo "$as_me: error: C compiler cannot create executables
1925 See \`config.log' for more details." >&2;}
1926    { (exit 77); exit 77; }; }
1927 fi
1928
1929 ac_exeext=$ac_cv_exeext
1930 echo "$as_me:$LINENO: result: $ac_file" >&5
1931 echo "${ECHO_T}$ac_file" >&6
1932
1933 # Check the compiler produces executables we can run.  If not, either
1934 # the compiler is broken, or we cross compile.
1935 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1936 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1937 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1938 # If not cross compiling, check that we can run a simple program.
1939 if test "$cross_compiling" != yes; then
1940   if { ac_try='./$ac_file'
1941   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1942   (eval $ac_try) 2>&5
1943   ac_status=$?
1944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1945   (exit $ac_status); }; }; then
1946     cross_compiling=no
1947   else
1948     if test "$cross_compiling" = maybe; then
1949         cross_compiling=yes
1950     else
1951         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1952 If you meant to cross compile, use \`--host'.
1953 See \`config.log' for more details." >&5
1954 echo "$as_me: error: cannot run C compiled programs.
1955 If you meant to cross compile, use \`--host'.
1956 See \`config.log' for more details." >&2;}
1957    { (exit 1); exit 1; }; }
1958     fi
1959   fi
1960 fi
1961 echo "$as_me:$LINENO: result: yes" >&5
1962 echo "${ECHO_T}yes" >&6
1963
1964 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1965 ac_clean_files=$ac_clean_files_save
1966 # Check the compiler produces executables we can run.  If not, either
1967 # the compiler is broken, or we cross compile.
1968 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1969 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1970 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1971 echo "${ECHO_T}$cross_compiling" >&6
1972
1973 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1974 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1975 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1976   (eval $ac_link) 2>&5
1977   ac_status=$?
1978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1979   (exit $ac_status); }; then
1980   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1981 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1982 # work properly (i.e., refer to `conftest.exe'), while it won't with
1983 # `rm'.
1984 for ac_file in conftest.exe conftest conftest.*; do
1985   test -f "$ac_file" || continue
1986   case $ac_file in
1987     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1988     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1989           export ac_cv_exeext
1990           break;;
1991     * ) break;;
1992   esac
1993 done
1994 else
1995   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1996 See \`config.log' for more details." >&5
1997 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1998 See \`config.log' for more details." >&2;}
1999    { (exit 1); exit 1; }; }
2000 fi
2001
2002 rm -f conftest$ac_cv_exeext
2003 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2004 echo "${ECHO_T}$ac_cv_exeext" >&6
2005
2006 rm -f conftest.$ac_ext
2007 EXEEXT=$ac_cv_exeext
2008 ac_exeext=$EXEEXT
2009 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2010 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2011 if test "${ac_cv_objext+set}" = set; then
2012   echo $ECHO_N "(cached) $ECHO_C" >&6
2013 else
2014   cat >conftest.$ac_ext <<_ACEOF
2015 /* confdefs.h.  */
2016 _ACEOF
2017 cat confdefs.h >>conftest.$ac_ext
2018 cat >>conftest.$ac_ext <<_ACEOF
2019 /* end confdefs.h.  */
2020
2021 int
2022 main ()
2023 {
2024
2025   ;
2026   return 0;
2027 }
2028 _ACEOF
2029 rm -f conftest.o conftest.obj
2030 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2031   (eval $ac_compile) 2>&5
2032   ac_status=$?
2033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2034   (exit $ac_status); }; then
2035   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2036   case $ac_file in
2037     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2038     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2039        break;;
2040   esac
2041 done
2042 else
2043   echo "$as_me: failed program was:" >&5
2044 sed 's/^/| /' conftest.$ac_ext >&5
2045
2046 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2047 See \`config.log' for more details." >&5
2048 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2049 See \`config.log' for more details." >&2;}
2050    { (exit 1); exit 1; }; }
2051 fi
2052
2053 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2054 fi
2055 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2056 echo "${ECHO_T}$ac_cv_objext" >&6
2057 OBJEXT=$ac_cv_objext
2058 ac_objext=$OBJEXT
2059 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2060 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2061 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2062   echo $ECHO_N "(cached) $ECHO_C" >&6
2063 else
2064   cat >conftest.$ac_ext <<_ACEOF
2065 /* confdefs.h.  */
2066 _ACEOF
2067 cat confdefs.h >>conftest.$ac_ext
2068 cat >>conftest.$ac_ext <<_ACEOF
2069 /* end confdefs.h.  */
2070
2071 int
2072 main ()
2073 {
2074 #ifndef __GNUC__
2075        choke me
2076 #endif
2077
2078   ;
2079   return 0;
2080 }
2081 _ACEOF
2082 rm -f conftest.$ac_objext
2083 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2084   (eval $ac_compile) 2>conftest.er1
2085   ac_status=$?
2086   grep -v '^ *+' conftest.er1 >conftest.err
2087   rm -f conftest.er1
2088   cat conftest.err >&5
2089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2090   (exit $ac_status); } &&
2091          { ac_try='test -z "$ac_c_werror_flag"
2092                          || test ! -s conftest.err'
2093   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2094   (eval $ac_try) 2>&5
2095   ac_status=$?
2096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2097   (exit $ac_status); }; } &&
2098          { ac_try='test -s conftest.$ac_objext'
2099   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2100   (eval $ac_try) 2>&5
2101   ac_status=$?
2102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2103   (exit $ac_status); }; }; then
2104   ac_compiler_gnu=yes
2105 else
2106   echo "$as_me: failed program was:" >&5
2107 sed 's/^/| /' conftest.$ac_ext >&5
2108
2109 ac_compiler_gnu=no
2110 fi
2111 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2112 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2113
2114 fi
2115 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2116 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2117 GCC=`test $ac_compiler_gnu = yes && echo yes`
2118 ac_test_CFLAGS=${CFLAGS+set}
2119 ac_save_CFLAGS=$CFLAGS
2120 CFLAGS="-g"
2121 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2122 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2123 if test "${ac_cv_prog_cc_g+set}" = set; then
2124   echo $ECHO_N "(cached) $ECHO_C" >&6
2125 else
2126   cat >conftest.$ac_ext <<_ACEOF
2127 /* confdefs.h.  */
2128 _ACEOF
2129 cat confdefs.h >>conftest.$ac_ext
2130 cat >>conftest.$ac_ext <<_ACEOF
2131 /* end confdefs.h.  */
2132
2133 int
2134 main ()
2135 {
2136
2137   ;
2138   return 0;
2139 }
2140 _ACEOF
2141 rm -f conftest.$ac_objext
2142 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2143   (eval $ac_compile) 2>conftest.er1
2144   ac_status=$?
2145   grep -v '^ *+' conftest.er1 >conftest.err
2146   rm -f conftest.er1
2147   cat conftest.err >&5
2148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2149   (exit $ac_status); } &&
2150          { ac_try='test -z "$ac_c_werror_flag"
2151                          || test ! -s conftest.err'
2152   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2153   (eval $ac_try) 2>&5
2154   ac_status=$?
2155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2156   (exit $ac_status); }; } &&
2157          { ac_try='test -s conftest.$ac_objext'
2158   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2159   (eval $ac_try) 2>&5
2160   ac_status=$?
2161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2162   (exit $ac_status); }; }; then
2163   ac_cv_prog_cc_g=yes
2164 else
2165   echo "$as_me: failed program was:" >&5
2166 sed 's/^/| /' conftest.$ac_ext >&5
2167
2168 ac_cv_prog_cc_g=no
2169 fi
2170 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2171 fi
2172 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2173 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2174 if test "$ac_test_CFLAGS" = set; then
2175   CFLAGS=$ac_save_CFLAGS
2176 elif test $ac_cv_prog_cc_g = yes; then
2177   if test "$GCC" = yes; then
2178     CFLAGS="-g -O2"
2179   else
2180     CFLAGS="-g"
2181   fi
2182 else
2183   if test "$GCC" = yes; then
2184     CFLAGS="-O2"
2185   else
2186     CFLAGS=
2187   fi
2188 fi
2189 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2190 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2191 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2192   echo $ECHO_N "(cached) $ECHO_C" >&6
2193 else
2194   ac_cv_prog_cc_stdc=no
2195 ac_save_CC=$CC
2196 cat >conftest.$ac_ext <<_ACEOF
2197 /* confdefs.h.  */
2198 _ACEOF
2199 cat confdefs.h >>conftest.$ac_ext
2200 cat >>conftest.$ac_ext <<_ACEOF
2201 /* end confdefs.h.  */
2202 #include <stdarg.h>
2203 #include <stdio.h>
2204 #include <sys/types.h>
2205 #include <sys/stat.h>
2206 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2207 struct buf { int x; };
2208 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2209 static char *e (p, i)
2210      char **p;
2211      int i;
2212 {
2213   return p[i];
2214 }
2215 static char *f (char * (*g) (char **, int), char **p, ...)
2216 {
2217   char *s;
2218   va_list v;
2219   va_start (v,p);
2220   s = g (p, va_arg (v,int));
2221   va_end (v);
2222   return s;
2223 }
2224
2225 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2226    function prototypes and stuff, but not '\xHH' hex character constants.
2227    These don't provoke an error unfortunately, instead are silently treated
2228    as 'x'.  The following induces an error, until -std1 is added to get
2229    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2230    array size at least.  It's necessary to write '\x00'==0 to get something
2231    that's true only with -std1.  */
2232 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2233
2234 int test (int i, double x);
2235 struct s1 {int (*f) (int a);};
2236 struct s2 {int (*f) (double a);};
2237 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2238 int argc;
2239 char **argv;
2240 int
2241 main ()
2242 {
2243 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2244   ;
2245   return 0;
2246 }
2247 _ACEOF
2248 # Don't try gcc -ansi; that turns off useful extensions and
2249 # breaks some systems' header files.
2250 # AIX                   -qlanglvl=ansi
2251 # Ultrix and OSF/1      -std1
2252 # HP-UX 10.20 and later -Ae
2253 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2254 # SVR4                  -Xc -D__EXTENSIONS__
2255 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2256 do
2257   CC="$ac_save_CC $ac_arg"
2258   rm -f conftest.$ac_objext
2259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2260   (eval $ac_compile) 2>conftest.er1
2261   ac_status=$?
2262   grep -v '^ *+' conftest.er1 >conftest.err
2263   rm -f conftest.er1
2264   cat conftest.err >&5
2265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2266   (exit $ac_status); } &&
2267          { ac_try='test -z "$ac_c_werror_flag"
2268                          || test ! -s conftest.err'
2269   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2270   (eval $ac_try) 2>&5
2271   ac_status=$?
2272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2273   (exit $ac_status); }; } &&
2274          { ac_try='test -s conftest.$ac_objext'
2275   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2276   (eval $ac_try) 2>&5
2277   ac_status=$?
2278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2279   (exit $ac_status); }; }; then
2280   ac_cv_prog_cc_stdc=$ac_arg
2281 break
2282 else
2283   echo "$as_me: failed program was:" >&5
2284 sed 's/^/| /' conftest.$ac_ext >&5
2285
2286 fi
2287 rm -f conftest.err conftest.$ac_objext
2288 done
2289 rm -f conftest.$ac_ext conftest.$ac_objext
2290 CC=$ac_save_CC
2291
2292 fi
2293
2294 case "x$ac_cv_prog_cc_stdc" in
2295   x|xno)
2296     echo "$as_me:$LINENO: result: none needed" >&5
2297 echo "${ECHO_T}none needed" >&6 ;;
2298   *)
2299     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2300 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2301     CC="$CC $ac_cv_prog_cc_stdc" ;;
2302 esac
2303
2304 # Some people use a C++ compiler to compile C.  Since we use `exit',
2305 # in C++ we need to declare it.  In case someone uses the same compiler
2306 # for both compiling C and C++ we need to have the C++ compiler decide
2307 # the declaration of exit, since it's the most demanding environment.
2308 cat >conftest.$ac_ext <<_ACEOF
2309 #ifndef __cplusplus
2310   choke me
2311 #endif
2312 _ACEOF
2313 rm -f conftest.$ac_objext
2314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2315   (eval $ac_compile) 2>conftest.er1
2316   ac_status=$?
2317   grep -v '^ *+' conftest.er1 >conftest.err
2318   rm -f conftest.er1
2319   cat conftest.err >&5
2320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2321   (exit $ac_status); } &&
2322          { ac_try='test -z "$ac_c_werror_flag"
2323                          || test ! -s conftest.err'
2324   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2325   (eval $ac_try) 2>&5
2326   ac_status=$?
2327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2328   (exit $ac_status); }; } &&
2329          { ac_try='test -s conftest.$ac_objext'
2330   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2331   (eval $ac_try) 2>&5
2332   ac_status=$?
2333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2334   (exit $ac_status); }; }; then
2335   for ac_declaration in \
2336    '' \
2337    'extern "C" void std::exit (int) throw (); using std::exit;' \
2338    'extern "C" void std::exit (int); using std::exit;' \
2339    'extern "C" void exit (int) throw ();' \
2340    'extern "C" void exit (int);' \
2341    'void exit (int);'
2342 do
2343   cat >conftest.$ac_ext <<_ACEOF
2344 /* confdefs.h.  */
2345 _ACEOF
2346 cat confdefs.h >>conftest.$ac_ext
2347 cat >>conftest.$ac_ext <<_ACEOF
2348 /* end confdefs.h.  */
2349 $ac_declaration
2350 #include <stdlib.h>
2351 int
2352 main ()
2353 {
2354 exit (42);
2355   ;
2356   return 0;
2357 }
2358 _ACEOF
2359 rm -f conftest.$ac_objext
2360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2361   (eval $ac_compile) 2>conftest.er1
2362   ac_status=$?
2363   grep -v '^ *+' conftest.er1 >conftest.err
2364   rm -f conftest.er1
2365   cat conftest.err >&5
2366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2367   (exit $ac_status); } &&
2368          { ac_try='test -z "$ac_c_werror_flag"
2369                          || test ! -s conftest.err'
2370   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2371   (eval $ac_try) 2>&5
2372   ac_status=$?
2373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2374   (exit $ac_status); }; } &&
2375          { ac_try='test -s conftest.$ac_objext'
2376   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2377   (eval $ac_try) 2>&5
2378   ac_status=$?
2379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2380   (exit $ac_status); }; }; then
2381   :
2382 else
2383   echo "$as_me: failed program was:" >&5
2384 sed 's/^/| /' conftest.$ac_ext >&5
2385
2386 continue
2387 fi
2388 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2389   cat >conftest.$ac_ext <<_ACEOF
2390 /* confdefs.h.  */
2391 _ACEOF
2392 cat confdefs.h >>conftest.$ac_ext
2393 cat >>conftest.$ac_ext <<_ACEOF
2394 /* end confdefs.h.  */
2395 $ac_declaration
2396 int
2397 main ()
2398 {
2399 exit (42);
2400   ;
2401   return 0;
2402 }
2403 _ACEOF
2404 rm -f conftest.$ac_objext
2405 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2406   (eval $ac_compile) 2>conftest.er1
2407   ac_status=$?
2408   grep -v '^ *+' conftest.er1 >conftest.err
2409   rm -f conftest.er1
2410   cat conftest.err >&5
2411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2412   (exit $ac_status); } &&
2413          { ac_try='test -z "$ac_c_werror_flag"
2414                          || test ! -s conftest.err'
2415   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2416   (eval $ac_try) 2>&5
2417   ac_status=$?
2418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2419   (exit $ac_status); }; } &&
2420          { ac_try='test -s conftest.$ac_objext'
2421   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2422   (eval $ac_try) 2>&5
2423   ac_status=$?
2424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2425   (exit $ac_status); }; }; then
2426   break
2427 else
2428   echo "$as_me: failed program was:" >&5
2429 sed 's/^/| /' conftest.$ac_ext >&5
2430
2431 fi
2432 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2433 done
2434 rm -f conftest*
2435 if test -n "$ac_declaration"; then
2436   echo '#ifdef __cplusplus' >>confdefs.h
2437   echo $ac_declaration      >>confdefs.h
2438   echo '#endif'             >>confdefs.h
2439 fi
2440
2441 else
2442   echo "$as_me: failed program was:" >&5
2443 sed 's/^/| /' conftest.$ac_ext >&5
2444
2445 fi
2446 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2447 ac_ext=c
2448 ac_cpp='$CPP $CPPFLAGS'
2449 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2450 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2451 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2452
2453 ac_ext=cc
2454 ac_cpp='$CXXCPP $CPPFLAGS'
2455 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2456 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2457 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2458 if test -n "$ac_tool_prefix"; then
2459   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2460   do
2461     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2462 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2463 echo "$as_me:$LINENO: checking for $ac_word" >&5
2464 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2465 if test "${ac_cv_prog_CXX+set}" = set; then
2466   echo $ECHO_N "(cached) $ECHO_C" >&6
2467 else
2468   if test -n "$CXX"; then
2469   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2470 else
2471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2472 for as_dir in $PATH
2473 do
2474   IFS=$as_save_IFS
2475   test -z "$as_dir" && as_dir=.
2476   for ac_exec_ext in '' $ac_executable_extensions; do
2477   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2478     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2479     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2480     break 2
2481   fi
2482 done
2483 done
2484
2485 fi
2486 fi
2487 CXX=$ac_cv_prog_CXX
2488 if test -n "$CXX"; then
2489   echo "$as_me:$LINENO: result: $CXX" >&5
2490 echo "${ECHO_T}$CXX" >&6
2491 else
2492   echo "$as_me:$LINENO: result: no" >&5
2493 echo "${ECHO_T}no" >&6
2494 fi
2495
2496     test -n "$CXX" && break
2497   done
2498 fi
2499 if test -z "$CXX"; then
2500   ac_ct_CXX=$CXX
2501   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2502 do
2503   # Extract the first word of "$ac_prog", so it can be a program name with args.
2504 set dummy $ac_prog; ac_word=$2
2505 echo "$as_me:$LINENO: checking for $ac_word" >&5
2506 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2507 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2508   echo $ECHO_N "(cached) $ECHO_C" >&6
2509 else
2510   if test -n "$ac_ct_CXX"; then
2511   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2512 else
2513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2514 for as_dir in $PATH
2515 do
2516   IFS=$as_save_IFS
2517   test -z "$as_dir" && as_dir=.
2518   for ac_exec_ext in '' $ac_executable_extensions; do
2519   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2520     ac_cv_prog_ac_ct_CXX="$ac_prog"
2521     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2522     break 2
2523   fi
2524 done
2525 done
2526
2527 fi
2528 fi
2529 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2530 if test -n "$ac_ct_CXX"; then
2531   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2532 echo "${ECHO_T}$ac_ct_CXX" >&6
2533 else
2534   echo "$as_me:$LINENO: result: no" >&5
2535 echo "${ECHO_T}no" >&6
2536 fi
2537
2538   test -n "$ac_ct_CXX" && break
2539 done
2540 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2541
2542   CXX=$ac_ct_CXX
2543 fi
2544
2545
2546 # Provide some information about the compiler.
2547 echo "$as_me:$LINENO:" \
2548      "checking for C++ compiler version" >&5
2549 ac_compiler=`set X $ac_compile; echo $2`
2550 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2551   (eval $ac_compiler --version </dev/null >&5) 2>&5
2552   ac_status=$?
2553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2554   (exit $ac_status); }
2555 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2556   (eval $ac_compiler -v </dev/null >&5) 2>&5
2557   ac_status=$?
2558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2559   (exit $ac_status); }
2560 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2561   (eval $ac_compiler -V </dev/null >&5) 2>&5
2562   ac_status=$?
2563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2564   (exit $ac_status); }
2565
2566 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2567 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2568 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2569   echo $ECHO_N "(cached) $ECHO_C" >&6
2570 else
2571   cat >conftest.$ac_ext <<_ACEOF
2572 /* confdefs.h.  */
2573 _ACEOF
2574 cat confdefs.h >>conftest.$ac_ext
2575 cat >>conftest.$ac_ext <<_ACEOF
2576 /* end confdefs.h.  */
2577
2578 int
2579 main ()
2580 {
2581 #ifndef __GNUC__
2582        choke me
2583 #endif
2584
2585   ;
2586   return 0;
2587 }
2588 _ACEOF
2589 rm -f conftest.$ac_objext
2590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2591   (eval $ac_compile) 2>conftest.er1
2592   ac_status=$?
2593   grep -v '^ *+' conftest.er1 >conftest.err
2594   rm -f conftest.er1
2595   cat conftest.err >&5
2596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2597   (exit $ac_status); } &&
2598          { ac_try='test -z "$ac_cxx_werror_flag"
2599                          || test ! -s conftest.err'
2600   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2601   (eval $ac_try) 2>&5
2602   ac_status=$?
2603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2604   (exit $ac_status); }; } &&
2605          { ac_try='test -s conftest.$ac_objext'
2606   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2607   (eval $ac_try) 2>&5
2608   ac_status=$?
2609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2610   (exit $ac_status); }; }; then
2611   ac_compiler_gnu=yes
2612 else
2613   echo "$as_me: failed program was:" >&5
2614 sed 's/^/| /' conftest.$ac_ext >&5
2615
2616 ac_compiler_gnu=no
2617 fi
2618 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2619 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2620
2621 fi
2622 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2623 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2624 GXX=`test $ac_compiler_gnu = yes && echo yes`
2625 ac_test_CXXFLAGS=${CXXFLAGS+set}
2626 ac_save_CXXFLAGS=$CXXFLAGS
2627 CXXFLAGS="-g"
2628 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2629 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2630 if test "${ac_cv_prog_cxx_g+set}" = set; then
2631   echo $ECHO_N "(cached) $ECHO_C" >&6
2632 else
2633   cat >conftest.$ac_ext <<_ACEOF
2634 /* confdefs.h.  */
2635 _ACEOF
2636 cat confdefs.h >>conftest.$ac_ext
2637 cat >>conftest.$ac_ext <<_ACEOF
2638 /* end confdefs.h.  */
2639
2640 int
2641 main ()
2642 {
2643
2644   ;
2645   return 0;
2646 }
2647 _ACEOF
2648 rm -f conftest.$ac_objext
2649 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2650   (eval $ac_compile) 2>conftest.er1
2651   ac_status=$?
2652   grep -v '^ *+' conftest.er1 >conftest.err
2653   rm -f conftest.er1
2654   cat conftest.err >&5
2655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2656   (exit $ac_status); } &&
2657          { ac_try='test -z "$ac_cxx_werror_flag"
2658                          || test ! -s conftest.err'
2659   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2660   (eval $ac_try) 2>&5
2661   ac_status=$?
2662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2663   (exit $ac_status); }; } &&
2664          { ac_try='test -s conftest.$ac_objext'
2665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2666   (eval $ac_try) 2>&5
2667   ac_status=$?
2668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2669   (exit $ac_status); }; }; then
2670   ac_cv_prog_cxx_g=yes
2671 else
2672   echo "$as_me: failed program was:" >&5
2673 sed 's/^/| /' conftest.$ac_ext >&5
2674
2675 ac_cv_prog_cxx_g=no
2676 fi
2677 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2678 fi
2679 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2680 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2681 if test "$ac_test_CXXFLAGS" = set; then
2682   CXXFLAGS=$ac_save_CXXFLAGS
2683 elif test $ac_cv_prog_cxx_g = yes; then
2684   if test "$GXX" = yes; then
2685     CXXFLAGS="-g -O2"
2686   else
2687     CXXFLAGS="-g"
2688   fi
2689 else
2690   if test "$GXX" = yes; then
2691     CXXFLAGS="-O2"
2692   else
2693     CXXFLAGS=
2694   fi
2695 fi
2696 for ac_declaration in \
2697    '' \
2698    'extern "C" void std::exit (int) throw (); using std::exit;' \
2699    'extern "C" void std::exit (int); using std::exit;' \
2700    'extern "C" void exit (int) throw ();' \
2701    'extern "C" void exit (int);' \
2702    'void exit (int);'
2703 do
2704   cat >conftest.$ac_ext <<_ACEOF
2705 /* confdefs.h.  */
2706 _ACEOF
2707 cat confdefs.h >>conftest.$ac_ext
2708 cat >>conftest.$ac_ext <<_ACEOF
2709 /* end confdefs.h.  */
2710 $ac_declaration
2711 #include <stdlib.h>
2712 int
2713 main ()
2714 {
2715 exit (42);
2716   ;
2717   return 0;
2718 }
2719 _ACEOF
2720 rm -f conftest.$ac_objext
2721 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2722   (eval $ac_compile) 2>conftest.er1
2723   ac_status=$?
2724   grep -v '^ *+' conftest.er1 >conftest.err
2725   rm -f conftest.er1
2726   cat conftest.err >&5
2727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2728   (exit $ac_status); } &&
2729          { ac_try='test -z "$ac_cxx_werror_flag"
2730                          || test ! -s conftest.err'
2731   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2732   (eval $ac_try) 2>&5
2733   ac_status=$?
2734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2735   (exit $ac_status); }; } &&
2736          { ac_try='test -s conftest.$ac_objext'
2737   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2738   (eval $ac_try) 2>&5
2739   ac_status=$?
2740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2741   (exit $ac_status); }; }; then
2742   :
2743 else
2744   echo "$as_me: failed program was:" >&5
2745 sed 's/^/| /' conftest.$ac_ext >&5
2746
2747 continue
2748 fi
2749 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2750   cat >conftest.$ac_ext <<_ACEOF
2751 /* confdefs.h.  */
2752 _ACEOF
2753 cat confdefs.h >>conftest.$ac_ext
2754 cat >>conftest.$ac_ext <<_ACEOF
2755 /* end confdefs.h.  */
2756 $ac_declaration
2757 int
2758 main ()
2759 {
2760 exit (42);
2761   ;
2762   return 0;
2763 }
2764 _ACEOF
2765 rm -f conftest.$ac_objext
2766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2767   (eval $ac_compile) 2>conftest.er1
2768   ac_status=$?
2769   grep -v '^ *+' conftest.er1 >conftest.err
2770   rm -f conftest.er1
2771   cat conftest.err >&5
2772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2773   (exit $ac_status); } &&
2774          { ac_try='test -z "$ac_cxx_werror_flag"
2775                          || test ! -s conftest.err'
2776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2777   (eval $ac_try) 2>&5
2778   ac_status=$?
2779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2780   (exit $ac_status); }; } &&
2781          { ac_try='test -s conftest.$ac_objext'
2782   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2783   (eval $ac_try) 2>&5
2784   ac_status=$?
2785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2786   (exit $ac_status); }; }; then
2787   break
2788 else
2789   echo "$as_me: failed program was:" >&5
2790 sed 's/^/| /' conftest.$ac_ext >&5
2791
2792 fi
2793 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2794 done
2795 rm -f conftest*
2796 if test -n "$ac_declaration"; then
2797   echo '#ifdef __cplusplus' >>confdefs.h
2798   echo $ac_declaration      >>confdefs.h
2799   echo '#endif'             >>confdefs.h
2800 fi
2801
2802 ac_ext=c
2803 ac_cpp='$CPP $CPPFLAGS'
2804 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2805 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2806 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2807
2808 if test "x$CC" != xcc; then
2809   echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2810 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2811 else
2812   echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2813 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2814 fi
2815 set dummy $CC; ac_cc=`echo $2 |
2816                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2817 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2818   echo $ECHO_N "(cached) $ECHO_C" >&6
2819 else
2820   cat >conftest.$ac_ext <<_ACEOF
2821 /* confdefs.h.  */
2822 _ACEOF
2823 cat confdefs.h >>conftest.$ac_ext
2824 cat >>conftest.$ac_ext <<_ACEOF
2825 /* end confdefs.h.  */
2826
2827 int
2828 main ()
2829 {
2830
2831   ;
2832   return 0;
2833 }
2834 _ACEOF
2835 # Make sure it works both with $CC and with simple cc.
2836 # We do the test twice because some compilers refuse to overwrite an
2837 # existing .o file with -o, though they will create one.
2838 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2839 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2840   (eval $ac_try) 2>&5
2841   ac_status=$?
2842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2843   (exit $ac_status); } &&
2844    test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2845   (eval $ac_try) 2>&5
2846   ac_status=$?
2847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2848   (exit $ac_status); };
2849 then
2850   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2851   if test "x$CC" != xcc; then
2852     # Test first that cc exists at all.
2853     if { ac_try='cc -c conftest.$ac_ext >&5'
2854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2855   (eval $ac_try) 2>&5
2856   ac_status=$?
2857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2858   (exit $ac_status); }; }; then
2859       ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2860       if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2861   (eval $ac_try) 2>&5
2862   ac_status=$?
2863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2864   (exit $ac_status); } &&
2865          test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2866   (eval $ac_try) 2>&5
2867   ac_status=$?
2868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2869   (exit $ac_status); };
2870       then
2871         # cc works too.
2872         :
2873       else
2874         # cc exists but doesn't like -o.
2875         eval ac_cv_prog_cc_${ac_cc}_c_o=no
2876       fi
2877     fi
2878   fi
2879 else
2880   eval ac_cv_prog_cc_${ac_cc}_c_o=no
2881 fi
2882 rm -f conftest*
2883
2884 fi
2885 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2886   echo "$as_me:$LINENO: result: yes" >&5
2887 echo "${ECHO_T}yes" >&6
2888 else
2889   echo "$as_me:$LINENO: result: no" >&5
2890 echo "${ECHO_T}no" >&6
2891
2892 cat >>confdefs.h <<\_ACEOF
2893 #define NO_MINUS_C_MINUS_O 1
2894 _ACEOF
2895
2896 fi
2897
2898 ac_ext=c
2899 ac_cpp='$CPP $CPPFLAGS'
2900 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2901 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2902 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2903 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2904 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2905 # On Suns, sometimes $CPP names a directory.
2906 if test -n "$CPP" && test -d "$CPP"; then
2907   CPP=
2908 fi
2909 if test -z "$CPP"; then
2910   if test "${ac_cv_prog_CPP+set}" = set; then
2911   echo $ECHO_N "(cached) $ECHO_C" >&6
2912 else
2913       # Double quotes because CPP needs to be expanded
2914     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2915     do
2916       ac_preproc_ok=false
2917 for ac_c_preproc_warn_flag in '' yes
2918 do
2919   # Use a header file that comes with gcc, so configuring glibc
2920   # with a fresh cross-compiler works.
2921   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2922   # <limits.h> exists even on freestanding compilers.
2923   # On the NeXT, cc -E runs the code through the compiler's parser,
2924   # not just through cpp. "Syntax error" is here to catch this case.
2925   cat >conftest.$ac_ext <<_ACEOF
2926 /* confdefs.h.  */
2927 _ACEOF
2928 cat confdefs.h >>conftest.$ac_ext
2929 cat >>conftest.$ac_ext <<_ACEOF
2930 /* end confdefs.h.  */
2931 #ifdef __STDC__
2932 # include <limits.h>
2933 #else
2934 # include <assert.h>
2935 #endif
2936                      Syntax error
2937 _ACEOF
2938 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2939   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2940   ac_status=$?
2941   grep -v '^ *+' conftest.er1 >conftest.err
2942   rm -f conftest.er1
2943   cat conftest.err >&5
2944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2945   (exit $ac_status); } >/dev/null; then
2946   if test -s conftest.err; then
2947     ac_cpp_err=$ac_c_preproc_warn_flag
2948     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2949   else
2950     ac_cpp_err=
2951   fi
2952 else
2953   ac_cpp_err=yes
2954 fi
2955 if test -z "$ac_cpp_err"; then
2956   :
2957 else
2958   echo "$as_me: failed program was:" >&5
2959 sed 's/^/| /' conftest.$ac_ext >&5
2960
2961   # Broken: fails on valid input.
2962 continue
2963 fi
2964 rm -f conftest.err conftest.$ac_ext
2965
2966   # OK, works on sane cases.  Now check whether non-existent headers
2967   # can be detected and how.
2968   cat >conftest.$ac_ext <<_ACEOF
2969 /* confdefs.h.  */
2970 _ACEOF
2971 cat confdefs.h >>conftest.$ac_ext
2972 cat >>conftest.$ac_ext <<_ACEOF
2973 /* end confdefs.h.  */
2974 #include <ac_nonexistent.h>
2975 _ACEOF
2976 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2977   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2978   ac_status=$?
2979   grep -v '^ *+' conftest.er1 >conftest.err
2980   rm -f conftest.er1
2981   cat conftest.err >&5
2982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2983   (exit $ac_status); } >/dev/null; then
2984   if test -s conftest.err; then
2985     ac_cpp_err=$ac_c_preproc_warn_flag
2986     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2987   else
2988     ac_cpp_err=
2989   fi
2990 else
2991   ac_cpp_err=yes
2992 fi
2993 if test -z "$ac_cpp_err"; then
2994   # Broken: success on invalid input.
2995 continue
2996 else
2997   echo "$as_me: failed program was:" >&5
2998 sed 's/^/| /' conftest.$ac_ext >&5
2999
3000   # Passes both tests.
3001 ac_preproc_ok=:
3002 break
3003 fi
3004 rm -f conftest.err conftest.$ac_ext
3005
3006 done
3007 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3008 rm -f conftest.err conftest.$ac_ext
3009 if $ac_preproc_ok; then
3010   break
3011 fi
3012
3013     done
3014     ac_cv_prog_CPP=$CPP
3015
3016 fi
3017   CPP=$ac_cv_prog_CPP
3018 else
3019   ac_cv_prog_CPP=$CPP
3020 fi
3021 echo "$as_me:$LINENO: result: $CPP" >&5
3022 echo "${ECHO_T}$CPP" >&6
3023 ac_preproc_ok=false
3024 for ac_c_preproc_warn_flag in '' yes
3025 do
3026   # Use a header file that comes with gcc, so configuring glibc
3027   # with a fresh cross-compiler works.
3028   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3029   # <limits.h> exists even on freestanding compilers.
3030   # On the NeXT, cc -E runs the code through the compiler's parser,
3031   # not just through cpp. "Syntax error" is here to catch this case.
3032   cat >conftest.$ac_ext <<_ACEOF
3033 /* confdefs.h.  */
3034 _ACEOF
3035 cat confdefs.h >>conftest.$ac_ext
3036 cat >>conftest.$ac_ext <<_ACEOF
3037 /* end confdefs.h.  */
3038 #ifdef __STDC__
3039 # include <limits.h>
3040 #else
3041 # include <assert.h>
3042 #endif
3043                      Syntax error
3044 _ACEOF
3045 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3046   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3047   ac_status=$?
3048   grep -v '^ *+' conftest.er1 >conftest.err
3049   rm -f conftest.er1
3050   cat conftest.err >&5
3051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3052   (exit $ac_status); } >/dev/null; then
3053   if test -s conftest.err; then
3054     ac_cpp_err=$ac_c_preproc_warn_flag
3055     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3056   else
3057     ac_cpp_err=
3058   fi
3059 else
3060   ac_cpp_err=yes
3061 fi
3062 if test -z "$ac_cpp_err"; then
3063   :
3064 else
3065   echo "$as_me: failed program was:" >&5
3066 sed 's/^/| /' conftest.$ac_ext >&5
3067
3068   # Broken: fails on valid input.
3069 continue
3070 fi
3071 rm -f conftest.err conftest.$ac_ext
3072
3073   # OK, works on sane cases.  Now check whether non-existent headers
3074   # can be detected and how.
3075   cat >conftest.$ac_ext <<_ACEOF
3076 /* confdefs.h.  */
3077 _ACEOF
3078 cat confdefs.h >>conftest.$ac_ext
3079 cat >>conftest.$ac_ext <<_ACEOF
3080 /* end confdefs.h.  */
3081 #include <ac_nonexistent.h>
3082 _ACEOF
3083 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3084   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3085   ac_status=$?
3086   grep -v '^ *+' conftest.er1 >conftest.err
3087   rm -f conftest.er1
3088   cat conftest.err >&5
3089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3090   (exit $ac_status); } >/dev/null; then
3091   if test -s conftest.err; then
3092     ac_cpp_err=$ac_c_preproc_warn_flag
3093     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3094   else
3095     ac_cpp_err=
3096   fi
3097 else
3098   ac_cpp_err=yes
3099 fi
3100 if test -z "$ac_cpp_err"; then
3101   # Broken: success on invalid input.
3102 continue
3103 else
3104   echo "$as_me: failed program was:" >&5
3105 sed 's/^/| /' conftest.$ac_ext >&5
3106
3107   # Passes both tests.
3108 ac_preproc_ok=:
3109 break
3110 fi
3111 rm -f conftest.err conftest.$ac_ext
3112
3113 done
3114 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3115 rm -f conftest.err conftest.$ac_ext
3116 if $ac_preproc_ok; then
3117   :
3118 else
3119   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3120 See \`config.log' for more details." >&5
3121 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3122 See \`config.log' for more details." >&2;}
3123    { (exit 1); exit 1; }; }
3124 fi
3125
3126 ac_ext=c
3127 ac_cpp='$CPP $CPPFLAGS'
3128 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3129 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3130 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3131
3132
3133 echo "$as_me:$LINENO: checking for egrep" >&5
3134 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3135 if test "${ac_cv_prog_egrep+set}" = set; then
3136   echo $ECHO_N "(cached) $ECHO_C" >&6
3137 else
3138   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3139     then ac_cv_prog_egrep='grep -E'
3140     else ac_cv_prog_egrep='egrep'
3141     fi
3142 fi
3143 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3144 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3145  EGREP=$ac_cv_prog_egrep
3146
3147
3148 if test $ac_cv_c_compiler_gnu = yes; then
3149     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3150 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3151 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3152   echo $ECHO_N "(cached) $ECHO_C" >&6
3153 else
3154     ac_pattern="Autoconf.*'x'"
3155   cat >conftest.$ac_ext <<_ACEOF
3156 /* confdefs.h.  */
3157 _ACEOF
3158 cat confdefs.h >>conftest.$ac_ext
3159 cat >>conftest.$ac_ext <<_ACEOF
3160 /* end confdefs.h.  */
3161 #include <sgtty.h>
3162 Autoconf TIOCGETP
3163 _ACEOF
3164 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3165   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3166   ac_cv_prog_gcc_traditional=yes
3167 else
3168   ac_cv_prog_gcc_traditional=no
3169 fi
3170 rm -f conftest*
3171
3172
3173   if test $ac_cv_prog_gcc_traditional = no; then
3174     cat >conftest.$ac_ext <<_ACEOF
3175 /* confdefs.h.  */
3176 _ACEOF
3177 cat confdefs.h >>conftest.$ac_ext
3178 cat >>conftest.$ac_ext <<_ACEOF
3179 /* end confdefs.h.  */
3180 #include <termio.h>
3181 Autoconf TCGETA
3182 _ACEOF
3183 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3184   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3185   ac_cv_prog_gcc_traditional=yes
3186 fi
3187 rm -f conftest*
3188
3189   fi
3190 fi
3191 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3192 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3193   if test $ac_cv_prog_gcc_traditional = yes; then
3194     CC="$CC -traditional"
3195   fi
3196 fi
3197
3198 if test "x$CC" = xgcc; then
3199    cat >>confdefs.h <<\_ACEOF
3200 #define HAVE_GCC 1
3201 _ACEOF
3202
3203 fi
3204 # Extract the first word of "$CXX", so it can be a program name with args.
3205 set dummy $CXX; ac_word=$2
3206 echo "$as_me:$LINENO: checking for $ac_word" >&5
3207 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3208 if test "${ac_cv_path_CXX+set}" = set; then
3209   echo $ECHO_N "(cached) $ECHO_C" >&6
3210 else
3211   case $CXX in
3212   [\\/]* | ?:[\\/]*)
3213   ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3214   ;;
3215   *)
3216   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3217 for as_dir in $PATH
3218 do
3219   IFS=$as_save_IFS
3220   test -z "$as_dir" && as_dir=.
3221   for ac_exec_ext in '' $ac_executable_extensions; do
3222   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3223     ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
3224     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3225     break 2
3226   fi
3227 done
3228 done
3229
3230   test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
3231   ;;
3232 esac
3233 fi
3234 CXX=$ac_cv_path_CXX
3235
3236 if test -n "$CXX"; then
3237   echo "$as_me:$LINENO: result: $CXX" >&5
3238 echo "${ECHO_T}$CXX" >&6
3239 else
3240   echo "$as_me:$LINENO: result: no" >&5
3241 echo "${ECHO_T}no" >&6
3242 fi
3243
3244 if test ! -e $CXX; then
3245    { { echo "$as_me:$LINENO: error: Unable to find C++ compiler" >&5
3246 echo "$as_me: error: Unable to find C++ compiler" >&2;}
3247    { (exit 1); exit 1; }; }
3248 fi
3249
3250 # Find a good install program.  We prefer a C program (faster),
3251 # so one script is as good as another.  But avoid the broken or
3252 # incompatible versions:
3253 # SysV /etc/install, /usr/sbin/install
3254 # SunOS /usr/etc/install
3255 # IRIX /sbin/install
3256 # AIX /bin/install
3257 # AmigaOS /C/install, which installs bootblocks on floppy discs
3258 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3259 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3260 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3261 # OS/2's system install, which has a completely different semantic
3262 # ./install, which can be erroneously created by make from ./install.sh.
3263 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3264 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3265 if test -z "$INSTALL"; then
3266 if test "${ac_cv_path_install+set}" = set; then
3267   echo $ECHO_N "(cached) $ECHO_C" >&6
3268 else
3269   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3270 for as_dir in $PATH
3271 do
3272   IFS=$as_save_IFS
3273   test -z "$as_dir" && as_dir=.
3274   # Account for people who put trailing slashes in PATH elements.
3275 case $as_dir/ in
3276   ./ | .// | /cC/* | \
3277   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3278   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3279   /usr/ucb/* ) ;;
3280   *)
3281     # OSF1 and SCO ODT 3.0 have their own names for install.
3282     # Don't use installbsd from OSF since it installs stuff as root
3283     # by default.
3284     for ac_prog in ginstall scoinst install; do
3285       for ac_exec_ext in '' $ac_executable_extensions; do
3286         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3287           if test $ac_prog = install &&
3288             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3289             # AIX install.  It has an incompatible calling convention.
3290             :
3291           elif test $ac_prog = install &&
3292             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3293             # program-specific install script used by HP pwplus--don't use.
3294             :
3295           else
3296             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3297             break 3
3298           fi
3299         fi
3300       done
3301     done
3302     ;;
3303 esac
3304 done
3305
3306
3307 fi
3308   if test "${ac_cv_path_install+set}" = set; then
3309     INSTALL=$ac_cv_path_install
3310   else
3311     # As a last resort, use the slow shell script.  We don't cache a
3312     # path for INSTALL within a source directory, because that will
3313     # break other packages using the cache if that directory is
3314     # removed, or if the path is relative.
3315     INSTALL=$ac_install_sh
3316   fi
3317 fi
3318 echo "$as_me:$LINENO: result: $INSTALL" >&5
3319 echo "${ECHO_T}$INSTALL" >&6
3320
3321 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3322 # It thinks the first close brace ends the variable substitution.
3323 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3324
3325 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3326
3327 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3328
3329 if test -n "$ac_tool_prefix"; then
3330   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3331 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3332 echo "$as_me:$LINENO: checking for $ac_word" >&5
3333 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3334 if test "${ac_cv_prog_RANLIB+set}" = set; then
3335   echo $ECHO_N "(cached) $ECHO_C" >&6
3336 else
3337   if test -n "$RANLIB"; then
3338   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3339 else
3340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3341 for as_dir in $PATH
3342 do
3343   IFS=$as_save_IFS
3344   test -z "$as_dir" && as_dir=.
3345   for ac_exec_ext in '' $ac_executable_extensions; do
3346   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3347     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3348     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3349     break 2
3350   fi
3351 done
3352 done
3353
3354 fi
3355 fi
3356 RANLIB=$ac_cv_prog_RANLIB
3357 if test -n "$RANLIB"; then
3358   echo "$as_me:$LINENO: result: $RANLIB" >&5
3359 echo "${ECHO_T}$RANLIB" >&6
3360 else
3361   echo "$as_me:$LINENO: result: no" >&5
3362 echo "${ECHO_T}no" >&6
3363 fi
3364
3365 fi
3366 if test -z "$ac_cv_prog_RANLIB"; then
3367   ac_ct_RANLIB=$RANLIB
3368   # Extract the first word of "ranlib", so it can be a program name with args.
3369 set dummy ranlib; ac_word=$2
3370 echo "$as_me:$LINENO: checking for $ac_word" >&5
3371 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3372 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3373   echo $ECHO_N "(cached) $ECHO_C" >&6
3374 else
3375   if test -n "$ac_ct_RANLIB"; then
3376   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3377 else
3378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3379 for as_dir in $PATH
3380 do
3381   IFS=$as_save_IFS
3382   test -z "$as_dir" && as_dir=.
3383   for ac_exec_ext in '' $ac_executable_extensions; do
3384   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3385     ac_cv_prog_ac_ct_RANLIB="ranlib"
3386     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3387     break 2
3388   fi
3389 done
3390 done
3391
3392   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3393 fi
3394 fi
3395 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3396 if test -n "$ac_ct_RANLIB"; then
3397   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3398 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3399 else
3400   echo "$as_me:$LINENO: result: no" >&5
3401 echo "${ECHO_T}no" >&6
3402 fi
3403
3404   RANLIB=$ac_ct_RANLIB
3405 else
3406   RANLIB="$ac_cv_prog_RANLIB"
3407 fi
3408
3409 # Extract the first word of "mv", so it can be a program name with args.
3410 set dummy mv; ac_word=$2
3411 echo "$as_me:$LINENO: checking for $ac_word" >&5
3412 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3413 if test "${ac_cv_path_MV+set}" = set; then
3414   echo $ECHO_N "(cached) $ECHO_C" >&6
3415 else
3416   case $MV in
3417   [\\/]* | ?:[\\/]*)
3418   ac_cv_path_MV="$MV" # Let the user override the test with a path.
3419   ;;
3420   *)
3421   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3422 for as_dir in $PATH
3423 do
3424   IFS=$as_save_IFS
3425   test -z "$as_dir" && as_dir=.
3426   for ac_exec_ext in '' $ac_executable_extensions; do
3427   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3428     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
3429     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3430     break 2
3431   fi
3432 done
3433 done
3434
3435   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
3436   ;;
3437 esac
3438 fi
3439 MV=$ac_cv_path_MV
3440
3441 if test -n "$MV"; then
3442   echo "$as_me:$LINENO: result: $MV" >&5
3443 echo "${ECHO_T}$MV" >&6
3444 else
3445   echo "$as_me:$LINENO: result: no" >&5
3446 echo "${ECHO_T}no" >&6
3447 fi
3448
3449 # Extract the first word of "rm", so it can be a program name with args.
3450 set dummy rm; ac_word=$2
3451 echo "$as_me:$LINENO: checking for $ac_word" >&5
3452 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3453 if test "${ac_cv_path_RM+set}" = set; then
3454   echo $ECHO_N "(cached) $ECHO_C" >&6
3455 else
3456   case $RM in
3457   [\\/]* | ?:[\\/]*)
3458   ac_cv_path_RM="$RM" # Let the user override the test with a path.
3459   ;;
3460   *)
3461   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3462 for as_dir in $PATH
3463 do
3464   IFS=$as_save_IFS
3465   test -z "$as_dir" && as_dir=.
3466   for ac_exec_ext in '' $ac_executable_extensions; do
3467   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3468     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
3469     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3470     break 2
3471   fi
3472 done
3473 done
3474
3475   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
3476   ;;
3477 esac
3478 fi
3479 RM=$ac_cv_path_RM
3480
3481 if test -n "$RM"; then
3482   echo "$as_me:$LINENO: result: $RM" >&5
3483 echo "${ECHO_T}$RM" >&6
3484 else
3485   echo "$as_me:$LINENO: result: no" >&5
3486 echo "${ECHO_T}no" >&6
3487 fi
3488
3489 # Extract the first word of "cp", so it can be a program name with args.
3490 set dummy cp; ac_word=$2
3491 echo "$as_me:$LINENO: checking for $ac_word" >&5
3492 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3493 if test "${ac_cv_path_CP+set}" = set; then
3494   echo $ECHO_N "(cached) $ECHO_C" >&6
3495 else
3496   case $CP in
3497   [\\/]* | ?:[\\/]*)
3498   ac_cv_path_CP="$CP" # Let the user override the test with a path.
3499   ;;
3500   *)
3501   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3502 for as_dir in $PATH
3503 do
3504   IFS=$as_save_IFS
3505   test -z "$as_dir" && as_dir=.
3506   for ac_exec_ext in '' $ac_executable_extensions; do
3507   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3508     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
3509     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3510     break 2
3511   fi
3512 done
3513 done
3514
3515   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
3516   ;;
3517 esac
3518 fi
3519 CP=$ac_cv_path_CP
3520
3521 if test -n "$CP"; then
3522   echo "$as_me:$LINENO: result: $CP" >&5
3523 echo "${ECHO_T}$CP" >&6
3524 else
3525   echo "$as_me:$LINENO: result: no" >&5
3526 echo "${ECHO_T}no" >&6
3527 fi
3528
3529 # Extract the first word of "sed", so it can be a program name with args.
3530 set dummy sed; ac_word=$2
3531 echo "$as_me:$LINENO: checking for $ac_word" >&5
3532 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3533 if test "${ac_cv_path_SED+set}" = set; then
3534   echo $ECHO_N "(cached) $ECHO_C" >&6
3535 else
3536   case $SED in
3537   [\\/]* | ?:[\\/]*)
3538   ac_cv_path_SED="$SED" # Let the user override the test with a path.
3539   ;;
3540   *)
3541   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3542 for as_dir in $PATH
3543 do
3544   IFS=$as_save_IFS
3545   test -z "$as_dir" && as_dir=.
3546   for ac_exec_ext in '' $ac_executable_extensions; do
3547   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3548     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
3549     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3550     break 2
3551   fi
3552 done
3553 done
3554
3555   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
3556   ;;
3557 esac
3558 fi
3559 SED=$ac_cv_path_SED
3560
3561 if test -n "$SED"; then
3562   echo "$as_me:$LINENO: result: $SED" >&5
3563 echo "${ECHO_T}$SED" >&6
3564 else
3565   echo "$as_me:$LINENO: result: no" >&5
3566 echo "${ECHO_T}no" >&6
3567 fi
3568
3569 # Extract the first word of "echo", so it can be a program name with args.
3570 set dummy echo; ac_word=$2
3571 echo "$as_me:$LINENO: checking for $ac_word" >&5
3572 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3573 if test "${ac_cv_path_ECHO+set}" = set; then
3574   echo $ECHO_N "(cached) $ECHO_C" >&6
3575 else
3576   case $ECHO in
3577   [\\/]* | ?:[\\/]*)
3578   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
3579   ;;
3580   *)
3581   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3582 for as_dir in $PATH
3583 do
3584   IFS=$as_save_IFS
3585   test -z "$as_dir" && as_dir=.
3586   for ac_exec_ext in '' $ac_executable_extensions; do
3587   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3588     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
3589     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3590     break 2
3591   fi
3592 done
3593 done
3594
3595   test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
3596   ;;
3597 esac
3598 fi
3599 ECHO=$ac_cv_path_ECHO
3600
3601 if test -n "$ECHO"; then
3602   echo "$as_me:$LINENO: result: $ECHO" >&5
3603 echo "${ECHO_T}$ECHO" >&6
3604 else
3605   echo "$as_me:$LINENO: result: no" >&5
3606 echo "${ECHO_T}no" >&6
3607 fi
3608
3609 # Extract the first word of "cmp", so it can be a program name with args.
3610 set dummy cmp; ac_word=$2
3611 echo "$as_me:$LINENO: checking for $ac_word" >&5
3612 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3613 if test "${ac_cv_path_CMP+set}" = set; then
3614   echo $ECHO_N "(cached) $ECHO_C" >&6
3615 else
3616   case $CMP in
3617   [\\/]* | ?:[\\/]*)
3618   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
3619   ;;
3620   *)
3621   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3622 for as_dir in $PATH
3623 do
3624   IFS=$as_save_IFS
3625   test -z "$as_dir" && as_dir=.
3626   for ac_exec_ext in '' $ac_executable_extensions; do
3627   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3628     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
3629     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3630     break 2
3631   fi
3632 done
3633 done
3634
3635   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
3636   ;;
3637 esac
3638 fi
3639 CMP=$ac_cv_path_CMP
3640
3641 if test -n "$CMP"; then
3642   echo "$as_me:$LINENO: result: $CMP" >&5
3643 echo "${ECHO_T}$CMP" >&6
3644 else
3645   echo "$as_me:$LINENO: result: no" >&5
3646 echo "${ECHO_T}no" >&6
3647 fi
3648
3649 # Extract the first word of "tbl", so it can be a program name with args.
3650 set dummy tbl; ac_word=$2
3651 echo "$as_me:$LINENO: checking for $ac_word" >&5
3652 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3653 if test "${ac_cv_path_TBL+set}" = set; then
3654   echo $ECHO_N "(cached) $ECHO_C" >&6
3655 else
3656   case $TBL in
3657   [\\/]* | ?:[\\/]*)
3658   ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
3659   ;;
3660   *)
3661   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3662 for as_dir in $PATH
3663 do
3664   IFS=$as_save_IFS
3665   test -z "$as_dir" && as_dir=.
3666   for ac_exec_ext in '' $ac_executable_extensions; do
3667   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3668     ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
3669     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3670     break 2
3671   fi
3672 done
3673 done
3674
3675   test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
3676   ;;
3677 esac
3678 fi
3679 TBL=$ac_cv_path_TBL
3680
3681 if test -n "$TBL"; then
3682   echo "$as_me:$LINENO: result: $TBL" >&5
3683 echo "${ECHO_T}$TBL" >&6
3684 else
3685   echo "$as_me:$LINENO: result: no" >&5
3686 echo "${ECHO_T}no" >&6
3687 fi
3688
3689 # Extract the first word of "ar", so it can be a program name with args.
3690 set dummy ar; ac_word=$2
3691 echo "$as_me:$LINENO: checking for $ac_word" >&5
3692 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3693 if test "${ac_cv_path_AR+set}" = set; then
3694   echo $ECHO_N "(cached) $ECHO_C" >&6
3695 else
3696   case $AR in
3697   [\\/]* | ?:[\\/]*)
3698   ac_cv_path_AR="$AR" # Let the user override the test with a path.
3699   ;;
3700   *)
3701   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3702 for as_dir in $PATH
3703 do
3704   IFS=$as_save_IFS
3705   test -z "$as_dir" && as_dir=.
3706   for ac_exec_ext in '' $ac_executable_extensions; do
3707   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3708     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3709     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3710     break 2
3711   fi
3712 done
3713 done
3714
3715   test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
3716   ;;
3717 esac
3718 fi
3719 AR=$ac_cv_path_AR
3720
3721 if test -n "$AR"; then
3722   echo "$as_me:$LINENO: result: $AR" >&5
3723 echo "${ECHO_T}$AR" >&6
3724 else
3725   echo "$as_me:$LINENO: result: no" >&5
3726 echo "${ECHO_T}no" >&6
3727 fi
3728
3729 # Extract the first word of "openssl", so it can be a program name with args.
3730 set dummy openssl; ac_word=$2
3731 echo "$as_me:$LINENO: checking for $ac_word" >&5
3732 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3733 if test "${ac_cv_path_OPENSSL+set}" = set; then
3734   echo $ECHO_N "(cached) $ECHO_C" >&6
3735 else
3736   case $OPENSSL in
3737   [\\/]* | ?:[\\/]*)
3738   ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
3739   ;;
3740   *)
3741   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3742 for as_dir in $PATH
3743 do
3744   IFS=$as_save_IFS
3745   test -z "$as_dir" && as_dir=.
3746   for ac_exec_ext in '' $ac_executable_extensions; do
3747   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3748     ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
3749     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3750     break 2
3751   fi
3752 done
3753 done
3754
3755   test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
3756   ;;
3757 esac
3758 fi
3759 OPENSSL=$ac_cv_path_OPENSSL
3760
3761 if test -n "$OPENSSL"; then
3762   echo "$as_me:$LINENO: result: $OPENSSL" >&5
3763 echo "${ECHO_T}$OPENSSL" >&6
3764 else
3765   echo "$as_me:$LINENO: result: no" >&5
3766 echo "${ECHO_T}no" >&6
3767 fi
3768
3769 # Extract the first word of "mtx", so it can be a program name with args.
3770 set dummy mtx; ac_word=$2
3771 echo "$as_me:$LINENO: checking for $ac_word" >&5
3772 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3773 if test "${ac_cv_path_MTX+set}" = set; then
3774   echo $ECHO_N "(cached) $ECHO_C" >&6
3775 else
3776   case $MTX in
3777   [\\/]* | ?:[\\/]*)
3778   ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
3779   ;;
3780   *)
3781   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3782 for as_dir in $PATH
3783 do
3784   IFS=$as_save_IFS
3785   test -z "$as_dir" && as_dir=.
3786   for ac_exec_ext in '' $ac_executable_extensions; do
3787   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3788     ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
3789     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3790     break 2
3791   fi
3792 done
3793 done
3794
3795   test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
3796   ;;
3797 esac
3798 fi
3799 MTX=$ac_cv_path_MTX
3800
3801 if test -n "$MTX"; then
3802   echo "$as_me:$LINENO: result: $MTX" >&5
3803 echo "${ECHO_T}$MTX" >&6
3804 else
3805   echo "$as_me:$LINENO: result: no" >&5
3806 echo "${ECHO_T}no" >&6
3807 fi
3808
3809 # Extract the first word of "df", so it can be a program name with args.
3810 set dummy df; ac_word=$2
3811 echo "$as_me:$LINENO: checking for $ac_word" >&5
3812 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3813 if test "${ac_cv_path_DF+set}" = set; then
3814   echo $ECHO_N "(cached) $ECHO_C" >&6
3815 else
3816   case $DF in
3817   [\\/]* | ?:[\\/]*)
3818   ac_cv_path_DF="$DF" # Let the user override the test with a path.
3819   ;;
3820   *)
3821   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3822 for as_dir in $PATH
3823 do
3824   IFS=$as_save_IFS
3825   test -z "$as_dir" && as_dir=.
3826   for ac_exec_ext in '' $ac_executable_extensions; do
3827   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3828     ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext"
3829     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3830     break 2
3831   fi
3832 done
3833 done
3834
3835   test -z "$ac_cv_path_DF" && ac_cv_path_DF="df"
3836   ;;
3837 esac
3838 fi
3839 DF=$ac_cv_path_DF
3840
3841 if test -n "$DF"; then
3842   echo "$as_me:$LINENO: result: $DF" >&5
3843 echo "${ECHO_T}$DF" >&6
3844 else
3845   echo "$as_me:$LINENO: result: no" >&5
3846 echo "${ECHO_T}no" >&6
3847 fi
3848
3849 # Extract the first word of "mkisofs", so it can be a program name with args.
3850 set dummy mkisofs; ac_word=$2
3851 echo "$as_me:$LINENO: checking for $ac_word" >&5
3852 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3853 if test "${ac_cv_path_MKISOFS+set}" = set; then
3854   echo $ECHO_N "(cached) $ECHO_C" >&6
3855 else
3856   case $MKISOFS in
3857   [\\/]* | ?:[\\/]*)
3858   ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
3859   ;;
3860   *)
3861   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3862 for as_dir in $PATH
3863 do
3864   IFS=$as_save_IFS
3865   test -z "$as_dir" && as_dir=.
3866   for ac_exec_ext in '' $ac_executable_extensions; do
3867   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3868     ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
3869     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3870     break 2
3871   fi
3872 done
3873 done
3874
3875   test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
3876   ;;
3877 esac
3878 fi
3879 MKISOFS=$ac_cv_path_MKISOFS
3880
3881 if test -n "$MKISOFS"; then
3882   echo "$as_me:$LINENO: result: $MKISOFS" >&5
3883 echo "${ECHO_T}$MKISOFS" >&6
3884 else
3885   echo "$as_me:$LINENO: result: no" >&5
3886 echo "${ECHO_T}no" >&6
3887 fi
3888
3889 # Extract the first word of "python", so it can be a program name with args.
3890 set dummy python; ac_word=$2
3891 echo "$as_me:$LINENO: checking for $ac_word" >&5
3892 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3893 if test "${ac_cv_path_PYTHON+set}" = set; then
3894   echo $ECHO_N "(cached) $ECHO_C" >&6
3895 else
3896   case $PYTHON in
3897   [\\/]* | ?:[\\/]*)
3898   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
3899   ;;
3900   *)
3901   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3902 for as_dir in $PATH
3903 do
3904   IFS=$as_save_IFS
3905   test -z "$as_dir" && as_dir=.
3906   for ac_exec_ext in '' $ac_executable_extensions; do
3907   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3908     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
3909     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3910     break 2
3911   fi
3912 done
3913 done
3914
3915   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
3916   ;;
3917 esac
3918 fi
3919 PYTHON=$ac_cv_path_PYTHON
3920
3921 if test -n "$PYTHON"; then
3922   echo "$as_me:$LINENO: result: $PYTHON" >&5
3923 echo "${ECHO_T}$PYTHON" >&6
3924 else
3925   echo "$as_me:$LINENO: result: no" >&5
3926 echo "${ECHO_T}no" >&6
3927 fi
3928
3929 # Extract the first word of "growisofs", so it can be a program name with args.
3930 set dummy growisofs; ac_word=$2
3931 echo "$as_me:$LINENO: checking for $ac_word" >&5
3932 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3933 if test "${ac_cv_path_GROWISOFS+set}" = set; then
3934   echo $ECHO_N "(cached) $ECHO_C" >&6
3935 else
3936   case $GROWISOFS in
3937   [\\/]* | ?:[\\/]*)
3938   ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
3939   ;;
3940   *)
3941   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3942 for as_dir in $PATH
3943 do
3944   IFS=$as_save_IFS
3945   test -z "$as_dir" && as_dir=.
3946   for ac_exec_ext in '' $ac_executable_extensions; do
3947   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3948     ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
3949     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3950     break 2
3951   fi
3952 done
3953 done
3954
3955   test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
3956   ;;
3957 esac
3958 fi
3959 GROWISOFS=$ac_cv_path_GROWISOFS
3960
3961 if test -n "$GROWISOFS"; then
3962   echo "$as_me:$LINENO: result: $GROWISOFS" >&5
3963 echo "${ECHO_T}$GROWISOFS" >&6
3964 else
3965   echo "$as_me:$LINENO: result: no" >&5
3966 echo "${ECHO_T}no" >&6
3967 fi
3968
3969 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
3970 set dummy dvd+rw-mediainfo; ac_word=$2
3971 echo "$as_me:$LINENO: checking for $ac_word" >&5
3972 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3973 if test "${ac_cv_path_DVDRWMEDIAINFO+set}" = set; then
3974   echo $ECHO_N "(cached) $ECHO_C" >&6
3975 else
3976   case $DVDRWMEDIAINFO in
3977   [\\/]* | ?:[\\/]*)
3978   ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
3979   ;;
3980   *)
3981   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3982 for as_dir in $PATH
3983 do
3984   IFS=$as_save_IFS
3985   test -z "$as_dir" && as_dir=.
3986   for ac_exec_ext in '' $ac_executable_extensions; do
3987   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3988     ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
3989     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3990     break 2
3991   fi
3992 done
3993 done
3994
3995   test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
3996   ;;
3997 esac
3998 fi
3999 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
4000
4001 if test -n "$DVDRWMEDIAINFO"; then
4002   echo "$as_me:$LINENO: result: $DVDRWMEDIAINFO" >&5
4003 echo "${ECHO_T}$DVDRWMEDIAINFO" >&6
4004 else
4005   echo "$as_me:$LINENO: result: no" >&5
4006 echo "${ECHO_T}no" >&6
4007 fi
4008
4009 # Extract the first word of "pkg-config", so it can be a program name with args.
4010 set dummy pkg-config; ac_word=$2
4011 echo "$as_me:$LINENO: checking for $ac_word" >&5
4012 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4013 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
4014   echo $ECHO_N "(cached) $ECHO_C" >&6
4015 else
4016   case $PKGCONFIG in
4017   [\\/]* | ?:[\\/]*)
4018   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
4019   ;;
4020   *)
4021   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4022 for as_dir in $PATH
4023 do
4024   IFS=$as_save_IFS
4025   test -z "$as_dir" && as_dir=.
4026   for ac_exec_ext in '' $ac_executable_extensions; do
4027   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4028     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
4029     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4030     break 2
4031   fi
4032 done
4033 done
4034
4035   test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
4036   ;;
4037 esac
4038 fi
4039 PKGCONFIG=$ac_cv_path_PKGCONFIG
4040
4041 if test -n "$PKGCONFIG"; then
4042   echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
4043 echo "${ECHO_T}$PKGCONFIG" >&6
4044 else
4045   echo "$as_me:$LINENO: result: no" >&5
4046 echo "${ECHO_T}no" >&6
4047 fi
4048
4049
4050 if test "x$WXCONFIG" = x; then
4051   WXCONFIG=wx-config
4052 fi
4053 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
4054 set dummy ${WXCONFIG}; ac_word=$2
4055 echo "$as_me:$LINENO: checking for $ac_word" >&5
4056 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4057 if test "${ac_cv_path_WXCONFIG+set}" = set; then
4058   echo $ECHO_N "(cached) $ECHO_C" >&6
4059 else
4060   case $WXCONFIG in
4061   [\\/]* | ?:[\\/]*)
4062   ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
4063   ;;
4064   *)
4065   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4066 for as_dir in $PATH
4067 do
4068   IFS=$as_save_IFS
4069   test -z "$as_dir" && as_dir=.
4070   for ac_exec_ext in '' $ac_executable_extensions; do
4071   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4072     ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
4073     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4074     break 2
4075   fi
4076 done
4077 done
4078
4079   test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
4080   ;;
4081 esac
4082 fi
4083 WXCONFIG=$ac_cv_path_WXCONFIG
4084
4085 if test -n "$WXCONFIG"; then
4086   echo "$as_me:$LINENO: result: $WXCONFIG" >&5
4087 echo "${ECHO_T}$WXCONFIG" >&6
4088 else
4089   echo "$as_me:$LINENO: result: no" >&5
4090 echo "${ECHO_T}no" >&6
4091 fi
4092
4093
4094 # Extract the first word of "cdrecord", so it can be a program name with args.
4095 set dummy cdrecord; ac_word=$2
4096 echo "$as_me:$LINENO: checking for $ac_word" >&5
4097 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4098 if test "${ac_cv_path_CDRECORD+set}" = set; then
4099   echo $ECHO_N "(cached) $ECHO_C" >&6
4100 else
4101   case $CDRECORD in
4102   [\\/]* | ?:[\\/]*)
4103   ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
4104   ;;
4105   *)
4106   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4107 for as_dir in $PATH
4108 do
4109   IFS=$as_save_IFS
4110   test -z "$as_dir" && as_dir=.
4111   for ac_exec_ext in '' $ac_executable_extensions; do
4112   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4113     ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
4114     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4115     break 2
4116   fi
4117 done
4118 done
4119
4120   test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
4121   ;;
4122 esac
4123 fi
4124 CDRECORD=$ac_cv_path_CDRECORD
4125
4126 if test -n "$CDRECORD"; then
4127   echo "$as_me:$LINENO: result: $CDRECORD" >&5
4128 echo "${ECHO_T}$CDRECORD" >&6
4129 else
4130   echo "$as_me:$LINENO: result: no" >&5
4131 echo "${ECHO_T}no" >&6
4132 fi
4133
4134 # Extract the first word of "pidof", so it can be a program name with args.
4135 set dummy pidof; ac_word=$2
4136 echo "$as_me:$LINENO: checking for $ac_word" >&5
4137 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4138 if test "${ac_cv_path_PIDOF+set}" = set; then
4139   echo $ECHO_N "(cached) $ECHO_C" >&6
4140 else
4141   case $PIDOF in
4142   [\\/]* | ?:[\\/]*)
4143   ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
4144   ;;
4145   *)
4146   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4147 for as_dir in $PATH
4148 do
4149   IFS=$as_save_IFS
4150   test -z "$as_dir" && as_dir=.
4151   for ac_exec_ext in '' $ac_executable_extensions; do
4152   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4153     ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
4154     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4155     break 2
4156   fi
4157 done
4158 done
4159
4160   test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
4161   ;;
4162 esac
4163 fi
4164 PIDOF=$ac_cv_path_PIDOF
4165
4166 if test -n "$PIDOF"; then
4167   echo "$as_me:$LINENO: result: $PIDOF" >&5
4168 echo "${ECHO_T}$PIDOF" >&6
4169 else
4170   echo "$as_me:$LINENO: result: no" >&5
4171 echo "${ECHO_T}no" >&6
4172 fi
4173
4174 for ac_prog in gawk mawk nawk awk
4175 do
4176   # Extract the first word of "$ac_prog", so it can be a program name with args.
4177 set dummy $ac_prog; ac_word=$2
4178 echo "$as_me:$LINENO: checking for $ac_word" >&5
4179 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4180 if test "${ac_cv_prog_AWK+set}" = set; then
4181   echo $ECHO_N "(cached) $ECHO_C" >&6
4182 else
4183   if test -n "$AWK"; then
4184   ac_cv_prog_AWK="$AWK" # Let the user override the test.
4185 else
4186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4187 for as_dir in $PATH
4188 do
4189   IFS=$as_save_IFS
4190   test -z "$as_dir" && as_dir=.
4191   for ac_exec_ext in '' $ac_executable_extensions; do
4192   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4193     ac_cv_prog_AWK="$ac_prog"
4194     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4195     break 2
4196   fi
4197 done
4198 done
4199
4200 fi
4201 fi
4202 AWK=$ac_cv_prog_AWK
4203 if test -n "$AWK"; then
4204   echo "$as_me:$LINENO: result: $AWK" >&5
4205 echo "${ECHO_T}$AWK" >&6
4206 else
4207   echo "$as_me:$LINENO: result: no" >&5
4208 echo "${ECHO_T}no" >&6
4209 fi
4210
4211   test -n "$AWK" && break
4212 done
4213
4214 # Some AWK programs fail, so test it and warn the user
4215 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
4216       { if ((prog == $2) || (("(" prog ")") == $2) ||
4217            (("" prog "") == $2) ||
4218            ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
4219 else
4220   { { echo "$as_me:$LINENO: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
4221    The regex engine of $AWK is too broken to be used you
4222    might want to install GNU AWK.
4223    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&5
4224 echo "$as_me: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
4225    The regex engine of $AWK is too broken to be used you
4226    might want to install GNU AWK.
4227    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&2;}
4228    { (exit 1); exit 1; }; }
4229 fi
4230 THE_AWK=$AWK
4231 # Extract the first word of "$THE_AWK", so it can be a program name with args.
4232 set dummy $THE_AWK; ac_word=$2
4233 echo "$as_me:$LINENO: checking for $ac_word" >&5
4234 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4235 if test "${ac_cv_path_AWK+set}" = set; then
4236   echo $ECHO_N "(cached) $ECHO_C" >&6
4237 else
4238   case $AWK in
4239   [\\/]* | ?:[\\/]*)
4240   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
4241   ;;
4242   *)
4243   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4244 for as_dir in $PATH
4245 do
4246   IFS=$as_save_IFS
4247   test -z "$as_dir" && as_dir=.
4248   for ac_exec_ext in '' $ac_executable_extensions; do
4249   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4250     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
4251     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4252     break 2
4253   fi
4254 done
4255 done
4256
4257   test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
4258   ;;
4259 esac
4260 fi
4261 AWK=$ac_cv_path_AWK
4262
4263 if test -n "$AWK"; then
4264   echo "$as_me:$LINENO: result: $AWK" >&5
4265 echo "${ECHO_T}$AWK" >&6
4266 else
4267   echo "$as_me:$LINENO: result: no" >&5
4268 echo "${ECHO_T}no" >&6
4269 fi
4270
4271
4272 test -n "$ARFLAG" || ARFLAGS="cr"
4273
4274
4275 MAKE_SHELL=/bin/sh
4276
4277
4278
4279
4280
4281
4282
4283 # Make sure we can run config.sub.
4284 $ac_config_sub sun4 >/dev/null 2>&1 ||
4285   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
4286 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
4287    { (exit 1); exit 1; }; }
4288
4289 echo "$as_me:$LINENO: checking build system type" >&5
4290 echo $ECHO_N "checking build system type... $ECHO_C" >&6
4291 if test "${ac_cv_build+set}" = set; then
4292   echo $ECHO_N "(cached) $ECHO_C" >&6
4293 else
4294   ac_cv_build_alias=$build_alias
4295 test -z "$ac_cv_build_alias" &&
4296   ac_cv_build_alias=`$ac_config_guess`
4297 test -z "$ac_cv_build_alias" &&
4298   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4299 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4300    { (exit 1); exit 1; }; }
4301 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
4302   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
4303 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
4304    { (exit 1); exit 1; }; }
4305
4306 fi
4307 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4308 echo "${ECHO_T}$ac_cv_build" >&6
4309 build=$ac_cv_build
4310 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4311 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4312 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4313
4314
4315
4316 echo "$as_me:$LINENO: checking host system type" >&5
4317 echo $ECHO_N "checking host system type... $ECHO_C" >&6
4318 if test "${ac_cv_host+set}" = set; then
4319   echo $ECHO_N "(cached) $ECHO_C" >&6
4320 else
4321   ac_cv_host_alias=$host_alias
4322 test -z "$ac_cv_host_alias" &&
4323   ac_cv_host_alias=$ac_cv_build_alias
4324 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
4325   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
4326 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
4327    { (exit 1); exit 1; }; }
4328
4329 fi
4330 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4331 echo "${ECHO_T}$ac_cv_host" >&6
4332 host=$ac_cv_host
4333 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4334 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4335 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4336
4337
4338 case $host_os in
4339   *cygwin* ) CYGWIN=yes;;
4340          * ) CYGWIN=no;;
4341 esac
4342
4343 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4344 then
4345
4346
4347 if $TRUEPRG; then
4348   HAVE_SUN_OS_TRUE=
4349   HAVE_SUN_OS_FALSE='#'
4350 else
4351   HAVE_SUN_OS_TRUE='#'
4352   HAVE_SUN_OS_FALSE=
4353 fi
4354         cat >>confdefs.h <<\_ACEOF
4355 #define HAVE_SUN_OS 1
4356 _ACEOF
4357
4358 else
4359
4360
4361 if $FALSEPRG; then
4362   HAVE_SUN_OS_TRUE=
4363   HAVE_SUN_OS_FALSE='#'
4364 else
4365   HAVE_SUN_OS_TRUE='#'
4366   HAVE_SUN_OS_FALSE=
4367 fi
4368 fi
4369
4370 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4371 then
4372
4373
4374 if $TRUEPRG; then
4375   HAVE_OSF1_OS_TRUE=
4376   HAVE_OSF1_OS_FALSE='#'
4377 else
4378   HAVE_OSF1_OS_TRUE='#'
4379   HAVE_OSF1_OS_FALSE=
4380 fi
4381         cat >>confdefs.h <<\_ACEOF
4382 #define HAVE_OSF1_OS 1
4383 _ACEOF
4384
4385 else
4386
4387
4388 if $FALSEPRG; then
4389   HAVE_OSF1_OS_TRUE=
4390   HAVE_OSF1_OS_FALSE='#'
4391 else
4392   HAVE_OSF1_OS_TRUE='#'
4393   HAVE_OSF1_OS_FALSE=
4394 fi
4395 fi
4396
4397 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4398 then
4399
4400
4401 if $TRUEPRG; then
4402   HAVE_AIX_OS_TRUE=
4403   HAVE_AIX_OS_FALSE='#'
4404 else
4405   HAVE_AIX_OS_TRUE='#'
4406   HAVE_AIX_OS_FALSE=
4407 fi
4408         cat >>confdefs.h <<\_ACEOF
4409 #define HAVE_AIX_OS 1
4410 _ACEOF
4411
4412 else
4413
4414
4415 if $FALSEPRG; then
4416   HAVE_AIX_OS_TRUE=
4417   HAVE_AIX_OS_FALSE='#'
4418 else
4419   HAVE_AIX_OS_TRUE='#'
4420   HAVE_AIX_OS_FALSE=
4421 fi
4422 fi
4423
4424 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4425 then
4426
4427
4428 if $TRUEPRG; then
4429   HAVE_HPUX_OS_TRUE=
4430   HAVE_HPUX_OS_FALSE='#'
4431 else
4432   HAVE_HPUX_OS_TRUE='#'
4433   HAVE_HPUX_OS_FALSE=
4434 fi
4435         cat >>confdefs.h <<\_ACEOF
4436 #define HAVE_HPUX_OS 1
4437 _ACEOF
4438
4439 else
4440
4441
4442 if $FALSEPRG; then
4443   HAVE_HPUX_OS_TRUE=
4444   HAVE_HPUX_OS_FALSE='#'
4445 else
4446   HAVE_HPUX_OS_TRUE='#'
4447   HAVE_HPUX_OS_FALSE=
4448 fi
4449 fi
4450
4451 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
4452 then
4453
4454
4455 if $TRUEPRG; then
4456   HAVE_LINUX_OS_TRUE=
4457   HAVE_LINUX_OS_FALSE='#'
4458 else
4459   HAVE_LINUX_OS_TRUE='#'
4460   HAVE_LINUX_OS_FALSE=
4461 fi
4462         cat >>confdefs.h <<\_ACEOF
4463 #define HAVE_LINUX_OS 1
4464 _ACEOF
4465
4466 else
4467
4468
4469 if $FALSEPRG; then
4470   HAVE_LINUX_OS_TRUE=
4471   HAVE_LINUX_OS_FALSE='#'
4472 else
4473   HAVE_LINUX_OS_TRUE='#'
4474   HAVE_LINUX_OS_FALSE=
4475 fi
4476 fi
4477
4478 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4479 then
4480
4481
4482 if $TRUEPRG; then
4483   HAVE_FREEBSD_OS_TRUE=
4484   HAVE_FREEBSD_OS_FALSE='#'
4485 else
4486   HAVE_FREEBSD_OS_TRUE='#'
4487   HAVE_FREEBSD_OS_FALSE=
4488 fi
4489         cat >>confdefs.h <<\_ACEOF
4490 #define HAVE_FREEBSD_OS 1
4491 _ACEOF
4492
4493 else
4494
4495
4496 if $FALSEPRG; then
4497   HAVE_FREEBSD_OS_TRUE=
4498   HAVE_FREEBSD_OS_FALSE='#'
4499 else
4500   HAVE_FREEBSD_OS_TRUE='#'
4501   HAVE_FREEBSD_OS_FALSE=
4502 fi
4503 fi
4504
4505 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4506 then
4507
4508
4509 if $TRUEPRG; then
4510   HAVE_NETBSD_OS_TRUE=
4511   HAVE_NETBSD_OS_FALSE='#'
4512 else
4513   HAVE_NETBSD_OS_TRUE='#'
4514   HAVE_NETBSD_OS_FALSE=
4515 fi
4516         cat >>confdefs.h <<\_ACEOF
4517 #define HAVE_NETBSD_OS 1
4518 _ACEOF
4519
4520 else
4521
4522
4523 if $FALSEPRG; then
4524   HAVE_NETBSD_OS_TRUE=
4525   HAVE_NETBSD_OS_FALSE='#'
4526 else
4527   HAVE_NETBSD_OS_TRUE='#'
4528   HAVE_NETBSD_OS_FALSE=
4529 fi
4530 fi
4531
4532 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4533 then
4534
4535
4536 if $TRUEPRG; then
4537   HAVE_OPENBSD_OS_TRUE=
4538   HAVE_OPENBSD_OS_FALSE='#'
4539 else
4540   HAVE_OPENBSD_OS_TRUE='#'
4541   HAVE_OPENBSD_OS_FALSE=
4542 fi
4543         cat >>confdefs.h <<\_ACEOF
4544 #define HAVE_OPENBSD_OS 1
4545 _ACEOF
4546
4547 else
4548
4549
4550 if $FALSEPRG; then
4551   HAVE_OPENBSD_OS_TRUE=
4552   HAVE_OPENBSD_OS_FALSE='#'
4553 else
4554   HAVE_OPENBSD_OS_TRUE='#'
4555   HAVE_OPENBSD_OS_FALSE=
4556 fi
4557 fi
4558
4559 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4560 then
4561
4562
4563 if $TRUEPRG; then
4564   HAVE_BSDI_OS_TRUE=
4565   HAVE_BSDI_OS_FALSE='#'
4566 else
4567   HAVE_BSDI_OS_TRUE='#'
4568   HAVE_BSDI_OS_FALSE=
4569 fi
4570         cat >>confdefs.h <<\_ACEOF
4571 #define HAVE_BSDI_OS 1
4572 _ACEOF
4573
4574 else
4575
4576
4577 if $FALSEPRG; then
4578   HAVE_BSDI_OS_TRUE=
4579   HAVE_BSDI_OS_FALSE='#'
4580 else
4581   HAVE_BSDI_OS_TRUE='#'
4582   HAVE_BSDI_OS_FALSE=
4583 fi
4584 fi
4585
4586 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
4587 then
4588
4589
4590 if $TRUEPRG; then
4591   HAVE_SGI_OS_TRUE=
4592   HAVE_SGI_OS_FALSE='#'
4593 else
4594   HAVE_SGI_OS_TRUE='#'
4595   HAVE_SGI_OS_FALSE=
4596 fi
4597         cat >>confdefs.h <<\_ACEOF
4598 #define HAVE_SGI_OS 1
4599 _ACEOF
4600
4601 else
4602
4603
4604 if $FALSEPRG; then
4605   HAVE_SGI_OS_TRUE=
4606   HAVE_SGI_OS_FALSE='#'
4607 else
4608   HAVE_SGI_OS_TRUE='#'
4609   HAVE_SGI_OS_FALSE=
4610 fi
4611 fi
4612
4613 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4614 then
4615
4616
4617 if $TRUEPRG; then
4618   HAVE_IRIX_OS_TRUE=
4619   HAVE_IRIX_OS_FALSE='#'
4620 else
4621   HAVE_IRIX_OS_TRUE='#'
4622   HAVE_IRIX_OS_FALSE=
4623 fi
4624         cat >>confdefs.h <<\_ACEOF
4625 #define HAVE_IRIX_OS 1
4626 _ACEOF
4627
4628 else
4629
4630
4631 if $FALSEPRG; then
4632   HAVE_IRIX_OS_TRUE=
4633   HAVE_IRIX_OS_FALSE='#'
4634 else
4635   HAVE_IRIX_OS_TRUE='#'
4636   HAVE_IRIX_OS_FALSE=
4637 fi
4638 fi
4639
4640 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4641 then
4642
4643
4644 if $TRUEPRG; then
4645   HAVE_DARWIN_OS_TRUE=
4646   HAVE_DARWIN_OS_FALSE='#'
4647 else
4648   HAVE_DARWIN_OS_TRUE='#'
4649   HAVE_DARWIN_OS_FALSE=
4650 fi
4651     cat >>confdefs.h <<\_ACEOF
4652 #define HAVE_DARWIN_OS 1
4653 _ACEOF
4654
4655 else
4656
4657
4658 if $FALSEPRG; then
4659   HAVE_DARWIN_OS_TRUE=
4660   HAVE_DARWIN_OS_FALSE='#'
4661 else
4662   HAVE_DARWIN_OS_TRUE='#'
4663   HAVE_DARWIN_OS_FALSE=
4664 fi
4665 fi
4666
4667
4668 # -----------------------------------------------------------
4669 # ----------------------------------------------------------
4670 echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
4671 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6
4672 if test "x$DISTNAME" != "x"
4673 then
4674         echo "distname set to $DISTNAME"
4675 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4676 then
4677         DISTNAME=alpha
4678 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4679 then
4680         DISTNAME=aix
4681 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4682 then
4683         DISTNAME=hpux
4684 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4685 then
4686         DISTNAME=solaris
4687 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4688 then
4689         DISTNAME=freebsd
4690 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4691 then
4692         DISTNAME=netbsd
4693 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4694 then
4695         DISTNAME=openbsd
4696 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4697 then
4698         DISTNAME=irix
4699 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4700 then
4701         DISTNAME=bsdi
4702 elif test -f /etc/SuSE-release
4703 then
4704         DISTNAME=suse
4705 elif test -d /etc/SuSEconfig
4706 then
4707         DISTNAME=suse5
4708 elif test -f /etc/mandrake-release
4709 then
4710         DISTNAME=mandrake
4711 elif test -f /etc/whitebox-release
4712 then
4713        DISTNAME=redhat
4714 elif test -f /etc/redhat-release
4715 then
4716         DISTNAME=redhat
4717 elif test -f /etc/gentoo-release
4718 then
4719         DISTNAME=gentoo
4720 elif test -f /etc/debian_version
4721 then
4722         DISTNAME=debian
4723 elif test -f /etc/slackware-version
4724 then
4725         DISTNAME=slackware
4726 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4727 then
4728     DISTNAME=darwin
4729 elif test -f /etc/engarde-version
4730 then
4731         DISTNAME=engarde
4732 elif test "$CYGWIN" = yes
4733 then
4734         DISTNAME=cygwin
4735         cat >>confdefs.h <<\_ACEOF
4736 #define HAVE_CYGWIN 1
4737 _ACEOF
4738
4739 else
4740         DISTNAME=unknown
4741 fi
4742 echo "$as_me:$LINENO: result: done" >&5
4743 echo "${ECHO_T}done" >&6
4744
4745
4746 #  AM_GNU_GETTEXT([external])
4747 if test x${datadir} = xNONE ; then
4748    datadir=/usr/share
4749 fi
4750 localedir=${datadir}/locale
4751 cat >>confdefs.h <<_ACEOF
4752 #define LOCALEDIR "$localdir"
4753 _ACEOF
4754
4755  # LOCAL_DEFS="$LOCAL_DEFS -DLOCALEDIR=\"\\\"${localedir}\\\"\""
4756
4757 # ------------------------------------------------------------------
4758 #  If the user has not set --prefix, we set our default to nothing.
4759 #  In this case, if the user has not set --sysconfdir, we set it
4760 #  to the package default of /etc/bacula.  If either --prefix or
4761 #  --sysconfdir is set, we leave sysconfdir alone except to eval it.
4762 # ------------------------------------------------------------------
4763 if test x${prefix} = xNONE ; then
4764     if test `eval echo ${sysconfdir}` = NONE/etc ; then
4765         sysconfdir=/etc/bacula
4766     fi
4767     prefix=
4768 fi
4769 sysconfdir=`eval echo ${sysconfdir}`
4770
4771 # -------------------------------------------------------------------------
4772 #  If the user has not set --exec-prefix, we default to ${prefix}
4773 # -------------------------------------------------------------------------
4774 if test x${exec_prefix} = xNONE ; then
4775     exec_prefix=${prefix}
4776 fi
4777
4778 # ------------------------------------------------------------------
4779 # If the user has not set --sbindir, we set our default as /sbin
4780 # ------------------------------------------------------------------
4781 if test x$sbindir = x'${exec_prefix}/sbin' ; then
4782     sbindir=${exec_prefix}/sbin
4783 fi
4784 sbindir=`eval echo ${sbindir}`
4785
4786 # -------------------------------------------------------------------------
4787 #  If the user has not set --mandir, we default to /usr/share/man
4788 # -------------------------------------------------------------------------
4789 if test x$mandir = x'${prefix}/man' ; then
4790    mandir=/usr/share/man
4791 fi
4792
4793
4794 # ------------------------------------------------------------------
4795 # All list of languages for which a translation exist. Each
4796 #  language is separated by a space.
4797 # ------------------------------------------------------------------
4798 ALL_LINGUAS=""
4799
4800 for ac_prog in msgfmt
4801 do
4802   # Extract the first word of "$ac_prog", so it can be a program name with args.
4803 set dummy $ac_prog; ac_word=$2
4804 echo "$as_me:$LINENO: checking for $ac_word" >&5
4805 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4806 if test "${ac_cv_path_MSGFMT+set}" = set; then
4807   echo $ECHO_N "(cached) $ECHO_C" >&6
4808 else
4809   case $MSGFMT in
4810   [\\/]* | ?:[\\/]*)
4811   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4812   ;;
4813   *)
4814   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4815 for as_dir in $PATH
4816 do
4817   IFS=$as_save_IFS
4818   test -z "$as_dir" && as_dir=.
4819   for ac_exec_ext in '' $ac_executable_extensions; do
4820   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4821     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
4822     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4823     break 2
4824   fi
4825 done
4826 done
4827
4828   ;;
4829 esac
4830 fi
4831 MSGFMT=$ac_cv_path_MSGFMT
4832
4833 if test -n "$MSGFMT"; then
4834   echo "$as_me:$LINENO: result: $MSGFMT" >&5
4835 echo "${ECHO_T}$MSGFMT" >&6
4836 else
4837   echo "$as_me:$LINENO: result: no" >&5
4838 echo "${ECHO_T}no" >&6
4839 fi
4840
4841   test -n "$MSGFMT" && break
4842 done
4843 test -n "$MSGFMT" || MSGFMT="no"
4844
4845 if test "$MSGFMT" = "no"
4846 then
4847    echo 'msgfmt program not found, disabling NLS !'
4848    USE_NLS=no
4849    USE_INCLUDED_LIBINTL=no
4850 #else
4851 #   AM_GNU_GETTEXT
4852 fi
4853
4854
4855 support_mysql=no
4856 support_sqlite=no
4857 support_sqlite3=no
4858 support_postgresql=no
4859 support_smartalloc=yes
4860 support_readline=yes
4861 support_conio=yes
4862 support_gnome=no
4863 support_wx_console=no
4864 support_tls=no
4865 gnome_version=
4866 wx_version=
4867 support_static_tools=no
4868 support_static_fd=no
4869 support_static_sd=no
4870 support_static_dir=no
4871 support_static_cons=no
4872 support_python=no
4873 build_client_only=no
4874 cats=
4875 db_name=Internal
4876 DB_NAME=bdb
4877
4878
4879 # -------------------------------------------
4880 # gnome (default off)
4881 # -------------------------------------------
4882 # Check whether --enable-gnome or --disable-gnome was given.
4883 if test "${enable_gnome+set}" = set; then
4884   enableval="$enable_gnome"
4885   if test x$enableval = xyes; then
4886     support_gnome=yes
4887   fi
4888 fi;
4889
4890 GNOME_DIR=
4891 if test x$support_gnome = xyes; then
4892   abc=`$PKGCONFIG --exists libgnomeui-2.0`
4893   pkg=$?
4894   if test $pkg = 0; then
4895      GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
4896      GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
4897      GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
4898      GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
4899
4900
4901
4902
4903      GNOME_DIR=src/gnome2-console
4904      gnome_version="Version 2.x"
4905   else
4906      { { echo "$as_me:$LINENO: error: Unable to find Gnome 2 installation" >&5
4907 echo "$as_me: error: Unable to find Gnome 2 installation" >&2;}
4908    { (exit 1); exit 1; }; }
4909   fi
4910 fi
4911
4912
4913
4914 # -------------------------------------------
4915 # wx-console (default off)
4916 # -------------------------------------------
4917 # Check whether --enable-wx-console or --disable-wx-console was given.
4918 if test "${enable_wx_console+set}" = set; then
4919   enableval="$enable_wx_console"
4920   if test x$enableval = xyes; then
4921     support_wx_console=yes
4922   fi
4923 fi;
4924
4925 WX_DIR=
4926 if test x$support_wx_console = xyes; then
4927   abc=`$WXCONFIG $WXFLAGS --cppflags`
4928   pkg=$?
4929   if test $pkg = 0; then
4930      wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
4931      WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
4932      WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
4933
4934
4935
4936      WX_DIR=src/wx-console
4937   else
4938      echo " "
4939      echo "wx-config program not found. wx-console disabled."
4940      echo " "
4941      support_wx_console=no
4942   fi
4943 fi
4944
4945
4946
4947 # -------------------------------------------
4948 # tray-monitor (default off)
4949 # -------------------------------------------
4950 # Check whether --enable-tray-monitor or --disable-tray-monitor was given.
4951 if test "${enable_tray_monitor+set}" = set; then
4952   enableval="$enable_tray_monitor"
4953   if test x$enableval = xyes; then
4954     support_tray_monitor=yes
4955   fi
4956 fi;
4957
4958 TRAY_MONITOR_DIR=
4959 if test x$support_tray_monitor = xyes; then
4960   abc=`$PKGCONFIG --exists gtk+-2.0`
4961   pkg=$?
4962   if test $pkg = 0; then
4963      TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
4964      TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
4965
4966
4967      TRAY_MONITOR_DIR=src/tray-monitor
4968      abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
4969      pkg=$?
4970      if test $pkg = 0; then
4971         cat >>confdefs.h <<\_ACEOF
4972 #define HAVE_GTK_2_4 1
4973 _ACEOF
4974
4975      fi
4976   fi
4977 fi
4978
4979
4980 # -------------------------------------------
4981 # smartalloc (default off)
4982 # -------------------------------------------
4983 # Check whether --enable-smartalloc or --disable-smartalloc was given.
4984 if test "${enable_smartalloc+set}" = set; then
4985   enableval="$enable_smartalloc"
4986   if test x$enableval = xno; then
4987     support_smartalloc=no
4988   fi
4989 fi;
4990
4991 if test x$support_smartalloc = xyes; then
4992    cat >>confdefs.h <<\_ACEOF
4993 #define SMARTALLOC 1
4994 _ACEOF
4995
4996 fi
4997
4998 # -------------------------------------------
4999 # static-tools (default off)
5000 # -------------------------------------------
5001 # Check whether --enable-static-tools or --disable-static-tools was given.
5002 if test "${enable_static_tools+set}" = set; then
5003   enableval="$enable_static_tools"
5004   if test x$enableval = xyes; then
5005      support_static_tools=yes
5006    fi
5007 fi;
5008
5009 TTOOL_LDFLAGS=
5010 if test x$support_static_tools = xyes; then
5011    TTOOL_LDFLAGS="-static"
5012 fi
5013
5014
5015 # -------------------------------------------
5016 # static-fd    (default off)
5017 # -------------------------------------------
5018 # Check whether --enable-static-fd or --disable-static-fd was given.
5019 if test "${enable_static_fd+set}" = set; then
5020   enableval="$enable_static_fd"
5021   if test x$enableval = xyes; then
5022      support_static_fd=yes
5023    fi
5024 fi;
5025
5026 STATIC_FD=
5027 if test x$support_static_fd = xyes; then
5028    STATIC_FD="static-bacula-fd"
5029 fi
5030
5031
5032 # -------------------------------------------
5033 # static-sd    (default off)
5034 # -------------------------------------------
5035 # Check whether --enable-static-sd or --disable-static-sd was given.
5036 if test "${enable_static_sd+set}" = set; then
5037   enableval="$enable_static_sd"
5038   if test x$enableval = xyes; then
5039      support_static_sd=yes
5040    fi
5041 fi;
5042
5043 STATIC_SD=
5044 if test x$support_static_sd = xyes; then
5045    STATIC_SD="static-bacula-sd"
5046 fi
5047
5048
5049 # -------------------------------------------
5050 # static-dir   (default off)
5051 # -------------------------------------------
5052 # Check whether --enable-static-dir or --disable-static-dir was given.
5053 if test "${enable_static_dir+set}" = set; then
5054   enableval="$enable_static_dir"
5055   if test x$enableval = xyes; then
5056      support_static_dir=yes
5057    fi
5058 fi;
5059
5060 STATIC_DIR=
5061 if test x$support_static_dir = xyes; then
5062    STATIC_DIR="static-bacula-dir"
5063 fi
5064
5065
5066 # -------------------------------------------
5067 # static-cons  (default off)
5068 # -------------------------------------------
5069 # Check whether --enable-static-cons or --disable-static-cons was given.
5070 if test "${enable_static_cons+set}" = set; then
5071   enableval="$enable_static_cons"
5072   if test x$enableval = xyes; then
5073      support_static_cons=yes
5074    fi
5075 fi;
5076
5077 STATIC_CONS=
5078 STATIC_GNOME_CONS=
5079 STATIC_WX_CONS=
5080 if test x$support_static_cons = xyes; then
5081    STATIC_CONS="static-bconsole"
5082    STATIC_GNOME_CONS="static-gnome-console"
5083    STATIC_WX_CONS="static-wx-console"
5084 fi
5085
5086
5087
5088
5089 # -------------------------------------------
5090 # client_only  (default off)
5091 # -------------------------------------------
5092 # Check whether --enable-client-only or --disable-client-only was given.
5093 if test "${enable_client_only+set}" = set; then
5094   enableval="$enable_client_only"
5095   if test x$enableval = xyes; then
5096      build_client_only=yes
5097     db_name=None
5098     DB_NAME=none
5099    fi
5100 fi;
5101 if test x$build_client_only = xno; then
5102    ALL_DIRS="subdirs"
5103 else
5104    ALL_DIRS=""
5105 fi
5106
5107
5108 # ---------------------------------------------------
5109 # Check for conio (Bacula readline substitute)(
5110 # ---------------------------------------------------
5111 # this allows you to turn it completely off
5112 # Check whether --enable-conio or --disable-conio was given.
5113 if test "${enable_conio+set}" = set; then
5114   enableval="$enable_conio"
5115   if test x$enableval = xno; then
5116     support_conio=no
5117   fi
5118 fi;
5119
5120 got_conio="no"
5121 if test x$support_conio = xyes; then
5122    echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5123 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5124 if test "${ac_cv_header_stdc+set}" = set; then
5125   echo $ECHO_N "(cached) $ECHO_C" >&6
5126 else
5127   cat >conftest.$ac_ext <<_ACEOF
5128 /* confdefs.h.  */
5129 _ACEOF
5130 cat confdefs.h >>conftest.$ac_ext
5131 cat >>conftest.$ac_ext <<_ACEOF
5132 /* end confdefs.h.  */
5133 #include <stdlib.h>
5134 #include <stdarg.h>
5135 #include <string.h>
5136 #include <float.h>
5137
5138 int
5139 main ()
5140 {
5141
5142   ;
5143   return 0;
5144 }
5145 _ACEOF
5146 rm -f conftest.$ac_objext
5147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5148   (eval $ac_compile) 2>conftest.er1
5149   ac_status=$?
5150   grep -v '^ *+' conftest.er1 >conftest.err
5151   rm -f conftest.er1
5152   cat conftest.err >&5
5153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5154   (exit $ac_status); } &&
5155          { ac_try='test -z "$ac_c_werror_flag"
5156                          || test ! -s conftest.err'
5157   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5158   (eval $ac_try) 2>&5
5159   ac_status=$?
5160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5161   (exit $ac_status); }; } &&
5162          { ac_try='test -s conftest.$ac_objext'
5163   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5164   (eval $ac_try) 2>&5
5165   ac_status=$?
5166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5167   (exit $ac_status); }; }; then
5168   ac_cv_header_stdc=yes
5169 else
5170   echo "$as_me: failed program was:" >&5
5171 sed 's/^/| /' conftest.$ac_ext >&5
5172
5173 ac_cv_header_stdc=no
5174 fi
5175 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5176
5177 if test $ac_cv_header_stdc = yes; then
5178   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5179   cat >conftest.$ac_ext <<_ACEOF
5180 /* confdefs.h.  */
5181 _ACEOF
5182 cat confdefs.h >>conftest.$ac_ext
5183 cat >>conftest.$ac_ext <<_ACEOF
5184 /* end confdefs.h.  */
5185 #include <string.h>
5186
5187 _ACEOF
5188 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5189   $EGREP "memchr" >/dev/null 2>&1; then
5190   :
5191 else
5192   ac_cv_header_stdc=no
5193 fi
5194 rm -f conftest*
5195
5196 fi
5197
5198 if test $ac_cv_header_stdc = yes; then
5199   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5200   cat >conftest.$ac_ext <<_ACEOF
5201 /* confdefs.h.  */
5202 _ACEOF
5203 cat confdefs.h >>conftest.$ac_ext
5204 cat >>conftest.$ac_ext <<_ACEOF
5205 /* end confdefs.h.  */
5206 #include <stdlib.h>
5207
5208 _ACEOF
5209 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5210   $EGREP "free" >/dev/null 2>&1; then
5211   :
5212 else
5213   ac_cv_header_stdc=no
5214 fi
5215 rm -f conftest*
5216
5217 fi
5218
5219 if test $ac_cv_header_stdc = yes; then
5220   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5221   if test "$cross_compiling" = yes; then
5222   :
5223 else
5224   cat >conftest.$ac_ext <<_ACEOF
5225 /* confdefs.h.  */
5226 _ACEOF
5227 cat confdefs.h >>conftest.$ac_ext
5228 cat >>conftest.$ac_ext <<_ACEOF
5229 /* end confdefs.h.  */
5230 #include <ctype.h>
5231 #if ((' ' & 0x0FF) == 0x020)
5232 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5233 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5234 #else
5235 # define ISLOWER(c) \
5236                    (('a' <= (c) && (c) <= 'i') \
5237                      || ('j' <= (c) && (c) <= 'r') \
5238                      || ('s' <= (c) && (c) <= 'z'))
5239 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5240 #endif
5241
5242 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5243 int
5244 main ()
5245 {
5246   int i;
5247   for (i = 0; i < 256; i++)
5248     if (XOR (islower (i), ISLOWER (i))
5249         || toupper (i) != TOUPPER (i))
5250       exit(2);
5251   exit (0);
5252 }
5253 _ACEOF
5254 rm -f conftest$ac_exeext
5255 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5256   (eval $ac_link) 2>&5
5257   ac_status=$?
5258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5259   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5260   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5261   (eval $ac_try) 2>&5
5262   ac_status=$?
5263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5264   (exit $ac_status); }; }; then
5265   :
5266 else
5267   echo "$as_me: program exited with status $ac_status" >&5
5268 echo "$as_me: failed program was:" >&5
5269 sed 's/^/| /' conftest.$ac_ext >&5
5270
5271 ( exit $ac_status )
5272 ac_cv_header_stdc=no
5273 fi
5274 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5275 fi
5276 fi
5277 fi
5278 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5279 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5280 if test $ac_cv_header_stdc = yes; then
5281
5282 cat >>confdefs.h <<\_ACEOF
5283 #define STDC_HEADERS 1
5284 _ACEOF
5285
5286 fi
5287
5288 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5299                   inttypes.h stdint.h unistd.h
5300 do
5301 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5302 echo "$as_me:$LINENO: checking for $ac_header" >&5
5303 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5304 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5305   echo $ECHO_N "(cached) $ECHO_C" >&6
5306 else
5307   cat >conftest.$ac_ext <<_ACEOF
5308 /* confdefs.h.  */
5309 _ACEOF
5310 cat confdefs.h >>conftest.$ac_ext
5311 cat >>conftest.$ac_ext <<_ACEOF
5312 /* end confdefs.h.  */
5313 $ac_includes_default
5314
5315 #include <$ac_header>
5316 _ACEOF
5317 rm -f conftest.$ac_objext
5318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5319   (eval $ac_compile) 2>conftest.er1
5320   ac_status=$?
5321   grep -v '^ *+' conftest.er1 >conftest.err
5322   rm -f conftest.er1
5323   cat conftest.err >&5
5324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5325   (exit $ac_status); } &&
5326          { ac_try='test -z "$ac_c_werror_flag"
5327                          || test ! -s conftest.err'
5328   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5329   (eval $ac_try) 2>&5
5330   ac_status=$?
5331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5332   (exit $ac_status); }; } &&
5333          { ac_try='test -s conftest.$ac_objext'
5334   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5335   (eval $ac_try) 2>&5
5336   ac_status=$?
5337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5338   (exit $ac_status); }; }; then
5339   eval "$as_ac_Header=yes"
5340 else
5341   echo "$as_me: failed program was:" >&5
5342 sed 's/^/| /' conftest.$ac_ext >&5
5343
5344 eval "$as_ac_Header=no"
5345 fi
5346 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5347 fi
5348 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5349 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5350 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5351   cat >>confdefs.h <<_ACEOF
5352 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5353 _ACEOF
5354
5355 fi
5356
5357 done
5358
5359
5360 if test "${ac_cv_header_termcap_h+set}" = set; then
5361   echo "$as_me:$LINENO: checking for termcap.h" >&5
5362 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
5363 if test "${ac_cv_header_termcap_h+set}" = set; then
5364   echo $ECHO_N "(cached) $ECHO_C" >&6
5365 fi
5366 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
5367 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
5368 else
5369   # Is the header compilable?
5370 echo "$as_me:$LINENO: checking termcap.h usability" >&5
5371 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6
5372 cat >conftest.$ac_ext <<_ACEOF
5373 /* confdefs.h.  */
5374 _ACEOF
5375 cat confdefs.h >>conftest.$ac_ext
5376 cat >>conftest.$ac_ext <<_ACEOF
5377 /* end confdefs.h.  */
5378 $ac_includes_default
5379 #include <termcap.h>
5380 _ACEOF
5381 rm -f conftest.$ac_objext
5382 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5383   (eval $ac_compile) 2>conftest.er1
5384   ac_status=$?
5385   grep -v '^ *+' conftest.er1 >conftest.err
5386   rm -f conftest.er1
5387   cat conftest.err >&5
5388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5389   (exit $ac_status); } &&
5390          { ac_try='test -z "$ac_c_werror_flag"
5391                          || test ! -s conftest.err'
5392   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5393   (eval $ac_try) 2>&5
5394   ac_status=$?
5395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5396   (exit $ac_status); }; } &&
5397          { ac_try='test -s conftest.$ac_objext'
5398   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5399   (eval $ac_try) 2>&5
5400   ac_status=$?
5401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5402   (exit $ac_status); }; }; then
5403   ac_header_compiler=yes
5404 else
5405   echo "$as_me: failed program was:" >&5
5406 sed 's/^/| /' conftest.$ac_ext >&5
5407
5408 ac_header_compiler=no
5409 fi
5410 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5411 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5412 echo "${ECHO_T}$ac_header_compiler" >&6
5413
5414 # Is the header present?
5415 echo "$as_me:$LINENO: checking termcap.h presence" >&5
5416 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6
5417 cat >conftest.$ac_ext <<_ACEOF
5418 /* confdefs.h.  */
5419 _ACEOF
5420 cat confdefs.h >>conftest.$ac_ext
5421 cat >>conftest.$ac_ext <<_ACEOF
5422 /* end confdefs.h.  */
5423 #include <termcap.h>
5424 _ACEOF
5425 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5426   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5427   ac_status=$?
5428   grep -v '^ *+' conftest.er1 >conftest.err
5429   rm -f conftest.er1
5430   cat conftest.err >&5
5431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5432   (exit $ac_status); } >/dev/null; then
5433   if test -s conftest.err; then
5434     ac_cpp_err=$ac_c_preproc_warn_flag
5435     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5436   else
5437     ac_cpp_err=
5438   fi
5439 else
5440   ac_cpp_err=yes
5441 fi
5442 if test -z "$ac_cpp_err"; then
5443   ac_header_preproc=yes
5444 else
5445   echo "$as_me: failed program was:" >&5
5446 sed 's/^/| /' conftest.$ac_ext >&5
5447
5448   ac_header_preproc=no
5449 fi
5450 rm -f conftest.err conftest.$ac_ext
5451 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5452 echo "${ECHO_T}$ac_header_preproc" >&6
5453
5454 # So?  What about this header?
5455 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5456   yes:no: )
5457     { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
5458 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5459     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the compiler's result" >&5
5460 echo "$as_me: WARNING: termcap.h: proceeding with the compiler's result" >&2;}
5461     ac_header_preproc=yes
5462     ;;
5463   no:yes:* )
5464     { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
5465 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
5466     { echo "$as_me:$LINENO: WARNING: termcap.h:     check for missing prerequisite headers?" >&5
5467 echo "$as_me: WARNING: termcap.h:     check for missing prerequisite headers?" >&2;}
5468     { echo "$as_me:$LINENO: WARNING: termcap.h: see the Autoconf documentation" >&5
5469 echo "$as_me: WARNING: termcap.h: see the Autoconf documentation" >&2;}
5470     { echo "$as_me:$LINENO: WARNING: termcap.h:     section \"Present But Cannot Be Compiled\"" >&5
5471 echo "$as_me: WARNING: termcap.h:     section \"Present But Cannot Be Compiled\"" >&2;}
5472     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
5473 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
5474     { echo "$as_me:$LINENO: WARNING: termcap.h: in the future, the compiler will take precedence" >&5
5475 echo "$as_me: WARNING: termcap.h: in the future, the compiler will take precedence" >&2;}
5476     (
5477       cat <<\_ASBOX
5478 ## ------------------------------------------ ##
5479 ## Report this to the AC_PACKAGE_NAME lists.  ##
5480 ## ------------------------------------------ ##
5481 _ASBOX
5482     ) |
5483       sed "s/^/$as_me: WARNING:     /" >&2
5484     ;;
5485 esac
5486 echo "$as_me:$LINENO: checking for termcap.h" >&5
5487 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
5488 if test "${ac_cv_header_termcap_h+set}" = set; then
5489   echo $ECHO_N "(cached) $ECHO_C" >&6
5490 else
5491   ac_cv_header_termcap_h=$ac_header_preproc
5492 fi
5493 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
5494 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
5495
5496 fi
5497 if test $ac_cv_header_termcap_h = yes; then
5498    echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
5499 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
5500 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
5501   echo $ECHO_N "(cached) $ECHO_C" >&6
5502 else
5503   ac_check_lib_save_LIBS=$LIBS
5504 LIBS="-ltermcap  $LIBS"
5505 cat >conftest.$ac_ext <<_ACEOF
5506 /* confdefs.h.  */
5507 _ACEOF
5508 cat confdefs.h >>conftest.$ac_ext
5509 cat >>conftest.$ac_ext <<_ACEOF
5510 /* end confdefs.h.  */
5511
5512 /* Override any gcc2 internal prototype to avoid an error.  */
5513 #ifdef __cplusplus
5514 extern "C"
5515 #endif
5516 /* We use char because int might match the return type of a gcc2
5517    builtin and then its argument prototype would still apply.  */
5518 char tgetent ();
5519 int
5520 main ()
5521 {
5522 tgetent ();
5523   ;
5524   return 0;
5525 }
5526 _ACEOF
5527 rm -f conftest.$ac_objext conftest$ac_exeext
5528 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5529   (eval $ac_link) 2>conftest.er1
5530   ac_status=$?
5531   grep -v '^ *+' conftest.er1 >conftest.err
5532   rm -f conftest.er1
5533   cat conftest.err >&5
5534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5535   (exit $ac_status); } &&
5536          { ac_try='test -z "$ac_c_werror_flag"
5537                          || test ! -s conftest.err'
5538   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5539   (eval $ac_try) 2>&5
5540   ac_status=$?
5541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5542   (exit $ac_status); }; } &&
5543          { ac_try='test -s conftest$ac_exeext'
5544   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5545   (eval $ac_try) 2>&5
5546   ac_status=$?
5547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5548   (exit $ac_status); }; }; then
5549   ac_cv_lib_termcap_tgetent=yes
5550 else
5551   echo "$as_me: failed program was:" >&5
5552 sed 's/^/| /' conftest.$ac_ext >&5
5553
5554 ac_cv_lib_termcap_tgetent=no
5555 fi
5556 rm -f conftest.err conftest.$ac_objext \
5557       conftest$ac_exeext conftest.$ac_ext
5558 LIBS=$ac_check_lib_save_LIBS
5559 fi
5560 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
5561 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
5562 if test $ac_cv_lib_termcap_tgetent = yes; then
5563    CONS_LIBS="-ltermcap"
5564          CONS_OBJ="conio.o"
5565          CONS_SRC="conio.c"
5566          got_conio="yes"
5567          support_readline=no
5568
5569 cat >>confdefs.h <<\_ACEOF
5570 #define HAVE_CONIO 1
5571 _ACEOF
5572
5573
5574 else
5575    echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
5576 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6
5577 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
5578   echo $ECHO_N "(cached) $ECHO_C" >&6
5579 else
5580   ac_check_lib_save_LIBS=$LIBS
5581 LIBS="-lncurses  $LIBS"
5582 cat >conftest.$ac_ext <<_ACEOF
5583 /* confdefs.h.  */
5584 _ACEOF
5585 cat confdefs.h >>conftest.$ac_ext
5586 cat >>conftest.$ac_ext <<_ACEOF
5587 /* end confdefs.h.  */
5588
5589 /* Override any gcc2 internal prototype to avoid an error.  */
5590 #ifdef __cplusplus
5591 extern "C"
5592 #endif
5593 /* We use char because int might match the return type of a gcc2
5594    builtin and then its argument prototype would still apply.  */
5595 char tgetent ();
5596 int
5597 main ()
5598 {
5599 tgetent ();
5600   ;
5601   return 0;
5602 }
5603 _ACEOF
5604 rm -f conftest.$ac_objext conftest$ac_exeext
5605 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5606   (eval $ac_link) 2>conftest.er1
5607   ac_status=$?
5608   grep -v '^ *+' conftest.er1 >conftest.err
5609   rm -f conftest.er1
5610   cat conftest.err >&5
5611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5612   (exit $ac_status); } &&
5613          { ac_try='test -z "$ac_c_werror_flag"
5614                          || test ! -s conftest.err'
5615   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5616   (eval $ac_try) 2>&5
5617   ac_status=$?
5618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5619   (exit $ac_status); }; } &&
5620          { ac_try='test -s conftest$ac_exeext'
5621   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5622   (eval $ac_try) 2>&5
5623   ac_status=$?
5624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5625   (exit $ac_status); }; }; then
5626   ac_cv_lib_ncurses_tgetent=yes
5627 else
5628   echo "$as_me: failed program was:" >&5
5629 sed 's/^/| /' conftest.$ac_ext >&5
5630
5631 ac_cv_lib_ncurses_tgetent=no
5632 fi
5633 rm -f conftest.err conftest.$ac_objext \
5634       conftest$ac_exeext conftest.$ac_ext
5635 LIBS=$ac_check_lib_save_LIBS
5636 fi
5637 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
5638 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6
5639 if test $ac_cv_lib_ncurses_tgetent = yes; then
5640    CONS_LIBS="-lncurses"
5641            CONS_OBJ="conio.o"
5642            CONS_SRC="conio.c"
5643            got_conio="yes"
5644            support_readline=no
5645
5646 cat >>confdefs.h <<\_ACEOF
5647 #define HAVE_CONIO 1
5648 _ACEOF
5649
5650
5651 fi
5652
5653
5654 fi
5655
5656
5657 else
5658
5659
5660 for ac_header in curses.h
5661 do
5662 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5663 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5664   echo "$as_me:$LINENO: checking for $ac_header" >&5
5665 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5666 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5667   echo $ECHO_N "(cached) $ECHO_C" >&6
5668 fi
5669 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5670 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5671 else
5672   # Is the header compilable?
5673 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5674 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5675 cat >conftest.$ac_ext <<_ACEOF
5676 /* confdefs.h.  */
5677 _ACEOF
5678 cat confdefs.h >>conftest.$ac_ext
5679 cat >>conftest.$ac_ext <<_ACEOF
5680 /* end confdefs.h.  */
5681 $ac_includes_default
5682 #include <$ac_header>
5683 _ACEOF
5684 rm -f conftest.$ac_objext
5685 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5686   (eval $ac_compile) 2>conftest.er1
5687   ac_status=$?
5688   grep -v '^ *+' conftest.er1 >conftest.err
5689   rm -f conftest.er1
5690   cat conftest.err >&5
5691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5692   (exit $ac_status); } &&
5693          { ac_try='test -z "$ac_c_werror_flag"
5694                          || test ! -s conftest.err'
5695   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5696   (eval $ac_try) 2>&5
5697   ac_status=$?
5698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5699   (exit $ac_status); }; } &&
5700          { ac_try='test -s conftest.$ac_objext'
5701   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5702   (eval $ac_try) 2>&5
5703   ac_status=$?
5704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5705   (exit $ac_status); }; }; then
5706   ac_header_compiler=yes
5707 else
5708   echo "$as_me: failed program was:" >&5
5709 sed 's/^/| /' conftest.$ac_ext >&5
5710
5711 ac_header_compiler=no
5712 fi
5713 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5714 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5715 echo "${ECHO_T}$ac_header_compiler" >&6
5716
5717 # Is the header present?
5718 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5719 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5720 cat >conftest.$ac_ext <<_ACEOF
5721 /* confdefs.h.  */
5722 _ACEOF
5723 cat confdefs.h >>conftest.$ac_ext
5724 cat >>conftest.$ac_ext <<_ACEOF
5725 /* end confdefs.h.  */
5726 #include <$ac_header>
5727 _ACEOF
5728 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5729   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5730   ac_status=$?
5731   grep -v '^ *+' conftest.er1 >conftest.err
5732   rm -f conftest.er1
5733   cat conftest.err >&5
5734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5735   (exit $ac_status); } >/dev/null; then
5736   if test -s conftest.err; then
5737     ac_cpp_err=$ac_c_preproc_warn_flag
5738     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5739   else
5740     ac_cpp_err=
5741   fi
5742 else
5743   ac_cpp_err=yes
5744 fi
5745 if test -z "$ac_cpp_err"; then
5746   ac_header_preproc=yes
5747 else
5748   echo "$as_me: failed program was:" >&5
5749 sed 's/^/| /' conftest.$ac_ext >&5
5750
5751   ac_header_preproc=no
5752 fi
5753 rm -f conftest.err conftest.$ac_ext
5754 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5755 echo "${ECHO_T}$ac_header_preproc" >&6
5756
5757 # So?  What about this header?
5758 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5759   yes:no: )
5760     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5761 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5762     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5763 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5764     ac_header_preproc=yes
5765     ;;
5766   no:yes:* )
5767     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5768 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5769     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5770 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5771     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5772 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5773     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5774 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5775     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5776 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5777     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5778 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5779     (
5780       cat <<\_ASBOX
5781 ## ------------------------------------------ ##
5782 ## Report this to the AC_PACKAGE_NAME lists.  ##
5783 ## ------------------------------------------ ##
5784 _ASBOX
5785     ) |
5786       sed "s/^/$as_me: WARNING:     /" >&2
5787     ;;
5788 esac
5789 echo "$as_me:$LINENO: checking for $ac_header" >&5
5790 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5791 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5792   echo $ECHO_N "(cached) $ECHO_C" >&6
5793 else
5794   eval "$as_ac_Header=\$ac_header_preproc"
5795 fi
5796 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5797 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5798
5799 fi
5800 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5801   cat >>confdefs.h <<_ACEOF
5802 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5803 _ACEOF
5804
5805 fi
5806
5807 done
5808
5809          echo "$as_me:$LINENO: checking for term.h" >&5
5810 echo $ECHO_N "checking for term.h... $ECHO_C" >&6
5811 if test "${ac_cv_header_term_h+set}" = set; then
5812   echo $ECHO_N "(cached) $ECHO_C" >&6
5813 else
5814   cat >conftest.$ac_ext <<_ACEOF
5815 /* confdefs.h.  */
5816 _ACEOF
5817 cat confdefs.h >>conftest.$ac_ext
5818 cat >>conftest.$ac_ext <<_ACEOF
5819 /* end confdefs.h.  */
5820 #if HAVE_CURSES_H
5821 #include <curses.h>
5822 #endif
5823
5824
5825 #include <term.h>
5826 _ACEOF
5827 rm -f conftest.$ac_objext
5828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5829   (eval $ac_compile) 2>conftest.er1
5830   ac_status=$?
5831   grep -v '^ *+' conftest.er1 >conftest.err
5832   rm -f conftest.er1
5833   cat conftest.err >&5
5834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5835   (exit $ac_status); } &&
5836          { ac_try='test -z "$ac_c_werror_flag"
5837                          || test ! -s conftest.err'
5838   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5839   (eval $ac_try) 2>&5
5840   ac_status=$?
5841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5842   (exit $ac_status); }; } &&
5843          { ac_try='test -s conftest.$ac_objext'
5844   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5845   (eval $ac_try) 2>&5
5846   ac_status=$?
5847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5848   (exit $ac_status); }; }; then
5849   ac_cv_header_term_h=yes
5850 else
5851   echo "$as_me: failed program was:" >&5
5852 sed 's/^/| /' conftest.$ac_ext >&5
5853
5854 ac_cv_header_term_h=no
5855 fi
5856 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5857 fi
5858 echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
5859 echo "${ECHO_T}$ac_cv_header_term_h" >&6
5860 if test $ac_cv_header_term_h = yes; then
5861    echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
5862 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6
5863 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
5864   echo $ECHO_N "(cached) $ECHO_C" >&6
5865 else
5866   ac_check_lib_save_LIBS=$LIBS
5867 LIBS="-lcurses  $LIBS"
5868 cat >conftest.$ac_ext <<_ACEOF
5869 /* confdefs.h.  */
5870 _ACEOF
5871 cat confdefs.h >>conftest.$ac_ext
5872 cat >>conftest.$ac_ext <<_ACEOF
5873 /* end confdefs.h.  */
5874
5875 /* Override any gcc2 internal prototype to avoid an error.  */
5876 #ifdef __cplusplus
5877 extern "C"
5878 #endif
5879 /* We use char because int might match the return type of a gcc2
5880    builtin and then its argument prototype would still apply.  */
5881 char tgetent ();
5882 int
5883 main ()
5884 {
5885 tgetent ();
5886   ;
5887   return 0;
5888 }
5889 _ACEOF
5890 rm -f conftest.$ac_objext conftest$ac_exeext
5891 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5892   (eval $ac_link) 2>conftest.er1
5893   ac_status=$?
5894   grep -v '^ *+' conftest.er1 >conftest.err
5895   rm -f conftest.er1
5896   cat conftest.err >&5
5897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5898   (exit $ac_status); } &&
5899          { ac_try='test -z "$ac_c_werror_flag"
5900                          || test ! -s conftest.err'
5901   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5902   (eval $ac_try) 2>&5
5903   ac_status=$?
5904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5905   (exit $ac_status); }; } &&
5906          { ac_try='test -s conftest$ac_exeext'
5907   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5908   (eval $ac_try) 2>&5
5909   ac_status=$?
5910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5911   (exit $ac_status); }; }; then
5912   ac_cv_lib_curses_tgetent=yes
5913 else
5914   echo "$as_me: failed program was:" >&5
5915 sed 's/^/| /' conftest.$ac_ext >&5
5916
5917 ac_cv_lib_curses_tgetent=no
5918 fi
5919 rm -f conftest.err conftest.$ac_objext \
5920       conftest$ac_exeext conftest.$ac_ext
5921 LIBS=$ac_check_lib_save_LIBS
5922 fi
5923 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
5924 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6
5925 if test $ac_cv_lib_curses_tgetent = yes; then
5926    CONS_LIBS="-lcurses"
5927                    CONS_OBJ="conio.o"
5928                    CONS_SRC="conio.c"
5929                    got_conio="yes"
5930                    support_readline=no
5931
5932 cat >>confdefs.h <<\_ACEOF
5933 #define HAVE_CONIO 1
5934 _ACEOF
5935
5936
5937 fi
5938
5939
5940 else
5941    echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
5942 fi
5943
5944
5945
5946 fi
5947
5948
5949 fi
5950
5951
5952 # ---------------------------------------------------
5953 # Check for readline support/directory (default off)
5954 # ---------------------------------------------------
5955 # this allows you to turn it completely off
5956 # Check whether --enable-readline or --disable-readline was given.
5957 if test "${enable_readline+set}" = set; then
5958   enableval="$enable_readline"
5959   if test x$enableval = xno; then
5960     support_readline=no
5961   fi
5962 fi;
5963
5964 got_readline="no"
5965 READLINE_SRC=
5966 if test x$support_readline = xyes; then
5967
5968 # Check whether --with-readline or --without-readline was given.
5969 if test "${with_readline+set}" = set; then
5970   withval="$with_readline"
5971
5972         case "$with_readline" in
5973         no) : ;;
5974         yes|*)
5975           if test -f ${with_readline}/readline.h; then
5976              CONS_INC="-I${with_readline}"
5977              CONS_LDFLAGS="-L$with_readline"
5978           elif test -f ${with_readline}/include/readline/readline.h; then
5979              CONS_INC="-I${with_readline}/include/readline"
5980              CONS_LDFLAGS="-L${with_readline}/lib"
5981              with_readline="${with_readline}/include/readline"
5982           else
5983              with_readline="/usr/include/readline"
5984           fi
5985           as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
5986 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5987   echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
5988 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
5989 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5990   echo $ECHO_N "(cached) $ECHO_C" >&6
5991 fi
5992 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5993 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5994 else
5995   # Is the header compilable?
5996 echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
5997 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6
5998 cat >conftest.$ac_ext <<_ACEOF
5999 /* confdefs.h.  */
6000 _ACEOF
6001 cat confdefs.h >>conftest.$ac_ext
6002 cat >>conftest.$ac_ext <<_ACEOF
6003 /* end confdefs.h.  */
6004 $ac_includes_default
6005 #include <${with_readline}/readline.h>
6006 _ACEOF
6007 rm -f conftest.$ac_objext
6008 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6009   (eval $ac_compile) 2>conftest.er1
6010   ac_status=$?
6011   grep -v '^ *+' conftest.er1 >conftest.err
6012   rm -f conftest.er1
6013   cat conftest.err >&5
6014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6015   (exit $ac_status); } &&
6016          { ac_try='test -z "$ac_c_werror_flag"
6017                          || test ! -s conftest.err'
6018   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6019   (eval $ac_try) 2>&5
6020   ac_status=$?
6021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6022   (exit $ac_status); }; } &&
6023          { ac_try='test -s conftest.$ac_objext'
6024   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6025   (eval $ac_try) 2>&5
6026   ac_status=$?
6027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6028   (exit $ac_status); }; }; then
6029   ac_header_compiler=yes
6030 else
6031   echo "$as_me: failed program was:" >&5
6032 sed 's/^/| /' conftest.$ac_ext >&5
6033
6034 ac_header_compiler=no
6035 fi
6036 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6037 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6038 echo "${ECHO_T}$ac_header_compiler" >&6
6039
6040 # Is the header present?
6041 echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
6042 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6
6043 cat >conftest.$ac_ext <<_ACEOF
6044 /* confdefs.h.  */
6045 _ACEOF
6046 cat confdefs.h >>conftest.$ac_ext
6047 cat >>conftest.$ac_ext <<_ACEOF
6048 /* end confdefs.h.  */
6049 #include <${with_readline}/readline.h>
6050 _ACEOF
6051 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6052   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6053   ac_status=$?
6054   grep -v '^ *+' conftest.er1 >conftest.err
6055   rm -f conftest.er1
6056   cat conftest.err >&5
6057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6058   (exit $ac_status); } >/dev/null; then
6059   if test -s conftest.err; then
6060     ac_cpp_err=$ac_c_preproc_warn_flag
6061     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6062   else
6063     ac_cpp_err=
6064   fi
6065 else
6066   ac_cpp_err=yes
6067 fi
6068 if test -z "$ac_cpp_err"; then
6069   ac_header_preproc=yes
6070 else
6071   echo "$as_me: failed program was:" >&5
6072 sed 's/^/| /' conftest.$ac_ext >&5
6073
6074   ac_header_preproc=no
6075 fi
6076 rm -f conftest.err conftest.$ac_ext
6077 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6078 echo "${ECHO_T}$ac_header_preproc" >&6
6079
6080 # So?  What about this header?
6081 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6082   yes:no: )
6083     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
6084 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6085     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&5
6086 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&2;}
6087     ac_header_preproc=yes
6088     ;;
6089   no:yes:* )
6090     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
6091 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
6092     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h:     check for missing prerequisite headers?" >&5
6093 echo "$as_me: WARNING: ${with_readline}/readline.h:     check for missing prerequisite headers?" >&2;}
6094     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&5
6095 echo "$as_me: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&2;}
6096     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
6097 echo "$as_me: WARNING: ${with_readline}/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
6098     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
6099 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
6100     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&5
6101 echo "$as_me: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&2;}
6102     (
6103       cat <<\_ASBOX
6104 ## ------------------------------------------ ##
6105 ## Report this to the AC_PACKAGE_NAME lists.  ##
6106 ## ------------------------------------------ ##
6107 _ASBOX
6108     ) |
6109       sed "s/^/$as_me: WARNING:     /" >&2
6110     ;;
6111 esac
6112 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
6113 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
6114 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6115   echo $ECHO_N "(cached) $ECHO_C" >&6
6116 else
6117   eval "$as_ac_Header=\$ac_header_preproc"
6118 fi
6119 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6120 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6121
6122 fi
6123 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6124    cat >>confdefs.h <<\_ACEOF
6125 #define HAVE_READLINE 1
6126 _ACEOF
6127
6128                CONS_LIBS="-lreadline -lhistory -ltermcap"
6129                got_readline="yes"
6130
6131 else
6132    echo " "
6133                echo "readline.h not found. readline turned off ..."
6134                echo " "
6135
6136
6137 fi
6138
6139
6140           ;;
6141         esac
6142
6143 else
6144
6145        # check for standard readline library
6146        if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
6147   echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
6148 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
6149 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
6150   echo $ECHO_N "(cached) $ECHO_C" >&6
6151 fi
6152 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
6153 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
6154 else
6155   # Is the header compilable?
6156 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
6157 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6
6158 cat >conftest.$ac_ext <<_ACEOF
6159 /* confdefs.h.  */
6160 _ACEOF
6161 cat confdefs.h >>conftest.$ac_ext
6162 cat >>conftest.$ac_ext <<_ACEOF
6163 /* end confdefs.h.  */
6164 $ac_includes_default
6165 #include </usr/include/readline/readline.h>
6166 _ACEOF
6167 rm -f conftest.$ac_objext
6168 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6169   (eval $ac_compile) 2>conftest.er1
6170   ac_status=$?
6171   grep -v '^ *+' conftest.er1 >conftest.err
6172   rm -f conftest.er1
6173   cat conftest.err >&5
6174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6175   (exit $ac_status); } &&
6176          { ac_try='test -z "$ac_c_werror_flag"
6177                          || test ! -s conftest.err'
6178   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6179   (eval $ac_try) 2>&5
6180   ac_status=$?
6181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6182   (exit $ac_status); }; } &&
6183          { ac_try='test -s conftest.$ac_objext'
6184   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6185   (eval $ac_try) 2>&5
6186   ac_status=$?
6187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6188   (exit $ac_status); }; }; then
6189   ac_header_compiler=yes
6190 else
6191   echo "$as_me: failed program was:" >&5
6192 sed 's/^/| /' conftest.$ac_ext >&5
6193
6194 ac_header_compiler=no
6195 fi
6196 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6197 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6198 echo "${ECHO_T}$ac_header_compiler" >&6
6199
6200 # Is the header present?
6201 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
6202 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6
6203 cat >conftest.$ac_ext <<_ACEOF
6204 /* confdefs.h.  */
6205 _ACEOF
6206 cat confdefs.h >>conftest.$ac_ext
6207 cat >>conftest.$ac_ext <<_ACEOF
6208 /* end confdefs.h.  */
6209 #include </usr/include/readline/readline.h>
6210 _ACEOF
6211 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6212   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6213   ac_status=$?
6214   grep -v '^ *+' conftest.er1 >conftest.err
6215   rm -f conftest.er1
6216   cat conftest.err >&5
6217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6218   (exit $ac_status); } >/dev/null; then
6219   if test -s conftest.err; then
6220     ac_cpp_err=$ac_c_preproc_warn_flag
6221     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6222   else
6223     ac_cpp_err=
6224   fi
6225 else
6226   ac_cpp_err=yes
6227 fi
6228 if test -z "$ac_cpp_err"; then
6229   ac_header_preproc=yes
6230 else
6231   echo "$as_me: failed program was:" >&5
6232 sed 's/^/| /' conftest.$ac_ext >&5
6233
6234   ac_header_preproc=no
6235 fi
6236 rm -f conftest.err conftest.$ac_ext
6237 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6238 echo "${ECHO_T}$ac_header_preproc" >&6
6239
6240 # So?  What about this header?
6241 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6242   yes:no: )
6243     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
6244 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6245     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&5
6246 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&2;}
6247     ac_header_preproc=yes
6248     ;;
6249   no:yes:* )
6250     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
6251 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
6252     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h:     check for missing prerequisite headers?" >&5
6253 echo "$as_me: WARNING: /usr/include/readline/readline.h:     check for missing prerequisite headers?" >&2;}
6254     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&5
6255 echo "$as_me: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&2;}
6256     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
6257 echo "$as_me: WARNING: /usr/include/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
6258     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
6259 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
6260     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&5
6261 echo "$as_me: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&2;}
6262     (
6263       cat <<\_ASBOX
6264 ## ------------------------------------------ ##
6265 ## Report this to the AC_PACKAGE_NAME lists.  ##
6266 ## ------------------------------------------ ##
6267 _ASBOX
6268     ) |
6269       sed "s/^/$as_me: WARNING:     /" >&2
6270     ;;
6271 esac
6272 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
6273 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
6274 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
6275   echo $ECHO_N "(cached) $ECHO_C" >&6
6276 else
6277   ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
6278 fi
6279 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
6280 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
6281
6282 fi
6283 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
6284    cat >>confdefs.h <<\_ACEOF
6285 #define HAVE_READLINE 1
6286 _ACEOF
6287
6288            got_readline="yes"
6289            CONS_INC="-I/usr/include/readline"
6290            CONS_LIBS="-lreadline -ltermcap"
6291
6292 else
6293
6294            # Did not find standard library, so try Bacula's default
6295             as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
6296 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6297   echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
6298 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
6299 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6300   echo $ECHO_N "(cached) $ECHO_C" >&6
6301 fi
6302 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6303 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6304 else
6305   # Is the header compilable?
6306 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
6307 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6
6308 cat >conftest.$ac_ext <<_ACEOF
6309 /* confdefs.h.  */
6310 _ACEOF
6311 cat confdefs.h >>conftest.$ac_ext
6312 cat >>conftest.$ac_ext <<_ACEOF
6313 /* end confdefs.h.  */
6314 $ac_includes_default
6315 #include <${TOP_DIR}/depkgs/readline/readline.h>
6316 _ACEOF
6317 rm -f conftest.$ac_objext
6318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6319   (eval $ac_compile) 2>conftest.er1
6320   ac_status=$?
6321   grep -v '^ *+' conftest.er1 >conftest.err
6322   rm -f conftest.er1
6323   cat conftest.err >&5
6324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6325   (exit $ac_status); } &&
6326          { ac_try='test -z "$ac_c_werror_flag"
6327                          || test ! -s conftest.err'
6328   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6329   (eval $ac_try) 2>&5
6330   ac_status=$?
6331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6332   (exit $ac_status); }; } &&
6333          { ac_try='test -s conftest.$ac_objext'
6334   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6335   (eval $ac_try) 2>&5
6336   ac_status=$?
6337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6338   (exit $ac_status); }; }; then
6339   ac_header_compiler=yes
6340 else
6341   echo "$as_me: failed program was:" >&5
6342 sed 's/^/| /' conftest.$ac_ext >&5
6343
6344 ac_header_compiler=no
6345 fi
6346 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6347 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6348 echo "${ECHO_T}$ac_header_compiler" >&6
6349
6350 # Is the header present?
6351 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
6352 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6
6353 cat >conftest.$ac_ext <<_ACEOF
6354 /* confdefs.h.  */
6355 _ACEOF
6356 cat confdefs.h >>conftest.$ac_ext
6357 cat >>conftest.$ac_ext <<_ACEOF
6358 /* end confdefs.h.  */
6359 #include <${TOP_DIR}/depkgs/readline/readline.h>
6360 _ACEOF
6361 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6362   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6363   ac_status=$?
6364   grep -v '^ *+' conftest.er1 >conftest.err
6365   rm -f conftest.er1
6366   cat conftest.err >&5
6367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6368   (exit $ac_status); } >/dev/null; then
6369   if test -s conftest.err; then
6370     ac_cpp_err=$ac_c_preproc_warn_flag
6371     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6372   else
6373     ac_cpp_err=
6374   fi
6375 else
6376   ac_cpp_err=yes
6377 fi
6378 if test -z "$ac_cpp_err"; then
6379   ac_header_preproc=yes
6380 else
6381   echo "$as_me: failed program was:" >&5
6382 sed 's/^/| /' conftest.$ac_ext >&5
6383
6384   ac_header_preproc=no
6385 fi
6386 rm -f conftest.err conftest.$ac_ext
6387 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6388 echo "${ECHO_T}$ac_header_preproc" >&6
6389
6390 # So?  What about this header?
6391 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6392   yes:no: )
6393     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
6394 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6395     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&5
6396 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&2;}
6397     ac_header_preproc=yes
6398     ;;
6399   no:yes:* )
6400     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
6401 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
6402     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     check for missing prerequisite headers?" >&5
6403 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     check for missing prerequisite headers?" >&2;}
6404     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&5
6405 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&2;}
6406     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
6407 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
6408     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
6409 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
6410     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&5
6411 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&2;}
6412     (
6413       cat <<\_ASBOX
6414 ## ------------------------------------------ ##
6415 ## Report this to the AC_PACKAGE_NAME lists.  ##
6416 ## ------------------------------------------ ##
6417 _ASBOX
6418     ) |
6419       sed "s/^/$as_me: WARNING:     /" >&2
6420     ;;
6421 esac
6422 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
6423 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
6424 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6425   echo $ECHO_N "(cached) $ECHO_C" >&6
6426 else
6427   eval "$as_ac_Header=\$ac_header_preproc"
6428 fi
6429 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6430 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6431
6432 fi
6433 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6434    cat >>confdefs.h <<\_ACEOF
6435 #define HAVE_READLINE 1
6436 _ACEOF
6437
6438                  got_readline="yes"
6439                  CONS_INC="-I${TOP_DIR}/depkgs/readline"
6440                  CONS_LIBS="-lreadline -lhistory -ltermcap"
6441                  CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
6442                  PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
6443
6444 else
6445    echo " "
6446                 echo "readline.h not found. readline turned off ..."
6447                 echo " "
6448
6449
6450 fi
6451
6452
6453
6454
6455 fi
6456
6457
6458
6459
6460 fi;
6461 fi
6462
6463
6464
6465
6466
6467
6468
6469
6470
6471
6472 # Minimal stuff for readline Makefile configuration
6473 MAKE_SHELL=/bin/sh
6474
6475 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
6476 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
6477 if test "${ac_cv_header_stat_broken+set}" = set; then
6478   echo $ECHO_N "(cached) $ECHO_C" >&6
6479 else
6480   cat >conftest.$ac_ext <<_ACEOF
6481 /* confdefs.h.  */
6482 _ACEOF
6483 cat confdefs.h >>conftest.$ac_ext
6484 cat >>conftest.$ac_ext <<_ACEOF
6485 /* end confdefs.h.  */
6486 #include <sys/types.h>
6487 #include <sys/stat.h>
6488
6489 #if defined(S_ISBLK) && defined(S_IFDIR)
6490 # if S_ISBLK (S_IFDIR)
6491 You lose.
6492 # endif
6493 #endif
6494
6495 #if defined(S_ISBLK) && defined(S_IFCHR)
6496 # if S_ISBLK (S_IFCHR)
6497 You lose.
6498 # endif
6499 #endif
6500
6501 #if defined(S_ISLNK) && defined(S_IFREG)
6502 # if S_ISLNK (S_IFREG)
6503 You lose.
6504 # endif
6505 #endif
6506
6507 #if defined(S_ISSOCK) && defined(S_IFREG)
6508 # if S_ISSOCK (S_IFREG)
6509 You lose.
6510 # endif
6511 #endif
6512
6513 _ACEOF
6514 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6515   $EGREP "You lose" >/dev/null 2>&1; then
6516   ac_cv_header_stat_broken=yes
6517 else
6518   ac_cv_header_stat_broken=no
6519 fi
6520 rm -f conftest*
6521
6522 fi
6523 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
6524 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
6525 if test $ac_cv_header_stat_broken = yes; then
6526
6527 cat >>confdefs.h <<\_ACEOF
6528 #define STAT_MACROS_BROKEN 1
6529 _ACEOF
6530
6531 fi
6532
6533
6534
6535
6536
6537
6538 ac_header_dirent=no
6539 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6540   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6541 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6542 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
6543 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6544   echo $ECHO_N "(cached) $ECHO_C" >&6
6545 else
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 #include <sys/types.h>
6553 #include <$ac_hdr>
6554
6555 int
6556 main ()
6557 {
6558 if ((DIR *) 0)
6559 return 0;
6560   ;
6561   return 0;
6562 }
6563 _ACEOF
6564 rm -f conftest.$ac_objext
6565 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6566   (eval $ac_compile) 2>conftest.er1
6567   ac_status=$?
6568   grep -v '^ *+' conftest.er1 >conftest.err
6569   rm -f conftest.er1
6570   cat conftest.err >&5
6571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6572   (exit $ac_status); } &&
6573          { ac_try='test -z "$ac_c_werror_flag"
6574                          || test ! -s conftest.err'
6575   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6576   (eval $ac_try) 2>&5
6577   ac_status=$?
6578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6579   (exit $ac_status); }; } &&
6580          { ac_try='test -s conftest.$ac_objext'
6581   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6582   (eval $ac_try) 2>&5
6583   ac_status=$?
6584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6585   (exit $ac_status); }; }; then
6586   eval "$as_ac_Header=yes"
6587 else
6588   echo "$as_me: failed program was:" >&5
6589 sed 's/^/| /' conftest.$ac_ext >&5
6590
6591 eval "$as_ac_Header=no"
6592 fi
6593 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6594 fi
6595 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6596 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6597 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6598   cat >>confdefs.h <<_ACEOF
6599 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6600 _ACEOF
6601
6602 ac_header_dirent=$ac_hdr; break
6603 fi
6604
6605 done
6606 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6607 if test $ac_header_dirent = dirent.h; then
6608   echo "$as_me:$LINENO: checking for library containing opendir" >&5
6609 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6610 if test "${ac_cv_search_opendir+set}" = set; then
6611   echo $ECHO_N "(cached) $ECHO_C" >&6
6612 else
6613   ac_func_search_save_LIBS=$LIBS
6614 ac_cv_search_opendir=no
6615 cat >conftest.$ac_ext <<_ACEOF
6616 /* confdefs.h.  */
6617 _ACEOF
6618 cat confdefs.h >>conftest.$ac_ext
6619 cat >>conftest.$ac_ext <<_ACEOF
6620 /* end confdefs.h.  */
6621
6622 /* Override any gcc2 internal prototype to avoid an error.  */
6623 #ifdef __cplusplus
6624 extern "C"
6625 #endif
6626 /* We use char because int might match the return type of a gcc2
6627    builtin and then its argument prototype would still apply.  */
6628 char opendir ();
6629 int
6630 main ()
6631 {
6632 opendir ();
6633   ;
6634   return 0;
6635 }
6636 _ACEOF
6637 rm -f conftest.$ac_objext conftest$ac_exeext
6638 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6639   (eval $ac_link) 2>conftest.er1
6640   ac_status=$?
6641   grep -v '^ *+' conftest.er1 >conftest.err
6642   rm -f conftest.er1
6643   cat conftest.err >&5
6644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6645   (exit $ac_status); } &&
6646          { ac_try='test -z "$ac_c_werror_flag"
6647                          || test ! -s conftest.err'
6648   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6649   (eval $ac_try) 2>&5
6650   ac_status=$?
6651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6652   (exit $ac_status); }; } &&
6653          { ac_try='test -s conftest$ac_exeext'
6654   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6655   (eval $ac_try) 2>&5
6656   ac_status=$?
6657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6658   (exit $ac_status); }; }; then
6659   ac_cv_search_opendir="none required"
6660 else
6661   echo "$as_me: failed program was:" >&5
6662 sed 's/^/| /' conftest.$ac_ext >&5
6663
6664 fi
6665 rm -f conftest.err conftest.$ac_objext \
6666       conftest$ac_exeext conftest.$ac_ext
6667 if test "$ac_cv_search_opendir" = no; then
6668   for ac_lib in dir; do
6669     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6670     cat >conftest.$ac_ext <<_ACEOF
6671 /* confdefs.h.  */
6672 _ACEOF
6673 cat confdefs.h >>conftest.$ac_ext
6674 cat >>conftest.$ac_ext <<_ACEOF
6675 /* end confdefs.h.  */
6676
6677 /* Override any gcc2 internal prototype to avoid an error.  */
6678 #ifdef __cplusplus
6679 extern "C"
6680 #endif
6681 /* We use char because int might match the return type of a gcc2
6682    builtin and then its argument prototype would still apply.  */
6683 char opendir ();
6684 int
6685 main ()
6686 {
6687 opendir ();
6688   ;
6689   return 0;
6690 }
6691 _ACEOF
6692 rm -f conftest.$ac_objext conftest$ac_exeext
6693 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6694   (eval $ac_link) 2>conftest.er1
6695   ac_status=$?
6696   grep -v '^ *+' conftest.er1 >conftest.err
6697   rm -f conftest.er1
6698   cat conftest.err >&5
6699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6700   (exit $ac_status); } &&
6701          { ac_try='test -z "$ac_c_werror_flag"
6702                          || test ! -s conftest.err'
6703   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6704   (eval $ac_try) 2>&5
6705   ac_status=$?
6706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6707   (exit $ac_status); }; } &&
6708          { ac_try='test -s conftest$ac_exeext'
6709   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6710   (eval $ac_try) 2>&5
6711   ac_status=$?
6712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6713   (exit $ac_status); }; }; then
6714   ac_cv_search_opendir="-l$ac_lib"
6715 break
6716 else
6717   echo "$as_me: failed program was:" >&5
6718 sed 's/^/| /' conftest.$ac_ext >&5
6719
6720 fi
6721 rm -f conftest.err conftest.$ac_objext \
6722       conftest$ac_exeext conftest.$ac_ext
6723   done
6724 fi
6725 LIBS=$ac_func_search_save_LIBS
6726 fi
6727 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6728 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6729 if test "$ac_cv_search_opendir" != no; then
6730   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6731
6732 fi
6733
6734 else
6735   echo "$as_me:$LINENO: checking for library containing opendir" >&5
6736 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6737 if test "${ac_cv_search_opendir+set}" = set; then
6738   echo $ECHO_N "(cached) $ECHO_C" >&6
6739 else
6740   ac_func_search_save_LIBS=$LIBS
6741 ac_cv_search_opendir=no
6742 cat >conftest.$ac_ext <<_ACEOF
6743 /* confdefs.h.  */
6744 _ACEOF
6745 cat confdefs.h >>conftest.$ac_ext
6746 cat >>conftest.$ac_ext <<_ACEOF
6747 /* end confdefs.h.  */
6748
6749 /* Override any gcc2 internal prototype to avoid an error.  */
6750 #ifdef __cplusplus
6751 extern "C"
6752 #endif
6753 /* We use char because int might match the return type of a gcc2
6754    builtin and then its argument prototype would still apply.  */
6755 char opendir ();
6756 int
6757 main ()
6758 {
6759 opendir ();
6760   ;
6761   return 0;
6762 }
6763 _ACEOF
6764 rm -f conftest.$ac_objext conftest$ac_exeext
6765 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6766   (eval $ac_link) 2>conftest.er1
6767   ac_status=$?
6768   grep -v '^ *+' conftest.er1 >conftest.err
6769   rm -f conftest.er1
6770   cat conftest.err >&5
6771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6772   (exit $ac_status); } &&
6773          { ac_try='test -z "$ac_c_werror_flag"
6774                          || test ! -s conftest.err'
6775   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6776   (eval $ac_try) 2>&5
6777   ac_status=$?
6778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6779   (exit $ac_status); }; } &&
6780          { ac_try='test -s conftest$ac_exeext'
6781   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6782   (eval $ac_try) 2>&5
6783   ac_status=$?
6784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6785   (exit $ac_status); }; }; then
6786   ac_cv_search_opendir="none required"
6787 else
6788   echo "$as_me: failed program was:" >&5
6789 sed 's/^/| /' conftest.$ac_ext >&5
6790
6791 fi
6792 rm -f conftest.err conftest.$ac_objext \
6793       conftest$ac_exeext conftest.$ac_ext
6794 if test "$ac_cv_search_opendir" = no; then
6795   for ac_lib in x; do
6796     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6797     cat >conftest.$ac_ext <<_ACEOF
6798 /* confdefs.h.  */
6799 _ACEOF
6800 cat confdefs.h >>conftest.$ac_ext
6801 cat >>conftest.$ac_ext <<_ACEOF
6802 /* end confdefs.h.  */
6803
6804 /* Override any gcc2 internal prototype to avoid an error.  */
6805 #ifdef __cplusplus
6806 extern "C"
6807 #endif
6808 /* We use char because int might match the return type of a gcc2
6809    builtin and then its argument prototype would still apply.  */
6810 char opendir ();
6811 int
6812 main ()
6813 {
6814 opendir ();
6815   ;
6816   return 0;
6817 }
6818 _ACEOF
6819 rm -f conftest.$ac_objext conftest$ac_exeext
6820 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6821   (eval $ac_link) 2>conftest.er1
6822   ac_status=$?
6823   grep -v '^ *+' conftest.er1 >conftest.err
6824   rm -f conftest.er1
6825   cat conftest.err >&5
6826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6827   (exit $ac_status); } &&
6828          { ac_try='test -z "$ac_c_werror_flag"
6829                          || test ! -s conftest.err'
6830   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6831   (eval $ac_try) 2>&5
6832   ac_status=$?
6833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6834   (exit $ac_status); }; } &&
6835          { ac_try='test -s conftest$ac_exeext'
6836   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6837   (eval $ac_try) 2>&5
6838   ac_status=$?
6839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6840   (exit $ac_status); }; }; then
6841   ac_cv_search_opendir="-l$ac_lib"
6842 break
6843 else
6844   echo "$as_me: failed program was:" >&5
6845 sed 's/^/| /' conftest.$ac_ext >&5
6846
6847 fi
6848 rm -f conftest.err conftest.$ac_objext \
6849       conftest$ac_exeext conftest.$ac_ext
6850   done
6851 fi
6852 LIBS=$ac_func_search_save_LIBS
6853 fi
6854 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6855 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6856 if test "$ac_cv_search_opendir" != no; then
6857   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6858
6859 fi
6860
6861 fi
6862
6863
6864
6865
6866
6867
6868
6869
6870
6871 for ac_func in strcasecmp select setenv putenv tcgetattr setlocale lstat lchown
6872 do
6873 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6874 echo "$as_me:$LINENO: checking for $ac_func" >&5
6875 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6876 if eval "test \"\${$as_ac_var+set}\" = set"; then
6877   echo $ECHO_N "(cached) $ECHO_C" >&6
6878 else
6879   cat >conftest.$ac_ext <<_ACEOF
6880 /* confdefs.h.  */
6881 _ACEOF
6882 cat confdefs.h >>conftest.$ac_ext
6883 cat >>conftest.$ac_ext <<_ACEOF
6884 /* end confdefs.h.  */
6885 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6886    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6887 #define $ac_func innocuous_$ac_func
6888
6889 /* System header to define __stub macros and hopefully few prototypes,
6890     which can conflict with char $ac_func (); below.
6891     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6892     <limits.h> exists even on freestanding compilers.  */
6893
6894 #ifdef __STDC__
6895 # include <limits.h>
6896 #else
6897 # include <assert.h>
6898 #endif
6899
6900 #undef $ac_func
6901
6902 /* Override any gcc2 internal prototype to avoid an error.  */
6903 #ifdef __cplusplus
6904 extern "C"
6905 {
6906 #endif
6907 /* We use char because int might match the return type of a gcc2
6908    builtin and then its argument prototype would still apply.  */
6909 char $ac_func ();
6910 /* The GNU C library defines this for functions which it implements
6911     to always fail with ENOSYS.  Some functions are actually named
6912     something starting with __ and the normal name is an alias.  */
6913 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6914 choke me
6915 #else
6916 char (*f) () = $ac_func;
6917 #endif
6918 #ifdef __cplusplus
6919 }
6920 #endif
6921
6922 int
6923 main ()
6924 {
6925 return f != $ac_func;
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   eval "$as_ac_var=yes"
6953 else
6954   echo "$as_me: failed program was:" >&5
6955 sed 's/^/| /' conftest.$ac_ext >&5
6956
6957 eval "$as_ac_var=no"
6958 fi
6959 rm -f conftest.err conftest.$ac_objext \
6960       conftest$ac_exeext conftest.$ac_ext
6961 fi
6962 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6963 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6964 if test `eval echo '${'$as_ac_var'}'` = yes; then
6965   cat >>confdefs.h <<_ACEOF
6966 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6967 _ACEOF
6968
6969 fi
6970 done
6971
6972
6973
6974 for ac_func in nanosleep nl_langinfo
6975 do
6976 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6977 echo "$as_me:$LINENO: checking for $ac_func" >&5
6978 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6979 if eval "test \"\${$as_ac_var+set}\" = set"; then
6980   echo $ECHO_N "(cached) $ECHO_C" >&6
6981 else
6982   cat >conftest.$ac_ext <<_ACEOF
6983 /* confdefs.h.  */
6984 _ACEOF
6985 cat confdefs.h >>conftest.$ac_ext
6986 cat >>conftest.$ac_ext <<_ACEOF
6987 /* end confdefs.h.  */
6988 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6989    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6990 #define $ac_func innocuous_$ac_func
6991
6992 /* System header to define __stub macros and hopefully few prototypes,
6993     which can conflict with char $ac_func (); below.
6994     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6995     <limits.h> exists even on freestanding compilers.  */
6996
6997 #ifdef __STDC__
6998 # include <limits.h>
6999 #else
7000 # include <assert.h>
7001 #endif
7002
7003 #undef $ac_func
7004
7005 /* Override any gcc2 internal prototype to avoid an error.  */
7006 #ifdef __cplusplus
7007 extern "C"
7008 {
7009 #endif
7010 /* We use char because int might match the return type of a gcc2
7011    builtin and then its argument prototype would still apply.  */
7012 char $ac_func ();
7013 /* The GNU C library defines this for functions which it implements
7014     to always fail with ENOSYS.  Some functions are actually named
7015     something starting with __ and the normal name is an alias.  */
7016 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7017 choke me
7018 #else
7019 char (*f) () = $ac_func;
7020 #endif
7021 #ifdef __cplusplus
7022 }
7023 #endif
7024
7025 int
7026 main ()
7027 {
7028 return f != $ac_func;
7029   ;
7030   return 0;
7031 }
7032 _ACEOF
7033 rm -f conftest.$ac_objext conftest$ac_exeext
7034 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7035   (eval $ac_link) 2>conftest.er1
7036   ac_status=$?
7037   grep -v '^ *+' conftest.er1 >conftest.err
7038   rm -f conftest.er1
7039   cat conftest.err >&5
7040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7041   (exit $ac_status); } &&
7042          { ac_try='test -z "$ac_c_werror_flag"
7043                          || test ! -s conftest.err'
7044   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7045   (eval $ac_try) 2>&5
7046   ac_status=$?
7047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7048   (exit $ac_status); }; } &&
7049          { ac_try='test -s conftest$ac_exeext'
7050   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7051   (eval $ac_try) 2>&5
7052   ac_status=$?
7053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7054   (exit $ac_status); }; }; then
7055   eval "$as_ac_var=yes"
7056 else
7057   echo "$as_me: failed program was:" >&5
7058 sed 's/^/| /' conftest.$ac_ext >&5
7059
7060 eval "$as_ac_var=no"
7061 fi
7062 rm -f conftest.err conftest.$ac_objext \
7063       conftest$ac_exeext conftest.$ac_ext
7064 fi
7065 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7066 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7067 if test `eval echo '${'$as_ac_var'}'` = yes; then
7068   cat >>confdefs.h <<_ACEOF
7069 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7070 _ACEOF
7071
7072 fi
7073 done
7074
7075
7076 for ac_header in varargs.h
7077 do
7078 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7079 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7080   echo "$as_me:$LINENO: checking for $ac_header" >&5
7081 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7082 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7083   echo $ECHO_N "(cached) $ECHO_C" >&6
7084 fi
7085 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7086 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7087 else
7088   # Is the header compilable?
7089 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7090 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7091 cat >conftest.$ac_ext <<_ACEOF
7092 /* confdefs.h.  */
7093 _ACEOF
7094 cat confdefs.h >>conftest.$ac_ext
7095 cat >>conftest.$ac_ext <<_ACEOF
7096 /* end confdefs.h.  */
7097 $ac_includes_default
7098 #include <$ac_header>
7099 _ACEOF
7100 rm -f conftest.$ac_objext
7101 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7102   (eval $ac_compile) 2>conftest.er1
7103   ac_status=$?
7104   grep -v '^ *+' conftest.er1 >conftest.err
7105   rm -f conftest.er1
7106   cat conftest.err >&5
7107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7108   (exit $ac_status); } &&
7109          { ac_try='test -z "$ac_c_werror_flag"
7110                          || test ! -s conftest.err'
7111   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7112   (eval $ac_try) 2>&5
7113   ac_status=$?
7114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7115   (exit $ac_status); }; } &&
7116          { ac_try='test -s conftest.$ac_objext'
7117   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7118   (eval $ac_try) 2>&5
7119   ac_status=$?
7120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7121   (exit $ac_status); }; }; then
7122   ac_header_compiler=yes
7123 else
7124   echo "$as_me: failed program was:" >&5
7125 sed 's/^/| /' conftest.$ac_ext >&5
7126
7127 ac_header_compiler=no
7128 fi
7129 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7130 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7131 echo "${ECHO_T}$ac_header_compiler" >&6
7132
7133 # Is the header present?
7134 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7135 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7136 cat >conftest.$ac_ext <<_ACEOF
7137 /* confdefs.h.  */
7138 _ACEOF
7139 cat confdefs.h >>conftest.$ac_ext
7140 cat >>conftest.$ac_ext <<_ACEOF
7141 /* end confdefs.h.  */
7142 #include <$ac_header>
7143 _ACEOF
7144 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7145   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7146   ac_status=$?
7147   grep -v '^ *+' conftest.er1 >conftest.err
7148   rm -f conftest.er1
7149   cat conftest.err >&5
7150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7151   (exit $ac_status); } >/dev/null; then
7152   if test -s conftest.err; then
7153     ac_cpp_err=$ac_c_preproc_warn_flag
7154     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7155   else
7156     ac_cpp_err=
7157   fi
7158 else
7159   ac_cpp_err=yes
7160 fi
7161 if test -z "$ac_cpp_err"; then
7162   ac_header_preproc=yes
7163 else
7164   echo "$as_me: failed program was:" >&5
7165 sed 's/^/| /' conftest.$ac_ext >&5
7166
7167   ac_header_preproc=no
7168 fi
7169 rm -f conftest.err conftest.$ac_ext
7170 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7171 echo "${ECHO_T}$ac_header_preproc" >&6
7172
7173 # So?  What about this header?
7174 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7175   yes:no: )
7176     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7177 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7178     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7179 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7180     ac_header_preproc=yes
7181     ;;
7182   no:yes:* )
7183     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7184 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7185     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7186 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7187     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7188 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7189     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7190 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7191     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7192 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7193     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7194 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7195     (
7196       cat <<\_ASBOX
7197 ## ------------------------------------------ ##
7198 ## Report this to the AC_PACKAGE_NAME lists.  ##
7199 ## ------------------------------------------ ##
7200 _ASBOX
7201     ) |
7202       sed "s/^/$as_me: WARNING:     /" >&2
7203     ;;
7204 esac
7205 echo "$as_me:$LINENO: checking for $ac_header" >&5
7206 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7207 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7208   echo $ECHO_N "(cached) $ECHO_C" >&6
7209 else
7210   eval "$as_ac_Header=\$ac_header_preproc"
7211 fi
7212 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7213 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7214
7215 fi
7216 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7217   cat >>confdefs.h <<_ACEOF
7218 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7219 _ACEOF
7220
7221 fi
7222
7223 done
7224
7225
7226 # End of readline/conio stuff
7227 # -----------------------------------------------------------------------
7228
7229 # -----------------------------------------------------------------------
7230 #  Check for Python support
7231 #
7232 echo "$as_me:$LINENO: checking for Python support" >&5
7233 echo $ECHO_N "checking for Python support... $ECHO_C" >&6
7234
7235 # Check whether --with-python or --without-python was given.
7236 if test "${with_python+set}" = set; then
7237   withval="$with_python"
7238
7239   PYTHON_INCDIR=
7240   PYTHON_LIBS=
7241   if test "$withval" != "no"; then
7242      if test "$withval" = "yes"; then
7243         for python_root in /usr /usr/local; do
7244           if test -f $python_root/include/python2.2/Python.h; then
7245              PYTHON_INCDIR=-I$python_root/include/python2.2
7246              PYTHON_LIBS="-L$python_root/lib/python2.2/config -lpython2.2"
7247              break
7248           elif test -f $python_root/include/python2.3/Python.h; then
7249              PYTHON_INCDIR=-I$python_root/include/python2.3
7250              PYTHON_LIBS="-L$python_root/lib/python2.3/config -lpython2.3"
7251              break
7252           elif test -f $python_root/include/python2.4/Python.h; then
7253              PYTHON_INCDIR=-I$python_root/include/python2.4
7254              PYTHON_LIBS="-L$python_root/lib/python2.4/config -lpython2.4"
7255              break
7256           fi
7257         done
7258         if test x$PYTHON_INCDIR = x; then
7259           if test -f $prefix/include/Python.h; then
7260              PYTHON_INCDIR=-I$prefix/include
7261              PYTHON_LIBS="-L$prefix/lib/config -lpython"
7262           else
7263            echo "$as_me:$LINENO: result: no" >&5
7264 echo "${ECHO_T}no" >&6
7265            { { echo "$as_me:$LINENO: error: Unable to find Python.h in standard locations" >&5
7266 echo "$as_me: error: Unable to find Python.h in standard locations" >&2;}
7267    { (exit 1); exit 1; }; }
7268           fi
7269         fi
7270      else
7271         if test -f $withval/Python.h; then
7272            PYTHON_INCDIR=-I$withval
7273            PYTHON_LIBS="-L$withval/config -lpython"
7274         elif test -f $withval/include/Python.h; then
7275            PYTHON_INCDIR=-I$withval/include
7276            PYTHON_LIBS="-L$withval/lib/config -lpython"
7277         elif test -f $withval/include/python/Python.h; then
7278            PYTHON_INCDIR=-I$withval/include/python
7279            PYTHON_LIBS="-L$withval/lib/python/config -lpython"
7280         else
7281            echo "$as_me:$LINENO: result: no" >&5
7282 echo "${ECHO_T}no" >&6
7283            { { echo "$as_me:$LINENO: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&5
7284 echo "$as_me: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&2;}
7285    { (exit 1); exit 1; }; }
7286         fi
7287      fi
7288      cat >>confdefs.h <<\_ACEOF
7289 #define HAVE_PYTHON 1
7290 _ACEOF
7291
7292      echo "$as_me:$LINENO: result: yes" >&5
7293 echo "${ECHO_T}yes" >&6
7294      support_python=yes
7295      { echo "$as_me:$LINENO: checking for more Python libs" >&5
7296 echo "$as_me: checking for more Python libs" >&6;}
7297      saved_LIBS="$LIBS"; LIBS=
7298      echo "$as_me:$LINENO: checking for library containing shm_open" >&5
7299 echo $ECHO_N "checking for library containing shm_open... $ECHO_C" >&6
7300 if test "${ac_cv_search_shm_open+set}" = set; then
7301   echo $ECHO_N "(cached) $ECHO_C" >&6
7302 else
7303   ac_func_search_save_LIBS=$LIBS
7304 ac_cv_search_shm_open=no
7305 cat >conftest.$ac_ext <<_ACEOF
7306 /* confdefs.h.  */
7307 _ACEOF
7308 cat confdefs.h >>conftest.$ac_ext
7309 cat >>conftest.$ac_ext <<_ACEOF
7310 /* end confdefs.h.  */
7311
7312 /* Override any gcc2 internal prototype to avoid an error.  */
7313 #ifdef __cplusplus
7314 extern "C"
7315 #endif
7316 /* We use char because int might match the return type of a gcc2
7317    builtin and then its argument prototype would still apply.  */
7318 char shm_open ();
7319 int
7320 main ()
7321 {
7322 shm_open ();
7323   ;
7324   return 0;
7325 }
7326 _ACEOF
7327 rm -f conftest.$ac_objext conftest$ac_exeext
7328 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7329   (eval $ac_link) 2>conftest.er1
7330   ac_status=$?
7331   grep -v '^ *+' conftest.er1 >conftest.err
7332   rm -f conftest.er1
7333   cat conftest.err >&5
7334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7335   (exit $ac_status); } &&
7336          { ac_try='test -z "$ac_c_werror_flag"
7337                          || test ! -s conftest.err'
7338   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7339   (eval $ac_try) 2>&5
7340   ac_status=$?
7341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7342   (exit $ac_status); }; } &&
7343          { ac_try='test -s conftest$ac_exeext'
7344   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7345   (eval $ac_try) 2>&5
7346   ac_status=$?
7347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7348   (exit $ac_status); }; }; then
7349   ac_cv_search_shm_open="none required"
7350 else
7351   echo "$as_me: failed program was:" >&5
7352 sed 's/^/| /' conftest.$ac_ext >&5
7353
7354 fi
7355 rm -f conftest.err conftest.$ac_objext \
7356       conftest$ac_exeext conftest.$ac_ext
7357 if test "$ac_cv_search_shm_open" = no; then
7358   for ac_lib in rt; do
7359     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7360     cat >conftest.$ac_ext <<_ACEOF
7361 /* confdefs.h.  */
7362 _ACEOF
7363 cat confdefs.h >>conftest.$ac_ext
7364 cat >>conftest.$ac_ext <<_ACEOF
7365 /* end confdefs.h.  */
7366
7367 /* Override any gcc2 internal prototype to avoid an error.  */
7368 #ifdef __cplusplus
7369 extern "C"
7370 #endif
7371 /* We use char because int might match the return type of a gcc2
7372    builtin and then its argument prototype would still apply.  */
7373 char shm_open ();
7374 int
7375 main ()
7376 {
7377 shm_open ();
7378   ;
7379   return 0;
7380 }
7381 _ACEOF
7382 rm -f conftest.$ac_objext conftest$ac_exeext
7383 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7384   (eval $ac_link) 2>conftest.er1
7385   ac_status=$?
7386   grep -v '^ *+' conftest.er1 >conftest.err
7387   rm -f conftest.er1
7388   cat conftest.err >&5
7389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7390   (exit $ac_status); } &&
7391          { ac_try='test -z "$ac_c_werror_flag"
7392                          || test ! -s conftest.err'
7393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7394   (eval $ac_try) 2>&5
7395   ac_status=$?
7396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7397   (exit $ac_status); }; } &&
7398          { ac_try='test -s conftest$ac_exeext'
7399   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7400   (eval $ac_try) 2>&5
7401   ac_status=$?
7402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7403   (exit $ac_status); }; }; then
7404   ac_cv_search_shm_open="-l$ac_lib"
7405 break
7406 else
7407   echo "$as_me: failed program was:" >&5
7408 sed 's/^/| /' conftest.$ac_ext >&5
7409
7410 fi
7411 rm -f conftest.err conftest.$ac_objext \
7412       conftest$ac_exeext conftest.$ac_ext
7413   done
7414 fi
7415 LIBS=$ac_func_search_save_LIBS
7416 fi
7417 echo "$as_me:$LINENO: result: $ac_cv_search_shm_open" >&5
7418 echo "${ECHO_T}$ac_cv_search_shm_open" >&6
7419 if test "$ac_cv_search_shm_open" != no; then
7420   test "$ac_cv_search_shm_open" = "none required" || LIBS="$ac_cv_search_shm_open $LIBS"
7421
7422 fi
7423
7424
7425 echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
7426 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
7427 if test "${ac_cv_lib_util_openpty+set}" = set; then
7428   echo $ECHO_N "(cached) $ECHO_C" >&6
7429 else
7430   ac_check_lib_save_LIBS=$LIBS
7431 LIBS="-lutil  $LIBS"
7432 cat >conftest.$ac_ext <<_ACEOF
7433 /* confdefs.h.  */
7434 _ACEOF
7435 cat confdefs.h >>conftest.$ac_ext
7436 cat >>conftest.$ac_ext <<_ACEOF
7437 /* end confdefs.h.  */
7438
7439 /* Override any gcc2 internal prototype to avoid an error.  */
7440 #ifdef __cplusplus
7441 extern "C"
7442 #endif
7443 /* We use char because int might match the return type of a gcc2
7444    builtin and then its argument prototype would still apply.  */
7445 char openpty ();
7446 int
7447 main ()
7448 {
7449 openpty ();
7450   ;
7451   return 0;
7452 }
7453 _ACEOF
7454 rm -f conftest.$ac_objext conftest$ac_exeext
7455 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7456   (eval $ac_link) 2>conftest.er1
7457   ac_status=$?
7458   grep -v '^ *+' conftest.er1 >conftest.err
7459   rm -f conftest.er1
7460   cat conftest.err >&5
7461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7462   (exit $ac_status); } &&
7463          { ac_try='test -z "$ac_c_werror_flag"
7464                          || test ! -s conftest.err'
7465   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7466   (eval $ac_try) 2>&5
7467   ac_status=$?
7468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7469   (exit $ac_status); }; } &&
7470          { ac_try='test -s conftest$ac_exeext'
7471   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7472   (eval $ac_try) 2>&5
7473   ac_status=$?
7474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7475   (exit $ac_status); }; }; then
7476   ac_cv_lib_util_openpty=yes
7477 else
7478   echo "$as_me: failed program was:" >&5
7479 sed 's/^/| /' conftest.$ac_ext >&5
7480
7481 ac_cv_lib_util_openpty=no
7482 fi
7483 rm -f conftest.err conftest.$ac_objext \
7484       conftest$ac_exeext conftest.$ac_ext
7485 LIBS=$ac_check_lib_save_LIBS
7486 fi
7487 echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
7488 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
7489 if test $ac_cv_lib_util_openpty = yes; then
7490   cat >>confdefs.h <<_ACEOF
7491 #define HAVE_LIBUTIL 1
7492 _ACEOF
7493
7494   LIBS="-lutil $LIBS"
7495
7496 fi
7497
7498      PYTHON_LIBS="$PYTHON_LIBS $LIBS"
7499      LIBS="$saved_LIBS"
7500   else
7501      echo "$as_me:$LINENO: result: no" >&5
7502 echo "${ECHO_T}no" >&6
7503   fi
7504
7505 else
7506
7507   echo "$as_me:$LINENO: result: no" >&5
7508 echo "${ECHO_T}no" >&6
7509
7510 fi;
7511
7512
7513
7514
7515 #
7516 # Find where sockets are (especially for Solaris)
7517 # Do this before the TCP Wrappers test since tcp wrappers
7518 # uses the socket library and some linkers are stupid.
7519 #
7520 echo "$as_me:$LINENO: checking for socket" >&5
7521 echo $ECHO_N "checking for socket... $ECHO_C" >&6
7522 if test "${ac_cv_func_socket+set}" = set; then
7523   echo $ECHO_N "(cached) $ECHO_C" >&6
7524 else
7525   cat >conftest.$ac_ext <<_ACEOF
7526 /* confdefs.h.  */
7527 _ACEOF
7528 cat confdefs.h >>conftest.$ac_ext
7529 cat >>conftest.$ac_ext <<_ACEOF
7530 /* end confdefs.h.  */
7531 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
7532    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7533 #define socket innocuous_socket
7534
7535 /* System header to define __stub macros and hopefully few prototypes,
7536     which can conflict with char socket (); below.
7537     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7538     <limits.h> exists even on freestanding compilers.  */
7539
7540 #ifdef __STDC__
7541 # include <limits.h>
7542 #else
7543 # include <assert.h>
7544 #endif
7545
7546 #undef socket
7547
7548 /* Override any gcc2 internal prototype to avoid an error.  */
7549 #ifdef __cplusplus
7550 extern "C"
7551 {
7552 #endif
7553 /* We use char because int might match the return type of a gcc2
7554    builtin and then its argument prototype would still apply.  */
7555 char socket ();
7556 /* The GNU C library defines this for functions which it implements
7557     to always fail with ENOSYS.  Some functions are actually named
7558     something starting with __ and the normal name is an alias.  */
7559 #if defined (__stub_socket) || defined (__stub___socket)
7560 choke me
7561 #else
7562 char (*f) () = socket;
7563 #endif
7564 #ifdef __cplusplus
7565 }
7566 #endif
7567
7568 int
7569 main ()
7570 {
7571 return f != socket;
7572   ;
7573   return 0;
7574 }
7575 _ACEOF
7576 rm -f conftest.$ac_objext conftest$ac_exeext
7577 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7578   (eval $ac_link) 2>conftest.er1
7579   ac_status=$?
7580   grep -v '^ *+' conftest.er1 >conftest.err
7581   rm -f conftest.er1
7582   cat conftest.err >&5
7583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7584   (exit $ac_status); } &&
7585          { ac_try='test -z "$ac_c_werror_flag"
7586                          || test ! -s conftest.err'
7587   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7588   (eval $ac_try) 2>&5
7589   ac_status=$?
7590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7591   (exit $ac_status); }; } &&
7592          { ac_try='test -s conftest$ac_exeext'
7593   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7594   (eval $ac_try) 2>&5
7595   ac_status=$?
7596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7597   (exit $ac_status); }; }; then
7598   ac_cv_func_socket=yes
7599 else
7600   echo "$as_me: failed program was:" >&5
7601 sed 's/^/| /' conftest.$ac_ext >&5
7602
7603 ac_cv_func_socket=no
7604 fi
7605 rm -f conftest.err conftest.$ac_objext \
7606       conftest$ac_exeext conftest.$ac_ext
7607 fi
7608 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
7609 echo "${ECHO_T}$ac_cv_func_socket" >&6
7610 if test $ac_cv_func_socket = yes; then
7611   echo "$as_me:$LINENO: result: using libc's socket" >&5
7612 echo "${ECHO_T}using libc's socket" >&6
7613 else
7614
7615 echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
7616 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6
7617 if test "${ac_cv_lib_xnet_socket+set}" = set; then
7618   echo $ECHO_N "(cached) $ECHO_C" >&6
7619 else
7620   ac_check_lib_save_LIBS=$LIBS
7621 LIBS="-lxnet  $LIBS"
7622 cat >conftest.$ac_ext <<_ACEOF
7623 /* confdefs.h.  */
7624 _ACEOF
7625 cat confdefs.h >>conftest.$ac_ext
7626 cat >>conftest.$ac_ext <<_ACEOF
7627 /* end confdefs.h.  */
7628
7629 /* Override any gcc2 internal prototype to avoid an error.  */
7630 #ifdef __cplusplus
7631 extern "C"
7632 #endif
7633 /* We use char because int might match the return type of a gcc2
7634    builtin and then its argument prototype would still apply.  */
7635 char socket ();
7636 int
7637 main ()
7638 {
7639 socket ();
7640   ;
7641   return 0;
7642 }
7643 _ACEOF
7644 rm -f conftest.$ac_objext conftest$ac_exeext
7645 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7646   (eval $ac_link) 2>conftest.er1
7647   ac_status=$?
7648   grep -v '^ *+' conftest.er1 >conftest.err
7649   rm -f conftest.er1
7650   cat conftest.err >&5
7651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7652   (exit $ac_status); } &&
7653          { ac_try='test -z "$ac_c_werror_flag"
7654                          || test ! -s conftest.err'
7655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7656   (eval $ac_try) 2>&5
7657   ac_status=$?
7658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7659   (exit $ac_status); }; } &&
7660          { ac_try='test -s conftest$ac_exeext'
7661   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7662   (eval $ac_try) 2>&5
7663   ac_status=$?
7664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7665   (exit $ac_status); }; }; then
7666   ac_cv_lib_xnet_socket=yes
7667 else
7668   echo "$as_me: failed program was:" >&5
7669 sed 's/^/| /' conftest.$ac_ext >&5
7670
7671 ac_cv_lib_xnet_socket=no
7672 fi
7673 rm -f conftest.err conftest.$ac_objext \
7674       conftest$ac_exeext conftest.$ac_ext
7675 LIBS=$ac_check_lib_save_LIBS
7676 fi
7677 echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
7678 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6
7679 if test $ac_cv_lib_xnet_socket = yes; then
7680   cat >>confdefs.h <<_ACEOF
7681 #define HAVE_LIBXNET 1
7682 _ACEOF
7683
7684   LIBS="-lxnet $LIBS"
7685
7686 fi
7687
7688
7689 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
7690 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
7691 if test "${ac_cv_lib_socket_socket+set}" = set; then
7692   echo $ECHO_N "(cached) $ECHO_C" >&6
7693 else
7694   ac_check_lib_save_LIBS=$LIBS
7695 LIBS="-lsocket  $LIBS"
7696 cat >conftest.$ac_ext <<_ACEOF
7697 /* confdefs.h.  */
7698 _ACEOF
7699 cat confdefs.h >>conftest.$ac_ext
7700 cat >>conftest.$ac_ext <<_ACEOF
7701 /* end confdefs.h.  */
7702
7703 /* Override any gcc2 internal prototype to avoid an error.  */
7704 #ifdef __cplusplus
7705 extern "C"
7706 #endif
7707 /* We use char because int might match the return type of a gcc2
7708    builtin and then its argument prototype would still apply.  */
7709 char socket ();
7710 int
7711 main ()
7712 {
7713 socket ();
7714   ;
7715   return 0;
7716 }
7717 _ACEOF
7718 rm -f conftest.$ac_objext conftest$ac_exeext
7719 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7720   (eval $ac_link) 2>conftest.er1
7721   ac_status=$?
7722   grep -v '^ *+' conftest.er1 >conftest.err
7723   rm -f conftest.er1
7724   cat conftest.err >&5
7725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7726   (exit $ac_status); } &&
7727          { ac_try='test -z "$ac_c_werror_flag"
7728                          || test ! -s conftest.err'
7729   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7730   (eval $ac_try) 2>&5
7731   ac_status=$?
7732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7733   (exit $ac_status); }; } &&
7734          { ac_try='test -s conftest$ac_exeext'
7735   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7736   (eval $ac_try) 2>&5
7737   ac_status=$?
7738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7739   (exit $ac_status); }; }; then
7740   ac_cv_lib_socket_socket=yes
7741 else
7742   echo "$as_me: failed program was:" >&5
7743 sed 's/^/| /' conftest.$ac_ext >&5
7744
7745 ac_cv_lib_socket_socket=no
7746 fi
7747 rm -f conftest.err conftest.$ac_objext \
7748       conftest$ac_exeext conftest.$ac_ext
7749 LIBS=$ac_check_lib_save_LIBS
7750 fi
7751 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
7752 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
7753 if test $ac_cv_lib_socket_socket = yes; then
7754   cat >>confdefs.h <<_ACEOF
7755 #define HAVE_LIBSOCKET 1
7756 _ACEOF
7757
7758   LIBS="-lsocket $LIBS"
7759
7760 fi
7761
7762
7763 echo "$as_me:$LINENO: checking for socket in -linet" >&5
7764 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
7765 if test "${ac_cv_lib_inet_socket+set}" = set; then
7766   echo $ECHO_N "(cached) $ECHO_C" >&6
7767 else
7768   ac_check_lib_save_LIBS=$LIBS
7769 LIBS="-linet  $LIBS"
7770 cat >conftest.$ac_ext <<_ACEOF
7771 /* confdefs.h.  */
7772 _ACEOF
7773 cat confdefs.h >>conftest.$ac_ext
7774 cat >>conftest.$ac_ext <<_ACEOF
7775 /* end confdefs.h.  */
7776
7777 /* Override any gcc2 internal prototype to avoid an error.  */
7778 #ifdef __cplusplus
7779 extern "C"
7780 #endif
7781 /* We use char because int might match the return type of a gcc2
7782    builtin and then its argument prototype would still apply.  */
7783 char socket ();
7784 int
7785 main ()
7786 {
7787 socket ();
7788   ;
7789   return 0;
7790 }
7791 _ACEOF
7792 rm -f conftest.$ac_objext conftest$ac_exeext
7793 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7794   (eval $ac_link) 2>conftest.er1
7795   ac_status=$?
7796   grep -v '^ *+' conftest.er1 >conftest.err
7797   rm -f conftest.er1
7798   cat conftest.err >&5
7799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7800   (exit $ac_status); } &&
7801          { ac_try='test -z "$ac_c_werror_flag"
7802                          || test ! -s conftest.err'
7803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7804   (eval $ac_try) 2>&5
7805   ac_status=$?
7806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7807   (exit $ac_status); }; } &&
7808          { ac_try='test -s conftest$ac_exeext'
7809   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7810   (eval $ac_try) 2>&5
7811   ac_status=$?
7812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7813   (exit $ac_status); }; }; then
7814   ac_cv_lib_inet_socket=yes
7815 else
7816   echo "$as_me: failed program was:" >&5
7817 sed 's/^/| /' conftest.$ac_ext >&5
7818
7819 ac_cv_lib_inet_socket=no
7820 fi
7821 rm -f conftest.err conftest.$ac_objext \
7822       conftest$ac_exeext conftest.$ac_ext
7823 LIBS=$ac_check_lib_save_LIBS
7824 fi
7825 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
7826 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
7827 if test $ac_cv_lib_inet_socket = yes; then
7828   cat >>confdefs.h <<_ACEOF
7829 #define HAVE_LIBINET 1
7830 _ACEOF
7831
7832   LIBS="-linet $LIBS"
7833
7834 fi
7835
7836 fi
7837
7838
7839
7840 # -----------------------------------------------------------
7841 # Check whether user wants TCP wrappers support (default off)
7842 # -----------------------------------------------------------
7843 TCPW_MSG="no"
7844
7845 # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
7846 if test "${with_tcp_wrappers+set}" = set; then
7847   withval="$with_tcp_wrappers"
7848
7849     if test "x$withval" != "xno" ; then
7850        saved_LIBS="$LIBS"
7851        LIBS="$saved_LIBS -lwrap"
7852        echo "$as_me:$LINENO: checking for libwrap" >&5
7853 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6
7854        cat >conftest.$ac_ext <<_ACEOF
7855 /* confdefs.h.  */
7856 _ACEOF
7857 cat confdefs.h >>conftest.$ac_ext
7858 cat >>conftest.$ac_ext <<_ACEOF
7859 /* end confdefs.h.  */
7860  #include <tcpd.h>
7861              int deny_severity = 0;
7862              int allow_severity = 0;
7863              struct request_info *req;
7864 int
7865 main ()
7866 {
7867  hosts_access(req);
7868   ;
7869   return 0;
7870 }
7871 _ACEOF
7872 rm -f conftest.$ac_objext conftest$ac_exeext
7873 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7874   (eval $ac_link) 2>conftest.er1
7875   ac_status=$?
7876   grep -v '^ *+' conftest.er1 >conftest.err
7877   rm -f conftest.er1
7878   cat conftest.err >&5
7879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7880   (exit $ac_status); } &&
7881          { ac_try='test -z "$ac_c_werror_flag"
7882                          || test ! -s conftest.err'
7883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7884   (eval $ac_try) 2>&5
7885   ac_status=$?
7886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7887   (exit $ac_status); }; } &&
7888          { ac_try='test -s conftest$ac_exeext'
7889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7890   (eval $ac_try) 2>&5
7891   ac_status=$?
7892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7893   (exit $ac_status); }; }; then
7894
7895             echo "$as_me:$LINENO: result: yes" >&5
7896 echo "${ECHO_T}yes" >&6
7897             cat >>confdefs.h <<\_ACEOF
7898 #define HAVE_LIBWRAP 1
7899 _ACEOF
7900
7901             TCPW_MSG="yes"
7902
7903 else
7904   echo "$as_me: failed program was:" >&5
7905 sed 's/^/| /' conftest.$ac_ext >&5
7906
7907
7908             LIBS="$saved_LIBS -lwrap -lnsl"
7909             cat >conftest.$ac_ext <<_ACEOF
7910 /* confdefs.h.  */
7911 _ACEOF
7912 cat confdefs.h >>conftest.$ac_ext
7913 cat >>conftest.$ac_ext <<_ACEOF
7914 /* end confdefs.h.  */
7915  #include <tcpd.h>
7916                  int deny_severity = 0;
7917                  int allow_severity = 0;
7918                  struct request_info *req;
7919 int
7920 main ()
7921 {
7922  hosts_access(req);
7923   ;
7924   return 0;
7925 }
7926 _ACEOF
7927 rm -f conftest.$ac_objext conftest$ac_exeext
7928 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7929   (eval $ac_link) 2>conftest.er1
7930   ac_status=$?
7931   grep -v '^ *+' conftest.er1 >conftest.err
7932   rm -f conftest.er1
7933   cat conftest.err >&5
7934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7935   (exit $ac_status); } &&
7936          { ac_try='test -z "$ac_c_werror_flag"
7937                          || test ! -s conftest.err'
7938   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7939   (eval $ac_try) 2>&5
7940   ac_status=$?
7941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7942   (exit $ac_status); }; } &&
7943          { ac_try='test -s conftest$ac_exeext'
7944   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7945   (eval $ac_try) 2>&5
7946   ac_status=$?
7947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7948   (exit $ac_status); }; }; then
7949
7950                  echo "$as_me:$LINENO: result: yes" >&5
7951 echo "${ECHO_T}yes" >&6
7952                  cat >>confdefs.h <<\_ACEOF
7953 #define HAVE_LIBWRAP 1
7954 _ACEOF
7955
7956                  TCPW_MSG="yes"
7957
7958 else
7959   echo "$as_me: failed program was:" >&5
7960 sed 's/^/| /' conftest.$ac_ext >&5
7961
7962 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
7963 echo "$as_me: error: *** libwrap missing" >&2;}
7964    { (exit 1); exit 1; }; }
7965
7966 fi
7967 rm -f conftest.err conftest.$ac_objext \
7968       conftest$ac_exeext conftest.$ac_ext
7969
7970 fi
7971 rm -f conftest.err conftest.$ac_objext \
7972       conftest$ac_exeext conftest.$ac_ext
7973     fi
7974
7975
7976 fi;
7977
7978 # -----------------------------------------------------------
7979 # Check whether OpenSSL is available
7980 # -----------------------------------------------------------
7981 echo "$as_me:$LINENO: checking for OpenSSL" >&5
7982 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6
7983
7984 # Check whether --with-openssl or --without-openssl was given.
7985 if test "${with_openssl+set}" = set; then
7986   withval="$with_openssl"
7987   with_openssl_directory=${withval}
7988 fi;
7989
7990 if test "x$with_openssl_directory" != "x"; then
7991         OPENSSL_LIBS="-lssl -lcrypto"
7992         OPENSSL_INC=""
7993
7994         if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
7995                 OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
7996                 OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
7997         fi
7998
7999         saved_LIBS="$LIBS"
8000         saved_CFLAGS="$CFLAGS"
8001         LIBS="$saved_LIBS $OPENSSL_LIBS"
8002         CFLAGS="$saved_CFLAGS $OPENSSL_INC"
8003
8004         cat >conftest.$ac_ext <<_ACEOF
8005 /* confdefs.h.  */
8006 _ACEOF
8007 cat confdefs.h >>conftest.$ac_ext
8008 cat >>conftest.$ac_ext <<_ACEOF
8009 /* end confdefs.h.  */
8010  #include <openssl/ssl.h>
8011 int
8012 main ()
8013 {
8014  CRYPTO_set_id_callback(NULL);
8015   ;
8016   return 0;
8017 }
8018 _ACEOF
8019 rm -f conftest.$ac_objext conftest$ac_exeext
8020 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8021   (eval $ac_link) 2>conftest.er1
8022   ac_status=$?
8023   grep -v '^ *+' conftest.er1 >conftest.err
8024   rm -f conftest.er1
8025   cat conftest.err >&5
8026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8027   (exit $ac_status); } &&
8028          { ac_try='test -z "$ac_c_werror_flag"
8029                          || test ! -s conftest.err'
8030   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8031   (eval $ac_try) 2>&5
8032   ac_status=$?
8033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8034   (exit $ac_status); }; } &&
8035          { ac_try='test -s conftest$ac_exeext'
8036   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8037   (eval $ac_try) 2>&5
8038   ac_status=$?
8039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8040   (exit $ac_status); }; }; then
8041    support_tls="yes"
8042 else
8043   echo "$as_me: failed program was:" >&5
8044 sed 's/^/| /' conftest.$ac_ext >&5
8045
8046  support_tls="no"
8047
8048 fi
8049 rm -f conftest.err conftest.$ac_objext \
8050       conftest$ac_exeext conftest.$ac_ext
8051
8052         LIBS="$saved_LIBS"
8053         CFLAGS="$saved_CFLAGS"
8054
8055         if test "$support_tls" = "yes"; then
8056
8057 cat >>confdefs.h <<\_ACEOF
8058 #define HAVE_OPENSSL 1
8059 _ACEOF
8060
8061
8062 cat >>confdefs.h <<\_ACEOF
8063 #define HAVE_TLS 1
8064 _ACEOF
8065
8066         fi
8067 else
8068         support_tls="no"
8069         OPENSSL_LIBS=""
8070         OPENSSL_INC=""
8071 fi
8072
8073 echo "$as_me:$LINENO: result: $support_tls" >&5
8074 echo "${ECHO_T}$support_tls" >&6
8075
8076
8077
8078
8079 # -----------------------------------------------------------
8080 # Python and OpenSSL are using dlopen
8081 # -----------------------------------------------------------
8082
8083 if test "$support_python" = "yes" -o "$support_tls" = "yes"; then
8084    echo "$as_me:$LINENO: checking for library containing dlopen" >&5
8085 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
8086 if test "${ac_cv_search_dlopen+set}" = set; then
8087   echo $ECHO_N "(cached) $ECHO_C" >&6
8088 else
8089   ac_func_search_save_LIBS=$LIBS
8090 ac_cv_search_dlopen=no
8091 cat >conftest.$ac_ext <<_ACEOF
8092 /* confdefs.h.  */
8093 _ACEOF
8094 cat confdefs.h >>conftest.$ac_ext
8095 cat >>conftest.$ac_ext <<_ACEOF
8096 /* end confdefs.h.  */
8097
8098 /* Override any gcc2 internal prototype to avoid an error.  */
8099 #ifdef __cplusplus
8100 extern "C"
8101 #endif
8102 /* We use char because int might match the return type of a gcc2
8103    builtin and then its argument prototype would still apply.  */
8104 char dlopen ();
8105 int
8106 main ()
8107 {
8108 dlopen ();
8109   ;
8110   return 0;
8111 }
8112 _ACEOF
8113 rm -f conftest.$ac_objext conftest$ac_exeext
8114 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8115   (eval $ac_link) 2>conftest.er1
8116   ac_status=$?
8117   grep -v '^ *+' conftest.er1 >conftest.err
8118   rm -f conftest.er1
8119   cat conftest.err >&5
8120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8121   (exit $ac_status); } &&
8122          { ac_try='test -z "$ac_c_werror_flag"
8123                          || test ! -s conftest.err'
8124   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8125   (eval $ac_try) 2>&5
8126   ac_status=$?
8127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8128   (exit $ac_status); }; } &&
8129          { ac_try='test -s conftest$ac_exeext'
8130   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8131   (eval $ac_try) 2>&5
8132   ac_status=$?
8133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8134   (exit $ac_status); }; }; then
8135   ac_cv_search_dlopen="none required"
8136 else
8137   echo "$as_me: failed program was:" >&5
8138 sed 's/^/| /' conftest.$ac_ext >&5
8139
8140 fi
8141 rm -f conftest.err conftest.$ac_objext \
8142       conftest$ac_exeext conftest.$ac_ext
8143 if test "$ac_cv_search_dlopen" = no; then
8144   for ac_lib in dl; do
8145     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8146     cat >conftest.$ac_ext <<_ACEOF
8147 /* confdefs.h.  */
8148 _ACEOF
8149 cat confdefs.h >>conftest.$ac_ext
8150 cat >>conftest.$ac_ext <<_ACEOF
8151 /* end confdefs.h.  */
8152
8153 /* Override any gcc2 internal prototype to avoid an error.  */
8154 #ifdef __cplusplus
8155 extern "C"
8156 #endif
8157 /* We use char because int might match the return type of a gcc2
8158    builtin and then its argument prototype would still apply.  */
8159 char dlopen ();
8160 int
8161 main ()
8162 {
8163 dlopen ();
8164   ;
8165   return 0;
8166 }
8167 _ACEOF
8168 rm -f conftest.$ac_objext conftest$ac_exeext
8169 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8170   (eval $ac_link) 2>conftest.er1
8171   ac_status=$?
8172   grep -v '^ *+' conftest.er1 >conftest.err
8173   rm -f conftest.er1
8174   cat conftest.err >&5
8175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8176   (exit $ac_status); } &&
8177          { ac_try='test -z "$ac_c_werror_flag"
8178                          || test ! -s conftest.err'
8179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8180   (eval $ac_try) 2>&5
8181   ac_status=$?
8182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8183   (exit $ac_status); }; } &&
8184          { ac_try='test -s conftest$ac_exeext'
8185   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8186   (eval $ac_try) 2>&5
8187   ac_status=$?
8188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8189   (exit $ac_status); }; }; then
8190   ac_cv_search_dlopen="-l$ac_lib"
8191 break
8192 else
8193   echo "$as_me: failed program was:" >&5
8194 sed 's/^/| /' conftest.$ac_ext >&5
8195
8196 fi
8197 rm -f conftest.err conftest.$ac_objext \
8198       conftest$ac_exeext conftest.$ac_ext
8199   done
8200 fi
8201 LIBS=$ac_func_search_save_LIBS
8202 fi
8203 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
8204 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
8205 if test "$ac_cv_search_dlopen" != no; then
8206   test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
8207
8208 fi
8209
8210 fi
8211
8212 # ------------------------------------------
8213 # Where to place working dir
8214 # ------------------------------------------
8215 working_dir=`eval echo ${prefix}/var/bacula/working`
8216
8217 # Check whether --with-working-dir or --without-working-dir was given.
8218 if test "${with_working_dir+set}" = set; then
8219   withval="$with_working_dir"
8220
8221        if test "x$withval" != "xno" ; then
8222               working_dir=$withval
8223        fi
8224
8225
8226 fi;
8227
8228
8229
8230
8231 # ------------------------------------------
8232 # Where to place scriptdir (script files)
8233 # ------------------------------------------
8234 scriptdir=`eval echo ${sysconfdir}`
8235
8236 # Check whether --with-scriptdir or --without-scriptdir was given.
8237 if test "${with_scriptdir+set}" = set; then
8238   withval="$with_scriptdir"
8239
8240        if test "x$withval" != "xno" ; then
8241               scriptdir=$withval
8242        fi
8243
8244
8245 fi;
8246
8247
8248
8249
8250 # ------------------------------------------
8251 # Where to send dump email
8252 # ------------------------------------------
8253 dump_email=root@localhost
8254
8255 # Check whether --with-dump-email or --without-dump-email was given.
8256 if test "${with_dump_email+set}" = set; then
8257   withval="$with_dump_email"
8258
8259        if test "x$withval" != "xno" ; then
8260               dump_email=$withval
8261        fi
8262
8263
8264 fi;
8265
8266
8267
8268 # ------------------------------------------
8269 # Where to send job email
8270 # ------------------------------------------
8271 job_email=root@localhost
8272
8273 # Check whether --with-job-email or --without-job-email was given.
8274 if test "${with_job_email+set}" = set; then
8275   withval="$with_job_email"
8276
8277        if test "x$withval" != "xno" ; then
8278               job_email=$withval
8279        fi
8280
8281
8282 fi;
8283
8284
8285
8286 # ------------------------------------------
8287 # Where to find smtp host
8288 # ------------------------------------------
8289 smtp_host=localhost
8290
8291 # Check whether --with-smtp_host or --without-smtp_host was given.
8292 if test "${with_smtp_host+set}" = set; then
8293   withval="$with_smtp_host"
8294
8295        if test "x$withval" != "xno" ; then
8296               smtp_host=$withval
8297        fi
8298
8299
8300 fi;
8301
8302
8303
8304
8305 # ------------------------------------
8306 # Where to place pid files
8307 # ------------------------------------
8308 piddir=/var/run
8309
8310 # Check whether --with-pid-dir or --without-pid-dir was given.
8311 if test "${with_pid_dir+set}" = set; then
8312   withval="$with_pid_dir"
8313
8314         if test "x$withval" != "xno" ; then
8315             piddir=$withval
8316         fi
8317
8318
8319 fi;
8320
8321 cat >>confdefs.h <<_ACEOF
8322 #define _PATH_BACULA_PIDDIR "$piddir"
8323 _ACEOF
8324
8325
8326
8327
8328 # ------------------------------------
8329 # Where to place subsys "lock file"
8330 # ------------------------------------
8331 subsysdir=/var/run/subsys
8332
8333 # Check whether --with-subsys-dir or --without-subsys-dir was given.
8334 if test "${with_subsys_dir+set}" = set; then
8335   withval="$with_subsys_dir"
8336
8337         if test "x$withval" != "xno" ; then
8338             subsysdir=$withval
8339         fi
8340
8341
8342 fi;
8343
8344
8345
8346
8347
8348 # ------------------------------------
8349 # Where to start assigning ports
8350 # ------------------------------------
8351 baseport=9101
8352
8353 # Check whether --with-baseport or --without-baseport was given.
8354 if test "${with_baseport+set}" = set; then
8355   withval="$with_baseport"
8356
8357         if test "x$withval" != "xno" ; then
8358              baseport=$withval
8359         fi
8360
8361
8362 fi;
8363
8364
8365 dir_port=`expr $baseport`
8366 fd_port=`expr $baseport + 1`
8367 sd_port=`expr $fd_port + 1`
8368
8369
8370
8371
8372
8373
8374 # ------------------------------------------
8375 # Generate passwords
8376 # ------------------------------------------
8377 dir_password=
8378
8379 # Check whether --with-dir-password or --without-dir-password was given.
8380 if test "${with_dir_password+set}" = set; then
8381   withval="$with_dir_password"
8382
8383        if test "x$withval" != "xno" ; then
8384            dir_password=$withval
8385        fi
8386
8387
8388 fi;
8389
8390 if test "x$dir_password" = "x" ; then
8391    if test "x$OPENSSL" = "xnone" ; then
8392       key=`autoconf/randpass 33`
8393    else
8394       key=`openssl rand -base64 33`
8395    fi
8396    dir_password=$key
8397 fi
8398
8399 fd_password=
8400
8401 # Check whether --with-fd-password or --without-fd-password was given.
8402 if test "${with_fd_password+set}" = set; then
8403   withval="$with_fd_password"
8404
8405        if test "x$withval" != "xno" ; then
8406            fd_password=$withval
8407        fi
8408
8409
8410 fi;
8411
8412 if test "x$fd_password" = "x" ; then
8413    if test "x$OPENSSL" = "xnone" ; then
8414       key=`autoconf/randpass 37`
8415    else
8416       key=`openssl rand -base64 33`
8417    fi
8418    fd_password=$key
8419 fi
8420
8421 sd_password=
8422
8423 # Check whether --with-sd-password or --without-sd-password was given.
8424 if test "${with_sd_password+set}" = set; then
8425   withval="$with_sd_password"
8426
8427        if test "x$withval" != "xno" ; then
8428            sd_password=$withval
8429        fi
8430
8431
8432 fi;
8433
8434 if test "x$sd_password" = "x" ; then
8435    if test "x$OPENSSL" = "xnone" ; then
8436       key=`autoconf/randpass 41`
8437    else
8438       key=`openssl rand -base64 33`
8439    fi
8440    sd_password=$key
8441 fi
8442
8443 mon_dir_password=
8444
8445 # Check whether --with-mon-dir-password or --without-mon-dir-password was given.
8446 if test "${with_mon_dir_password+set}" = set; then
8447   withval="$with_mon_dir_password"
8448
8449        if test "x$withval" != "xno" ; then
8450            mon_dir_password=$withval
8451        fi
8452
8453
8454 fi;
8455
8456 if test "x$mon_dir_password" = "x" ; then
8457    if test "x$OPENSSL" = "xnone" ; then
8458       key=`autoconf/randpass 33`
8459    else
8460       key=`openssl rand -base64 33`
8461    fi
8462    mon_dir_password=$key
8463 fi
8464
8465 mon_fd_password=
8466
8467 # Check whether --with-mon-fd-password or --without-mon-fd-password was given.
8468 if test "${with_mon_fd_password+set}" = set; then
8469   withval="$with_mon_fd_password"
8470
8471        if test "x$withval" != "xno" ; then
8472            mon_fd_password=$withval
8473        fi
8474
8475
8476 fi;
8477
8478 if test "x$mon_fd_password" = "x" ; then
8479    if test "x$OPENSSL" = "xnone" ; then
8480       key=`autoconf/randpass 37`
8481    else
8482       key=`openssl rand -base64 33`
8483    fi
8484    mon_fd_password=$key
8485 fi
8486
8487 mon_sd_password=
8488
8489 # Check whether --with-mon-sd-password or --without-mon-sd-password was given.
8490 if test "${with_mon_sd_password+set}" = set; then
8491   withval="$with_mon_sd_password"
8492
8493        if test "x$withval" != "xno" ; then
8494            mon_sd_password=$withval
8495        fi
8496
8497
8498 fi;
8499
8500 if test "x$mon_sd_password" = "x" ; then
8501    if test "x$OPENSSL" = "xnone" ; then
8502       key=`autoconf/randpass 41`
8503    else
8504       key=`openssl rand -base64 33`
8505    fi
8506    mon_sd_password=$key
8507 fi
8508
8509
8510
8511
8512
8513
8514
8515
8516
8517 #
8518 # Handle users and groups for each daemon
8519 #
8520 dir_user=
8521
8522 # Check whether --with-dir_user or --without-dir_user was given.
8523 if test "${with_dir_user+set}" = set; then
8524   withval="$with_dir_user"
8525
8526         if test "x$withval" != "x" ; then
8527              dir_user=$withval
8528         fi
8529
8530
8531 fi;
8532
8533 dir_group=
8534
8535 # Check whether --with-dir_group or --without-dir_group was given.
8536 if test "${with_dir_group+set}" = set; then
8537   withval="$with_dir_group"
8538
8539         if test "x$withval" != "x" ; then
8540              dir_group=$withval
8541         fi
8542
8543
8544 fi;
8545
8546 sd_user=
8547
8548 # Check whether --with-sd_user or --without-sd_user was given.
8549 if test "${with_sd_user+set}" = set; then
8550   withval="$with_sd_user"
8551
8552         if test "x$withval" != "x" ; then
8553              sd_user=$withval
8554         fi
8555
8556
8557 fi;
8558
8559 sd_group=
8560
8561 # Check whether --with-sd_group or --without-sd_group was given.
8562 if test "${with_sd_group+set}" = set; then
8563   withval="$with_sd_group"
8564
8565         if test "x$withval" != "x" ; then
8566              sd_group=$withval
8567         fi
8568
8569
8570 fi;
8571
8572 fd_user=
8573
8574 # Check whether --with-fd_user or --without-fd_user was given.
8575 if test "${with_fd_user+set}" = set; then
8576   withval="$with_fd_user"
8577
8578         if test "x$withval" != "x" ; then
8579              fd_user=$withval
8580         fi
8581
8582
8583 fi;
8584
8585 fd_group=
8586
8587 # Check whether --with-fd_group or --without-fd_group was given.
8588 if test "${with_fd_group+set}" = set; then
8589   withval="$with_fd_group"
8590
8591         if test "x$withval" != "x" ; then
8592              fd_group=$withval
8593         fi
8594
8595
8596 fi;
8597
8598
8599
8600
8601
8602
8603
8604
8605
8606
8607
8608 #
8609 # allow setting default executable permissions
8610 #
8611 SBINPERM=0754
8612
8613 # Check whether --with-sbin-perm or --without-sbin-perm was given.
8614 if test "${with_sbin_perm+set}" = set; then
8615   withval="$with_sbin_perm"
8616
8617         if test "x$withval" != "x" ; then
8618             SBINPERM=$withval
8619         fi
8620
8621
8622 fi;
8623
8624
8625
8626 # ------------------------------------------------
8627 # Bacula check for various SQL database engines
8628 # ------------------------------------------------
8629
8630 db_found=no
8631 echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
8632 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6
8633
8634 # Check whether --with-postgresql or --without-postgresql was given.
8635 if test "${with_postgresql+set}" = set; then
8636   withval="$with_postgresql"
8637
8638   if test "$withval" != "no"; then
8639       if test "$db_found" = "yes"; then
8640           echo "$as_me:$LINENO: result: error" >&5
8641 echo "${ECHO_T}error" >&6
8642           { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
8643 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
8644    { (exit 1); exit 1; }; };
8645       fi
8646       if test "$withval" = "yes"; then
8647           if test -f /usr/local/include/libpq-fe.h; then
8648               POSTGRESQL_INCDIR=/usr/local/include
8649               POSTGRESQL_LIBDIR=/usr/local/lib
8650               POSTGRESQL_BINDIR=/usr/local/bin
8651           elif test -f /usr/include/libpq-fe.h; then
8652               POSTGRESQL_INCDIR=/usr/include
8653               POSTGRESQL_LIBDIR=/usr/lib
8654               POSTGRESQL_BINDIR=/usr/bin
8655           elif test -f /usr/include/pgsql/libpq-fe.h; then
8656               POSTGRESQL_INCDIR=/usr/include/pgsql
8657               POSTGRESQL_LIBDIR=/usr/lib/pgsql
8658               POSTGRESQL_BINDIR=/usr/bin
8659           elif test -f /usr/include/postgresql/libpq-fe.h; then
8660               POSTGRESQL_INCDIR=/usr/include/postgresql
8661               POSTGRESQL_LIBDIR=/usr/lib/postgresql
8662               POSTGRESQL_BINDIR=/usr/bin
8663           else
8664               echo "$as_me:$LINENO: result: no" >&5
8665 echo "${ECHO_T}no" >&6
8666               { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
8667 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
8668    { (exit 1); exit 1; }; }
8669           fi
8670       elif test -f $withval/include/libpq-fe.h; then
8671           POSTGRESQL_INCDIR=$withval/include
8672           POSTGRESQL_LIBDIR=$withval/lib
8673           POSTGRESQL_BINDIR=$withval/bin
8674       elif test -f $withval/include/postgresql/libpq-fe.h; then
8675           POSTGRESQL_INCDIR=$withval/include/postgresql
8676           POSTGRESQL_LIBDIR=$withval/lib
8677           POSTGRESQL_BINDIR=$withval/bin
8678       else
8679           echo "$as_me:$LINENO: result: no" >&5
8680 echo "${ECHO_T}no" >&6
8681           { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
8682 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
8683    { (exit 1); exit 1; }; }
8684       fi
8685       POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
8686       echo "$as_me:$LINENO: checking for crypt" >&5
8687 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
8688 if test "${ac_cv_func_crypt+set}" = set; then
8689   echo $ECHO_N "(cached) $ECHO_C" >&6
8690 else
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 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
8698    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8699 #define crypt innocuous_crypt
8700
8701 /* System header to define __stub macros and hopefully few prototypes,
8702     which can conflict with char crypt (); below.
8703     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8704     <limits.h> exists even on freestanding compilers.  */
8705
8706 #ifdef __STDC__
8707 # include <limits.h>
8708 #else
8709 # include <assert.h>
8710 #endif
8711
8712 #undef crypt
8713
8714 /* Override any gcc2 internal prototype to avoid an error.  */
8715 #ifdef __cplusplus
8716 extern "C"
8717 {
8718 #endif
8719 /* We use char because int might match the return type of a gcc2
8720    builtin and then its argument prototype would still apply.  */
8721 char crypt ();
8722 /* The GNU C library defines this for functions which it implements
8723     to always fail with ENOSYS.  Some functions are actually named
8724     something starting with __ and the normal name is an alias.  */
8725 #if defined (__stub_crypt) || defined (__stub___crypt)
8726 choke me
8727 #else
8728 char (*f) () = crypt;
8729 #endif
8730 #ifdef __cplusplus
8731 }
8732 #endif
8733
8734 int
8735 main ()
8736 {
8737 return f != crypt;
8738   ;
8739   return 0;
8740 }
8741 _ACEOF
8742 rm -f conftest.$ac_objext conftest$ac_exeext
8743 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8744   (eval $ac_link) 2>conftest.er1
8745   ac_status=$?
8746   grep -v '^ *+' conftest.er1 >conftest.err
8747   rm -f conftest.er1
8748   cat conftest.err >&5
8749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8750   (exit $ac_status); } &&
8751          { ac_try='test -z "$ac_c_werror_flag"
8752                          || test ! -s conftest.err'
8753   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8754   (eval $ac_try) 2>&5
8755   ac_status=$?
8756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8757   (exit $ac_status); }; } &&
8758          { ac_try='test -s conftest$ac_exeext'
8759   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8760   (eval $ac_try) 2>&5
8761   ac_status=$?
8762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8763   (exit $ac_status); }; }; then
8764   ac_cv_func_crypt=yes
8765 else
8766   echo "$as_me: failed program was:" >&5
8767 sed 's/^/| /' conftest.$ac_ext >&5
8768
8769 ac_cv_func_crypt=no
8770 fi
8771 rm -f conftest.err conftest.$ac_objext \
8772       conftest$ac_exeext conftest.$ac_ext
8773 fi
8774 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
8775 echo "${ECHO_T}$ac_cv_func_crypt" >&6
8776 if test $ac_cv_func_crypt = yes; then
8777   :
8778 else
8779   echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
8780 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
8781 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
8782   echo $ECHO_N "(cached) $ECHO_C" >&6
8783 else
8784   ac_check_lib_save_LIBS=$LIBS
8785 LIBS="-lcrypt  $LIBS"
8786 cat >conftest.$ac_ext <<_ACEOF
8787 /* confdefs.h.  */
8788 _ACEOF
8789 cat confdefs.h >>conftest.$ac_ext
8790 cat >>conftest.$ac_ext <<_ACEOF
8791 /* end confdefs.h.  */
8792
8793 /* Override any gcc2 internal prototype to avoid an error.  */
8794 #ifdef __cplusplus
8795 extern "C"
8796 #endif
8797 /* We use char because int might match the return type of a gcc2
8798    builtin and then its argument prototype would still apply.  */
8799 char crypt ();
8800 int
8801 main ()
8802 {
8803 crypt ();
8804   ;
8805   return 0;
8806 }
8807 _ACEOF
8808 rm -f conftest.$ac_objext conftest$ac_exeext
8809 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8810   (eval $ac_link) 2>conftest.er1
8811   ac_status=$?
8812   grep -v '^ *+' conftest.er1 >conftest.err
8813   rm -f conftest.er1
8814   cat conftest.err >&5
8815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8816   (exit $ac_status); } &&
8817          { ac_try='test -z "$ac_c_werror_flag"
8818                          || test ! -s conftest.err'
8819   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8820   (eval $ac_try) 2>&5
8821   ac_status=$?
8822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8823   (exit $ac_status); }; } &&
8824          { ac_try='test -s conftest$ac_exeext'
8825   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8826   (eval $ac_try) 2>&5
8827   ac_status=$?
8828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8829   (exit $ac_status); }; }; then
8830   ac_cv_lib_crypt_crypt=yes
8831 else
8832   echo "$as_me: failed program was:" >&5
8833 sed 's/^/| /' conftest.$ac_ext >&5
8834
8835 ac_cv_lib_crypt_crypt=no
8836 fi
8837 rm -f conftest.err conftest.$ac_objext \
8838       conftest$ac_exeext conftest.$ac_ext
8839 LIBS=$ac_check_lib_save_LIBS
8840 fi
8841 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
8842 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
8843 if test $ac_cv_lib_crypt_crypt = yes; then
8844   POSTGRESQL_LFLAGS="-lcrypt $POSTGRESQL_LFLAGS"
8845 fi
8846
8847 fi
8848
8849       SQL_INCLUDE=-I$POSTGRESQL_INCDIR
8850       SQL_LFLAGS=$POSTGRESQL_LFLAGS
8851       SQL_BINDIR=$POSTGRESQL_BINDIR
8852       cat >>confdefs.h <<\_ACEOF
8853 #define HAVE_POSTGRESQL 1
8854 _ACEOF
8855
8856       echo "$as_me:$LINENO: result: yes" >&5
8857 echo "${ECHO_T}yes" >&6
8858       db_found=yes
8859       support_postgresql=yes
8860       db_name=PostgreSQL
8861       DB_NAME=postgresql
8862   else
8863       echo "$as_me:$LINENO: result: no" >&5
8864 echo "${ECHO_T}no" >&6
8865   fi
8866
8867 else
8868
8869   echo "$as_me:$LINENO: result: no" >&5
8870 echo "${ECHO_T}no" >&6
8871
8872 fi;
8873
8874
8875
8876
8877
8878
8879
8880 db_found=no
8881 echo "$as_me:$LINENO: checking for MySQL support" >&5
8882 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6
8883
8884 # Check whether --with-mysql or --without-mysql was given.
8885 if test "${with_mysql+set}" = set; then
8886   withval="$with_mysql"
8887
8888   if test "$withval" != "no"; then
8889         if test "$withval" = "yes"; then
8890                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
8891                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
8892                         MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
8893                         MYSQL_BINDIR=/usr/local/mysql/bin
8894                 elif test -f /usr/include/mysql/mysql.h; then
8895                         MYSQL_INCDIR=/usr/include/mysql
8896                         MYSQL_LIBDIR=/usr/lib/mysql
8897                         MYSQL_BINDIR=/usr/bin
8898                 elif test -f /usr/include/mysql.h; then
8899                         MYSQL_INCDIR=/usr/include
8900                         MYSQL_LIBDIR=/usr/lib
8901                         MYSQL_BINDIR=/usr/bin
8902                 elif test -f /usr/local/include/mysql/mysql.h; then
8903                         MYSQL_INCDIR=/usr/local/include/mysql
8904                         MYSQL_LIBDIR=/usr/local/lib/mysql
8905                         MYSQL_BINDIR=/usr/local/bin
8906                 elif test -f /usr/local/include/mysql.h; then
8907                         MYSQL_INCDIR=/usr/local/include
8908                         MYSQL_LIBDIR=/usr/local/lib
8909                         MYSQL_BINDIR=/usr/local/bin
8910                 else
8911                    echo "$as_me:$LINENO: result: no" >&5
8912 echo "${ECHO_T}no" >&6
8913                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
8914 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
8915    { (exit 1); exit 1; }; }
8916                 fi
8917         else
8918                 if test -f $withval/include/mysql/mysql.h; then
8919                         MYSQL_INCDIR=$withval/include/mysql
8920                         MYSQL_LIBDIR=$withval/lib/mysql
8921                         MYSQL_BINDIR=$withval/bin
8922                 elif test -f $withval/include/mysql.h; then
8923                         MYSQL_INCDIR=$withval/include
8924                         MYSQL_LIBDIR=$withval/lib
8925                         MYSQL_BINDIR=$withval/bin
8926                 else
8927                    echo "$as_me:$LINENO: result: no" >&5
8928 echo "${ECHO_T}no" >&6
8929                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
8930 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
8931    { (exit 1); exit 1; }; }
8932                 fi
8933         fi
8934     SQL_INCLUDE=-I$MYSQL_INCDIR
8935     if test -f $MYSQL_LIBDIR/libmysqlclient_r.a; then
8936        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
8937        cat >>confdefs.h <<\_ACEOF
8938 #define HAVE_THREAD_SAFE_MYSQL 1
8939 _ACEOF
8940
8941     else
8942        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient -lz"
8943     fi
8944     SQL_BINDIR=$MYSQL_BINDIR
8945
8946     cat >>confdefs.h <<\_ACEOF
8947 #define HAVE_MYSQL 1
8948 _ACEOF
8949
8950     echo "$as_me:$LINENO: result: yes" >&5
8951 echo "${ECHO_T}yes" >&6
8952     db_found=yes
8953     support_mysql=yes
8954     db_name=MySQL
8955     DB_NAME=mysql
8956
8957   else
8958         echo "$as_me:$LINENO: result: no" >&5
8959 echo "${ECHO_T}no" >&6
8960   fi
8961
8962
8963 fi;
8964
8965
8966 # Check whether --with-embedded-mysql or --without-embedded-mysql was given.
8967 if test "${with_embedded_mysql+set}" = set; then
8968   withval="$with_embedded_mysql"
8969
8970   if test "$withval" != "no"; then
8971         if test "$withval" = "yes"; then
8972                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
8973                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
8974                         MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
8975                         MYSQL_BINDIR=/usr/local/mysql/bin
8976                 elif test -f /usr/include/mysql/mysql.h; then
8977                         MYSQL_INCDIR=/usr/include/mysql
8978                         MYSQL_LIBDIR=/usr/lib/mysql
8979                         MYSQL_BINDIR=/usr/bin
8980                 elif test -f /usr/include/mysql.h; then
8981                         MYSQL_INCDIR=/usr/include
8982                         MYSQL_LIBDIR=/usr/lib
8983                         MYSQL_BINDIR=/usr/bin
8984                 elif test -f /usr/local/include/mysql/mysql.h; then
8985                         MYSQL_INCDIR=/usr/local/include/mysql
8986                         MYSQL_LIBDIR=/usr/local/lib/mysql
8987                         MYSQL_BINDIR=/usr/local/bin
8988                 elif test -f /usr/local/include/mysql.h; then
8989                         MYSQL_INCDIR=/usr/local/include
8990                         MYSQL_LIBDIR=/usr/local/lib
8991                         MYSQL_BINDIR=/usr/local/bin
8992                 else
8993                    echo "$as_me:$LINENO: result: no" >&5
8994 echo "${ECHO_T}no" >&6
8995                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
8996 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
8997    { (exit 1); exit 1; }; }
8998                 fi
8999         else
9000                 if test -f $withval/include/mysql/mysql.h; then
9001                         MYSQL_INCDIR=$withval/include/mysql
9002                         MYSQL_LIBDIR=$withval/lib/mysql
9003                         MYSQL_BINDIR=$withval/bin
9004                 elif test -f $withval/include/mysql.h; then
9005                         MYSQL_INCDIR=$withval/include
9006                         MYSQL_LIBDIR=$withval/lib
9007                         MYSQL_BINDIR=$withval/bin
9008                 else
9009                    echo "$as_me:$LINENO: result: no" >&5
9010 echo "${ECHO_T}no" >&6
9011                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
9012 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
9013    { (exit 1); exit 1; }; }
9014                 fi
9015         fi
9016     SQL_INCLUDE=-I$MYSQL_INCDIR
9017     SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
9018     SQL_BINDIR=$MYSQL_BINDIR
9019
9020     cat >>confdefs.h <<\_ACEOF
9021 #define HAVE_MYSQL 1
9022 _ACEOF
9023
9024     cat >>confdefs.h <<\_ACEOF
9025 #define HAVE_EMBEDDED_MYSQL 1
9026 _ACEOF
9027
9028     echo "$as_me:$LINENO: result: yes" >&5
9029 echo "${ECHO_T}yes" >&6
9030     db_found=yes
9031     support_mysql=yes
9032     db_name=MySQL
9033     DB_NAME=mysql
9034
9035   else
9036         echo "$as_me:$LINENO: result: no" >&5
9037 echo "${ECHO_T}no" >&6
9038   fi
9039
9040
9041 fi;
9042
9043
9044
9045
9046
9047
9048
9049
9050
9051 db_found=no
9052 echo "$as_me:$LINENO: checking for SQLite3 support" >&5
9053 echo $ECHO_N "checking for SQLite3 support... $ECHO_C" >&6
9054
9055 # Check whether --with-sqlite3 or --without-sqlite3 was given.
9056 if test "${with_sqlite3+set}" = set; then
9057   withval="$with_sqlite3"
9058
9059   if test "$withval" != "no"; then
9060      if test "$withval" = "yes"; then
9061         if test -f /usr/local/include/sqlite3.h; then
9062            SQLITE_INCDIR=/usr/local/include
9063            SQLITE_LIBDIR=/usr/local/lib
9064            SQLITE_BINDIR=/usr/local/bin
9065         elif test -f /usr/include/sqlite3.h; then
9066            SQLITE_INCDIR=/usr/include
9067            SQLITE_LIBDIR=/usr/lib
9068            SQLITE_BINDIR=/usr/bin
9069         elif test -f $prefix/include/sqlite3.h; then
9070            SQLITE_INCDIR=$prefix/include
9071            SQLITE_LIBDIR=$prefix/lib
9072            SQLITE_BINDIR=$prefix/bin
9073         else
9074            echo "$as_me:$LINENO: result: no" >&5
9075 echo "${ECHO_T}no" >&6
9076            { { echo "$as_me:$LINENO: error: Unable to find sqlite3.h in standard locations" >&5
9077 echo "$as_me: error: Unable to find sqlite3.h in standard locations" >&2;}
9078    { (exit 1); exit 1; }; }
9079         fi
9080      else
9081         if test -f $withval/sqlite3.h; then
9082            SQLITE_INCDIR=$withval
9083            SQLITE_LIBDIR=$withval
9084            SQLITE_BINDIR=$withval
9085         elif test -f $withval/include/sqlite3.h; then
9086            SQLITE_INCDIR=$withval/include
9087            SQLITE_LIBDIR=$withval/lib
9088            SQLITE_BINDIR=$withval/bin
9089         else
9090            echo "$as_me:$LINENO: result: no" >&5
9091 echo "${ECHO_T}no" >&6
9092            { { echo "$as_me:$LINENO: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&5
9093 echo "$as_me: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&2;}
9094    { (exit 1); exit 1; }; }
9095         fi
9096      fi
9097      SQL_INCLUDE=-I$SQLITE_INCDIR
9098      SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite3"
9099      SQL_BINDIR=$SQLITE_BINDIR
9100
9101      cat >>confdefs.h <<\_ACEOF
9102 #define HAVE_SQLITE3 1
9103 _ACEOF
9104
9105      echo "$as_me:$LINENO: result: yes" >&5
9106 echo "${ECHO_T}yes" >&6
9107      db_found=yes
9108      support_sqlite3=yes
9109      db_name=SQLite3
9110      DB_NAME=sqlite3
9111
9112   else
9113      echo "$as_me:$LINENO: result: no" >&5
9114 echo "${ECHO_T}no" >&6
9115   fi
9116
9117 else
9118
9119   echo "$as_me:$LINENO: result: no" >&5
9120 echo "${ECHO_T}no" >&6
9121
9122 fi;
9123
9124
9125
9126
9127
9128
9129
9130 db_found=no
9131 echo "$as_me:$LINENO: checking for SQLite support" >&5
9132 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6
9133
9134 # Check whether --with-sqlite or --without-sqlite was given.
9135 if test "${with_sqlite+set}" = set; then
9136   withval="$with_sqlite"
9137
9138   if test "$withval" != "no"; then
9139      if test "$withval" = "yes"; then
9140         if test -f /usr/local/include/sqlite.h; then
9141            SQLITE_INCDIR=/usr/local/include
9142            SQLITE_LIBDIR=/usr/local/lib
9143            SQLITE_BINDIR=/usr/local/bin
9144         elif test -f /usr/include/sqlite.h; then
9145            SQLITE_INCDIR=/usr/include
9146            SQLITE_LIBDIR=/usr/lib
9147            SQLITE_BINDIR=/usr/bin
9148         elif test -f $prefix/include/sqlite.h; then
9149            SQLITE_INCDIR=$prefix/include
9150            SQLITE_LIBDIR=$prefix/lib
9151            SQLITE_BINDIR=$prefix/bin
9152         else
9153            echo "$as_me:$LINENO: result: no" >&5
9154 echo "${ECHO_T}no" >&6
9155            { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
9156 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
9157    { (exit 1); exit 1; }; }
9158         fi
9159      else
9160         if test -f $withval/sqlite.h; then
9161            SQLITE_INCDIR=$withval
9162            SQLITE_LIBDIR=$withval
9163            SQLITE_BINDIR=$withval
9164         elif test -f $withval/include/sqlite.h; then
9165            SQLITE_INCDIR=$withval/include
9166            SQLITE_LIBDIR=$withval/lib
9167            SQLITE_BINDIR=$withval/bin
9168         else
9169            echo "$as_me:$LINENO: result: no" >&5
9170 echo "${ECHO_T}no" >&6
9171            { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
9172 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
9173    { (exit 1); exit 1; }; }
9174         fi
9175      fi
9176      SQL_INCLUDE=-I$SQLITE_INCDIR
9177      SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
9178      SQL_BINDIR=$SQLITE_BINDIR
9179
9180      cat >>confdefs.h <<\_ACEOF
9181 #define HAVE_SQLITE 1
9182 _ACEOF
9183
9184      echo "$as_me:$LINENO: result: yes" >&5
9185 echo "${ECHO_T}yes" >&6
9186      db_found=yes
9187      support_sqlite=yes
9188      db_name=SQLite
9189      DB_NAME=sqlite
9190
9191   else
9192      echo "$as_me:$LINENO: result: no" >&5
9193 echo "${ECHO_T}no" >&6
9194   fi
9195
9196 else
9197
9198   echo "$as_me:$LINENO: result: no" >&5
9199 echo "${ECHO_T}no" >&6
9200
9201 fi;
9202
9203
9204
9205
9206
9207
9208
9209
9210
9211 cat >>confdefs.h <<\_ACEOF
9212 #define PROTOTYPES 1
9213 _ACEOF
9214
9215
9216 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
9217     if test -z "$CCOPTS"; then
9218         CCOPTS='-g -O2 -Wall'
9219     fi
9220     CFLAGS="$CCOPTS"
9221 fi
9222
9223
9224
9225
9226 largefile_support="no"
9227
9228    # Check whether --enable-largefile or --disable-largefile was given.
9229 if test "${enable_largefile+set}" = set; then
9230   enableval="$enable_largefile"
9231
9232 fi;
9233    if test "$enable_largefile" != no; then
9234      if test -n "$ac_tool_prefix"; then
9235   # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
9236 set dummy ${ac_tool_prefix}getconf; ac_word=$2
9237 echo "$as_me:$LINENO: checking for $ac_word" >&5
9238 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9239 if test "${ac_cv_prog_GETCONF+set}" = set; then
9240   echo $ECHO_N "(cached) $ECHO_C" >&6
9241 else
9242   if test -n "$GETCONF"; then
9243   ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
9244 else
9245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9246 for as_dir in $PATH
9247 do
9248   IFS=$as_save_IFS
9249   test -z "$as_dir" && as_dir=.
9250   for ac_exec_ext in '' $ac_executable_extensions; do
9251   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9252     ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
9253     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9254     break 2
9255   fi
9256 done
9257 done
9258
9259 fi
9260 fi
9261 GETCONF=$ac_cv_prog_GETCONF
9262 if test -n "$GETCONF"; then
9263   echo "$as_me:$LINENO: result: $GETCONF" >&5
9264 echo "${ECHO_T}$GETCONF" >&6
9265 else
9266   echo "$as_me:$LINENO: result: no" >&5
9267 echo "${ECHO_T}no" >&6
9268 fi
9269
9270 fi
9271 if test -z "$ac_cv_prog_GETCONF"; then
9272   ac_ct_GETCONF=$GETCONF
9273   # Extract the first word of "getconf", so it can be a program name with args.
9274 set dummy getconf; ac_word=$2
9275 echo "$as_me:$LINENO: checking for $ac_word" >&5
9276 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9277 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
9278   echo $ECHO_N "(cached) $ECHO_C" >&6
9279 else
9280   if test -n "$ac_ct_GETCONF"; then
9281   ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
9282 else
9283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9284 for as_dir in $PATH
9285 do
9286   IFS=$as_save_IFS
9287   test -z "$as_dir" && as_dir=.
9288   for ac_exec_ext in '' $ac_executable_extensions; do
9289   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9290     ac_cv_prog_ac_ct_GETCONF="getconf"
9291     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9292     break 2
9293   fi
9294 done
9295 done
9296
9297 fi
9298 fi
9299 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
9300 if test -n "$ac_ct_GETCONF"; then
9301   echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
9302 echo "${ECHO_T}$ac_ct_GETCONF" >&6
9303 else
9304   echo "$as_me:$LINENO: result: no" >&5
9305 echo "${ECHO_T}no" >&6
9306 fi
9307
9308   GETCONF=$ac_ct_GETCONF
9309 else
9310   GETCONF="$ac_cv_prog_GETCONF"
9311 fi
9312
9313      echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
9314 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6
9315 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
9316   echo $ECHO_N "(cached) $ECHO_C" >&6
9317 else
9318   ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
9319         ac_cv_sys_largefile_CFLAGS=no
9320         case "$host_os" in
9321            # IRIX 6.2 and later require cc -n32.
9322            irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
9323              if test "$GCC" != yes; then
9324                ac_cv_sys_largefile_CFLAGS=-n32
9325              fi
9326              ac_save_CC="$CC"
9327              CC="$CC $ac_cv_sys_largefile_CFLAGS"
9328              cat >conftest.$ac_ext <<_ACEOF
9329 /* confdefs.h.  */
9330 _ACEOF
9331 cat confdefs.h >>conftest.$ac_ext
9332 cat >>conftest.$ac_ext <<_ACEOF
9333 /* end confdefs.h.  */
9334
9335 int
9336 main ()
9337 {
9338
9339   ;
9340   return 0;
9341 }
9342 _ACEOF
9343 rm -f conftest.$ac_objext conftest$ac_exeext
9344 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9345   (eval $ac_link) 2>conftest.er1
9346   ac_status=$?
9347   grep -v '^ *+' conftest.er1 >conftest.err
9348   rm -f conftest.er1
9349   cat conftest.err >&5
9350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9351   (exit $ac_status); } &&
9352          { ac_try='test -z "$ac_c_werror_flag"
9353                          || test ! -s conftest.err'
9354   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9355   (eval $ac_try) 2>&5
9356   ac_status=$?
9357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9358   (exit $ac_status); }; } &&
9359          { ac_try='test -s conftest$ac_exeext'
9360   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9361   (eval $ac_try) 2>&5
9362   ac_status=$?
9363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9364   (exit $ac_status); }; }; then
9365   :
9366 else
9367   echo "$as_me: failed program was:" >&5
9368 sed 's/^/| /' conftest.$ac_ext >&5
9369
9370 ac_cv_sys_largefile_CFLAGS=no
9371 fi
9372 rm -f conftest.err conftest.$ac_objext \
9373       conftest$ac_exeext conftest.$ac_ext
9374              CC="$ac_save_CC"
9375            esac
9376       }
9377 fi
9378 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
9379 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6
9380      echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
9381 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6
9382 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
9383   echo $ECHO_N "(cached) $ECHO_C" >&6
9384 else
9385   ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
9386         ac_cv_sys_largefile_LDFLAGS=no
9387
9388       }
9389 fi
9390 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
9391 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6
9392      echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
9393 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6
9394 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
9395   echo $ECHO_N "(cached) $ECHO_C" >&6
9396 else
9397   ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
9398         ac_cv_sys_largefile_LIBS=no
9399
9400       }
9401 fi
9402 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
9403 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6
9404
9405      for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
9406        case "$ac_flag" in
9407        no) ;;
9408        -D_FILE_OFFSET_BITS=*) ;;
9409        -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
9410        -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
9411        -D?* | -I?*)
9412          case "$ac_flag" in
9413    no) ;;
9414    ?*)
9415      case "$CPPFLAGS" in
9416      '') CPPFLAGS="$ac_flag" ;;
9417      *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
9418      esac ;;
9419    esac ;;
9420        *)
9421          case "$ac_flag" in
9422    no) ;;
9423    ?*)
9424      case "$CFLAGS" in
9425      '') CFLAGS="$ac_flag" ;;
9426      *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
9427      esac ;;
9428    esac ;;
9429        esac
9430      done
9431      case "$ac_cv_sys_largefile_LDFLAGS" in
9432    no) ;;
9433    ?*)
9434      case "$LDFLAGS" in
9435      '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
9436      *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
9437      esac ;;
9438    esac
9439      case "$ac_cv_sys_largefile_LIBS" in
9440    no) ;;
9441    ?*)
9442      case "$LIBS" in
9443      '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
9444      *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
9445      esac ;;
9446    esac
9447      echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
9448 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6
9449 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
9450   echo $ECHO_N "(cached) $ECHO_C" >&6
9451 else
9452   ac_cv_sys_file_offset_bits=no
9453       ac_cv_sys_file_offset_bits=64
9454       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
9455         case "$ac_flag" in
9456         -D_FILE_OFFSET_BITS)
9457           ac_cv_sys_file_offset_bits=1 ;;
9458         -D_FILE_OFFSET_BITS=*)
9459           ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
9460         esac
9461       done
9462
9463 fi
9464 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
9465 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
9466    if test "$ac_cv_sys_file_offset_bits" != no; then
9467
9468 cat >>confdefs.h <<_ACEOF
9469 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
9470 _ACEOF
9471
9472    fi
9473      echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
9474 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6
9475 if test "${ac_cv_sys_largefile_source+set}" = set; then
9476   echo $ECHO_N "(cached) $ECHO_C" >&6
9477 else
9478   ac_cv_sys_largefile_source=no
9479       ac_cv_sys_largefile_source=1
9480       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
9481         case "$ac_flag" in
9482         -D_LARGEFILE_SOURCE)
9483           ac_cv_sys_largefile_source=1 ;;
9484         -D_LARGEFILE_SOURCE=*)
9485           ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
9486         esac
9487       done
9488
9489 fi
9490 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
9491 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
9492    if test "$ac_cv_sys_largefile_source" != no; then
9493
9494 cat >>confdefs.h <<_ACEOF
9495 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
9496 _ACEOF
9497
9498    fi
9499      echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
9500 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6
9501 if test "${ac_cv_sys_large_files+set}" = set; then
9502   echo $ECHO_N "(cached) $ECHO_C" >&6
9503 else
9504   ac_cv_sys_large_files=no
9505       ac_cv_sys_large_files=1
9506       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
9507         case "$ac_flag" in
9508         -D_LARGE_FILES)
9509           ac_cv_sys_large_files=1 ;;
9510         -D_LARGE_FILES=*)
9511           ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
9512         esac
9513       done
9514
9515 fi
9516 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
9517 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
9518    if test "$ac_cv_sys_large_files" != no; then
9519
9520 cat >>confdefs.h <<_ACEOF
9521 #define _LARGE_FILES $ac_cv_sys_large_files
9522 _ACEOF
9523
9524    fi
9525    fi
9526
9527
9528
9529 echo "$as_me:$LINENO: checking for X" >&5
9530 echo $ECHO_N "checking for X... $ECHO_C" >&6
9531
9532
9533 # Check whether --with-x or --without-x was given.
9534 if test "${with_x+set}" = set; then
9535   withval="$with_x"
9536
9537 fi;
9538 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9539 if test "x$with_x" = xno; then
9540   # The user explicitly disabled X.
9541   have_x=disabled
9542 else
9543   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
9544     # Both variables are already set.
9545     have_x=yes
9546   else
9547     if test "${ac_cv_have_x+set}" = set; then
9548   echo $ECHO_N "(cached) $ECHO_C" >&6
9549 else
9550   # One or both of the vars are not set, and there is no cached value.
9551 ac_x_includes=no ac_x_libraries=no
9552 rm -fr conftest.dir
9553 if mkdir conftest.dir; then
9554   cd conftest.dir
9555   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
9556   cat >Imakefile <<'_ACEOF'
9557 acfindx:
9558         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
9559 _ACEOF
9560   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
9561     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9562     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
9563     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9564     for ac_extension in a so sl; do
9565       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
9566          test -f $ac_im_libdir/libX11.$ac_extension; then
9567         ac_im_usrlibdir=$ac_im_libdir; break
9568       fi
9569     done
9570     # Screen out bogus values from the imake configuration.  They are
9571     # bogus both because they are the default anyway, and because
9572     # using them would break gcc on systems where it needs fixed includes.
9573     case $ac_im_incroot in
9574         /usr/include) ;;
9575         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9576     esac
9577     case $ac_im_usrlibdir in
9578         /usr/lib | /lib) ;;
9579         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9580     esac
9581   fi
9582   cd ..
9583   rm -fr conftest.dir
9584 fi
9585
9586 # Standard set of common directories for X headers.
9587 # Check X11 before X11Rn because it is often a symlink to the current release.
9588 ac_x_header_dirs='
9589 /usr/X11/include
9590 /usr/X11R6/include
9591 /usr/X11R5/include
9592 /usr/X11R4/include
9593
9594 /usr/include/X11
9595 /usr/include/X11R6
9596 /usr/include/X11R5
9597 /usr/include/X11R4
9598
9599 /usr/local/X11/include
9600 /usr/local/X11R6/include
9601 /usr/local/X11R5/include
9602 /usr/local/X11R4/include
9603
9604 /usr/local/include/X11
9605 /usr/local/include/X11R6
9606 /usr/local/include/X11R5
9607 /usr/local/include/X11R4
9608
9609 /usr/X386/include
9610 /usr/x386/include
9611 /usr/XFree86/include/X11
9612
9613 /usr/include
9614 /usr/local/include
9615 /usr/unsupported/include
9616 /usr/athena/include
9617 /usr/local/x11r5/include
9618 /usr/lpp/Xamples/include
9619
9620 /usr/openwin/include
9621 /usr/openwin/share/include'
9622
9623 if test "$ac_x_includes" = no; then
9624   # Guess where to find include files, by looking for Intrinsic.h.
9625   # First, try using that file with no special directory specified.
9626   cat >conftest.$ac_ext <<_ACEOF
9627 /* confdefs.h.  */
9628 _ACEOF
9629 cat confdefs.h >>conftest.$ac_ext
9630 cat >>conftest.$ac_ext <<_ACEOF
9631 /* end confdefs.h.  */
9632 #include <X11/Intrinsic.h>
9633 _ACEOF
9634 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9635   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9636   ac_status=$?
9637   grep -v '^ *+' conftest.er1 >conftest.err
9638   rm -f conftest.er1
9639   cat conftest.err >&5
9640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9641   (exit $ac_status); } >/dev/null; then
9642   if test -s conftest.err; then
9643     ac_cpp_err=$ac_c_preproc_warn_flag
9644     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9645   else
9646     ac_cpp_err=
9647   fi
9648 else
9649   ac_cpp_err=yes
9650 fi
9651 if test -z "$ac_cpp_err"; then
9652   # We can compile using X headers with no special include directory.
9653 ac_x_includes=
9654 else
9655   echo "$as_me: failed program was:" >&5
9656 sed 's/^/| /' conftest.$ac_ext >&5
9657
9658   for ac_dir in $ac_x_header_dirs; do
9659   if test -r "$ac_dir/X11/Intrinsic.h"; then
9660     ac_x_includes=$ac_dir
9661     break
9662   fi
9663 done
9664 fi
9665 rm -f conftest.err conftest.$ac_ext
9666 fi # $ac_x_includes = no
9667
9668 if test "$ac_x_libraries" = no; then
9669   # Check for the libraries.
9670   # See if we find them without any special options.
9671   # Don't add to $LIBS permanently.
9672   ac_save_LIBS=$LIBS
9673   LIBS="-lXt $LIBS"
9674   cat >conftest.$ac_ext <<_ACEOF
9675 /* confdefs.h.  */
9676 _ACEOF
9677 cat confdefs.h >>conftest.$ac_ext
9678 cat >>conftest.$ac_ext <<_ACEOF
9679 /* end confdefs.h.  */
9680 #include <X11/Intrinsic.h>
9681 int
9682 main ()
9683 {
9684 XtMalloc (0)
9685   ;
9686   return 0;
9687 }
9688 _ACEOF
9689 rm -f conftest.$ac_objext conftest$ac_exeext
9690 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9691   (eval $ac_link) 2>conftest.er1
9692   ac_status=$?
9693   grep -v '^ *+' conftest.er1 >conftest.err
9694   rm -f conftest.er1
9695   cat conftest.err >&5
9696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9697   (exit $ac_status); } &&
9698          { ac_try='test -z "$ac_c_werror_flag"
9699                          || test ! -s conftest.err'
9700   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9701   (eval $ac_try) 2>&5
9702   ac_status=$?
9703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9704   (exit $ac_status); }; } &&
9705          { ac_try='test -s conftest$ac_exeext'
9706   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9707   (eval $ac_try) 2>&5
9708   ac_status=$?
9709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9710   (exit $ac_status); }; }; then
9711   LIBS=$ac_save_LIBS
9712 # We can link X programs with no special library path.
9713 ac_x_libraries=
9714 else
9715   echo "$as_me: failed program was:" >&5
9716 sed 's/^/| /' conftest.$ac_ext >&5
9717
9718 LIBS=$ac_save_LIBS
9719 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9720 do
9721   # Don't even attempt the hair of trying to link an X program!
9722   for ac_extension in a so sl; do
9723     if test -r $ac_dir/libXt.$ac_extension; then
9724       ac_x_libraries=$ac_dir
9725       break 2
9726     fi
9727   done
9728 done
9729 fi
9730 rm -f conftest.err conftest.$ac_objext \
9731       conftest$ac_exeext conftest.$ac_ext
9732 fi # $ac_x_libraries = no
9733
9734 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
9735   # Didn't find X anywhere.  Cache the known absence of X.
9736   ac_cv_have_x="have_x=no"
9737 else
9738   # Record where we found X for the cache.
9739   ac_cv_have_x="have_x=yes \
9740                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
9741 fi
9742 fi
9743
9744   fi
9745   eval "$ac_cv_have_x"
9746 fi # $with_x != no
9747
9748 if test "$have_x" != yes; then
9749   echo "$as_me:$LINENO: result: $have_x" >&5
9750 echo "${ECHO_T}$have_x" >&6
9751   no_x=yes
9752 else
9753   # If each of the values was on the command line, it overrides each guess.
9754   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9755   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9756   # Update the cache value to reflect the command line values.
9757   ac_cv_have_x="have_x=yes \
9758                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
9759   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9760 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
9761 fi
9762
9763 if test "$no_x" = yes; then
9764   # Not all programs may use this symbol, but it does not hurt to define it.
9765
9766 cat >>confdefs.h <<\_ACEOF
9767 #define X_DISPLAY_MISSING 1
9768 _ACEOF
9769
9770   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
9771 else
9772   if test -n "$x_includes"; then
9773     X_CFLAGS="$X_CFLAGS -I$x_includes"
9774   fi
9775
9776   # It would also be nice to do this for all -L options, not just this one.
9777   if test -n "$x_libraries"; then
9778     X_LIBS="$X_LIBS -L$x_libraries"
9779     # For Solaris; some versions of Sun CC require a space after -R and
9780     # others require no space.  Words are not sufficient . . . .
9781     case `(uname -sr) 2>/dev/null` in
9782     "SunOS 5"*)
9783       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
9784 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
9785       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
9786       cat >conftest.$ac_ext <<_ACEOF
9787 /* confdefs.h.  */
9788 _ACEOF
9789 cat confdefs.h >>conftest.$ac_ext
9790 cat >>conftest.$ac_ext <<_ACEOF
9791 /* end confdefs.h.  */
9792
9793 int
9794 main ()
9795 {
9796
9797   ;
9798   return 0;
9799 }
9800 _ACEOF
9801 rm -f conftest.$ac_objext conftest$ac_exeext
9802 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9803   (eval $ac_link) 2>conftest.er1
9804   ac_status=$?
9805   grep -v '^ *+' conftest.er1 >conftest.err
9806   rm -f conftest.er1
9807   cat conftest.err >&5
9808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9809   (exit $ac_status); } &&
9810          { ac_try='test -z "$ac_c_werror_flag"
9811                          || test ! -s conftest.err'
9812   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9813   (eval $ac_try) 2>&5
9814   ac_status=$?
9815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9816   (exit $ac_status); }; } &&
9817          { ac_try='test -s conftest$ac_exeext'
9818   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9819   (eval $ac_try) 2>&5
9820   ac_status=$?
9821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9822   (exit $ac_status); }; }; then
9823   ac_R_nospace=yes
9824 else
9825   echo "$as_me: failed program was:" >&5
9826 sed 's/^/| /' conftest.$ac_ext >&5
9827
9828 ac_R_nospace=no
9829 fi
9830 rm -f conftest.err conftest.$ac_objext \
9831       conftest$ac_exeext conftest.$ac_ext
9832       if test $ac_R_nospace = yes; then
9833         echo "$as_me:$LINENO: result: no" >&5
9834 echo "${ECHO_T}no" >&6
9835         X_LIBS="$X_LIBS -R$x_libraries"
9836       else
9837         LIBS="$ac_xsave_LIBS -R $x_libraries"
9838         cat >conftest.$ac_ext <<_ACEOF
9839 /* confdefs.h.  */
9840 _ACEOF
9841 cat confdefs.h >>conftest.$ac_ext
9842 cat >>conftest.$ac_ext <<_ACEOF
9843 /* end confdefs.h.  */
9844
9845 int
9846 main ()
9847 {
9848
9849   ;
9850   return 0;
9851 }
9852 _ACEOF
9853 rm -f conftest.$ac_objext conftest$ac_exeext
9854 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9855   (eval $ac_link) 2>conftest.er1
9856   ac_status=$?
9857   grep -v '^ *+' conftest.er1 >conftest.err
9858   rm -f conftest.er1
9859   cat conftest.err >&5
9860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9861   (exit $ac_status); } &&
9862          { ac_try='test -z "$ac_c_werror_flag"
9863                          || test ! -s conftest.err'
9864   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9865   (eval $ac_try) 2>&5
9866   ac_status=$?
9867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9868   (exit $ac_status); }; } &&
9869          { ac_try='test -s conftest$ac_exeext'
9870   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9871   (eval $ac_try) 2>&5
9872   ac_status=$?
9873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9874   (exit $ac_status); }; }; then
9875   ac_R_space=yes
9876 else
9877   echo "$as_me: failed program was:" >&5
9878 sed 's/^/| /' conftest.$ac_ext >&5
9879
9880 ac_R_space=no
9881 fi
9882 rm -f conftest.err conftest.$ac_objext \
9883       conftest$ac_exeext conftest.$ac_ext
9884         if test $ac_R_space = yes; then
9885           echo "$as_me:$LINENO: result: yes" >&5
9886 echo "${ECHO_T}yes" >&6
9887           X_LIBS="$X_LIBS -R $x_libraries"
9888         else
9889           echo "$as_me:$LINENO: result: neither works" >&5
9890 echo "${ECHO_T}neither works" >&6
9891         fi
9892       fi
9893       LIBS=$ac_xsave_LIBS
9894     esac
9895   fi
9896
9897   # Check for system-dependent libraries X programs must link with.
9898   # Do this before checking for the system-independent R6 libraries
9899   # (-lICE), since we may need -lsocket or whatever for X linking.
9900
9901   if test "$ISC" = yes; then
9902     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
9903   else
9904     # Martyn Johnson says this is needed for Ultrix, if the X
9905     # libraries were built with DECnet support.  And Karl Berry says
9906     # the Alpha needs dnet_stub (dnet does not exist).
9907     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
9908     cat >conftest.$ac_ext <<_ACEOF
9909 /* confdefs.h.  */
9910 _ACEOF
9911 cat confdefs.h >>conftest.$ac_ext
9912 cat >>conftest.$ac_ext <<_ACEOF
9913 /* end confdefs.h.  */
9914
9915 /* Override any gcc2 internal prototype to avoid an error.  */
9916 #ifdef __cplusplus
9917 extern "C"
9918 #endif
9919 /* We use char because int might match the return type of a gcc2
9920    builtin and then its argument prototype would still apply.  */
9921 char XOpenDisplay ();
9922 int
9923 main ()
9924 {
9925 XOpenDisplay ();
9926   ;
9927   return 0;
9928 }
9929 _ACEOF
9930 rm -f conftest.$ac_objext conftest$ac_exeext
9931 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9932   (eval $ac_link) 2>conftest.er1
9933   ac_status=$?
9934   grep -v '^ *+' conftest.er1 >conftest.err
9935   rm -f conftest.er1
9936   cat conftest.err >&5
9937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9938   (exit $ac_status); } &&
9939          { ac_try='test -z "$ac_c_werror_flag"
9940                          || test ! -s conftest.err'
9941   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9942   (eval $ac_try) 2>&5
9943   ac_status=$?
9944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9945   (exit $ac_status); }; } &&
9946          { ac_try='test -s conftest$ac_exeext'
9947   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9948   (eval $ac_try) 2>&5
9949   ac_status=$?
9950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9951   (exit $ac_status); }; }; then
9952   :
9953 else
9954   echo "$as_me: failed program was:" >&5
9955 sed 's/^/| /' conftest.$ac_ext >&5
9956
9957 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
9958 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
9959 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
9960   echo $ECHO_N "(cached) $ECHO_C" >&6
9961 else
9962   ac_check_lib_save_LIBS=$LIBS
9963 LIBS="-ldnet  $LIBS"
9964 cat >conftest.$ac_ext <<_ACEOF
9965 /* confdefs.h.  */
9966 _ACEOF
9967 cat confdefs.h >>conftest.$ac_ext
9968 cat >>conftest.$ac_ext <<_ACEOF
9969 /* end confdefs.h.  */
9970
9971 /* Override any gcc2 internal prototype to avoid an error.  */
9972 #ifdef __cplusplus
9973 extern "C"
9974 #endif
9975 /* We use char because int might match the return type of a gcc2
9976    builtin and then its argument prototype would still apply.  */
9977 char dnet_ntoa ();
9978 int
9979 main ()
9980 {
9981 dnet_ntoa ();
9982   ;
9983   return 0;
9984 }
9985 _ACEOF
9986 rm -f conftest.$ac_objext conftest$ac_exeext
9987 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9988   (eval $ac_link) 2>conftest.er1
9989   ac_status=$?
9990   grep -v '^ *+' conftest.er1 >conftest.err
9991   rm -f conftest.er1
9992   cat conftest.err >&5
9993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9994   (exit $ac_status); } &&
9995          { ac_try='test -z "$ac_c_werror_flag"
9996                          || test ! -s conftest.err'
9997   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9998   (eval $ac_try) 2>&5
9999   ac_status=$?
10000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10001   (exit $ac_status); }; } &&
10002          { ac_try='test -s conftest$ac_exeext'
10003   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10004   (eval $ac_try) 2>&5
10005   ac_status=$?
10006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10007   (exit $ac_status); }; }; then
10008   ac_cv_lib_dnet_dnet_ntoa=yes
10009 else
10010   echo "$as_me: failed program was:" >&5
10011 sed 's/^/| /' conftest.$ac_ext >&5
10012
10013 ac_cv_lib_dnet_dnet_ntoa=no
10014 fi
10015 rm -f conftest.err conftest.$ac_objext \
10016       conftest$ac_exeext conftest.$ac_ext
10017 LIBS=$ac_check_lib_save_LIBS
10018 fi
10019 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10020 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
10021 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10022   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
10023 fi
10024
10025     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
10026       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
10027 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
10028 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
10029   echo $ECHO_N "(cached) $ECHO_C" >&6
10030 else
10031   ac_check_lib_save_LIBS=$LIBS
10032 LIBS="-ldnet_stub  $LIBS"
10033 cat >conftest.$ac_ext <<_ACEOF
10034 /* confdefs.h.  */
10035 _ACEOF
10036 cat confdefs.h >>conftest.$ac_ext
10037 cat >>conftest.$ac_ext <<_ACEOF
10038 /* end confdefs.h.  */
10039
10040 /* Override any gcc2 internal prototype to avoid an error.  */
10041 #ifdef __cplusplus
10042 extern "C"
10043 #endif
10044 /* We use char because int might match the return type of a gcc2
10045    builtin and then its argument prototype would still apply.  */
10046 char dnet_ntoa ();
10047 int
10048 main ()
10049 {
10050 dnet_ntoa ();
10051   ;
10052   return 0;
10053 }
10054 _ACEOF
10055 rm -f conftest.$ac_objext conftest$ac_exeext
10056 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10057   (eval $ac_link) 2>conftest.er1
10058   ac_status=$?
10059   grep -v '^ *+' conftest.er1 >conftest.err
10060   rm -f conftest.er1
10061   cat conftest.err >&5
10062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10063   (exit $ac_status); } &&
10064          { ac_try='test -z "$ac_c_werror_flag"
10065                          || test ! -s conftest.err'
10066   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10067   (eval $ac_try) 2>&5
10068   ac_status=$?
10069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10070   (exit $ac_status); }; } &&
10071          { ac_try='test -s conftest$ac_exeext'
10072   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10073   (eval $ac_try) 2>&5
10074   ac_status=$?
10075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10076   (exit $ac_status); }; }; then
10077   ac_cv_lib_dnet_stub_dnet_ntoa=yes
10078 else
10079   echo "$as_me: failed program was:" >&5
10080 sed 's/^/| /' conftest.$ac_ext >&5
10081
10082 ac_cv_lib_dnet_stub_dnet_ntoa=no
10083 fi
10084 rm -f conftest.err conftest.$ac_objext \
10085       conftest$ac_exeext conftest.$ac_ext
10086 LIBS=$ac_check_lib_save_LIBS
10087 fi
10088 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
10089 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
10090 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
10091   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
10092 fi
10093
10094     fi
10095 fi
10096 rm -f conftest.err conftest.$ac_objext \
10097       conftest$ac_exeext conftest.$ac_ext
10098     LIBS="$ac_xsave_LIBS"
10099
10100     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
10101     # to get the SysV transport functions.
10102     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
10103     # needs -lnsl.
10104     # The nsl library prevents programs from opening the X display
10105     # on Irix 5.2, according to T.E. Dickey.
10106     # The functions gethostbyname, getservbyname, and inet_addr are
10107     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
10108     echo "$as_me:$LINENO: checking for gethostbyname" >&5
10109 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
10110 if test "${ac_cv_func_gethostbyname+set}" = set; then
10111   echo $ECHO_N "(cached) $ECHO_C" >&6
10112 else
10113   cat >conftest.$ac_ext <<_ACEOF
10114 /* confdefs.h.  */
10115 _ACEOF
10116 cat confdefs.h >>conftest.$ac_ext
10117 cat >>conftest.$ac_ext <<_ACEOF
10118 /* end confdefs.h.  */
10119 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
10120    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10121 #define gethostbyname innocuous_gethostbyname
10122
10123 /* System header to define __stub macros and hopefully few prototypes,
10124     which can conflict with char gethostbyname (); below.
10125     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10126     <limits.h> exists even on freestanding compilers.  */
10127
10128 #ifdef __STDC__
10129 # include <limits.h>
10130 #else
10131 # include <assert.h>
10132 #endif
10133
10134 #undef gethostbyname
10135
10136 /* Override any gcc2 internal prototype to avoid an error.  */
10137 #ifdef __cplusplus
10138 extern "C"
10139 {
10140 #endif
10141 /* We use char because int might match the return type of a gcc2
10142    builtin and then its argument prototype would still apply.  */
10143 char gethostbyname ();
10144 /* The GNU C library defines this for functions which it implements
10145     to always fail with ENOSYS.  Some functions are actually named
10146     something starting with __ and the normal name is an alias.  */
10147 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
10148 choke me
10149 #else
10150 char (*f) () = gethostbyname;
10151 #endif
10152 #ifdef __cplusplus
10153 }
10154 #endif
10155
10156 int
10157 main ()
10158 {
10159 return f != gethostbyname;
10160   ;
10161   return 0;
10162 }
10163 _ACEOF
10164 rm -f conftest.$ac_objext conftest$ac_exeext
10165 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10166   (eval $ac_link) 2>conftest.er1
10167   ac_status=$?
10168   grep -v '^ *+' conftest.er1 >conftest.err
10169   rm -f conftest.er1
10170   cat conftest.err >&5
10171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10172   (exit $ac_status); } &&
10173          { ac_try='test -z "$ac_c_werror_flag"
10174                          || test ! -s conftest.err'
10175   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10176   (eval $ac_try) 2>&5
10177   ac_status=$?
10178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10179   (exit $ac_status); }; } &&
10180          { ac_try='test -s conftest$ac_exeext'
10181   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10182   (eval $ac_try) 2>&5
10183   ac_status=$?
10184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10185   (exit $ac_status); }; }; then
10186   ac_cv_func_gethostbyname=yes
10187 else
10188   echo "$as_me: failed program was:" >&5
10189 sed 's/^/| /' conftest.$ac_ext >&5
10190
10191 ac_cv_func_gethostbyname=no
10192 fi
10193 rm -f conftest.err conftest.$ac_objext \
10194       conftest$ac_exeext conftest.$ac_ext
10195 fi
10196 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
10197 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
10198
10199     if test $ac_cv_func_gethostbyname = no; then
10200       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
10201 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
10202 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
10203   echo $ECHO_N "(cached) $ECHO_C" >&6
10204 else
10205   ac_check_lib_save_LIBS=$LIBS
10206 LIBS="-lnsl  $LIBS"
10207 cat >conftest.$ac_ext <<_ACEOF
10208 /* confdefs.h.  */
10209 _ACEOF
10210 cat confdefs.h >>conftest.$ac_ext
10211 cat >>conftest.$ac_ext <<_ACEOF
10212 /* end confdefs.h.  */
10213
10214 /* Override any gcc2 internal prototype to avoid an error.  */
10215 #ifdef __cplusplus
10216 extern "C"
10217 #endif
10218 /* We use char because int might match the return type of a gcc2
10219    builtin and then its argument prototype would still apply.  */
10220 char gethostbyname ();
10221 int
10222 main ()
10223 {
10224 gethostbyname ();
10225   ;
10226   return 0;
10227 }
10228 _ACEOF
10229 rm -f conftest.$ac_objext conftest$ac_exeext
10230 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10231   (eval $ac_link) 2>conftest.er1
10232   ac_status=$?
10233   grep -v '^ *+' conftest.er1 >conftest.err
10234   rm -f conftest.er1
10235   cat conftest.err >&5
10236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10237   (exit $ac_status); } &&
10238          { ac_try='test -z "$ac_c_werror_flag"
10239                          || test ! -s conftest.err'
10240   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10241   (eval $ac_try) 2>&5
10242   ac_status=$?
10243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10244   (exit $ac_status); }; } &&
10245          { ac_try='test -s conftest$ac_exeext'
10246   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10247   (eval $ac_try) 2>&5
10248   ac_status=$?
10249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10250   (exit $ac_status); }; }; then
10251   ac_cv_lib_nsl_gethostbyname=yes
10252 else
10253   echo "$as_me: failed program was:" >&5
10254 sed 's/^/| /' conftest.$ac_ext >&5
10255
10256 ac_cv_lib_nsl_gethostbyname=no
10257 fi
10258 rm -f conftest.err conftest.$ac_objext \
10259       conftest$ac_exeext conftest.$ac_ext
10260 LIBS=$ac_check_lib_save_LIBS
10261 fi
10262 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
10263 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
10264 if test $ac_cv_lib_nsl_gethostbyname = yes; then
10265   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
10266 fi
10267
10268       if test $ac_cv_lib_nsl_gethostbyname = no; then
10269         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
10270 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
10271 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
10272   echo $ECHO_N "(cached) $ECHO_C" >&6
10273 else
10274   ac_check_lib_save_LIBS=$LIBS
10275 LIBS="-lbsd  $LIBS"
10276 cat >conftest.$ac_ext <<_ACEOF
10277 /* confdefs.h.  */
10278 _ACEOF
10279 cat confdefs.h >>conftest.$ac_ext
10280 cat >>conftest.$ac_ext <<_ACEOF
10281 /* end confdefs.h.  */
10282
10283 /* Override any gcc2 internal prototype to avoid an error.  */
10284 #ifdef __cplusplus
10285 extern "C"
10286 #endif
10287 /* We use char because int might match the return type of a gcc2
10288    builtin and then its argument prototype would still apply.  */
10289 char gethostbyname ();
10290 int
10291 main ()
10292 {
10293 gethostbyname ();
10294   ;
10295   return 0;
10296 }
10297 _ACEOF
10298 rm -f conftest.$ac_objext conftest$ac_exeext
10299 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10300   (eval $ac_link) 2>conftest.er1
10301   ac_status=$?
10302   grep -v '^ *+' conftest.er1 >conftest.err
10303   rm -f conftest.er1
10304   cat conftest.err >&5
10305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10306   (exit $ac_status); } &&
10307          { ac_try='test -z "$ac_c_werror_flag"
10308                          || test ! -s conftest.err'
10309   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10310   (eval $ac_try) 2>&5
10311   ac_status=$?
10312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10313   (exit $ac_status); }; } &&
10314          { ac_try='test -s conftest$ac_exeext'
10315   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10316   (eval $ac_try) 2>&5
10317   ac_status=$?
10318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10319   (exit $ac_status); }; }; then
10320   ac_cv_lib_bsd_gethostbyname=yes
10321 else
10322   echo "$as_me: failed program was:" >&5
10323 sed 's/^/| /' conftest.$ac_ext >&5
10324
10325 ac_cv_lib_bsd_gethostbyname=no
10326 fi
10327 rm -f conftest.err conftest.$ac_objext \
10328       conftest$ac_exeext conftest.$ac_ext
10329 LIBS=$ac_check_lib_save_LIBS
10330 fi
10331 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
10332 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
10333 if test $ac_cv_lib_bsd_gethostbyname = yes; then
10334   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
10335 fi
10336
10337       fi
10338     fi
10339
10340     # lieder@skyler.mavd.honeywell.com says without -lsocket,
10341     # socket/setsockopt and other routines are undefined under SCO ODT
10342     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
10343     # on later versions), says Simon Leinen: it contains gethostby*
10344     # variants that don't use the name server (or something).  -lsocket
10345     # must be given before -lnsl if both are needed.  We assume that
10346     # if connect needs -lnsl, so does gethostbyname.
10347     echo "$as_me:$LINENO: checking for connect" >&5
10348 echo $ECHO_N "checking for connect... $ECHO_C" >&6
10349 if test "${ac_cv_func_connect+set}" = set; then
10350   echo $ECHO_N "(cached) $ECHO_C" >&6
10351 else
10352   cat >conftest.$ac_ext <<_ACEOF
10353 /* confdefs.h.  */
10354 _ACEOF
10355 cat confdefs.h >>conftest.$ac_ext
10356 cat >>conftest.$ac_ext <<_ACEOF
10357 /* end confdefs.h.  */
10358 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
10359    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10360 #define connect innocuous_connect
10361
10362 /* System header to define __stub macros and hopefully few prototypes,
10363     which can conflict with char connect (); below.
10364     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10365     <limits.h> exists even on freestanding compilers.  */
10366
10367 #ifdef __STDC__
10368 # include <limits.h>
10369 #else
10370 # include <assert.h>
10371 #endif
10372
10373 #undef connect
10374
10375 /* Override any gcc2 internal prototype to avoid an error.  */
10376 #ifdef __cplusplus
10377 extern "C"
10378 {
10379 #endif
10380 /* We use char because int might match the return type of a gcc2
10381    builtin and then its argument prototype would still apply.  */
10382 char connect ();
10383 /* The GNU C library defines this for functions which it implements
10384     to always fail with ENOSYS.  Some functions are actually named
10385     something starting with __ and the normal name is an alias.  */
10386 #if defined (__stub_connect) || defined (__stub___connect)
10387 choke me
10388 #else
10389 char (*f) () = connect;
10390 #endif
10391 #ifdef __cplusplus
10392 }
10393 #endif
10394
10395 int
10396 main ()
10397 {
10398 return f != connect;
10399   ;
10400   return 0;
10401 }
10402 _ACEOF
10403 rm -f conftest.$ac_objext conftest$ac_exeext
10404 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10405   (eval $ac_link) 2>conftest.er1
10406   ac_status=$?
10407   grep -v '^ *+' conftest.er1 >conftest.err
10408   rm -f conftest.er1
10409   cat conftest.err >&5
10410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10411   (exit $ac_status); } &&
10412          { ac_try='test -z "$ac_c_werror_flag"
10413                          || test ! -s conftest.err'
10414   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10415   (eval $ac_try) 2>&5
10416   ac_status=$?
10417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10418   (exit $ac_status); }; } &&
10419          { ac_try='test -s conftest$ac_exeext'
10420   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10421   (eval $ac_try) 2>&5
10422   ac_status=$?
10423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10424   (exit $ac_status); }; }; then
10425   ac_cv_func_connect=yes
10426 else
10427   echo "$as_me: failed program was:" >&5
10428 sed 's/^/| /' conftest.$ac_ext >&5
10429
10430 ac_cv_func_connect=no
10431 fi
10432 rm -f conftest.err conftest.$ac_objext \
10433       conftest$ac_exeext conftest.$ac_ext
10434 fi
10435 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
10436 echo "${ECHO_T}$ac_cv_func_connect" >&6
10437
10438     if test $ac_cv_func_connect = no; then
10439       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
10440 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
10441 if test "${ac_cv_lib_socket_connect+set}" = set; then
10442   echo $ECHO_N "(cached) $ECHO_C" >&6
10443 else
10444   ac_check_lib_save_LIBS=$LIBS
10445 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
10446 cat >conftest.$ac_ext <<_ACEOF
10447 /* confdefs.h.  */
10448 _ACEOF
10449 cat confdefs.h >>conftest.$ac_ext
10450 cat >>conftest.$ac_ext <<_ACEOF
10451 /* end confdefs.h.  */
10452
10453 /* Override any gcc2 internal prototype to avoid an error.  */
10454 #ifdef __cplusplus
10455 extern "C"
10456 #endif
10457 /* We use char because int might match the return type of a gcc2
10458    builtin and then its argument prototype would still apply.  */
10459 char connect ();
10460 int
10461 main ()
10462 {
10463 connect ();
10464   ;
10465   return 0;
10466 }
10467 _ACEOF
10468 rm -f conftest.$ac_objext conftest$ac_exeext
10469 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10470   (eval $ac_link) 2>conftest.er1
10471   ac_status=$?
10472   grep -v '^ *+' conftest.er1 >conftest.err
10473   rm -f conftest.er1
10474   cat conftest.err >&5
10475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10476   (exit $ac_status); } &&
10477          { ac_try='test -z "$ac_c_werror_flag"
10478                          || test ! -s conftest.err'
10479   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10480   (eval $ac_try) 2>&5
10481   ac_status=$?
10482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10483   (exit $ac_status); }; } &&
10484          { ac_try='test -s conftest$ac_exeext'
10485   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10486   (eval $ac_try) 2>&5
10487   ac_status=$?
10488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10489   (exit $ac_status); }; }; then
10490   ac_cv_lib_socket_connect=yes
10491 else
10492   echo "$as_me: failed program was:" >&5
10493 sed 's/^/| /' conftest.$ac_ext >&5
10494
10495 ac_cv_lib_socket_connect=no
10496 fi
10497 rm -f conftest.err conftest.$ac_objext \
10498       conftest$ac_exeext conftest.$ac_ext
10499 LIBS=$ac_check_lib_save_LIBS
10500 fi
10501 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
10502 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
10503 if test $ac_cv_lib_socket_connect = yes; then
10504   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
10505 fi
10506
10507     fi
10508
10509     # Guillermo Gomez says -lposix is necessary on A/UX.
10510     echo "$as_me:$LINENO: checking for remove" >&5
10511 echo $ECHO_N "checking for remove... $ECHO_C" >&6
10512 if test "${ac_cv_func_remove+set}" = set; then
10513   echo $ECHO_N "(cached) $ECHO_C" >&6
10514 else
10515   cat >conftest.$ac_ext <<_ACEOF
10516 /* confdefs.h.  */
10517 _ACEOF
10518 cat confdefs.h >>conftest.$ac_ext
10519 cat >>conftest.$ac_ext <<_ACEOF
10520 /* end confdefs.h.  */
10521 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
10522    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10523 #define remove innocuous_remove
10524
10525 /* System header to define __stub macros and hopefully few prototypes,
10526     which can conflict with char remove (); below.
10527     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10528     <limits.h> exists even on freestanding compilers.  */
10529
10530 #ifdef __STDC__
10531 # include <limits.h>
10532 #else
10533 # include <assert.h>
10534 #endif
10535
10536 #undef remove
10537
10538 /* Override any gcc2 internal prototype to avoid an error.  */
10539 #ifdef __cplusplus
10540 extern "C"
10541 {
10542 #endif
10543 /* We use char because int might match the return type of a gcc2
10544    builtin and then its argument prototype would still apply.  */
10545 char remove ();
10546 /* The GNU C library defines this for functions which it implements
10547     to always fail with ENOSYS.  Some functions are actually named
10548     something starting with __ and the normal name is an alias.  */
10549 #if defined (__stub_remove) || defined (__stub___remove)
10550 choke me
10551 #else
10552 char (*f) () = remove;
10553 #endif
10554 #ifdef __cplusplus
10555 }
10556 #endif
10557
10558 int
10559 main ()
10560 {
10561 return f != remove;
10562   ;
10563   return 0;
10564 }
10565 _ACEOF
10566 rm -f conftest.$ac_objext conftest$ac_exeext
10567 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10568   (eval $ac_link) 2>conftest.er1
10569   ac_status=$?
10570   grep -v '^ *+' conftest.er1 >conftest.err
10571   rm -f conftest.er1
10572   cat conftest.err >&5
10573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10574   (exit $ac_status); } &&
10575          { ac_try='test -z "$ac_c_werror_flag"
10576                          || test ! -s conftest.err'
10577   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10578   (eval $ac_try) 2>&5
10579   ac_status=$?
10580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10581   (exit $ac_status); }; } &&
10582          { ac_try='test -s conftest$ac_exeext'
10583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10584   (eval $ac_try) 2>&5
10585   ac_status=$?
10586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10587   (exit $ac_status); }; }; then
10588   ac_cv_func_remove=yes
10589 else
10590   echo "$as_me: failed program was:" >&5
10591 sed 's/^/| /' conftest.$ac_ext >&5
10592
10593 ac_cv_func_remove=no
10594 fi
10595 rm -f conftest.err conftest.$ac_objext \
10596       conftest$ac_exeext conftest.$ac_ext
10597 fi
10598 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
10599 echo "${ECHO_T}$ac_cv_func_remove" >&6
10600
10601     if test $ac_cv_func_remove = no; then
10602       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
10603 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
10604 if test "${ac_cv_lib_posix_remove+set}" = set; then
10605   echo $ECHO_N "(cached) $ECHO_C" >&6
10606 else
10607   ac_check_lib_save_LIBS=$LIBS
10608 LIBS="-lposix  $LIBS"
10609 cat >conftest.$ac_ext <<_ACEOF
10610 /* confdefs.h.  */
10611 _ACEOF
10612 cat confdefs.h >>conftest.$ac_ext
10613 cat >>conftest.$ac_ext <<_ACEOF
10614 /* end confdefs.h.  */
10615
10616 /* Override any gcc2 internal prototype to avoid an error.  */
10617 #ifdef __cplusplus
10618 extern "C"
10619 #endif
10620 /* We use char because int might match the return type of a gcc2
10621    builtin and then its argument prototype would still apply.  */
10622 char remove ();
10623 int
10624 main ()
10625 {
10626 remove ();
10627   ;
10628   return 0;
10629 }
10630 _ACEOF
10631 rm -f conftest.$ac_objext conftest$ac_exeext
10632 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10633   (eval $ac_link) 2>conftest.er1
10634   ac_status=$?
10635   grep -v '^ *+' conftest.er1 >conftest.err
10636   rm -f conftest.er1
10637   cat conftest.err >&5
10638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10639   (exit $ac_status); } &&
10640          { ac_try='test -z "$ac_c_werror_flag"
10641                          || test ! -s conftest.err'
10642   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10643   (eval $ac_try) 2>&5
10644   ac_status=$?
10645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10646   (exit $ac_status); }; } &&
10647          { ac_try='test -s conftest$ac_exeext'
10648   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10649   (eval $ac_try) 2>&5
10650   ac_status=$?
10651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10652   (exit $ac_status); }; }; then
10653   ac_cv_lib_posix_remove=yes
10654 else
10655   echo "$as_me: failed program was:" >&5
10656 sed 's/^/| /' conftest.$ac_ext >&5
10657
10658 ac_cv_lib_posix_remove=no
10659 fi
10660 rm -f conftest.err conftest.$ac_objext \
10661       conftest$ac_exeext conftest.$ac_ext
10662 LIBS=$ac_check_lib_save_LIBS
10663 fi
10664 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
10665 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
10666 if test $ac_cv_lib_posix_remove = yes; then
10667   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
10668 fi
10669
10670     fi
10671
10672     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
10673     echo "$as_me:$LINENO: checking for shmat" >&5
10674 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
10675 if test "${ac_cv_func_shmat+set}" = set; then
10676   echo $ECHO_N "(cached) $ECHO_C" >&6
10677 else
10678   cat >conftest.$ac_ext <<_ACEOF
10679 /* confdefs.h.  */
10680 _ACEOF
10681 cat confdefs.h >>conftest.$ac_ext
10682 cat >>conftest.$ac_ext <<_ACEOF
10683 /* end confdefs.h.  */
10684 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
10685    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10686 #define shmat innocuous_shmat
10687
10688 /* System header to define __stub macros and hopefully few prototypes,
10689     which can conflict with char shmat (); below.
10690     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10691     <limits.h> exists even on freestanding compilers.  */
10692
10693 #ifdef __STDC__
10694 # include <limits.h>
10695 #else
10696 # include <assert.h>
10697 #endif
10698
10699 #undef shmat
10700
10701 /* Override any gcc2 internal prototype to avoid an error.  */
10702 #ifdef __cplusplus
10703 extern "C"
10704 {
10705 #endif
10706 /* We use char because int might match the return type of a gcc2
10707    builtin and then its argument prototype would still apply.  */
10708 char shmat ();
10709 /* The GNU C library defines this for functions which it implements
10710     to always fail with ENOSYS.  Some functions are actually named
10711     something starting with __ and the normal name is an alias.  */
10712 #if defined (__stub_shmat) || defined (__stub___shmat)
10713 choke me
10714 #else
10715 char (*f) () = shmat;
10716 #endif
10717 #ifdef __cplusplus
10718 }
10719 #endif
10720
10721 int
10722 main ()
10723 {
10724 return f != shmat;
10725   ;
10726   return 0;
10727 }
10728 _ACEOF
10729 rm -f conftest.$ac_objext conftest$ac_exeext
10730 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10731   (eval $ac_link) 2>conftest.er1
10732   ac_status=$?
10733   grep -v '^ *+' conftest.er1 >conftest.err
10734   rm -f conftest.er1
10735   cat conftest.err >&5
10736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10737   (exit $ac_status); } &&
10738          { ac_try='test -z "$ac_c_werror_flag"
10739                          || test ! -s conftest.err'
10740   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10741   (eval $ac_try) 2>&5
10742   ac_status=$?
10743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10744   (exit $ac_status); }; } &&
10745          { ac_try='test -s conftest$ac_exeext'
10746   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10747   (eval $ac_try) 2>&5
10748   ac_status=$?
10749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10750   (exit $ac_status); }; }; then
10751   ac_cv_func_shmat=yes
10752 else
10753   echo "$as_me: failed program was:" >&5
10754 sed 's/^/| /' conftest.$ac_ext >&5
10755
10756 ac_cv_func_shmat=no
10757 fi
10758 rm -f conftest.err conftest.$ac_objext \
10759       conftest$ac_exeext conftest.$ac_ext
10760 fi
10761 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
10762 echo "${ECHO_T}$ac_cv_func_shmat" >&6
10763
10764     if test $ac_cv_func_shmat = no; then
10765       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
10766 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
10767 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
10768   echo $ECHO_N "(cached) $ECHO_C" >&6
10769 else
10770   ac_check_lib_save_LIBS=$LIBS
10771 LIBS="-lipc  $LIBS"
10772 cat >conftest.$ac_ext <<_ACEOF
10773 /* confdefs.h.  */
10774 _ACEOF
10775 cat confdefs.h >>conftest.$ac_ext
10776 cat >>conftest.$ac_ext <<_ACEOF
10777 /* end confdefs.h.  */
10778
10779 /* Override any gcc2 internal prototype to avoid an error.  */
10780 #ifdef __cplusplus
10781 extern "C"
10782 #endif
10783 /* We use char because int might match the return type of a gcc2
10784    builtin and then its argument prototype would still apply.  */
10785 char shmat ();
10786 int
10787 main ()
10788 {
10789 shmat ();
10790   ;
10791   return 0;
10792 }
10793 _ACEOF
10794 rm -f conftest.$ac_objext conftest$ac_exeext
10795 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10796   (eval $ac_link) 2>conftest.er1
10797   ac_status=$?
10798   grep -v '^ *+' conftest.er1 >conftest.err
10799   rm -f conftest.er1
10800   cat conftest.err >&5
10801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10802   (exit $ac_status); } &&
10803          { ac_try='test -z "$ac_c_werror_flag"
10804                          || test ! -s conftest.err'
10805   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10806   (eval $ac_try) 2>&5
10807   ac_status=$?
10808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10809   (exit $ac_status); }; } &&
10810          { ac_try='test -s conftest$ac_exeext'
10811   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10812   (eval $ac_try) 2>&5
10813   ac_status=$?
10814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10815   (exit $ac_status); }; }; then
10816   ac_cv_lib_ipc_shmat=yes
10817 else
10818   echo "$as_me: failed program was:" >&5
10819 sed 's/^/| /' conftest.$ac_ext >&5
10820
10821 ac_cv_lib_ipc_shmat=no
10822 fi
10823 rm -f conftest.err conftest.$ac_objext \
10824       conftest$ac_exeext conftest.$ac_ext
10825 LIBS=$ac_check_lib_save_LIBS
10826 fi
10827 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
10828 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
10829 if test $ac_cv_lib_ipc_shmat = yes; then
10830   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
10831 fi
10832
10833     fi
10834   fi
10835
10836   # Check for libraries that X11R6 Xt/Xaw programs need.
10837   ac_save_LDFLAGS=$LDFLAGS
10838   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
10839   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
10840   # check for ICE first), but we must link in the order -lSM -lICE or
10841   # we get undefined symbols.  So assume we have SM if we have ICE.
10842   # These have to be linked with before -lX11, unlike the other
10843   # libraries we check for below, so use a different variable.
10844   # John Interrante, Karl Berry
10845   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
10846 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
10847 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
10848   echo $ECHO_N "(cached) $ECHO_C" >&6
10849 else
10850   ac_check_lib_save_LIBS=$LIBS
10851 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
10852 cat >conftest.$ac_ext <<_ACEOF
10853 /* confdefs.h.  */
10854 _ACEOF
10855 cat confdefs.h >>conftest.$ac_ext
10856 cat >>conftest.$ac_ext <<_ACEOF
10857 /* end confdefs.h.  */
10858
10859 /* Override any gcc2 internal prototype to avoid an error.  */
10860 #ifdef __cplusplus
10861 extern "C"
10862 #endif
10863 /* We use char because int might match the return type of a gcc2
10864    builtin and then its argument prototype would still apply.  */
10865 char IceConnectionNumber ();
10866 int
10867 main ()
10868 {
10869 IceConnectionNumber ();
10870   ;
10871   return 0;
10872 }
10873 _ACEOF
10874 rm -f conftest.$ac_objext conftest$ac_exeext
10875 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10876   (eval $ac_link) 2>conftest.er1
10877   ac_status=$?
10878   grep -v '^ *+' conftest.er1 >conftest.err
10879   rm -f conftest.er1
10880   cat conftest.err >&5
10881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10882   (exit $ac_status); } &&
10883          { ac_try='test -z "$ac_c_werror_flag"
10884                          || test ! -s conftest.err'
10885   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10886   (eval $ac_try) 2>&5
10887   ac_status=$?
10888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10889   (exit $ac_status); }; } &&
10890          { ac_try='test -s conftest$ac_exeext'
10891   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10892   (eval $ac_try) 2>&5
10893   ac_status=$?
10894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10895   (exit $ac_status); }; }; then
10896   ac_cv_lib_ICE_IceConnectionNumber=yes
10897 else
10898   echo "$as_me: failed program was:" >&5
10899 sed 's/^/| /' conftest.$ac_ext >&5
10900
10901 ac_cv_lib_ICE_IceConnectionNumber=no
10902 fi
10903 rm -f conftest.err conftest.$ac_objext \
10904       conftest$ac_exeext conftest.$ac_ext
10905 LIBS=$ac_check_lib_save_LIBS
10906 fi
10907 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
10908 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
10909 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
10910   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
10911 fi
10912
10913   LDFLAGS=$ac_save_LDFLAGS
10914
10915 fi
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945 for ac_header in \
10946         assert.h \
10947         fcntl.h \
10948         grp.h \
10949         pwd.h \
10950         libc.h \
10951         limits.h \
10952         stdarg.h \
10953         stdlib.h \
10954         stdint.h \
10955         string.h \
10956         termios.h \
10957         termcap.h \
10958         term.h \
10959         unistd.h \
10960         sys/bitypes.h \
10961         sys/byteorder.h \
10962         sys/ioctl.h \
10963         sys/select.h \
10964         sys/sockio.h \
10965         sys/time.h \
10966         sys/socket.h \
10967         arpa/nameser.h \
10968         resolv.h \
10969         mtio.h \
10970         sys/mtio.h \
10971         sys/tape.h \
10972         regex.h \
10973
10974 do
10975 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10976 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10977   echo "$as_me:$LINENO: checking for $ac_header" >&5
10978 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10979 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10980   echo $ECHO_N "(cached) $ECHO_C" >&6
10981 fi
10982 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10983 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10984 else
10985   # Is the header compilable?
10986 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10987 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10988 cat >conftest.$ac_ext <<_ACEOF
10989 /* confdefs.h.  */
10990 _ACEOF
10991 cat confdefs.h >>conftest.$ac_ext
10992 cat >>conftest.$ac_ext <<_ACEOF
10993 /* end confdefs.h.  */
10994 $ac_includes_default
10995 #include <$ac_header>
10996 _ACEOF
10997 rm -f conftest.$ac_objext
10998 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10999   (eval $ac_compile) 2>conftest.er1
11000   ac_status=$?
11001   grep -v '^ *+' conftest.er1 >conftest.err
11002   rm -f conftest.er1
11003   cat conftest.err >&5
11004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11005   (exit $ac_status); } &&
11006          { ac_try='test -z "$ac_c_werror_flag"
11007                          || test ! -s conftest.err'
11008   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11009   (eval $ac_try) 2>&5
11010   ac_status=$?
11011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11012   (exit $ac_status); }; } &&
11013          { ac_try='test -s conftest.$ac_objext'
11014   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11015   (eval $ac_try) 2>&5
11016   ac_status=$?
11017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11018   (exit $ac_status); }; }; then
11019   ac_header_compiler=yes
11020 else
11021   echo "$as_me: failed program was:" >&5
11022 sed 's/^/| /' conftest.$ac_ext >&5
11023
11024 ac_header_compiler=no
11025 fi
11026 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11027 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11028 echo "${ECHO_T}$ac_header_compiler" >&6
11029
11030 # Is the header present?
11031 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11032 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11033 cat >conftest.$ac_ext <<_ACEOF
11034 /* confdefs.h.  */
11035 _ACEOF
11036 cat confdefs.h >>conftest.$ac_ext
11037 cat >>conftest.$ac_ext <<_ACEOF
11038 /* end confdefs.h.  */
11039 #include <$ac_header>
11040 _ACEOF
11041 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11042   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11043   ac_status=$?
11044   grep -v '^ *+' conftest.er1 >conftest.err
11045   rm -f conftest.er1
11046   cat conftest.err >&5
11047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11048   (exit $ac_status); } >/dev/null; then
11049   if test -s conftest.err; then
11050     ac_cpp_err=$ac_c_preproc_warn_flag
11051     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11052   else
11053     ac_cpp_err=
11054   fi
11055 else
11056   ac_cpp_err=yes
11057 fi
11058 if test -z "$ac_cpp_err"; then
11059   ac_header_preproc=yes
11060 else
11061   echo "$as_me: failed program was:" >&5
11062 sed 's/^/| /' conftest.$ac_ext >&5
11063
11064   ac_header_preproc=no
11065 fi
11066 rm -f conftest.err conftest.$ac_ext
11067 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11068 echo "${ECHO_T}$ac_header_preproc" >&6
11069
11070 # So?  What about this header?
11071 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11072   yes:no: )
11073     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11074 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11075     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11076 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11077     ac_header_preproc=yes
11078     ;;
11079   no:yes:* )
11080     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11081 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11082     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11083 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11084     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11085 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11086     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11087 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11088     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11089 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11090     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11091 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11092     (
11093       cat <<\_ASBOX
11094 ## ------------------------------------------ ##
11095 ## Report this to the AC_PACKAGE_NAME lists.  ##
11096 ## ------------------------------------------ ##
11097 _ASBOX
11098     ) |
11099       sed "s/^/$as_me: WARNING:     /" >&2
11100     ;;
11101 esac
11102 echo "$as_me:$LINENO: checking for $ac_header" >&5
11103 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11104 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11105   echo $ECHO_N "(cached) $ECHO_C" >&6
11106 else
11107   eval "$as_ac_Header=\$ac_header_preproc"
11108 fi
11109 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11110 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11111
11112 fi
11113 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11114   cat >>confdefs.h <<_ACEOF
11115 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11116 _ACEOF
11117
11118 fi
11119
11120 done
11121
11122 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
11123 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
11124 if test "${ac_cv_header_stdc+set}" = set; then
11125   echo $ECHO_N "(cached) $ECHO_C" >&6
11126 else
11127   cat >conftest.$ac_ext <<_ACEOF
11128 /* confdefs.h.  */
11129 _ACEOF
11130 cat confdefs.h >>conftest.$ac_ext
11131 cat >>conftest.$ac_ext <<_ACEOF
11132 /* end confdefs.h.  */
11133 #include <stdlib.h>
11134 #include <stdarg.h>
11135 #include <string.h>
11136 #include <float.h>
11137
11138 int
11139 main ()
11140 {
11141
11142   ;
11143   return 0;
11144 }
11145 _ACEOF
11146 rm -f conftest.$ac_objext
11147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11148   (eval $ac_compile) 2>conftest.er1
11149   ac_status=$?
11150   grep -v '^ *+' conftest.er1 >conftest.err
11151   rm -f conftest.er1
11152   cat conftest.err >&5
11153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11154   (exit $ac_status); } &&
11155          { ac_try='test -z "$ac_c_werror_flag"
11156                          || test ! -s conftest.err'
11157   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11158   (eval $ac_try) 2>&5
11159   ac_status=$?
11160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11161   (exit $ac_status); }; } &&
11162          { ac_try='test -s conftest.$ac_objext'
11163   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11164   (eval $ac_try) 2>&5
11165   ac_status=$?
11166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11167   (exit $ac_status); }; }; then
11168   ac_cv_header_stdc=yes
11169 else
11170   echo "$as_me: failed program was:" >&5
11171 sed 's/^/| /' conftest.$ac_ext >&5
11172
11173 ac_cv_header_stdc=no
11174 fi
11175 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11176
11177 if test $ac_cv_header_stdc = yes; then
11178   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11179   cat >conftest.$ac_ext <<_ACEOF
11180 /* confdefs.h.  */
11181 _ACEOF
11182 cat confdefs.h >>conftest.$ac_ext
11183 cat >>conftest.$ac_ext <<_ACEOF
11184 /* end confdefs.h.  */
11185 #include <string.h>
11186
11187 _ACEOF
11188 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11189   $EGREP "memchr" >/dev/null 2>&1; then
11190   :
11191 else
11192   ac_cv_header_stdc=no
11193 fi
11194 rm -f conftest*
11195
11196 fi
11197
11198 if test $ac_cv_header_stdc = yes; then
11199   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11200   cat >conftest.$ac_ext <<_ACEOF
11201 /* confdefs.h.  */
11202 _ACEOF
11203 cat confdefs.h >>conftest.$ac_ext
11204 cat >>conftest.$ac_ext <<_ACEOF
11205 /* end confdefs.h.  */
11206 #include <stdlib.h>
11207
11208 _ACEOF
11209 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11210   $EGREP "free" >/dev/null 2>&1; then
11211   :
11212 else
11213   ac_cv_header_stdc=no
11214 fi
11215 rm -f conftest*
11216
11217 fi
11218
11219 if test $ac_cv_header_stdc = yes; then
11220   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11221   if test "$cross_compiling" = yes; then
11222   :
11223 else
11224   cat >conftest.$ac_ext <<_ACEOF
11225 /* confdefs.h.  */
11226 _ACEOF
11227 cat confdefs.h >>conftest.$ac_ext
11228 cat >>conftest.$ac_ext <<_ACEOF
11229 /* end confdefs.h.  */
11230 #include <ctype.h>
11231 #if ((' ' & 0x0FF) == 0x020)
11232 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11233 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11234 #else
11235 # define ISLOWER(c) \
11236                    (('a' <= (c) && (c) <= 'i') \
11237                      || ('j' <= (c) && (c) <= 'r') \
11238                      || ('s' <= (c) && (c) <= 'z'))
11239 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11240 #endif
11241
11242 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11243 int
11244 main ()
11245 {
11246   int i;
11247   for (i = 0; i < 256; i++)
11248     if (XOR (islower (i), ISLOWER (i))
11249         || toupper (i) != TOUPPER (i))
11250       exit(2);
11251   exit (0);
11252 }
11253 _ACEOF
11254 rm -f conftest$ac_exeext
11255 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11256   (eval $ac_link) 2>&5
11257   ac_status=$?
11258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11259   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11260   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11261   (eval $ac_try) 2>&5
11262   ac_status=$?
11263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11264   (exit $ac_status); }; }; then
11265   :
11266 else
11267   echo "$as_me: program exited with status $ac_status" >&5
11268 echo "$as_me: failed program was:" >&5
11269 sed 's/^/| /' conftest.$ac_ext >&5
11270
11271 ( exit $ac_status )
11272 ac_cv_header_stdc=no
11273 fi
11274 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11275 fi
11276 fi
11277 fi
11278 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
11279 echo "${ECHO_T}$ac_cv_header_stdc" >&6
11280 if test $ac_cv_header_stdc = yes; then
11281
11282 cat >>confdefs.h <<\_ACEOF
11283 #define STDC_HEADERS 1
11284 _ACEOF
11285
11286 fi
11287
11288 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
11289 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
11290 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
11291   echo $ECHO_N "(cached) $ECHO_C" >&6
11292 else
11293   cat >conftest.$ac_ext <<_ACEOF
11294 /* confdefs.h.  */
11295 _ACEOF
11296 cat confdefs.h >>conftest.$ac_ext
11297 cat >>conftest.$ac_ext <<_ACEOF
11298 /* end confdefs.h.  */
11299 #include <sys/types.h>
11300 int
11301 main ()
11302 {
11303 return makedev(0, 0);
11304   ;
11305   return 0;
11306 }
11307 _ACEOF
11308 rm -f conftest.$ac_objext conftest$ac_exeext
11309 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11310   (eval $ac_link) 2>conftest.er1
11311   ac_status=$?
11312   grep -v '^ *+' conftest.er1 >conftest.err
11313   rm -f conftest.er1
11314   cat conftest.err >&5
11315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11316   (exit $ac_status); } &&
11317          { ac_try='test -z "$ac_c_werror_flag"
11318                          || test ! -s conftest.err'
11319   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11320   (eval $ac_try) 2>&5
11321   ac_status=$?
11322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11323   (exit $ac_status); }; } &&
11324          { ac_try='test -s conftest$ac_exeext'
11325   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11326   (eval $ac_try) 2>&5
11327   ac_status=$?
11328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11329   (exit $ac_status); }; }; then
11330   ac_cv_header_sys_types_h_makedev=yes
11331 else
11332   echo "$as_me: failed program was:" >&5
11333 sed 's/^/| /' conftest.$ac_ext >&5
11334
11335 ac_cv_header_sys_types_h_makedev=no
11336 fi
11337 rm -f conftest.err conftest.$ac_objext \
11338       conftest$ac_exeext conftest.$ac_ext
11339
11340 fi
11341 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
11342 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
11343
11344 if test $ac_cv_header_sys_types_h_makedev = no; then
11345 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
11346   echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
11347 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
11348 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
11349   echo $ECHO_N "(cached) $ECHO_C" >&6
11350 fi
11351 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
11352 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
11353 else
11354   # Is the header compilable?
11355 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
11356 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
11357 cat >conftest.$ac_ext <<_ACEOF
11358 /* confdefs.h.  */
11359 _ACEOF
11360 cat confdefs.h >>conftest.$ac_ext
11361 cat >>conftest.$ac_ext <<_ACEOF
11362 /* end confdefs.h.  */
11363 $ac_includes_default
11364 #include <sys/mkdev.h>
11365 _ACEOF
11366 rm -f conftest.$ac_objext
11367 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11368   (eval $ac_compile) 2>conftest.er1
11369   ac_status=$?
11370   grep -v '^ *+' conftest.er1 >conftest.err
11371   rm -f conftest.er1
11372   cat conftest.err >&5
11373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11374   (exit $ac_status); } &&
11375          { ac_try='test -z "$ac_c_werror_flag"
11376                          || test ! -s conftest.err'
11377   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11378   (eval $ac_try) 2>&5
11379   ac_status=$?
11380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11381   (exit $ac_status); }; } &&
11382          { ac_try='test -s conftest.$ac_objext'
11383   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11384   (eval $ac_try) 2>&5
11385   ac_status=$?
11386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11387   (exit $ac_status); }; }; then
11388   ac_header_compiler=yes
11389 else
11390   echo "$as_me: failed program was:" >&5
11391 sed 's/^/| /' conftest.$ac_ext >&5
11392
11393 ac_header_compiler=no
11394 fi
11395 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11396 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11397 echo "${ECHO_T}$ac_header_compiler" >&6
11398
11399 # Is the header present?
11400 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
11401 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
11402 cat >conftest.$ac_ext <<_ACEOF
11403 /* confdefs.h.  */
11404 _ACEOF
11405 cat confdefs.h >>conftest.$ac_ext
11406 cat >>conftest.$ac_ext <<_ACEOF
11407 /* end confdefs.h.  */
11408 #include <sys/mkdev.h>
11409 _ACEOF
11410 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11411   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11412   ac_status=$?
11413   grep -v '^ *+' conftest.er1 >conftest.err
11414   rm -f conftest.er1
11415   cat conftest.err >&5
11416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11417   (exit $ac_status); } >/dev/null; then
11418   if test -s conftest.err; then
11419     ac_cpp_err=$ac_c_preproc_warn_flag
11420     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11421   else
11422     ac_cpp_err=
11423   fi
11424 else
11425   ac_cpp_err=yes
11426 fi
11427 if test -z "$ac_cpp_err"; then
11428   ac_header_preproc=yes
11429 else
11430   echo "$as_me: failed program was:" >&5
11431 sed 's/^/| /' conftest.$ac_ext >&5
11432
11433   ac_header_preproc=no
11434 fi
11435 rm -f conftest.err conftest.$ac_ext
11436 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11437 echo "${ECHO_T}$ac_header_preproc" >&6
11438
11439 # So?  What about this header?
11440 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11441   yes:no: )
11442     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
11443 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11444     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
11445 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
11446     ac_header_preproc=yes
11447     ;;
11448   no:yes:* )
11449     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
11450 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
11451     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&5
11452 echo "$as_me: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&2;}
11453     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
11454 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
11455     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&5
11456 echo "$as_me: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&2;}
11457     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
11458 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
11459     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
11460 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
11461     (
11462       cat <<\_ASBOX
11463 ## ------------------------------------------ ##
11464 ## Report this to the AC_PACKAGE_NAME lists.  ##
11465 ## ------------------------------------------ ##
11466 _ASBOX
11467     ) |
11468       sed "s/^/$as_me: WARNING:     /" >&2
11469     ;;
11470 esac
11471 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
11472 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
11473 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
11474   echo $ECHO_N "(cached) $ECHO_C" >&6
11475 else
11476   ac_cv_header_sys_mkdev_h=$ac_header_preproc
11477 fi
11478 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
11479 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
11480
11481 fi
11482 if test $ac_cv_header_sys_mkdev_h = yes; then
11483
11484 cat >>confdefs.h <<\_ACEOF
11485 #define MAJOR_IN_MKDEV 1
11486 _ACEOF
11487
11488 fi
11489
11490
11491
11492   if test $ac_cv_header_sys_mkdev_h = no; then
11493     if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
11494   echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
11495 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
11496 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
11497   echo $ECHO_N "(cached) $ECHO_C" >&6
11498 fi
11499 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
11500 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
11501 else
11502   # Is the header compilable?
11503 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
11504 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
11505 cat >conftest.$ac_ext <<_ACEOF
11506 /* confdefs.h.  */
11507 _ACEOF
11508 cat confdefs.h >>conftest.$ac_ext
11509 cat >>conftest.$ac_ext <<_ACEOF
11510 /* end confdefs.h.  */
11511 $ac_includes_default
11512 #include <sys/sysmacros.h>
11513 _ACEOF
11514 rm -f conftest.$ac_objext
11515 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11516   (eval $ac_compile) 2>conftest.er1
11517   ac_status=$?
11518   grep -v '^ *+' conftest.er1 >conftest.err
11519   rm -f conftest.er1
11520   cat conftest.err >&5
11521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11522   (exit $ac_status); } &&
11523          { ac_try='test -z "$ac_c_werror_flag"
11524                          || test ! -s conftest.err'
11525   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11526   (eval $ac_try) 2>&5
11527   ac_status=$?
11528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11529   (exit $ac_status); }; } &&
11530          { ac_try='test -s conftest.$ac_objext'
11531   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11532   (eval $ac_try) 2>&5
11533   ac_status=$?
11534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11535   (exit $ac_status); }; }; then
11536   ac_header_compiler=yes
11537 else
11538   echo "$as_me: failed program was:" >&5
11539 sed 's/^/| /' conftest.$ac_ext >&5
11540
11541 ac_header_compiler=no
11542 fi
11543 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11544 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11545 echo "${ECHO_T}$ac_header_compiler" >&6
11546
11547 # Is the header present?
11548 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
11549 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
11550 cat >conftest.$ac_ext <<_ACEOF
11551 /* confdefs.h.  */
11552 _ACEOF
11553 cat confdefs.h >>conftest.$ac_ext
11554 cat >>conftest.$ac_ext <<_ACEOF
11555 /* end confdefs.h.  */
11556 #include <sys/sysmacros.h>
11557 _ACEOF
11558 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11559   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11560   ac_status=$?
11561   grep -v '^ *+' conftest.er1 >conftest.err
11562   rm -f conftest.er1
11563   cat conftest.err >&5
11564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11565   (exit $ac_status); } >/dev/null; then
11566   if test -s conftest.err; then
11567     ac_cpp_err=$ac_c_preproc_warn_flag
11568     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11569   else
11570     ac_cpp_err=
11571   fi
11572 else
11573   ac_cpp_err=yes
11574 fi
11575 if test -z "$ac_cpp_err"; then
11576   ac_header_preproc=yes
11577 else
11578   echo "$as_me: failed program was:" >&5
11579 sed 's/^/| /' conftest.$ac_ext >&5
11580
11581   ac_header_preproc=no
11582 fi
11583 rm -f conftest.err conftest.$ac_ext
11584 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11585 echo "${ECHO_T}$ac_header_preproc" >&6
11586
11587 # So?  What about this header?
11588 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11589   yes:no: )
11590     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
11591 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11592     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
11593 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
11594     ac_header_preproc=yes
11595     ;;
11596   no:yes:* )
11597     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
11598 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
11599     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&5
11600 echo "$as_me: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&2;}
11601     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
11602 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
11603     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&5
11604 echo "$as_me: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&2;}
11605     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
11606 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
11607     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
11608 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
11609     (
11610       cat <<\_ASBOX
11611 ## ------------------------------------------ ##
11612 ## Report this to the AC_PACKAGE_NAME lists.  ##
11613 ## ------------------------------------------ ##
11614 _ASBOX
11615     ) |
11616       sed "s/^/$as_me: WARNING:     /" >&2
11617     ;;
11618 esac
11619 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
11620 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
11621 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
11622   echo $ECHO_N "(cached) $ECHO_C" >&6
11623 else
11624   ac_cv_header_sys_sysmacros_h=$ac_header_preproc
11625 fi
11626 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
11627 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
11628
11629 fi
11630 if test $ac_cv_header_sys_sysmacros_h = yes; then
11631
11632 cat >>confdefs.h <<\_ACEOF
11633 #define MAJOR_IN_SYSMACROS 1
11634 _ACEOF
11635
11636 fi
11637
11638
11639   fi
11640 fi
11641
11642
11643
11644
11645
11646
11647 ac_header_dirent=no
11648 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
11649   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
11650 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
11651 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
11652 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11653   echo $ECHO_N "(cached) $ECHO_C" >&6
11654 else
11655   cat >conftest.$ac_ext <<_ACEOF
11656 /* confdefs.h.  */
11657 _ACEOF
11658 cat confdefs.h >>conftest.$ac_ext
11659 cat >>conftest.$ac_ext <<_ACEOF
11660 /* end confdefs.h.  */
11661 #include <sys/types.h>
11662 #include <$ac_hdr>
11663
11664 int
11665 main ()
11666 {
11667 if ((DIR *) 0)
11668 return 0;
11669   ;
11670   return 0;
11671 }
11672 _ACEOF
11673 rm -f conftest.$ac_objext
11674 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11675   (eval $ac_compile) 2>conftest.er1
11676   ac_status=$?
11677   grep -v '^ *+' conftest.er1 >conftest.err
11678   rm -f conftest.er1
11679   cat conftest.err >&5
11680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11681   (exit $ac_status); } &&
11682          { ac_try='test -z "$ac_c_werror_flag"
11683                          || test ! -s conftest.err'
11684   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11685   (eval $ac_try) 2>&5
11686   ac_status=$?
11687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11688   (exit $ac_status); }; } &&
11689          { ac_try='test -s conftest.$ac_objext'
11690   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11691   (eval $ac_try) 2>&5
11692   ac_status=$?
11693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11694   (exit $ac_status); }; }; then
11695   eval "$as_ac_Header=yes"
11696 else
11697   echo "$as_me: failed program was:" >&5
11698 sed 's/^/| /' conftest.$ac_ext >&5
11699
11700 eval "$as_ac_Header=no"
11701 fi
11702 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11703 fi
11704 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11705 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11706 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11707   cat >>confdefs.h <<_ACEOF
11708 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
11709 _ACEOF
11710
11711 ac_header_dirent=$ac_hdr; break
11712 fi
11713
11714 done
11715 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
11716 if test $ac_header_dirent = dirent.h; then
11717   echo "$as_me:$LINENO: checking for library containing opendir" >&5
11718 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
11719 if test "${ac_cv_search_opendir+set}" = set; then
11720   echo $ECHO_N "(cached) $ECHO_C" >&6
11721 else
11722   ac_func_search_save_LIBS=$LIBS
11723 ac_cv_search_opendir=no
11724 cat >conftest.$ac_ext <<_ACEOF
11725 /* confdefs.h.  */
11726 _ACEOF
11727 cat confdefs.h >>conftest.$ac_ext
11728 cat >>conftest.$ac_ext <<_ACEOF
11729 /* end confdefs.h.  */
11730
11731 /* Override any gcc2 internal prototype to avoid an error.  */
11732 #ifdef __cplusplus
11733 extern "C"
11734 #endif
11735 /* We use char because int might match the return type of a gcc2
11736    builtin and then its argument prototype would still apply.  */
11737 char opendir ();
11738 int
11739 main ()
11740 {
11741 opendir ();
11742   ;
11743   return 0;
11744 }
11745 _ACEOF
11746 rm -f conftest.$ac_objext conftest$ac_exeext
11747 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11748   (eval $ac_link) 2>conftest.er1
11749   ac_status=$?
11750   grep -v '^ *+' conftest.er1 >conftest.err
11751   rm -f conftest.er1
11752   cat conftest.err >&5
11753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11754   (exit $ac_status); } &&
11755          { ac_try='test -z "$ac_c_werror_flag"
11756                          || test ! -s conftest.err'
11757   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11758   (eval $ac_try) 2>&5
11759   ac_status=$?
11760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11761   (exit $ac_status); }; } &&
11762          { ac_try='test -s conftest$ac_exeext'
11763   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11764   (eval $ac_try) 2>&5
11765   ac_status=$?
11766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11767   (exit $ac_status); }; }; then
11768   ac_cv_search_opendir="none required"
11769 else
11770   echo "$as_me: failed program was:" >&5
11771 sed 's/^/| /' conftest.$ac_ext >&5
11772
11773 fi
11774 rm -f conftest.err conftest.$ac_objext \
11775       conftest$ac_exeext conftest.$ac_ext
11776 if test "$ac_cv_search_opendir" = no; then
11777   for ac_lib in dir; do
11778     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11779     cat >conftest.$ac_ext <<_ACEOF
11780 /* confdefs.h.  */
11781 _ACEOF
11782 cat confdefs.h >>conftest.$ac_ext
11783 cat >>conftest.$ac_ext <<_ACEOF
11784 /* end confdefs.h.  */
11785
11786 /* Override any gcc2 internal prototype to avoid an error.  */
11787 #ifdef __cplusplus
11788 extern "C"
11789 #endif
11790 /* We use char because int might match the return type of a gcc2
11791    builtin and then its argument prototype would still apply.  */
11792 char opendir ();
11793 int
11794 main ()
11795 {
11796 opendir ();
11797   ;
11798   return 0;
11799 }
11800 _ACEOF
11801 rm -f conftest.$ac_objext conftest$ac_exeext
11802 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11803   (eval $ac_link) 2>conftest.er1
11804   ac_status=$?
11805   grep -v '^ *+' conftest.er1 >conftest.err
11806   rm -f conftest.er1
11807   cat conftest.err >&5
11808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11809   (exit $ac_status); } &&
11810          { ac_try='test -z "$ac_c_werror_flag"
11811                          || test ! -s conftest.err'
11812   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11813   (eval $ac_try) 2>&5
11814   ac_status=$?
11815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11816   (exit $ac_status); }; } &&
11817          { ac_try='test -s conftest$ac_exeext'
11818   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11819   (eval $ac_try) 2>&5
11820   ac_status=$?
11821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11822   (exit $ac_status); }; }; then
11823   ac_cv_search_opendir="-l$ac_lib"
11824 break
11825 else
11826   echo "$as_me: failed program was:" >&5
11827 sed 's/^/| /' conftest.$ac_ext >&5
11828
11829 fi
11830 rm -f conftest.err conftest.$ac_objext \
11831       conftest$ac_exeext conftest.$ac_ext
11832   done
11833 fi
11834 LIBS=$ac_func_search_save_LIBS
11835 fi
11836 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11837 echo "${ECHO_T}$ac_cv_search_opendir" >&6
11838 if test "$ac_cv_search_opendir" != no; then
11839   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
11840
11841 fi
11842
11843 else
11844   echo "$as_me:$LINENO: checking for library containing opendir" >&5
11845 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
11846 if test "${ac_cv_search_opendir+set}" = set; then
11847   echo $ECHO_N "(cached) $ECHO_C" >&6
11848 else
11849   ac_func_search_save_LIBS=$LIBS
11850 ac_cv_search_opendir=no
11851 cat >conftest.$ac_ext <<_ACEOF
11852 /* confdefs.h.  */
11853 _ACEOF
11854 cat confdefs.h >>conftest.$ac_ext
11855 cat >>conftest.$ac_ext <<_ACEOF
11856 /* end confdefs.h.  */
11857
11858 /* Override any gcc2 internal prototype to avoid an error.  */
11859 #ifdef __cplusplus
11860 extern "C"
11861 #endif
11862 /* We use char because int might match the return type of a gcc2
11863    builtin and then its argument prototype would still apply.  */
11864 char opendir ();
11865 int
11866 main ()
11867 {
11868 opendir ();
11869   ;
11870   return 0;
11871 }
11872 _ACEOF
11873 rm -f conftest.$ac_objext conftest$ac_exeext
11874 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11875   (eval $ac_link) 2>conftest.er1
11876   ac_status=$?
11877   grep -v '^ *+' conftest.er1 >conftest.err
11878   rm -f conftest.er1
11879   cat conftest.err >&5
11880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11881   (exit $ac_status); } &&
11882          { ac_try='test -z "$ac_c_werror_flag"
11883                          || test ! -s conftest.err'
11884   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11885   (eval $ac_try) 2>&5
11886   ac_status=$?
11887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11888   (exit $ac_status); }; } &&
11889          { ac_try='test -s conftest$ac_exeext'
11890   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11891   (eval $ac_try) 2>&5
11892   ac_status=$?
11893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11894   (exit $ac_status); }; }; then
11895   ac_cv_search_opendir="none required"
11896 else
11897   echo "$as_me: failed program was:" >&5
11898 sed 's/^/| /' conftest.$ac_ext >&5
11899
11900 fi
11901 rm -f conftest.err conftest.$ac_objext \
11902       conftest$ac_exeext conftest.$ac_ext
11903 if test "$ac_cv_search_opendir" = no; then
11904   for ac_lib in x; do
11905     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11906     cat >conftest.$ac_ext <<_ACEOF
11907 /* confdefs.h.  */
11908 _ACEOF
11909 cat confdefs.h >>conftest.$ac_ext
11910 cat >>conftest.$ac_ext <<_ACEOF
11911 /* end confdefs.h.  */
11912
11913 /* Override any gcc2 internal prototype to avoid an error.  */
11914 #ifdef __cplusplus
11915 extern "C"
11916 #endif
11917 /* We use char because int might match the return type of a gcc2
11918    builtin and then its argument prototype would still apply.  */
11919 char opendir ();
11920 int
11921 main ()
11922 {
11923 opendir ();
11924   ;
11925   return 0;
11926 }
11927 _ACEOF
11928 rm -f conftest.$ac_objext conftest$ac_exeext
11929 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11930   (eval $ac_link) 2>conftest.er1
11931   ac_status=$?
11932   grep -v '^ *+' conftest.er1 >conftest.err
11933   rm -f conftest.er1
11934   cat conftest.err >&5
11935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11936   (exit $ac_status); } &&
11937          { ac_try='test -z "$ac_c_werror_flag"
11938                          || test ! -s conftest.err'
11939   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11940   (eval $ac_try) 2>&5
11941   ac_status=$?
11942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11943   (exit $ac_status); }; } &&
11944          { ac_try='test -s conftest$ac_exeext'
11945   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11946   (eval $ac_try) 2>&5
11947   ac_status=$?
11948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11949   (exit $ac_status); }; }; then
11950   ac_cv_search_opendir="-l$ac_lib"
11951 break
11952 else
11953   echo "$as_me: failed program was:" >&5
11954 sed 's/^/| /' conftest.$ac_ext >&5
11955
11956 fi
11957 rm -f conftest.err conftest.$ac_objext \
11958       conftest$ac_exeext conftest.$ac_ext
11959   done
11960 fi
11961 LIBS=$ac_func_search_save_LIBS
11962 fi
11963 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11964 echo "${ECHO_T}$ac_cv_search_opendir" >&6
11965 if test "$ac_cv_search_opendir" != no; then
11966   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
11967
11968 fi
11969
11970 fi
11971
11972 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
11973 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
11974 if test "${ac_cv_header_stat_broken+set}" = set; then
11975   echo $ECHO_N "(cached) $ECHO_C" >&6
11976 else
11977   cat >conftest.$ac_ext <<_ACEOF
11978 /* confdefs.h.  */
11979 _ACEOF
11980 cat confdefs.h >>conftest.$ac_ext
11981 cat >>conftest.$ac_ext <<_ACEOF
11982 /* end confdefs.h.  */
11983 #include <sys/types.h>
11984 #include <sys/stat.h>
11985
11986 #if defined(S_ISBLK) && defined(S_IFDIR)
11987 # if S_ISBLK (S_IFDIR)
11988 You lose.
11989 # endif
11990 #endif
11991
11992 #if defined(S_ISBLK) && defined(S_IFCHR)
11993 # if S_ISBLK (S_IFCHR)
11994 You lose.
11995 # endif
11996 #endif
11997
11998 #if defined(S_ISLNK) && defined(S_IFREG)
11999 # if S_ISLNK (S_IFREG)
12000 You lose.
12001 # endif
12002 #endif
12003
12004 #if defined(S_ISSOCK) && defined(S_IFREG)
12005 # if S_ISSOCK (S_IFREG)
12006 You lose.
12007 # endif
12008 #endif
12009
12010 _ACEOF
12011 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12012   $EGREP "You lose" >/dev/null 2>&1; then
12013   ac_cv_header_stat_broken=yes
12014 else
12015   ac_cv_header_stat_broken=no
12016 fi
12017 rm -f conftest*
12018
12019 fi
12020 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
12021 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
12022 if test $ac_cv_header_stat_broken = yes; then
12023
12024 cat >>confdefs.h <<\_ACEOF
12025 #define STAT_MACROS_BROKEN 1
12026 _ACEOF
12027
12028 fi
12029
12030 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
12031 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
12032 if test "${ac_cv_header_sys_wait_h+set}" = set; then
12033   echo $ECHO_N "(cached) $ECHO_C" >&6
12034 else
12035   cat >conftest.$ac_ext <<_ACEOF
12036 /* confdefs.h.  */
12037 _ACEOF
12038 cat confdefs.h >>conftest.$ac_ext
12039 cat >>conftest.$ac_ext <<_ACEOF
12040 /* end confdefs.h.  */
12041 #include <sys/types.h>
12042 #include <sys/wait.h>
12043 #ifndef WEXITSTATUS
12044 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
12045 #endif
12046 #ifndef WIFEXITED
12047 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
12048 #endif
12049
12050 int
12051 main ()
12052 {
12053   int s;
12054   wait (&s);
12055   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
12056   ;
12057   return 0;
12058 }
12059 _ACEOF
12060 rm -f conftest.$ac_objext
12061 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12062   (eval $ac_compile) 2>conftest.er1
12063   ac_status=$?
12064   grep -v '^ *+' conftest.er1 >conftest.err
12065   rm -f conftest.er1
12066   cat conftest.err >&5
12067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12068   (exit $ac_status); } &&
12069          { ac_try='test -z "$ac_c_werror_flag"
12070                          || test ! -s conftest.err'
12071   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12072   (eval $ac_try) 2>&5
12073   ac_status=$?
12074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12075   (exit $ac_status); }; } &&
12076          { ac_try='test -s conftest.$ac_objext'
12077   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12078   (eval $ac_try) 2>&5
12079   ac_status=$?
12080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12081   (exit $ac_status); }; }; then
12082   ac_cv_header_sys_wait_h=yes
12083 else
12084   echo "$as_me: failed program was:" >&5
12085 sed 's/^/| /' conftest.$ac_ext >&5
12086
12087 ac_cv_header_sys_wait_h=no
12088 fi
12089 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12090 fi
12091 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
12092 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
12093 if test $ac_cv_header_sys_wait_h = yes; then
12094
12095 cat >>confdefs.h <<\_ACEOF
12096 #define HAVE_SYS_WAIT_H 1
12097 _ACEOF
12098
12099 fi
12100
12101 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
12102 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
12103 if test "${ac_cv_header_time+set}" = set; then
12104   echo $ECHO_N "(cached) $ECHO_C" >&6
12105 else
12106   cat >conftest.$ac_ext <<_ACEOF
12107 /* confdefs.h.  */
12108 _ACEOF
12109 cat confdefs.h >>conftest.$ac_ext
12110 cat >>conftest.$ac_ext <<_ACEOF
12111 /* end confdefs.h.  */
12112 #include <sys/types.h>
12113 #include <sys/time.h>
12114 #include <time.h>
12115
12116 int
12117 main ()
12118 {
12119 if ((struct tm *) 0)
12120 return 0;
12121   ;
12122   return 0;
12123 }
12124 _ACEOF
12125 rm -f conftest.$ac_objext
12126 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12127   (eval $ac_compile) 2>conftest.er1
12128   ac_status=$?
12129   grep -v '^ *+' conftest.er1 >conftest.err
12130   rm -f conftest.er1
12131   cat conftest.err >&5
12132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12133   (exit $ac_status); } &&
12134          { ac_try='test -z "$ac_c_werror_flag"
12135                          || test ! -s conftest.err'
12136   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12137   (eval $ac_try) 2>&5
12138   ac_status=$?
12139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12140   (exit $ac_status); }; } &&
12141          { ac_try='test -s conftest.$ac_objext'
12142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12143   (eval $ac_try) 2>&5
12144   ac_status=$?
12145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12146   (exit $ac_status); }; }; then
12147   ac_cv_header_time=yes
12148 else
12149   echo "$as_me: failed program was:" >&5
12150 sed 's/^/| /' conftest.$ac_ext >&5
12151
12152 ac_cv_header_time=no
12153 fi
12154 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12155 fi
12156 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
12157 echo "${ECHO_T}$ac_cv_header_time" >&6
12158 if test $ac_cv_header_time = yes; then
12159
12160 cat >>confdefs.h <<\_ACEOF
12161 #define TIME_WITH_SYS_TIME 1
12162 _ACEOF
12163
12164 fi
12165
12166
12167 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
12168 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
12169 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
12170   echo $ECHO_N "(cached) $ECHO_C" >&6
12171 else
12172   cat >conftest.$ac_ext <<_ACEOF
12173 /* confdefs.h.  */
12174 _ACEOF
12175 cat confdefs.h >>conftest.$ac_ext
12176 cat >>conftest.$ac_ext <<_ACEOF
12177 /* end confdefs.h.  */
12178 $ac_includes_default
12179 int
12180 main ()
12181 {
12182 static struct stat ac_aggr;
12183 if (ac_aggr.st_blksize)
12184 return 0;
12185   ;
12186   return 0;
12187 }
12188 _ACEOF
12189 rm -f conftest.$ac_objext
12190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12191   (eval $ac_compile) 2>conftest.er1
12192   ac_status=$?
12193   grep -v '^ *+' conftest.er1 >conftest.err
12194   rm -f conftest.er1
12195   cat conftest.err >&5
12196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12197   (exit $ac_status); } &&
12198          { ac_try='test -z "$ac_c_werror_flag"
12199                          || test ! -s conftest.err'
12200   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12201   (eval $ac_try) 2>&5
12202   ac_status=$?
12203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12204   (exit $ac_status); }; } &&
12205          { ac_try='test -s conftest.$ac_objext'
12206   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12207   (eval $ac_try) 2>&5
12208   ac_status=$?
12209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12210   (exit $ac_status); }; }; then
12211   ac_cv_member_struct_stat_st_blksize=yes
12212 else
12213   echo "$as_me: failed program was:" >&5
12214 sed 's/^/| /' conftest.$ac_ext >&5
12215
12216 cat >conftest.$ac_ext <<_ACEOF
12217 /* confdefs.h.  */
12218 _ACEOF
12219 cat confdefs.h >>conftest.$ac_ext
12220 cat >>conftest.$ac_ext <<_ACEOF
12221 /* end confdefs.h.  */
12222 $ac_includes_default
12223 int
12224 main ()
12225 {
12226 static struct stat ac_aggr;
12227 if (sizeof ac_aggr.st_blksize)
12228 return 0;
12229   ;
12230   return 0;
12231 }
12232 _ACEOF
12233 rm -f conftest.$ac_objext
12234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12235   (eval $ac_compile) 2>conftest.er1
12236   ac_status=$?
12237   grep -v '^ *+' conftest.er1 >conftest.err
12238   rm -f conftest.er1
12239   cat conftest.err >&5
12240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12241   (exit $ac_status); } &&
12242          { ac_try='test -z "$ac_c_werror_flag"
12243                          || test ! -s conftest.err'
12244   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12245   (eval $ac_try) 2>&5
12246   ac_status=$?
12247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12248   (exit $ac_status); }; } &&
12249          { ac_try='test -s conftest.$ac_objext'
12250   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12251   (eval $ac_try) 2>&5
12252   ac_status=$?
12253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12254   (exit $ac_status); }; }; then
12255   ac_cv_member_struct_stat_st_blksize=yes
12256 else
12257   echo "$as_me: failed program was:" >&5
12258 sed 's/^/| /' conftest.$ac_ext >&5
12259
12260 ac_cv_member_struct_stat_st_blksize=no
12261 fi
12262 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12263 fi
12264 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12265 fi
12266 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
12267 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
12268 if test $ac_cv_member_struct_stat_st_blksize = yes; then
12269
12270 cat >>confdefs.h <<_ACEOF
12271 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
12272 _ACEOF
12273
12274
12275 cat >>confdefs.h <<\_ACEOF
12276 #define HAVE_ST_BLKSIZE 1
12277 _ACEOF
12278
12279 fi
12280
12281
12282 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
12283 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
12284 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
12285   echo $ECHO_N "(cached) $ECHO_C" >&6
12286 else
12287   cat >conftest.$ac_ext <<_ACEOF
12288 /* confdefs.h.  */
12289 _ACEOF
12290 cat confdefs.h >>conftest.$ac_ext
12291 cat >>conftest.$ac_ext <<_ACEOF
12292 /* end confdefs.h.  */
12293 $ac_includes_default
12294 int
12295 main ()
12296 {
12297 static struct stat ac_aggr;
12298 if (ac_aggr.st_blocks)
12299 return 0;
12300   ;
12301   return 0;
12302 }
12303 _ACEOF
12304 rm -f conftest.$ac_objext
12305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12306   (eval $ac_compile) 2>conftest.er1
12307   ac_status=$?
12308   grep -v '^ *+' conftest.er1 >conftest.err
12309   rm -f conftest.er1
12310   cat conftest.err >&5
12311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12312   (exit $ac_status); } &&
12313          { ac_try='test -z "$ac_c_werror_flag"
12314                          || test ! -s conftest.err'
12315   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12316   (eval $ac_try) 2>&5
12317   ac_status=$?
12318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12319   (exit $ac_status); }; } &&
12320          { ac_try='test -s conftest.$ac_objext'
12321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12322   (eval $ac_try) 2>&5
12323   ac_status=$?
12324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12325   (exit $ac_status); }; }; then
12326   ac_cv_member_struct_stat_st_blocks=yes
12327 else
12328   echo "$as_me: failed program was:" >&5
12329 sed 's/^/| /' conftest.$ac_ext >&5
12330
12331 cat >conftest.$ac_ext <<_ACEOF
12332 /* confdefs.h.  */
12333 _ACEOF
12334 cat confdefs.h >>conftest.$ac_ext
12335 cat >>conftest.$ac_ext <<_ACEOF
12336 /* end confdefs.h.  */
12337 $ac_includes_default
12338 int
12339 main ()
12340 {
12341 static struct stat ac_aggr;
12342 if (sizeof ac_aggr.st_blocks)
12343 return 0;
12344   ;
12345   return 0;
12346 }
12347 _ACEOF
12348 rm -f conftest.$ac_objext
12349 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12350   (eval $ac_compile) 2>conftest.er1
12351   ac_status=$?
12352   grep -v '^ *+' conftest.er1 >conftest.err
12353   rm -f conftest.er1
12354   cat conftest.err >&5
12355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12356   (exit $ac_status); } &&
12357          { ac_try='test -z "$ac_c_werror_flag"
12358                          || test ! -s conftest.err'
12359   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12360   (eval $ac_try) 2>&5
12361   ac_status=$?
12362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12363   (exit $ac_status); }; } &&
12364          { ac_try='test -s conftest.$ac_objext'
12365   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12366   (eval $ac_try) 2>&5
12367   ac_status=$?
12368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12369   (exit $ac_status); }; }; then
12370   ac_cv_member_struct_stat_st_blocks=yes
12371 else
12372   echo "$as_me: failed program was:" >&5
12373 sed 's/^/| /' conftest.$ac_ext >&5
12374
12375 ac_cv_member_struct_stat_st_blocks=no
12376 fi
12377 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12378 fi
12379 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12380 fi
12381 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
12382 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
12383 if test $ac_cv_member_struct_stat_st_blocks = yes; then
12384
12385 cat >>confdefs.h <<_ACEOF
12386 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
12387 _ACEOF
12388
12389
12390 cat >>confdefs.h <<\_ACEOF
12391 #define HAVE_ST_BLOCKS 1
12392 _ACEOF
12393
12394 else
12395   case $LIBOBJS in
12396     "fileblocks.$ac_objext"   | \
12397   *" fileblocks.$ac_objext"   | \
12398     "fileblocks.$ac_objext "* | \
12399   *" fileblocks.$ac_objext "* ) ;;
12400   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;;
12401 esac
12402
12403 fi
12404
12405
12406 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
12407 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
12408 if test "${ac_cv_struct_tm+set}" = set; then
12409   echo $ECHO_N "(cached) $ECHO_C" >&6
12410 else
12411   cat >conftest.$ac_ext <<_ACEOF
12412 /* confdefs.h.  */
12413 _ACEOF
12414 cat confdefs.h >>conftest.$ac_ext
12415 cat >>conftest.$ac_ext <<_ACEOF
12416 /* end confdefs.h.  */
12417 #include <sys/types.h>
12418 #include <time.h>
12419
12420 int
12421 main ()
12422 {
12423 struct tm *tp; tp->tm_sec;
12424   ;
12425   return 0;
12426 }
12427 _ACEOF
12428 rm -f conftest.$ac_objext
12429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12430   (eval $ac_compile) 2>conftest.er1
12431   ac_status=$?
12432   grep -v '^ *+' conftest.er1 >conftest.err
12433   rm -f conftest.er1
12434   cat conftest.err >&5
12435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12436   (exit $ac_status); } &&
12437          { ac_try='test -z "$ac_c_werror_flag"
12438                          || test ! -s conftest.err'
12439   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12440   (eval $ac_try) 2>&5
12441   ac_status=$?
12442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12443   (exit $ac_status); }; } &&
12444          { ac_try='test -s conftest.$ac_objext'
12445   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12446   (eval $ac_try) 2>&5
12447   ac_status=$?
12448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12449   (exit $ac_status); }; }; then
12450   ac_cv_struct_tm=time.h
12451 else
12452   echo "$as_me: failed program was:" >&5
12453 sed 's/^/| /' conftest.$ac_ext >&5
12454
12455 ac_cv_struct_tm=sys/time.h
12456 fi
12457 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12458 fi
12459 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
12460 echo "${ECHO_T}$ac_cv_struct_tm" >&6
12461 if test $ac_cv_struct_tm = sys/time.h; then
12462
12463 cat >>confdefs.h <<\_ACEOF
12464 #define TM_IN_SYS_TIME 1
12465 _ACEOF
12466
12467 fi
12468
12469 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
12470 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
12471 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
12472   echo $ECHO_N "(cached) $ECHO_C" >&6
12473 else
12474   cat >conftest.$ac_ext <<_ACEOF
12475 /* confdefs.h.  */
12476 _ACEOF
12477 cat confdefs.h >>conftest.$ac_ext
12478 cat >>conftest.$ac_ext <<_ACEOF
12479 /* end confdefs.h.  */
12480 #include <sys/types.h>
12481 #include <$ac_cv_struct_tm>
12482
12483
12484 int
12485 main ()
12486 {
12487 static struct tm ac_aggr;
12488 if (ac_aggr.tm_zone)
12489 return 0;
12490   ;
12491   return 0;
12492 }
12493 _ACEOF
12494 rm -f conftest.$ac_objext
12495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12496   (eval $ac_compile) 2>conftest.er1
12497   ac_status=$?
12498   grep -v '^ *+' conftest.er1 >conftest.err
12499   rm -f conftest.er1
12500   cat conftest.err >&5
12501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12502   (exit $ac_status); } &&
12503          { ac_try='test -z "$ac_c_werror_flag"
12504                          || test ! -s conftest.err'
12505   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12506   (eval $ac_try) 2>&5
12507   ac_status=$?
12508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12509   (exit $ac_status); }; } &&
12510          { ac_try='test -s conftest.$ac_objext'
12511   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12512   (eval $ac_try) 2>&5
12513   ac_status=$?
12514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12515   (exit $ac_status); }; }; then
12516   ac_cv_member_struct_tm_tm_zone=yes
12517 else
12518   echo "$as_me: failed program was:" >&5
12519 sed 's/^/| /' conftest.$ac_ext >&5
12520
12521 cat >conftest.$ac_ext <<_ACEOF
12522 /* confdefs.h.  */
12523 _ACEOF
12524 cat confdefs.h >>conftest.$ac_ext
12525 cat >>conftest.$ac_ext <<_ACEOF
12526 /* end confdefs.h.  */
12527 #include <sys/types.h>
12528 #include <$ac_cv_struct_tm>
12529
12530
12531 int
12532 main ()
12533 {
12534 static struct tm ac_aggr;
12535 if (sizeof ac_aggr.tm_zone)
12536 return 0;
12537   ;
12538   return 0;
12539 }
12540 _ACEOF
12541 rm -f conftest.$ac_objext
12542 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12543   (eval $ac_compile) 2>conftest.er1
12544   ac_status=$?
12545   grep -v '^ *+' conftest.er1 >conftest.err
12546   rm -f conftest.er1
12547   cat conftest.err >&5
12548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12549   (exit $ac_status); } &&
12550          { ac_try='test -z "$ac_c_werror_flag"
12551                          || test ! -s conftest.err'
12552   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12553   (eval $ac_try) 2>&5
12554   ac_status=$?
12555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12556   (exit $ac_status); }; } &&
12557          { ac_try='test -s conftest.$ac_objext'
12558   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12559   (eval $ac_try) 2>&5
12560   ac_status=$?
12561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12562   (exit $ac_status); }; }; then
12563   ac_cv_member_struct_tm_tm_zone=yes
12564 else
12565   echo "$as_me: failed program was:" >&5
12566 sed 's/^/| /' conftest.$ac_ext >&5
12567
12568 ac_cv_member_struct_tm_tm_zone=no
12569 fi
12570 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12571 fi
12572 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12573 fi
12574 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
12575 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
12576 if test $ac_cv_member_struct_tm_tm_zone = yes; then
12577
12578 cat >>confdefs.h <<_ACEOF
12579 #define HAVE_STRUCT_TM_TM_ZONE 1
12580 _ACEOF
12581
12582
12583 fi
12584
12585 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
12586
12587 cat >>confdefs.h <<\_ACEOF
12588 #define HAVE_TM_ZONE 1
12589 _ACEOF
12590
12591 else
12592   echo "$as_me:$LINENO: checking for tzname" >&5
12593 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
12594 if test "${ac_cv_var_tzname+set}" = set; then
12595   echo $ECHO_N "(cached) $ECHO_C" >&6
12596 else
12597   cat >conftest.$ac_ext <<_ACEOF
12598 /* confdefs.h.  */
12599 _ACEOF
12600 cat confdefs.h >>conftest.$ac_ext
12601 cat >>conftest.$ac_ext <<_ACEOF
12602 /* end confdefs.h.  */
12603 #include <time.h>
12604 #ifndef tzname /* For SGI.  */
12605 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
12606 #endif
12607
12608 int
12609 main ()
12610 {
12611 atoi(*tzname);
12612   ;
12613   return 0;
12614 }
12615 _ACEOF
12616 rm -f conftest.$ac_objext conftest$ac_exeext
12617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12618   (eval $ac_link) 2>conftest.er1
12619   ac_status=$?
12620   grep -v '^ *+' conftest.er1 >conftest.err
12621   rm -f conftest.er1
12622   cat conftest.err >&5
12623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12624   (exit $ac_status); } &&
12625          { ac_try='test -z "$ac_c_werror_flag"
12626                          || test ! -s conftest.err'
12627   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12628   (eval $ac_try) 2>&5
12629   ac_status=$?
12630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12631   (exit $ac_status); }; } &&
12632          { ac_try='test -s conftest$ac_exeext'
12633   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12634   (eval $ac_try) 2>&5
12635   ac_status=$?
12636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12637   (exit $ac_status); }; }; then
12638   ac_cv_var_tzname=yes
12639 else
12640   echo "$as_me: failed program was:" >&5
12641 sed 's/^/| /' conftest.$ac_ext >&5
12642
12643 ac_cv_var_tzname=no
12644 fi
12645 rm -f conftest.err conftest.$ac_objext \
12646       conftest$ac_exeext conftest.$ac_ext
12647 fi
12648 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
12649 echo "${ECHO_T}$ac_cv_var_tzname" >&6
12650   if test $ac_cv_var_tzname = yes; then
12651
12652 cat >>confdefs.h <<\_ACEOF
12653 #define HAVE_TZNAME 1
12654 _ACEOF
12655
12656   fi
12657 fi
12658
12659
12660 echo "$as_me:$LINENO: checking for utime.h" >&5
12661 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6
12662 if test "${ba_cv_header_utime_h+set}" = set; then
12663   echo $ECHO_N "(cached) $ECHO_C" >&6
12664 else
12665   cat >conftest.$ac_ext <<_ACEOF
12666 /* confdefs.h.  */
12667 _ACEOF
12668 cat confdefs.h >>conftest.$ac_ext
12669 cat >>conftest.$ac_ext <<_ACEOF
12670 /* end confdefs.h.  */
12671
12672 #include <sys/types.h>
12673 #include <utime.h>
12674 int
12675 main ()
12676 {
12677 struct utimbuf foo
12678   ;
12679   return 0;
12680 }
12681 _ACEOF
12682 rm -f conftest.$ac_objext
12683 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12684   (eval $ac_compile) 2>conftest.er1
12685   ac_status=$?
12686   grep -v '^ *+' conftest.er1 >conftest.err
12687   rm -f conftest.er1
12688   cat conftest.err >&5
12689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12690   (exit $ac_status); } &&
12691          { ac_try='test -z "$ac_c_werror_flag"
12692                          || test ! -s conftest.err'
12693   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12694   (eval $ac_try) 2>&5
12695   ac_status=$?
12696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12697   (exit $ac_status); }; } &&
12698          { ac_try='test -s conftest.$ac_objext'
12699   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12700   (eval $ac_try) 2>&5
12701   ac_status=$?
12702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12703   (exit $ac_status); }; }; then
12704   ba_cv_header_utime_h=yes
12705 else
12706   echo "$as_me: failed program was:" >&5
12707 sed 's/^/| /' conftest.$ac_ext >&5
12708
12709 ba_cv_header_utime_h=no
12710 fi
12711 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12712 fi
12713 echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
12714 echo "${ECHO_T}$ba_cv_header_utime_h" >&6
12715 test $ba_cv_header_utime_h = yes && cat >>confdefs.h <<\_ACEOF
12716 #define HAVE_UTIME_H 1
12717 _ACEOF
12718
12719
12720 echo "$as_me:$LINENO: checking for socklen_t" >&5
12721 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
12722 if test "${ba_cv_header_socklen_t+set}" = set; then
12723   echo $ECHO_N "(cached) $ECHO_C" >&6
12724 else
12725   cat >conftest.$ac_ext <<_ACEOF
12726 /* confdefs.h.  */
12727 _ACEOF
12728 cat confdefs.h >>conftest.$ac_ext
12729 cat >>conftest.$ac_ext <<_ACEOF
12730 /* end confdefs.h.  */
12731
12732 #include <sys/types.h>
12733 #include <sys/socket.h>
12734 int
12735 main ()
12736 {
12737 socklen_t x
12738   ;
12739   return 0;
12740 }
12741 _ACEOF
12742 rm -f conftest.$ac_objext
12743 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12744   (eval $ac_compile) 2>conftest.er1
12745   ac_status=$?
12746   grep -v '^ *+' conftest.er1 >conftest.err
12747   rm -f conftest.er1
12748   cat conftest.err >&5
12749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12750   (exit $ac_status); } &&
12751          { ac_try='test -z "$ac_c_werror_flag"
12752                          || test ! -s conftest.err'
12753   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12754   (eval $ac_try) 2>&5
12755   ac_status=$?
12756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12757   (exit $ac_status); }; } &&
12758          { ac_try='test -s conftest.$ac_objext'
12759   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12760   (eval $ac_try) 2>&5
12761   ac_status=$?
12762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12763   (exit $ac_status); }; }; then
12764   ba_cv_header_socklen_t=yes
12765 else
12766   echo "$as_me: failed program was:" >&5
12767 sed 's/^/| /' conftest.$ac_ext >&5
12768
12769 ba_cv_header_socklen_t=no
12770 fi
12771 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12772 fi
12773 echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
12774 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6
12775 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
12776 #define HAVE_SOCKLEN_T 1
12777 _ACEOF
12778
12779
12780 echo "$as_me:$LINENO: checking for bigendian" >&5
12781 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6
12782 if test "${ba_cv_bigendian+set}" = set; then
12783   echo $ECHO_N "(cached) $ECHO_C" >&6
12784 else
12785   if test "$cross_compiling" = yes; then
12786   ba_cv_bigendian=no
12787 else
12788   cat >conftest.$ac_ext <<_ACEOF
12789 /* confdefs.h.  */
12790 _ACEOF
12791 cat confdefs.h >>conftest.$ac_ext
12792 cat >>conftest.$ac_ext <<_ACEOF
12793 /* end confdefs.h.  */
12794 main(){long a=1L; char *p=(char *)&a; exit(*p);}
12795 _ACEOF
12796 rm -f conftest$ac_exeext
12797 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12798   (eval $ac_link) 2>&5
12799   ac_status=$?
12800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12801   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12802   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12803   (eval $ac_try) 2>&5
12804   ac_status=$?
12805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12806   (exit $ac_status); }; }; then
12807   ba_cv_bigendian=yes
12808 else
12809   echo "$as_me: program exited with status $ac_status" >&5
12810 echo "$as_me: failed program was:" >&5
12811 sed 's/^/| /' conftest.$ac_ext >&5
12812
12813 ( exit $ac_status )
12814 ba_cv_bigendian=no
12815 fi
12816 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12817 fi
12818 fi
12819 echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
12820 echo "${ECHO_T}$ba_cv_bigendian" >&6
12821 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
12822 #define HAVE_BIGENDIAN 1
12823 _ACEOF
12824
12825
12826
12827 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
12828 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
12829 if test "${ac_cv_c_const+set}" = set; then
12830   echo $ECHO_N "(cached) $ECHO_C" >&6
12831 else
12832   cat >conftest.$ac_ext <<_ACEOF
12833 /* confdefs.h.  */
12834 _ACEOF
12835 cat confdefs.h >>conftest.$ac_ext
12836 cat >>conftest.$ac_ext <<_ACEOF
12837 /* end confdefs.h.  */
12838
12839 int
12840 main ()
12841 {
12842 /* FIXME: Include the comments suggested by Paul. */
12843 #ifndef __cplusplus
12844   /* Ultrix mips cc rejects this.  */
12845   typedef int charset[2];
12846   const charset x;
12847   /* SunOS 4.1.1 cc rejects this.  */
12848   char const *const *ccp;
12849   char **p;
12850   /* NEC SVR4.0.2 mips cc rejects this.  */
12851   struct point {int x, y;};
12852   static struct point const zero = {0,0};
12853   /* AIX XL C 1.02.0.0 rejects this.
12854      It does not let you subtract one const X* pointer from another in
12855      an arm of an if-expression whose if-part is not a constant
12856      expression */
12857   const char *g = "string";
12858   ccp = &g + (g ? g-g : 0);
12859   /* HPUX 7.0 cc rejects these. */
12860   ++ccp;
12861   p = (char**) ccp;
12862   ccp = (char const *const *) p;
12863   { /* SCO 3.2v4 cc rejects this.  */
12864     char *t;
12865     char const *s = 0 ? (char *) 0 : (char const *) 0;
12866
12867     *t++ = 0;
12868   }
12869   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
12870     int x[] = {25, 17};
12871     const int *foo = &x[0];
12872     ++foo;
12873   }
12874   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12875     typedef const int *iptr;
12876     iptr p = 0;
12877     ++p;
12878   }
12879   { /* AIX XL C 1.02.0.0 rejects this saying
12880        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12881     struct s { int j; const int *ap[3]; };
12882     struct s *b; b->j = 5;
12883   }
12884   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12885     const int foo = 10;
12886   }
12887 #endif
12888
12889   ;
12890   return 0;
12891 }
12892 _ACEOF
12893 rm -f conftest.$ac_objext
12894 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12895   (eval $ac_compile) 2>conftest.er1
12896   ac_status=$?
12897   grep -v '^ *+' conftest.er1 >conftest.err
12898   rm -f conftest.er1
12899   cat conftest.err >&5
12900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12901   (exit $ac_status); } &&
12902          { ac_try='test -z "$ac_c_werror_flag"
12903                          || test ! -s conftest.err'
12904   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12905   (eval $ac_try) 2>&5
12906   ac_status=$?
12907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12908   (exit $ac_status); }; } &&
12909          { ac_try='test -s conftest.$ac_objext'
12910   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12911   (eval $ac_try) 2>&5
12912   ac_status=$?
12913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12914   (exit $ac_status); }; }; then
12915   ac_cv_c_const=yes
12916 else
12917   echo "$as_me: failed program was:" >&5
12918 sed 's/^/| /' conftest.$ac_ext >&5
12919
12920 ac_cv_c_const=no
12921 fi
12922 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12923 fi
12924 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
12925 echo "${ECHO_T}$ac_cv_c_const" >&6
12926 if test $ac_cv_c_const = no; then
12927
12928 cat >>confdefs.h <<\_ACEOF
12929 #define const
12930 _ACEOF
12931
12932 fi
12933
12934
12935
12936 echo "$as_me:$LINENO: checking how to get filesystem type" >&5
12937 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6
12938 fstype=no
12939 # The order of these tests is important.
12940 cat >conftest.$ac_ext <<_ACEOF
12941 /* confdefs.h.  */
12942 _ACEOF
12943 cat confdefs.h >>conftest.$ac_ext
12944 cat >>conftest.$ac_ext <<_ACEOF
12945 /* end confdefs.h.  */
12946 #include <sys/statvfs.h>
12947 #include <sys/fstyp.h>
12948 _ACEOF
12949 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12950   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12951   ac_status=$?
12952   grep -v '^ *+' conftest.er1 >conftest.err
12953   rm -f conftest.er1
12954   cat conftest.err >&5
12955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12956   (exit $ac_status); } >/dev/null; then
12957   if test -s conftest.err; then
12958     ac_cpp_err=$ac_c_preproc_warn_flag
12959     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12960   else
12961     ac_cpp_err=
12962   fi
12963 else
12964   ac_cpp_err=yes
12965 fi
12966 if test -z "$ac_cpp_err"; then
12967   cat >>confdefs.h <<\_ACEOF
12968 #define FSTYPE_STATVFS 1
12969 _ACEOF
12970  fstype=SVR4
12971 else
12972   echo "$as_me: failed program was:" >&5
12973 sed 's/^/| /' conftest.$ac_ext >&5
12974
12975
12976 fi
12977 rm -f conftest.err conftest.$ac_ext
12978 if test $fstype = no; then
12979 cat >conftest.$ac_ext <<_ACEOF
12980 /* confdefs.h.  */
12981 _ACEOF
12982 cat confdefs.h >>conftest.$ac_ext
12983 cat >>conftest.$ac_ext <<_ACEOF
12984 /* end confdefs.h.  */
12985 #include <sys/statfs.h>
12986 #include <sys/fstyp.h>
12987 _ACEOF
12988 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12989   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12990   ac_status=$?
12991   grep -v '^ *+' conftest.er1 >conftest.err
12992   rm -f conftest.er1
12993   cat conftest.err >&5
12994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12995   (exit $ac_status); } >/dev/null; then
12996   if test -s conftest.err; then
12997     ac_cpp_err=$ac_c_preproc_warn_flag
12998     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12999   else
13000     ac_cpp_err=
13001   fi
13002 else
13003   ac_cpp_err=yes
13004 fi
13005 if test -z "$ac_cpp_err"; then
13006   cat >>confdefs.h <<\_ACEOF
13007 #define FSTYPE_USG_STATFS 1
13008 _ACEOF
13009  fstype=SVR3
13010 else
13011   echo "$as_me: failed program was:" >&5
13012 sed 's/^/| /' conftest.$ac_ext >&5
13013
13014
13015 fi
13016 rm -f conftest.err conftest.$ac_ext
13017 fi
13018 if test $fstype = no; then
13019 cat >conftest.$ac_ext <<_ACEOF
13020 /* confdefs.h.  */
13021 _ACEOF
13022 cat confdefs.h >>conftest.$ac_ext
13023 cat >>conftest.$ac_ext <<_ACEOF
13024 /* end confdefs.h.  */
13025 #include <sys/statfs.h>
13026 #include <sys/vmount.h>
13027 _ACEOF
13028 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13029   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13030   ac_status=$?
13031   grep -v '^ *+' conftest.er1 >conftest.err
13032   rm -f conftest.er1
13033   cat conftest.err >&5
13034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13035   (exit $ac_status); } >/dev/null; then
13036   if test -s conftest.err; then
13037     ac_cpp_err=$ac_c_preproc_warn_flag
13038     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13039   else
13040     ac_cpp_err=
13041   fi
13042 else
13043   ac_cpp_err=yes
13044 fi
13045 if test -z "$ac_cpp_err"; then
13046   cat >>confdefs.h <<\_ACEOF
13047 #define FSTYPE_AIX_STATFS 1
13048 _ACEOF
13049  fstype=AIX
13050 else
13051   echo "$as_me: failed program was:" >&5
13052 sed 's/^/| /' conftest.$ac_ext >&5
13053
13054
13055 fi
13056 rm -f conftest.err conftest.$ac_ext
13057 fi
13058 if test $fstype = no; then
13059 cat >conftest.$ac_ext <<_ACEOF
13060 /* confdefs.h.  */
13061 _ACEOF
13062 cat confdefs.h >>conftest.$ac_ext
13063 cat >>conftest.$ac_ext <<_ACEOF
13064 /* end confdefs.h.  */
13065 #include <mntent.h>
13066 _ACEOF
13067 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13068   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13069   ac_status=$?
13070   grep -v '^ *+' conftest.er1 >conftest.err
13071   rm -f conftest.er1
13072   cat conftest.err >&5
13073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13074   (exit $ac_status); } >/dev/null; then
13075   if test -s conftest.err; then
13076     ac_cpp_err=$ac_c_preproc_warn_flag
13077     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13078   else
13079     ac_cpp_err=
13080   fi
13081 else
13082   ac_cpp_err=yes
13083 fi
13084 if test -z "$ac_cpp_err"; then
13085   cat >>confdefs.h <<\_ACEOF
13086 #define FSTYPE_MNTENT 1
13087 _ACEOF
13088  fstype=4.3BSD
13089 else
13090   echo "$as_me: failed program was:" >&5
13091 sed 's/^/| /' conftest.$ac_ext >&5
13092
13093
13094 fi
13095 rm -f conftest.err conftest.$ac_ext
13096 fi
13097 if test $fstype = no; then
13098 cat >conftest.$ac_ext <<_ACEOF
13099 /* confdefs.h.  */
13100 _ACEOF
13101 cat confdefs.h >>conftest.$ac_ext
13102 cat >>conftest.$ac_ext <<_ACEOF
13103 /* end confdefs.h.  */
13104 #include <sys/mount.h>
13105
13106 _ACEOF
13107 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13108   $EGREP "f_type;" >/dev/null 2>&1; then
13109   cat >>confdefs.h <<\_ACEOF
13110 #define FSTYPE_STATFS 1
13111 _ACEOF
13112  fstype=4.4BSD/OSF1
13113 fi
13114 rm -f conftest*
13115
13116 fi
13117 if test $fstype = no; then
13118 cat >conftest.$ac_ext <<_ACEOF
13119 /* confdefs.h.  */
13120 _ACEOF
13121 cat confdefs.h >>conftest.$ac_ext
13122 cat >>conftest.$ac_ext <<_ACEOF
13123 /* end confdefs.h.  */
13124 #include <sys/mount.h>
13125 #include <sys/fs_types.h>
13126 _ACEOF
13127 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13128   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13129   ac_status=$?
13130   grep -v '^ *+' conftest.er1 >conftest.err
13131   rm -f conftest.er1
13132   cat conftest.err >&5
13133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13134   (exit $ac_status); } >/dev/null; then
13135   if test -s conftest.err; then
13136     ac_cpp_err=$ac_c_preproc_warn_flag
13137     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13138   else
13139     ac_cpp_err=
13140   fi
13141 else
13142   ac_cpp_err=yes
13143 fi
13144 if test -z "$ac_cpp_err"; then
13145   cat >>confdefs.h <<\_ACEOF
13146 #define FSTYPE_GETMNT 1
13147 _ACEOF
13148  fstype=Ultrix
13149 else
13150   echo "$as_me: failed program was:" >&5
13151 sed 's/^/| /' conftest.$ac_ext >&5
13152
13153
13154 fi
13155 rm -f conftest.err conftest.$ac_ext
13156 fi
13157 echo "$as_me:$LINENO: result: $fstype" >&5
13158 echo "${ECHO_T}$fstype" >&6
13159
13160 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
13161 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
13162 if test "${ac_cv_type_signal+set}" = set; then
13163   echo $ECHO_N "(cached) $ECHO_C" >&6
13164 else
13165   cat >conftest.$ac_ext <<_ACEOF
13166 /* confdefs.h.  */
13167 _ACEOF
13168 cat confdefs.h >>conftest.$ac_ext
13169 cat >>conftest.$ac_ext <<_ACEOF
13170 /* end confdefs.h.  */
13171 #include <sys/types.h>
13172 #include <signal.h>
13173 #ifdef signal
13174 # undef signal
13175 #endif
13176 #ifdef __cplusplus
13177 extern "C" void (*signal (int, void (*)(int)))(int);
13178 #else
13179 void (*signal ()) ();
13180 #endif
13181
13182 int
13183 main ()
13184 {
13185 int i;
13186   ;
13187   return 0;
13188 }
13189 _ACEOF
13190 rm -f conftest.$ac_objext
13191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13192   (eval $ac_compile) 2>conftest.er1
13193   ac_status=$?
13194   grep -v '^ *+' conftest.er1 >conftest.err
13195   rm -f conftest.er1
13196   cat conftest.err >&5
13197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13198   (exit $ac_status); } &&
13199          { ac_try='test -z "$ac_c_werror_flag"
13200                          || test ! -s conftest.err'
13201   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13202   (eval $ac_try) 2>&5
13203   ac_status=$?
13204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13205   (exit $ac_status); }; } &&
13206          { ac_try='test -s conftest.$ac_objext'
13207   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13208   (eval $ac_try) 2>&5
13209   ac_status=$?
13210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13211   (exit $ac_status); }; }; then
13212   ac_cv_type_signal=void
13213 else
13214   echo "$as_me: failed program was:" >&5
13215 sed 's/^/| /' conftest.$ac_ext >&5
13216
13217 ac_cv_type_signal=int
13218 fi
13219 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13220 fi
13221 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
13222 echo "${ECHO_T}$ac_cv_type_signal" >&6
13223
13224 cat >>confdefs.h <<_ACEOF
13225 #define RETSIGTYPE $ac_cv_type_signal
13226 _ACEOF
13227
13228
13229
13230 echo "$as_me:$LINENO: checking for type of signal functions" >&5
13231 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6
13232 if test "${bash_cv_signal_vintage+set}" = set; then
13233   echo $ECHO_N "(cached) $ECHO_C" >&6
13234 else
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 #include <signal.h>
13243 int
13244 main ()
13245 {
13246
13247     sigset_t ss;
13248     struct sigaction sa;
13249     sigemptyset(&ss); sigsuspend(&ss);
13250     sigaction(SIGINT, &sa, (struct sigaction *) 0);
13251     sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
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=posix
13280 else
13281   echo "$as_me: failed program was:" >&5
13282 sed 's/^/| /' conftest.$ac_ext >&5
13283
13284
13285     cat >conftest.$ac_ext <<_ACEOF
13286 /* confdefs.h.  */
13287 _ACEOF
13288 cat confdefs.h >>conftest.$ac_ext
13289 cat >>conftest.$ac_ext <<_ACEOF
13290 /* end confdefs.h.  */
13291 #include <signal.h>
13292 int
13293 main ()
13294 {
13295
13296         int mask = sigmask(SIGINT);
13297         sigsetmask(mask); sigblock(mask); sigpause(mask);
13298
13299   ;
13300   return 0;
13301 }
13302 _ACEOF
13303 rm -f conftest.$ac_objext conftest$ac_exeext
13304 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13305   (eval $ac_link) 2>conftest.er1
13306   ac_status=$?
13307   grep -v '^ *+' conftest.er1 >conftest.err
13308   rm -f conftest.er1
13309   cat conftest.err >&5
13310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13311   (exit $ac_status); } &&
13312          { ac_try='test -z "$ac_c_werror_flag"
13313                          || test ! -s conftest.err'
13314   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13315   (eval $ac_try) 2>&5
13316   ac_status=$?
13317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13318   (exit $ac_status); }; } &&
13319          { ac_try='test -s conftest$ac_exeext'
13320   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13321   (eval $ac_try) 2>&5
13322   ac_status=$?
13323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13324   (exit $ac_status); }; }; then
13325   bash_cv_signal_vintage=4.2bsd
13326 else
13327   echo "$as_me: failed program was:" >&5
13328 sed 's/^/| /' conftest.$ac_ext >&5
13329
13330
13331       cat >conftest.$ac_ext <<_ACEOF
13332 /* confdefs.h.  */
13333 _ACEOF
13334 cat confdefs.h >>conftest.$ac_ext
13335 cat >>conftest.$ac_ext <<_ACEOF
13336 /* end confdefs.h.  */
13337
13338         #include <signal.h>
13339         RETSIGTYPE foo() { }
13340 int
13341 main ()
13342 {
13343
13344                 int mask = sigmask(SIGINT);
13345                 sigset(SIGINT, foo); sigrelse(SIGINT);
13346                 sighold(SIGINT); sigpause(SIGINT);
13347
13348   ;
13349   return 0;
13350 }
13351 _ACEOF
13352 rm -f conftest.$ac_objext conftest$ac_exeext
13353 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13354   (eval $ac_link) 2>conftest.er1
13355   ac_status=$?
13356   grep -v '^ *+' conftest.er1 >conftest.err
13357   rm -f conftest.er1
13358   cat conftest.err >&5
13359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13360   (exit $ac_status); } &&
13361          { ac_try='test -z "$ac_c_werror_flag"
13362                          || test ! -s conftest.err'
13363   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13364   (eval $ac_try) 2>&5
13365   ac_status=$?
13366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13367   (exit $ac_status); }; } &&
13368          { ac_try='test -s conftest$ac_exeext'
13369   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13370   (eval $ac_try) 2>&5
13371   ac_status=$?
13372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13373   (exit $ac_status); }; }; then
13374   bash_cv_signal_vintage=svr3
13375 else
13376   echo "$as_me: failed program was:" >&5
13377 sed 's/^/| /' conftest.$ac_ext >&5
13378
13379 bash_cv_signal_vintage=v7
13380
13381 fi
13382 rm -f conftest.err conftest.$ac_objext \
13383       conftest$ac_exeext conftest.$ac_ext
13384
13385 fi
13386 rm -f conftest.err conftest.$ac_objext \
13387       conftest$ac_exeext conftest.$ac_ext
13388
13389 fi
13390 rm -f conftest.err conftest.$ac_objext \
13391       conftest$ac_exeext conftest.$ac_ext
13392
13393 fi
13394
13395 echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
13396 echo "${ECHO_T}$bash_cv_signal_vintage" >&6
13397 if test "$bash_cv_signal_vintage" = posix; then
13398 cat >>confdefs.h <<\_ACEOF
13399 #define HAVE_POSIX_SIGNALS 1
13400 _ACEOF
13401
13402 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
13403 cat >>confdefs.h <<\_ACEOF
13404 #define HAVE_BSD_SIGNALS 1
13405 _ACEOF
13406
13407 elif test "$bash_cv_signal_vintage" = svr3; then
13408 cat >>confdefs.h <<\_ACEOF
13409 #define HAVE_USG_SIGHOLD 1
13410 _ACEOF
13411
13412 fi
13413
13414 echo "$as_me:$LINENO: checking for mode_t" >&5
13415 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
13416 if test "${ac_cv_type_mode_t+set}" = set; then
13417   echo $ECHO_N "(cached) $ECHO_C" >&6
13418 else
13419   cat >conftest.$ac_ext <<_ACEOF
13420 /* confdefs.h.  */
13421 _ACEOF
13422 cat confdefs.h >>conftest.$ac_ext
13423 cat >>conftest.$ac_ext <<_ACEOF
13424 /* end confdefs.h.  */
13425 $ac_includes_default
13426 int
13427 main ()
13428 {
13429 if ((mode_t *) 0)
13430   return 0;
13431 if (sizeof (mode_t))
13432   return 0;
13433   ;
13434   return 0;
13435 }
13436 _ACEOF
13437 rm -f conftest.$ac_objext
13438 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13439   (eval $ac_compile) 2>conftest.er1
13440   ac_status=$?
13441   grep -v '^ *+' conftest.er1 >conftest.err
13442   rm -f conftest.er1
13443   cat conftest.err >&5
13444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13445   (exit $ac_status); } &&
13446          { ac_try='test -z "$ac_c_werror_flag"
13447                          || test ! -s conftest.err'
13448   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13449   (eval $ac_try) 2>&5
13450   ac_status=$?
13451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13452   (exit $ac_status); }; } &&
13453          { ac_try='test -s conftest.$ac_objext'
13454   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13455   (eval $ac_try) 2>&5
13456   ac_status=$?
13457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13458   (exit $ac_status); }; }; then
13459   ac_cv_type_mode_t=yes
13460 else
13461   echo "$as_me: failed program was:" >&5
13462 sed 's/^/| /' conftest.$ac_ext >&5
13463
13464 ac_cv_type_mode_t=no
13465 fi
13466 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13467 fi
13468 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
13469 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
13470 if test $ac_cv_type_mode_t = yes; then
13471   :
13472 else
13473
13474 cat >>confdefs.h <<_ACEOF
13475 #define mode_t int
13476 _ACEOF
13477
13478 fi
13479
13480 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
13481 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
13482 if test "${ac_cv_type_uid_t+set}" = set; then
13483   echo $ECHO_N "(cached) $ECHO_C" >&6
13484 else
13485   cat >conftest.$ac_ext <<_ACEOF
13486 /* confdefs.h.  */
13487 _ACEOF
13488 cat confdefs.h >>conftest.$ac_ext
13489 cat >>conftest.$ac_ext <<_ACEOF
13490 /* end confdefs.h.  */
13491 #include <sys/types.h>
13492
13493 _ACEOF
13494 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13495   $EGREP "uid_t" >/dev/null 2>&1; then
13496   ac_cv_type_uid_t=yes
13497 else
13498   ac_cv_type_uid_t=no
13499 fi
13500 rm -f conftest*
13501
13502 fi
13503 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
13504 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
13505 if test $ac_cv_type_uid_t = no; then
13506
13507 cat >>confdefs.h <<\_ACEOF
13508 #define uid_t int
13509 _ACEOF
13510
13511
13512 cat >>confdefs.h <<\_ACEOF
13513 #define gid_t int
13514 _ACEOF
13515
13516 fi
13517
13518 echo "$as_me:$LINENO: checking for size_t" >&5
13519 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
13520 if test "${ac_cv_type_size_t+set}" = set; then
13521   echo $ECHO_N "(cached) $ECHO_C" >&6
13522 else
13523   cat >conftest.$ac_ext <<_ACEOF
13524 /* confdefs.h.  */
13525 _ACEOF
13526 cat confdefs.h >>conftest.$ac_ext
13527 cat >>conftest.$ac_ext <<_ACEOF
13528 /* end confdefs.h.  */
13529 $ac_includes_default
13530 int
13531 main ()
13532 {
13533 if ((size_t *) 0)
13534   return 0;
13535 if (sizeof (size_t))
13536   return 0;
13537   ;
13538   return 0;
13539 }
13540 _ACEOF
13541 rm -f conftest.$ac_objext
13542 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13543   (eval $ac_compile) 2>conftest.er1
13544   ac_status=$?
13545   grep -v '^ *+' conftest.er1 >conftest.err
13546   rm -f conftest.er1
13547   cat conftest.err >&5
13548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13549   (exit $ac_status); } &&
13550          { ac_try='test -z "$ac_c_werror_flag"
13551                          || test ! -s conftest.err'
13552   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13553   (eval $ac_try) 2>&5
13554   ac_status=$?
13555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13556   (exit $ac_status); }; } &&
13557          { ac_try='test -s conftest.$ac_objext'
13558   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13559   (eval $ac_try) 2>&5
13560   ac_status=$?
13561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13562   (exit $ac_status); }; }; then
13563   ac_cv_type_size_t=yes
13564 else
13565   echo "$as_me: failed program was:" >&5
13566 sed 's/^/| /' conftest.$ac_ext >&5
13567
13568 ac_cv_type_size_t=no
13569 fi
13570 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13571 fi
13572 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
13573 echo "${ECHO_T}$ac_cv_type_size_t" >&6
13574 if test $ac_cv_type_size_t = yes; then
13575   :
13576 else
13577
13578 cat >>confdefs.h <<_ACEOF
13579 #define size_t unsigned
13580 _ACEOF
13581
13582 fi
13583
13584 echo "$as_me:$LINENO: checking for pid_t" >&5
13585 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
13586 if test "${ac_cv_type_pid_t+set}" = set; then
13587   echo $ECHO_N "(cached) $ECHO_C" >&6
13588 else
13589   cat >conftest.$ac_ext <<_ACEOF
13590 /* confdefs.h.  */
13591 _ACEOF
13592 cat confdefs.h >>conftest.$ac_ext
13593 cat >>conftest.$ac_ext <<_ACEOF
13594 /* end confdefs.h.  */
13595 $ac_includes_default
13596 int
13597 main ()
13598 {
13599 if ((pid_t *) 0)
13600   return 0;
13601 if (sizeof (pid_t))
13602   return 0;
13603   ;
13604   return 0;
13605 }
13606 _ACEOF
13607 rm -f conftest.$ac_objext
13608 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13609   (eval $ac_compile) 2>conftest.er1
13610   ac_status=$?
13611   grep -v '^ *+' conftest.er1 >conftest.err
13612   rm -f conftest.er1
13613   cat conftest.err >&5
13614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13615   (exit $ac_status); } &&
13616          { ac_try='test -z "$ac_c_werror_flag"
13617                          || test ! -s conftest.err'
13618   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13619   (eval $ac_try) 2>&5
13620   ac_status=$?
13621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13622   (exit $ac_status); }; } &&
13623          { ac_try='test -s conftest.$ac_objext'
13624   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13625   (eval $ac_try) 2>&5
13626   ac_status=$?
13627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13628   (exit $ac_status); }; }; then
13629   ac_cv_type_pid_t=yes
13630 else
13631   echo "$as_me: failed program was:" >&5
13632 sed 's/^/| /' conftest.$ac_ext >&5
13633
13634 ac_cv_type_pid_t=no
13635 fi
13636 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13637 fi
13638 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
13639 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
13640 if test $ac_cv_type_pid_t = yes; then
13641   :
13642 else
13643
13644 cat >>confdefs.h <<_ACEOF
13645 #define pid_t int
13646 _ACEOF
13647
13648 fi
13649
13650 echo "$as_me:$LINENO: checking for off_t" >&5
13651 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
13652 if test "${ac_cv_type_off_t+set}" = set; then
13653   echo $ECHO_N "(cached) $ECHO_C" >&6
13654 else
13655   cat >conftest.$ac_ext <<_ACEOF
13656 /* confdefs.h.  */
13657 _ACEOF
13658 cat confdefs.h >>conftest.$ac_ext
13659 cat >>conftest.$ac_ext <<_ACEOF
13660 /* end confdefs.h.  */
13661 $ac_includes_default
13662 int
13663 main ()
13664 {
13665 if ((off_t *) 0)
13666   return 0;
13667 if (sizeof (off_t))
13668   return 0;
13669   ;
13670   return 0;
13671 }
13672 _ACEOF
13673 rm -f conftest.$ac_objext
13674 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13675   (eval $ac_compile) 2>conftest.er1
13676   ac_status=$?
13677   grep -v '^ *+' conftest.er1 >conftest.err
13678   rm -f conftest.er1
13679   cat conftest.err >&5
13680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13681   (exit $ac_status); } &&
13682          { ac_try='test -z "$ac_c_werror_flag"
13683                          || test ! -s conftest.err'
13684   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13685   (eval $ac_try) 2>&5
13686   ac_status=$?
13687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13688   (exit $ac_status); }; } &&
13689          { ac_try='test -s conftest.$ac_objext'
13690   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13691   (eval $ac_try) 2>&5
13692   ac_status=$?
13693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13694   (exit $ac_status); }; }; then
13695   ac_cv_type_off_t=yes
13696 else
13697   echo "$as_me: failed program was:" >&5
13698 sed 's/^/| /' conftest.$ac_ext >&5
13699
13700 ac_cv_type_off_t=no
13701 fi
13702 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13703 fi
13704 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
13705 echo "${ECHO_T}$ac_cv_type_off_t" >&6
13706 if test $ac_cv_type_off_t = yes; then
13707   :
13708 else
13709
13710 cat >>confdefs.h <<_ACEOF
13711 #define off_t long
13712 _ACEOF
13713
13714 fi
13715
13716 echo "$as_me:$LINENO: checking for ino_t" >&5
13717 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
13718 if test "${ac_cv_type_ino_t+set}" = set; then
13719   echo $ECHO_N "(cached) $ECHO_C" >&6
13720 else
13721   cat >conftest.$ac_ext <<_ACEOF
13722 /* confdefs.h.  */
13723 _ACEOF
13724 cat confdefs.h >>conftest.$ac_ext
13725 cat >>conftest.$ac_ext <<_ACEOF
13726 /* end confdefs.h.  */
13727 $ac_includes_default
13728 int
13729 main ()
13730 {
13731 if ((ino_t *) 0)
13732   return 0;
13733 if (sizeof (ino_t))
13734   return 0;
13735   ;
13736   return 0;
13737 }
13738 _ACEOF
13739 rm -f conftest.$ac_objext
13740 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13741   (eval $ac_compile) 2>conftest.er1
13742   ac_status=$?
13743   grep -v '^ *+' conftest.er1 >conftest.err
13744   rm -f conftest.er1
13745   cat conftest.err >&5
13746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13747   (exit $ac_status); } &&
13748          { ac_try='test -z "$ac_c_werror_flag"
13749                          || test ! -s conftest.err'
13750   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13751   (eval $ac_try) 2>&5
13752   ac_status=$?
13753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13754   (exit $ac_status); }; } &&
13755          { ac_try='test -s conftest.$ac_objext'
13756   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13757   (eval $ac_try) 2>&5
13758   ac_status=$?
13759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13760   (exit $ac_status); }; }; then
13761   ac_cv_type_ino_t=yes
13762 else
13763   echo "$as_me: failed program was:" >&5
13764 sed 's/^/| /' conftest.$ac_ext >&5
13765
13766 ac_cv_type_ino_t=no
13767 fi
13768 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13769 fi
13770 echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
13771 echo "${ECHO_T}$ac_cv_type_ino_t" >&6
13772 if test $ac_cv_type_ino_t = yes; then
13773   :
13774 else
13775
13776 cat >>confdefs.h <<_ACEOF
13777 #define ino_t unsigned long
13778 _ACEOF
13779
13780 fi
13781
13782 echo "$as_me:$LINENO: checking for dev_t" >&5
13783 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6
13784 if test "${ac_cv_type_dev_t+set}" = set; then
13785   echo $ECHO_N "(cached) $ECHO_C" >&6
13786 else
13787   cat >conftest.$ac_ext <<_ACEOF
13788 /* confdefs.h.  */
13789 _ACEOF
13790 cat confdefs.h >>conftest.$ac_ext
13791 cat >>conftest.$ac_ext <<_ACEOF
13792 /* end confdefs.h.  */
13793 $ac_includes_default
13794 int
13795 main ()
13796 {
13797 if ((dev_t *) 0)
13798   return 0;
13799 if (sizeof (dev_t))
13800   return 0;
13801   ;
13802   return 0;
13803 }
13804 _ACEOF
13805 rm -f conftest.$ac_objext
13806 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13807   (eval $ac_compile) 2>conftest.er1
13808   ac_status=$?
13809   grep -v '^ *+' conftest.er1 >conftest.err
13810   rm -f conftest.er1
13811   cat conftest.err >&5
13812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13813   (exit $ac_status); } &&
13814          { ac_try='test -z "$ac_c_werror_flag"
13815                          || test ! -s conftest.err'
13816   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13817   (eval $ac_try) 2>&5
13818   ac_status=$?
13819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13820   (exit $ac_status); }; } &&
13821          { ac_try='test -s conftest.$ac_objext'
13822   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13823   (eval $ac_try) 2>&5
13824   ac_status=$?
13825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13826   (exit $ac_status); }; }; then
13827   ac_cv_type_dev_t=yes
13828 else
13829   echo "$as_me: failed program was:" >&5
13830 sed 's/^/| /' conftest.$ac_ext >&5
13831
13832 ac_cv_type_dev_t=no
13833 fi
13834 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13835 fi
13836 echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
13837 echo "${ECHO_T}$ac_cv_type_dev_t" >&6
13838 if test $ac_cv_type_dev_t = yes; then
13839   :
13840 else
13841
13842 cat >>confdefs.h <<_ACEOF
13843 #define dev_t unsigned long
13844 _ACEOF
13845
13846 fi
13847
13848 echo "$as_me:$LINENO: checking for daddr_t" >&5
13849 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6
13850 if test "${ac_cv_type_daddr_t+set}" = set; then
13851   echo $ECHO_N "(cached) $ECHO_C" >&6
13852 else
13853   cat >conftest.$ac_ext <<_ACEOF
13854 /* confdefs.h.  */
13855 _ACEOF
13856 cat confdefs.h >>conftest.$ac_ext
13857 cat >>conftest.$ac_ext <<_ACEOF
13858 /* end confdefs.h.  */
13859 $ac_includes_default
13860 int
13861 main ()
13862 {
13863 if ((daddr_t *) 0)
13864   return 0;
13865 if (sizeof (daddr_t))
13866   return 0;
13867   ;
13868   return 0;
13869 }
13870 _ACEOF
13871 rm -f conftest.$ac_objext
13872 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13873   (eval $ac_compile) 2>conftest.er1
13874   ac_status=$?
13875   grep -v '^ *+' conftest.er1 >conftest.err
13876   rm -f conftest.er1
13877   cat conftest.err >&5
13878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13879   (exit $ac_status); } &&
13880          { ac_try='test -z "$ac_c_werror_flag"
13881                          || test ! -s conftest.err'
13882   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13883   (eval $ac_try) 2>&5
13884   ac_status=$?
13885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13886   (exit $ac_status); }; } &&
13887          { ac_try='test -s conftest.$ac_objext'
13888   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13889   (eval $ac_try) 2>&5
13890   ac_status=$?
13891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13892   (exit $ac_status); }; }; then
13893   ac_cv_type_daddr_t=yes
13894 else
13895   echo "$as_me: failed program was:" >&5
13896 sed 's/^/| /' conftest.$ac_ext >&5
13897
13898 ac_cv_type_daddr_t=no
13899 fi
13900 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13901 fi
13902 echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
13903 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6
13904 if test $ac_cv_type_daddr_t = yes; then
13905   :
13906 else
13907
13908 cat >>confdefs.h <<_ACEOF
13909 #define daddr_t long
13910 _ACEOF
13911
13912 fi
13913
13914 echo "$as_me:$LINENO: checking for major_t" >&5
13915 echo $ECHO_N "checking for major_t... $ECHO_C" >&6
13916 if test "${ac_cv_type_major_t+set}" = set; then
13917   echo $ECHO_N "(cached) $ECHO_C" >&6
13918 else
13919   cat >conftest.$ac_ext <<_ACEOF
13920 /* confdefs.h.  */
13921 _ACEOF
13922 cat confdefs.h >>conftest.$ac_ext
13923 cat >>conftest.$ac_ext <<_ACEOF
13924 /* end confdefs.h.  */
13925 $ac_includes_default
13926 int
13927 main ()
13928 {
13929 if ((major_t *) 0)
13930   return 0;
13931 if (sizeof (major_t))
13932   return 0;
13933   ;
13934   return 0;
13935 }
13936 _ACEOF
13937 rm -f conftest.$ac_objext
13938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13939   (eval $ac_compile) 2>conftest.er1
13940   ac_status=$?
13941   grep -v '^ *+' conftest.er1 >conftest.err
13942   rm -f conftest.er1
13943   cat conftest.err >&5
13944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13945   (exit $ac_status); } &&
13946          { ac_try='test -z "$ac_c_werror_flag"
13947                          || test ! -s conftest.err'
13948   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13949   (eval $ac_try) 2>&5
13950   ac_status=$?
13951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13952   (exit $ac_status); }; } &&
13953          { ac_try='test -s conftest.$ac_objext'
13954   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13955   (eval $ac_try) 2>&5
13956   ac_status=$?
13957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13958   (exit $ac_status); }; }; then
13959   ac_cv_type_major_t=yes
13960 else
13961   echo "$as_me: failed program was:" >&5
13962 sed 's/^/| /' conftest.$ac_ext >&5
13963
13964 ac_cv_type_major_t=no
13965 fi
13966 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13967 fi
13968 echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
13969 echo "${ECHO_T}$ac_cv_type_major_t" >&6
13970 if test $ac_cv_type_major_t = yes; then
13971   :
13972 else
13973
13974 cat >>confdefs.h <<_ACEOF
13975 #define major_t int
13976 _ACEOF
13977
13978 fi
13979
13980 echo "$as_me:$LINENO: checking for minor_t" >&5
13981 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6
13982 if test "${ac_cv_type_minor_t+set}" = set; then
13983   echo $ECHO_N "(cached) $ECHO_C" >&6
13984 else
13985   cat >conftest.$ac_ext <<_ACEOF
13986 /* confdefs.h.  */
13987 _ACEOF
13988 cat confdefs.h >>conftest.$ac_ext
13989 cat >>conftest.$ac_ext <<_ACEOF
13990 /* end confdefs.h.  */
13991 $ac_includes_default
13992 int
13993 main ()
13994 {
13995 if ((minor_t *) 0)
13996   return 0;
13997 if (sizeof (minor_t))
13998   return 0;
13999   ;
14000   return 0;
14001 }
14002 _ACEOF
14003 rm -f conftest.$ac_objext
14004 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14005   (eval $ac_compile) 2>conftest.er1
14006   ac_status=$?
14007   grep -v '^ *+' conftest.er1 >conftest.err
14008   rm -f conftest.er1
14009   cat conftest.err >&5
14010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14011   (exit $ac_status); } &&
14012          { ac_try='test -z "$ac_c_werror_flag"
14013                          || test ! -s conftest.err'
14014   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14015   (eval $ac_try) 2>&5
14016   ac_status=$?
14017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14018   (exit $ac_status); }; } &&
14019          { ac_try='test -s conftest.$ac_objext'
14020   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14021   (eval $ac_try) 2>&5
14022   ac_status=$?
14023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14024   (exit $ac_status); }; }; then
14025   ac_cv_type_minor_t=yes
14026 else
14027   echo "$as_me: failed program was:" >&5
14028 sed 's/^/| /' conftest.$ac_ext >&5
14029
14030 ac_cv_type_minor_t=no
14031 fi
14032 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14033 fi
14034 echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
14035 echo "${ECHO_T}$ac_cv_type_minor_t" >&6
14036 if test $ac_cv_type_minor_t = yes; then
14037   :
14038 else
14039
14040 cat >>confdefs.h <<_ACEOF
14041 #define minor_t int
14042 _ACEOF
14043
14044 fi
14045
14046 echo "$as_me:$LINENO: checking for ssize_t" >&5
14047 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
14048 if test "${ac_cv_type_ssize_t+set}" = set; then
14049   echo $ECHO_N "(cached) $ECHO_C" >&6
14050 else
14051   cat >conftest.$ac_ext <<_ACEOF
14052 /* confdefs.h.  */
14053 _ACEOF
14054 cat confdefs.h >>conftest.$ac_ext
14055 cat >>conftest.$ac_ext <<_ACEOF
14056 /* end confdefs.h.  */
14057 $ac_includes_default
14058 int
14059 main ()
14060 {
14061 if ((ssize_t *) 0)
14062   return 0;
14063 if (sizeof (ssize_t))
14064   return 0;
14065   ;
14066   return 0;
14067 }
14068 _ACEOF
14069 rm -f conftest.$ac_objext
14070 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14071   (eval $ac_compile) 2>conftest.er1
14072   ac_status=$?
14073   grep -v '^ *+' conftest.er1 >conftest.err
14074   rm -f conftest.er1
14075   cat conftest.err >&5
14076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14077   (exit $ac_status); } &&
14078          { ac_try='test -z "$ac_c_werror_flag"
14079                          || test ! -s conftest.err'
14080   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14081   (eval $ac_try) 2>&5
14082   ac_status=$?
14083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14084   (exit $ac_status); }; } &&
14085          { ac_try='test -s conftest.$ac_objext'
14086   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14087   (eval $ac_try) 2>&5
14088   ac_status=$?
14089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14090   (exit $ac_status); }; }; then
14091   ac_cv_type_ssize_t=yes
14092 else
14093   echo "$as_me: failed program was:" >&5
14094 sed 's/^/| /' conftest.$ac_ext >&5
14095
14096 ac_cv_type_ssize_t=no
14097 fi
14098 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14099 fi
14100 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
14101 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
14102 if test $ac_cv_type_ssize_t = yes; then
14103   :
14104 else
14105
14106 cat >>confdefs.h <<_ACEOF
14107 #define ssize_t int
14108 _ACEOF
14109
14110 fi
14111
14112 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
14113 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
14114 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
14115   echo $ECHO_N "(cached) $ECHO_C" >&6
14116 else
14117   cat >conftest.$ac_ext <<_ACEOF
14118 /* confdefs.h.  */
14119 _ACEOF
14120 cat confdefs.h >>conftest.$ac_ext
14121 cat >>conftest.$ac_ext <<_ACEOF
14122 /* end confdefs.h.  */
14123 $ac_includes_default
14124 int
14125 main ()
14126 {
14127 static struct stat ac_aggr;
14128 if (ac_aggr.st_blocks)
14129 return 0;
14130   ;
14131   return 0;
14132 }
14133 _ACEOF
14134 rm -f conftest.$ac_objext
14135 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14136   (eval $ac_compile) 2>conftest.er1
14137   ac_status=$?
14138   grep -v '^ *+' conftest.er1 >conftest.err
14139   rm -f conftest.er1
14140   cat conftest.err >&5
14141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14142   (exit $ac_status); } &&
14143          { ac_try='test -z "$ac_c_werror_flag"
14144                          || test ! -s conftest.err'
14145   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14146   (eval $ac_try) 2>&5
14147   ac_status=$?
14148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14149   (exit $ac_status); }; } &&
14150          { ac_try='test -s conftest.$ac_objext'
14151   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14152   (eval $ac_try) 2>&5
14153   ac_status=$?
14154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14155   (exit $ac_status); }; }; then
14156   ac_cv_member_struct_stat_st_blocks=yes
14157 else
14158   echo "$as_me: failed program was:" >&5
14159 sed 's/^/| /' conftest.$ac_ext >&5
14160
14161 cat >conftest.$ac_ext <<_ACEOF
14162 /* confdefs.h.  */
14163 _ACEOF
14164 cat confdefs.h >>conftest.$ac_ext
14165 cat >>conftest.$ac_ext <<_ACEOF
14166 /* end confdefs.h.  */
14167 $ac_includes_default
14168 int
14169 main ()
14170 {
14171 static struct stat ac_aggr;
14172 if (sizeof ac_aggr.st_blocks)
14173 return 0;
14174   ;
14175   return 0;
14176 }
14177 _ACEOF
14178 rm -f conftest.$ac_objext
14179 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14180   (eval $ac_compile) 2>conftest.er1
14181   ac_status=$?
14182   grep -v '^ *+' conftest.er1 >conftest.err
14183   rm -f conftest.er1
14184   cat conftest.err >&5
14185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14186   (exit $ac_status); } &&
14187          { ac_try='test -z "$ac_c_werror_flag"
14188                          || test ! -s conftest.err'
14189   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14190   (eval $ac_try) 2>&5
14191   ac_status=$?
14192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14193   (exit $ac_status); }; } &&
14194          { ac_try='test -s conftest.$ac_objext'
14195   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14196   (eval $ac_try) 2>&5
14197   ac_status=$?
14198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14199   (exit $ac_status); }; }; then
14200   ac_cv_member_struct_stat_st_blocks=yes
14201 else
14202   echo "$as_me: failed program was:" >&5
14203 sed 's/^/| /' conftest.$ac_ext >&5
14204
14205 ac_cv_member_struct_stat_st_blocks=no
14206 fi
14207 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14208 fi
14209 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14210 fi
14211 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
14212 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
14213 if test $ac_cv_member_struct_stat_st_blocks = yes; then
14214
14215 cat >>confdefs.h <<_ACEOF
14216 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
14217 _ACEOF
14218
14219
14220 cat >>confdefs.h <<\_ACEOF
14221 #define HAVE_ST_BLOCKS 1
14222 _ACEOF
14223
14224 else
14225   case $LIBOBJS in
14226     "fileblocks.$ac_objext"   | \
14227   *" fileblocks.$ac_objext"   | \
14228     "fileblocks.$ac_objext "* | \
14229   *" fileblocks.$ac_objext "* ) ;;
14230   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;;
14231 esac
14232
14233 fi
14234
14235
14236
14237 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
14238 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
14239 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
14240   echo $ECHO_N "(cached) $ECHO_C" >&6
14241 else
14242   cat >conftest.$ac_ext <<_ACEOF
14243 /* confdefs.h.  */
14244 _ACEOF
14245 cat confdefs.h >>conftest.$ac_ext
14246 cat >>conftest.$ac_ext <<_ACEOF
14247 /* end confdefs.h.  */
14248 $ac_includes_default
14249 int
14250 main ()
14251 {
14252 static struct stat ac_aggr;
14253 if (ac_aggr.st_rdev)
14254 return 0;
14255   ;
14256   return 0;
14257 }
14258 _ACEOF
14259 rm -f conftest.$ac_objext
14260 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14261   (eval $ac_compile) 2>conftest.er1
14262   ac_status=$?
14263   grep -v '^ *+' conftest.er1 >conftest.err
14264   rm -f conftest.er1
14265   cat conftest.err >&5
14266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14267   (exit $ac_status); } &&
14268          { ac_try='test -z "$ac_c_werror_flag"
14269                          || test ! -s conftest.err'
14270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14271   (eval $ac_try) 2>&5
14272   ac_status=$?
14273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14274   (exit $ac_status); }; } &&
14275          { ac_try='test -s conftest.$ac_objext'
14276   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14277   (eval $ac_try) 2>&5
14278   ac_status=$?
14279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14280   (exit $ac_status); }; }; then
14281   ac_cv_member_struct_stat_st_rdev=yes
14282 else
14283   echo "$as_me: failed program was:" >&5
14284 sed 's/^/| /' conftest.$ac_ext >&5
14285
14286 cat >conftest.$ac_ext <<_ACEOF
14287 /* confdefs.h.  */
14288 _ACEOF
14289 cat confdefs.h >>conftest.$ac_ext
14290 cat >>conftest.$ac_ext <<_ACEOF
14291 /* end confdefs.h.  */
14292 $ac_includes_default
14293 int
14294 main ()
14295 {
14296 static struct stat ac_aggr;
14297 if (sizeof ac_aggr.st_rdev)
14298 return 0;
14299   ;
14300   return 0;
14301 }
14302 _ACEOF
14303 rm -f conftest.$ac_objext
14304 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14305   (eval $ac_compile) 2>conftest.er1
14306   ac_status=$?
14307   grep -v '^ *+' conftest.er1 >conftest.err
14308   rm -f conftest.er1
14309   cat conftest.err >&5
14310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14311   (exit $ac_status); } &&
14312          { ac_try='test -z "$ac_c_werror_flag"
14313                          || test ! -s conftest.err'
14314   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14315   (eval $ac_try) 2>&5
14316   ac_status=$?
14317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14318   (exit $ac_status); }; } &&
14319          { ac_try='test -s conftest.$ac_objext'
14320   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14321   (eval $ac_try) 2>&5
14322   ac_status=$?
14323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14324   (exit $ac_status); }; }; then
14325   ac_cv_member_struct_stat_st_rdev=yes
14326 else
14327   echo "$as_me: failed program was:" >&5
14328 sed 's/^/| /' conftest.$ac_ext >&5
14329
14330 ac_cv_member_struct_stat_st_rdev=no
14331 fi
14332 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14333 fi
14334 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14335 fi
14336 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
14337 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
14338 if test $ac_cv_member_struct_stat_st_rdev = yes; then
14339
14340 cat >>confdefs.h <<_ACEOF
14341 #define HAVE_STRUCT_STAT_ST_RDEV 1
14342 _ACEOF
14343
14344
14345 cat >>confdefs.h <<\_ACEOF
14346 #define HAVE_ST_RDEV 1
14347 _ACEOF
14348
14349 fi
14350
14351
14352 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
14353 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
14354 if test "${ac_cv_struct_tm+set}" = set; then
14355   echo $ECHO_N "(cached) $ECHO_C" >&6
14356 else
14357   cat >conftest.$ac_ext <<_ACEOF
14358 /* confdefs.h.  */
14359 _ACEOF
14360 cat confdefs.h >>conftest.$ac_ext
14361 cat >>conftest.$ac_ext <<_ACEOF
14362 /* end confdefs.h.  */
14363 #include <sys/types.h>
14364 #include <time.h>
14365
14366 int
14367 main ()
14368 {
14369 struct tm *tp; tp->tm_sec;
14370   ;
14371   return 0;
14372 }
14373 _ACEOF
14374 rm -f conftest.$ac_objext
14375 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14376   (eval $ac_compile) 2>conftest.er1
14377   ac_status=$?
14378   grep -v '^ *+' conftest.er1 >conftest.err
14379   rm -f conftest.er1
14380   cat conftest.err >&5
14381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14382   (exit $ac_status); } &&
14383          { ac_try='test -z "$ac_c_werror_flag"
14384                          || test ! -s conftest.err'
14385   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14386   (eval $ac_try) 2>&5
14387   ac_status=$?
14388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14389   (exit $ac_status); }; } &&
14390          { ac_try='test -s conftest.$ac_objext'
14391   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14392   (eval $ac_try) 2>&5
14393   ac_status=$?
14394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14395   (exit $ac_status); }; }; then
14396   ac_cv_struct_tm=time.h
14397 else
14398   echo "$as_me: failed program was:" >&5
14399 sed 's/^/| /' conftest.$ac_ext >&5
14400
14401 ac_cv_struct_tm=sys/time.h
14402 fi
14403 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14404 fi
14405 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
14406 echo "${ECHO_T}$ac_cv_struct_tm" >&6
14407 if test $ac_cv_struct_tm = sys/time.h; then
14408
14409 cat >>confdefs.h <<\_ACEOF
14410 #define TM_IN_SYS_TIME 1
14411 _ACEOF
14412
14413 fi
14414
14415 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
14416 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
14417 if test "${ac_cv_c_const+set}" = set; then
14418   echo $ECHO_N "(cached) $ECHO_C" >&6
14419 else
14420   cat >conftest.$ac_ext <<_ACEOF
14421 /* confdefs.h.  */
14422 _ACEOF
14423 cat confdefs.h >>conftest.$ac_ext
14424 cat >>conftest.$ac_ext <<_ACEOF
14425 /* end confdefs.h.  */
14426
14427 int
14428 main ()
14429 {
14430 /* FIXME: Include the comments suggested by Paul. */
14431 #ifndef __cplusplus
14432   /* Ultrix mips cc rejects this.  */
14433   typedef int charset[2];
14434   const charset x;
14435   /* SunOS 4.1.1 cc rejects this.  */
14436   char const *const *ccp;
14437   char **p;
14438   /* NEC SVR4.0.2 mips cc rejects this.  */
14439   struct point {int x, y;};
14440   static struct point const zero = {0,0};
14441   /* AIX XL C 1.02.0.0 rejects this.
14442      It does not let you subtract one const X* pointer from another in
14443      an arm of an if-expression whose if-part is not a constant
14444      expression */
14445   const char *g = "string";
14446   ccp = &g + (g ? g-g : 0);
14447   /* HPUX 7.0 cc rejects these. */
14448   ++ccp;
14449   p = (char**) ccp;
14450   ccp = (char const *const *) p;
14451   { /* SCO 3.2v4 cc rejects this.  */
14452     char *t;
14453     char const *s = 0 ? (char *) 0 : (char const *) 0;
14454
14455     *t++ = 0;
14456   }
14457   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
14458     int x[] = {25, 17};
14459     const int *foo = &x[0];
14460     ++foo;
14461   }
14462   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14463     typedef const int *iptr;
14464     iptr p = 0;
14465     ++p;
14466   }
14467   { /* AIX XL C 1.02.0.0 rejects this saying
14468        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14469     struct s { int j; const int *ap[3]; };
14470     struct s *b; b->j = 5;
14471   }
14472   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14473     const int foo = 10;
14474   }
14475 #endif
14476
14477   ;
14478   return 0;
14479 }
14480 _ACEOF
14481 rm -f conftest.$ac_objext
14482 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14483   (eval $ac_compile) 2>conftest.er1
14484   ac_status=$?
14485   grep -v '^ *+' conftest.er1 >conftest.err
14486   rm -f conftest.er1
14487   cat conftest.err >&5
14488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14489   (exit $ac_status); } &&
14490          { ac_try='test -z "$ac_c_werror_flag"
14491                          || test ! -s conftest.err'
14492   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14493   (eval $ac_try) 2>&5
14494   ac_status=$?
14495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14496   (exit $ac_status); }; } &&
14497          { ac_try='test -s conftest.$ac_objext'
14498   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14499   (eval $ac_try) 2>&5
14500   ac_status=$?
14501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14502   (exit $ac_status); }; }; then
14503   ac_cv_c_const=yes
14504 else
14505   echo "$as_me: failed program was:" >&5
14506 sed 's/^/| /' conftest.$ac_ext >&5
14507
14508 ac_cv_c_const=no
14509 fi
14510 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14511 fi
14512 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
14513 echo "${ECHO_T}$ac_cv_c_const" >&6
14514 if test $ac_cv_c_const = no; then
14515
14516 cat >>confdefs.h <<\_ACEOF
14517 #define const
14518 _ACEOF
14519
14520 fi
14521
14522
14523
14524 echo "$as_me:$LINENO: checking for char" >&5
14525 echo $ECHO_N "checking for char... $ECHO_C" >&6
14526 if test "${ac_cv_type_char+set}" = set; then
14527   echo $ECHO_N "(cached) $ECHO_C" >&6
14528 else
14529   cat >conftest.$ac_ext <<_ACEOF
14530 /* confdefs.h.  */
14531 _ACEOF
14532 cat confdefs.h >>conftest.$ac_ext
14533 cat >>conftest.$ac_ext <<_ACEOF
14534 /* end confdefs.h.  */
14535 $ac_includes_default
14536 int
14537 main ()
14538 {
14539 if ((char *) 0)
14540   return 0;
14541 if (sizeof (char))
14542   return 0;
14543   ;
14544   return 0;
14545 }
14546 _ACEOF
14547 rm -f conftest.$ac_objext
14548 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14549   (eval $ac_compile) 2>conftest.er1
14550   ac_status=$?
14551   grep -v '^ *+' conftest.er1 >conftest.err
14552   rm -f conftest.er1
14553   cat conftest.err >&5
14554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14555   (exit $ac_status); } &&
14556          { ac_try='test -z "$ac_c_werror_flag"
14557                          || test ! -s conftest.err'
14558   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14559   (eval $ac_try) 2>&5
14560   ac_status=$?
14561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14562   (exit $ac_status); }; } &&
14563          { ac_try='test -s conftest.$ac_objext'
14564   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14565   (eval $ac_try) 2>&5
14566   ac_status=$?
14567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14568   (exit $ac_status); }; }; then
14569   ac_cv_type_char=yes
14570 else
14571   echo "$as_me: failed program was:" >&5
14572 sed 's/^/| /' conftest.$ac_ext >&5
14573
14574 ac_cv_type_char=no
14575 fi
14576 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14577 fi
14578 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
14579 echo "${ECHO_T}$ac_cv_type_char" >&6
14580
14581 echo "$as_me:$LINENO: checking size of char" >&5
14582 echo $ECHO_N "checking size of char... $ECHO_C" >&6
14583 if test "${ac_cv_sizeof_char+set}" = set; then
14584   echo $ECHO_N "(cached) $ECHO_C" >&6
14585 else
14586   if test "$ac_cv_type_char" = yes; then
14587   # The cast to unsigned long works around a bug in the HP C Compiler
14588   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14589   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14590   # This bug is HP SR number 8606223364.
14591   if test "$cross_compiling" = yes; then
14592   # Depending upon the size, compute the lo and hi bounds.
14593 cat >conftest.$ac_ext <<_ACEOF
14594 /* confdefs.h.  */
14595 _ACEOF
14596 cat confdefs.h >>conftest.$ac_ext
14597 cat >>conftest.$ac_ext <<_ACEOF
14598 /* end confdefs.h.  */
14599 $ac_includes_default
14600 int
14601 main ()
14602 {
14603 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
14604 test_array [0] = 0
14605
14606   ;
14607   return 0;
14608 }
14609 _ACEOF
14610 rm -f conftest.$ac_objext
14611 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14612   (eval $ac_compile) 2>conftest.er1
14613   ac_status=$?
14614   grep -v '^ *+' conftest.er1 >conftest.err
14615   rm -f conftest.er1
14616   cat conftest.err >&5
14617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14618   (exit $ac_status); } &&
14619          { ac_try='test -z "$ac_c_werror_flag"
14620                          || test ! -s conftest.err'
14621   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14622   (eval $ac_try) 2>&5
14623   ac_status=$?
14624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14625   (exit $ac_status); }; } &&
14626          { ac_try='test -s conftest.$ac_objext'
14627   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14628   (eval $ac_try) 2>&5
14629   ac_status=$?
14630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14631   (exit $ac_status); }; }; then
14632   ac_lo=0 ac_mid=0
14633   while :; do
14634     cat >conftest.$ac_ext <<_ACEOF
14635 /* confdefs.h.  */
14636 _ACEOF
14637 cat confdefs.h >>conftest.$ac_ext
14638 cat >>conftest.$ac_ext <<_ACEOF
14639 /* end confdefs.h.  */
14640 $ac_includes_default
14641 int
14642 main ()
14643 {
14644 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
14645 test_array [0] = 0
14646
14647   ;
14648   return 0;
14649 }
14650 _ACEOF
14651 rm -f conftest.$ac_objext
14652 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14653   (eval $ac_compile) 2>conftest.er1
14654   ac_status=$?
14655   grep -v '^ *+' conftest.er1 >conftest.err
14656   rm -f conftest.er1
14657   cat conftest.err >&5
14658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14659   (exit $ac_status); } &&
14660          { ac_try='test -z "$ac_c_werror_flag"
14661                          || test ! -s conftest.err'
14662   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14663   (eval $ac_try) 2>&5
14664   ac_status=$?
14665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14666   (exit $ac_status); }; } &&
14667          { ac_try='test -s conftest.$ac_objext'
14668   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14669   (eval $ac_try) 2>&5
14670   ac_status=$?
14671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14672   (exit $ac_status); }; }; then
14673   ac_hi=$ac_mid; break
14674 else
14675   echo "$as_me: failed program was:" >&5
14676 sed 's/^/| /' conftest.$ac_ext >&5
14677
14678 ac_lo=`expr $ac_mid + 1`
14679                     if test $ac_lo -le $ac_mid; then
14680                       ac_lo= ac_hi=
14681                       break
14682                     fi
14683                     ac_mid=`expr 2 '*' $ac_mid + 1`
14684 fi
14685 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14686   done
14687 else
14688   echo "$as_me: failed program was:" >&5
14689 sed 's/^/| /' conftest.$ac_ext >&5
14690
14691 cat >conftest.$ac_ext <<_ACEOF
14692 /* confdefs.h.  */
14693 _ACEOF
14694 cat confdefs.h >>conftest.$ac_ext
14695 cat >>conftest.$ac_ext <<_ACEOF
14696 /* end confdefs.h.  */
14697 $ac_includes_default
14698 int
14699 main ()
14700 {
14701 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
14702 test_array [0] = 0
14703
14704   ;
14705   return 0;
14706 }
14707 _ACEOF
14708 rm -f conftest.$ac_objext
14709 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14710   (eval $ac_compile) 2>conftest.er1
14711   ac_status=$?
14712   grep -v '^ *+' conftest.er1 >conftest.err
14713   rm -f conftest.er1
14714   cat conftest.err >&5
14715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14716   (exit $ac_status); } &&
14717          { ac_try='test -z "$ac_c_werror_flag"
14718                          || test ! -s conftest.err'
14719   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14720   (eval $ac_try) 2>&5
14721   ac_status=$?
14722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14723   (exit $ac_status); }; } &&
14724          { ac_try='test -s conftest.$ac_objext'
14725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14726   (eval $ac_try) 2>&5
14727   ac_status=$?
14728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14729   (exit $ac_status); }; }; then
14730   ac_hi=-1 ac_mid=-1
14731   while :; do
14732     cat >conftest.$ac_ext <<_ACEOF
14733 /* confdefs.h.  */
14734 _ACEOF
14735 cat confdefs.h >>conftest.$ac_ext
14736 cat >>conftest.$ac_ext <<_ACEOF
14737 /* end confdefs.h.  */
14738 $ac_includes_default
14739 int
14740 main ()
14741 {
14742 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
14743 test_array [0] = 0
14744
14745   ;
14746   return 0;
14747 }
14748 _ACEOF
14749 rm -f conftest.$ac_objext
14750 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14751   (eval $ac_compile) 2>conftest.er1
14752   ac_status=$?
14753   grep -v '^ *+' conftest.er1 >conftest.err
14754   rm -f conftest.er1
14755   cat conftest.err >&5
14756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14757   (exit $ac_status); } &&
14758          { ac_try='test -z "$ac_c_werror_flag"
14759                          || test ! -s conftest.err'
14760   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14761   (eval $ac_try) 2>&5
14762   ac_status=$?
14763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14764   (exit $ac_status); }; } &&
14765          { ac_try='test -s conftest.$ac_objext'
14766   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14767   (eval $ac_try) 2>&5
14768   ac_status=$?
14769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14770   (exit $ac_status); }; }; then
14771   ac_lo=$ac_mid; break
14772 else
14773   echo "$as_me: failed program was:" >&5
14774 sed 's/^/| /' conftest.$ac_ext >&5
14775
14776 ac_hi=`expr '(' $ac_mid ')' - 1`
14777                        if test $ac_mid -le $ac_hi; then
14778                          ac_lo= ac_hi=
14779                          break
14780                        fi
14781                        ac_mid=`expr 2 '*' $ac_mid`
14782 fi
14783 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14784   done
14785 else
14786   echo "$as_me: failed program was:" >&5
14787 sed 's/^/| /' conftest.$ac_ext >&5
14788
14789 ac_lo= ac_hi=
14790 fi
14791 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14792 fi
14793 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14794 # Binary search between lo and hi bounds.
14795 while test "x$ac_lo" != "x$ac_hi"; do
14796   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14797   cat >conftest.$ac_ext <<_ACEOF
14798 /* confdefs.h.  */
14799 _ACEOF
14800 cat confdefs.h >>conftest.$ac_ext
14801 cat >>conftest.$ac_ext <<_ACEOF
14802 /* end confdefs.h.  */
14803 $ac_includes_default
14804 int
14805 main ()
14806 {
14807 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
14808 test_array [0] = 0
14809
14810   ;
14811   return 0;
14812 }
14813 _ACEOF
14814 rm -f conftest.$ac_objext
14815 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14816   (eval $ac_compile) 2>conftest.er1
14817   ac_status=$?
14818   grep -v '^ *+' conftest.er1 >conftest.err
14819   rm -f conftest.er1
14820   cat conftest.err >&5
14821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14822   (exit $ac_status); } &&
14823          { ac_try='test -z "$ac_c_werror_flag"
14824                          || test ! -s conftest.err'
14825   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14826   (eval $ac_try) 2>&5
14827   ac_status=$?
14828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14829   (exit $ac_status); }; } &&
14830          { ac_try='test -s conftest.$ac_objext'
14831   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14832   (eval $ac_try) 2>&5
14833   ac_status=$?
14834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14835   (exit $ac_status); }; }; then
14836   ac_hi=$ac_mid
14837 else
14838   echo "$as_me: failed program was:" >&5
14839 sed 's/^/| /' conftest.$ac_ext >&5
14840
14841 ac_lo=`expr '(' $ac_mid ')' + 1`
14842 fi
14843 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14844 done
14845 case $ac_lo in
14846 ?*) ac_cv_sizeof_char=$ac_lo;;
14847 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14848 See \`config.log' for more details." >&5
14849 echo "$as_me: error: cannot compute sizeof (char), 77
14850 See \`config.log' for more details." >&2;}
14851    { (exit 1); exit 1; }; } ;;
14852 esac
14853 else
14854   if test "$cross_compiling" = yes; then
14855   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14856 See \`config.log' for more details." >&5
14857 echo "$as_me: error: cannot run test program while cross compiling
14858 See \`config.log' for more details." >&2;}
14859    { (exit 1); exit 1; }; }
14860 else
14861   cat >conftest.$ac_ext <<_ACEOF
14862 /* confdefs.h.  */
14863 _ACEOF
14864 cat confdefs.h >>conftest.$ac_ext
14865 cat >>conftest.$ac_ext <<_ACEOF
14866 /* end confdefs.h.  */
14867 $ac_includes_default
14868 long longval () { return (long) (sizeof (char)); }
14869 unsigned long ulongval () { return (long) (sizeof (char)); }
14870 #include <stdio.h>
14871 #include <stdlib.h>
14872 int
14873 main ()
14874 {
14875
14876   FILE *f = fopen ("conftest.val", "w");
14877   if (! f)
14878     exit (1);
14879   if (((long) (sizeof (char))) < 0)
14880     {
14881       long i = longval ();
14882       if (i != ((long) (sizeof (char))))
14883         exit (1);
14884       fprintf (f, "%ld\n", i);
14885     }
14886   else
14887     {
14888       unsigned long i = ulongval ();
14889       if (i != ((long) (sizeof (char))))
14890         exit (1);
14891       fprintf (f, "%lu\n", i);
14892     }
14893   exit (ferror (f) || fclose (f) != 0);
14894
14895   ;
14896   return 0;
14897 }
14898 _ACEOF
14899 rm -f conftest$ac_exeext
14900 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14901   (eval $ac_link) 2>&5
14902   ac_status=$?
14903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14904   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14905   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14906   (eval $ac_try) 2>&5
14907   ac_status=$?
14908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14909   (exit $ac_status); }; }; then
14910   ac_cv_sizeof_char=`cat conftest.val`
14911 else
14912   echo "$as_me: program exited with status $ac_status" >&5
14913 echo "$as_me: failed program was:" >&5
14914 sed 's/^/| /' conftest.$ac_ext >&5
14915
14916 ( exit $ac_status )
14917 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14918 See \`config.log' for more details." >&5
14919 echo "$as_me: error: cannot compute sizeof (char), 77
14920 See \`config.log' for more details." >&2;}
14921    { (exit 1); exit 1; }; }
14922 fi
14923 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14924 fi
14925 fi
14926 rm -f conftest.val
14927 else
14928   ac_cv_sizeof_char=0
14929 fi
14930 fi
14931 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
14932 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
14933 cat >>confdefs.h <<_ACEOF
14934 #define SIZEOF_CHAR $ac_cv_sizeof_char
14935 _ACEOF
14936
14937
14938 echo "$as_me:$LINENO: checking for short int" >&5
14939 echo $ECHO_N "checking for short int... $ECHO_C" >&6
14940 if test "${ac_cv_type_short_int+set}" = set; then
14941   echo $ECHO_N "(cached) $ECHO_C" >&6
14942 else
14943   cat >conftest.$ac_ext <<_ACEOF
14944 /* confdefs.h.  */
14945 _ACEOF
14946 cat confdefs.h >>conftest.$ac_ext
14947 cat >>conftest.$ac_ext <<_ACEOF
14948 /* end confdefs.h.  */
14949 $ac_includes_default
14950 int
14951 main ()
14952 {
14953 if ((short int *) 0)
14954   return 0;
14955 if (sizeof (short int))
14956   return 0;
14957   ;
14958   return 0;
14959 }
14960 _ACEOF
14961 rm -f conftest.$ac_objext
14962 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14963   (eval $ac_compile) 2>conftest.er1
14964   ac_status=$?
14965   grep -v '^ *+' conftest.er1 >conftest.err
14966   rm -f conftest.er1
14967   cat conftest.err >&5
14968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14969   (exit $ac_status); } &&
14970          { ac_try='test -z "$ac_c_werror_flag"
14971                          || test ! -s conftest.err'
14972   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14973   (eval $ac_try) 2>&5
14974   ac_status=$?
14975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14976   (exit $ac_status); }; } &&
14977          { ac_try='test -s conftest.$ac_objext'
14978   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14979   (eval $ac_try) 2>&5
14980   ac_status=$?
14981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14982   (exit $ac_status); }; }; then
14983   ac_cv_type_short_int=yes
14984 else
14985   echo "$as_me: failed program was:" >&5
14986 sed 's/^/| /' conftest.$ac_ext >&5
14987
14988 ac_cv_type_short_int=no
14989 fi
14990 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14991 fi
14992 echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
14993 echo "${ECHO_T}$ac_cv_type_short_int" >&6
14994
14995 echo "$as_me:$LINENO: checking size of short int" >&5
14996 echo $ECHO_N "checking size of short int... $ECHO_C" >&6
14997 if test "${ac_cv_sizeof_short_int+set}" = set; then
14998   echo $ECHO_N "(cached) $ECHO_C" >&6
14999 else
15000   if test "$ac_cv_type_short_int" = yes; then
15001   # The cast to unsigned long works around a bug in the HP C Compiler
15002   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15003   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15004   # This bug is HP SR number 8606223364.
15005   if test "$cross_compiling" = yes; then
15006   # Depending upon the size, compute the lo and hi bounds.
15007 cat >conftest.$ac_ext <<_ACEOF
15008 /* confdefs.h.  */
15009 _ACEOF
15010 cat confdefs.h >>conftest.$ac_ext
15011 cat >>conftest.$ac_ext <<_ACEOF
15012 /* end confdefs.h.  */
15013 $ac_includes_default
15014 int
15015 main ()
15016 {
15017 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= 0)];
15018 test_array [0] = 0
15019
15020   ;
15021   return 0;
15022 }
15023 _ACEOF
15024 rm -f conftest.$ac_objext
15025 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15026   (eval $ac_compile) 2>conftest.er1
15027   ac_status=$?
15028   grep -v '^ *+' conftest.er1 >conftest.err
15029   rm -f conftest.er1
15030   cat conftest.err >&5
15031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15032   (exit $ac_status); } &&
15033          { ac_try='test -z "$ac_c_werror_flag"
15034                          || test ! -s conftest.err'
15035   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15036   (eval $ac_try) 2>&5
15037   ac_status=$?
15038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15039   (exit $ac_status); }; } &&
15040          { ac_try='test -s conftest.$ac_objext'
15041   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15042   (eval $ac_try) 2>&5
15043   ac_status=$?
15044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15045   (exit $ac_status); }; }; then
15046   ac_lo=0 ac_mid=0
15047   while :; do
15048     cat >conftest.$ac_ext <<_ACEOF
15049 /* confdefs.h.  */
15050 _ACEOF
15051 cat confdefs.h >>conftest.$ac_ext
15052 cat >>conftest.$ac_ext <<_ACEOF
15053 /* end confdefs.h.  */
15054 $ac_includes_default
15055 int
15056 main ()
15057 {
15058 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
15059 test_array [0] = 0
15060
15061   ;
15062   return 0;
15063 }
15064 _ACEOF
15065 rm -f conftest.$ac_objext
15066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15067   (eval $ac_compile) 2>conftest.er1
15068   ac_status=$?
15069   grep -v '^ *+' conftest.er1 >conftest.err
15070   rm -f conftest.er1
15071   cat conftest.err >&5
15072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15073   (exit $ac_status); } &&
15074          { ac_try='test -z "$ac_c_werror_flag"
15075                          || test ! -s conftest.err'
15076   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15077   (eval $ac_try) 2>&5
15078   ac_status=$?
15079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15080   (exit $ac_status); }; } &&
15081          { ac_try='test -s conftest.$ac_objext'
15082   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15083   (eval $ac_try) 2>&5
15084   ac_status=$?
15085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15086   (exit $ac_status); }; }; then
15087   ac_hi=$ac_mid; break
15088 else
15089   echo "$as_me: failed program was:" >&5
15090 sed 's/^/| /' conftest.$ac_ext >&5
15091
15092 ac_lo=`expr $ac_mid + 1`
15093                     if test $ac_lo -le $ac_mid; then
15094                       ac_lo= ac_hi=
15095                       break
15096                     fi
15097                     ac_mid=`expr 2 '*' $ac_mid + 1`
15098 fi
15099 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15100   done
15101 else
15102   echo "$as_me: failed program was:" >&5
15103 sed 's/^/| /' conftest.$ac_ext >&5
15104
15105 cat >conftest.$ac_ext <<_ACEOF
15106 /* confdefs.h.  */
15107 _ACEOF
15108 cat confdefs.h >>conftest.$ac_ext
15109 cat >>conftest.$ac_ext <<_ACEOF
15110 /* end confdefs.h.  */
15111 $ac_includes_default
15112 int
15113 main ()
15114 {
15115 static int test_array [1 - 2 * !(((long) (sizeof (short int))) < 0)];
15116 test_array [0] = 0
15117
15118   ;
15119   return 0;
15120 }
15121 _ACEOF
15122 rm -f conftest.$ac_objext
15123 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15124   (eval $ac_compile) 2>conftest.er1
15125   ac_status=$?
15126   grep -v '^ *+' conftest.er1 >conftest.err
15127   rm -f conftest.er1
15128   cat conftest.err >&5
15129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15130   (exit $ac_status); } &&
15131          { ac_try='test -z "$ac_c_werror_flag"
15132                          || test ! -s conftest.err'
15133   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15134   (eval $ac_try) 2>&5
15135   ac_status=$?
15136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15137   (exit $ac_status); }; } &&
15138          { ac_try='test -s conftest.$ac_objext'
15139   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15140   (eval $ac_try) 2>&5
15141   ac_status=$?
15142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15143   (exit $ac_status); }; }; then
15144   ac_hi=-1 ac_mid=-1
15145   while :; do
15146     cat >conftest.$ac_ext <<_ACEOF
15147 /* confdefs.h.  */
15148 _ACEOF
15149 cat confdefs.h >>conftest.$ac_ext
15150 cat >>conftest.$ac_ext <<_ACEOF
15151 /* end confdefs.h.  */
15152 $ac_includes_default
15153 int
15154 main ()
15155 {
15156 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= $ac_mid)];
15157 test_array [0] = 0
15158
15159   ;
15160   return 0;
15161 }
15162 _ACEOF
15163 rm -f conftest.$ac_objext
15164 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15165   (eval $ac_compile) 2>conftest.er1
15166   ac_status=$?
15167   grep -v '^ *+' conftest.er1 >conftest.err
15168   rm -f conftest.er1
15169   cat conftest.err >&5
15170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15171   (exit $ac_status); } &&
15172          { ac_try='test -z "$ac_c_werror_flag"
15173                          || test ! -s conftest.err'
15174   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15175   (eval $ac_try) 2>&5
15176   ac_status=$?
15177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15178   (exit $ac_status); }; } &&
15179          { ac_try='test -s conftest.$ac_objext'
15180   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15181   (eval $ac_try) 2>&5
15182   ac_status=$?
15183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15184   (exit $ac_status); }; }; then
15185   ac_lo=$ac_mid; break
15186 else
15187   echo "$as_me: failed program was:" >&5
15188 sed 's/^/| /' conftest.$ac_ext >&5
15189
15190 ac_hi=`expr '(' $ac_mid ')' - 1`
15191                        if test $ac_mid -le $ac_hi; then
15192                          ac_lo= ac_hi=
15193                          break
15194                        fi
15195                        ac_mid=`expr 2 '*' $ac_mid`
15196 fi
15197 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15198   done
15199 else
15200   echo "$as_me: failed program was:" >&5
15201 sed 's/^/| /' conftest.$ac_ext >&5
15202
15203 ac_lo= ac_hi=
15204 fi
15205 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15206 fi
15207 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15208 # Binary search between lo and hi bounds.
15209 while test "x$ac_lo" != "x$ac_hi"; do
15210   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15211   cat >conftest.$ac_ext <<_ACEOF
15212 /* confdefs.h.  */
15213 _ACEOF
15214 cat confdefs.h >>conftest.$ac_ext
15215 cat >>conftest.$ac_ext <<_ACEOF
15216 /* end confdefs.h.  */
15217 $ac_includes_default
15218 int
15219 main ()
15220 {
15221 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
15222 test_array [0] = 0
15223
15224   ;
15225   return 0;
15226 }
15227 _ACEOF
15228 rm -f conftest.$ac_objext
15229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15230   (eval $ac_compile) 2>conftest.er1
15231   ac_status=$?
15232   grep -v '^ *+' conftest.er1 >conftest.err
15233   rm -f conftest.er1
15234   cat conftest.err >&5
15235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15236   (exit $ac_status); } &&
15237          { ac_try='test -z "$ac_c_werror_flag"
15238                          || test ! -s conftest.err'
15239   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15240   (eval $ac_try) 2>&5
15241   ac_status=$?
15242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15243   (exit $ac_status); }; } &&
15244          { ac_try='test -s conftest.$ac_objext'
15245   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15246   (eval $ac_try) 2>&5
15247   ac_status=$?
15248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15249   (exit $ac_status); }; }; then
15250   ac_hi=$ac_mid
15251 else
15252   echo "$as_me: failed program was:" >&5
15253 sed 's/^/| /' conftest.$ac_ext >&5
15254
15255 ac_lo=`expr '(' $ac_mid ')' + 1`
15256 fi
15257 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15258 done
15259 case $ac_lo in
15260 ?*) ac_cv_sizeof_short_int=$ac_lo;;
15261 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
15262 See \`config.log' for more details." >&5
15263 echo "$as_me: error: cannot compute sizeof (short int), 77
15264 See \`config.log' for more details." >&2;}
15265    { (exit 1); exit 1; }; } ;;
15266 esac
15267 else
15268   if test "$cross_compiling" = yes; then
15269   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15270 See \`config.log' for more details." >&5
15271 echo "$as_me: error: cannot run test program while cross compiling
15272 See \`config.log' for more details." >&2;}
15273    { (exit 1); exit 1; }; }
15274 else
15275   cat >conftest.$ac_ext <<_ACEOF
15276 /* confdefs.h.  */
15277 _ACEOF
15278 cat confdefs.h >>conftest.$ac_ext
15279 cat >>conftest.$ac_ext <<_ACEOF
15280 /* end confdefs.h.  */
15281 $ac_includes_default
15282 long longval () { return (long) (sizeof (short int)); }
15283 unsigned long ulongval () { return (long) (sizeof (short int)); }
15284 #include <stdio.h>
15285 #include <stdlib.h>
15286 int
15287 main ()
15288 {
15289
15290   FILE *f = fopen ("conftest.val", "w");
15291   if (! f)
15292     exit (1);
15293   if (((long) (sizeof (short int))) < 0)
15294     {
15295       long i = longval ();
15296       if (i != ((long) (sizeof (short int))))
15297         exit (1);
15298       fprintf (f, "%ld\n", i);
15299     }
15300   else
15301     {
15302       unsigned long i = ulongval ();
15303       if (i != ((long) (sizeof (short int))))
15304         exit (1);
15305       fprintf (f, "%lu\n", i);
15306     }
15307   exit (ferror (f) || fclose (f) != 0);
15308
15309   ;
15310   return 0;
15311 }
15312 _ACEOF
15313 rm -f conftest$ac_exeext
15314 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15315   (eval $ac_link) 2>&5
15316   ac_status=$?
15317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15318   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15319   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15320   (eval $ac_try) 2>&5
15321   ac_status=$?
15322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15323   (exit $ac_status); }; }; then
15324   ac_cv_sizeof_short_int=`cat conftest.val`
15325 else
15326   echo "$as_me: program exited with status $ac_status" >&5
15327 echo "$as_me: failed program was:" >&5
15328 sed 's/^/| /' conftest.$ac_ext >&5
15329
15330 ( exit $ac_status )
15331 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
15332 See \`config.log' for more details." >&5
15333 echo "$as_me: error: cannot compute sizeof (short int), 77
15334 See \`config.log' for more details." >&2;}
15335    { (exit 1); exit 1; }; }
15336 fi
15337 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15338 fi
15339 fi
15340 rm -f conftest.val
15341 else
15342   ac_cv_sizeof_short_int=0
15343 fi
15344 fi
15345 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
15346 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6
15347 cat >>confdefs.h <<_ACEOF
15348 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
15349 _ACEOF
15350
15351
15352 echo "$as_me:$LINENO: checking for int" >&5
15353 echo $ECHO_N "checking for int... $ECHO_C" >&6
15354 if test "${ac_cv_type_int+set}" = set; then
15355   echo $ECHO_N "(cached) $ECHO_C" >&6
15356 else
15357   cat >conftest.$ac_ext <<_ACEOF
15358 /* confdefs.h.  */
15359 _ACEOF
15360 cat confdefs.h >>conftest.$ac_ext
15361 cat >>conftest.$ac_ext <<_ACEOF
15362 /* end confdefs.h.  */
15363 $ac_includes_default
15364 int
15365 main ()
15366 {
15367 if ((int *) 0)
15368   return 0;
15369 if (sizeof (int))
15370   return 0;
15371   ;
15372   return 0;
15373 }
15374 _ACEOF
15375 rm -f conftest.$ac_objext
15376 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15377   (eval $ac_compile) 2>conftest.er1
15378   ac_status=$?
15379   grep -v '^ *+' conftest.er1 >conftest.err
15380   rm -f conftest.er1
15381   cat conftest.err >&5
15382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15383   (exit $ac_status); } &&
15384          { ac_try='test -z "$ac_c_werror_flag"
15385                          || test ! -s conftest.err'
15386   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15387   (eval $ac_try) 2>&5
15388   ac_status=$?
15389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15390   (exit $ac_status); }; } &&
15391          { ac_try='test -s conftest.$ac_objext'
15392   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15393   (eval $ac_try) 2>&5
15394   ac_status=$?
15395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15396   (exit $ac_status); }; }; then
15397   ac_cv_type_int=yes
15398 else
15399   echo "$as_me: failed program was:" >&5
15400 sed 's/^/| /' conftest.$ac_ext >&5
15401
15402 ac_cv_type_int=no
15403 fi
15404 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15405 fi
15406 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
15407 echo "${ECHO_T}$ac_cv_type_int" >&6
15408
15409 echo "$as_me:$LINENO: checking size of int" >&5
15410 echo $ECHO_N "checking size of int... $ECHO_C" >&6
15411 if test "${ac_cv_sizeof_int+set}" = set; then
15412   echo $ECHO_N "(cached) $ECHO_C" >&6
15413 else
15414   if test "$ac_cv_type_int" = yes; then
15415   # The cast to unsigned long works around a bug in the HP C Compiler
15416   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15417   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15418   # This bug is HP SR number 8606223364.
15419   if test "$cross_compiling" = yes; then
15420   # Depending upon the size, compute the lo and hi bounds.
15421 cat >conftest.$ac_ext <<_ACEOF
15422 /* confdefs.h.  */
15423 _ACEOF
15424 cat confdefs.h >>conftest.$ac_ext
15425 cat >>conftest.$ac_ext <<_ACEOF
15426 /* end confdefs.h.  */
15427 $ac_includes_default
15428 int
15429 main ()
15430 {
15431 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
15432 test_array [0] = 0
15433
15434   ;
15435   return 0;
15436 }
15437 _ACEOF
15438 rm -f conftest.$ac_objext
15439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15440   (eval $ac_compile) 2>conftest.er1
15441   ac_status=$?
15442   grep -v '^ *+' conftest.er1 >conftest.err
15443   rm -f conftest.er1
15444   cat conftest.err >&5
15445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15446   (exit $ac_status); } &&
15447          { ac_try='test -z "$ac_c_werror_flag"
15448                          || test ! -s conftest.err'
15449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15450   (eval $ac_try) 2>&5
15451   ac_status=$?
15452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15453   (exit $ac_status); }; } &&
15454          { ac_try='test -s conftest.$ac_objext'
15455   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15456   (eval $ac_try) 2>&5
15457   ac_status=$?
15458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15459   (exit $ac_status); }; }; then
15460   ac_lo=0 ac_mid=0
15461   while :; do
15462     cat >conftest.$ac_ext <<_ACEOF
15463 /* confdefs.h.  */
15464 _ACEOF
15465 cat confdefs.h >>conftest.$ac_ext
15466 cat >>conftest.$ac_ext <<_ACEOF
15467 /* end confdefs.h.  */
15468 $ac_includes_default
15469 int
15470 main ()
15471 {
15472 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15473 test_array [0] = 0
15474
15475   ;
15476   return 0;
15477 }
15478 _ACEOF
15479 rm -f conftest.$ac_objext
15480 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15481   (eval $ac_compile) 2>conftest.er1
15482   ac_status=$?
15483   grep -v '^ *+' conftest.er1 >conftest.err
15484   rm -f conftest.er1
15485   cat conftest.err >&5
15486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15487   (exit $ac_status); } &&
15488          { ac_try='test -z "$ac_c_werror_flag"
15489                          || test ! -s conftest.err'
15490   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15491   (eval $ac_try) 2>&5
15492   ac_status=$?
15493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15494   (exit $ac_status); }; } &&
15495          { ac_try='test -s conftest.$ac_objext'
15496   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15497   (eval $ac_try) 2>&5
15498   ac_status=$?
15499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15500   (exit $ac_status); }; }; then
15501   ac_hi=$ac_mid; break
15502 else
15503   echo "$as_me: failed program was:" >&5
15504 sed 's/^/| /' conftest.$ac_ext >&5
15505
15506 ac_lo=`expr $ac_mid + 1`
15507                     if test $ac_lo -le $ac_mid; then
15508                       ac_lo= ac_hi=
15509                       break
15510                     fi
15511                     ac_mid=`expr 2 '*' $ac_mid + 1`
15512 fi
15513 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15514   done
15515 else
15516   echo "$as_me: failed program was:" >&5
15517 sed 's/^/| /' conftest.$ac_ext >&5
15518
15519 cat >conftest.$ac_ext <<_ACEOF
15520 /* confdefs.h.  */
15521 _ACEOF
15522 cat confdefs.h >>conftest.$ac_ext
15523 cat >>conftest.$ac_ext <<_ACEOF
15524 /* end confdefs.h.  */
15525 $ac_includes_default
15526 int
15527 main ()
15528 {
15529 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
15530 test_array [0] = 0
15531
15532   ;
15533   return 0;
15534 }
15535 _ACEOF
15536 rm -f conftest.$ac_objext
15537 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15538   (eval $ac_compile) 2>conftest.er1
15539   ac_status=$?
15540   grep -v '^ *+' conftest.er1 >conftest.err
15541   rm -f conftest.er1
15542   cat conftest.err >&5
15543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15544   (exit $ac_status); } &&
15545          { ac_try='test -z "$ac_c_werror_flag"
15546                          || test ! -s conftest.err'
15547   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15548   (eval $ac_try) 2>&5
15549   ac_status=$?
15550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15551   (exit $ac_status); }; } &&
15552          { ac_try='test -s conftest.$ac_objext'
15553   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15554   (eval $ac_try) 2>&5
15555   ac_status=$?
15556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15557   (exit $ac_status); }; }; then
15558   ac_hi=-1 ac_mid=-1
15559   while :; do
15560     cat >conftest.$ac_ext <<_ACEOF
15561 /* confdefs.h.  */
15562 _ACEOF
15563 cat confdefs.h >>conftest.$ac_ext
15564 cat >>conftest.$ac_ext <<_ACEOF
15565 /* end confdefs.h.  */
15566 $ac_includes_default
15567 int
15568 main ()
15569 {
15570 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
15571 test_array [0] = 0
15572
15573   ;
15574   return 0;
15575 }
15576 _ACEOF
15577 rm -f conftest.$ac_objext
15578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15579   (eval $ac_compile) 2>conftest.er1
15580   ac_status=$?
15581   grep -v '^ *+' conftest.er1 >conftest.err
15582   rm -f conftest.er1
15583   cat conftest.err >&5
15584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15585   (exit $ac_status); } &&
15586          { ac_try='test -z "$ac_c_werror_flag"
15587                          || test ! -s conftest.err'
15588   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15589   (eval $ac_try) 2>&5
15590   ac_status=$?
15591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15592   (exit $ac_status); }; } &&
15593          { ac_try='test -s conftest.$ac_objext'
15594   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15595   (eval $ac_try) 2>&5
15596   ac_status=$?
15597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15598   (exit $ac_status); }; }; then
15599   ac_lo=$ac_mid; break
15600 else
15601   echo "$as_me: failed program was:" >&5
15602 sed 's/^/| /' conftest.$ac_ext >&5
15603
15604 ac_hi=`expr '(' $ac_mid ')' - 1`
15605                        if test $ac_mid -le $ac_hi; then
15606                          ac_lo= ac_hi=
15607                          break
15608                        fi
15609                        ac_mid=`expr 2 '*' $ac_mid`
15610 fi
15611 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15612   done
15613 else
15614   echo "$as_me: failed program was:" >&5
15615 sed 's/^/| /' conftest.$ac_ext >&5
15616
15617 ac_lo= ac_hi=
15618 fi
15619 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15620 fi
15621 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15622 # Binary search between lo and hi bounds.
15623 while test "x$ac_lo" != "x$ac_hi"; do
15624   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15625   cat >conftest.$ac_ext <<_ACEOF
15626 /* confdefs.h.  */
15627 _ACEOF
15628 cat confdefs.h >>conftest.$ac_ext
15629 cat >>conftest.$ac_ext <<_ACEOF
15630 /* end confdefs.h.  */
15631 $ac_includes_default
15632 int
15633 main ()
15634 {
15635 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15636 test_array [0] = 0
15637
15638   ;
15639   return 0;
15640 }
15641 _ACEOF
15642 rm -f conftest.$ac_objext
15643 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15644   (eval $ac_compile) 2>conftest.er1
15645   ac_status=$?
15646   grep -v '^ *+' conftest.er1 >conftest.err
15647   rm -f conftest.er1
15648   cat conftest.err >&5
15649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15650   (exit $ac_status); } &&
15651          { ac_try='test -z "$ac_c_werror_flag"
15652                          || test ! -s conftest.err'
15653   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15654   (eval $ac_try) 2>&5
15655   ac_status=$?
15656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15657   (exit $ac_status); }; } &&
15658          { ac_try='test -s conftest.$ac_objext'
15659   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15660   (eval $ac_try) 2>&5
15661   ac_status=$?
15662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15663   (exit $ac_status); }; }; then
15664   ac_hi=$ac_mid
15665 else
15666   echo "$as_me: failed program was:" >&5
15667 sed 's/^/| /' conftest.$ac_ext >&5
15668
15669 ac_lo=`expr '(' $ac_mid ')' + 1`
15670 fi
15671 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15672 done
15673 case $ac_lo in
15674 ?*) ac_cv_sizeof_int=$ac_lo;;
15675 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15676 See \`config.log' for more details." >&5
15677 echo "$as_me: error: cannot compute sizeof (int), 77
15678 See \`config.log' for more details." >&2;}
15679    { (exit 1); exit 1; }; } ;;
15680 esac
15681 else
15682   if test "$cross_compiling" = yes; then
15683   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15684 See \`config.log' for more details." >&5
15685 echo "$as_me: error: cannot run test program while cross compiling
15686 See \`config.log' for more details." >&2;}
15687    { (exit 1); exit 1; }; }
15688 else
15689   cat >conftest.$ac_ext <<_ACEOF
15690 /* confdefs.h.  */
15691 _ACEOF
15692 cat confdefs.h >>conftest.$ac_ext
15693 cat >>conftest.$ac_ext <<_ACEOF
15694 /* end confdefs.h.  */
15695 $ac_includes_default
15696 long longval () { return (long) (sizeof (int)); }
15697 unsigned long ulongval () { return (long) (sizeof (int)); }
15698 #include <stdio.h>
15699 #include <stdlib.h>
15700 int
15701 main ()
15702 {
15703
15704   FILE *f = fopen ("conftest.val", "w");
15705   if (! f)
15706     exit (1);
15707   if (((long) (sizeof (int))) < 0)
15708     {
15709       long i = longval ();
15710       if (i != ((long) (sizeof (int))))
15711         exit (1);
15712       fprintf (f, "%ld\n", i);
15713     }
15714   else
15715     {
15716       unsigned long i = ulongval ();
15717       if (i != ((long) (sizeof (int))))
15718         exit (1);
15719       fprintf (f, "%lu\n", i);
15720     }
15721   exit (ferror (f) || fclose (f) != 0);
15722
15723   ;
15724   return 0;
15725 }
15726 _ACEOF
15727 rm -f conftest$ac_exeext
15728 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15729   (eval $ac_link) 2>&5
15730   ac_status=$?
15731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15732   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15733   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15734   (eval $ac_try) 2>&5
15735   ac_status=$?
15736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15737   (exit $ac_status); }; }; then
15738   ac_cv_sizeof_int=`cat conftest.val`
15739 else
15740   echo "$as_me: program exited with status $ac_status" >&5
15741 echo "$as_me: failed program was:" >&5
15742 sed 's/^/| /' conftest.$ac_ext >&5
15743
15744 ( exit $ac_status )
15745 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15746 See \`config.log' for more details." >&5
15747 echo "$as_me: error: cannot compute sizeof (int), 77
15748 See \`config.log' for more details." >&2;}
15749    { (exit 1); exit 1; }; }
15750 fi
15751 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15752 fi
15753 fi
15754 rm -f conftest.val
15755 else
15756   ac_cv_sizeof_int=0
15757 fi
15758 fi
15759 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
15760 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
15761 cat >>confdefs.h <<_ACEOF
15762 #define SIZEOF_INT $ac_cv_sizeof_int
15763 _ACEOF
15764
15765
15766 echo "$as_me:$LINENO: checking for long int" >&5
15767 echo $ECHO_N "checking for long int... $ECHO_C" >&6
15768 if test "${ac_cv_type_long_int+set}" = set; then
15769   echo $ECHO_N "(cached) $ECHO_C" >&6
15770 else
15771   cat >conftest.$ac_ext <<_ACEOF
15772 /* confdefs.h.  */
15773 _ACEOF
15774 cat confdefs.h >>conftest.$ac_ext
15775 cat >>conftest.$ac_ext <<_ACEOF
15776 /* end confdefs.h.  */
15777 $ac_includes_default
15778 int
15779 main ()
15780 {
15781 if ((long int *) 0)
15782   return 0;
15783 if (sizeof (long int))
15784   return 0;
15785   ;
15786   return 0;
15787 }
15788 _ACEOF
15789 rm -f conftest.$ac_objext
15790 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15791   (eval $ac_compile) 2>conftest.er1
15792   ac_status=$?
15793   grep -v '^ *+' conftest.er1 >conftest.err
15794   rm -f conftest.er1
15795   cat conftest.err >&5
15796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15797   (exit $ac_status); } &&
15798          { ac_try='test -z "$ac_c_werror_flag"
15799                          || test ! -s conftest.err'
15800   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15801   (eval $ac_try) 2>&5
15802   ac_status=$?
15803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15804   (exit $ac_status); }; } &&
15805          { ac_try='test -s conftest.$ac_objext'
15806   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15807   (eval $ac_try) 2>&5
15808   ac_status=$?
15809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15810   (exit $ac_status); }; }; then
15811   ac_cv_type_long_int=yes
15812 else
15813   echo "$as_me: failed program was:" >&5
15814 sed 's/^/| /' conftest.$ac_ext >&5
15815
15816 ac_cv_type_long_int=no
15817 fi
15818 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15819 fi
15820 echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
15821 echo "${ECHO_T}$ac_cv_type_long_int" >&6
15822
15823 echo "$as_me:$LINENO: checking size of long int" >&5
15824 echo $ECHO_N "checking size of long int... $ECHO_C" >&6
15825 if test "${ac_cv_sizeof_long_int+set}" = set; then
15826   echo $ECHO_N "(cached) $ECHO_C" >&6
15827 else
15828   if test "$ac_cv_type_long_int" = yes; then
15829   # The cast to unsigned long works around a bug in the HP C Compiler
15830   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15831   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15832   # This bug is HP SR number 8606223364.
15833   if test "$cross_compiling" = yes; then
15834   # Depending upon the size, compute the lo and hi bounds.
15835 cat >conftest.$ac_ext <<_ACEOF
15836 /* confdefs.h.  */
15837 _ACEOF
15838 cat confdefs.h >>conftest.$ac_ext
15839 cat >>conftest.$ac_ext <<_ACEOF
15840 /* end confdefs.h.  */
15841 $ac_includes_default
15842 int
15843 main ()
15844 {
15845 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= 0)];
15846 test_array [0] = 0
15847
15848   ;
15849   return 0;
15850 }
15851 _ACEOF
15852 rm -f conftest.$ac_objext
15853 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15854   (eval $ac_compile) 2>conftest.er1
15855   ac_status=$?
15856   grep -v '^ *+' conftest.er1 >conftest.err
15857   rm -f conftest.er1
15858   cat conftest.err >&5
15859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15860   (exit $ac_status); } &&
15861          { ac_try='test -z "$ac_c_werror_flag"
15862                          || test ! -s conftest.err'
15863   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15864   (eval $ac_try) 2>&5
15865   ac_status=$?
15866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15867   (exit $ac_status); }; } &&
15868          { ac_try='test -s conftest.$ac_objext'
15869   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15870   (eval $ac_try) 2>&5
15871   ac_status=$?
15872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15873   (exit $ac_status); }; }; then
15874   ac_lo=0 ac_mid=0
15875   while :; do
15876     cat >conftest.$ac_ext <<_ACEOF
15877 /* confdefs.h.  */
15878 _ACEOF
15879 cat confdefs.h >>conftest.$ac_ext
15880 cat >>conftest.$ac_ext <<_ACEOF
15881 /* end confdefs.h.  */
15882 $ac_includes_default
15883 int
15884 main ()
15885 {
15886 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
15887 test_array [0] = 0
15888
15889   ;
15890   return 0;
15891 }
15892 _ACEOF
15893 rm -f conftest.$ac_objext
15894 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15895   (eval $ac_compile) 2>conftest.er1
15896   ac_status=$?
15897   grep -v '^ *+' conftest.er1 >conftest.err
15898   rm -f conftest.er1
15899   cat conftest.err >&5
15900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15901   (exit $ac_status); } &&
15902          { ac_try='test -z "$ac_c_werror_flag"
15903                          || test ! -s conftest.err'
15904   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15905   (eval $ac_try) 2>&5
15906   ac_status=$?
15907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15908   (exit $ac_status); }; } &&
15909          { ac_try='test -s conftest.$ac_objext'
15910   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15911   (eval $ac_try) 2>&5
15912   ac_status=$?
15913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15914   (exit $ac_status); }; }; then
15915   ac_hi=$ac_mid; break
15916 else
15917   echo "$as_me: failed program was:" >&5
15918 sed 's/^/| /' conftest.$ac_ext >&5
15919
15920 ac_lo=`expr $ac_mid + 1`
15921                     if test $ac_lo -le $ac_mid; then
15922                       ac_lo= ac_hi=
15923                       break
15924                     fi
15925                     ac_mid=`expr 2 '*' $ac_mid + 1`
15926 fi
15927 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15928   done
15929 else
15930   echo "$as_me: failed program was:" >&5
15931 sed 's/^/| /' conftest.$ac_ext >&5
15932
15933 cat >conftest.$ac_ext <<_ACEOF
15934 /* confdefs.h.  */
15935 _ACEOF
15936 cat confdefs.h >>conftest.$ac_ext
15937 cat >>conftest.$ac_ext <<_ACEOF
15938 /* end confdefs.h.  */
15939 $ac_includes_default
15940 int
15941 main ()
15942 {
15943 static int test_array [1 - 2 * !(((long) (sizeof (long int))) < 0)];
15944 test_array [0] = 0
15945
15946   ;
15947   return 0;
15948 }
15949 _ACEOF
15950 rm -f conftest.$ac_objext
15951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15952   (eval $ac_compile) 2>conftest.er1
15953   ac_status=$?
15954   grep -v '^ *+' conftest.er1 >conftest.err
15955   rm -f conftest.er1
15956   cat conftest.err >&5
15957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15958   (exit $ac_status); } &&
15959          { ac_try='test -z "$ac_c_werror_flag"
15960                          || test ! -s conftest.err'
15961   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15962   (eval $ac_try) 2>&5
15963   ac_status=$?
15964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15965   (exit $ac_status); }; } &&
15966          { ac_try='test -s conftest.$ac_objext'
15967   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15968   (eval $ac_try) 2>&5
15969   ac_status=$?
15970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15971   (exit $ac_status); }; }; then
15972   ac_hi=-1 ac_mid=-1
15973   while :; do
15974     cat >conftest.$ac_ext <<_ACEOF
15975 /* confdefs.h.  */
15976 _ACEOF
15977 cat confdefs.h >>conftest.$ac_ext
15978 cat >>conftest.$ac_ext <<_ACEOF
15979 /* end confdefs.h.  */
15980 $ac_includes_default
15981 int
15982 main ()
15983 {
15984 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= $ac_mid)];
15985 test_array [0] = 0
15986
15987   ;
15988   return 0;
15989 }
15990 _ACEOF
15991 rm -f conftest.$ac_objext
15992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15993   (eval $ac_compile) 2>conftest.er1
15994   ac_status=$?
15995   grep -v '^ *+' conftest.er1 >conftest.err
15996   rm -f conftest.er1
15997   cat conftest.err >&5
15998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15999   (exit $ac_status); } &&
16000          { ac_try='test -z "$ac_c_werror_flag"
16001                          || test ! -s conftest.err'
16002   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16003   (eval $ac_try) 2>&5
16004   ac_status=$?
16005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16006   (exit $ac_status); }; } &&
16007          { ac_try='test -s conftest.$ac_objext'
16008   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16009   (eval $ac_try) 2>&5
16010   ac_status=$?
16011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16012   (exit $ac_status); }; }; then
16013   ac_lo=$ac_mid; break
16014 else
16015   echo "$as_me: failed program was:" >&5
16016 sed 's/^/| /' conftest.$ac_ext >&5
16017
16018 ac_hi=`expr '(' $ac_mid ')' - 1`
16019                        if test $ac_mid -le $ac_hi; then
16020                          ac_lo= ac_hi=
16021                          break
16022                        fi
16023                        ac_mid=`expr 2 '*' $ac_mid`
16024 fi
16025 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16026   done
16027 else
16028   echo "$as_me: failed program was:" >&5
16029 sed 's/^/| /' conftest.$ac_ext >&5
16030
16031 ac_lo= ac_hi=
16032 fi
16033 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16034 fi
16035 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16036 # Binary search between lo and hi bounds.
16037 while test "x$ac_lo" != "x$ac_hi"; do
16038   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16039   cat >conftest.$ac_ext <<_ACEOF
16040 /* confdefs.h.  */
16041 _ACEOF
16042 cat confdefs.h >>conftest.$ac_ext
16043 cat >>conftest.$ac_ext <<_ACEOF
16044 /* end confdefs.h.  */
16045 $ac_includes_default
16046 int
16047 main ()
16048 {
16049 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
16050 test_array [0] = 0
16051
16052   ;
16053   return 0;
16054 }
16055 _ACEOF
16056 rm -f conftest.$ac_objext
16057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16058   (eval $ac_compile) 2>conftest.er1
16059   ac_status=$?
16060   grep -v '^ *+' conftest.er1 >conftest.err
16061   rm -f conftest.er1
16062   cat conftest.err >&5
16063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16064   (exit $ac_status); } &&
16065          { ac_try='test -z "$ac_c_werror_flag"
16066                          || test ! -s conftest.err'
16067   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16068   (eval $ac_try) 2>&5
16069   ac_status=$?
16070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16071   (exit $ac_status); }; } &&
16072          { ac_try='test -s conftest.$ac_objext'
16073   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16074   (eval $ac_try) 2>&5
16075   ac_status=$?
16076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16077   (exit $ac_status); }; }; then
16078   ac_hi=$ac_mid
16079 else
16080   echo "$as_me: failed program was:" >&5
16081 sed 's/^/| /' conftest.$ac_ext >&5
16082
16083 ac_lo=`expr '(' $ac_mid ')' + 1`
16084 fi
16085 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16086 done
16087 case $ac_lo in
16088 ?*) ac_cv_sizeof_long_int=$ac_lo;;
16089 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
16090 See \`config.log' for more details." >&5
16091 echo "$as_me: error: cannot compute sizeof (long int), 77
16092 See \`config.log' for more details." >&2;}
16093    { (exit 1); exit 1; }; } ;;
16094 esac
16095 else
16096   if test "$cross_compiling" = yes; then
16097   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16098 See \`config.log' for more details." >&5
16099 echo "$as_me: error: cannot run test program while cross compiling
16100 See \`config.log' for more details." >&2;}
16101    { (exit 1); exit 1; }; }
16102 else
16103   cat >conftest.$ac_ext <<_ACEOF
16104 /* confdefs.h.  */
16105 _ACEOF
16106 cat confdefs.h >>conftest.$ac_ext
16107 cat >>conftest.$ac_ext <<_ACEOF
16108 /* end confdefs.h.  */
16109 $ac_includes_default
16110 long longval () { return (long) (sizeof (long int)); }
16111 unsigned long ulongval () { return (long) (sizeof (long int)); }
16112 #include <stdio.h>
16113 #include <stdlib.h>
16114 int
16115 main ()
16116 {
16117
16118   FILE *f = fopen ("conftest.val", "w");
16119   if (! f)
16120     exit (1);
16121   if (((long) (sizeof (long int))) < 0)
16122     {
16123       long i = longval ();
16124       if (i != ((long) (sizeof (long int))))
16125         exit (1);
16126       fprintf (f, "%ld\n", i);
16127     }
16128   else
16129     {
16130       unsigned long i = ulongval ();
16131       if (i != ((long) (sizeof (long int))))
16132         exit (1);
16133       fprintf (f, "%lu\n", i);
16134     }
16135   exit (ferror (f) || fclose (f) != 0);
16136
16137   ;
16138   return 0;
16139 }
16140 _ACEOF
16141 rm -f conftest$ac_exeext
16142 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16143   (eval $ac_link) 2>&5
16144   ac_status=$?
16145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16146   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16147   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16148   (eval $ac_try) 2>&5
16149   ac_status=$?
16150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16151   (exit $ac_status); }; }; then
16152   ac_cv_sizeof_long_int=`cat conftest.val`
16153 else
16154   echo "$as_me: program exited with status $ac_status" >&5
16155 echo "$as_me: failed program was:" >&5
16156 sed 's/^/| /' conftest.$ac_ext >&5
16157
16158 ( exit $ac_status )
16159 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
16160 See \`config.log' for more details." >&5
16161 echo "$as_me: error: cannot compute sizeof (long int), 77
16162 See \`config.log' for more details." >&2;}
16163    { (exit 1); exit 1; }; }
16164 fi
16165 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16166 fi
16167 fi
16168 rm -f conftest.val
16169 else
16170   ac_cv_sizeof_long_int=0
16171 fi
16172 fi
16173 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
16174 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6
16175 cat >>confdefs.h <<_ACEOF
16176 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
16177 _ACEOF
16178
16179
16180 echo "$as_me:$LINENO: checking for long long int" >&5
16181 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
16182 if test "${ac_cv_type_long_long_int+set}" = set; then
16183   echo $ECHO_N "(cached) $ECHO_C" >&6
16184 else
16185   cat >conftest.$ac_ext <<_ACEOF
16186 /* confdefs.h.  */
16187 _ACEOF
16188 cat confdefs.h >>conftest.$ac_ext
16189 cat >>conftest.$ac_ext <<_ACEOF
16190 /* end confdefs.h.  */
16191 $ac_includes_default
16192 int
16193 main ()
16194 {
16195 if ((long long int *) 0)
16196   return 0;
16197 if (sizeof (long long int))
16198   return 0;
16199   ;
16200   return 0;
16201 }
16202 _ACEOF
16203 rm -f conftest.$ac_objext
16204 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16205   (eval $ac_compile) 2>conftest.er1
16206   ac_status=$?
16207   grep -v '^ *+' conftest.er1 >conftest.err
16208   rm -f conftest.er1
16209   cat conftest.err >&5
16210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16211   (exit $ac_status); } &&
16212          { ac_try='test -z "$ac_c_werror_flag"
16213                          || test ! -s conftest.err'
16214   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16215   (eval $ac_try) 2>&5
16216   ac_status=$?
16217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16218   (exit $ac_status); }; } &&
16219          { ac_try='test -s conftest.$ac_objext'
16220   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16221   (eval $ac_try) 2>&5
16222   ac_status=$?
16223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16224   (exit $ac_status); }; }; then
16225   ac_cv_type_long_long_int=yes
16226 else
16227   echo "$as_me: failed program was:" >&5
16228 sed 's/^/| /' conftest.$ac_ext >&5
16229
16230 ac_cv_type_long_long_int=no
16231 fi
16232 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16233 fi
16234 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
16235 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
16236
16237 echo "$as_me:$LINENO: checking size of long long int" >&5
16238 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6
16239 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
16240   echo $ECHO_N "(cached) $ECHO_C" >&6
16241 else
16242   if test "$ac_cv_type_long_long_int" = yes; then
16243   # The cast to unsigned long works around a bug in the HP C Compiler
16244   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16245   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16246   # This bug is HP SR number 8606223364.
16247   if test "$cross_compiling" = yes; then
16248   # Depending upon the size, compute the lo and hi bounds.
16249 cat >conftest.$ac_ext <<_ACEOF
16250 /* confdefs.h.  */
16251 _ACEOF
16252 cat confdefs.h >>conftest.$ac_ext
16253 cat >>conftest.$ac_ext <<_ACEOF
16254 /* end confdefs.h.  */
16255 $ac_includes_default
16256 int
16257 main ()
16258 {
16259 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= 0)];
16260 test_array [0] = 0
16261
16262   ;
16263   return 0;
16264 }
16265 _ACEOF
16266 rm -f conftest.$ac_objext
16267 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16268   (eval $ac_compile) 2>conftest.er1
16269   ac_status=$?
16270   grep -v '^ *+' conftest.er1 >conftest.err
16271   rm -f conftest.er1
16272   cat conftest.err >&5
16273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16274   (exit $ac_status); } &&
16275          { ac_try='test -z "$ac_c_werror_flag"
16276                          || test ! -s conftest.err'
16277   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16278   (eval $ac_try) 2>&5
16279   ac_status=$?
16280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16281   (exit $ac_status); }; } &&
16282          { ac_try='test -s conftest.$ac_objext'
16283   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16284   (eval $ac_try) 2>&5
16285   ac_status=$?
16286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16287   (exit $ac_status); }; }; then
16288   ac_lo=0 ac_mid=0
16289   while :; do
16290     cat >conftest.$ac_ext <<_ACEOF
16291 /* confdefs.h.  */
16292 _ACEOF
16293 cat confdefs.h >>conftest.$ac_ext
16294 cat >>conftest.$ac_ext <<_ACEOF
16295 /* end confdefs.h.  */
16296 $ac_includes_default
16297 int
16298 main ()
16299 {
16300 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
16301 test_array [0] = 0
16302
16303   ;
16304   return 0;
16305 }
16306 _ACEOF
16307 rm -f conftest.$ac_objext
16308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16309   (eval $ac_compile) 2>conftest.er1
16310   ac_status=$?
16311   grep -v '^ *+' conftest.er1 >conftest.err
16312   rm -f conftest.er1
16313   cat conftest.err >&5
16314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16315   (exit $ac_status); } &&
16316          { ac_try='test -z "$ac_c_werror_flag"
16317                          || test ! -s conftest.err'
16318   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16319   (eval $ac_try) 2>&5
16320   ac_status=$?
16321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16322   (exit $ac_status); }; } &&
16323          { ac_try='test -s conftest.$ac_objext'
16324   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16325   (eval $ac_try) 2>&5
16326   ac_status=$?
16327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16328   (exit $ac_status); }; }; then
16329   ac_hi=$ac_mid; break
16330 else
16331   echo "$as_me: failed program was:" >&5
16332 sed 's/^/| /' conftest.$ac_ext >&5
16333
16334 ac_lo=`expr $ac_mid + 1`
16335                     if test $ac_lo -le $ac_mid; then
16336                       ac_lo= ac_hi=
16337                       break
16338                     fi
16339                     ac_mid=`expr 2 '*' $ac_mid + 1`
16340 fi
16341 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16342   done
16343 else
16344   echo "$as_me: failed program was:" >&5
16345 sed 's/^/| /' conftest.$ac_ext >&5
16346
16347 cat >conftest.$ac_ext <<_ACEOF
16348 /* confdefs.h.  */
16349 _ACEOF
16350 cat confdefs.h >>conftest.$ac_ext
16351 cat >>conftest.$ac_ext <<_ACEOF
16352 /* end confdefs.h.  */
16353 $ac_includes_default
16354 int
16355 main ()
16356 {
16357 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) < 0)];
16358 test_array [0] = 0
16359
16360   ;
16361   return 0;
16362 }
16363 _ACEOF
16364 rm -f conftest.$ac_objext
16365 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16366   (eval $ac_compile) 2>conftest.er1
16367   ac_status=$?
16368   grep -v '^ *+' conftest.er1 >conftest.err
16369   rm -f conftest.er1
16370   cat conftest.err >&5
16371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16372   (exit $ac_status); } &&
16373          { ac_try='test -z "$ac_c_werror_flag"
16374                          || test ! -s conftest.err'
16375   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16376   (eval $ac_try) 2>&5
16377   ac_status=$?
16378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16379   (exit $ac_status); }; } &&
16380          { ac_try='test -s conftest.$ac_objext'
16381   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16382   (eval $ac_try) 2>&5
16383   ac_status=$?
16384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16385   (exit $ac_status); }; }; then
16386   ac_hi=-1 ac_mid=-1
16387   while :; do
16388     cat >conftest.$ac_ext <<_ACEOF
16389 /* confdefs.h.  */
16390 _ACEOF
16391 cat confdefs.h >>conftest.$ac_ext
16392 cat >>conftest.$ac_ext <<_ACEOF
16393 /* end confdefs.h.  */
16394 $ac_includes_default
16395 int
16396 main ()
16397 {
16398 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= $ac_mid)];
16399 test_array [0] = 0
16400
16401   ;
16402   return 0;
16403 }
16404 _ACEOF
16405 rm -f conftest.$ac_objext
16406 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16407   (eval $ac_compile) 2>conftest.er1
16408   ac_status=$?
16409   grep -v '^ *+' conftest.er1 >conftest.err
16410   rm -f conftest.er1
16411   cat conftest.err >&5
16412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16413   (exit $ac_status); } &&
16414          { ac_try='test -z "$ac_c_werror_flag"
16415                          || test ! -s conftest.err'
16416   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16417   (eval $ac_try) 2>&5
16418   ac_status=$?
16419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16420   (exit $ac_status); }; } &&
16421          { ac_try='test -s conftest.$ac_objext'
16422   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16423   (eval $ac_try) 2>&5
16424   ac_status=$?
16425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16426   (exit $ac_status); }; }; then
16427   ac_lo=$ac_mid; break
16428 else
16429   echo "$as_me: failed program was:" >&5
16430 sed 's/^/| /' conftest.$ac_ext >&5
16431
16432 ac_hi=`expr '(' $ac_mid ')' - 1`
16433                        if test $ac_mid -le $ac_hi; then
16434                          ac_lo= ac_hi=
16435                          break
16436                        fi
16437                        ac_mid=`expr 2 '*' $ac_mid`
16438 fi
16439 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16440   done
16441 else
16442   echo "$as_me: failed program was:" >&5
16443 sed 's/^/| /' conftest.$ac_ext >&5
16444
16445 ac_lo= ac_hi=
16446 fi
16447 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16448 fi
16449 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16450 # Binary search between lo and hi bounds.
16451 while test "x$ac_lo" != "x$ac_hi"; do
16452   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16453   cat >conftest.$ac_ext <<_ACEOF
16454 /* confdefs.h.  */
16455 _ACEOF
16456 cat confdefs.h >>conftest.$ac_ext
16457 cat >>conftest.$ac_ext <<_ACEOF
16458 /* end confdefs.h.  */
16459 $ac_includes_default
16460 int
16461 main ()
16462 {
16463 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
16464 test_array [0] = 0
16465
16466   ;
16467   return 0;
16468 }
16469 _ACEOF
16470 rm -f conftest.$ac_objext
16471 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16472   (eval $ac_compile) 2>conftest.er1
16473   ac_status=$?
16474   grep -v '^ *+' conftest.er1 >conftest.err
16475   rm -f conftest.er1
16476   cat conftest.err >&5
16477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16478   (exit $ac_status); } &&
16479          { ac_try='test -z "$ac_c_werror_flag"
16480                          || test ! -s conftest.err'
16481   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16482   (eval $ac_try) 2>&5
16483   ac_status=$?
16484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16485   (exit $ac_status); }; } &&
16486          { ac_try='test -s conftest.$ac_objext'
16487   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16488   (eval $ac_try) 2>&5
16489   ac_status=$?
16490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16491   (exit $ac_status); }; }; then
16492   ac_hi=$ac_mid
16493 else
16494   echo "$as_me: failed program was:" >&5
16495 sed 's/^/| /' conftest.$ac_ext >&5
16496
16497 ac_lo=`expr '(' $ac_mid ')' + 1`
16498 fi
16499 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16500 done
16501 case $ac_lo in
16502 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
16503 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
16504 See \`config.log' for more details." >&5
16505 echo "$as_me: error: cannot compute sizeof (long long int), 77
16506 See \`config.log' for more details." >&2;}
16507    { (exit 1); exit 1; }; } ;;
16508 esac
16509 else
16510   if test "$cross_compiling" = yes; then
16511   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16512 See \`config.log' for more details." >&5
16513 echo "$as_me: error: cannot run test program while cross compiling
16514 See \`config.log' for more details." >&2;}
16515    { (exit 1); exit 1; }; }
16516 else
16517   cat >conftest.$ac_ext <<_ACEOF
16518 /* confdefs.h.  */
16519 _ACEOF
16520 cat confdefs.h >>conftest.$ac_ext
16521 cat >>conftest.$ac_ext <<_ACEOF
16522 /* end confdefs.h.  */
16523 $ac_includes_default
16524 long longval () { return (long) (sizeof (long long int)); }
16525 unsigned long ulongval () { return (long) (sizeof (long long int)); }
16526 #include <stdio.h>
16527 #include <stdlib.h>
16528 int
16529 main ()
16530 {
16531
16532   FILE *f = fopen ("conftest.val", "w");
16533   if (! f)
16534     exit (1);
16535   if (((long) (sizeof (long long int))) < 0)
16536     {
16537       long i = longval ();
16538       if (i != ((long) (sizeof (long long int))))
16539         exit (1);
16540       fprintf (f, "%ld\n", i);
16541     }
16542   else
16543     {
16544       unsigned long i = ulongval ();
16545       if (i != ((long) (sizeof (long long int))))
16546         exit (1);
16547       fprintf (f, "%lu\n", i);
16548     }
16549   exit (ferror (f) || fclose (f) != 0);
16550
16551   ;
16552   return 0;
16553 }
16554 _ACEOF
16555 rm -f conftest$ac_exeext
16556 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16557   (eval $ac_link) 2>&5
16558   ac_status=$?
16559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16560   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16561   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16562   (eval $ac_try) 2>&5
16563   ac_status=$?
16564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16565   (exit $ac_status); }; }; then
16566   ac_cv_sizeof_long_long_int=`cat conftest.val`
16567 else
16568   echo "$as_me: program exited with status $ac_status" >&5
16569 echo "$as_me: failed program was:" >&5
16570 sed 's/^/| /' conftest.$ac_ext >&5
16571
16572 ( exit $ac_status )
16573 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
16574 See \`config.log' for more details." >&5
16575 echo "$as_me: error: cannot compute sizeof (long long int), 77
16576 See \`config.log' for more details." >&2;}
16577    { (exit 1); exit 1; }; }
16578 fi
16579 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16580 fi
16581 fi
16582 rm -f conftest.val
16583 else
16584   ac_cv_sizeof_long_long_int=0
16585 fi
16586 fi
16587 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
16588 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6
16589 cat >>confdefs.h <<_ACEOF
16590 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
16591 _ACEOF
16592
16593
16594 echo "$as_me:$LINENO: checking for int *" >&5
16595 echo $ECHO_N "checking for int *... $ECHO_C" >&6
16596 if test "${ac_cv_type_int_p+set}" = set; then
16597   echo $ECHO_N "(cached) $ECHO_C" >&6
16598 else
16599   cat >conftest.$ac_ext <<_ACEOF
16600 /* confdefs.h.  */
16601 _ACEOF
16602 cat confdefs.h >>conftest.$ac_ext
16603 cat >>conftest.$ac_ext <<_ACEOF
16604 /* end confdefs.h.  */
16605 $ac_includes_default
16606 int
16607 main ()
16608 {
16609 if ((int * *) 0)
16610   return 0;
16611 if (sizeof (int *))
16612   return 0;
16613   ;
16614   return 0;
16615 }
16616 _ACEOF
16617 rm -f conftest.$ac_objext
16618 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16619   (eval $ac_compile) 2>conftest.er1
16620   ac_status=$?
16621   grep -v '^ *+' conftest.er1 >conftest.err
16622   rm -f conftest.er1
16623   cat conftest.err >&5
16624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16625   (exit $ac_status); } &&
16626          { ac_try='test -z "$ac_c_werror_flag"
16627                          || test ! -s conftest.err'
16628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16629   (eval $ac_try) 2>&5
16630   ac_status=$?
16631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16632   (exit $ac_status); }; } &&
16633          { ac_try='test -s conftest.$ac_objext'
16634   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16635   (eval $ac_try) 2>&5
16636   ac_status=$?
16637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16638   (exit $ac_status); }; }; then
16639   ac_cv_type_int_p=yes
16640 else
16641   echo "$as_me: failed program was:" >&5
16642 sed 's/^/| /' conftest.$ac_ext >&5
16643
16644 ac_cv_type_int_p=no
16645 fi
16646 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16647 fi
16648 echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
16649 echo "${ECHO_T}$ac_cv_type_int_p" >&6
16650
16651 echo "$as_me:$LINENO: checking size of int *" >&5
16652 echo $ECHO_N "checking size of int *... $ECHO_C" >&6
16653 if test "${ac_cv_sizeof_int_p+set}" = set; then
16654   echo $ECHO_N "(cached) $ECHO_C" >&6
16655 else
16656   if test "$ac_cv_type_int_p" = yes; then
16657   # The cast to unsigned long works around a bug in the HP C Compiler
16658   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16659   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16660   # This bug is HP SR number 8606223364.
16661   if test "$cross_compiling" = yes; then
16662   # Depending upon the size, compute the lo and hi bounds.
16663 cat >conftest.$ac_ext <<_ACEOF
16664 /* confdefs.h.  */
16665 _ACEOF
16666 cat confdefs.h >>conftest.$ac_ext
16667 cat >>conftest.$ac_ext <<_ACEOF
16668 /* end confdefs.h.  */
16669 $ac_includes_default
16670 int
16671 main ()
16672 {
16673 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= 0)];
16674 test_array [0] = 0
16675
16676   ;
16677   return 0;
16678 }
16679 _ACEOF
16680 rm -f conftest.$ac_objext
16681 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16682   (eval $ac_compile) 2>conftest.er1
16683   ac_status=$?
16684   grep -v '^ *+' conftest.er1 >conftest.err
16685   rm -f conftest.er1
16686   cat conftest.err >&5
16687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16688   (exit $ac_status); } &&
16689          { ac_try='test -z "$ac_c_werror_flag"
16690                          || test ! -s conftest.err'
16691   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16692   (eval $ac_try) 2>&5
16693   ac_status=$?
16694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16695   (exit $ac_status); }; } &&
16696          { ac_try='test -s conftest.$ac_objext'
16697   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16698   (eval $ac_try) 2>&5
16699   ac_status=$?
16700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16701   (exit $ac_status); }; }; then
16702   ac_lo=0 ac_mid=0
16703   while :; do
16704     cat >conftest.$ac_ext <<_ACEOF
16705 /* confdefs.h.  */
16706 _ACEOF
16707 cat confdefs.h >>conftest.$ac_ext
16708 cat >>conftest.$ac_ext <<_ACEOF
16709 /* end confdefs.h.  */
16710 $ac_includes_default
16711 int
16712 main ()
16713 {
16714 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
16715 test_array [0] = 0
16716
16717   ;
16718   return 0;
16719 }
16720 _ACEOF
16721 rm -f conftest.$ac_objext
16722 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16723   (eval $ac_compile) 2>conftest.er1
16724   ac_status=$?
16725   grep -v '^ *+' conftest.er1 >conftest.err
16726   rm -f conftest.er1
16727   cat conftest.err >&5
16728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16729   (exit $ac_status); } &&
16730          { ac_try='test -z "$ac_c_werror_flag"
16731                          || test ! -s conftest.err'
16732   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16733   (eval $ac_try) 2>&5
16734   ac_status=$?
16735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16736   (exit $ac_status); }; } &&
16737          { ac_try='test -s conftest.$ac_objext'
16738   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16739   (eval $ac_try) 2>&5
16740   ac_status=$?
16741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16742   (exit $ac_status); }; }; then
16743   ac_hi=$ac_mid; break
16744 else
16745   echo "$as_me: failed program was:" >&5
16746 sed 's/^/| /' conftest.$ac_ext >&5
16747
16748 ac_lo=`expr $ac_mid + 1`
16749                     if test $ac_lo -le $ac_mid; then
16750                       ac_lo= ac_hi=
16751                       break
16752                     fi
16753                     ac_mid=`expr 2 '*' $ac_mid + 1`
16754 fi
16755 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16756   done
16757 else
16758   echo "$as_me: failed program was:" >&5
16759 sed 's/^/| /' conftest.$ac_ext >&5
16760
16761 cat >conftest.$ac_ext <<_ACEOF
16762 /* confdefs.h.  */
16763 _ACEOF
16764 cat confdefs.h >>conftest.$ac_ext
16765 cat >>conftest.$ac_ext <<_ACEOF
16766 /* end confdefs.h.  */
16767 $ac_includes_default
16768 int
16769 main ()
16770 {
16771 static int test_array [1 - 2 * !(((long) (sizeof (int *))) < 0)];
16772 test_array [0] = 0
16773
16774   ;
16775   return 0;
16776 }
16777 _ACEOF
16778 rm -f conftest.$ac_objext
16779 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16780   (eval $ac_compile) 2>conftest.er1
16781   ac_status=$?
16782   grep -v '^ *+' conftest.er1 >conftest.err
16783   rm -f conftest.er1
16784   cat conftest.err >&5
16785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16786   (exit $ac_status); } &&
16787          { ac_try='test -z "$ac_c_werror_flag"
16788                          || test ! -s conftest.err'
16789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16790   (eval $ac_try) 2>&5
16791   ac_status=$?
16792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16793   (exit $ac_status); }; } &&
16794          { ac_try='test -s conftest.$ac_objext'
16795   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16796   (eval $ac_try) 2>&5
16797   ac_status=$?
16798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16799   (exit $ac_status); }; }; then
16800   ac_hi=-1 ac_mid=-1
16801   while :; do
16802     cat >conftest.$ac_ext <<_ACEOF
16803 /* confdefs.h.  */
16804 _ACEOF
16805 cat confdefs.h >>conftest.$ac_ext
16806 cat >>conftest.$ac_ext <<_ACEOF
16807 /* end confdefs.h.  */
16808 $ac_includes_default
16809 int
16810 main ()
16811 {
16812 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= $ac_mid)];
16813 test_array [0] = 0
16814
16815   ;
16816   return 0;
16817 }
16818 _ACEOF
16819 rm -f conftest.$ac_objext
16820 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16821   (eval $ac_compile) 2>conftest.er1
16822   ac_status=$?
16823   grep -v '^ *+' conftest.er1 >conftest.err
16824   rm -f conftest.er1
16825   cat conftest.err >&5
16826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16827   (exit $ac_status); } &&
16828          { ac_try='test -z "$ac_c_werror_flag"
16829                          || test ! -s conftest.err'
16830   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16831   (eval $ac_try) 2>&5
16832   ac_status=$?
16833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16834   (exit $ac_status); }; } &&
16835          { ac_try='test -s conftest.$ac_objext'
16836   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16837   (eval $ac_try) 2>&5
16838   ac_status=$?
16839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16840   (exit $ac_status); }; }; then
16841   ac_lo=$ac_mid; break
16842 else
16843   echo "$as_me: failed program was:" >&5
16844 sed 's/^/| /' conftest.$ac_ext >&5
16845
16846 ac_hi=`expr '(' $ac_mid ')' - 1`
16847                        if test $ac_mid -le $ac_hi; then
16848                          ac_lo= ac_hi=
16849                          break
16850                        fi
16851                        ac_mid=`expr 2 '*' $ac_mid`
16852 fi
16853 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16854   done
16855 else
16856   echo "$as_me: failed program was:" >&5
16857 sed 's/^/| /' conftest.$ac_ext >&5
16858
16859 ac_lo= ac_hi=
16860 fi
16861 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16862 fi
16863 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16864 # Binary search between lo and hi bounds.
16865 while test "x$ac_lo" != "x$ac_hi"; do
16866   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16867   cat >conftest.$ac_ext <<_ACEOF
16868 /* confdefs.h.  */
16869 _ACEOF
16870 cat confdefs.h >>conftest.$ac_ext
16871 cat >>conftest.$ac_ext <<_ACEOF
16872 /* end confdefs.h.  */
16873 $ac_includes_default
16874 int
16875 main ()
16876 {
16877 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
16878 test_array [0] = 0
16879
16880   ;
16881   return 0;
16882 }
16883 _ACEOF
16884 rm -f conftest.$ac_objext
16885 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16886   (eval $ac_compile) 2>conftest.er1
16887   ac_status=$?
16888   grep -v '^ *+' conftest.er1 >conftest.err
16889   rm -f conftest.er1
16890   cat conftest.err >&5
16891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16892   (exit $ac_status); } &&
16893          { ac_try='test -z "$ac_c_werror_flag"
16894                          || test ! -s conftest.err'
16895   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16896   (eval $ac_try) 2>&5
16897   ac_status=$?
16898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16899   (exit $ac_status); }; } &&
16900          { ac_try='test -s conftest.$ac_objext'
16901   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16902   (eval $ac_try) 2>&5
16903   ac_status=$?
16904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16905   (exit $ac_status); }; }; then
16906   ac_hi=$ac_mid
16907 else
16908   echo "$as_me: failed program was:" >&5
16909 sed 's/^/| /' conftest.$ac_ext >&5
16910
16911 ac_lo=`expr '(' $ac_mid ')' + 1`
16912 fi
16913 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16914 done
16915 case $ac_lo in
16916 ?*) ac_cv_sizeof_int_p=$ac_lo;;
16917 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
16918 See \`config.log' for more details." >&5
16919 echo "$as_me: error: cannot compute sizeof (int *), 77
16920 See \`config.log' for more details." >&2;}
16921    { (exit 1); exit 1; }; } ;;
16922 esac
16923 else
16924   if test "$cross_compiling" = yes; then
16925   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16926 See \`config.log' for more details." >&5
16927 echo "$as_me: error: cannot run test program while cross compiling
16928 See \`config.log' for more details." >&2;}
16929    { (exit 1); exit 1; }; }
16930 else
16931   cat >conftest.$ac_ext <<_ACEOF
16932 /* confdefs.h.  */
16933 _ACEOF
16934 cat confdefs.h >>conftest.$ac_ext
16935 cat >>conftest.$ac_ext <<_ACEOF
16936 /* end confdefs.h.  */
16937 $ac_includes_default
16938 long longval () { return (long) (sizeof (int *)); }
16939 unsigned long ulongval () { return (long) (sizeof (int *)); }
16940 #include <stdio.h>
16941 #include <stdlib.h>
16942 int
16943 main ()
16944 {
16945
16946   FILE *f = fopen ("conftest.val", "w");
16947   if (! f)
16948     exit (1);
16949   if (((long) (sizeof (int *))) < 0)
16950     {
16951       long i = longval ();
16952       if (i != ((long) (sizeof (int *))))
16953         exit (1);
16954       fprintf (f, "%ld\n", i);
16955     }
16956   else
16957     {
16958       unsigned long i = ulongval ();
16959       if (i != ((long) (sizeof (int *))))
16960         exit (1);
16961       fprintf (f, "%lu\n", i);
16962     }
16963   exit (ferror (f) || fclose (f) != 0);
16964
16965   ;
16966   return 0;
16967 }
16968 _ACEOF
16969 rm -f conftest$ac_exeext
16970 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16971   (eval $ac_link) 2>&5
16972   ac_status=$?
16973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16974   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16975   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16976   (eval $ac_try) 2>&5
16977   ac_status=$?
16978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16979   (exit $ac_status); }; }; then
16980   ac_cv_sizeof_int_p=`cat conftest.val`
16981 else
16982   echo "$as_me: program exited with status $ac_status" >&5
16983 echo "$as_me: failed program was:" >&5
16984 sed 's/^/| /' conftest.$ac_ext >&5
16985
16986 ( exit $ac_status )
16987 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
16988 See \`config.log' for more details." >&5
16989 echo "$as_me: error: cannot compute sizeof (int *), 77
16990 See \`config.log' for more details." >&2;}
16991    { (exit 1); exit 1; }; }
16992 fi
16993 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16994 fi
16995 fi
16996 rm -f conftest.val
16997 else
16998   ac_cv_sizeof_int_p=0
16999 fi
17000 fi
17001 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
17002 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6
17003 cat >>confdefs.h <<_ACEOF
17004 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
17005 _ACEOF
17006
17007
17008
17009 # Check for sys/types.h types
17010 echo "$as_me:$LINENO: checking for u_int type" >&5
17011 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6
17012 if test "${ac_cv_have_u_int+set}" = set; then
17013   echo $ECHO_N "(cached) $ECHO_C" >&6
17014 else
17015
17016     cat >conftest.$ac_ext <<_ACEOF
17017 /* confdefs.h.  */
17018 _ACEOF
17019 cat confdefs.h >>conftest.$ac_ext
17020 cat >>conftest.$ac_ext <<_ACEOF
17021 /* end confdefs.h.  */
17022  #include <sys/types.h>
17023 int
17024 main ()
17025 {
17026  u_int a; a = 1;
17027   ;
17028   return 0;
17029 }
17030 _ACEOF
17031 rm -f conftest.$ac_objext
17032 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17033   (eval $ac_compile) 2>conftest.er1
17034   ac_status=$?
17035   grep -v '^ *+' conftest.er1 >conftest.err
17036   rm -f conftest.er1
17037   cat conftest.err >&5
17038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17039   (exit $ac_status); } &&
17040          { ac_try='test -z "$ac_c_werror_flag"
17041                          || test ! -s conftest.err'
17042   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17043   (eval $ac_try) 2>&5
17044   ac_status=$?
17045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17046   (exit $ac_status); }; } &&
17047          { ac_try='test -s conftest.$ac_objext'
17048   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17049   (eval $ac_try) 2>&5
17050   ac_status=$?
17051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17052   (exit $ac_status); }; }; then
17053    ac_cv_have_u_int="yes"
17054 else
17055   echo "$as_me: failed program was:" >&5
17056 sed 's/^/| /' conftest.$ac_ext >&5
17057
17058  ac_cv_have_u_int="no"
17059
17060 fi
17061 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17062
17063 fi
17064 echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
17065 echo "${ECHO_T}$ac_cv_have_u_int" >&6
17066 if test "x$ac_cv_have_u_int" = "xyes" ; then
17067    cat >>confdefs.h <<\_ACEOF
17068 #define HAVE_U_INT 1
17069 _ACEOF
17070
17071    have_u_int=1
17072 fi
17073
17074 echo "$as_me:$LINENO: checking for intmax_t type" >&5
17075 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6
17076 if test "${ac_cv_have_intmax_t+set}" = set; then
17077   echo $ECHO_N "(cached) $ECHO_C" >&6
17078 else
17079
17080    cat >conftest.$ac_ext <<_ACEOF
17081 /* confdefs.h.  */
17082 _ACEOF
17083 cat confdefs.h >>conftest.$ac_ext
17084 cat >>conftest.$ac_ext <<_ACEOF
17085 /* end confdefs.h.  */
17086  #include <sys/types.h>
17087 int
17088 main ()
17089 {
17090  intmax_t a; a = 1;
17091   ;
17092   return 0;
17093 }
17094 _ACEOF
17095 rm -f conftest.$ac_objext
17096 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17097   (eval $ac_compile) 2>conftest.er1
17098   ac_status=$?
17099   grep -v '^ *+' conftest.er1 >conftest.err
17100   rm -f conftest.er1
17101   cat conftest.err >&5
17102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17103   (exit $ac_status); } &&
17104          { ac_try='test -z "$ac_c_werror_flag"
17105                          || test ! -s conftest.err'
17106   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17107   (eval $ac_try) 2>&5
17108   ac_status=$?
17109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17110   (exit $ac_status); }; } &&
17111          { ac_try='test -s conftest.$ac_objext'
17112   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17113   (eval $ac_try) 2>&5
17114   ac_status=$?
17115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17116   (exit $ac_status); }; }; then
17117    ac_cv_have_intmax_t="yes"
17118 else
17119   echo "$as_me: failed program was:" >&5
17120 sed 's/^/| /' conftest.$ac_ext >&5
17121
17122
17123          cat >conftest.$ac_ext <<_ACEOF
17124 /* confdefs.h.  */
17125 _ACEOF
17126 cat confdefs.h >>conftest.$ac_ext
17127 cat >>conftest.$ac_ext <<_ACEOF
17128 /* end confdefs.h.  */
17129  #include <stdint.h>
17130 int
17131 main ()
17132 {
17133  intmax_t a; a = 1;
17134   ;
17135   return 0;
17136 }
17137 _ACEOF
17138 rm -f conftest.$ac_objext
17139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17140   (eval $ac_compile) 2>conftest.er1
17141   ac_status=$?
17142   grep -v '^ *+' conftest.er1 >conftest.err
17143   rm -f conftest.er1
17144   cat conftest.err >&5
17145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17146   (exit $ac_status); } &&
17147          { ac_try='test -z "$ac_c_werror_flag"
17148                          || test ! -s conftest.err'
17149   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17150   (eval $ac_try) 2>&5
17151   ac_status=$?
17152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17153   (exit $ac_status); }; } &&
17154          { ac_try='test -s conftest.$ac_objext'
17155   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17156   (eval $ac_try) 2>&5
17157   ac_status=$?
17158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17159   (exit $ac_status); }; }; then
17160    ac_cv_have_intmax_t="yes"
17161 else
17162   echo "$as_me: failed program was:" >&5
17163 sed 's/^/| /' conftest.$ac_ext >&5
17164
17165  ac_cv_have_intmax_t="no"
17166
17167 fi
17168 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17169
17170
17171 fi
17172 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17173
17174
17175 fi
17176 echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
17177 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6
17178 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
17179    cat >>confdefs.h <<\_ACEOF
17180 #define HAVE_INTMAX_T 1
17181 _ACEOF
17182
17183    have_intmax_t=1
17184 fi
17185
17186
17187 echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
17188 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6
17189 if test "${ac_cv_have_u_intmax_t+set}" = set; then
17190   echo $ECHO_N "(cached) $ECHO_C" >&6
17191 else
17192
17193    cat >conftest.$ac_ext <<_ACEOF
17194 /* confdefs.h.  */
17195 _ACEOF
17196 cat confdefs.h >>conftest.$ac_ext
17197 cat >>conftest.$ac_ext <<_ACEOF
17198 /* end confdefs.h.  */
17199  #include <sys/types.h>
17200 int
17201 main ()
17202 {
17203  u_intmax_t a; a = 1;
17204   ;
17205   return 0;
17206 }
17207 _ACEOF
17208 rm -f conftest.$ac_objext
17209 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17210   (eval $ac_compile) 2>conftest.er1
17211   ac_status=$?
17212   grep -v '^ *+' conftest.er1 >conftest.err
17213   rm -f conftest.er1
17214   cat conftest.err >&5
17215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17216   (exit $ac_status); } &&
17217          { ac_try='test -z "$ac_c_werror_flag"
17218                          || test ! -s conftest.err'
17219   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17220   (eval $ac_try) 2>&5
17221   ac_status=$?
17222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17223   (exit $ac_status); }; } &&
17224          { ac_try='test -s conftest.$ac_objext'
17225   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17226   (eval $ac_try) 2>&5
17227   ac_status=$?
17228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17229   (exit $ac_status); }; }; then
17230    ac_cv_have_u_intmax_t="yes"
17231 else
17232   echo "$as_me: failed program was:" >&5
17233 sed 's/^/| /' conftest.$ac_ext >&5
17234
17235
17236          cat >conftest.$ac_ext <<_ACEOF
17237 /* confdefs.h.  */
17238 _ACEOF
17239 cat confdefs.h >>conftest.$ac_ext
17240 cat >>conftest.$ac_ext <<_ACEOF
17241 /* end confdefs.h.  */
17242  #include <stdint.h>
17243 int
17244 main ()
17245 {
17246  u_intmax_t a; a = 1;
17247   ;
17248   return 0;
17249 }
17250 _ACEOF
17251 rm -f conftest.$ac_objext
17252 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17253   (eval $ac_compile) 2>conftest.er1
17254   ac_status=$?
17255   grep -v '^ *+' conftest.er1 >conftest.err
17256   rm -f conftest.er1
17257   cat conftest.err >&5
17258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17259   (exit $ac_status); } &&
17260          { ac_try='test -z "$ac_c_werror_flag"
17261                          || test ! -s conftest.err'
17262   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17263   (eval $ac_try) 2>&5
17264   ac_status=$?
17265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17266   (exit $ac_status); }; } &&
17267          { ac_try='test -s conftest.$ac_objext'
17268   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17269   (eval $ac_try) 2>&5
17270   ac_status=$?
17271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17272   (exit $ac_status); }; }; then
17273    ac_cv_have_u_intmax_t="yes"
17274 else
17275   echo "$as_me: failed program was:" >&5
17276 sed 's/^/| /' conftest.$ac_ext >&5
17277
17278  ac_cv_have_u_intmax_t="no"
17279
17280 fi
17281 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17282
17283
17284 fi
17285 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17286
17287 fi
17288 echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
17289 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6
17290 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
17291    cat >>confdefs.h <<\_ACEOF
17292 #define HAVE_U_INTMAX_T 1
17293 _ACEOF
17294
17295    have_u_intmax_t=1
17296 fi
17297
17298
17299 echo "$as_me:$LINENO: checking for intXX_t types" >&5
17300 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6
17301 if test "${ac_cv_have_intxx_t+set}" = set; then
17302   echo $ECHO_N "(cached) $ECHO_C" >&6
17303 else
17304
17305    cat >conftest.$ac_ext <<_ACEOF
17306 /* confdefs.h.  */
17307 _ACEOF
17308 cat confdefs.h >>conftest.$ac_ext
17309 cat >>conftest.$ac_ext <<_ACEOF
17310 /* end confdefs.h.  */
17311  #include <sys/types.h>
17312 int
17313 main ()
17314 {
17315  int8_t a; int16_t b; int32_t c; a = b = c = 1;
17316   ;
17317   return 0;
17318 }
17319 _ACEOF
17320 rm -f conftest.$ac_objext
17321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17322   (eval $ac_compile) 2>conftest.er1
17323   ac_status=$?
17324   grep -v '^ *+' conftest.er1 >conftest.err
17325   rm -f conftest.er1
17326   cat conftest.err >&5
17327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17328   (exit $ac_status); } &&
17329          { ac_try='test -z "$ac_c_werror_flag"
17330                          || test ! -s conftest.err'
17331   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17332   (eval $ac_try) 2>&5
17333   ac_status=$?
17334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17335   (exit $ac_status); }; } &&
17336          { ac_try='test -s conftest.$ac_objext'
17337   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17338   (eval $ac_try) 2>&5
17339   ac_status=$?
17340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17341   (exit $ac_status); }; }; then
17342    ac_cv_have_intxx_t="yes"
17343 else
17344   echo "$as_me: failed program was:" >&5
17345 sed 's/^/| /' conftest.$ac_ext >&5
17346
17347  ac_cv_have_intxx_t="no"
17348
17349 fi
17350 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17351
17352 fi
17353 echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
17354 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6
17355 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
17356    cat >>confdefs.h <<\_ACEOF
17357 #define HAVE_INTXX_T 1
17358 _ACEOF
17359
17360    have_intxx_t=1
17361 fi
17362
17363 echo "$as_me:$LINENO: checking for int64_t type" >&5
17364 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6
17365 if test "${ac_cv_have_int64_t+set}" = set; then
17366   echo $ECHO_N "(cached) $ECHO_C" >&6
17367 else
17368
17369    cat >conftest.$ac_ext <<_ACEOF
17370 /* confdefs.h.  */
17371 _ACEOF
17372 cat confdefs.h >>conftest.$ac_ext
17373 cat >>conftest.$ac_ext <<_ACEOF
17374 /* end confdefs.h.  */
17375  #include <sys/types.h>
17376 int
17377 main ()
17378 {
17379  int64_t a; a = 1;
17380   ;
17381   return 0;
17382 }
17383 _ACEOF
17384 rm -f conftest.$ac_objext
17385 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17386   (eval $ac_compile) 2>conftest.er1
17387   ac_status=$?
17388   grep -v '^ *+' conftest.er1 >conftest.err
17389   rm -f conftest.er1
17390   cat conftest.err >&5
17391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17392   (exit $ac_status); } &&
17393          { ac_try='test -z "$ac_c_werror_flag"
17394                          || test ! -s conftest.err'
17395   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17396   (eval $ac_try) 2>&5
17397   ac_status=$?
17398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17399   (exit $ac_status); }; } &&
17400          { ac_try='test -s conftest.$ac_objext'
17401   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17402   (eval $ac_try) 2>&5
17403   ac_status=$?
17404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17405   (exit $ac_status); }; }; then
17406    ac_cv_have_int64_t="yes"
17407 else
17408   echo "$as_me: failed program was:" >&5
17409 sed 's/^/| /' conftest.$ac_ext >&5
17410
17411  ac_cv_have_int64_t="no"
17412
17413 fi
17414 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17415
17416 fi
17417 echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
17418 echo "${ECHO_T}$ac_cv_have_int64_t" >&6
17419 if test "x$ac_cv_have_int64_t" = "xyes" ; then
17420    cat >>confdefs.h <<\_ACEOF
17421 #define HAVE_INT64_T 1
17422 _ACEOF
17423
17424    have_int64_t=1
17425 fi
17426
17427 echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
17428 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6
17429 if test "${ac_cv_have_u_intxx_t+set}" = set; then
17430   echo $ECHO_N "(cached) $ECHO_C" >&6
17431 else
17432
17433    cat >conftest.$ac_ext <<_ACEOF
17434 /* confdefs.h.  */
17435 _ACEOF
17436 cat confdefs.h >>conftest.$ac_ext
17437 cat >>conftest.$ac_ext <<_ACEOF
17438 /* end confdefs.h.  */
17439  #include <sys/types.h>
17440 int
17441 main ()
17442 {
17443  u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
17444   ;
17445   return 0;
17446 }
17447 _ACEOF
17448 rm -f conftest.$ac_objext
17449 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17450   (eval $ac_compile) 2>conftest.er1
17451   ac_status=$?
17452   grep -v '^ *+' conftest.er1 >conftest.err
17453   rm -f conftest.er1
17454   cat conftest.err >&5
17455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17456   (exit $ac_status); } &&
17457          { ac_try='test -z "$ac_c_werror_flag"
17458                          || test ! -s conftest.err'
17459   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17460   (eval $ac_try) 2>&5
17461   ac_status=$?
17462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17463   (exit $ac_status); }; } &&
17464          { ac_try='test -s conftest.$ac_objext'
17465   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17466   (eval $ac_try) 2>&5
17467   ac_status=$?
17468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17469   (exit $ac_status); }; }; then
17470    ac_cv_have_u_intxx_t="yes"
17471 else
17472   echo "$as_me: failed program was:" >&5
17473 sed 's/^/| /' conftest.$ac_ext >&5
17474
17475  ac_cv_have_u_intxx_t="no"
17476
17477 fi
17478 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17479
17480 fi
17481 echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
17482 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6
17483 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
17484    cat >>confdefs.h <<\_ACEOF
17485 #define HAVE_U_INTXX_T 1
17486 _ACEOF
17487
17488    have_u_intxx_t=1
17489 fi
17490
17491 echo "$as_me:$LINENO: checking for u_int64_t types" >&5
17492 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6
17493 if test "${ac_cv_have_u_int64_t+set}" = set; then
17494   echo $ECHO_N "(cached) $ECHO_C" >&6
17495 else
17496
17497    cat >conftest.$ac_ext <<_ACEOF
17498 /* confdefs.h.  */
17499 _ACEOF
17500 cat confdefs.h >>conftest.$ac_ext
17501 cat >>conftest.$ac_ext <<_ACEOF
17502 /* end confdefs.h.  */
17503  #include <sys/types.h>
17504 int
17505 main ()
17506 {
17507  u_int64_t a; a = 1;
17508   ;
17509   return 0;
17510 }
17511 _ACEOF
17512 rm -f conftest.$ac_objext
17513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17514   (eval $ac_compile) 2>conftest.er1
17515   ac_status=$?
17516   grep -v '^ *+' conftest.er1 >conftest.err
17517   rm -f conftest.er1
17518   cat conftest.err >&5
17519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17520   (exit $ac_status); } &&
17521          { ac_try='test -z "$ac_c_werror_flag"
17522                          || test ! -s conftest.err'
17523   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17524   (eval $ac_try) 2>&5
17525   ac_status=$?
17526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17527   (exit $ac_status); }; } &&
17528          { ac_try='test -s conftest.$ac_objext'
17529   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17530   (eval $ac_try) 2>&5
17531   ac_status=$?
17532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17533   (exit $ac_status); }; }; then
17534    ac_cv_have_u_int64_t="yes"
17535 else
17536   echo "$as_me: failed program was:" >&5
17537 sed 's/^/| /' conftest.$ac_ext >&5
17538
17539  ac_cv_have_u_int64_t="no"
17540
17541 fi
17542 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17543
17544 fi
17545 echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
17546 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6
17547 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
17548    cat >>confdefs.h <<\_ACEOF
17549 #define HAVE_U_INT64_T 1
17550 _ACEOF
17551
17552    have_u_int64_t=1
17553 fi
17554
17555 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
17556            test "x$ac_cv_header_sys_bitypes_h" = "xyes")
17557 then
17558    echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
17559 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6
17560    cat >conftest.$ac_ext <<_ACEOF
17561 /* confdefs.h.  */
17562 _ACEOF
17563 cat confdefs.h >>conftest.$ac_ext
17564 cat >>conftest.$ac_ext <<_ACEOF
17565 /* end confdefs.h.  */
17566  #include <sys/bitypes.h>
17567 int
17568 main ()
17569 {
17570  int8_t a; int16_t b; int32_t c;
17571         u_int8_t e; u_int16_t f; u_int32_t g;
17572         a = b = c = e = f = g = 1;
17573   ;
17574   return 0;
17575 }
17576 _ACEOF
17577 rm -f conftest.$ac_objext
17578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17579   (eval $ac_compile) 2>conftest.er1
17580   ac_status=$?
17581   grep -v '^ *+' conftest.er1 >conftest.err
17582   rm -f conftest.er1
17583   cat conftest.err >&5
17584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17585   (exit $ac_status); } &&
17586          { ac_try='test -z "$ac_c_werror_flag"
17587                          || test ! -s conftest.err'
17588   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17589   (eval $ac_try) 2>&5
17590   ac_status=$?
17591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17592   (exit $ac_status); }; } &&
17593          { ac_try='test -s conftest.$ac_objext'
17594   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17595   (eval $ac_try) 2>&5
17596   ac_status=$?
17597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17598   (exit $ac_status); }; }; then
17599    cat >>confdefs.h <<\_ACEOF
17600 #define HAVE_U_INTXX_T 1
17601 _ACEOF
17602
17603         cat >>confdefs.h <<\_ACEOF
17604 #define HAVE_INTXX_T 1
17605 _ACEOF
17606
17607         cat >>confdefs.h <<\_ACEOF
17608 #define HAVE_SYS_BITYPES_H 1
17609 _ACEOF
17610
17611         echo "$as_me:$LINENO: result: yes" >&5
17612 echo "${ECHO_T}yes" >&6
17613 else
17614   echo "$as_me: failed program was:" >&5
17615 sed 's/^/| /' conftest.$ac_ext >&5
17616
17617  echo "$as_me:$LINENO: result: no" >&5
17618 echo "${ECHO_T}no" >&6
17619
17620 fi
17621 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17622 fi
17623
17624 if test -z "$have_u_intxx_t" ; then
17625    echo "$as_me:$LINENO: checking for uintXX_t types" >&5
17626 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6
17627 if test "${ac_cv_have_uintxx_t+set}" = set; then
17628   echo $ECHO_N "(cached) $ECHO_C" >&6
17629 else
17630
17631       cat >conftest.$ac_ext <<_ACEOF
17632 /* confdefs.h.  */
17633 _ACEOF
17634 cat confdefs.h >>conftest.$ac_ext
17635 cat >>conftest.$ac_ext <<_ACEOF
17636 /* end confdefs.h.  */
17637  #include <sys/types.h>
17638 int
17639 main ()
17640 {
17641  uint8_t a; uint16_t b;
17642            uint32_t c; a = b = c = 1;
17643   ;
17644   return 0;
17645 }
17646 _ACEOF
17647 rm -f conftest.$ac_objext
17648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17649   (eval $ac_compile) 2>conftest.er1
17650   ac_status=$?
17651   grep -v '^ *+' conftest.er1 >conftest.err
17652   rm -f conftest.er1
17653   cat conftest.err >&5
17654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17655   (exit $ac_status); } &&
17656          { ac_try='test -z "$ac_c_werror_flag"
17657                          || test ! -s conftest.err'
17658   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17659   (eval $ac_try) 2>&5
17660   ac_status=$?
17661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17662   (exit $ac_status); }; } &&
17663          { ac_try='test -s conftest.$ac_objext'
17664   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17665   (eval $ac_try) 2>&5
17666   ac_status=$?
17667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17668   (exit $ac_status); }; }; then
17669    ac_cv_have_uintxx_t="yes"
17670 else
17671   echo "$as_me: failed program was:" >&5
17672 sed 's/^/| /' conftest.$ac_ext >&5
17673
17674  ac_cv_have_uintxx_t="no"
17675
17676 fi
17677 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17678
17679 fi
17680 echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
17681 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6
17682    if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
17683       cat >>confdefs.h <<\_ACEOF
17684 #define HAVE_UINTXX_T 1
17685 _ACEOF
17686
17687    fi
17688 fi
17689
17690 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
17691           test "x$ac_cv_header_sys_bitypes_h" = "xyes")
17692 then
17693    echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
17694 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6
17695    cat >conftest.$ac_ext <<_ACEOF
17696 /* confdefs.h.  */
17697 _ACEOF
17698 cat confdefs.h >>conftest.$ac_ext
17699 cat >>conftest.$ac_ext <<_ACEOF
17700 /* end confdefs.h.  */
17701  #include <sys/bitypes.h>
17702 int
17703 main ()
17704 {
17705  int64_t a; u_int64_t b;
17706        a = b = 1;
17707   ;
17708   return 0;
17709 }
17710 _ACEOF
17711 rm -f conftest.$ac_objext
17712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17713   (eval $ac_compile) 2>conftest.er1
17714   ac_status=$?
17715   grep -v '^ *+' conftest.er1 >conftest.err
17716   rm -f conftest.er1
17717   cat conftest.err >&5
17718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17719   (exit $ac_status); } &&
17720          { ac_try='test -z "$ac_c_werror_flag"
17721                          || test ! -s conftest.err'
17722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17723   (eval $ac_try) 2>&5
17724   ac_status=$?
17725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17726   (exit $ac_status); }; } &&
17727          { ac_try='test -s conftest.$ac_objext'
17728   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17729   (eval $ac_try) 2>&5
17730   ac_status=$?
17731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17732   (exit $ac_status); }; }; then
17733    cat >>confdefs.h <<\_ACEOF
17734 #define HAVE_U_INT64_T 1
17735 _ACEOF
17736
17737        cat >>confdefs.h <<\_ACEOF
17738 #define HAVE_INT64_T 1
17739 _ACEOF
17740
17741        echo "$as_me:$LINENO: result: yes" >&5
17742 echo "${ECHO_T}yes" >&6
17743 else
17744   echo "$as_me: failed program was:" >&5
17745 sed 's/^/| /' conftest.$ac_ext >&5
17746
17747  echo "$as_me:$LINENO: result: no" >&5
17748 echo "${ECHO_T}no" >&6
17749
17750 fi
17751 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17752 fi
17753
17754 if (test -z "$have_uintxx_t" && \
17755           test "x$ac_cv_header_sys_bitypes_h" = "xyes")
17756 then
17757    echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
17758 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6
17759    cat >conftest.$ac_ext <<_ACEOF
17760 /* confdefs.h.  */
17761 _ACEOF
17762 cat confdefs.h >>conftest.$ac_ext
17763 cat >>conftest.$ac_ext <<_ACEOF
17764 /* end confdefs.h.  */
17765  #include <sys/bitypes.h>
17766 int
17767 main ()
17768 {
17769  uint8_t a; uint16_t b;
17770           uint32_t c; a = b = c = 1;
17771   ;
17772   return 0;
17773 }
17774 _ACEOF
17775 rm -f conftest.$ac_objext
17776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17777   (eval $ac_compile) 2>conftest.er1
17778   ac_status=$?
17779   grep -v '^ *+' conftest.er1 >conftest.err
17780   rm -f conftest.er1
17781   cat conftest.err >&5
17782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17783   (exit $ac_status); } &&
17784          { ac_try='test -z "$ac_c_werror_flag"
17785                          || test ! -s conftest.err'
17786   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17787   (eval $ac_try) 2>&5
17788   ac_status=$?
17789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17790   (exit $ac_status); }; } &&
17791          { ac_try='test -s conftest.$ac_objext'
17792   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17793   (eval $ac_try) 2>&5
17794   ac_status=$?
17795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17796   (exit $ac_status); }; }; then
17797    cat >>confdefs.h <<\_ACEOF
17798 #define HAVE_UINTXX_T 1
17799 _ACEOF
17800
17801        echo "$as_me:$LINENO: result: yes" >&5
17802 echo "${ECHO_T}yes" >&6
17803 else
17804   echo "$as_me: failed program was:" >&5
17805 sed 's/^/| /' conftest.$ac_ext >&5
17806
17807  echo "$as_me:$LINENO: result: no" >&5
17808 echo "${ECHO_T}no" >&6
17809
17810 fi
17811 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17812
17813 fi
17814
17815
17816
17817
17818
17819
17820
17821
17822
17823
17824
17825
17826
17827
17828
17829
17830
17831 for ac_func in \
17832         fork \
17833         getcwd \
17834         gethostname \
17835         getpid \
17836         gettimeofday \
17837         setpgid \
17838         setpgrp \
17839         setsid \
17840         signal \
17841         strerror \
17842         strncmp \
17843         strncpy \
17844         vfprintf \
17845
17846 do
17847 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17848 echo "$as_me:$LINENO: checking for $ac_func" >&5
17849 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17850 if eval "test \"\${$as_ac_var+set}\" = set"; then
17851   echo $ECHO_N "(cached) $ECHO_C" >&6
17852 else
17853   cat >conftest.$ac_ext <<_ACEOF
17854 /* confdefs.h.  */
17855 _ACEOF
17856 cat confdefs.h >>conftest.$ac_ext
17857 cat >>conftest.$ac_ext <<_ACEOF
17858 /* end confdefs.h.  */
17859 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17860    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17861 #define $ac_func innocuous_$ac_func
17862
17863 /* System header to define __stub macros and hopefully few prototypes,
17864     which can conflict with char $ac_func (); below.
17865     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17866     <limits.h> exists even on freestanding compilers.  */
17867
17868 #ifdef __STDC__
17869 # include <limits.h>
17870 #else
17871 # include <assert.h>
17872 #endif
17873
17874 #undef $ac_func
17875
17876 /* Override any gcc2 internal prototype to avoid an error.  */
17877 #ifdef __cplusplus
17878 extern "C"
17879 {
17880 #endif
17881 /* We use char because int might match the return type of a gcc2
17882    builtin and then its argument prototype would still apply.  */
17883 char $ac_func ();
17884 /* The GNU C library defines this for functions which it implements
17885     to always fail with ENOSYS.  Some functions are actually named
17886     something starting with __ and the normal name is an alias.  */
17887 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17888 choke me
17889 #else
17890 char (*f) () = $ac_func;
17891 #endif
17892 #ifdef __cplusplus
17893 }
17894 #endif
17895
17896 int
17897 main ()
17898 {
17899 return f != $ac_func;
17900   ;
17901   return 0;
17902 }
17903 _ACEOF
17904 rm -f conftest.$ac_objext conftest$ac_exeext
17905 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17906   (eval $ac_link) 2>conftest.er1
17907   ac_status=$?
17908   grep -v '^ *+' conftest.er1 >conftest.err
17909   rm -f conftest.er1
17910   cat conftest.err >&5
17911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17912   (exit $ac_status); } &&
17913          { ac_try='test -z "$ac_c_werror_flag"
17914                          || test ! -s conftest.err'
17915   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17916   (eval $ac_try) 2>&5
17917   ac_status=$?
17918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17919   (exit $ac_status); }; } &&
17920          { ac_try='test -s conftest$ac_exeext'
17921   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17922   (eval $ac_try) 2>&5
17923   ac_status=$?
17924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17925   (exit $ac_status); }; }; then
17926   eval "$as_ac_var=yes"
17927 else
17928   echo "$as_me: failed program was:" >&5
17929 sed 's/^/| /' conftest.$ac_ext >&5
17930
17931 eval "$as_ac_var=no"
17932 fi
17933 rm -f conftest.err conftest.$ac_objext \
17934       conftest$ac_exeext conftest.$ac_ext
17935 fi
17936 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17937 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17938 if test `eval echo '${'$as_ac_var'}'` = yes; then
17939   cat >>confdefs.h <<_ACEOF
17940 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17941 _ACEOF
17942
17943 else
17944   echo 'configure: cannot find needed function.'; exit 1
17945
17946 fi
17947 done
17948
17949
17950
17951 for ac_func in fchdir
17952 do
17953 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17954 echo "$as_me:$LINENO: checking for $ac_func" >&5
17955 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17956 if eval "test \"\${$as_ac_var+set}\" = set"; then
17957   echo $ECHO_N "(cached) $ECHO_C" >&6
17958 else
17959   cat >conftest.$ac_ext <<_ACEOF
17960 /* confdefs.h.  */
17961 _ACEOF
17962 cat confdefs.h >>conftest.$ac_ext
17963 cat >>conftest.$ac_ext <<_ACEOF
17964 /* end confdefs.h.  */
17965 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17966    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17967 #define $ac_func innocuous_$ac_func
17968
17969 /* System header to define __stub macros and hopefully few prototypes,
17970     which can conflict with char $ac_func (); below.
17971     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17972     <limits.h> exists even on freestanding compilers.  */
17973
17974 #ifdef __STDC__
17975 # include <limits.h>
17976 #else
17977 # include <assert.h>
17978 #endif
17979
17980 #undef $ac_func
17981
17982 /* Override any gcc2 internal prototype to avoid an error.  */
17983 #ifdef __cplusplus
17984 extern "C"
17985 {
17986 #endif
17987 /* We use char because int might match the return type of a gcc2
17988    builtin and then its argument prototype would still apply.  */
17989 char $ac_func ();
17990 /* The GNU C library defines this for functions which it implements
17991     to always fail with ENOSYS.  Some functions are actually named
17992     something starting with __ and the normal name is an alias.  */
17993 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17994 choke me
17995 #else
17996 char (*f) () = $ac_func;
17997 #endif
17998 #ifdef __cplusplus
17999 }
18000 #endif
18001
18002 int
18003 main ()
18004 {
18005 return f != $ac_func;
18006   ;
18007   return 0;
18008 }
18009 _ACEOF
18010 rm -f conftest.$ac_objext conftest$ac_exeext
18011 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18012   (eval $ac_link) 2>conftest.er1
18013   ac_status=$?
18014   grep -v '^ *+' conftest.er1 >conftest.err
18015   rm -f conftest.er1
18016   cat conftest.err >&5
18017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18018   (exit $ac_status); } &&
18019          { ac_try='test -z "$ac_c_werror_flag"
18020                          || test ! -s conftest.err'
18021   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18022   (eval $ac_try) 2>&5
18023   ac_status=$?
18024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18025   (exit $ac_status); }; } &&
18026          { ac_try='test -s conftest$ac_exeext'
18027   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18028   (eval $ac_try) 2>&5
18029   ac_status=$?
18030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18031   (exit $ac_status); }; }; then
18032   eval "$as_ac_var=yes"
18033 else
18034   echo "$as_me: failed program was:" >&5
18035 sed 's/^/| /' conftest.$ac_ext >&5
18036
18037 eval "$as_ac_var=no"
18038 fi
18039 rm -f conftest.err conftest.$ac_objext \
18040       conftest$ac_exeext conftest.$ac_ext
18041 fi
18042 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18043 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18044 if test `eval echo '${'$as_ac_var'}'` = yes; then
18045   cat >>confdefs.h <<_ACEOF
18046 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18047 _ACEOF
18048  cat >>confdefs.h <<\_ACEOF
18049 #define HAVE_FCHDIR 1
18050 _ACEOF
18051
18052 fi
18053 done
18054
18055
18056 for ac_func in strtoll
18057 do
18058 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18059 echo "$as_me:$LINENO: checking for $ac_func" >&5
18060 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18061 if eval "test \"\${$as_ac_var+set}\" = set"; then
18062   echo $ECHO_N "(cached) $ECHO_C" >&6
18063 else
18064   cat >conftest.$ac_ext <<_ACEOF
18065 /* confdefs.h.  */
18066 _ACEOF
18067 cat confdefs.h >>conftest.$ac_ext
18068 cat >>conftest.$ac_ext <<_ACEOF
18069 /* end confdefs.h.  */
18070 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18071    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18072 #define $ac_func innocuous_$ac_func
18073
18074 /* System header to define __stub macros and hopefully few prototypes,
18075     which can conflict with char $ac_func (); below.
18076     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18077     <limits.h> exists even on freestanding compilers.  */
18078
18079 #ifdef __STDC__
18080 # include <limits.h>
18081 #else
18082 # include <assert.h>
18083 #endif
18084
18085 #undef $ac_func
18086
18087 /* Override any gcc2 internal prototype to avoid an error.  */
18088 #ifdef __cplusplus
18089 extern "C"
18090 {
18091 #endif
18092 /* We use char because int might match the return type of a gcc2
18093    builtin and then its argument prototype would still apply.  */
18094 char $ac_func ();
18095 /* The GNU C library defines this for functions which it implements
18096     to always fail with ENOSYS.  Some functions are actually named
18097     something starting with __ and the normal name is an alias.  */
18098 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18099 choke me
18100 #else
18101 char (*f) () = $ac_func;
18102 #endif
18103 #ifdef __cplusplus
18104 }
18105 #endif
18106
18107 int
18108 main ()
18109 {
18110 return f != $ac_func;
18111   ;
18112   return 0;
18113 }
18114 _ACEOF
18115 rm -f conftest.$ac_objext conftest$ac_exeext
18116 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18117   (eval $ac_link) 2>conftest.er1
18118   ac_status=$?
18119   grep -v '^ *+' conftest.er1 >conftest.err
18120   rm -f conftest.er1
18121   cat conftest.err >&5
18122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18123   (exit $ac_status); } &&
18124          { ac_try='test -z "$ac_c_werror_flag"
18125                          || test ! -s conftest.err'
18126   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18127   (eval $ac_try) 2>&5
18128   ac_status=$?
18129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18130   (exit $ac_status); }; } &&
18131          { ac_try='test -s conftest$ac_exeext'
18132   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18133   (eval $ac_try) 2>&5
18134   ac_status=$?
18135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18136   (exit $ac_status); }; }; then
18137   eval "$as_ac_var=yes"
18138 else
18139   echo "$as_me: failed program was:" >&5
18140 sed 's/^/| /' conftest.$ac_ext >&5
18141
18142 eval "$as_ac_var=no"
18143 fi
18144 rm -f conftest.err conftest.$ac_objext \
18145       conftest$ac_exeext conftest.$ac_ext
18146 fi
18147 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18148 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18149 if test `eval echo '${'$as_ac_var'}'` = yes; then
18150   cat >>confdefs.h <<_ACEOF
18151 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18152 _ACEOF
18153  cat >>confdefs.h <<\_ACEOF
18154 #define HAVE_STRTOLL 1
18155 _ACEOF
18156
18157 fi
18158 done
18159
18160
18161
18162 for ac_func in chflags
18163 do
18164 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18165 echo "$as_me:$LINENO: checking for $ac_func" >&5
18166 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18167 if eval "test \"\${$as_ac_var+set}\" = set"; then
18168   echo $ECHO_N "(cached) $ECHO_C" >&6
18169 else
18170   cat >conftest.$ac_ext <<_ACEOF
18171 /* confdefs.h.  */
18172 _ACEOF
18173 cat confdefs.h >>conftest.$ac_ext
18174 cat >>conftest.$ac_ext <<_ACEOF
18175 /* end confdefs.h.  */
18176 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18177    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18178 #define $ac_func innocuous_$ac_func
18179
18180 /* System header to define __stub macros and hopefully few prototypes,
18181     which can conflict with char $ac_func (); below.
18182     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18183     <limits.h> exists even on freestanding compilers.  */
18184
18185 #ifdef __STDC__
18186 # include <limits.h>
18187 #else
18188 # include <assert.h>
18189 #endif
18190
18191 #undef $ac_func
18192
18193 /* Override any gcc2 internal prototype to avoid an error.  */
18194 #ifdef __cplusplus
18195 extern "C"
18196 {
18197 #endif
18198 /* We use char because int might match the return type of a gcc2
18199    builtin and then its argument prototype would still apply.  */
18200 char $ac_func ();
18201 /* The GNU C library defines this for functions which it implements
18202     to always fail with ENOSYS.  Some functions are actually named
18203     something starting with __ and the normal name is an alias.  */
18204 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18205 choke me
18206 #else
18207 char (*f) () = $ac_func;
18208 #endif
18209 #ifdef __cplusplus
18210 }
18211 #endif
18212
18213 int
18214 main ()
18215 {
18216 return f != $ac_func;
18217   ;
18218   return 0;
18219 }
18220 _ACEOF
18221 rm -f conftest.$ac_objext conftest$ac_exeext
18222 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18223   (eval $ac_link) 2>conftest.er1
18224   ac_status=$?
18225   grep -v '^ *+' conftest.er1 >conftest.err
18226   rm -f conftest.er1
18227   cat conftest.err >&5
18228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18229   (exit $ac_status); } &&
18230          { ac_try='test -z "$ac_c_werror_flag"
18231                          || test ! -s conftest.err'
18232   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18233   (eval $ac_try) 2>&5
18234   ac_status=$?
18235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18236   (exit $ac_status); }; } &&
18237          { ac_try='test -s conftest$ac_exeext'
18238   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18239   (eval $ac_try) 2>&5
18240   ac_status=$?
18241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18242   (exit $ac_status); }; }; then
18243   eval "$as_ac_var=yes"
18244 else
18245   echo "$as_me: failed program was:" >&5
18246 sed 's/^/| /' conftest.$ac_ext >&5
18247
18248 eval "$as_ac_var=no"
18249 fi
18250 rm -f conftest.err conftest.$ac_objext \
18251       conftest$ac_exeext conftest.$ac_ext
18252 fi
18253 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18254 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18255 if test `eval echo '${'$as_ac_var'}'` = yes; then
18256   cat >>confdefs.h <<_ACEOF
18257 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18258 _ACEOF
18259
18260 fi
18261 done
18262
18263
18264
18265
18266
18267
18268 for ac_func in snprintf vsnprintf gethostid fseeko
18269 do
18270 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18271 echo "$as_me:$LINENO: checking for $ac_func" >&5
18272 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18273 if eval "test \"\${$as_ac_var+set}\" = set"; then
18274   echo $ECHO_N "(cached) $ECHO_C" >&6
18275 else
18276   cat >conftest.$ac_ext <<_ACEOF
18277 /* confdefs.h.  */
18278 _ACEOF
18279 cat confdefs.h >>conftest.$ac_ext
18280 cat >>conftest.$ac_ext <<_ACEOF
18281 /* end confdefs.h.  */
18282 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18283    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18284 #define $ac_func innocuous_$ac_func
18285
18286 /* System header to define __stub macros and hopefully few prototypes,
18287     which can conflict with char $ac_func (); below.
18288     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18289     <limits.h> exists even on freestanding compilers.  */
18290
18291 #ifdef __STDC__
18292 # include <limits.h>
18293 #else
18294 # include <assert.h>
18295 #endif
18296
18297 #undef $ac_func
18298
18299 /* Override any gcc2 internal prototype to avoid an error.  */
18300 #ifdef __cplusplus
18301 extern "C"
18302 {
18303 #endif
18304 /* We use char because int might match the return type of a gcc2
18305    builtin and then its argument prototype would still apply.  */
18306 char $ac_func ();
18307 /* The GNU C library defines this for functions which it implements
18308     to always fail with ENOSYS.  Some functions are actually named
18309     something starting with __ and the normal name is an alias.  */
18310 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18311 choke me
18312 #else
18313 char (*f) () = $ac_func;
18314 #endif
18315 #ifdef __cplusplus
18316 }
18317 #endif
18318
18319 int
18320 main ()
18321 {
18322 return f != $ac_func;
18323   ;
18324   return 0;
18325 }
18326 _ACEOF
18327 rm -f conftest.$ac_objext conftest$ac_exeext
18328 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18329   (eval $ac_link) 2>conftest.er1
18330   ac_status=$?
18331   grep -v '^ *+' conftest.er1 >conftest.err
18332   rm -f conftest.er1
18333   cat conftest.err >&5
18334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18335   (exit $ac_status); } &&
18336          { ac_try='test -z "$ac_c_werror_flag"
18337                          || test ! -s conftest.err'
18338   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18339   (eval $ac_try) 2>&5
18340   ac_status=$?
18341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18342   (exit $ac_status); }; } &&
18343          { ac_try='test -s conftest$ac_exeext'
18344   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18345   (eval $ac_try) 2>&5
18346   ac_status=$?
18347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18348   (exit $ac_status); }; }; then
18349   eval "$as_ac_var=yes"
18350 else
18351   echo "$as_me: failed program was:" >&5
18352 sed 's/^/| /' conftest.$ac_ext >&5
18353
18354 eval "$as_ac_var=no"
18355 fi
18356 rm -f conftest.err conftest.$ac_objext \
18357       conftest$ac_exeext conftest.$ac_ext
18358 fi
18359 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18360 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18361 if test `eval echo '${'$as_ac_var'}'` = yes; then
18362   cat >>confdefs.h <<_ACEOF
18363 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18364 _ACEOF
18365
18366 fi
18367 done
18368
18369
18370
18371
18372
18373
18374 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
18375 do
18376 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18377 echo "$as_me:$LINENO: checking for $ac_func" >&5
18378 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18379 if eval "test \"\${$as_ac_var+set}\" = set"; then
18380   echo $ECHO_N "(cached) $ECHO_C" >&6
18381 else
18382   cat >conftest.$ac_ext <<_ACEOF
18383 /* confdefs.h.  */
18384 _ACEOF
18385 cat confdefs.h >>conftest.$ac_ext
18386 cat >>conftest.$ac_ext <<_ACEOF
18387 /* end confdefs.h.  */
18388 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18389    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18390 #define $ac_func innocuous_$ac_func
18391
18392 /* System header to define __stub macros and hopefully few prototypes,
18393     which can conflict with char $ac_func (); below.
18394     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18395     <limits.h> exists even on freestanding compilers.  */
18396
18397 #ifdef __STDC__
18398 # include <limits.h>
18399 #else
18400 # include <assert.h>
18401 #endif
18402
18403 #undef $ac_func
18404
18405 /* Override any gcc2 internal prototype to avoid an error.  */
18406 #ifdef __cplusplus
18407 extern "C"
18408 {
18409 #endif
18410 /* We use char because int might match the return type of a gcc2
18411    builtin and then its argument prototype would still apply.  */
18412 char $ac_func ();
18413 /* The GNU C library defines this for functions which it implements
18414     to always fail with ENOSYS.  Some functions are actually named
18415     something starting with __ and the normal name is an alias.  */
18416 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18417 choke me
18418 #else
18419 char (*f) () = $ac_func;
18420 #endif
18421 #ifdef __cplusplus
18422 }
18423 #endif
18424
18425 int
18426 main ()
18427 {
18428 return f != $ac_func;
18429   ;
18430   return 0;
18431 }
18432 _ACEOF
18433 rm -f conftest.$ac_objext conftest$ac_exeext
18434 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18435   (eval $ac_link) 2>conftest.er1
18436   ac_status=$?
18437   grep -v '^ *+' conftest.er1 >conftest.err
18438   rm -f conftest.er1
18439   cat conftest.err >&5
18440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18441   (exit $ac_status); } &&
18442          { ac_try='test -z "$ac_c_werror_flag"
18443                          || test ! -s conftest.err'
18444   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18445   (eval $ac_try) 2>&5
18446   ac_status=$?
18447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18448   (exit $ac_status); }; } &&
18449          { ac_try='test -s conftest$ac_exeext'
18450   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18451   (eval $ac_try) 2>&5
18452   ac_status=$?
18453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18454   (exit $ac_status); }; }; then
18455   eval "$as_ac_var=yes"
18456 else
18457   echo "$as_me: failed program was:" >&5
18458 sed 's/^/| /' conftest.$ac_ext >&5
18459
18460 eval "$as_ac_var=no"
18461 fi
18462 rm -f conftest.err conftest.$ac_objext \
18463       conftest$ac_exeext conftest.$ac_ext
18464 fi
18465 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18466 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18467 if test `eval echo '${'$as_ac_var'}'` = yes; then
18468   cat >>confdefs.h <<_ACEOF
18469 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18470 _ACEOF
18471
18472 fi
18473 done
18474
18475
18476 # If resolver functions are not in libc check for -lnsl or -lresolv.
18477 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
18478 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
18479 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
18480   echo $ECHO_N "(cached) $ECHO_C" >&6
18481 else
18482   cat >conftest.$ac_ext <<_ACEOF
18483 /* confdefs.h.  */
18484 _ACEOF
18485 cat confdefs.h >>conftest.$ac_ext
18486 cat >>conftest.$ac_ext <<_ACEOF
18487 /* end confdefs.h.  */
18488 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
18489    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18490 #define gethostbyname_r innocuous_gethostbyname_r
18491
18492 /* System header to define __stub macros and hopefully few prototypes,
18493     which can conflict with char gethostbyname_r (); below.
18494     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18495     <limits.h> exists even on freestanding compilers.  */
18496
18497 #ifdef __STDC__
18498 # include <limits.h>
18499 #else
18500 # include <assert.h>
18501 #endif
18502
18503 #undef gethostbyname_r
18504
18505 /* Override any gcc2 internal prototype to avoid an error.  */
18506 #ifdef __cplusplus
18507 extern "C"
18508 {
18509 #endif
18510 /* We use char because int might match the return type of a gcc2
18511    builtin and then its argument prototype would still apply.  */
18512 char gethostbyname_r ();
18513 /* The GNU C library defines this for functions which it implements
18514     to always fail with ENOSYS.  Some functions are actually named
18515     something starting with __ and the normal name is an alias.  */
18516 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
18517 choke me
18518 #else
18519 char (*f) () = gethostbyname_r;
18520 #endif
18521 #ifdef __cplusplus
18522 }
18523 #endif
18524
18525 int
18526 main ()
18527 {
18528 return f != gethostbyname_r;
18529   ;
18530   return 0;
18531 }
18532 _ACEOF
18533 rm -f conftest.$ac_objext conftest$ac_exeext
18534 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18535   (eval $ac_link) 2>conftest.er1
18536   ac_status=$?
18537   grep -v '^ *+' conftest.er1 >conftest.err
18538   rm -f conftest.er1
18539   cat conftest.err >&5
18540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18541   (exit $ac_status); } &&
18542          { ac_try='test -z "$ac_c_werror_flag"
18543                          || test ! -s conftest.err'
18544   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18545   (eval $ac_try) 2>&5
18546   ac_status=$?
18547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18548   (exit $ac_status); }; } &&
18549          { ac_try='test -s conftest$ac_exeext'
18550   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18551   (eval $ac_try) 2>&5
18552   ac_status=$?
18553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18554   (exit $ac_status); }; }; then
18555   ac_cv_func_gethostbyname_r=yes
18556 else
18557   echo "$as_me: failed program was:" >&5
18558 sed 's/^/| /' conftest.$ac_ext >&5
18559
18560 ac_cv_func_gethostbyname_r=no
18561 fi
18562 rm -f conftest.err conftest.$ac_objext \
18563       conftest$ac_exeext conftest.$ac_ext
18564 fi
18565 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
18566 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
18567 if test $ac_cv_func_gethostbyname_r = yes; then
18568   echo "$as_me:$LINENO: result: using libc's resolver" >&5
18569 echo "${ECHO_T}using libc's resolver" >&6
18570 else
18571
18572 echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
18573 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6
18574 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
18575   echo $ECHO_N "(cached) $ECHO_C" >&6
18576 else
18577   ac_check_lib_save_LIBS=$LIBS
18578 LIBS="-lnsl  $LIBS"
18579 cat >conftest.$ac_ext <<_ACEOF
18580 /* confdefs.h.  */
18581 _ACEOF
18582 cat confdefs.h >>conftest.$ac_ext
18583 cat >>conftest.$ac_ext <<_ACEOF
18584 /* end confdefs.h.  */
18585
18586 /* Override any gcc2 internal prototype to avoid an error.  */
18587 #ifdef __cplusplus
18588 extern "C"
18589 #endif
18590 /* We use char because int might match the return type of a gcc2
18591    builtin and then its argument prototype would still apply.  */
18592 char gethostbyname_r ();
18593 int
18594 main ()
18595 {
18596 gethostbyname_r ();
18597   ;
18598   return 0;
18599 }
18600 _ACEOF
18601 rm -f conftest.$ac_objext conftest$ac_exeext
18602 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18603   (eval $ac_link) 2>conftest.er1
18604   ac_status=$?
18605   grep -v '^ *+' conftest.er1 >conftest.err
18606   rm -f conftest.er1
18607   cat conftest.err >&5
18608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18609   (exit $ac_status); } &&
18610          { ac_try='test -z "$ac_c_werror_flag"
18611                          || test ! -s conftest.err'
18612   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18613   (eval $ac_try) 2>&5
18614   ac_status=$?
18615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18616   (exit $ac_status); }; } &&
18617          { ac_try='test -s conftest$ac_exeext'
18618   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18619   (eval $ac_try) 2>&5
18620   ac_status=$?
18621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18622   (exit $ac_status); }; }; then
18623   ac_cv_lib_nsl_gethostbyname_r=yes
18624 else
18625   echo "$as_me: failed program was:" >&5
18626 sed 's/^/| /' conftest.$ac_ext >&5
18627
18628 ac_cv_lib_nsl_gethostbyname_r=no
18629 fi
18630 rm -f conftest.err conftest.$ac_objext \
18631       conftest$ac_exeext conftest.$ac_ext
18632 LIBS=$ac_check_lib_save_LIBS
18633 fi
18634 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
18635 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6
18636 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
18637   cat >>confdefs.h <<_ACEOF
18638 #define HAVE_LIBNSL 1
18639 _ACEOF
18640
18641   LIBS="-lnsl $LIBS"
18642
18643 fi
18644
18645
18646 echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
18647 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6
18648 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
18649   echo $ECHO_N "(cached) $ECHO_C" >&6
18650 else
18651   ac_check_lib_save_LIBS=$LIBS
18652 LIBS="-lresolv  $LIBS"
18653 cat >conftest.$ac_ext <<_ACEOF
18654 /* confdefs.h.  */
18655 _ACEOF
18656 cat confdefs.h >>conftest.$ac_ext
18657 cat >>conftest.$ac_ext <<_ACEOF
18658 /* end confdefs.h.  */
18659
18660 /* Override any gcc2 internal prototype to avoid an error.  */
18661 #ifdef __cplusplus
18662 extern "C"
18663 #endif
18664 /* We use char because int might match the return type of a gcc2
18665    builtin and then its argument prototype would still apply.  */
18666 char gethostbyname_r ();
18667 int
18668 main ()
18669 {
18670 gethostbyname_r ();
18671   ;
18672   return 0;
18673 }
18674 _ACEOF
18675 rm -f conftest.$ac_objext conftest$ac_exeext
18676 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18677   (eval $ac_link) 2>conftest.er1
18678   ac_status=$?
18679   grep -v '^ *+' conftest.er1 >conftest.err
18680   rm -f conftest.er1
18681   cat conftest.err >&5
18682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18683   (exit $ac_status); } &&
18684          { ac_try='test -z "$ac_c_werror_flag"
18685                          || test ! -s conftest.err'
18686   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18687   (eval $ac_try) 2>&5
18688   ac_status=$?
18689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18690   (exit $ac_status); }; } &&
18691          { ac_try='test -s conftest$ac_exeext'
18692   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18693   (eval $ac_try) 2>&5
18694   ac_status=$?
18695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18696   (exit $ac_status); }; }; then
18697   ac_cv_lib_resolv_gethostbyname_r=yes
18698 else
18699   echo "$as_me: failed program was:" >&5
18700 sed 's/^/| /' conftest.$ac_ext >&5
18701
18702 ac_cv_lib_resolv_gethostbyname_r=no
18703 fi
18704 rm -f conftest.err conftest.$ac_objext \
18705       conftest$ac_exeext conftest.$ac_ext
18706 LIBS=$ac_check_lib_save_LIBS
18707 fi
18708 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
18709 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6
18710 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
18711   cat >>confdefs.h <<_ACEOF
18712 #define HAVE_LIBRESOLV 1
18713 _ACEOF
18714
18715   LIBS="-lresolv $LIBS"
18716
18717 fi
18718
18719 fi
18720
18721
18722
18723
18724
18725 for ac_func in inet_pton
18726 do
18727 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18728 echo "$as_me:$LINENO: checking for $ac_func" >&5
18729 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18730 if eval "test \"\${$as_ac_var+set}\" = set"; then
18731   echo $ECHO_N "(cached) $ECHO_C" >&6
18732 else
18733   cat >conftest.$ac_ext <<_ACEOF
18734 /* confdefs.h.  */
18735 _ACEOF
18736 cat confdefs.h >>conftest.$ac_ext
18737 cat >>conftest.$ac_ext <<_ACEOF
18738 /* end confdefs.h.  */
18739 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18740    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18741 #define $ac_func innocuous_$ac_func
18742
18743 /* System header to define __stub macros and hopefully few prototypes,
18744     which can conflict with char $ac_func (); below.
18745     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18746     <limits.h> exists even on freestanding compilers.  */
18747
18748 #ifdef __STDC__
18749 # include <limits.h>
18750 #else
18751 # include <assert.h>
18752 #endif
18753
18754 #undef $ac_func
18755
18756 /* Override any gcc2 internal prototype to avoid an error.  */
18757 #ifdef __cplusplus
18758 extern "C"
18759 {
18760 #endif
18761 /* We use char because int might match the return type of a gcc2
18762    builtin and then its argument prototype would still apply.  */
18763 char $ac_func ();
18764 /* The GNU C library defines this for functions which it implements
18765     to always fail with ENOSYS.  Some functions are actually named
18766     something starting with __ and the normal name is an alias.  */
18767 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18768 choke me
18769 #else
18770 char (*f) () = $ac_func;
18771 #endif
18772 #ifdef __cplusplus
18773 }
18774 #endif
18775
18776 int
18777 main ()
18778 {
18779 return f != $ac_func;
18780   ;
18781   return 0;
18782 }
18783 _ACEOF
18784 rm -f conftest.$ac_objext conftest$ac_exeext
18785 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18786   (eval $ac_link) 2>conftest.er1
18787   ac_status=$?
18788   grep -v '^ *+' conftest.er1 >conftest.err
18789   rm -f conftest.er1
18790   cat conftest.err >&5
18791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18792   (exit $ac_status); } &&
18793          { ac_try='test -z "$ac_c_werror_flag"
18794                          || test ! -s conftest.err'
18795   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18796   (eval $ac_try) 2>&5
18797   ac_status=$?
18798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18799   (exit $ac_status); }; } &&
18800          { ac_try='test -s conftest$ac_exeext'
18801   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18802   (eval $ac_try) 2>&5
18803   ac_status=$?
18804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18805   (exit $ac_status); }; }; then
18806   eval "$as_ac_var=yes"
18807 else
18808   echo "$as_me: failed program was:" >&5
18809 sed 's/^/| /' conftest.$ac_ext >&5
18810
18811 eval "$as_ac_var=no"
18812 fi
18813 rm -f conftest.err conftest.$ac_objext \
18814       conftest$ac_exeext conftest.$ac_ext
18815 fi
18816 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18817 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18818 if test `eval echo '${'$as_ac_var'}'` = yes; then
18819   cat >>confdefs.h <<_ACEOF
18820 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18821 _ACEOF
18822  cat >>confdefs.h <<\_ACEOF
18823 #define HAVE_INET_PTON 1
18824 _ACEOF
18825
18826 fi
18827 done
18828
18829
18830 for ac_func in inet_ntop
18831 do
18832 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18833 echo "$as_me:$LINENO: checking for $ac_func" >&5
18834 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18835 if eval "test \"\${$as_ac_var+set}\" = set"; then
18836   echo $ECHO_N "(cached) $ECHO_C" >&6
18837 else
18838   cat >conftest.$ac_ext <<_ACEOF
18839 /* confdefs.h.  */
18840 _ACEOF
18841 cat confdefs.h >>conftest.$ac_ext
18842 cat >>conftest.$ac_ext <<_ACEOF
18843 /* end confdefs.h.  */
18844 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18845    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18846 #define $ac_func innocuous_$ac_func
18847
18848 /* System header to define __stub macros and hopefully few prototypes,
18849     which can conflict with char $ac_func (); below.
18850     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18851     <limits.h> exists even on freestanding compilers.  */
18852
18853 #ifdef __STDC__
18854 # include <limits.h>
18855 #else
18856 # include <assert.h>
18857 #endif
18858
18859 #undef $ac_func
18860
18861 /* Override any gcc2 internal prototype to avoid an error.  */
18862 #ifdef __cplusplus
18863 extern "C"
18864 {
18865 #endif
18866 /* We use char because int might match the return type of a gcc2
18867    builtin and then its argument prototype would still apply.  */
18868 char $ac_func ();
18869 /* The GNU C library defines this for functions which it implements
18870     to always fail with ENOSYS.  Some functions are actually named
18871     something starting with __ and the normal name is an alias.  */
18872 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18873 choke me
18874 #else
18875 char (*f) () = $ac_func;
18876 #endif
18877 #ifdef __cplusplus
18878 }
18879 #endif
18880
18881 int
18882 main ()
18883 {
18884 return f != $ac_func;
18885   ;
18886   return 0;
18887 }
18888 _ACEOF
18889 rm -f conftest.$ac_objext conftest$ac_exeext
18890 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18891   (eval $ac_link) 2>conftest.er1
18892   ac_status=$?
18893   grep -v '^ *+' conftest.er1 >conftest.err
18894   rm -f conftest.er1
18895   cat conftest.err >&5
18896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18897   (exit $ac_status); } &&
18898          { ac_try='test -z "$ac_c_werror_flag"
18899                          || test ! -s conftest.err'
18900   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18901   (eval $ac_try) 2>&5
18902   ac_status=$?
18903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18904   (exit $ac_status); }; } &&
18905          { ac_try='test -s conftest$ac_exeext'
18906   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18907   (eval $ac_try) 2>&5
18908   ac_status=$?
18909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18910   (exit $ac_status); }; }; then
18911   eval "$as_ac_var=yes"
18912 else
18913   echo "$as_me: failed program was:" >&5
18914 sed 's/^/| /' conftest.$ac_ext >&5
18915
18916 eval "$as_ac_var=no"
18917 fi
18918 rm -f conftest.err conftest.$ac_objext \
18919       conftest$ac_exeext conftest.$ac_ext
18920 fi
18921 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18922 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18923 if test `eval echo '${'$as_ac_var'}'` = yes; then
18924   cat >>confdefs.h <<_ACEOF
18925 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18926 _ACEOF
18927  cat >>confdefs.h <<\_ACEOF
18928 #define HAVE_INET_NTOP 1
18929 _ACEOF
18930
18931 fi
18932 done
18933
18934
18935 for ac_func in gethostbyname2
18936 do
18937 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18938 echo "$as_me:$LINENO: checking for $ac_func" >&5
18939 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18940 if eval "test \"\${$as_ac_var+set}\" = set"; then
18941   echo $ECHO_N "(cached) $ECHO_C" >&6
18942 else
18943   cat >conftest.$ac_ext <<_ACEOF
18944 /* confdefs.h.  */
18945 _ACEOF
18946 cat confdefs.h >>conftest.$ac_ext
18947 cat >>conftest.$ac_ext <<_ACEOF
18948 /* end confdefs.h.  */
18949 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18950    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18951 #define $ac_func innocuous_$ac_func
18952
18953 /* System header to define __stub macros and hopefully few prototypes,
18954     which can conflict with char $ac_func (); below.
18955     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18956     <limits.h> exists even on freestanding compilers.  */
18957
18958 #ifdef __STDC__
18959 # include <limits.h>
18960 #else
18961 # include <assert.h>
18962 #endif
18963
18964 #undef $ac_func
18965
18966 /* Override any gcc2 internal prototype to avoid an error.  */
18967 #ifdef __cplusplus
18968 extern "C"
18969 {
18970 #endif
18971 /* We use char because int might match the return type of a gcc2
18972    builtin and then its argument prototype would still apply.  */
18973 char $ac_func ();
18974 /* The GNU C library defines this for functions which it implements
18975     to always fail with ENOSYS.  Some functions are actually named
18976     something starting with __ and the normal name is an alias.  */
18977 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18978 choke me
18979 #else
18980 char (*f) () = $ac_func;
18981 #endif
18982 #ifdef __cplusplus
18983 }
18984 #endif
18985
18986 int
18987 main ()
18988 {
18989 return f != $ac_func;
18990   ;
18991   return 0;
18992 }
18993 _ACEOF
18994 rm -f conftest.$ac_objext conftest$ac_exeext
18995 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18996   (eval $ac_link) 2>conftest.er1
18997   ac_status=$?
18998   grep -v '^ *+' conftest.er1 >conftest.err
18999   rm -f conftest.er1
19000   cat conftest.err >&5
19001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19002   (exit $ac_status); } &&
19003          { ac_try='test -z "$ac_c_werror_flag"
19004                          || test ! -s conftest.err'
19005   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19006   (eval $ac_try) 2>&5
19007   ac_status=$?
19008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19009   (exit $ac_status); }; } &&
19010          { ac_try='test -s conftest$ac_exeext'
19011   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19012   (eval $ac_try) 2>&5
19013   ac_status=$?
19014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19015   (exit $ac_status); }; }; then
19016   eval "$as_ac_var=yes"
19017 else
19018   echo "$as_me: failed program was:" >&5
19019 sed 's/^/| /' conftest.$ac_ext >&5
19020
19021 eval "$as_ac_var=no"
19022 fi
19023 rm -f conftest.err conftest.$ac_objext \
19024       conftest$ac_exeext conftest.$ac_ext
19025 fi
19026 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19027 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19028 if test `eval echo '${'$as_ac_var'}'` = yes; then
19029   cat >>confdefs.h <<_ACEOF
19030 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19031 _ACEOF
19032  cat >>confdefs.h <<\_ACEOF
19033 #define HAVE_GETHOSTBYNAME2 1
19034 _ACEOF
19035
19036 fi
19037 done
19038
19039
19040 echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
19041 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6
19042 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
19043   echo $ECHO_N "(cached) $ECHO_C" >&6
19044 else
19045   cat >conftest.$ac_ext <<_ACEOF
19046 /* confdefs.h.  */
19047 _ACEOF
19048 cat confdefs.h >>conftest.$ac_ext
19049 cat >>conftest.$ac_ext <<_ACEOF
19050 /* end confdefs.h.  */
19051 #include <sys/socket.h>
19052 int
19053 main ()
19054 {
19055 struct sockaddr s; s.sa_len;
19056   ;
19057   return 0;
19058 }
19059 _ACEOF
19060 rm -f conftest.$ac_objext
19061 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19062   (eval $ac_compile) 2>conftest.er1
19063   ac_status=$?
19064   grep -v '^ *+' conftest.er1 >conftest.err
19065   rm -f conftest.er1
19066   cat conftest.err >&5
19067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19068   (exit $ac_status); } &&
19069          { ac_try='test -z "$ac_c_werror_flag"
19070                          || test ! -s conftest.err'
19071   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19072   (eval $ac_try) 2>&5
19073   ac_status=$?
19074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19075   (exit $ac_status); }; } &&
19076          { ac_try='test -s conftest.$ac_objext'
19077   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19078   (eval $ac_try) 2>&5
19079   ac_status=$?
19080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19081   (exit $ac_status); }; }; then
19082   ac_cv_struct_sockaddr_sa_len=yes
19083 else
19084   echo "$as_me: failed program was:" >&5
19085 sed 's/^/| /' conftest.$ac_ext >&5
19086
19087 ac_cv_struct_sockaddr_sa_len=no
19088 fi
19089 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19090 fi
19091 echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
19092 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6
19093
19094  if test $ac_cv_struct_sockaddr_sa_len = yes; then
19095
19096 cat >>confdefs.h <<\_ACEOF
19097 #define HAVE_SA_LEN 1
19098 _ACEOF
19099
19100  fi
19101
19102
19103 echo "$as_me:$LINENO: checking for IPv6 support" >&5
19104 echo $ECHO_N "checking for IPv6 support... $ECHO_C" >&6
19105 if test "${ac_cv_ipv6_support+set}" = set; then
19106   echo $ECHO_N "(cached) $ECHO_C" >&6
19107 else
19108   cat >conftest.$ac_ext <<_ACEOF
19109 /* confdefs.h.  */
19110 _ACEOF
19111 cat confdefs.h >>conftest.$ac_ext
19112 cat >>conftest.$ac_ext <<_ACEOF
19113 /* end confdefs.h.  */
19114  #include <sys/types.h>
19115 #include <sys/socket.h>
19116 #include <netinet/in.h>
19117 int
19118 main ()
19119 {
19120 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] =
19121  0;
19122   ;
19123   return 0;
19124 }
19125 _ACEOF
19126 rm -f conftest.$ac_objext conftest$ac_exeext
19127 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19128   (eval $ac_link) 2>conftest.er1
19129   ac_status=$?
19130   grep -v '^ *+' conftest.er1 >conftest.err
19131   rm -f conftest.er1
19132   cat conftest.err >&5
19133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19134   (exit $ac_status); } &&
19135          { ac_try='test -z "$ac_c_werror_flag"
19136                          || test ! -s conftest.err'
19137   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19138   (eval $ac_try) 2>&5
19139   ac_status=$?
19140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19141   (exit $ac_status); }; } &&
19142          { ac_try='test -s conftest$ac_exeext'
19143   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19144   (eval $ac_try) 2>&5
19145   ac_status=$?
19146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19147   (exit $ac_status); }; }; then
19148   ac_cv_ipv6_support=yes
19149 else
19150   echo "$as_me: failed program was:" >&5
19151 sed 's/^/| /' conftest.$ac_ext >&5
19152
19153 ac_cv_ipv6_support=no
19154 fi
19155 rm -f conftest.err conftest.$ac_objext \
19156       conftest$ac_exeext conftest.$ac_ext
19157 fi
19158 echo "$as_me:$LINENO: result: $ac_cv_ipv6_support" >&5
19159 echo "${ECHO_T}$ac_cv_ipv6_support" >&6
19160
19161 if test "$ac_cv_ipv6_support" = yes; then
19162
19163 cat >>confdefs.h <<\_ACEOF
19164 #define HAVE_IPV6 1
19165 _ACEOF
19166
19167 fi
19168
19169
19170
19171
19172 for ac_func in strftime
19173 do
19174 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19175 echo "$as_me:$LINENO: checking for $ac_func" >&5
19176 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19177 if eval "test \"\${$as_ac_var+set}\" = set"; then
19178   echo $ECHO_N "(cached) $ECHO_C" >&6
19179 else
19180   cat >conftest.$ac_ext <<_ACEOF
19181 /* confdefs.h.  */
19182 _ACEOF
19183 cat confdefs.h >>conftest.$ac_ext
19184 cat >>conftest.$ac_ext <<_ACEOF
19185 /* end confdefs.h.  */
19186 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19187    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19188 #define $ac_func innocuous_$ac_func
19189
19190 /* System header to define __stub macros and hopefully few prototypes,
19191     which can conflict with char $ac_func (); below.
19192     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19193     <limits.h> exists even on freestanding compilers.  */
19194
19195 #ifdef __STDC__
19196 # include <limits.h>
19197 #else
19198 # include <assert.h>
19199 #endif
19200
19201 #undef $ac_func
19202
19203 /* Override any gcc2 internal prototype to avoid an error.  */
19204 #ifdef __cplusplus
19205 extern "C"
19206 {
19207 #endif
19208 /* We use char because int might match the return type of a gcc2
19209    builtin and then its argument prototype would still apply.  */
19210 char $ac_func ();
19211 /* The GNU C library defines this for functions which it implements
19212     to always fail with ENOSYS.  Some functions are actually named
19213     something starting with __ and the normal name is an alias.  */
19214 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19215 choke me
19216 #else
19217 char (*f) () = $ac_func;
19218 #endif
19219 #ifdef __cplusplus
19220 }
19221 #endif
19222
19223 int
19224 main ()
19225 {
19226 return f != $ac_func;
19227   ;
19228   return 0;
19229 }
19230 _ACEOF
19231 rm -f conftest.$ac_objext conftest$ac_exeext
19232 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19233   (eval $ac_link) 2>conftest.er1
19234   ac_status=$?
19235   grep -v '^ *+' conftest.er1 >conftest.err
19236   rm -f conftest.er1
19237   cat conftest.err >&5
19238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19239   (exit $ac_status); } &&
19240          { ac_try='test -z "$ac_c_werror_flag"
19241                          || test ! -s conftest.err'
19242   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19243   (eval $ac_try) 2>&5
19244   ac_status=$?
19245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19246   (exit $ac_status); }; } &&
19247          { ac_try='test -s conftest$ac_exeext'
19248   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19249   (eval $ac_try) 2>&5
19250   ac_status=$?
19251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19252   (exit $ac_status); }; }; then
19253   eval "$as_ac_var=yes"
19254 else
19255   echo "$as_me: failed program was:" >&5
19256 sed 's/^/| /' conftest.$ac_ext >&5
19257
19258 eval "$as_ac_var=no"
19259 fi
19260 rm -f conftest.err conftest.$ac_objext \
19261       conftest$ac_exeext conftest.$ac_ext
19262 fi
19263 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19264 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19265 if test `eval echo '${'$as_ac_var'}'` = yes; then
19266   cat >>confdefs.h <<_ACEOF
19267 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19268 _ACEOF
19269
19270 else
19271   # strftime is in -lintl on SCO UNIX.
19272 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
19273 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
19274 if test "${ac_cv_lib_intl_strftime+set}" = set; then
19275   echo $ECHO_N "(cached) $ECHO_C" >&6
19276 else
19277   ac_check_lib_save_LIBS=$LIBS
19278 LIBS="-lintl  $LIBS"
19279 cat >conftest.$ac_ext <<_ACEOF
19280 /* confdefs.h.  */
19281 _ACEOF
19282 cat confdefs.h >>conftest.$ac_ext
19283 cat >>conftest.$ac_ext <<_ACEOF
19284 /* end confdefs.h.  */
19285
19286 /* Override any gcc2 internal prototype to avoid an error.  */
19287 #ifdef __cplusplus
19288 extern "C"
19289 #endif
19290 /* We use char because int might match the return type of a gcc2
19291    builtin and then its argument prototype would still apply.  */
19292 char strftime ();
19293 int
19294 main ()
19295 {
19296 strftime ();
19297   ;
19298   return 0;
19299 }
19300 _ACEOF
19301 rm -f conftest.$ac_objext conftest$ac_exeext
19302 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19303   (eval $ac_link) 2>conftest.er1
19304   ac_status=$?
19305   grep -v '^ *+' conftest.er1 >conftest.err
19306   rm -f conftest.er1
19307   cat conftest.err >&5
19308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19309   (exit $ac_status); } &&
19310          { ac_try='test -z "$ac_c_werror_flag"
19311                          || test ! -s conftest.err'
19312   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19313   (eval $ac_try) 2>&5
19314   ac_status=$?
19315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19316   (exit $ac_status); }; } &&
19317          { ac_try='test -s conftest$ac_exeext'
19318   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19319   (eval $ac_try) 2>&5
19320   ac_status=$?
19321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19322   (exit $ac_status); }; }; then
19323   ac_cv_lib_intl_strftime=yes
19324 else
19325   echo "$as_me: failed program was:" >&5
19326 sed 's/^/| /' conftest.$ac_ext >&5
19327
19328 ac_cv_lib_intl_strftime=no
19329 fi
19330 rm -f conftest.err conftest.$ac_objext \
19331       conftest$ac_exeext conftest.$ac_ext
19332 LIBS=$ac_check_lib_save_LIBS
19333 fi
19334 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
19335 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
19336 if test $ac_cv_lib_intl_strftime = yes; then
19337   cat >>confdefs.h <<\_ACEOF
19338 #define HAVE_STRFTIME 1
19339 _ACEOF
19340
19341 LIBS="-lintl $LIBS"
19342 fi
19343
19344 fi
19345 done
19346
19347
19348 for ac_func in vprintf
19349 do
19350 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19351 echo "$as_me:$LINENO: checking for $ac_func" >&5
19352 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19353 if eval "test \"\${$as_ac_var+set}\" = set"; then
19354   echo $ECHO_N "(cached) $ECHO_C" >&6
19355 else
19356   cat >conftest.$ac_ext <<_ACEOF
19357 /* confdefs.h.  */
19358 _ACEOF
19359 cat confdefs.h >>conftest.$ac_ext
19360 cat >>conftest.$ac_ext <<_ACEOF
19361 /* end confdefs.h.  */
19362 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19363    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19364 #define $ac_func innocuous_$ac_func
19365
19366 /* System header to define __stub macros and hopefully few prototypes,
19367     which can conflict with char $ac_func (); below.
19368     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19369     <limits.h> exists even on freestanding compilers.  */
19370
19371 #ifdef __STDC__
19372 # include <limits.h>
19373 #else
19374 # include <assert.h>
19375 #endif
19376
19377 #undef $ac_func
19378
19379 /* Override any gcc2 internal prototype to avoid an error.  */
19380 #ifdef __cplusplus
19381 extern "C"
19382 {
19383 #endif
19384 /* We use char because int might match the return type of a gcc2
19385    builtin and then its argument prototype would still apply.  */
19386 char $ac_func ();
19387 /* The GNU C library defines this for functions which it implements
19388     to always fail with ENOSYS.  Some functions are actually named
19389     something starting with __ and the normal name is an alias.  */
19390 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19391 choke me
19392 #else
19393 char (*f) () = $ac_func;
19394 #endif
19395 #ifdef __cplusplus
19396 }
19397 #endif
19398
19399 int
19400 main ()
19401 {
19402 return f != $ac_func;
19403   ;
19404   return 0;
19405 }
19406 _ACEOF
19407 rm -f conftest.$ac_objext conftest$ac_exeext
19408 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19409   (eval $ac_link) 2>conftest.er1
19410   ac_status=$?
19411   grep -v '^ *+' conftest.er1 >conftest.err
19412   rm -f conftest.er1
19413   cat conftest.err >&5
19414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19415   (exit $ac_status); } &&
19416          { ac_try='test -z "$ac_c_werror_flag"
19417                          || test ! -s conftest.err'
19418   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19419   (eval $ac_try) 2>&5
19420   ac_status=$?
19421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19422   (exit $ac_status); }; } &&
19423          { ac_try='test -s conftest$ac_exeext'
19424   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19425   (eval $ac_try) 2>&5
19426   ac_status=$?
19427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19428   (exit $ac_status); }; }; then
19429   eval "$as_ac_var=yes"
19430 else
19431   echo "$as_me: failed program was:" >&5
19432 sed 's/^/| /' conftest.$ac_ext >&5
19433
19434 eval "$as_ac_var=no"
19435 fi
19436 rm -f conftest.err conftest.$ac_objext \
19437       conftest$ac_exeext conftest.$ac_ext
19438 fi
19439 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19440 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19441 if test `eval echo '${'$as_ac_var'}'` = yes; then
19442   cat >>confdefs.h <<_ACEOF
19443 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19444 _ACEOF
19445
19446 echo "$as_me:$LINENO: checking for _doprnt" >&5
19447 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
19448 if test "${ac_cv_func__doprnt+set}" = set; then
19449   echo $ECHO_N "(cached) $ECHO_C" >&6
19450 else
19451   cat >conftest.$ac_ext <<_ACEOF
19452 /* confdefs.h.  */
19453 _ACEOF
19454 cat confdefs.h >>conftest.$ac_ext
19455 cat >>conftest.$ac_ext <<_ACEOF
19456 /* end confdefs.h.  */
19457 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
19458    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19459 #define _doprnt innocuous__doprnt
19460
19461 /* System header to define __stub macros and hopefully few prototypes,
19462     which can conflict with char _doprnt (); below.
19463     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19464     <limits.h> exists even on freestanding compilers.  */
19465
19466 #ifdef __STDC__
19467 # include <limits.h>
19468 #else
19469 # include <assert.h>
19470 #endif
19471
19472 #undef _doprnt
19473
19474 /* Override any gcc2 internal prototype to avoid an error.  */
19475 #ifdef __cplusplus
19476 extern "C"
19477 {
19478 #endif
19479 /* We use char because int might match the return type of a gcc2
19480    builtin and then its argument prototype would still apply.  */
19481 char _doprnt ();
19482 /* The GNU C library defines this for functions which it implements
19483     to always fail with ENOSYS.  Some functions are actually named
19484     something starting with __ and the normal name is an alias.  */
19485 #if defined (__stub__doprnt) || defined (__stub____doprnt)
19486 choke me
19487 #else
19488 char (*f) () = _doprnt;
19489 #endif
19490 #ifdef __cplusplus
19491 }
19492 #endif
19493
19494 int
19495 main ()
19496 {
19497 return f != _doprnt;
19498   ;
19499   return 0;
19500 }
19501 _ACEOF
19502 rm -f conftest.$ac_objext conftest$ac_exeext
19503 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19504   (eval $ac_link) 2>conftest.er1
19505   ac_status=$?
19506   grep -v '^ *+' conftest.er1 >conftest.err
19507   rm -f conftest.er1
19508   cat conftest.err >&5
19509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19510   (exit $ac_status); } &&
19511          { ac_try='test -z "$ac_c_werror_flag"
19512                          || test ! -s conftest.err'
19513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19514   (eval $ac_try) 2>&5
19515   ac_status=$?
19516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19517   (exit $ac_status); }; } &&
19518          { ac_try='test -s conftest$ac_exeext'
19519   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19520   (eval $ac_try) 2>&5
19521   ac_status=$?
19522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19523   (exit $ac_status); }; }; then
19524   ac_cv_func__doprnt=yes
19525 else
19526   echo "$as_me: failed program was:" >&5
19527 sed 's/^/| /' conftest.$ac_ext >&5
19528
19529 ac_cv_func__doprnt=no
19530 fi
19531 rm -f conftest.err conftest.$ac_objext \
19532       conftest$ac_exeext conftest.$ac_ext
19533 fi
19534 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
19535 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
19536 if test $ac_cv_func__doprnt = yes; then
19537
19538 cat >>confdefs.h <<\_ACEOF
19539 #define HAVE_DOPRNT 1
19540 _ACEOF
19541
19542 fi
19543
19544 fi
19545 done
19546
19547
19548 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
19549 # for constant arguments.  Useless!
19550 echo "$as_me:$LINENO: checking for working alloca.h" >&5
19551 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
19552 if test "${ac_cv_working_alloca_h+set}" = set; then
19553   echo $ECHO_N "(cached) $ECHO_C" >&6
19554 else
19555   cat >conftest.$ac_ext <<_ACEOF
19556 /* confdefs.h.  */
19557 _ACEOF
19558 cat confdefs.h >>conftest.$ac_ext
19559 cat >>conftest.$ac_ext <<_ACEOF
19560 /* end confdefs.h.  */
19561 #include <alloca.h>
19562 int
19563 main ()
19564 {
19565 char *p = (char *) alloca (2 * sizeof (int));
19566   ;
19567   return 0;
19568 }
19569 _ACEOF
19570 rm -f conftest.$ac_objext conftest$ac_exeext
19571 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19572   (eval $ac_link) 2>conftest.er1
19573   ac_status=$?
19574   grep -v '^ *+' conftest.er1 >conftest.err
19575   rm -f conftest.er1
19576   cat conftest.err >&5
19577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19578   (exit $ac_status); } &&
19579          { ac_try='test -z "$ac_c_werror_flag"
19580                          || test ! -s conftest.err'
19581   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19582   (eval $ac_try) 2>&5
19583   ac_status=$?
19584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19585   (exit $ac_status); }; } &&
19586          { ac_try='test -s conftest$ac_exeext'
19587   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19588   (eval $ac_try) 2>&5
19589   ac_status=$?
19590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19591   (exit $ac_status); }; }; then
19592   ac_cv_working_alloca_h=yes
19593 else
19594   echo "$as_me: failed program was:" >&5
19595 sed 's/^/| /' conftest.$ac_ext >&5
19596
19597 ac_cv_working_alloca_h=no
19598 fi
19599 rm -f conftest.err conftest.$ac_objext \
19600       conftest$ac_exeext conftest.$ac_ext
19601 fi
19602 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
19603 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
19604 if test $ac_cv_working_alloca_h = yes; then
19605
19606 cat >>confdefs.h <<\_ACEOF
19607 #define HAVE_ALLOCA_H 1
19608 _ACEOF
19609
19610 fi
19611
19612 echo "$as_me:$LINENO: checking for alloca" >&5
19613 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
19614 if test "${ac_cv_func_alloca_works+set}" = set; then
19615   echo $ECHO_N "(cached) $ECHO_C" >&6
19616 else
19617   cat >conftest.$ac_ext <<_ACEOF
19618 /* confdefs.h.  */
19619 _ACEOF
19620 cat confdefs.h >>conftest.$ac_ext
19621 cat >>conftest.$ac_ext <<_ACEOF
19622 /* end confdefs.h.  */
19623 #ifdef __GNUC__
19624 # define alloca __builtin_alloca
19625 #else
19626 # ifdef _MSC_VER
19627 #  include <malloc.h>
19628 #  define alloca _alloca
19629 # else
19630 #  if HAVE_ALLOCA_H
19631 #   include <alloca.h>
19632 #  else
19633 #   ifdef _AIX
19634  #pragma alloca
19635 #   else
19636 #    ifndef alloca /* predefined by HP cc +Olibcalls */
19637 char *alloca ();
19638 #    endif
19639 #   endif
19640 #  endif
19641 # endif
19642 #endif
19643
19644 int
19645 main ()
19646 {
19647 char *p = (char *) alloca (1);
19648   ;
19649   return 0;
19650 }
19651 _ACEOF
19652 rm -f conftest.$ac_objext conftest$ac_exeext
19653 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19654   (eval $ac_link) 2>conftest.er1
19655   ac_status=$?
19656   grep -v '^ *+' conftest.er1 >conftest.err
19657   rm -f conftest.er1
19658   cat conftest.err >&5
19659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19660   (exit $ac_status); } &&
19661          { ac_try='test -z "$ac_c_werror_flag"
19662                          || test ! -s conftest.err'
19663   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19664   (eval $ac_try) 2>&5
19665   ac_status=$?
19666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19667   (exit $ac_status); }; } &&
19668          { ac_try='test -s conftest$ac_exeext'
19669   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19670   (eval $ac_try) 2>&5
19671   ac_status=$?
19672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19673   (exit $ac_status); }; }; then
19674   ac_cv_func_alloca_works=yes
19675 else
19676   echo "$as_me: failed program was:" >&5
19677 sed 's/^/| /' conftest.$ac_ext >&5
19678
19679 ac_cv_func_alloca_works=no
19680 fi
19681 rm -f conftest.err conftest.$ac_objext \
19682       conftest$ac_exeext conftest.$ac_ext
19683 fi
19684 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
19685 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
19686
19687 if test $ac_cv_func_alloca_works = yes; then
19688
19689 cat >>confdefs.h <<\_ACEOF
19690 #define HAVE_ALLOCA 1
19691 _ACEOF
19692
19693 else
19694   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
19695 # that cause trouble.  Some versions do not even contain alloca or
19696 # contain a buggy version.  If you still want to use their alloca,
19697 # use ar to extract alloca.o from them instead of compiling alloca.c.
19698
19699 ALLOCA=alloca.$ac_objext
19700
19701 cat >>confdefs.h <<\_ACEOF
19702 #define C_ALLOCA 1
19703 _ACEOF
19704
19705
19706 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
19707 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
19708 if test "${ac_cv_os_cray+set}" = set; then
19709   echo $ECHO_N "(cached) $ECHO_C" >&6
19710 else
19711   cat >conftest.$ac_ext <<_ACEOF
19712 /* confdefs.h.  */
19713 _ACEOF
19714 cat confdefs.h >>conftest.$ac_ext
19715 cat >>conftest.$ac_ext <<_ACEOF
19716 /* end confdefs.h.  */
19717 #if defined(CRAY) && ! defined(CRAY2)
19718 webecray
19719 #else
19720 wenotbecray
19721 #endif
19722
19723 _ACEOF
19724 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19725   $EGREP "webecray" >/dev/null 2>&1; then
19726   ac_cv_os_cray=yes
19727 else
19728   ac_cv_os_cray=no
19729 fi
19730 rm -f conftest*
19731
19732 fi
19733 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
19734 echo "${ECHO_T}$ac_cv_os_cray" >&6
19735 if test $ac_cv_os_cray = yes; then
19736   for ac_func in _getb67 GETB67 getb67; do
19737     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19738 echo "$as_me:$LINENO: checking for $ac_func" >&5
19739 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19740 if eval "test \"\${$as_ac_var+set}\" = set"; then
19741   echo $ECHO_N "(cached) $ECHO_C" >&6
19742 else
19743   cat >conftest.$ac_ext <<_ACEOF
19744 /* confdefs.h.  */
19745 _ACEOF
19746 cat confdefs.h >>conftest.$ac_ext
19747 cat >>conftest.$ac_ext <<_ACEOF
19748 /* end confdefs.h.  */
19749 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19750    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19751 #define $ac_func innocuous_$ac_func
19752
19753 /* System header to define __stub macros and hopefully few prototypes,
19754     which can conflict with char $ac_func (); below.
19755     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19756     <limits.h> exists even on freestanding compilers.  */
19757
19758 #ifdef __STDC__
19759 # include <limits.h>
19760 #else
19761 # include <assert.h>
19762 #endif
19763
19764 #undef $ac_func
19765
19766 /* Override any gcc2 internal prototype to avoid an error.  */
19767 #ifdef __cplusplus
19768 extern "C"
19769 {
19770 #endif
19771 /* We use char because int might match the return type of a gcc2
19772    builtin and then its argument prototype would still apply.  */
19773 char $ac_func ();
19774 /* The GNU C library defines this for functions which it implements
19775     to always fail with ENOSYS.  Some functions are actually named
19776     something starting with __ and the normal name is an alias.  */
19777 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19778 choke me
19779 #else
19780 char (*f) () = $ac_func;
19781 #endif
19782 #ifdef __cplusplus
19783 }
19784 #endif
19785
19786 int
19787 main ()
19788 {
19789 return f != $ac_func;
19790   ;
19791   return 0;
19792 }
19793 _ACEOF
19794 rm -f conftest.$ac_objext conftest$ac_exeext
19795 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19796   (eval $ac_link) 2>conftest.er1
19797   ac_status=$?
19798   grep -v '^ *+' conftest.er1 >conftest.err
19799   rm -f conftest.er1
19800   cat conftest.err >&5
19801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19802   (exit $ac_status); } &&
19803          { ac_try='test -z "$ac_c_werror_flag"
19804                          || test ! -s conftest.err'
19805   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19806   (eval $ac_try) 2>&5
19807   ac_status=$?
19808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19809   (exit $ac_status); }; } &&
19810          { ac_try='test -s conftest$ac_exeext'
19811   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19812   (eval $ac_try) 2>&5
19813   ac_status=$?
19814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19815   (exit $ac_status); }; }; then
19816   eval "$as_ac_var=yes"
19817 else
19818   echo "$as_me: failed program was:" >&5
19819 sed 's/^/| /' conftest.$ac_ext >&5
19820
19821 eval "$as_ac_var=no"
19822 fi
19823 rm -f conftest.err conftest.$ac_objext \
19824       conftest$ac_exeext conftest.$ac_ext
19825 fi
19826 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19827 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19828 if test `eval echo '${'$as_ac_var'}'` = yes; then
19829
19830 cat >>confdefs.h <<_ACEOF
19831 #define CRAY_STACKSEG_END $ac_func
19832 _ACEOF
19833
19834     break
19835 fi
19836
19837   done
19838 fi
19839
19840 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
19841 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
19842 if test "${ac_cv_c_stack_direction+set}" = set; then
19843   echo $ECHO_N "(cached) $ECHO_C" >&6
19844 else
19845   if test "$cross_compiling" = yes; then
19846   ac_cv_c_stack_direction=0
19847 else
19848   cat >conftest.$ac_ext <<_ACEOF
19849 /* confdefs.h.  */
19850 _ACEOF
19851 cat confdefs.h >>conftest.$ac_ext
19852 cat >>conftest.$ac_ext <<_ACEOF
19853 /* end confdefs.h.  */
19854 int
19855 find_stack_direction ()
19856 {
19857   static char *addr = 0;
19858   auto char dummy;
19859   if (addr == 0)
19860     {
19861       addr = &dummy;
19862       return find_stack_direction ();
19863     }
19864   else
19865     return (&dummy > addr) ? 1 : -1;
19866 }
19867
19868 int
19869 main ()
19870 {
19871   exit (find_stack_direction () < 0);
19872 }
19873 _ACEOF
19874 rm -f conftest$ac_exeext
19875 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19876   (eval $ac_link) 2>&5
19877   ac_status=$?
19878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19879   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19880   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19881   (eval $ac_try) 2>&5
19882   ac_status=$?
19883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19884   (exit $ac_status); }; }; then
19885   ac_cv_c_stack_direction=1
19886 else
19887   echo "$as_me: program exited with status $ac_status" >&5
19888 echo "$as_me: failed program was:" >&5
19889 sed 's/^/| /' conftest.$ac_ext >&5
19890
19891 ( exit $ac_status )
19892 ac_cv_c_stack_direction=-1
19893 fi
19894 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19895 fi
19896 fi
19897 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
19898 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
19899
19900 cat >>confdefs.h <<_ACEOF
19901 #define STACK_DIRECTION $ac_cv_c_stack_direction
19902 _ACEOF
19903
19904
19905 fi
19906
19907 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
19908 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
19909 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
19910 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
19911   echo $ECHO_N "(cached) $ECHO_C" >&6
19912 else
19913   ac_check_lib_save_LIBS=$LIBS
19914 LIBS="-lsun  $LIBS"
19915 cat >conftest.$ac_ext <<_ACEOF
19916 /* confdefs.h.  */
19917 _ACEOF
19918 cat confdefs.h >>conftest.$ac_ext
19919 cat >>conftest.$ac_ext <<_ACEOF
19920 /* end confdefs.h.  */
19921
19922 /* Override any gcc2 internal prototype to avoid an error.  */
19923 #ifdef __cplusplus
19924 extern "C"
19925 #endif
19926 /* We use char because int might match the return type of a gcc2
19927    builtin and then its argument prototype would still apply.  */
19928 char getmntent ();
19929 int
19930 main ()
19931 {
19932 getmntent ();
19933   ;
19934   return 0;
19935 }
19936 _ACEOF
19937 rm -f conftest.$ac_objext conftest$ac_exeext
19938 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19939   (eval $ac_link) 2>conftest.er1
19940   ac_status=$?
19941   grep -v '^ *+' conftest.er1 >conftest.err
19942   rm -f conftest.er1
19943   cat conftest.err >&5
19944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19945   (exit $ac_status); } &&
19946          { ac_try='test -z "$ac_c_werror_flag"
19947                          || test ! -s conftest.err'
19948   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19949   (eval $ac_try) 2>&5
19950   ac_status=$?
19951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19952   (exit $ac_status); }; } &&
19953          { ac_try='test -s conftest$ac_exeext'
19954   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19955   (eval $ac_try) 2>&5
19956   ac_status=$?
19957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19958   (exit $ac_status); }; }; then
19959   ac_cv_lib_sun_getmntent=yes
19960 else
19961   echo "$as_me: failed program was:" >&5
19962 sed 's/^/| /' conftest.$ac_ext >&5
19963
19964 ac_cv_lib_sun_getmntent=no
19965 fi
19966 rm -f conftest.err conftest.$ac_objext \
19967       conftest$ac_exeext conftest.$ac_ext
19968 LIBS=$ac_check_lib_save_LIBS
19969 fi
19970 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
19971 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
19972 if test $ac_cv_lib_sun_getmntent = yes; then
19973   LIBS="-lsun $LIBS"
19974 else
19975   echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
19976 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
19977 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
19978   echo $ECHO_N "(cached) $ECHO_C" >&6
19979 else
19980   ac_check_lib_save_LIBS=$LIBS
19981 LIBS="-lseq  $LIBS"
19982 cat >conftest.$ac_ext <<_ACEOF
19983 /* confdefs.h.  */
19984 _ACEOF
19985 cat confdefs.h >>conftest.$ac_ext
19986 cat >>conftest.$ac_ext <<_ACEOF
19987 /* end confdefs.h.  */
19988
19989 /* Override any gcc2 internal prototype to avoid an error.  */
19990 #ifdef __cplusplus
19991 extern "C"
19992 #endif
19993 /* We use char because int might match the return type of a gcc2
19994    builtin and then its argument prototype would still apply.  */
19995 char getmntent ();
19996 int
19997 main ()
19998 {
19999 getmntent ();
20000   ;
20001   return 0;
20002 }
20003 _ACEOF
20004 rm -f conftest.$ac_objext conftest$ac_exeext
20005 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20006   (eval $ac_link) 2>conftest.er1
20007   ac_status=$?
20008   grep -v '^ *+' conftest.er1 >conftest.err
20009   rm -f conftest.er1
20010   cat conftest.err >&5
20011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20012   (exit $ac_status); } &&
20013          { ac_try='test -z "$ac_c_werror_flag"
20014                          || test ! -s conftest.err'
20015   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20016   (eval $ac_try) 2>&5
20017   ac_status=$?
20018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20019   (exit $ac_status); }; } &&
20020          { ac_try='test -s conftest$ac_exeext'
20021   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20022   (eval $ac_try) 2>&5
20023   ac_status=$?
20024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20025   (exit $ac_status); }; }; then
20026   ac_cv_lib_seq_getmntent=yes
20027 else
20028   echo "$as_me: failed program was:" >&5
20029 sed 's/^/| /' conftest.$ac_ext >&5
20030
20031 ac_cv_lib_seq_getmntent=no
20032 fi
20033 rm -f conftest.err conftest.$ac_objext \
20034       conftest$ac_exeext conftest.$ac_ext
20035 LIBS=$ac_check_lib_save_LIBS
20036 fi
20037 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
20038 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
20039 if test $ac_cv_lib_seq_getmntent = yes; then
20040   LIBS="-lseq $LIBS"
20041 else
20042   echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
20043 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
20044 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
20045   echo $ECHO_N "(cached) $ECHO_C" >&6
20046 else
20047   ac_check_lib_save_LIBS=$LIBS
20048 LIBS="-lgen  $LIBS"
20049 cat >conftest.$ac_ext <<_ACEOF
20050 /* confdefs.h.  */
20051 _ACEOF
20052 cat confdefs.h >>conftest.$ac_ext
20053 cat >>conftest.$ac_ext <<_ACEOF
20054 /* end confdefs.h.  */
20055
20056 /* Override any gcc2 internal prototype to avoid an error.  */
20057 #ifdef __cplusplus
20058 extern "C"
20059 #endif
20060 /* We use char because int might match the return type of a gcc2
20061    builtin and then its argument prototype would still apply.  */
20062 char getmntent ();
20063 int
20064 main ()
20065 {
20066 getmntent ();
20067   ;
20068   return 0;
20069 }
20070 _ACEOF
20071 rm -f conftest.$ac_objext conftest$ac_exeext
20072 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20073   (eval $ac_link) 2>conftest.er1
20074   ac_status=$?
20075   grep -v '^ *+' conftest.er1 >conftest.err
20076   rm -f conftest.er1
20077   cat conftest.err >&5
20078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20079   (exit $ac_status); } &&
20080          { ac_try='test -z "$ac_c_werror_flag"
20081                          || test ! -s conftest.err'
20082   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20083   (eval $ac_try) 2>&5
20084   ac_status=$?
20085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20086   (exit $ac_status); }; } &&
20087          { ac_try='test -s conftest$ac_exeext'
20088   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20089   (eval $ac_try) 2>&5
20090   ac_status=$?
20091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20092   (exit $ac_status); }; }; then
20093   ac_cv_lib_gen_getmntent=yes
20094 else
20095   echo "$as_me: failed program was:" >&5
20096 sed 's/^/| /' conftest.$ac_ext >&5
20097
20098 ac_cv_lib_gen_getmntent=no
20099 fi
20100 rm -f conftest.err conftest.$ac_objext \
20101       conftest$ac_exeext conftest.$ac_ext
20102 LIBS=$ac_check_lib_save_LIBS
20103 fi
20104 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
20105 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
20106 if test $ac_cv_lib_gen_getmntent = yes; then
20107   LIBS="-lgen $LIBS"
20108 fi
20109
20110 fi
20111
20112 fi
20113
20114
20115 for ac_func in getmntent
20116 do
20117 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20118 echo "$as_me:$LINENO: checking for $ac_func" >&5
20119 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20120 if eval "test \"\${$as_ac_var+set}\" = set"; then
20121   echo $ECHO_N "(cached) $ECHO_C" >&6
20122 else
20123   cat >conftest.$ac_ext <<_ACEOF
20124 /* confdefs.h.  */
20125 _ACEOF
20126 cat confdefs.h >>conftest.$ac_ext
20127 cat >>conftest.$ac_ext <<_ACEOF
20128 /* end confdefs.h.  */
20129 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20130    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20131 #define $ac_func innocuous_$ac_func
20132
20133 /* System header to define __stub macros and hopefully few prototypes,
20134     which can conflict with char $ac_func (); below.
20135     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20136     <limits.h> exists even on freestanding compilers.  */
20137
20138 #ifdef __STDC__
20139 # include <limits.h>
20140 #else
20141 # include <assert.h>
20142 #endif
20143
20144 #undef $ac_func
20145
20146 /* Override any gcc2 internal prototype to avoid an error.  */
20147 #ifdef __cplusplus
20148 extern "C"
20149 {
20150 #endif
20151 /* We use char because int might match the return type of a gcc2
20152    builtin and then its argument prototype would still apply.  */
20153 char $ac_func ();
20154 /* The GNU C library defines this for functions which it implements
20155     to always fail with ENOSYS.  Some functions are actually named
20156     something starting with __ and the normal name is an alias.  */
20157 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20158 choke me
20159 #else
20160 char (*f) () = $ac_func;
20161 #endif
20162 #ifdef __cplusplus
20163 }
20164 #endif
20165
20166 int
20167 main ()
20168 {
20169 return f != $ac_func;
20170   ;
20171   return 0;
20172 }
20173 _ACEOF
20174 rm -f conftest.$ac_objext conftest$ac_exeext
20175 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20176   (eval $ac_link) 2>conftest.er1
20177   ac_status=$?
20178   grep -v '^ *+' conftest.er1 >conftest.err
20179   rm -f conftest.er1
20180   cat conftest.err >&5
20181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20182   (exit $ac_status); } &&
20183          { ac_try='test -z "$ac_c_werror_flag"
20184                          || test ! -s conftest.err'
20185   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20186   (eval $ac_try) 2>&5
20187   ac_status=$?
20188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20189   (exit $ac_status); }; } &&
20190          { ac_try='test -s conftest$ac_exeext'
20191   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20192   (eval $ac_try) 2>&5
20193   ac_status=$?
20194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20195   (exit $ac_status); }; }; then
20196   eval "$as_ac_var=yes"
20197 else
20198   echo "$as_me: failed program was:" >&5
20199 sed 's/^/| /' conftest.$ac_ext >&5
20200
20201 eval "$as_ac_var=no"
20202 fi
20203 rm -f conftest.err conftest.$ac_objext \
20204       conftest$ac_exeext conftest.$ac_ext
20205 fi
20206 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20207 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20208 if test `eval echo '${'$as_ac_var'}'` = yes; then
20209   cat >>confdefs.h <<_ACEOF
20210 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20211 _ACEOF
20212
20213 fi
20214 done
20215
20216
20217 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
20218 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
20219 if test "${ac_cv_func_closedir_void+set}" = set; then
20220   echo $ECHO_N "(cached) $ECHO_C" >&6
20221 else
20222   if test "$cross_compiling" = yes; then
20223   ac_cv_func_closedir_void=yes
20224 else
20225   cat >conftest.$ac_ext <<_ACEOF
20226 /* confdefs.h.  */
20227 _ACEOF
20228 cat confdefs.h >>conftest.$ac_ext
20229 cat >>conftest.$ac_ext <<_ACEOF
20230 /* end confdefs.h.  */
20231 $ac_includes_default
20232 #include <$ac_header_dirent>
20233 #ifndef __cplusplus
20234 int closedir ();
20235 #endif
20236
20237 int
20238 main ()
20239 {
20240 exit (closedir (opendir (".")) != 0);
20241   ;
20242   return 0;
20243 }
20244 _ACEOF
20245 rm -f conftest$ac_exeext
20246 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20247   (eval $ac_link) 2>&5
20248   ac_status=$?
20249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20250   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20251   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20252   (eval $ac_try) 2>&5
20253   ac_status=$?
20254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20255   (exit $ac_status); }; }; then
20256   ac_cv_func_closedir_void=no
20257 else
20258   echo "$as_me: program exited with status $ac_status" >&5
20259 echo "$as_me: failed program was:" >&5
20260 sed 's/^/| /' conftest.$ac_ext >&5
20261
20262 ( exit $ac_status )
20263 ac_cv_func_closedir_void=yes
20264 fi
20265 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20266 fi
20267 fi
20268 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
20269 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
20270 if test $ac_cv_func_closedir_void = yes; then
20271
20272 cat >>confdefs.h <<\_ACEOF
20273 #define CLOSEDIR_VOID 1
20274 _ACEOF
20275
20276 fi
20277
20278 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
20279 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
20280 if test "${ac_cv_func_setpgrp_void+set}" = set; then
20281   echo $ECHO_N "(cached) $ECHO_C" >&6
20282 else
20283   if test "$cross_compiling" = yes; then
20284   { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
20285 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
20286    { (exit 1); exit 1; }; }
20287 else
20288   cat >conftest.$ac_ext <<_ACEOF
20289 /* confdefs.h.  */
20290 _ACEOF
20291 cat confdefs.h >>conftest.$ac_ext
20292 cat >>conftest.$ac_ext <<_ACEOF
20293 /* end confdefs.h.  */
20294 #if HAVE_UNISTD_H
20295 # include <unistd.h>
20296 #endif
20297
20298 int
20299 main ()
20300 {
20301 /* If this system has a BSD-style setpgrp which takes arguments,
20302   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
20303   exit successfully. */
20304   exit (setpgrp (1,1) == -1 ? 0 : 1);
20305   ;
20306   return 0;
20307 }
20308 _ACEOF
20309 rm -f conftest$ac_exeext
20310 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20311   (eval $ac_link) 2>&5
20312   ac_status=$?
20313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20314   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20315   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20316   (eval $ac_try) 2>&5
20317   ac_status=$?
20318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20319   (exit $ac_status); }; }; then
20320   ac_cv_func_setpgrp_void=no
20321 else
20322   echo "$as_me: program exited with status $ac_status" >&5
20323 echo "$as_me: failed program was:" >&5
20324 sed 's/^/| /' conftest.$ac_ext >&5
20325
20326 ( exit $ac_status )
20327 ac_cv_func_setpgrp_void=yes
20328 fi
20329 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20330 fi
20331 fi
20332 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
20333 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
20334 if test $ac_cv_func_setpgrp_void = yes; then
20335
20336 cat >>confdefs.h <<\_ACEOF
20337 #define SETPGRP_VOID 1
20338 _ACEOF
20339
20340 fi
20341                       # AC_FUNC_FNMATCH    dnl use local version
20342
20343
20344 echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
20345 echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
20346 if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
20347   echo $ECHO_N "(cached) $ECHO_C" >&6
20348 else
20349   ac_check_lib_save_LIBS=$LIBS
20350 LIBS="-lxpg4  $LIBS"
20351 cat >conftest.$ac_ext <<_ACEOF
20352 /* confdefs.h.  */
20353 _ACEOF
20354 cat confdefs.h >>conftest.$ac_ext
20355 cat >>conftest.$ac_ext <<_ACEOF
20356 /* end confdefs.h.  */
20357
20358 /* Override any gcc2 internal prototype to avoid an error.  */
20359 #ifdef __cplusplus
20360 extern "C"
20361 #endif
20362 /* We use char because int might match the return type of a gcc2
20363    builtin and then its argument prototype would still apply.  */
20364 char setlocale ();
20365 int
20366 main ()
20367 {
20368 setlocale ();
20369   ;
20370   return 0;
20371 }
20372 _ACEOF
20373 rm -f conftest.$ac_objext conftest$ac_exeext
20374 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20375   (eval $ac_link) 2>conftest.er1
20376   ac_status=$?
20377   grep -v '^ *+' conftest.er1 >conftest.err
20378   rm -f conftest.er1
20379   cat conftest.err >&5
20380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20381   (exit $ac_status); } &&
20382          { ac_try='test -z "$ac_c_werror_flag"
20383                          || test ! -s conftest.err'
20384   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20385   (eval $ac_try) 2>&5
20386   ac_status=$?
20387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20388   (exit $ac_status); }; } &&
20389          { ac_try='test -s conftest$ac_exeext'
20390   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20391   (eval $ac_try) 2>&5
20392   ac_status=$?
20393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20394   (exit $ac_status); }; }; then
20395   ac_cv_lib_xpg4_setlocale=yes
20396 else
20397   echo "$as_me: failed program was:" >&5
20398 sed 's/^/| /' conftest.$ac_ext >&5
20399
20400 ac_cv_lib_xpg4_setlocale=no
20401 fi
20402 rm -f conftest.err conftest.$ac_objext \
20403       conftest$ac_exeext conftest.$ac_ext
20404 LIBS=$ac_check_lib_save_LIBS
20405 fi
20406 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
20407 echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
20408 if test $ac_cv_lib_xpg4_setlocale = yes; then
20409   LIBS="$LIBS -lxpg4"
20410 fi
20411
20412
20413
20414
20415 echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
20416 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6
20417 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
20418   echo $ECHO_N "(cached) $ECHO_C" >&6
20419 else
20420   ac_check_lib_save_LIBS=$LIBS
20421 LIBS="-lsun  $LIBS"
20422 cat >conftest.$ac_ext <<_ACEOF
20423 /* confdefs.h.  */
20424 _ACEOF
20425 cat confdefs.h >>conftest.$ac_ext
20426 cat >>conftest.$ac_ext <<_ACEOF
20427 /* end confdefs.h.  */
20428
20429 /* Override any gcc2 internal prototype to avoid an error.  */
20430 #ifdef __cplusplus
20431 extern "C"
20432 #endif
20433 /* We use char because int might match the return type of a gcc2
20434    builtin and then its argument prototype would still apply.  */
20435 char getpwnam ();
20436 int
20437 main ()
20438 {
20439 getpwnam ();
20440   ;
20441   return 0;
20442 }
20443 _ACEOF
20444 rm -f conftest.$ac_objext conftest$ac_exeext
20445 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20446   (eval $ac_link) 2>conftest.er1
20447   ac_status=$?
20448   grep -v '^ *+' conftest.er1 >conftest.err
20449   rm -f conftest.er1
20450   cat conftest.err >&5
20451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20452   (exit $ac_status); } &&
20453          { ac_try='test -z "$ac_c_werror_flag"
20454                          || test ! -s conftest.err'
20455   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20456   (eval $ac_try) 2>&5
20457   ac_status=$?
20458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20459   (exit $ac_status); }; } &&
20460          { ac_try='test -s conftest$ac_exeext'
20461   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20462   (eval $ac_try) 2>&5
20463   ac_status=$?
20464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20465   (exit $ac_status); }; }; then
20466   ac_cv_lib_sun_getpwnam=yes
20467 else
20468   echo "$as_me: failed program was:" >&5
20469 sed 's/^/| /' conftest.$ac_ext >&5
20470
20471 ac_cv_lib_sun_getpwnam=no
20472 fi
20473 rm -f conftest.err conftest.$ac_objext \
20474       conftest$ac_exeext conftest.$ac_ext
20475 LIBS=$ac_check_lib_save_LIBS
20476 fi
20477 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
20478 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6
20479 if test $ac_cv_lib_sun_getpwnam = yes; then
20480   cat >>confdefs.h <<_ACEOF
20481 #define HAVE_LIBSUN 1
20482 _ACEOF
20483
20484   LIBS="-lsun $LIBS"
20485
20486 fi
20487
20488
20489
20490 for ac_header in zlib.h
20491 do
20492 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20493 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20494   echo "$as_me:$LINENO: checking for $ac_header" >&5
20495 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20496 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20497   echo $ECHO_N "(cached) $ECHO_C" >&6
20498 fi
20499 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20500 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20501 else
20502   # Is the header compilable?
20503 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20504 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20505 cat >conftest.$ac_ext <<_ACEOF
20506 /* confdefs.h.  */
20507 _ACEOF
20508 cat confdefs.h >>conftest.$ac_ext
20509 cat >>conftest.$ac_ext <<_ACEOF
20510 /* end confdefs.h.  */
20511 $ac_includes_default
20512 #include <$ac_header>
20513 _ACEOF
20514 rm -f conftest.$ac_objext
20515 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20516   (eval $ac_compile) 2>conftest.er1
20517   ac_status=$?
20518   grep -v '^ *+' conftest.er1 >conftest.err
20519   rm -f conftest.er1
20520   cat conftest.err >&5
20521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20522   (exit $ac_status); } &&
20523          { ac_try='test -z "$ac_c_werror_flag"
20524                          || test ! -s conftest.err'
20525   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20526   (eval $ac_try) 2>&5
20527   ac_status=$?
20528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20529   (exit $ac_status); }; } &&
20530          { ac_try='test -s conftest.$ac_objext'
20531   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20532   (eval $ac_try) 2>&5
20533   ac_status=$?
20534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20535   (exit $ac_status); }; }; then
20536   ac_header_compiler=yes
20537 else
20538   echo "$as_me: failed program was:" >&5
20539 sed 's/^/| /' conftest.$ac_ext >&5
20540
20541 ac_header_compiler=no
20542 fi
20543 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20544 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20545 echo "${ECHO_T}$ac_header_compiler" >&6
20546
20547 # Is the header present?
20548 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20549 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
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 #include <$ac_header>
20557 _ACEOF
20558 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20559   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20560   ac_status=$?
20561   grep -v '^ *+' conftest.er1 >conftest.err
20562   rm -f conftest.er1
20563   cat conftest.err >&5
20564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20565   (exit $ac_status); } >/dev/null; then
20566   if test -s conftest.err; then
20567     ac_cpp_err=$ac_c_preproc_warn_flag
20568     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20569   else
20570     ac_cpp_err=
20571   fi
20572 else
20573   ac_cpp_err=yes
20574 fi
20575 if test -z "$ac_cpp_err"; then
20576   ac_header_preproc=yes
20577 else
20578   echo "$as_me: failed program was:" >&5
20579 sed 's/^/| /' conftest.$ac_ext >&5
20580
20581   ac_header_preproc=no
20582 fi
20583 rm -f conftest.err conftest.$ac_ext
20584 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20585 echo "${ECHO_T}$ac_header_preproc" >&6
20586
20587 # So?  What about this header?
20588 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20589   yes:no: )
20590     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20591 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20592     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20593 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20594     ac_header_preproc=yes
20595     ;;
20596   no:yes:* )
20597     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20598 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20599     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20600 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20601     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20602 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20603     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20604 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20605     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20606 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20607     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20608 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20609     (
20610       cat <<\_ASBOX
20611 ## ------------------------------------------ ##
20612 ## Report this to the AC_PACKAGE_NAME lists.  ##
20613 ## ------------------------------------------ ##
20614 _ASBOX
20615     ) |
20616       sed "s/^/$as_me: WARNING:     /" >&2
20617     ;;
20618 esac
20619 echo "$as_me:$LINENO: checking for $ac_header" >&5
20620 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20621 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20622   echo $ECHO_N "(cached) $ECHO_C" >&6
20623 else
20624   eval "$as_ac_Header=\$ac_header_preproc"
20625 fi
20626 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20627 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20628
20629 fi
20630 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20631   cat >>confdefs.h <<_ACEOF
20632 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20633 _ACEOF
20634
20635 fi
20636
20637 done
20638
20639 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
20640 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
20641 if test "${ac_cv_lib_z_deflate+set}" = set; then
20642   echo $ECHO_N "(cached) $ECHO_C" >&6
20643 else
20644   ac_check_lib_save_LIBS=$LIBS
20645 LIBS="-lz  $LIBS"
20646 cat >conftest.$ac_ext <<_ACEOF
20647 /* confdefs.h.  */
20648 _ACEOF
20649 cat confdefs.h >>conftest.$ac_ext
20650 cat >>conftest.$ac_ext <<_ACEOF
20651 /* end confdefs.h.  */
20652
20653 /* Override any gcc2 internal prototype to avoid an error.  */
20654 #ifdef __cplusplus
20655 extern "C"
20656 #endif
20657 /* We use char because int might match the return type of a gcc2
20658    builtin and then its argument prototype would still apply.  */
20659 char deflate ();
20660 int
20661 main ()
20662 {
20663 deflate ();
20664   ;
20665   return 0;
20666 }
20667 _ACEOF
20668 rm -f conftest.$ac_objext conftest$ac_exeext
20669 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20670   (eval $ac_link) 2>conftest.er1
20671   ac_status=$?
20672   grep -v '^ *+' conftest.er1 >conftest.err
20673   rm -f conftest.er1
20674   cat conftest.err >&5
20675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20676   (exit $ac_status); } &&
20677          { ac_try='test -z "$ac_c_werror_flag"
20678                          || test ! -s conftest.err'
20679   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20680   (eval $ac_try) 2>&5
20681   ac_status=$?
20682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20683   (exit $ac_status); }; } &&
20684          { ac_try='test -s conftest$ac_exeext'
20685   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20686   (eval $ac_try) 2>&5
20687   ac_status=$?
20688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20689   (exit $ac_status); }; }; then
20690   ac_cv_lib_z_deflate=yes
20691 else
20692   echo "$as_me: failed program was:" >&5
20693 sed 's/^/| /' conftest.$ac_ext >&5
20694
20695 ac_cv_lib_z_deflate=no
20696 fi
20697 rm -f conftest.err conftest.$ac_objext \
20698       conftest$ac_exeext conftest.$ac_ext
20699 LIBS=$ac_check_lib_save_LIBS
20700 fi
20701 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
20702 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
20703 if test $ac_cv_lib_z_deflate = yes; then
20704   FDLIBS="-lz"
20705 fi
20706
20707 have_zlib=no
20708 if test x$FDLIBS = x-lz; then
20709   cat >>confdefs.h <<\_ACEOF
20710 #define HAVE_LIBZ 1
20711 _ACEOF
20712
20713   have_zlib=yes
20714 fi
20715
20716 have_acl=no
20717 if test "${ac_cv_header_sys_acl_h+set}" = set; then
20718   echo "$as_me:$LINENO: checking for sys/acl.h" >&5
20719 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
20720 if test "${ac_cv_header_sys_acl_h+set}" = set; then
20721   echo $ECHO_N "(cached) $ECHO_C" >&6
20722 fi
20723 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
20724 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
20725 else
20726   # Is the header compilable?
20727 echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
20728 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6
20729 cat >conftest.$ac_ext <<_ACEOF
20730 /* confdefs.h.  */
20731 _ACEOF
20732 cat confdefs.h >>conftest.$ac_ext
20733 cat >>conftest.$ac_ext <<_ACEOF
20734 /* end confdefs.h.  */
20735 $ac_includes_default
20736 #include <sys/acl.h>
20737 _ACEOF
20738 rm -f conftest.$ac_objext
20739 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20740   (eval $ac_compile) 2>conftest.er1
20741   ac_status=$?
20742   grep -v '^ *+' conftest.er1 >conftest.err
20743   rm -f conftest.er1
20744   cat conftest.err >&5
20745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20746   (exit $ac_status); } &&
20747          { ac_try='test -z "$ac_c_werror_flag"
20748                          || test ! -s conftest.err'
20749   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20750   (eval $ac_try) 2>&5
20751   ac_status=$?
20752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20753   (exit $ac_status); }; } &&
20754          { ac_try='test -s conftest.$ac_objext'
20755   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20756   (eval $ac_try) 2>&5
20757   ac_status=$?
20758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20759   (exit $ac_status); }; }; then
20760   ac_header_compiler=yes
20761 else
20762   echo "$as_me: failed program was:" >&5
20763 sed 's/^/| /' conftest.$ac_ext >&5
20764
20765 ac_header_compiler=no
20766 fi
20767 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20768 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20769 echo "${ECHO_T}$ac_header_compiler" >&6
20770
20771 # Is the header present?
20772 echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
20773 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6
20774 cat >conftest.$ac_ext <<_ACEOF
20775 /* confdefs.h.  */
20776 _ACEOF
20777 cat confdefs.h >>conftest.$ac_ext
20778 cat >>conftest.$ac_ext <<_ACEOF
20779 /* end confdefs.h.  */
20780 #include <sys/acl.h>
20781 _ACEOF
20782 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20783   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20784   ac_status=$?
20785   grep -v '^ *+' conftest.er1 >conftest.err
20786   rm -f conftest.er1
20787   cat conftest.err >&5
20788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20789   (exit $ac_status); } >/dev/null; then
20790   if test -s conftest.err; then
20791     ac_cpp_err=$ac_c_preproc_warn_flag
20792     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20793   else
20794     ac_cpp_err=
20795   fi
20796 else
20797   ac_cpp_err=yes
20798 fi
20799 if test -z "$ac_cpp_err"; then
20800   ac_header_preproc=yes
20801 else
20802   echo "$as_me: failed program was:" >&5
20803 sed 's/^/| /' conftest.$ac_ext >&5
20804
20805   ac_header_preproc=no
20806 fi
20807 rm -f conftest.err conftest.$ac_ext
20808 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20809 echo "${ECHO_T}$ac_header_preproc" >&6
20810
20811 # So?  What about this header?
20812 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20813   yes:no: )
20814     { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
20815 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20816     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the compiler's result" >&5
20817 echo "$as_me: WARNING: sys/acl.h: proceeding with the compiler's result" >&2;}
20818     ac_header_preproc=yes
20819     ;;
20820   no:yes:* )
20821     { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
20822 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
20823     { echo "$as_me:$LINENO: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&5
20824 echo "$as_me: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&2;}
20825     { echo "$as_me:$LINENO: WARNING: sys/acl.h: see the Autoconf documentation" >&5
20826 echo "$as_me: WARNING: sys/acl.h: see the Autoconf documentation" >&2;}
20827     { echo "$as_me:$LINENO: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&5
20828 echo "$as_me: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
20829     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
20830 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
20831     { echo "$as_me:$LINENO: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&5
20832 echo "$as_me: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&2;}
20833     (
20834       cat <<\_ASBOX
20835 ## ------------------------------------------ ##
20836 ## Report this to the AC_PACKAGE_NAME lists.  ##
20837 ## ------------------------------------------ ##
20838 _ASBOX
20839     ) |
20840       sed "s/^/$as_me: WARNING:     /" >&2
20841     ;;
20842 esac
20843 echo "$as_me:$LINENO: checking for sys/acl.h" >&5
20844 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
20845 if test "${ac_cv_header_sys_acl_h+set}" = set; then
20846   echo $ECHO_N "(cached) $ECHO_C" >&6
20847 else
20848   ac_cv_header_sys_acl_h=$ac_header_preproc
20849 fi
20850 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
20851 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
20852
20853 fi
20854
20855
20856 echo "$as_me:$LINENO: checking for acl_get_file" >&5
20857 echo $ECHO_N "checking for acl_get_file... $ECHO_C" >&6
20858 if test "${ac_cv_func_acl_get_file+set}" = set; then
20859   echo $ECHO_N "(cached) $ECHO_C" >&6
20860 else
20861   cat >conftest.$ac_ext <<_ACEOF
20862 /* confdefs.h.  */
20863 _ACEOF
20864 cat confdefs.h >>conftest.$ac_ext
20865 cat >>conftest.$ac_ext <<_ACEOF
20866 /* end confdefs.h.  */
20867 /* Define acl_get_file to an innocuous variant, in case <limits.h> declares acl_get_file.
20868    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20869 #define acl_get_file innocuous_acl_get_file
20870
20871 /* System header to define __stub macros and hopefully few prototypes,
20872     which can conflict with char acl_get_file (); below.
20873     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20874     <limits.h> exists even on freestanding compilers.  */
20875
20876 #ifdef __STDC__
20877 # include <limits.h>
20878 #else
20879 # include <assert.h>
20880 #endif
20881
20882 #undef acl_get_file
20883
20884 /* Override any gcc2 internal prototype to avoid an error.  */
20885 #ifdef __cplusplus
20886 extern "C"
20887 {
20888 #endif
20889 /* We use char because int might match the return type of a gcc2
20890    builtin and then its argument prototype would still apply.  */
20891 char acl_get_file ();
20892 /* The GNU C library defines this for functions which it implements
20893     to always fail with ENOSYS.  Some functions are actually named
20894     something starting with __ and the normal name is an alias.  */
20895 #if defined (__stub_acl_get_file) || defined (__stub___acl_get_file)
20896 choke me
20897 #else
20898 char (*f) () = acl_get_file;
20899 #endif
20900 #ifdef __cplusplus
20901 }
20902 #endif
20903
20904 int
20905 main ()
20906 {
20907 return f != acl_get_file;
20908   ;
20909   return 0;
20910 }
20911 _ACEOF
20912 rm -f conftest.$ac_objext conftest$ac_exeext
20913 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20914   (eval $ac_link) 2>conftest.er1
20915   ac_status=$?
20916   grep -v '^ *+' conftest.er1 >conftest.err
20917   rm -f conftest.er1
20918   cat conftest.err >&5
20919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20920   (exit $ac_status); } &&
20921          { ac_try='test -z "$ac_c_werror_flag"
20922                          || test ! -s conftest.err'
20923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20924   (eval $ac_try) 2>&5
20925   ac_status=$?
20926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20927   (exit $ac_status); }; } &&
20928          { ac_try='test -s conftest$ac_exeext'
20929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20930   (eval $ac_try) 2>&5
20931   ac_status=$?
20932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20933   (exit $ac_status); }; }; then
20934   ac_cv_func_acl_get_file=yes
20935 else
20936   echo "$as_me: failed program was:" >&5
20937 sed 's/^/| /' conftest.$ac_ext >&5
20938
20939 ac_cv_func_acl_get_file=no
20940 fi
20941 rm -f conftest.err conftest.$ac_objext \
20942       conftest$ac_exeext conftest.$ac_ext
20943 fi
20944 echo "$as_me:$LINENO: result: $ac_cv_func_acl_get_file" >&5
20945 echo "${ECHO_T}$ac_cv_func_acl_get_file" >&6
20946 if test $ac_cv_func_acl_get_file = yes; then
20947   have_acl=yes
20948 else
20949   echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
20950 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6
20951 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
20952   echo $ECHO_N "(cached) $ECHO_C" >&6
20953 else
20954   ac_check_lib_save_LIBS=$LIBS
20955 LIBS="-lacl  $LIBS"
20956 cat >conftest.$ac_ext <<_ACEOF
20957 /* confdefs.h.  */
20958 _ACEOF
20959 cat confdefs.h >>conftest.$ac_ext
20960 cat >>conftest.$ac_ext <<_ACEOF
20961 /* end confdefs.h.  */
20962
20963 /* Override any gcc2 internal prototype to avoid an error.  */
20964 #ifdef __cplusplus
20965 extern "C"
20966 #endif
20967 /* We use char because int might match the return type of a gcc2
20968    builtin and then its argument prototype would still apply.  */
20969 char acl_get_file ();
20970 int
20971 main ()
20972 {
20973 acl_get_file ();
20974   ;
20975   return 0;
20976 }
20977 _ACEOF
20978 rm -f conftest.$ac_objext conftest$ac_exeext
20979 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20980   (eval $ac_link) 2>conftest.er1
20981   ac_status=$?
20982   grep -v '^ *+' conftest.er1 >conftest.err
20983   rm -f conftest.er1
20984   cat conftest.err >&5
20985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20986   (exit $ac_status); } &&
20987          { ac_try='test -z "$ac_c_werror_flag"
20988                          || test ! -s conftest.err'
20989   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20990   (eval $ac_try) 2>&5
20991   ac_status=$?
20992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20993   (exit $ac_status); }; } &&
20994          { ac_try='test -s conftest$ac_exeext'
20995   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20996   (eval $ac_try) 2>&5
20997   ac_status=$?
20998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20999   (exit $ac_status); }; }; then
21000   ac_cv_lib_acl_acl_get_file=yes
21001 else
21002   echo "$as_me: failed program was:" >&5
21003 sed 's/^/| /' conftest.$ac_ext >&5
21004
21005 ac_cv_lib_acl_acl_get_file=no
21006 fi
21007 rm -f conftest.err conftest.$ac_objext \
21008       conftest$ac_exeext conftest.$ac_ext
21009 LIBS=$ac_check_lib_save_LIBS
21010 fi
21011 echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
21012 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6
21013 if test $ac_cv_lib_acl_acl_get_file = yes; then
21014   have_acl=yes; FDLIBS="-lacl $FDLIBS"
21015 fi
21016
21017
21018 fi
21019
21020 if test $have_acl = yes; then
21021    cat >>confdefs.h <<\_ACEOF
21022 #define HAVE_ACL 1
21023 _ACEOF
21024
21025 fi
21026
21027 PTHREAD_LIB=""
21028 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
21029 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
21030 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
21031   echo $ECHO_N "(cached) $ECHO_C" >&6
21032 else
21033   ac_check_lib_save_LIBS=$LIBS
21034 LIBS="-lpthread  $LIBS"
21035 cat >conftest.$ac_ext <<_ACEOF
21036 /* confdefs.h.  */
21037 _ACEOF
21038 cat confdefs.h >>conftest.$ac_ext
21039 cat >>conftest.$ac_ext <<_ACEOF
21040 /* end confdefs.h.  */
21041
21042 /* Override any gcc2 internal prototype to avoid an error.  */
21043 #ifdef __cplusplus
21044 extern "C"
21045 #endif
21046 /* We use char because int might match the return type of a gcc2
21047    builtin and then its argument prototype would still apply.  */
21048 char pthread_create ();
21049 int
21050 main ()
21051 {
21052 pthread_create ();
21053   ;
21054   return 0;
21055 }
21056 _ACEOF
21057 rm -f conftest.$ac_objext conftest$ac_exeext
21058 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21059   (eval $ac_link) 2>conftest.er1
21060   ac_status=$?
21061   grep -v '^ *+' conftest.er1 >conftest.err
21062   rm -f conftest.er1
21063   cat conftest.err >&5
21064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21065   (exit $ac_status); } &&
21066          { ac_try='test -z "$ac_c_werror_flag"
21067                          || test ! -s conftest.err'
21068   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21069   (eval $ac_try) 2>&5
21070   ac_status=$?
21071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21072   (exit $ac_status); }; } &&
21073          { ac_try='test -s conftest$ac_exeext'
21074   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21075   (eval $ac_try) 2>&5
21076   ac_status=$?
21077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21078   (exit $ac_status); }; }; then
21079   ac_cv_lib_pthread_pthread_create=yes
21080 else
21081   echo "$as_me: failed program was:" >&5
21082 sed 's/^/| /' conftest.$ac_ext >&5
21083
21084 ac_cv_lib_pthread_pthread_create=no
21085 fi
21086 rm -f conftest.err conftest.$ac_objext \
21087       conftest$ac_exeext conftest.$ac_ext
21088 LIBS=$ac_check_lib_save_LIBS
21089 fi
21090 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
21091 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
21092 if test $ac_cv_lib_pthread_pthread_create = yes; then
21093   PTHREAD_LIB="-lpthread"
21094 else
21095   echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
21096 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
21097 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
21098   echo $ECHO_N "(cached) $ECHO_C" >&6
21099 else
21100   ac_check_lib_save_LIBS=$LIBS
21101 LIBS="-lpthreads  $LIBS"
21102 cat >conftest.$ac_ext <<_ACEOF
21103 /* confdefs.h.  */
21104 _ACEOF
21105 cat confdefs.h >>conftest.$ac_ext
21106 cat >>conftest.$ac_ext <<_ACEOF
21107 /* end confdefs.h.  */
21108
21109 /* Override any gcc2 internal prototype to avoid an error.  */
21110 #ifdef __cplusplus
21111 extern "C"
21112 #endif
21113 /* We use char because int might match the return type of a gcc2
21114    builtin and then its argument prototype would still apply.  */
21115 char pthread_create ();
21116 int
21117 main ()
21118 {
21119 pthread_create ();
21120   ;
21121   return 0;
21122 }
21123 _ACEOF
21124 rm -f conftest.$ac_objext conftest$ac_exeext
21125 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21126   (eval $ac_link) 2>conftest.er1
21127   ac_status=$?
21128   grep -v '^ *+' conftest.er1 >conftest.err
21129   rm -f conftest.er1
21130   cat conftest.err >&5
21131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21132   (exit $ac_status); } &&
21133          { ac_try='test -z "$ac_c_werror_flag"
21134                          || test ! -s conftest.err'
21135   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21136   (eval $ac_try) 2>&5
21137   ac_status=$?
21138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21139   (exit $ac_status); }; } &&
21140          { ac_try='test -s conftest$ac_exeext'
21141   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21142   (eval $ac_try) 2>&5
21143   ac_status=$?
21144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21145   (exit $ac_status); }; }; then
21146   ac_cv_lib_pthreads_pthread_create=yes
21147 else
21148   echo "$as_me: failed program was:" >&5
21149 sed 's/^/| /' conftest.$ac_ext >&5
21150
21151 ac_cv_lib_pthreads_pthread_create=no
21152 fi
21153 rm -f conftest.err conftest.$ac_objext \
21154       conftest$ac_exeext conftest.$ac_ext
21155 LIBS=$ac_check_lib_save_LIBS
21156 fi
21157 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
21158 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
21159 if test $ac_cv_lib_pthreads_pthread_create = yes; then
21160   PTHREAD_LIB="-lpthreads"
21161 else
21162   echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
21163 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
21164 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
21165   echo $ECHO_N "(cached) $ECHO_C" >&6
21166 else
21167   ac_check_lib_save_LIBS=$LIBS
21168 LIBS="-lc_r  $LIBS"
21169 cat >conftest.$ac_ext <<_ACEOF
21170 /* confdefs.h.  */
21171 _ACEOF
21172 cat confdefs.h >>conftest.$ac_ext
21173 cat >>conftest.$ac_ext <<_ACEOF
21174 /* end confdefs.h.  */
21175
21176 /* Override any gcc2 internal prototype to avoid an error.  */
21177 #ifdef __cplusplus
21178 extern "C"
21179 #endif
21180 /* We use char because int might match the return type of a gcc2
21181    builtin and then its argument prototype would still apply.  */
21182 char pthread_create ();
21183 int
21184 main ()
21185 {
21186 pthread_create ();
21187   ;
21188   return 0;
21189 }
21190 _ACEOF
21191 rm -f conftest.$ac_objext conftest$ac_exeext
21192 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21193   (eval $ac_link) 2>conftest.er1
21194   ac_status=$?
21195   grep -v '^ *+' conftest.er1 >conftest.err
21196   rm -f conftest.er1
21197   cat conftest.err >&5
21198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21199   (exit $ac_status); } &&
21200          { ac_try='test -z "$ac_c_werror_flag"
21201                          || test ! -s conftest.err'
21202   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21203   (eval $ac_try) 2>&5
21204   ac_status=$?
21205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21206   (exit $ac_status); }; } &&
21207          { ac_try='test -s conftest$ac_exeext'
21208   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21209   (eval $ac_try) 2>&5
21210   ac_status=$?
21211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21212   (exit $ac_status); }; }; then
21213   ac_cv_lib_c_r_pthread_create=yes
21214 else
21215   echo "$as_me: failed program was:" >&5
21216 sed 's/^/| /' conftest.$ac_ext >&5
21217
21218 ac_cv_lib_c_r_pthread_create=no
21219 fi
21220 rm -f conftest.err conftest.$ac_objext \
21221       conftest$ac_exeext conftest.$ac_ext
21222 LIBS=$ac_check_lib_save_LIBS
21223 fi
21224 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
21225 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
21226 if test $ac_cv_lib_c_r_pthread_create = yes; then
21227   PTHREAD_LIB="-lc_r"
21228 else
21229   echo "$as_me:$LINENO: checking for pthread_create" >&5
21230 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6
21231 if test "${ac_cv_func_pthread_create+set}" = set; then
21232   echo $ECHO_N "(cached) $ECHO_C" >&6
21233 else
21234   cat >conftest.$ac_ext <<_ACEOF
21235 /* confdefs.h.  */
21236 _ACEOF
21237 cat confdefs.h >>conftest.$ac_ext
21238 cat >>conftest.$ac_ext <<_ACEOF
21239 /* end confdefs.h.  */
21240 /* Define pthread_create to an innocuous variant, in case <limits.h> declares pthread_create.
21241    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21242 #define pthread_create innocuous_pthread_create
21243
21244 /* System header to define __stub macros and hopefully few prototypes,
21245     which can conflict with char pthread_create (); below.
21246     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21247     <limits.h> exists even on freestanding compilers.  */
21248
21249 #ifdef __STDC__
21250 # include <limits.h>
21251 #else
21252 # include <assert.h>
21253 #endif
21254
21255 #undef pthread_create
21256
21257 /* Override any gcc2 internal prototype to avoid an error.  */
21258 #ifdef __cplusplus
21259 extern "C"
21260 {
21261 #endif
21262 /* We use char because int might match the return type of a gcc2
21263    builtin and then its argument prototype would still apply.  */
21264 char pthread_create ();
21265 /* The GNU C library defines this for functions which it implements
21266     to always fail with ENOSYS.  Some functions are actually named
21267     something starting with __ and the normal name is an alias.  */
21268 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
21269 choke me
21270 #else
21271 char (*f) () = pthread_create;
21272 #endif
21273 #ifdef __cplusplus
21274 }
21275 #endif
21276
21277 int
21278 main ()
21279 {
21280 return f != pthread_create;
21281   ;
21282   return 0;
21283 }
21284 _ACEOF
21285 rm -f conftest.$ac_objext conftest$ac_exeext
21286 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21287   (eval $ac_link) 2>conftest.er1
21288   ac_status=$?
21289   grep -v '^ *+' conftest.er1 >conftest.err
21290   rm -f conftest.er1
21291   cat conftest.err >&5
21292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21293   (exit $ac_status); } &&
21294          { ac_try='test -z "$ac_c_werror_flag"
21295                          || test ! -s conftest.err'
21296   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21297   (eval $ac_try) 2>&5
21298   ac_status=$?
21299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21300   (exit $ac_status); }; } &&
21301          { ac_try='test -s conftest$ac_exeext'
21302   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21303   (eval $ac_try) 2>&5
21304   ac_status=$?
21305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21306   (exit $ac_status); }; }; then
21307   ac_cv_func_pthread_create=yes
21308 else
21309   echo "$as_me: failed program was:" >&5
21310 sed 's/^/| /' conftest.$ac_ext >&5
21311
21312 ac_cv_func_pthread_create=no
21313 fi
21314 rm -f conftest.err conftest.$ac_objext \
21315       conftest$ac_exeext conftest.$ac_ext
21316 fi
21317 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
21318 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6
21319
21320
21321 fi
21322
21323
21324 fi
21325
21326
21327 fi
21328
21329
21330
21331 cat >>confdefs.h <<\_ACEOF
21332 #define FDLIBS 1
21333 _ACEOF
21334
21335
21336
21337 CFLAGS=${CFLAGS--O}
21338 LDFLAGS=${LDFLAGS--O}
21339 DB_LIBS="${SQL_LFLAGS}"
21340
21341 CPPFLAGS="$CPPFLAGS"
21342
21343
21344
21345
21346
21347
21348
21349
21350
21351
21352
21353
21354
21355
21356
21357 OBJLIST=
21358
21359
21360 lld="lld"
21361 llu="llu"
21362
21363 WCFLAGS=
21364 WLDFLAGS=
21365
21366 #
21367 # Finally we set appropriate distribution specific
21368 #  variables and defaults
21369 #
21370 # PFILES are platform specific files
21371 PFILES="platforms/Makefile"
21372 PSCMD="ps -e"
21373 WIN32=
21374 MACOSX=
21375 hostname=`uname -n | cut -d '.' -f 1`
21376 case "$DISTNAME" in
21377 aix)
21378         DISTVER=`uname -r`
21379         PSCMD="ps -e -o pid,comm"
21380         PFILES="${PFILES} \
21381            platforms/aix/Makefile"
21382         TAPEDRIVE="/dev/rmt0.1"
21383   ;;
21384 alpha)
21385         DISTVER=`uname -r`
21386         PTHREAD_LIB="-lpthread -lexc"
21387         if test "${CC}" = "gcc" ; then
21388            lld="lld"
21389            llu="llu"
21390         else
21391            lld="ld"
21392            llu="lu"
21393         fi
21394         TAPEDRIVE="/dev/nrmt0"
21395   ;;
21396 bsdi)
21397         DISTVER=`uname -a |awk '{print $3}'`
21398         TAPEDRIVE="/dev/nrmt0"
21399         PTHREAD_LIB="-pthread"
21400         CFLAGS="${CFLAGS} -pthread"
21401         PSCMD="ps -ax -o pid,command"
21402         lld="qd"
21403         llu="qu"
21404         PFILES="${PFILES} \
21405             platforms/bsdi/Makefile \
21406             platforms/bsdi/bacula-fd \
21407             platforms/bsdi/bacula-sd \
21408             platforms/bsdi/bacula-dir"
21409         largefile_support="yes"
21410   ;;
21411 cygwin)
21412         DISTVER=`uname -a |awk '{print $3}'`
21413         TAPEDRIVE="/dev/nrst0"
21414         WIN32=win32
21415         WCFLAGS="-mwindows"
21416         WLDFLAGS="-mwindows"
21417   ;;
21418 darwin)
21419         DISTVER=`uname -r`
21420         TAPEDRIVE="/dev/nst0"
21421         PSCMD="ps -e -o pid,command"
21422         MACOSX=macosx
21423         PFILES="${PFILES} \
21424            platforms/darwin/Makefile"
21425   ;;
21426 debian)
21427         DISTVER=`cat /etc/debian_version`
21428         TAPEDRIVE="/dev/nrst0"
21429         PSCMD="ps -e -o pid,command"
21430   ;;
21431 freebsd)
21432         DISTVER=`uname -a |awk '{print $3}'`
21433         VER=`echo $DISTVER | cut -c 1`
21434         if test x$VER = x4 ; then
21435            PTHREAD_LIB="-pthread"
21436            CFLAGS="${CFLAGS} -pthread"
21437         fi
21438         lld="qd"
21439         llu="qu"
21440         TAPEDRIVE="/dev/nrsa0"
21441         PSCMD="ps -ax -o pid,command"
21442         PFILES="${PFILES} \
21443             platforms/freebsd/Makefile \
21444             platforms/freebsd/bacula-fd \
21445             platforms/freebsd/bacula-sd \
21446             platforms/freebsd/bacula-dir"
21447         largefile_support="yes"
21448   ;;
21449 hpux)
21450         PSCMD="UNIX95=1 ps -e -o pid,comm"
21451         CFLAGS="$(CFLAGS) -D_XOPEN_SOURCE_EXTENDED=1"
21452         DISTVER=`uname -r`
21453         TAPEDRIVE="/dev/rmt/0hnb"
21454         PTHREAD_LIB="-lpthread"
21455         cat >>confdefs.h <<\_ACEOF
21456 #define _INCLUDE_LONGLONG 1
21457 _ACEOF
21458
21459   ;;
21460 irix)
21461         DISTVER=`uname -r`
21462         TAPEDRIVE="/dev/rmt/0cbn"
21463         PSCMD="ps -e -o pid,comm"
21464         PFILES="${PFILES} \
21465             platforms/irix/Makefile \
21466             platforms/irix/bacula-fd \
21467             platforms/irix/bacula-sd \
21468             platforms/irix/bacula-dir"
21469   ;;
21470 netbsd)
21471         DISTVER=`uname -a |awk '{print $3}'`
21472         lld="qd"
21473         llu="qu"
21474         TAPEDRIVE="/dev/nrst0"
21475         PSCMD="ps -ax -o pid,command"
21476         PTHREAD_LIB="-pthread"
21477         CFLAGS="${CFLAGS} -pthread"
21478   ;;
21479 openbsd)
21480         DISTVER=`uname -a |awk '{print $3}'`
21481         lld="qd"
21482         llu="qu"
21483         TAPEDRIVE="/dev/nrst0"
21484         PSCMD="ps -ax -o pid,command"
21485         PTHREAD_LIB="-pthread"
21486         CFLAGS="${CFLAGS} -pthread"
21487         PFILES="${PFILES} \
21488             platforms/openbsd/Makefile \
21489             platforms/openbsd/bacula-fd \
21490             platforms/openbsd/bacula-sd \
21491             platforms/openbsd/bacula-dir"
21492   ;;
21493 redhat)
21494         if test -f /etc/whitebox-release ; then
21495            f=/etc/whitebox-release
21496         else
21497            f=/etc/redhat-release
21498         fi
21499         if test `cat $f | grep release |\
21500                    cut -f 3 -d ' '`x = "Enterprise"x ; then
21501            DISTVER="Enterprise "`cat $f | grep release |\
21502                     cut -f 6 -d ' '`
21503         else
21504             DISTVER=`cat /etc/redhat-release | grep release |\
21505                      cut -f 5 -d ' '`
21506         fi
21507         TAPEDRIVE="/dev/nst0"
21508         PSCMD="ps -e -o pid,command"
21509         PFILES="${PFILES} \
21510             platforms/redhat/Makefile \
21511             platforms/redhat/bacula-fd \
21512             platforms/redhat/bacula-sd \
21513             platforms/redhat/bacula-dir \
21514             platforms/redhat/bacula.spec \
21515             "
21516         hostname=`hostname -s`
21517   ;;
21518 mandrake)
21519         DISTVER=`cat /etc/mandrake-release | grep release |\
21520            cut -f 5 -d ' '`
21521         TAPEDRIVE="/dev/nst0"
21522         PSCMD="ps -e -o pid,command"
21523         PFILES="${PFILES} \
21524             platforms/mandrake/Makefile \
21525             platforms/mandrake/bacula-fd \
21526             platforms/mandrake/bacula-sd \
21527             platforms/mandrake/bacula-dir \
21528             platforms/mandrake/bacula.spec \
21529             "
21530   ;;
21531 gentoo)
21532         DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
21533         TAPEDRIVE="/dev/nst0"
21534         PSCMD="ps -e -o pid,command"
21535         PFILES="${PFILES} \
21536             platforms/gentoo/Makefile \
21537          platforms/gentoo/bacula-init \
21538             platforms/gentoo/bacula-fd \
21539             platforms/gentoo/bacula-sd \
21540             platforms/gentoo/bacula-dir"
21541   ;;
21542 slackware)
21543         DISTVER=`cat /etc/slackware-version`
21544         TAPEDRIVE="/dev/nst0"
21545         PSCMD="ps -e -o pid,command"
21546         PFILES="${PFILES} \
21547             platforms/slackware/Makefile \
21548             platforms/slackware/rc.bacula-fd \
21549             platforms/slackware/rc.bacula-sd \
21550             platforms/slackware/rc.bacula-dir\
21551             platforms/slackware/functions.bacula"
21552   ;;
21553 solaris)
21554         DISTVER=`uname -r`
21555         TAPEDRIVE="/dev/rmt/0cbn"
21556         PSCMD="ps -e -o pid,comm"
21557         PFILES="${PFILES} \
21558             platforms/solaris/Makefile \
21559             platforms/solaris/bacula-fd \
21560             platforms/solaris/bacula-sd \
21561             platforms/solaris/bacula-dir"
21562         if test x$DISTVER = x5.6 ; then
21563             cat >>confdefs.h <<\_ACEOF
21564 #define HAVE_OLD_SOCKOPT 1
21565 _ACEOF
21566
21567         fi
21568         LIBS="$LIBS -lresolv"
21569   ;;
21570 suse)
21571         DISTVER=`cat /etc/SuSE-release |grep VERSION|\
21572             cut -f 3 -d ' '`
21573         TAPEDRIVE="/dev/nst0"
21574         PSCMD="ps -e -o pid,command"
21575         PFILES="${PFILES} \
21576             platforms/suse/Makefile \
21577             platforms/suse/bacula-fd \
21578             platforms/suse/bacula-sd \
21579             platforms/suse/bacula-dir \
21580             platforms/suse/bacula \
21581             platforms/suse/bacula.spec"
21582   ;;
21583 suse5)
21584         DISTNAME=suse
21585         DISTVER=5.x
21586         TAPEDRIVE="/dev/nst0"
21587         PSCMD="ps -e -o pid,command"
21588         PFILES="${PFILES} \
21589             platforms/suse/Makefile \
21590             platforms/suse/bacula-fd \
21591             platforms/suse/bacula-sd \
21592             platforms/suse/bacula-dir"
21593   ;;
21594 unknown)
21595         DISTVER=unknown
21596         TAPEDRIVE="/dev/nst0"
21597   ;;
21598 *)
21599   echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
21600   ;;
21601 esac
21602
21603
21604
21605 LIBS="$PTHREAD_LIB $LIBS"
21606
21607 cat >>confdefs.h <<_ACEOF
21608 #define lld "$lld"
21609 _ACEOF
21610
21611 cat >>confdefs.h <<_ACEOF
21612 #define llu "$llu"
21613 _ACEOF
21614
21615
21616
21617
21618
21619
21620
21621
21622 MCOMMON=./autoconf/Make.common
21623
21624
21625 if test "x${subsysdir}" = "x${sbindir}" ; then
21626    echo " "
21627    echo " "
21628    echo "You have set both --sbindir and --with-subsys-dir"
21629    echo "  equal to: ${subsysdir} "
21630    echo "This is not permitted. Please reconfigure."
21631    echo " "
21632    echo "Aborting configuration ..."
21633    echo " "
21634    echo " "
21635    exit 1
21636 fi
21637
21638                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       ac_config_files="$ac_config_files autoconf/Make.common 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 src/Makefile src/host.h src/console/Makefile src/console/bconsole.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 po/Makefile.in $PFILES"
21639           ac_config_commands="$ac_config_commands default"
21640 cat >confcache <<\_ACEOF
21641 # This file is a shell script that caches the results of configure
21642 # tests run on this system so they can be shared between configure
21643 # scripts and configure runs, see configure's option --config-cache.
21644 # It is not useful on other systems.  If it contains results you don't
21645 # want to keep, you may remove or edit it.
21646 #
21647 # config.status only pays attention to the cache file if you give it
21648 # the --recheck option to rerun configure.
21649 #
21650 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21651 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21652 # following values.
21653
21654 _ACEOF
21655
21656 # The following way of writing the cache mishandles newlines in values,
21657 # but we know of no workaround that is simple, portable, and efficient.
21658 # So, don't put newlines in cache variables' values.
21659 # Ultrix sh set writes to stderr and can't be redirected directly,
21660 # and sets the high bit in the cache file unless we assign to the vars.
21661 {
21662   (set) 2>&1 |
21663     case `(ac_space=' '; set | grep ac_space) 2>&1` in
21664     *ac_space=\ *)
21665       # `set' does not quote correctly, so add quotes (double-quote
21666       # substitution turns \\\\ into \\, and sed turns \\ into \).
21667       sed -n \
21668         "s/'/'\\\\''/g;
21669           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21670       ;;
21671     *)
21672       # `set' quotes correctly as required by POSIX, so do not add quotes.
21673       sed -n \
21674         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
21675       ;;
21676     esac;
21677 } |
21678   sed '
21679      t clear
21680      : clear
21681      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21682      t end
21683      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21684      : end' >>confcache
21685 if diff $cache_file confcache >/dev/null 2>&1; then :; else
21686   if test -w $cache_file; then
21687     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21688     cat confcache >$cache_file
21689   else
21690     echo "not updating unwritable cache $cache_file"
21691   fi
21692 fi
21693 rm -f confcache
21694
21695 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21696 # Let make expand exec_prefix.
21697 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21698
21699 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21700 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21701 # trailing colons and then remove the whole line if VPATH becomes empty
21702 # (actually we leave an empty line to preserve line numbers).
21703 if test "x$srcdir" = x.; then
21704   ac_vpsub='/^[  ]*VPATH[        ]*=/{
21705 s/:*\$(srcdir):*/:/;
21706 s/:*\${srcdir}:*/:/;
21707 s/:*@srcdir@:*/:/;
21708 s/^\([^=]*=[     ]*\):*/\1/;
21709 s/:*$//;
21710 s/^[^=]*=[       ]*$//;
21711 }'
21712 fi
21713
21714 DEFS=-DHAVE_CONFIG_H
21715
21716 ac_libobjs=
21717 ac_ltlibobjs=
21718 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21719   # 1. Remove the extension, and $U if already installed.
21720   ac_i=`echo "$ac_i" |
21721          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
21722   # 2. Add them.
21723   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
21724   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
21725 done
21726 LIBOBJS=$ac_libobjs
21727
21728 LTLIBOBJS=$ac_ltlibobjs
21729
21730
21731
21732 : ${CONFIG_STATUS=./config.status}
21733 ac_clean_files_save=$ac_clean_files
21734 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21735 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21736 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21737 cat >$CONFIG_STATUS <<_ACEOF
21738 #! $SHELL
21739 # Generated by $as_me.
21740 # Run this file to recreate the current configuration.
21741 # Compiler output produced by configure, useful for debugging
21742 # configure, is in config.log if it exists.
21743
21744 debug=false
21745 ac_cs_recheck=false
21746 ac_cs_silent=false
21747 SHELL=\${CONFIG_SHELL-$SHELL}
21748 _ACEOF
21749
21750 cat >>$CONFIG_STATUS <<\_ACEOF
21751 ## --------------------- ##
21752 ## M4sh Initialization.  ##
21753 ## --------------------- ##
21754
21755 # Be Bourne compatible
21756 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21757   emulate sh
21758   NULLCMD=:
21759   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21760   # is contrary to our usage.  Disable this feature.
21761   alias -g '${1+"$@"}'='"$@"'
21762 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21763   set -o posix
21764 fi
21765 DUALCASE=1; export DUALCASE # for MKS sh
21766
21767 # Support unset when possible.
21768 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21769   as_unset=unset
21770 else
21771   as_unset=false
21772 fi
21773
21774
21775 # Work around bugs in pre-3.0 UWIN ksh.
21776 $as_unset ENV MAIL MAILPATH
21777 PS1='$ '
21778 PS2='> '
21779 PS4='+ '
21780
21781 # NLS nuisances.
21782 for as_var in \
21783   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21784   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21785   LC_TELEPHONE LC_TIME
21786 do
21787   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21788     eval $as_var=C; export $as_var
21789   else
21790     $as_unset $as_var
21791   fi
21792 done
21793
21794 # Required to use basename.
21795 if expr a : '\(a\)' >/dev/null 2>&1; then
21796   as_expr=expr
21797 else
21798   as_expr=false
21799 fi
21800
21801 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
21802   as_basename=basename
21803 else
21804   as_basename=false
21805 fi
21806
21807
21808 # Name of the executable.
21809 as_me=`$as_basename "$0" ||
21810 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21811          X"$0" : 'X\(//\)$' \| \
21812          X"$0" : 'X\(/\)$' \| \
21813          .     : '\(.\)' 2>/dev/null ||
21814 echo X/"$0" |
21815     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
21816           /^X\/\(\/\/\)$/{ s//\1/; q; }
21817           /^X\/\(\/\).*/{ s//\1/; q; }
21818           s/.*/./; q'`
21819
21820
21821 # PATH needs CR, and LINENO needs CR and PATH.
21822 # Avoid depending upon Character Ranges.
21823 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21824 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21825 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21826 as_cr_digits='0123456789'
21827 as_cr_alnum=$as_cr_Letters$as_cr_digits
21828
21829 # The user is always right.
21830 if test "${PATH_SEPARATOR+set}" != set; then
21831   echo "#! /bin/sh" >conf$$.sh
21832   echo  "exit 0"   >>conf$$.sh
21833   chmod +x conf$$.sh
21834   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21835     PATH_SEPARATOR=';'
21836   else
21837     PATH_SEPARATOR=:
21838   fi
21839   rm -f conf$$.sh
21840 fi
21841
21842
21843   as_lineno_1=$LINENO
21844   as_lineno_2=$LINENO
21845   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21846   test "x$as_lineno_1" != "x$as_lineno_2" &&
21847   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
21848   # Find who we are.  Look in the path if we contain no path at all
21849   # relative or not.
21850   case $0 in
21851     *[\\/]* ) as_myself=$0 ;;
21852     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21853 for as_dir in $PATH
21854 do
21855   IFS=$as_save_IFS
21856   test -z "$as_dir" && as_dir=.
21857   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21858 done
21859
21860        ;;
21861   esac
21862   # We did not find ourselves, most probably we were run as `sh COMMAND'
21863   # in which case we are not to be found in the path.
21864   if test "x$as_myself" = x; then
21865     as_myself=$0
21866   fi
21867   if test ! -f "$as_myself"; then
21868     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
21869 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
21870    { (exit 1); exit 1; }; }
21871   fi
21872   case $CONFIG_SHELL in
21873   '')
21874     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21875 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
21876 do
21877   IFS=$as_save_IFS
21878   test -z "$as_dir" && as_dir=.
21879   for as_base in sh bash ksh sh5; do
21880          case $as_dir in
21881          /*)
21882            if ("$as_dir/$as_base" -c '
21883   as_lineno_1=$LINENO
21884   as_lineno_2=$LINENO
21885   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21886   test "x$as_lineno_1" != "x$as_lineno_2" &&
21887   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
21888              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
21889              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
21890              CONFIG_SHELL=$as_dir/$as_base
21891              export CONFIG_SHELL
21892              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
21893            fi;;
21894          esac
21895        done
21896 done
21897 ;;
21898   esac
21899
21900   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21901   # uniformly replaced by the line number.  The first 'sed' inserts a
21902   # line-number line before each line; the second 'sed' does the real
21903   # work.  The second script uses 'N' to pair each line-number line
21904   # with the numbered line, and appends trailing '-' during
21905   # substitution so that $LINENO is not a special case at line end.
21906   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21907   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
21908   sed '=' <$as_myself |
21909     sed '
21910       N
21911       s,$,-,
21912       : loop
21913       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
21914       t loop
21915       s,-$,,
21916       s,^['$as_cr_digits']*\n,,
21917     ' >$as_me.lineno &&
21918   chmod +x $as_me.lineno ||
21919     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
21920 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
21921    { (exit 1); exit 1; }; }
21922
21923   # Don't try to exec as it changes $[0], causing all sort of problems
21924   # (the dirname of $[0] is not the place where we might find the
21925   # original and so on.  Autoconf is especially sensible to this).
21926   . ./$as_me.lineno
21927   # Exit status is that of the last command.
21928   exit
21929 }
21930
21931
21932 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
21933   *c*,-n*) ECHO_N= ECHO_C='
21934 ' ECHO_T='      ' ;;
21935   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
21936   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
21937 esac
21938
21939 if expr a : '\(a\)' >/dev/null 2>&1; then
21940   as_expr=expr
21941 else
21942   as_expr=false
21943 fi
21944
21945 rm -f conf$$ conf$$.exe conf$$.file
21946 echo >conf$$.file
21947 if ln -s conf$$.file conf$$ 2>/dev/null; then
21948   # We could just check for DJGPP; but this test a) works b) is more generic
21949   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
21950   if test -f conf$$.exe; then
21951     # Don't use ln at all; we don't have any links
21952     as_ln_s='cp -p'
21953   else
21954     as_ln_s='ln -s'
21955   fi
21956 elif ln conf$$.file conf$$ 2>/dev/null; then
21957   as_ln_s=ln
21958 else
21959   as_ln_s='cp -p'
21960 fi
21961 rm -f conf$$ conf$$.exe conf$$.file
21962
21963 if mkdir -p . 2>/dev/null; then
21964   as_mkdir_p=:
21965 else
21966   test -d ./-p && rmdir ./-p
21967   as_mkdir_p=false
21968 fi
21969
21970 as_executable_p="test -f"
21971
21972 # Sed expression to map a string onto a valid CPP name.
21973 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21974
21975 # Sed expression to map a string onto a valid variable name.
21976 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21977
21978
21979 # IFS
21980 # We need space, tab and new line, in precisely that order.
21981 as_nl='
21982 '
21983 IFS="   $as_nl"
21984
21985 # CDPATH.
21986 $as_unset CDPATH
21987
21988 exec 6>&1
21989
21990 # Open the log real soon, to keep \$[0] and so on meaningful, and to
21991 # report actual input values of CONFIG_FILES etc. instead of their
21992 # values after options handling.  Logging --version etc. is OK.
21993 exec 5>>config.log
21994 {
21995   echo
21996   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21997 ## Running $as_me. ##
21998 _ASBOX
21999 } >&5
22000 cat >&5 <<_CSEOF
22001
22002 This file was extended by $as_me, which was
22003 generated by GNU Autoconf 2.59.  Invocation command line was
22004
22005   CONFIG_FILES    = $CONFIG_FILES
22006   CONFIG_HEADERS  = $CONFIG_HEADERS
22007   CONFIG_LINKS    = $CONFIG_LINKS
22008   CONFIG_COMMANDS = $CONFIG_COMMANDS
22009   $ $0 $@
22010
22011 _CSEOF
22012 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
22013 echo >&5
22014 _ACEOF
22015
22016 # Files that config.status was made for.
22017 if test -n "$ac_config_files"; then
22018   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22019 fi
22020
22021 if test -n "$ac_config_headers"; then
22022   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22023 fi
22024
22025 if test -n "$ac_config_links"; then
22026   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
22027 fi
22028
22029 if test -n "$ac_config_commands"; then
22030   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22031 fi
22032
22033 cat >>$CONFIG_STATUS <<\_ACEOF
22034
22035 ac_cs_usage="\
22036 \`$as_me' instantiates files from templates according to the
22037 current configuration.
22038
22039 Usage: $0 [OPTIONS] [FILE]...
22040
22041   -h, --help       print this help, then exit
22042   -V, --version    print version number, then exit
22043   -q, --quiet      do not print progress messages
22044   -d, --debug      don't remove temporary files
22045       --recheck    update $as_me by reconfiguring in the same conditions
22046   --file=FILE[:TEMPLATE]
22047                    instantiate the configuration file FILE
22048   --header=FILE[:TEMPLATE]
22049                    instantiate the configuration header FILE
22050
22051 Configuration files:
22052 $config_files
22053
22054 Configuration headers:
22055 $config_headers
22056
22057 Configuration commands:
22058 $config_commands
22059
22060 Report bugs to <bug-autoconf@gnu.org>."
22061 _ACEOF
22062
22063 cat >>$CONFIG_STATUS <<_ACEOF
22064 ac_cs_version="\\
22065 config.status
22066 configured by $0, generated by GNU Autoconf 2.59,
22067   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22068
22069 Copyright (C) 2003 Free Software Foundation, Inc.
22070 This config.status script is free software; the Free Software Foundation
22071 gives unlimited permission to copy, distribute and modify it."
22072 srcdir=$srcdir
22073 INSTALL="$INSTALL"
22074 _ACEOF
22075
22076 cat >>$CONFIG_STATUS <<\_ACEOF
22077 # If no file are specified by the user, then we need to provide default
22078 # value.  By we need to know if files were specified by the user.
22079 ac_need_defaults=:
22080 while test $# != 0
22081 do
22082   case $1 in
22083   --*=*)
22084     ac_option=`expr "x$1" : 'x\([^=]*\)='`
22085     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
22086     ac_shift=:
22087     ;;
22088   -*)
22089     ac_option=$1
22090     ac_optarg=$2
22091     ac_shift=shift
22092     ;;
22093   *) # This is not an option, so the user has probably given explicit
22094      # arguments.
22095      ac_option=$1
22096      ac_need_defaults=false;;
22097   esac
22098
22099   case $ac_option in
22100   # Handling of the options.
22101 _ACEOF
22102 cat >>$CONFIG_STATUS <<\_ACEOF
22103   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22104     ac_cs_recheck=: ;;
22105   --version | --vers* | -V )
22106     echo "$ac_cs_version"; exit 0 ;;
22107   --he | --h)
22108     # Conflict between --help and --header
22109     { { echo "$as_me:$LINENO: error: ambiguous option: $1
22110 Try \`$0 --help' for more information." >&5
22111 echo "$as_me: error: ambiguous option: $1
22112 Try \`$0 --help' for more information." >&2;}
22113    { (exit 1); exit 1; }; };;
22114   --help | --hel | -h )
22115     echo "$ac_cs_usage"; exit 0 ;;
22116   --debug | --d* | -d )
22117     debug=: ;;
22118   --file | --fil | --fi | --f )
22119     $ac_shift
22120     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22121     ac_need_defaults=false;;
22122   --header | --heade | --head | --hea )
22123     $ac_shift
22124     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22125     ac_need_defaults=false;;
22126   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22127   | -silent | --silent | --silen | --sile | --sil | --si | --s)
22128     ac_cs_silent=: ;;
22129
22130   # This is an error.
22131   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22132 Try \`$0 --help' for more information." >&5
22133 echo "$as_me: error: unrecognized option: $1
22134 Try \`$0 --help' for more information." >&2;}
22135    { (exit 1); exit 1; }; } ;;
22136
22137   *) ac_config_targets="$ac_config_targets $1" ;;
22138
22139   esac
22140   shift
22141 done
22142
22143 ac_configure_extra_args=
22144
22145 if $ac_cs_silent; then
22146   exec 6>/dev/null
22147   ac_configure_extra_args="$ac_configure_extra_args --silent"
22148 fi
22149
22150 _ACEOF
22151 cat >>$CONFIG_STATUS <<_ACEOF
22152 if \$ac_cs_recheck; then
22153   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22154   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22155 fi
22156
22157 _ACEOF
22158
22159
22160
22161
22162
22163 cat >>$CONFIG_STATUS <<\_ACEOF
22164 for ac_config_target in $ac_config_targets
22165 do
22166   case "$ac_config_target" in
22167   # Handling of arguments.
22168   "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
22169   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22170   "scripts/startmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
22171   "scripts/stopmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
22172   "scripts/btraceback" ) CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
22173   "scripts/startit" ) CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
22174   "scripts/stopit" ) CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
22175   "scripts/bconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
22176   "scripts/gconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
22177   "scripts/bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
22178   "scripts/devel_bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
22179   "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
22180   "scripts/logrotate" ) CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
22181   "scripts/bacula.desktop.gnome1" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
22182   "scripts/bacula.desktop.gnome2" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
22183   "scripts/bacula.desktop.gnome1.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
22184   "scripts/bacula.desktop.gnome2.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
22185   "scripts/bacula.desktop.gnome1.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
22186   "scripts/bacula.desktop.gnome2.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
22187   "scripts/gnome-console.console_apps" ) CONFIG_FILES="$CONFIG_FILES scripts/gnome-console.console_apps" ;;
22188   "scripts/mtx-changer" ) CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
22189   "scripts/dvd-writepart" ) CONFIG_FILES="$CONFIG_FILES scripts/dvd-writepart" ;;
22190   "scripts/dvd-freespace" ) CONFIG_FILES="$CONFIG_FILES scripts/dvd-freespace" ;;
22191   "scripts/bacula-tray-monitor.desktop" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
22192   "scripts/logwatch/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
22193   "scripts/logwatch/logfile.bacula.conf" ) CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
22194   "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
22195   "src/host.h" ) CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
22196   "src/console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
22197   "src/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
22198   "src/gnome2-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
22199   "src/gnome2-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/gnome-console.conf" ;;
22200   "src/wx-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
22201   "src/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/wx-console.conf" ;;
22202   "src/tray-monitor/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
22203   "src/tray-monitor/tray-monitor.conf" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
22204   "src/dird/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
22205   "src/dird/bacula-dir.conf" ) CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
22206   "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
22207   "src/stored/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
22208   "src/stored/bacula-sd.conf" ) CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
22209   "src/filed/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
22210   "src/filed/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
22211   "src/filed/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/win32/Makefile" ;;
22212   "src/cats/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
22213   "src/cats/make_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
22214   "src/cats/delete_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
22215   "src/cats/create_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
22216   "src/cats/update_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
22217   "src/cats/make_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
22218   "src/cats/grant_postgresql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
22219   "src/cats/drop_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
22220   "src/cats/drop_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
22221   "src/cats/create_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
22222   "src/cats/update_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
22223   "src/cats/make_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
22224   "src/cats/grant_mysql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
22225   "src/cats/drop_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
22226   "src/cats/drop_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
22227   "src/cats/create_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
22228   "src/cats/update_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
22229   "src/cats/make_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
22230   "src/cats/grant_sqlite_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
22231   "src/cats/drop_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
22232   "src/cats/drop_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
22233   "src/cats/create_sqlite3_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
22234   "src/cats/update_sqlite3_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
22235   "src/cats/make_sqlite3_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
22236   "src/cats/grant_sqlite3_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
22237   "src/cats/drop_sqlite3_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
22238   "src/cats/drop_sqlite3_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
22239   "src/cats/sqlite" ) CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
22240   "src/cats/mysql" ) CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
22241   "src/cats/create_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
22242   "src/cats/update_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
22243   "src/cats/make_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
22244   "src/cats/grant_bdb_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
22245   "src/cats/drop_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
22246   "src/cats/drop_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
22247   "src/cats/create_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
22248   "src/cats/update_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
22249   "src/cats/grant_bacula_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
22250   "src/cats/make_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
22251   "src/cats/drop_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
22252   "src/cats/drop_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
22253   "src/findlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
22254   "src/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
22255   "src/win32/winbacula.nsi" ) CONFIG_FILES="$CONFIG_FILES src/win32/winbacula.nsi" ;;
22256   "src/win32/baculafd/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/baculafd/bacula-fd.conf" ;;
22257   "src/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/win32/Makefile" ;;
22258   "src/win32/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/console/bconsole.conf" ;;
22259   "src/win32/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/wx-console/wx-console.conf" ;;
22260   "src/win32/pebuilder/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/win32/pebuilder/Makefile" ;;
22261   "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
22262   "$PFILES" ) CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
22263   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
22264   "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
22265   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22266 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22267    { (exit 1); exit 1; }; };;
22268   esac
22269 done
22270
22271 # If the user did not use the arguments to specify the items to instantiate,
22272 # then the envvar interface is used.  Set only those that are not.
22273 # We use the long form for the default assignment because of an extremely
22274 # bizarre bug on SunOS 4.1.3.
22275 if $ac_need_defaults; then
22276   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22277   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22278   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22279 fi
22280
22281 # Have a temporary directory for convenience.  Make it in the build tree
22282 # simply because there is no reason to put it here, and in addition,
22283 # creating and moving files from /tmp can sometimes cause problems.
22284 # Create a temporary directory, and hook for its removal unless debugging.
22285 $debug ||
22286 {
22287   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22288   trap '{ (exit 1); exit 1; }' 1 2 13 15
22289 }
22290
22291 # Create a (secure) tmp directory for tmp files.
22292
22293 {
22294   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22295   test -n "$tmp" && test -d "$tmp"
22296 }  ||
22297 {
22298   tmp=./confstat$$-$RANDOM
22299   (umask 077 && mkdir $tmp)
22300 } ||
22301 {
22302    echo "$me: cannot create a temporary directory in ." >&2
22303    { (exit 1); exit 1; }
22304 }
22305
22306 _ACEOF
22307
22308 cat >>$CONFIG_STATUS <<_ACEOF
22309
22310 #
22311 # CONFIG_FILES section.
22312 #
22313
22314 # No need to generate the scripts if there are no CONFIG_FILES.
22315 # This happens for instance when ./config.status config.h
22316 if test -n "\$CONFIG_FILES"; then
22317   # Protect against being on the right side of a sed subst in config.status.
22318   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22319    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22320 s,@SHELL@,$SHELL,;t t
22321 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22322 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22323 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22324 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22325 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22326 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22327 s,@exec_prefix@,$exec_prefix,;t t
22328 s,@prefix@,$prefix,;t t
22329 s,@program_transform_name@,$program_transform_name,;t t
22330 s,@bindir@,$bindir,;t t
22331 s,@sbindir@,$sbindir,;t t
22332 s,@libexecdir@,$libexecdir,;t t
22333 s,@datadir@,$datadir,;t t
22334 s,@sysconfdir@,$sysconfdir,;t t
22335 s,@sharedstatedir@,$sharedstatedir,;t t
22336 s,@localstatedir@,$localstatedir,;t t
22337 s,@libdir@,$libdir,;t t
22338 s,@includedir@,$includedir,;t t
22339 s,@oldincludedir@,$oldincludedir,;t t
22340 s,@infodir@,$infodir,;t t
22341 s,@mandir@,$mandir,;t t
22342 s,@build_alias@,$build_alias,;t t
22343 s,@host_alias@,$host_alias,;t t
22344 s,@target_alias@,$target_alias,;t t
22345 s,@DEFS@,$DEFS,;t t
22346 s,@ECHO_C@,$ECHO_C,;t t
22347 s,@ECHO_N@,$ECHO_N,;t t
22348 s,@ECHO_T@,$ECHO_T,;t t
22349 s,@LIBS@,$LIBS,;t t
22350 s,@BUILD_DIR@,$BUILD_DIR,;t t
22351 s,@TRUEPRG@,$TRUEPRG,;t t
22352 s,@FALSEPRG@,$FALSEPRG,;t t
22353 s,@VERSION@,$VERSION,;t t
22354 s,@DATE@,$DATE,;t t
22355 s,@LSMDATE@,$LSMDATE,;t t
22356 s,@CC@,$CC,;t t
22357 s,@CFLAGS@,$CFLAGS,;t t
22358 s,@LDFLAGS@,$LDFLAGS,;t t
22359 s,@CPPFLAGS@,$CPPFLAGS,;t t
22360 s,@ac_ct_CC@,$ac_ct_CC,;t t
22361 s,@EXEEXT@,$EXEEXT,;t t
22362 s,@OBJEXT@,$OBJEXT,;t t
22363 s,@CXX@,$CXX,;t t
22364 s,@CXXFLAGS@,$CXXFLAGS,;t t
22365 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
22366 s,@CPP@,$CPP,;t t
22367 s,@EGREP@,$EGREP,;t t
22368 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22369 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22370 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22371 s,@RANLIB@,$RANLIB,;t t
22372 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22373 s,@MV@,$MV,;t t
22374 s,@RM@,$RM,;t t
22375 s,@CP@,$CP,;t t
22376 s,@SED@,$SED,;t t
22377 s,@ECHO@,$ECHO,;t t
22378 s,@CMP@,$CMP,;t t
22379 s,@TBL@,$TBL,;t t
22380 s,@AR@,$AR,;t t
22381 s,@OPENSSL@,$OPENSSL,;t t
22382 s,@MTX@,$MTX,;t t
22383 s,@DF@,$DF,;t t
22384 s,@MKISOFS@,$MKISOFS,;t t
22385 s,@PYTHON@,$PYTHON,;t t
22386 s,@GROWISOFS@,$GROWISOFS,;t t
22387 s,@DVDRWMEDIAINFO@,$DVDRWMEDIAINFO,;t t
22388 s,@PKGCONFIG@,$PKGCONFIG,;t t
22389 s,@WXCONFIG@,$WXCONFIG,;t t
22390 s,@WXFLAGS@,$WXFLAGS,;t t
22391 s,@CDRECORD@,$CDRECORD,;t t
22392 s,@PIDOF@,$PIDOF,;t t
22393 s,@AWK@,$AWK,;t t
22394 s,@ARFLAGS@,$ARFLAGS,;t t
22395 s,@MAKE_SHELL@,$MAKE_SHELL,;t t
22396 s,@LOCAL_LIBS@,$LOCAL_LIBS,;t t
22397 s,@LOCAL_CFLAGS@,$LOCAL_CFLAGS,;t t
22398 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
22399 s,@LOCAL_DEFS@,$LOCAL_DEFS,;t t
22400 s,@build@,$build,;t t
22401 s,@build_cpu@,$build_cpu,;t t
22402 s,@build_vendor@,$build_vendor,;t t
22403 s,@build_os@,$build_os,;t t
22404 s,@host@,$host,;t t
22405 s,@host_cpu@,$host_cpu,;t t
22406 s,@host_vendor@,$host_vendor,;t t
22407 s,@host_os@,$host_os,;t t
22408 s,@HAVE_SUN_OS_TRUE@,$HAVE_SUN_OS_TRUE,;t t
22409 s,@HAVE_SUN_OS_FALSE@,$HAVE_SUN_OS_FALSE,;t t
22410 s,@HAVE_OSF1_OS_TRUE@,$HAVE_OSF1_OS_TRUE,;t t
22411 s,@HAVE_OSF1_OS_FALSE@,$HAVE_OSF1_OS_FALSE,;t t
22412 s,@HAVE_AIX_OS_TRUE@,$HAVE_AIX_OS_TRUE,;t t
22413 s,@HAVE_AIX_OS_FALSE@,$HAVE_AIX_OS_FALSE,;t t
22414 s,@HAVE_HPUX_OS_TRUE@,$HAVE_HPUX_OS_TRUE,;t t
22415 s,@HAVE_HPUX_OS_FALSE@,$HAVE_HPUX_OS_FALSE,;t t
22416 s,@HAVE_LINUX_OS_TRUE@,$HAVE_LINUX_OS_TRUE,;t t
22417 s,@HAVE_LINUX_OS_FALSE@,$HAVE_LINUX_OS_FALSE,;t t
22418 s,@HAVE_FREEBSD_OS_TRUE@,$HAVE_FREEBSD_OS_TRUE,;t t
22419 s,@HAVE_FREEBSD_OS_FALSE@,$HAVE_FREEBSD_OS_FALSE,;t t
22420 s,@HAVE_NETBSD_OS_TRUE@,$HAVE_NETBSD_OS_TRUE,;t t
22421 s,@HAVE_NETBSD_OS_FALSE@,$HAVE_NETBSD_OS_FALSE,;t t
22422 s,@HAVE_OPENBSD_OS_TRUE@,$HAVE_OPENBSD_OS_TRUE,;t t
22423 s,@HAVE_OPENBSD_OS_FALSE@,$HAVE_OPENBSD_OS_FALSE,;t t
22424 s,@HAVE_BSDI_OS_TRUE@,$HAVE_BSDI_OS_TRUE,;t t
22425 s,@HAVE_BSDI_OS_FALSE@,$HAVE_BSDI_OS_FALSE,;t t
22426 s,@HAVE_SGI_OS_TRUE@,$HAVE_SGI_OS_TRUE,;t t
22427 s,@HAVE_SGI_OS_FALSE@,$HAVE_SGI_OS_FALSE,;t t
22428 s,@HAVE_IRIX_OS_TRUE@,$HAVE_IRIX_OS_TRUE,;t t
22429 s,@HAVE_IRIX_OS_FALSE@,$HAVE_IRIX_OS_FALSE,;t t
22430 s,@HAVE_DARWIN_OS_TRUE@,$HAVE_DARWIN_OS_TRUE,;t t
22431 s,@HAVE_DARWIN_OS_FALSE@,$HAVE_DARWIN_OS_FALSE,;t t
22432 s,@MSGFMT@,$MSGFMT,;t t
22433 s,@GNOME_INCLUDEDIR@,$GNOME_INCLUDEDIR,;t t
22434 s,@GNOMEUI_LIBS@,$GNOMEUI_LIBS,;t t
22435 s,@GNOME_LIBDIR@,$GNOME_LIBDIR,;t t
22436 s,@GNOME_LIBS@,$GNOME_LIBS,;t t
22437 s,@GNOME_DIR@,$GNOME_DIR,;t t
22438 s,@WXCONS_CPPFLAGS@,$WXCONS_CPPFLAGS,;t t
22439 s,@WXCONS_LDFLAGS@,$WXCONS_LDFLAGS,;t t
22440 s,@WX_DIR@,$WX_DIR,;t t
22441 s,@TRAY_MONITOR_CPPFLAGS@,$TRAY_MONITOR_CPPFLAGS,;t t
22442 s,@TRAY_MONITOR_LDFLAGS@,$TRAY_MONITOR_LDFLAGS,;t t
22443 s,@TRAY_MONITOR_DIR@,$TRAY_MONITOR_DIR,;t t
22444 s,@TTOOL_LDFLAGS@,$TTOOL_LDFLAGS,;t t
22445 s,@STATIC_FD@,$STATIC_FD,;t t
22446 s,@STATIC_SD@,$STATIC_SD,;t t
22447 s,@STATIC_DIR@,$STATIC_DIR,;t t
22448 s,@STATIC_CONS@,$STATIC_CONS,;t t
22449 s,@STATIC_GNOME_CONS@,$STATIC_GNOME_CONS,;t t
22450 s,@STATIC_WX_CONS@,$STATIC_WX_CONS,;t t
22451 s,@ALL_DIRS@,$ALL_DIRS,;t t
22452 s,@CONS_INC@,$CONS_INC,;t t
22453 s,@CONS_OBJ@,$CONS_OBJ,;t t
22454 s,@CONS_SRC@,$CONS_SRC,;t t
22455 s,@CONS_LIBS@,$CONS_LIBS,;t t
22456 s,@CONS_LDFLAGS@,$CONS_LDFLAGS,;t t
22457 s,@READLINE_SRC@,$READLINE_SRC,;t t
22458 s,@PYTHON_LIBS@,$PYTHON_LIBS,;t t
22459 s,@PYTHON_INCDIR@,$PYTHON_INCDIR,;t t
22460 s,@OPENSSL_LIBS@,$OPENSSL_LIBS,;t t
22461 s,@OPENSSL_INC@,$OPENSSL_INC,;t t
22462 s,@working_dir@,$working_dir,;t t
22463 s,@scriptdir@,$scriptdir,;t t
22464 s,@dump_email@,$dump_email,;t t
22465 s,@job_email@,$job_email,;t t
22466 s,@smtp_host@,$smtp_host,;t t
22467 s,@piddir@,$piddir,;t t
22468 s,@subsysdir@,$subsysdir,;t t
22469 s,@baseport@,$baseport,;t t
22470 s,@dir_port@,$dir_port,;t t
22471 s,@fd_port@,$fd_port,;t t
22472 s,@sd_port@,$sd_port,;t t
22473 s,@dir_password@,$dir_password,;t t
22474 s,@fd_password@,$fd_password,;t t
22475 s,@sd_password@,$sd_password,;t t
22476 s,@mon_dir_password@,$mon_dir_password,;t t
22477 s,@mon_fd_password@,$mon_fd_password,;t t
22478 s,@mon_sd_password@,$mon_sd_password,;t t
22479 s,@dir_user@,$dir_user,;t t
22480 s,@dir_group@,$dir_group,;t t
22481 s,@sd_user@,$sd_user,;t t
22482 s,@sd_group@,$sd_group,;t t
22483 s,@fd_user@,$fd_user,;t t
22484 s,@fd_group@,$fd_group,;t t
22485 s,@SBINPERM@,$SBINPERM,;t t
22486 s,@SQL_LFLAGS@,$SQL_LFLAGS,;t t
22487 s,@SQL_INCLUDE@,$SQL_INCLUDE,;t t
22488 s,@SQL_BINDIR@,$SQL_BINDIR,;t t
22489 s,@cats@,$cats,;t t
22490 s,@DB_NAME@,$DB_NAME,;t t
22491 s,@GETCONF@,$GETCONF,;t t
22492 s,@ac_ct_GETCONF@,$ac_ct_GETCONF,;t t
22493 s,@X_CFLAGS@,$X_CFLAGS,;t t
22494 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
22495 s,@X_LIBS@,$X_LIBS,;t t
22496 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
22497 s,@LIBOBJS@,$LIBOBJS,;t t
22498 s,@ALLOCA@,$ALLOCA,;t t
22499 s,@FDLIBS@,$FDLIBS,;t t
22500 s,@DEBUG@,$DEBUG,;t t
22501 s,@DINCLUDE@,$DINCLUDE,;t t
22502 s,@DLIB@,$DLIB,;t t
22503 s,@DB_LIBS@,$DB_LIBS,;t t
22504 s,@WCFLAGS@,$WCFLAGS,;t t
22505 s,@WLDFLAGS@,$WLDFLAGS,;t t
22506 s,@OBJLIST@,$OBJLIST,;t t
22507 s,@hostname@,$hostname,;t t
22508 s,@TAPEDRIVE@,$TAPEDRIVE,;t t
22509 s,@PSCMD@,$PSCMD,;t t
22510 s,@WIN32@,$WIN32,;t t
22511 s,@MACOSX@,$MACOSX,;t t
22512 s,@DISTNAME@,$DISTNAME,;t t
22513 s,@DISTVER@,$DISTVER,;t t
22514 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22515 /@MCOMMON@/r $MCOMMON
22516 s,@MCOMMON@,,;t t
22517 CEOF
22518
22519 _ACEOF
22520
22521   cat >>$CONFIG_STATUS <<\_ACEOF
22522   # Split the substitutions into bite-sized pieces for seds with
22523   # small command number limits, like on Digital OSF/1 and HP-UX.
22524   ac_max_sed_lines=48
22525   ac_sed_frag=1 # Number of current file.
22526   ac_beg=1 # First line for current file.
22527   ac_end=$ac_max_sed_lines # Line after last line for current file.
22528   ac_more_lines=:
22529   ac_sed_cmds=
22530   while $ac_more_lines; do
22531     if test $ac_beg -gt 1; then
22532       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22533     else
22534       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22535     fi
22536     if test ! -s $tmp/subs.frag; then
22537       ac_more_lines=false
22538     else
22539       # The purpose of the label and of the branching condition is to
22540       # speed up the sed processing (if there are no `@' at all, there
22541       # is no need to browse any of the substitutions).
22542       # These are the two extra sed commands mentioned above.
22543       (echo ':t
22544   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22545       if test -z "$ac_sed_cmds"; then
22546         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22547       else
22548         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22549       fi
22550       ac_sed_frag=`expr $ac_sed_frag + 1`
22551       ac_beg=$ac_end
22552       ac_end=`expr $ac_end + $ac_max_sed_lines`
22553     fi
22554   done
22555   if test -z "$ac_sed_cmds"; then
22556     ac_sed_cmds=cat
22557   fi
22558 fi # test -n "$CONFIG_FILES"
22559
22560 _ACEOF
22561 cat >>$CONFIG_STATUS <<\_ACEOF
22562 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
22563   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22564   case $ac_file in
22565   - | *:- | *:-:* ) # input from stdin
22566         cat >$tmp/stdin
22567         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22568         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22569   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22570         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22571   * )   ac_file_in=$ac_file.in ;;
22572   esac
22573
22574   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22575   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22576 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22577          X"$ac_file" : 'X\(//\)[^/]' \| \
22578          X"$ac_file" : 'X\(//\)$' \| \
22579          X"$ac_file" : 'X\(/\)' \| \
22580          .     : '\(.\)' 2>/dev/null ||
22581 echo X"$ac_file" |
22582     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22583           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22584           /^X\(\/\/\)$/{ s//\1/; q; }
22585           /^X\(\/\).*/{ s//\1/; q; }
22586           s/.*/./; q'`
22587   { if $as_mkdir_p; then
22588     mkdir -p "$ac_dir"
22589   else
22590     as_dir="$ac_dir"
22591     as_dirs=
22592     while test ! -d "$as_dir"; do
22593       as_dirs="$as_dir $as_dirs"
22594       as_dir=`(dirname "$as_dir") 2>/dev/null ||
22595 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22596          X"$as_dir" : 'X\(//\)[^/]' \| \
22597          X"$as_dir" : 'X\(//\)$' \| \
22598          X"$as_dir" : 'X\(/\)' \| \
22599          .     : '\(.\)' 2>/dev/null ||
22600 echo X"$as_dir" |
22601     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22602           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22603           /^X\(\/\/\)$/{ s//\1/; q; }
22604           /^X\(\/\).*/{ s//\1/; q; }
22605           s/.*/./; q'`
22606     done
22607     test ! -n "$as_dirs" || mkdir $as_dirs
22608   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22609 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22610    { (exit 1); exit 1; }; }; }
22611
22612   ac_builddir=.
22613
22614 if test "$ac_dir" != .; then
22615   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22616   # A "../" for each directory in $ac_dir_suffix.
22617   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22618 else
22619   ac_dir_suffix= ac_top_builddir=
22620 fi
22621
22622 case $srcdir in
22623   .)  # No --srcdir option.  We are building in place.
22624     ac_srcdir=.
22625     if test -z "$ac_top_builddir"; then
22626        ac_top_srcdir=.
22627     else
22628        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22629     fi ;;
22630   [\\/]* | ?:[\\/]* )  # Absolute path.
22631     ac_srcdir=$srcdir$ac_dir_suffix;
22632     ac_top_srcdir=$srcdir ;;
22633   *) # Relative path.
22634     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22635     ac_top_srcdir=$ac_top_builddir$srcdir ;;
22636 esac
22637
22638 # Do not use `cd foo && pwd` to compute absolute paths, because
22639 # the directories may not exist.
22640 case `pwd` in
22641 .) ac_abs_builddir="$ac_dir";;
22642 *)
22643   case "$ac_dir" in
22644   .) ac_abs_builddir=`pwd`;;
22645   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22646   *) ac_abs_builddir=`pwd`/"$ac_dir";;
22647   esac;;
22648 esac
22649 case $ac_abs_builddir in
22650 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22651 *)
22652   case ${ac_top_builddir}. in
22653   .) ac_abs_top_builddir=$ac_abs_builddir;;
22654   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22655   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22656   esac;;
22657 esac
22658 case $ac_abs_builddir in
22659 .) ac_abs_srcdir=$ac_srcdir;;
22660 *)
22661   case $ac_srcdir in
22662   .) ac_abs_srcdir=$ac_abs_builddir;;
22663   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22664   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22665   esac;;
22666 esac
22667 case $ac_abs_builddir in
22668 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22669 *)
22670   case $ac_top_srcdir in
22671   .) ac_abs_top_srcdir=$ac_abs_builddir;;
22672   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22673   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22674   esac;;
22675 esac
22676
22677
22678   case $INSTALL in
22679   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22680   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
22681   esac
22682
22683   if test x"$ac_file" != x-; then
22684     { echo "$as_me:$LINENO: creating $ac_file" >&5
22685 echo "$as_me: creating $ac_file" >&6;}
22686     rm -f "$ac_file"
22687   fi
22688   # Let's still pretend it is `configure' which instantiates (i.e., don't
22689   # use $as_me), people would be surprised to read:
22690   #    /* config.h.  Generated by config.status.  */
22691   if test x"$ac_file" = x-; then
22692     configure_input=
22693   else
22694     configure_input="$ac_file.  "
22695   fi
22696   configure_input=$configure_input"Generated from `echo $ac_file_in |
22697                                      sed 's,.*/,,'` by configure."
22698
22699   # First look for the input files in the build tree, otherwise in the
22700   # src tree.
22701   ac_file_inputs=`IFS=:
22702     for f in $ac_file_in; do
22703       case $f in
22704       -) echo $tmp/stdin ;;
22705       [\\/$]*)
22706          # Absolute (can't be DOS-style, as IFS=:)
22707          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22708 echo "$as_me: error: cannot find input file: $f" >&2;}
22709    { (exit 1); exit 1; }; }
22710          echo "$f";;
22711       *) # Relative
22712          if test -f "$f"; then
22713            # Build tree
22714            echo "$f"
22715          elif test -f "$srcdir/$f"; then
22716            # Source tree
22717            echo "$srcdir/$f"
22718          else
22719            # /dev/null tree
22720            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22721 echo "$as_me: error: cannot find input file: $f" >&2;}
22722    { (exit 1); exit 1; }; }
22723          fi;;
22724       esac
22725     done` || { (exit 1); exit 1; }
22726 _ACEOF
22727 cat >>$CONFIG_STATUS <<_ACEOF
22728   sed "$ac_vpsub
22729 $extrasub
22730 _ACEOF
22731 cat >>$CONFIG_STATUS <<\_ACEOF
22732 :t
22733 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22734 s,@configure_input@,$configure_input,;t t
22735 s,@srcdir@,$ac_srcdir,;t t
22736 s,@abs_srcdir@,$ac_abs_srcdir,;t t
22737 s,@top_srcdir@,$ac_top_srcdir,;t t
22738 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
22739 s,@builddir@,$ac_builddir,;t t
22740 s,@abs_builddir@,$ac_abs_builddir,;t t
22741 s,@top_builddir@,$ac_top_builddir,;t t
22742 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
22743 s,@INSTALL@,$ac_INSTALL,;t t
22744 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22745   rm -f $tmp/stdin
22746   if test x"$ac_file" != x-; then
22747     mv $tmp/out $ac_file
22748   else
22749     cat $tmp/out
22750     rm -f $tmp/out
22751   fi
22752
22753 done
22754 _ACEOF
22755 cat >>$CONFIG_STATUS <<\_ACEOF
22756
22757 #
22758 # CONFIG_HEADER section.
22759 #
22760
22761 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22762 # NAME is the cpp macro being defined and VALUE is the value it is being given.
22763 #
22764 # ac_d sets the value in "#define NAME VALUE" lines.
22765 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
22766 ac_dB='[         ].*$,\1#\2'
22767 ac_dC=' '
22768 ac_dD=',;t'
22769 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22770 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
22771 ac_uB='$,\1#\2define\3'
22772 ac_uC=' '
22773 ac_uD=',;t'
22774
22775 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
22776   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22777   case $ac_file in
22778   - | *:- | *:-:* ) # input from stdin
22779         cat >$tmp/stdin
22780         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22781         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22782   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22783         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22784   * )   ac_file_in=$ac_file.in ;;
22785   esac
22786
22787   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
22788 echo "$as_me: creating $ac_file" >&6;}
22789
22790   # First look for the input files in the build tree, otherwise in the
22791   # src tree.
22792   ac_file_inputs=`IFS=:
22793     for f in $ac_file_in; do
22794       case $f in
22795       -) echo $tmp/stdin ;;
22796       [\\/$]*)
22797          # Absolute (can't be DOS-style, as IFS=:)
22798          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22799 echo "$as_me: error: cannot find input file: $f" >&2;}
22800    { (exit 1); exit 1; }; }
22801          # Do quote $f, to prevent DOS paths from being IFS'd.
22802          echo "$f";;
22803       *) # Relative
22804          if test -f "$f"; then
22805            # Build tree
22806            echo "$f"
22807          elif test -f "$srcdir/$f"; then
22808            # Source tree
22809            echo "$srcdir/$f"
22810          else
22811            # /dev/null tree
22812            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22813 echo "$as_me: error: cannot find input file: $f" >&2;}
22814    { (exit 1); exit 1; }; }
22815          fi;;
22816       esac
22817     done` || { (exit 1); exit 1; }
22818   # Remove the trailing spaces.
22819   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
22820
22821 _ACEOF
22822
22823 # Transform confdefs.h into two sed scripts, `conftest.defines' and
22824 # `conftest.undefs', that substitutes the proper values into
22825 # config.h.in to produce config.h.  The first handles `#define'
22826 # templates, and the second `#undef' templates.
22827 # And first: Protect against being on the right side of a sed subst in
22828 # config.status.  Protect against being in an unquoted here document
22829 # in config.status.
22830 rm -f conftest.defines conftest.undefs
22831 # Using a here document instead of a string reduces the quoting nightmare.
22832 # Putting comments in sed scripts is not portable.
22833 #
22834 # `end' is used to avoid that the second main sed command (meant for
22835 # 0-ary CPP macros) applies to n-ary macro definitions.
22836 # See the Autoconf documentation for `clear'.
22837 cat >confdef2sed.sed <<\_ACEOF
22838 s/[\\&,]/\\&/g
22839 s,[\\$`],\\&,g
22840 t clear
22841 : clear
22842 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
22843 t end
22844 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
22845 : end
22846 _ACEOF
22847 # If some macros were called several times there might be several times
22848 # the same #defines, which is useless.  Nevertheless, we may not want to
22849 # sort them, since we want the *last* AC-DEFINE to be honored.
22850 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
22851 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
22852 rm -f confdef2sed.sed
22853
22854 # This sed command replaces #undef with comments.  This is necessary, for
22855 # example, in the case of _POSIX_SOURCE, which is predefined and required
22856 # on some systems where configure will not decide to define it.
22857 cat >>conftest.undefs <<\_ACEOF
22858 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
22859 _ACEOF
22860
22861 # Break up conftest.defines because some shells have a limit on the size
22862 # of here documents, and old seds have small limits too (100 cmds).
22863 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
22864 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
22865 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
22866 echo '  :' >>$CONFIG_STATUS
22867 rm -f conftest.tail
22868 while grep . conftest.defines >/dev/null
22869 do
22870   # Write a limited-size here document to $tmp/defines.sed.
22871   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
22872   # Speed up: don't consider the non `#define' lines.
22873   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
22874   # Work around the forget-to-reset-the-flag bug.
22875   echo 't clr' >>$CONFIG_STATUS
22876   echo ': clr' >>$CONFIG_STATUS
22877   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
22878   echo 'CEOF
22879   sed -f $tmp/defines.sed $tmp/in >$tmp/out
22880   rm -f $tmp/in
22881   mv $tmp/out $tmp/in
22882 ' >>$CONFIG_STATUS
22883   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
22884   rm -f conftest.defines
22885   mv conftest.tail conftest.defines
22886 done
22887 rm -f conftest.defines
22888 echo '  fi # grep' >>$CONFIG_STATUS
22889 echo >>$CONFIG_STATUS
22890
22891 # Break up conftest.undefs because some shells have a limit on the size
22892 # of here documents, and old seds have small limits too (100 cmds).
22893 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
22894 rm -f conftest.tail
22895 while grep . conftest.undefs >/dev/null
22896 do
22897   # Write a limited-size here document to $tmp/undefs.sed.
22898   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
22899   # Speed up: don't consider the non `#undef'
22900   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
22901   # Work around the forget-to-reset-the-flag bug.
22902   echo 't clr' >>$CONFIG_STATUS
22903   echo ': clr' >>$CONFIG_STATUS
22904   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
22905   echo 'CEOF
22906   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
22907   rm -f $tmp/in
22908   mv $tmp/out $tmp/in
22909 ' >>$CONFIG_STATUS
22910   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
22911   rm -f conftest.undefs
22912   mv conftest.tail conftest.undefs
22913 done
22914 rm -f conftest.undefs
22915
22916 cat >>$CONFIG_STATUS <<\_ACEOF
22917   # Let's still pretend it is `configure' which instantiates (i.e., don't
22918   # use $as_me), people would be surprised to read:
22919   #    /* config.h.  Generated by config.status.  */
22920   if test x"$ac_file" = x-; then
22921     echo "/* Generated by configure.  */" >$tmp/config.h
22922   else
22923     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
22924   fi
22925   cat $tmp/in >>$tmp/config.h
22926   rm -f $tmp/in
22927   if test x"$ac_file" != x-; then
22928     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
22929       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22930 echo "$as_me: $ac_file is unchanged" >&6;}
22931     else
22932       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22933 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22934          X"$ac_file" : 'X\(//\)[^/]' \| \
22935          X"$ac_file" : 'X\(//\)$' \| \
22936          X"$ac_file" : 'X\(/\)' \| \
22937          .     : '\(.\)' 2>/dev/null ||
22938 echo X"$ac_file" |
22939     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22940           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22941           /^X\(\/\/\)$/{ s//\1/; q; }
22942           /^X\(\/\).*/{ s//\1/; q; }
22943           s/.*/./; q'`
22944       { if $as_mkdir_p; then
22945     mkdir -p "$ac_dir"
22946   else
22947     as_dir="$ac_dir"
22948     as_dirs=
22949     while test ! -d "$as_dir"; do
22950       as_dirs="$as_dir $as_dirs"
22951       as_dir=`(dirname "$as_dir") 2>/dev/null ||
22952 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22953          X"$as_dir" : 'X\(//\)[^/]' \| \
22954          X"$as_dir" : 'X\(//\)$' \| \
22955          X"$as_dir" : 'X\(/\)' \| \
22956          .     : '\(.\)' 2>/dev/null ||
22957 echo X"$as_dir" |
22958     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22959           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22960           /^X\(\/\/\)$/{ s//\1/; q; }
22961           /^X\(\/\).*/{ s//\1/; q; }
22962           s/.*/./; q'`
22963     done
22964     test ! -n "$as_dirs" || mkdir $as_dirs
22965   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22966 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22967    { (exit 1); exit 1; }; }; }
22968
22969       rm -f $ac_file
22970       mv $tmp/config.h $ac_file
22971     fi
22972   else
22973     cat $tmp/config.h
22974     rm -f $tmp/config.h
22975   fi
22976 done
22977 _ACEOF
22978 cat >>$CONFIG_STATUS <<\_ACEOF
22979
22980 #
22981 # CONFIG_COMMANDS section.
22982 #
22983 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
22984   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
22985   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
22986   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
22987 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22988          X"$ac_dest" : 'X\(//\)[^/]' \| \
22989          X"$ac_dest" : 'X\(//\)$' \| \
22990          X"$ac_dest" : 'X\(/\)' \| \
22991          .     : '\(.\)' 2>/dev/null ||
22992 echo X"$ac_dest" |
22993     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22994           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22995           /^X\(\/\/\)$/{ s//\1/; q; }
22996           /^X\(\/\).*/{ s//\1/; q; }
22997           s/.*/./; q'`
22998   { if $as_mkdir_p; then
22999     mkdir -p "$ac_dir"
23000   else
23001     as_dir="$ac_dir"
23002     as_dirs=
23003     while test ! -d "$as_dir"; do
23004       as_dirs="$as_dir $as_dirs"
23005       as_dir=`(dirname "$as_dir") 2>/dev/null ||
23006 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23007          X"$as_dir" : 'X\(//\)[^/]' \| \
23008          X"$as_dir" : 'X\(//\)$' \| \
23009          X"$as_dir" : 'X\(/\)' \| \
23010          .     : '\(.\)' 2>/dev/null ||
23011 echo X"$as_dir" |
23012     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23013           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23014           /^X\(\/\/\)$/{ s//\1/; q; }
23015           /^X\(\/\).*/{ s//\1/; q; }
23016           s/.*/./; q'`
23017     done
23018     test ! -n "$as_dirs" || mkdir $as_dirs
23019   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23020 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23021    { (exit 1); exit 1; }; }; }
23022
23023   ac_builddir=.
23024
23025 if test "$ac_dir" != .; then
23026   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23027   # A "../" for each directory in $ac_dir_suffix.
23028   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23029 else
23030   ac_dir_suffix= ac_top_builddir=
23031 fi
23032
23033 case $srcdir in
23034   .)  # No --srcdir option.  We are building in place.
23035     ac_srcdir=.
23036     if test -z "$ac_top_builddir"; then
23037        ac_top_srcdir=.
23038     else
23039        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23040     fi ;;
23041   [\\/]* | ?:[\\/]* )  # Absolute path.
23042     ac_srcdir=$srcdir$ac_dir_suffix;
23043     ac_top_srcdir=$srcdir ;;
23044   *) # Relative path.
23045     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23046     ac_top_srcdir=$ac_top_builddir$srcdir ;;
23047 esac
23048
23049 # Do not use `cd foo && pwd` to compute absolute paths, because
23050 # the directories may not exist.
23051 case `pwd` in
23052 .) ac_abs_builddir="$ac_dir";;
23053 *)
23054   case "$ac_dir" in
23055   .) ac_abs_builddir=`pwd`;;
23056   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23057   *) ac_abs_builddir=`pwd`/"$ac_dir";;
23058   esac;;
23059 esac
23060 case $ac_abs_builddir in
23061 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23062 *)
23063   case ${ac_top_builddir}. in
23064   .) ac_abs_top_builddir=$ac_abs_builddir;;
23065   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23066   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23067   esac;;
23068 esac
23069 case $ac_abs_builddir in
23070 .) ac_abs_srcdir=$ac_srcdir;;
23071 *)
23072   case $ac_srcdir in
23073   .) ac_abs_srcdir=$ac_abs_builddir;;
23074   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23075   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23076   esac;;
23077 esac
23078 case $ac_abs_builddir in
23079 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23080 *)
23081   case $ac_top_srcdir in
23082   .) ac_abs_top_srcdir=$ac_abs_builddir;;
23083   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23084   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23085   esac;;
23086 esac
23087
23088
23089   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
23090 echo "$as_me: executing $ac_dest commands" >&6;}
23091   case $ac_dest in
23092     default ) (echo "Doing make of dependencies"; ${MAKE:-make} depend;)
23093  ;;
23094   esac
23095 done
23096 _ACEOF
23097
23098 cat >>$CONFIG_STATUS <<\_ACEOF
23099
23100 { (exit 0); exit 0; }
23101 _ACEOF
23102 chmod +x $CONFIG_STATUS
23103 ac_clean_files=$ac_clean_files_save
23104
23105
23106 # configure is writing to config.log, and then calls config.status.
23107 # config.status does its own redirection, appending to config.log.
23108 # Unfortunately, on DOS this fails, as config.log is still kept open
23109 # by configure, so config.status won't be able to write to it; its
23110 # output is simply discarded.  So we exec the FD to /dev/null,
23111 # effectively closing config.log, so it can be properly (re)opened and
23112 # appended to by config.status.  When coming back to configure, we
23113 # need to make the FD available again.
23114 if test "$no_create" != yes; then
23115   ac_cs_success=:
23116   ac_config_status_args=
23117   test "$silent" = yes &&
23118     ac_config_status_args="$ac_config_status_args --quiet"
23119   exec 5>/dev/null
23120   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23121   exec 5>>config.log
23122   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23123   # would make configure fail if this is the last instruction.
23124   $ac_cs_success || { (exit 1); exit 1; }
23125 fi
23126
23127
23128 cd scripts
23129 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
23130 chmod 755 dvd-writepart dvd-freespace
23131 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
23132 cd ..
23133
23134 c=src/cats
23135
23136 chmod 755 $c/create_bacula_database   $c/update_bacula_tables  $c/make_bacula_tables
23137 chmod 755 $c/grant_bacula_privileges  $c/drop_bacula_tables    $c/drop_bacula_database
23138
23139 chmod 755 $c/create_bdb_database      $c/update_bdb_tables     $c/make_bdb_tables
23140 chmod 755 $c/grant_bdb_privileges     $c/drop_bdb_tables       $c/drop_bdb_database
23141
23142 chmod 755 $c/create_mysql_database    $c/update_mysql_tables   $c/make_mysql_tables
23143 chmod 755 $c/grant_mysql_privileges   $c/drop_mysql_tables     $c/drop_mysql_database
23144
23145 chmod 755 $c/create_sqlite_database   $c/update_sqlite_tables  $c/make_sqlite_tables
23146 chmod 755 $c/grant_sqlite_privileges  $c/drop_sqlite_tables    $c/drop_sqlite_database
23147
23148 chmod 755 $c/create_postgresql_database  $c/update_postgresql_tables $c/make_postgresql_tables
23149 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables   $c/drop_postgresql_database
23150
23151 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
23152 chmod 755 $c/sqlite
23153 chmod 755 $c/mysql
23154
23155 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
23156    largefile_support="yes"
23157 fi
23158
23159 #
23160 # A whole lot of hand springs to get the compiler version.
23161 #  This is because gcc changed the output in version 3.0
23162 #
23163 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
23164 if test "x${CCVERSION}" = "x" ; then
23165   CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
23166 fi
23167 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
23168 if test x"${CXXVERSION}" = x ; then
23169   CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
23170 fi
23171
23172 if test "x${subsysdir}" = "x${sbindir}" ; then
23173    echo " "
23174    echo " "
23175    echo "You have set --sbindir and --with-subsys-dir"
23176    echo "  both equal to: ${subsysdir} "
23177    echo "  This is not permitted. Please reconfigure."
23178    echo " "
23179    echo "Aborting configuration ..."
23180    echo " "
23181    echo " "
23182    exit 1
23183 fi
23184
23185 if test "x${db_name}" = "xInternal" ; then
23186    echo " "
23187    echo " "
23188    echo "You have not specified either --enable-client-only or one of the"
23189    echo "  supported databases: MySQL, PostgreSQL, SQLite3 or SQLite."
23190    echo "  This is not permitted. Please reconfigure."
23191    echo " "
23192    echo "Aborting the configuration ..."
23193    echo " "
23194    echo " "
23195    exit 1
23196 fi
23197
23198 echo "
23199 Configuration on `date`:
23200
23201   Host:                       $host -- ${DISTNAME} ${DISTVER}
23202   Bacula version:             ${VERSION} (${DATE})
23203   Source code location:       ${srcdir}
23204   Install binaries:           ${sbindir}
23205   Install config files:       ${sysconfdir}
23206   Scripts directory:          ${scriptdir}
23207   Working directory:          ${working_dir}
23208   PID directory:              ${piddir}
23209   Subsys directory:           ${subsysdir}
23210   Man directory:              ${mandir}
23211   C Compiler:                 ${CC} ${CCVERSION}
23212   C++ Compiler:               ${CXX} ${CXXVERSION}
23213   Compiler flags:             ${WCFLAGS} ${CFLAGS}
23214   Linker flags:               ${WLDFLAGS} ${LDFLAGS}
23215   Libraries:                  ${LIBS}
23216   Statically Linked Tools:    ${support_static_tools}
23217   Statically Linked FD:       ${support_static_fd}
23218   Statically Linked SD:       ${support_static_sd}
23219   Statically Linked DIR:      ${support_static_dir}
23220   Statically Linked CONS:     ${support_static_cons}
23221   Database type:              ${db_name}
23222   Database lib:               ${DB_LIBS}
23223
23224   Job Output Email:           ${job_email}
23225   Traceback Email:            ${dump_email}
23226   SMTP Host Address:          ${smtp_host}
23227
23228   Director Port:              ${dir_port}
23229   File daemon Port:           ${fd_port}
23230   Storage daemon Port:        ${sd_port}
23231
23232   Director User:              ${dir_user}
23233   Director Group:             ${dir_group}
23234   Storage Daemon User:        ${sd_user}
23235   Storage DaemonGroup:        ${sd_group}
23236   File Daemon User:           ${fd_user}
23237   File Daemon Group:          ${fd_group}
23238
23239   SQL binaries Directory      ${SQL_BINDIR}
23240
23241   Large file support:         $largefile_support
23242   Bacula conio support:       ${got_conio} ${CONS_LIBS}
23243   readline support:           ${got_readline} ${PRTREADLINE_SRC}
23244   TCP Wrappers support:       ${TCPW_MSG}
23245   TLS support:                ${support_tls}
23246   ZLIB support:               ${have_zlib}
23247   enable-smartalloc:          ${support_smartalloc}
23248   enable-gnome:               ${support_gnome} ${gnome_version}
23249   enable-wx-console:          ${support_wx_console} ${wx_version}
23250   enable-tray-monitor:        ${support_tray_monitor}
23251   client-only:                ${build_client_only}
23252   ACL support:                ${have_acl}
23253   Python support:             ${support_python} ${PYTHON_LIBS}
23254
23255   " > config.out
23256
23257 cat config.out