]> git.sur5r.net Git - bacula/bacula/blob - bacula/configure
Apply David's ACL fix to src/filed/acl.c
[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 INSIDE_GNOME_COMMON_TRUE INSIDE_GNOME_COMMON_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
4284
4285 # Make sure we can run config.sub.
4286 $ac_config_sub sun4 >/dev/null 2>&1 ||
4287   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
4288 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
4289    { (exit 1); exit 1; }; }
4290
4291 echo "$as_me:$LINENO: checking build system type" >&5
4292 echo $ECHO_N "checking build system type... $ECHO_C" >&6
4293 if test "${ac_cv_build+set}" = set; then
4294   echo $ECHO_N "(cached) $ECHO_C" >&6
4295 else
4296   ac_cv_build_alias=$build_alias
4297 test -z "$ac_cv_build_alias" &&
4298   ac_cv_build_alias=`$ac_config_guess`
4299 test -z "$ac_cv_build_alias" &&
4300   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4301 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4302    { (exit 1); exit 1; }; }
4303 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
4304   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
4305 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
4306    { (exit 1); exit 1; }; }
4307
4308 fi
4309 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4310 echo "${ECHO_T}$ac_cv_build" >&6
4311 build=$ac_cv_build
4312 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4313 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4314 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4315
4316
4317
4318 echo "$as_me:$LINENO: checking host system type" >&5
4319 echo $ECHO_N "checking host system type... $ECHO_C" >&6
4320 if test "${ac_cv_host+set}" = set; then
4321   echo $ECHO_N "(cached) $ECHO_C" >&6
4322 else
4323   ac_cv_host_alias=$host_alias
4324 test -z "$ac_cv_host_alias" &&
4325   ac_cv_host_alias=$ac_cv_build_alias
4326 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
4327   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
4328 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
4329    { (exit 1); exit 1; }; }
4330
4331 fi
4332 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4333 echo "${ECHO_T}$ac_cv_host" >&6
4334 host=$ac_cv_host
4335 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4336 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4337 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4338
4339
4340 case $host_os in
4341   *cygwin* ) CYGWIN=yes;;
4342          * ) CYGWIN=no;;
4343 esac
4344
4345 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4346 then
4347
4348
4349 if $TRUEPRG; then
4350   HAVE_SUN_OS_TRUE=
4351   HAVE_SUN_OS_FALSE='#'
4352 else
4353   HAVE_SUN_OS_TRUE='#'
4354   HAVE_SUN_OS_FALSE=
4355 fi
4356         cat >>confdefs.h <<\_ACEOF
4357 #define HAVE_SUN_OS 1
4358 _ACEOF
4359
4360 else
4361
4362
4363 if $FALSEPRG; then
4364   HAVE_SUN_OS_TRUE=
4365   HAVE_SUN_OS_FALSE='#'
4366 else
4367   HAVE_SUN_OS_TRUE='#'
4368   HAVE_SUN_OS_FALSE=
4369 fi
4370 fi
4371
4372 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4373 then
4374
4375
4376 if $TRUEPRG; then
4377   HAVE_OSF1_OS_TRUE=
4378   HAVE_OSF1_OS_FALSE='#'
4379 else
4380   HAVE_OSF1_OS_TRUE='#'
4381   HAVE_OSF1_OS_FALSE=
4382 fi
4383         cat >>confdefs.h <<\_ACEOF
4384 #define HAVE_OSF1_OS 1
4385 _ACEOF
4386
4387 else
4388
4389
4390 if $FALSEPRG; then
4391   HAVE_OSF1_OS_TRUE=
4392   HAVE_OSF1_OS_FALSE='#'
4393 else
4394   HAVE_OSF1_OS_TRUE='#'
4395   HAVE_OSF1_OS_FALSE=
4396 fi
4397 fi
4398
4399 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4400 then
4401
4402
4403 if $TRUEPRG; then
4404   HAVE_AIX_OS_TRUE=
4405   HAVE_AIX_OS_FALSE='#'
4406 else
4407   HAVE_AIX_OS_TRUE='#'
4408   HAVE_AIX_OS_FALSE=
4409 fi
4410         cat >>confdefs.h <<\_ACEOF
4411 #define HAVE_AIX_OS 1
4412 _ACEOF
4413
4414 else
4415
4416
4417 if $FALSEPRG; then
4418   HAVE_AIX_OS_TRUE=
4419   HAVE_AIX_OS_FALSE='#'
4420 else
4421   HAVE_AIX_OS_TRUE='#'
4422   HAVE_AIX_OS_FALSE=
4423 fi
4424 fi
4425
4426 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4427 then
4428
4429
4430 if $TRUEPRG; then
4431   HAVE_HPUX_OS_TRUE=
4432   HAVE_HPUX_OS_FALSE='#'
4433 else
4434   HAVE_HPUX_OS_TRUE='#'
4435   HAVE_HPUX_OS_FALSE=
4436 fi
4437         cat >>confdefs.h <<\_ACEOF
4438 #define HAVE_HPUX_OS 1
4439 _ACEOF
4440
4441 else
4442
4443
4444 if $FALSEPRG; then
4445   HAVE_HPUX_OS_TRUE=
4446   HAVE_HPUX_OS_FALSE='#'
4447 else
4448   HAVE_HPUX_OS_TRUE='#'
4449   HAVE_HPUX_OS_FALSE=
4450 fi
4451 fi
4452
4453 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
4454 then
4455
4456
4457 if $TRUEPRG; then
4458   HAVE_LINUX_OS_TRUE=
4459   HAVE_LINUX_OS_FALSE='#'
4460 else
4461   HAVE_LINUX_OS_TRUE='#'
4462   HAVE_LINUX_OS_FALSE=
4463 fi
4464         cat >>confdefs.h <<\_ACEOF
4465 #define HAVE_LINUX_OS 1
4466 _ACEOF
4467
4468 else
4469
4470
4471 if $FALSEPRG; then
4472   HAVE_LINUX_OS_TRUE=
4473   HAVE_LINUX_OS_FALSE='#'
4474 else
4475   HAVE_LINUX_OS_TRUE='#'
4476   HAVE_LINUX_OS_FALSE=
4477 fi
4478 fi
4479
4480 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4481 then
4482
4483
4484 if $TRUEPRG; then
4485   HAVE_FREEBSD_OS_TRUE=
4486   HAVE_FREEBSD_OS_FALSE='#'
4487 else
4488   HAVE_FREEBSD_OS_TRUE='#'
4489   HAVE_FREEBSD_OS_FALSE=
4490 fi
4491         cat >>confdefs.h <<\_ACEOF
4492 #define HAVE_FREEBSD_OS 1
4493 _ACEOF
4494
4495 else
4496
4497
4498 if $FALSEPRG; then
4499   HAVE_FREEBSD_OS_TRUE=
4500   HAVE_FREEBSD_OS_FALSE='#'
4501 else
4502   HAVE_FREEBSD_OS_TRUE='#'
4503   HAVE_FREEBSD_OS_FALSE=
4504 fi
4505 fi
4506
4507 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4508 then
4509
4510
4511 if $TRUEPRG; then
4512   HAVE_NETBSD_OS_TRUE=
4513   HAVE_NETBSD_OS_FALSE='#'
4514 else
4515   HAVE_NETBSD_OS_TRUE='#'
4516   HAVE_NETBSD_OS_FALSE=
4517 fi
4518         cat >>confdefs.h <<\_ACEOF
4519 #define HAVE_NETBSD_OS 1
4520 _ACEOF
4521
4522 else
4523
4524
4525 if $FALSEPRG; then
4526   HAVE_NETBSD_OS_TRUE=
4527   HAVE_NETBSD_OS_FALSE='#'
4528 else
4529   HAVE_NETBSD_OS_TRUE='#'
4530   HAVE_NETBSD_OS_FALSE=
4531 fi
4532 fi
4533
4534 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4535 then
4536
4537
4538 if $TRUEPRG; then
4539   HAVE_OPENBSD_OS_TRUE=
4540   HAVE_OPENBSD_OS_FALSE='#'
4541 else
4542   HAVE_OPENBSD_OS_TRUE='#'
4543   HAVE_OPENBSD_OS_FALSE=
4544 fi
4545         cat >>confdefs.h <<\_ACEOF
4546 #define HAVE_OPENBSD_OS 1
4547 _ACEOF
4548
4549 else
4550
4551
4552 if $FALSEPRG; then
4553   HAVE_OPENBSD_OS_TRUE=
4554   HAVE_OPENBSD_OS_FALSE='#'
4555 else
4556   HAVE_OPENBSD_OS_TRUE='#'
4557   HAVE_OPENBSD_OS_FALSE=
4558 fi
4559 fi
4560
4561 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4562 then
4563
4564
4565 if $TRUEPRG; then
4566   HAVE_BSDI_OS_TRUE=
4567   HAVE_BSDI_OS_FALSE='#'
4568 else
4569   HAVE_BSDI_OS_TRUE='#'
4570   HAVE_BSDI_OS_FALSE=
4571 fi
4572         cat >>confdefs.h <<\_ACEOF
4573 #define HAVE_BSDI_OS 1
4574 _ACEOF
4575
4576 else
4577
4578
4579 if $FALSEPRG; then
4580   HAVE_BSDI_OS_TRUE=
4581   HAVE_BSDI_OS_FALSE='#'
4582 else
4583   HAVE_BSDI_OS_TRUE='#'
4584   HAVE_BSDI_OS_FALSE=
4585 fi
4586 fi
4587
4588 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
4589 then
4590
4591
4592 if $TRUEPRG; then
4593   HAVE_SGI_OS_TRUE=
4594   HAVE_SGI_OS_FALSE='#'
4595 else
4596   HAVE_SGI_OS_TRUE='#'
4597   HAVE_SGI_OS_FALSE=
4598 fi
4599         cat >>confdefs.h <<\_ACEOF
4600 #define HAVE_SGI_OS 1
4601 _ACEOF
4602
4603 else
4604
4605
4606 if $FALSEPRG; then
4607   HAVE_SGI_OS_TRUE=
4608   HAVE_SGI_OS_FALSE='#'
4609 else
4610   HAVE_SGI_OS_TRUE='#'
4611   HAVE_SGI_OS_FALSE=
4612 fi
4613 fi
4614
4615 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4616 then
4617
4618
4619 if $TRUEPRG; then
4620   HAVE_IRIX_OS_TRUE=
4621   HAVE_IRIX_OS_FALSE='#'
4622 else
4623   HAVE_IRIX_OS_TRUE='#'
4624   HAVE_IRIX_OS_FALSE=
4625 fi
4626         cat >>confdefs.h <<\_ACEOF
4627 #define HAVE_IRIX_OS 1
4628 _ACEOF
4629
4630 else
4631
4632
4633 if $FALSEPRG; then
4634   HAVE_IRIX_OS_TRUE=
4635   HAVE_IRIX_OS_FALSE='#'
4636 else
4637   HAVE_IRIX_OS_TRUE='#'
4638   HAVE_IRIX_OS_FALSE=
4639 fi
4640 fi
4641
4642 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4643 then
4644
4645
4646 if $TRUEPRG; then
4647   HAVE_DARWIN_OS_TRUE=
4648   HAVE_DARWIN_OS_FALSE='#'
4649 else
4650   HAVE_DARWIN_OS_TRUE='#'
4651   HAVE_DARWIN_OS_FALSE=
4652 fi
4653     cat >>confdefs.h <<\_ACEOF
4654 #define HAVE_DARWIN_OS 1
4655 _ACEOF
4656
4657 else
4658
4659
4660 if $FALSEPRG; then
4661   HAVE_DARWIN_OS_TRUE=
4662   HAVE_DARWIN_OS_FALSE='#'
4663 else
4664   HAVE_DARWIN_OS_TRUE='#'
4665   HAVE_DARWIN_OS_FALSE=
4666 fi
4667 fi
4668
4669
4670 # -----------------------------------------------------------
4671 # ----------------------------------------------------------
4672 echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
4673 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6
4674 if test "x$DISTNAME" != "x"
4675 then
4676         echo "distname set to $DISTNAME"
4677 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4678 then
4679         DISTNAME=alpha
4680 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4681 then
4682         DISTNAME=aix
4683 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4684 then
4685         DISTNAME=hpux
4686 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4687 then
4688         DISTNAME=solaris
4689 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4690 then
4691         DISTNAME=freebsd
4692 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4693 then
4694         DISTNAME=netbsd
4695 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4696 then
4697         DISTNAME=openbsd
4698 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4699 then
4700         DISTNAME=irix
4701 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4702 then
4703         DISTNAME=bsdi
4704 elif test -f /etc/SuSE-release
4705 then
4706         DISTNAME=suse
4707 elif test -d /etc/SuSEconfig
4708 then
4709         DISTNAME=suse5
4710 elif test -f /etc/mandrake-release
4711 then
4712         DISTNAME=mandrake
4713 elif test -f /etc/whitebox-release
4714 then
4715        DISTNAME=redhat
4716 elif test -f /etc/redhat-release
4717 then
4718         DISTNAME=redhat
4719 elif test -f /etc/gentoo-release
4720 then
4721         DISTNAME=gentoo
4722 elif test -f /etc/debian_version
4723 then
4724         DISTNAME=debian
4725 elif test -f /etc/slackware-version
4726 then
4727         DISTNAME=slackware
4728 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4729 then
4730     DISTNAME=darwin
4731 elif test -f /etc/engarde-version
4732 then
4733         DISTNAME=engarde
4734 elif test "$CYGWIN" = yes
4735 then
4736         DISTNAME=cygwin
4737         cat >>confdefs.h <<\_ACEOF
4738 #define HAVE_CYGWIN 1
4739 _ACEOF
4740
4741 else
4742         DISTNAME=unknown
4743 fi
4744 echo "$as_me:$LINENO: result: done" >&5
4745 echo "${ECHO_T}done" >&6
4746
4747
4748 # -----------------------------------------------------------
4749 # ----------------------------------------------------------
4750
4751
4752
4753 if false; then
4754   INSIDE_GNOME_COMMON_TRUE=
4755   INSIDE_GNOME_COMMON_FALSE='#'
4756 else
4757   INSIDE_GNOME_COMMON_TRUE='#'
4758   INSIDE_GNOME_COMMON_FALSE=
4759 fi
4760
4761         test -n "$ACLOCAL_FLAGS" && ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
4762
4763         for k in gnome-macros ; do ACLOCAL="$ACLOCAL -I $k" ; done
4764
4765
4766 # ------------------------------------------------------------------
4767 #  If the user has not set --prefix, we set our default to nothing.
4768 #  In this case, if the user has not set --sysconfdir, we set it
4769 #  to the package default of /etc/bacula.  If either --prefix or
4770 #  --sysconfdir is set, we leave sysconfdir alone except to eval it.
4771 # ------------------------------------------------------------------
4772 if test x${prefix} = xNONE ; then
4773     if test `eval echo ${sysconfdir}` = NONE/etc ; then
4774         sysconfdir=/etc/bacula
4775     fi
4776     prefix=
4777 fi
4778 sysconfdir=`eval echo ${sysconfdir}`
4779
4780 # -------------------------------------------------------------------------
4781 #  If the user has not set --exec-prefix, we default to ${prefix}
4782 # -------------------------------------------------------------------------
4783 if test x${exec_prefix} = xNONE ; then
4784     exec_prefix=${prefix}
4785 fi
4786
4787 # ------------------------------------------------------------------
4788 # If the user has not set --sbindir, we set our default as /sbin
4789 # ------------------------------------------------------------------
4790 if test x$sbindir = x'${exec_prefix}/sbin' ; then
4791     sbindir=${exec_prefix}/sbin
4792 fi
4793 sbindir=`eval echo ${sbindir}`
4794
4795 # -------------------------------------------------------------------------
4796 #  If the user has not set --mandir, we default to /usr/share/man
4797 # -------------------------------------------------------------------------
4798 if test x$mandir = x'${prefix}/man' ; then
4799    mandir=/usr/share/man
4800 fi
4801
4802
4803 # ------------------------------------------------------------------
4804 # All list of languages for which a translation exist. Each
4805 #  language is separated by a space.
4806 # ------------------------------------------------------------------
4807 ALL_LINGUAS=""
4808
4809 for ac_prog in msgfmt
4810 do
4811   # Extract the first word of "$ac_prog", so it can be a program name with args.
4812 set dummy $ac_prog; ac_word=$2
4813 echo "$as_me:$LINENO: checking for $ac_word" >&5
4814 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4815 if test "${ac_cv_path_MSGFMT+set}" = set; then
4816   echo $ECHO_N "(cached) $ECHO_C" >&6
4817 else
4818   case $MSGFMT in
4819   [\\/]* | ?:[\\/]*)
4820   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4821   ;;
4822   *)
4823   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4824 for as_dir in $PATH
4825 do
4826   IFS=$as_save_IFS
4827   test -z "$as_dir" && as_dir=.
4828   for ac_exec_ext in '' $ac_executable_extensions; do
4829   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4830     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
4831     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4832     break 2
4833   fi
4834 done
4835 done
4836
4837   ;;
4838 esac
4839 fi
4840 MSGFMT=$ac_cv_path_MSGFMT
4841
4842 if test -n "$MSGFMT"; then
4843   echo "$as_me:$LINENO: result: $MSGFMT" >&5
4844 echo "${ECHO_T}$MSGFMT" >&6
4845 else
4846   echo "$as_me:$LINENO: result: no" >&5
4847 echo "${ECHO_T}no" >&6
4848 fi
4849
4850   test -n "$MSGFMT" && break
4851 done
4852 test -n "$MSGFMT" || MSGFMT="no"
4853
4854 if test "$MSGFMT" = "no"
4855 then
4856    echo 'msgfmt program not found, disabling NLS !'
4857    USE_NLS=no
4858    USE_INCLUDED_LIBINTL=no
4859 #else
4860 #   AM_GNU_GETTEXT
4861 fi
4862
4863
4864 support_mysql=no
4865 support_sqlite=no
4866 support_sqlite3=no
4867 support_postgresql=no
4868 support_smartalloc=yes
4869 support_readline=yes
4870 support_conio=yes
4871 support_gnome=no
4872 support_wx_console=no
4873 support_tls=no
4874 gnome_version=
4875 wx_version=
4876 support_static_tools=no
4877 support_static_fd=no
4878 support_static_sd=no
4879 support_static_dir=no
4880 support_static_cons=no
4881 support_python=no
4882 build_client_only=no
4883 cats=
4884 db_name=Internal
4885 DB_NAME=bdb
4886
4887
4888 # -------------------------------------------
4889 # gnome (default off)
4890 # -------------------------------------------
4891 # Check whether --enable-gnome or --disable-gnome was given.
4892 if test "${enable_gnome+set}" = set; then
4893   enableval="$enable_gnome"
4894   if test x$enableval = xyes; then
4895     support_gnome=yes
4896   fi
4897 fi;
4898
4899 GNOME_DIR=
4900 if test x$support_gnome = xyes; then
4901   abc=`$PKGCONFIG --exists libgnomeui-2.0`
4902   pkg=$?
4903   if test $pkg = 0; then
4904      GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
4905      GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
4906      GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
4907      GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
4908
4909
4910
4911
4912      GNOME_DIR=src/gnome2-console
4913      gnome_version="Version 2.x"
4914   else
4915      { { echo "$as_me:$LINENO: error: Unable to find Gnome 2 installation" >&5
4916 echo "$as_me: error: Unable to find Gnome 2 installation" >&2;}
4917    { (exit 1); exit 1; }; }
4918   fi
4919 fi
4920
4921
4922
4923 # -------------------------------------------
4924 # wx-console (default off)
4925 # -------------------------------------------
4926 # Check whether --enable-wx-console or --disable-wx-console was given.
4927 if test "${enable_wx_console+set}" = set; then
4928   enableval="$enable_wx_console"
4929   if test x$enableval = xyes; then
4930     support_wx_console=yes
4931   fi
4932 fi;
4933
4934 WX_DIR=
4935 if test x$support_wx_console = xyes; then
4936   abc=`$WXCONFIG $WXFLAGS --cppflags`
4937   pkg=$?
4938   if test $pkg = 0; then
4939      wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
4940      WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
4941      WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
4942
4943
4944
4945      WX_DIR=src/wx-console
4946   else
4947      echo " "
4948      echo "wx-config program not found. wx-console disabled."
4949      echo " "
4950      support_wx_console=no
4951   fi
4952 fi
4953
4954
4955
4956 # -------------------------------------------
4957 # tray-monitor (default off)
4958 # -------------------------------------------
4959 # Check whether --enable-tray-monitor or --disable-tray-monitor was given.
4960 if test "${enable_tray_monitor+set}" = set; then
4961   enableval="$enable_tray_monitor"
4962   if test x$enableval = xyes; then
4963     support_tray_monitor=yes
4964   fi
4965 fi;
4966
4967 TRAY_MONITOR_DIR=
4968 if test x$support_tray_monitor = xyes; then
4969   abc=`$PKGCONFIG --exists gtk+-2.0`
4970   pkg=$?
4971   if test $pkg = 0; then
4972      TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
4973      TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
4974
4975
4976      TRAY_MONITOR_DIR=src/tray-monitor
4977      abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
4978      pkg=$?
4979      if test $pkg = 0; then
4980         cat >>confdefs.h <<\_ACEOF
4981 #define HAVE_GTK_2_4 1
4982 _ACEOF
4983
4984      fi
4985   fi
4986 fi
4987
4988
4989 # -------------------------------------------
4990 # smartalloc (default off)
4991 # -------------------------------------------
4992 # Check whether --enable-smartalloc or --disable-smartalloc was given.
4993 if test "${enable_smartalloc+set}" = set; then
4994   enableval="$enable_smartalloc"
4995   if test x$enableval = xno; then
4996     support_smartalloc=no
4997   fi
4998 fi;
4999
5000 if test x$support_smartalloc = xyes; then
5001    cat >>confdefs.h <<\_ACEOF
5002 #define SMARTALLOC 1
5003 _ACEOF
5004
5005 fi
5006
5007 # -------------------------------------------
5008 # static-tools (default off)
5009 # -------------------------------------------
5010 # Check whether --enable-static-tools or --disable-static-tools was given.
5011 if test "${enable_static_tools+set}" = set; then
5012   enableval="$enable_static_tools"
5013   if test x$enableval = xyes; then
5014      support_static_tools=yes
5015    fi
5016 fi;
5017
5018 TTOOL_LDFLAGS=
5019 if test x$support_static_tools = xyes; then
5020    TTOOL_LDFLAGS="-static"
5021 fi
5022
5023
5024 # -------------------------------------------
5025 # static-fd    (default off)
5026 # -------------------------------------------
5027 # Check whether --enable-static-fd or --disable-static-fd was given.
5028 if test "${enable_static_fd+set}" = set; then
5029   enableval="$enable_static_fd"
5030   if test x$enableval = xyes; then
5031      support_static_fd=yes
5032    fi
5033 fi;
5034
5035 STATIC_FD=
5036 if test x$support_static_fd = xyes; then
5037    STATIC_FD="static-bacula-fd"
5038 fi
5039
5040
5041 # -------------------------------------------
5042 # static-sd    (default off)
5043 # -------------------------------------------
5044 # Check whether --enable-static-sd or --disable-static-sd was given.
5045 if test "${enable_static_sd+set}" = set; then
5046   enableval="$enable_static_sd"
5047   if test x$enableval = xyes; then
5048      support_static_sd=yes
5049    fi
5050 fi;
5051
5052 STATIC_SD=
5053 if test x$support_static_sd = xyes; then
5054    STATIC_SD="static-bacula-sd"
5055 fi
5056
5057
5058 # -------------------------------------------
5059 # static-dir   (default off)
5060 # -------------------------------------------
5061 # Check whether --enable-static-dir or --disable-static-dir was given.
5062 if test "${enable_static_dir+set}" = set; then
5063   enableval="$enable_static_dir"
5064   if test x$enableval = xyes; then
5065      support_static_dir=yes
5066    fi
5067 fi;
5068
5069 STATIC_DIR=
5070 if test x$support_static_dir = xyes; then
5071    STATIC_DIR="static-bacula-dir"
5072 fi
5073
5074
5075 # -------------------------------------------
5076 # static-cons  (default off)
5077 # -------------------------------------------
5078 # Check whether --enable-static-cons or --disable-static-cons was given.
5079 if test "${enable_static_cons+set}" = set; then
5080   enableval="$enable_static_cons"
5081   if test x$enableval = xyes; then
5082      support_static_cons=yes
5083    fi
5084 fi;
5085
5086 STATIC_CONS=
5087 STATIC_GNOME_CONS=
5088 STATIC_WX_CONS=
5089 if test x$support_static_cons = xyes; then
5090    STATIC_CONS="static-bconsole"
5091    STATIC_GNOME_CONS="static-gnome-console"
5092    STATIC_WX_CONS="static-wx-console"
5093 fi
5094
5095
5096
5097
5098 # -------------------------------------------
5099 # client_only  (default off)
5100 # -------------------------------------------
5101 # Check whether --enable-client-only or --disable-client-only was given.
5102 if test "${enable_client_only+set}" = set; then
5103   enableval="$enable_client_only"
5104   if test x$enableval = xyes; then
5105      build_client_only=yes
5106     db_name=None
5107     DB_NAME=none
5108    fi
5109 fi;
5110 if test x$build_client_only = xno; then
5111    ALL_DIRS="subdirs"
5112 else
5113    ALL_DIRS=""
5114 fi
5115
5116
5117 # ---------------------------------------------------
5118 # Check for conio (Bacula readline substitute)(
5119 # ---------------------------------------------------
5120 # this allows you to turn it completely off
5121 # Check whether --enable-conio or --disable-conio was given.
5122 if test "${enable_conio+set}" = set; then
5123   enableval="$enable_conio"
5124   if test x$enableval = xno; then
5125     support_conio=no
5126   fi
5127 fi;
5128
5129 got_conio="no"
5130 if test x$support_conio = xyes; then
5131    echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5132 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5133 if test "${ac_cv_header_stdc+set}" = set; then
5134   echo $ECHO_N "(cached) $ECHO_C" >&6
5135 else
5136   cat >conftest.$ac_ext <<_ACEOF
5137 /* confdefs.h.  */
5138 _ACEOF
5139 cat confdefs.h >>conftest.$ac_ext
5140 cat >>conftest.$ac_ext <<_ACEOF
5141 /* end confdefs.h.  */
5142 #include <stdlib.h>
5143 #include <stdarg.h>
5144 #include <string.h>
5145 #include <float.h>
5146
5147 int
5148 main ()
5149 {
5150
5151   ;
5152   return 0;
5153 }
5154 _ACEOF
5155 rm -f conftest.$ac_objext
5156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5157   (eval $ac_compile) 2>conftest.er1
5158   ac_status=$?
5159   grep -v '^ *+' conftest.er1 >conftest.err
5160   rm -f conftest.er1
5161   cat conftest.err >&5
5162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5163   (exit $ac_status); } &&
5164          { ac_try='test -z "$ac_c_werror_flag"
5165                          || test ! -s conftest.err'
5166   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5167   (eval $ac_try) 2>&5
5168   ac_status=$?
5169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5170   (exit $ac_status); }; } &&
5171          { ac_try='test -s conftest.$ac_objext'
5172   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5173   (eval $ac_try) 2>&5
5174   ac_status=$?
5175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5176   (exit $ac_status); }; }; then
5177   ac_cv_header_stdc=yes
5178 else
5179   echo "$as_me: failed program was:" >&5
5180 sed 's/^/| /' conftest.$ac_ext >&5
5181
5182 ac_cv_header_stdc=no
5183 fi
5184 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5185
5186 if test $ac_cv_header_stdc = yes; then
5187   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5188   cat >conftest.$ac_ext <<_ACEOF
5189 /* confdefs.h.  */
5190 _ACEOF
5191 cat confdefs.h >>conftest.$ac_ext
5192 cat >>conftest.$ac_ext <<_ACEOF
5193 /* end confdefs.h.  */
5194 #include <string.h>
5195
5196 _ACEOF
5197 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5198   $EGREP "memchr" >/dev/null 2>&1; then
5199   :
5200 else
5201   ac_cv_header_stdc=no
5202 fi
5203 rm -f conftest*
5204
5205 fi
5206
5207 if test $ac_cv_header_stdc = yes; then
5208   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5209   cat >conftest.$ac_ext <<_ACEOF
5210 /* confdefs.h.  */
5211 _ACEOF
5212 cat confdefs.h >>conftest.$ac_ext
5213 cat >>conftest.$ac_ext <<_ACEOF
5214 /* end confdefs.h.  */
5215 #include <stdlib.h>
5216
5217 _ACEOF
5218 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5219   $EGREP "free" >/dev/null 2>&1; then
5220   :
5221 else
5222   ac_cv_header_stdc=no
5223 fi
5224 rm -f conftest*
5225
5226 fi
5227
5228 if test $ac_cv_header_stdc = yes; then
5229   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5230   if test "$cross_compiling" = yes; then
5231   :
5232 else
5233   cat >conftest.$ac_ext <<_ACEOF
5234 /* confdefs.h.  */
5235 _ACEOF
5236 cat confdefs.h >>conftest.$ac_ext
5237 cat >>conftest.$ac_ext <<_ACEOF
5238 /* end confdefs.h.  */
5239 #include <ctype.h>
5240 #if ((' ' & 0x0FF) == 0x020)
5241 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5242 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5243 #else
5244 # define ISLOWER(c) \
5245                    (('a' <= (c) && (c) <= 'i') \
5246                      || ('j' <= (c) && (c) <= 'r') \
5247                      || ('s' <= (c) && (c) <= 'z'))
5248 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5249 #endif
5250
5251 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5252 int
5253 main ()
5254 {
5255   int i;
5256   for (i = 0; i < 256; i++)
5257     if (XOR (islower (i), ISLOWER (i))
5258         || toupper (i) != TOUPPER (i))
5259       exit(2);
5260   exit (0);
5261 }
5262 _ACEOF
5263 rm -f conftest$ac_exeext
5264 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5265   (eval $ac_link) 2>&5
5266   ac_status=$?
5267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5268   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5269   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5270   (eval $ac_try) 2>&5
5271   ac_status=$?
5272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5273   (exit $ac_status); }; }; then
5274   :
5275 else
5276   echo "$as_me: program exited with status $ac_status" >&5
5277 echo "$as_me: failed program was:" >&5
5278 sed 's/^/| /' conftest.$ac_ext >&5
5279
5280 ( exit $ac_status )
5281 ac_cv_header_stdc=no
5282 fi
5283 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5284 fi
5285 fi
5286 fi
5287 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5288 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5289 if test $ac_cv_header_stdc = yes; then
5290
5291 cat >>confdefs.h <<\_ACEOF
5292 #define STDC_HEADERS 1
5293 _ACEOF
5294
5295 fi
5296
5297 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5308                   inttypes.h stdint.h unistd.h
5309 do
5310 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5311 echo "$as_me:$LINENO: checking for $ac_header" >&5
5312 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5313 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5314   echo $ECHO_N "(cached) $ECHO_C" >&6
5315 else
5316   cat >conftest.$ac_ext <<_ACEOF
5317 /* confdefs.h.  */
5318 _ACEOF
5319 cat confdefs.h >>conftest.$ac_ext
5320 cat >>conftest.$ac_ext <<_ACEOF
5321 /* end confdefs.h.  */
5322 $ac_includes_default
5323
5324 #include <$ac_header>
5325 _ACEOF
5326 rm -f conftest.$ac_objext
5327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5328   (eval $ac_compile) 2>conftest.er1
5329   ac_status=$?
5330   grep -v '^ *+' conftest.er1 >conftest.err
5331   rm -f conftest.er1
5332   cat conftest.err >&5
5333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5334   (exit $ac_status); } &&
5335          { ac_try='test -z "$ac_c_werror_flag"
5336                          || test ! -s conftest.err'
5337   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5338   (eval $ac_try) 2>&5
5339   ac_status=$?
5340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5341   (exit $ac_status); }; } &&
5342          { ac_try='test -s conftest.$ac_objext'
5343   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5344   (eval $ac_try) 2>&5
5345   ac_status=$?
5346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5347   (exit $ac_status); }; }; then
5348   eval "$as_ac_Header=yes"
5349 else
5350   echo "$as_me: failed program was:" >&5
5351 sed 's/^/| /' conftest.$ac_ext >&5
5352
5353 eval "$as_ac_Header=no"
5354 fi
5355 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5356 fi
5357 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5358 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5359 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5360   cat >>confdefs.h <<_ACEOF
5361 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5362 _ACEOF
5363
5364 fi
5365
5366 done
5367
5368
5369 if test "${ac_cv_header_termcap_h+set}" = set; then
5370   echo "$as_me:$LINENO: checking for termcap.h" >&5
5371 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
5372 if test "${ac_cv_header_termcap_h+set}" = set; then
5373   echo $ECHO_N "(cached) $ECHO_C" >&6
5374 fi
5375 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
5376 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
5377 else
5378   # Is the header compilable?
5379 echo "$as_me:$LINENO: checking termcap.h usability" >&5
5380 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6
5381 cat >conftest.$ac_ext <<_ACEOF
5382 /* confdefs.h.  */
5383 _ACEOF
5384 cat confdefs.h >>conftest.$ac_ext
5385 cat >>conftest.$ac_ext <<_ACEOF
5386 /* end confdefs.h.  */
5387 $ac_includes_default
5388 #include <termcap.h>
5389 _ACEOF
5390 rm -f conftest.$ac_objext
5391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5392   (eval $ac_compile) 2>conftest.er1
5393   ac_status=$?
5394   grep -v '^ *+' conftest.er1 >conftest.err
5395   rm -f conftest.er1
5396   cat conftest.err >&5
5397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5398   (exit $ac_status); } &&
5399          { ac_try='test -z "$ac_c_werror_flag"
5400                          || test ! -s conftest.err'
5401   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5402   (eval $ac_try) 2>&5
5403   ac_status=$?
5404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5405   (exit $ac_status); }; } &&
5406          { ac_try='test -s conftest.$ac_objext'
5407   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5408   (eval $ac_try) 2>&5
5409   ac_status=$?
5410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5411   (exit $ac_status); }; }; then
5412   ac_header_compiler=yes
5413 else
5414   echo "$as_me: failed program was:" >&5
5415 sed 's/^/| /' conftest.$ac_ext >&5
5416
5417 ac_header_compiler=no
5418 fi
5419 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5420 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5421 echo "${ECHO_T}$ac_header_compiler" >&6
5422
5423 # Is the header present?
5424 echo "$as_me:$LINENO: checking termcap.h presence" >&5
5425 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6
5426 cat >conftest.$ac_ext <<_ACEOF
5427 /* confdefs.h.  */
5428 _ACEOF
5429 cat confdefs.h >>conftest.$ac_ext
5430 cat >>conftest.$ac_ext <<_ACEOF
5431 /* end confdefs.h.  */
5432 #include <termcap.h>
5433 _ACEOF
5434 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5435   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5436   ac_status=$?
5437   grep -v '^ *+' conftest.er1 >conftest.err
5438   rm -f conftest.er1
5439   cat conftest.err >&5
5440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5441   (exit $ac_status); } >/dev/null; then
5442   if test -s conftest.err; then
5443     ac_cpp_err=$ac_c_preproc_warn_flag
5444     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5445   else
5446     ac_cpp_err=
5447   fi
5448 else
5449   ac_cpp_err=yes
5450 fi
5451 if test -z "$ac_cpp_err"; then
5452   ac_header_preproc=yes
5453 else
5454   echo "$as_me: failed program was:" >&5
5455 sed 's/^/| /' conftest.$ac_ext >&5
5456
5457   ac_header_preproc=no
5458 fi
5459 rm -f conftest.err conftest.$ac_ext
5460 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5461 echo "${ECHO_T}$ac_header_preproc" >&6
5462
5463 # So?  What about this header?
5464 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5465   yes:no: )
5466     { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
5467 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5468     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the compiler's result" >&5
5469 echo "$as_me: WARNING: termcap.h: proceeding with the compiler's result" >&2;}
5470     ac_header_preproc=yes
5471     ;;
5472   no:yes:* )
5473     { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
5474 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
5475     { echo "$as_me:$LINENO: WARNING: termcap.h:     check for missing prerequisite headers?" >&5
5476 echo "$as_me: WARNING: termcap.h:     check for missing prerequisite headers?" >&2;}
5477     { echo "$as_me:$LINENO: WARNING: termcap.h: see the Autoconf documentation" >&5
5478 echo "$as_me: WARNING: termcap.h: see the Autoconf documentation" >&2;}
5479     { echo "$as_me:$LINENO: WARNING: termcap.h:     section \"Present But Cannot Be Compiled\"" >&5
5480 echo "$as_me: WARNING: termcap.h:     section \"Present But Cannot Be Compiled\"" >&2;}
5481     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
5482 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
5483     { echo "$as_me:$LINENO: WARNING: termcap.h: in the future, the compiler will take precedence" >&5
5484 echo "$as_me: WARNING: termcap.h: in the future, the compiler will take precedence" >&2;}
5485     (
5486       cat <<\_ASBOX
5487 ## ------------------------------------------ ##
5488 ## Report this to the AC_PACKAGE_NAME lists.  ##
5489 ## ------------------------------------------ ##
5490 _ASBOX
5491     ) |
5492       sed "s/^/$as_me: WARNING:     /" >&2
5493     ;;
5494 esac
5495 echo "$as_me:$LINENO: checking for termcap.h" >&5
5496 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
5497 if test "${ac_cv_header_termcap_h+set}" = set; then
5498   echo $ECHO_N "(cached) $ECHO_C" >&6
5499 else
5500   ac_cv_header_termcap_h=$ac_header_preproc
5501 fi
5502 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
5503 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
5504
5505 fi
5506 if test $ac_cv_header_termcap_h = yes; then
5507    echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
5508 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
5509 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
5510   echo $ECHO_N "(cached) $ECHO_C" >&6
5511 else
5512   ac_check_lib_save_LIBS=$LIBS
5513 LIBS="-ltermcap  $LIBS"
5514 cat >conftest.$ac_ext <<_ACEOF
5515 /* confdefs.h.  */
5516 _ACEOF
5517 cat confdefs.h >>conftest.$ac_ext
5518 cat >>conftest.$ac_ext <<_ACEOF
5519 /* end confdefs.h.  */
5520
5521 /* Override any gcc2 internal prototype to avoid an error.  */
5522 #ifdef __cplusplus
5523 extern "C"
5524 #endif
5525 /* We use char because int might match the return type of a gcc2
5526    builtin and then its argument prototype would still apply.  */
5527 char tgetent ();
5528 int
5529 main ()
5530 {
5531 tgetent ();
5532   ;
5533   return 0;
5534 }
5535 _ACEOF
5536 rm -f conftest.$ac_objext conftest$ac_exeext
5537 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5538   (eval $ac_link) 2>conftest.er1
5539   ac_status=$?
5540   grep -v '^ *+' conftest.er1 >conftest.err
5541   rm -f conftest.er1
5542   cat conftest.err >&5
5543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5544   (exit $ac_status); } &&
5545          { ac_try='test -z "$ac_c_werror_flag"
5546                          || test ! -s conftest.err'
5547   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5548   (eval $ac_try) 2>&5
5549   ac_status=$?
5550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5551   (exit $ac_status); }; } &&
5552          { ac_try='test -s conftest$ac_exeext'
5553   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5554   (eval $ac_try) 2>&5
5555   ac_status=$?
5556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5557   (exit $ac_status); }; }; then
5558   ac_cv_lib_termcap_tgetent=yes
5559 else
5560   echo "$as_me: failed program was:" >&5
5561 sed 's/^/| /' conftest.$ac_ext >&5
5562
5563 ac_cv_lib_termcap_tgetent=no
5564 fi
5565 rm -f conftest.err conftest.$ac_objext \
5566       conftest$ac_exeext conftest.$ac_ext
5567 LIBS=$ac_check_lib_save_LIBS
5568 fi
5569 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
5570 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
5571 if test $ac_cv_lib_termcap_tgetent = yes; then
5572    CONS_LIBS="-ltermcap"
5573          CONS_OBJ="conio.o"
5574          CONS_SRC="conio.c"
5575          got_conio="yes"
5576          support_readline=no
5577
5578 cat >>confdefs.h <<\_ACEOF
5579 #define HAVE_CONIO 1
5580 _ACEOF
5581
5582
5583 else
5584    echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
5585 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6
5586 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
5587   echo $ECHO_N "(cached) $ECHO_C" >&6
5588 else
5589   ac_check_lib_save_LIBS=$LIBS
5590 LIBS="-lncurses  $LIBS"
5591 cat >conftest.$ac_ext <<_ACEOF
5592 /* confdefs.h.  */
5593 _ACEOF
5594 cat confdefs.h >>conftest.$ac_ext
5595 cat >>conftest.$ac_ext <<_ACEOF
5596 /* end confdefs.h.  */
5597
5598 /* Override any gcc2 internal prototype to avoid an error.  */
5599 #ifdef __cplusplus
5600 extern "C"
5601 #endif
5602 /* We use char because int might match the return type of a gcc2
5603    builtin and then its argument prototype would still apply.  */
5604 char tgetent ();
5605 int
5606 main ()
5607 {
5608 tgetent ();
5609   ;
5610   return 0;
5611 }
5612 _ACEOF
5613 rm -f conftest.$ac_objext conftest$ac_exeext
5614 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5615   (eval $ac_link) 2>conftest.er1
5616   ac_status=$?
5617   grep -v '^ *+' conftest.er1 >conftest.err
5618   rm -f conftest.er1
5619   cat conftest.err >&5
5620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5621   (exit $ac_status); } &&
5622          { ac_try='test -z "$ac_c_werror_flag"
5623                          || test ! -s conftest.err'
5624   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5625   (eval $ac_try) 2>&5
5626   ac_status=$?
5627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5628   (exit $ac_status); }; } &&
5629          { ac_try='test -s conftest$ac_exeext'
5630   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5631   (eval $ac_try) 2>&5
5632   ac_status=$?
5633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5634   (exit $ac_status); }; }; then
5635   ac_cv_lib_ncurses_tgetent=yes
5636 else
5637   echo "$as_me: failed program was:" >&5
5638 sed 's/^/| /' conftest.$ac_ext >&5
5639
5640 ac_cv_lib_ncurses_tgetent=no
5641 fi
5642 rm -f conftest.err conftest.$ac_objext \
5643       conftest$ac_exeext conftest.$ac_ext
5644 LIBS=$ac_check_lib_save_LIBS
5645 fi
5646 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
5647 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6
5648 if test $ac_cv_lib_ncurses_tgetent = yes; then
5649    CONS_LIBS="-lncurses"
5650            CONS_OBJ="conio.o"
5651            CONS_SRC="conio.c"
5652            got_conio="yes"
5653            support_readline=no
5654
5655 cat >>confdefs.h <<\_ACEOF
5656 #define HAVE_CONIO 1
5657 _ACEOF
5658
5659
5660 fi
5661
5662
5663 fi
5664
5665
5666 else
5667
5668
5669 for ac_header in curses.h
5670 do
5671 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5672 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5673   echo "$as_me:$LINENO: checking for $ac_header" >&5
5674 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5675 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5676   echo $ECHO_N "(cached) $ECHO_C" >&6
5677 fi
5678 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5679 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5680 else
5681   # Is the header compilable?
5682 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5683 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5684 cat >conftest.$ac_ext <<_ACEOF
5685 /* confdefs.h.  */
5686 _ACEOF
5687 cat confdefs.h >>conftest.$ac_ext
5688 cat >>conftest.$ac_ext <<_ACEOF
5689 /* end confdefs.h.  */
5690 $ac_includes_default
5691 #include <$ac_header>
5692 _ACEOF
5693 rm -f conftest.$ac_objext
5694 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5695   (eval $ac_compile) 2>conftest.er1
5696   ac_status=$?
5697   grep -v '^ *+' conftest.er1 >conftest.err
5698   rm -f conftest.er1
5699   cat conftest.err >&5
5700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5701   (exit $ac_status); } &&
5702          { ac_try='test -z "$ac_c_werror_flag"
5703                          || test ! -s conftest.err'
5704   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5705   (eval $ac_try) 2>&5
5706   ac_status=$?
5707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5708   (exit $ac_status); }; } &&
5709          { ac_try='test -s conftest.$ac_objext'
5710   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5711   (eval $ac_try) 2>&5
5712   ac_status=$?
5713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5714   (exit $ac_status); }; }; then
5715   ac_header_compiler=yes
5716 else
5717   echo "$as_me: failed program was:" >&5
5718 sed 's/^/| /' conftest.$ac_ext >&5
5719
5720 ac_header_compiler=no
5721 fi
5722 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5723 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5724 echo "${ECHO_T}$ac_header_compiler" >&6
5725
5726 # Is the header present?
5727 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5728 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5729 cat >conftest.$ac_ext <<_ACEOF
5730 /* confdefs.h.  */
5731 _ACEOF
5732 cat confdefs.h >>conftest.$ac_ext
5733 cat >>conftest.$ac_ext <<_ACEOF
5734 /* end confdefs.h.  */
5735 #include <$ac_header>
5736 _ACEOF
5737 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5738   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5739   ac_status=$?
5740   grep -v '^ *+' conftest.er1 >conftest.err
5741   rm -f conftest.er1
5742   cat conftest.err >&5
5743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5744   (exit $ac_status); } >/dev/null; then
5745   if test -s conftest.err; then
5746     ac_cpp_err=$ac_c_preproc_warn_flag
5747     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5748   else
5749     ac_cpp_err=
5750   fi
5751 else
5752   ac_cpp_err=yes
5753 fi
5754 if test -z "$ac_cpp_err"; then
5755   ac_header_preproc=yes
5756 else
5757   echo "$as_me: failed program was:" >&5
5758 sed 's/^/| /' conftest.$ac_ext >&5
5759
5760   ac_header_preproc=no
5761 fi
5762 rm -f conftest.err conftest.$ac_ext
5763 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5764 echo "${ECHO_T}$ac_header_preproc" >&6
5765
5766 # So?  What about this header?
5767 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5768   yes:no: )
5769     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5770 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5771     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5772 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5773     ac_header_preproc=yes
5774     ;;
5775   no:yes:* )
5776     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5777 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5778     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5779 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5780     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5781 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5782     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5783 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5784     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5785 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5786     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5787 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5788     (
5789       cat <<\_ASBOX
5790 ## ------------------------------------------ ##
5791 ## Report this to the AC_PACKAGE_NAME lists.  ##
5792 ## ------------------------------------------ ##
5793 _ASBOX
5794     ) |
5795       sed "s/^/$as_me: WARNING:     /" >&2
5796     ;;
5797 esac
5798 echo "$as_me:$LINENO: checking for $ac_header" >&5
5799 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5800 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5801   echo $ECHO_N "(cached) $ECHO_C" >&6
5802 else
5803   eval "$as_ac_Header=\$ac_header_preproc"
5804 fi
5805 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5806 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5807
5808 fi
5809 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5810   cat >>confdefs.h <<_ACEOF
5811 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5812 _ACEOF
5813
5814 fi
5815
5816 done
5817
5818          echo "$as_me:$LINENO: checking for term.h" >&5
5819 echo $ECHO_N "checking for term.h... $ECHO_C" >&6
5820 if test "${ac_cv_header_term_h+set}" = set; then
5821   echo $ECHO_N "(cached) $ECHO_C" >&6
5822 else
5823   cat >conftest.$ac_ext <<_ACEOF
5824 /* confdefs.h.  */
5825 _ACEOF
5826 cat confdefs.h >>conftest.$ac_ext
5827 cat >>conftest.$ac_ext <<_ACEOF
5828 /* end confdefs.h.  */
5829 #if HAVE_CURSES_H
5830 #include <curses.h>
5831 #endif
5832
5833
5834 #include <term.h>
5835 _ACEOF
5836 rm -f conftest.$ac_objext
5837 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5838   (eval $ac_compile) 2>conftest.er1
5839   ac_status=$?
5840   grep -v '^ *+' conftest.er1 >conftest.err
5841   rm -f conftest.er1
5842   cat conftest.err >&5
5843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5844   (exit $ac_status); } &&
5845          { ac_try='test -z "$ac_c_werror_flag"
5846                          || test ! -s conftest.err'
5847   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5848   (eval $ac_try) 2>&5
5849   ac_status=$?
5850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5851   (exit $ac_status); }; } &&
5852          { ac_try='test -s conftest.$ac_objext'
5853   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5854   (eval $ac_try) 2>&5
5855   ac_status=$?
5856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5857   (exit $ac_status); }; }; then
5858   ac_cv_header_term_h=yes
5859 else
5860   echo "$as_me: failed program was:" >&5
5861 sed 's/^/| /' conftest.$ac_ext >&5
5862
5863 ac_cv_header_term_h=no
5864 fi
5865 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5866 fi
5867 echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
5868 echo "${ECHO_T}$ac_cv_header_term_h" >&6
5869 if test $ac_cv_header_term_h = yes; then
5870    echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
5871 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6
5872 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
5873   echo $ECHO_N "(cached) $ECHO_C" >&6
5874 else
5875   ac_check_lib_save_LIBS=$LIBS
5876 LIBS="-lcurses  $LIBS"
5877 cat >conftest.$ac_ext <<_ACEOF
5878 /* confdefs.h.  */
5879 _ACEOF
5880 cat confdefs.h >>conftest.$ac_ext
5881 cat >>conftest.$ac_ext <<_ACEOF
5882 /* end confdefs.h.  */
5883
5884 /* Override any gcc2 internal prototype to avoid an error.  */
5885 #ifdef __cplusplus
5886 extern "C"
5887 #endif
5888 /* We use char because int might match the return type of a gcc2
5889    builtin and then its argument prototype would still apply.  */
5890 char tgetent ();
5891 int
5892 main ()
5893 {
5894 tgetent ();
5895   ;
5896   return 0;
5897 }
5898 _ACEOF
5899 rm -f conftest.$ac_objext conftest$ac_exeext
5900 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5901   (eval $ac_link) 2>conftest.er1
5902   ac_status=$?
5903   grep -v '^ *+' conftest.er1 >conftest.err
5904   rm -f conftest.er1
5905   cat conftest.err >&5
5906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5907   (exit $ac_status); } &&
5908          { ac_try='test -z "$ac_c_werror_flag"
5909                          || test ! -s conftest.err'
5910   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5911   (eval $ac_try) 2>&5
5912   ac_status=$?
5913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5914   (exit $ac_status); }; } &&
5915          { ac_try='test -s conftest$ac_exeext'
5916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5917   (eval $ac_try) 2>&5
5918   ac_status=$?
5919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5920   (exit $ac_status); }; }; then
5921   ac_cv_lib_curses_tgetent=yes
5922 else
5923   echo "$as_me: failed program was:" >&5
5924 sed 's/^/| /' conftest.$ac_ext >&5
5925
5926 ac_cv_lib_curses_tgetent=no
5927 fi
5928 rm -f conftest.err conftest.$ac_objext \
5929       conftest$ac_exeext conftest.$ac_ext
5930 LIBS=$ac_check_lib_save_LIBS
5931 fi
5932 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
5933 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6
5934 if test $ac_cv_lib_curses_tgetent = yes; then
5935    CONS_LIBS="-lcurses"
5936                    CONS_OBJ="conio.o"
5937                    CONS_SRC="conio.c"
5938                    got_conio="yes"
5939                    support_readline=no
5940
5941 cat >>confdefs.h <<\_ACEOF
5942 #define HAVE_CONIO 1
5943 _ACEOF
5944
5945
5946 fi
5947
5948
5949 else
5950    echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
5951 fi
5952
5953
5954
5955 fi
5956
5957
5958 fi
5959
5960
5961 # ---------------------------------------------------
5962 # Check for readline support/directory (default off)
5963 # ---------------------------------------------------
5964 # this allows you to turn it completely off
5965 # Check whether --enable-readline or --disable-readline was given.
5966 if test "${enable_readline+set}" = set; then
5967   enableval="$enable_readline"
5968   if test x$enableval = xno; then
5969     support_readline=no
5970   fi
5971 fi;
5972
5973 got_readline="no"
5974 READLINE_SRC=
5975 if test x$support_readline = xyes; then
5976
5977 # Check whether --with-readline or --without-readline was given.
5978 if test "${with_readline+set}" = set; then
5979   withval="$with_readline"
5980
5981         case "$with_readline" in
5982         no) : ;;
5983         yes|*)
5984           if test -f ${with_readline}/readline.h; then
5985              CONS_INC="-I${with_readline}"
5986              CONS_LDFLAGS="-L$with_readline"
5987           elif test -f ${with_readline}/include/readline/readline.h; then
5988              CONS_INC="-I${with_readline}/include/readline"
5989              CONS_LDFLAGS="-L${with_readline}/lib"
5990              with_readline="${with_readline}/include/readline"
5991           else
5992              with_readline="/usr/include/readline"
5993           fi
5994           as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
5995 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5996   echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
5997 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
5998 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5999   echo $ECHO_N "(cached) $ECHO_C" >&6
6000 fi
6001 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6002 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6003 else
6004   # Is the header compilable?
6005 echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
6006 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6
6007 cat >conftest.$ac_ext <<_ACEOF
6008 /* confdefs.h.  */
6009 _ACEOF
6010 cat confdefs.h >>conftest.$ac_ext
6011 cat >>conftest.$ac_ext <<_ACEOF
6012 /* end confdefs.h.  */
6013 $ac_includes_default
6014 #include <${with_readline}/readline.h>
6015 _ACEOF
6016 rm -f conftest.$ac_objext
6017 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6018   (eval $ac_compile) 2>conftest.er1
6019   ac_status=$?
6020   grep -v '^ *+' conftest.er1 >conftest.err
6021   rm -f conftest.er1
6022   cat conftest.err >&5
6023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6024   (exit $ac_status); } &&
6025          { ac_try='test -z "$ac_c_werror_flag"
6026                          || test ! -s conftest.err'
6027   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6028   (eval $ac_try) 2>&5
6029   ac_status=$?
6030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6031   (exit $ac_status); }; } &&
6032          { ac_try='test -s conftest.$ac_objext'
6033   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6034   (eval $ac_try) 2>&5
6035   ac_status=$?
6036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6037   (exit $ac_status); }; }; then
6038   ac_header_compiler=yes
6039 else
6040   echo "$as_me: failed program was:" >&5
6041 sed 's/^/| /' conftest.$ac_ext >&5
6042
6043 ac_header_compiler=no
6044 fi
6045 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6046 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6047 echo "${ECHO_T}$ac_header_compiler" >&6
6048
6049 # Is the header present?
6050 echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
6051 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6
6052 cat >conftest.$ac_ext <<_ACEOF
6053 /* confdefs.h.  */
6054 _ACEOF
6055 cat confdefs.h >>conftest.$ac_ext
6056 cat >>conftest.$ac_ext <<_ACEOF
6057 /* end confdefs.h.  */
6058 #include <${with_readline}/readline.h>
6059 _ACEOF
6060 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6061   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6062   ac_status=$?
6063   grep -v '^ *+' conftest.er1 >conftest.err
6064   rm -f conftest.er1
6065   cat conftest.err >&5
6066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6067   (exit $ac_status); } >/dev/null; then
6068   if test -s conftest.err; then
6069     ac_cpp_err=$ac_c_preproc_warn_flag
6070     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6071   else
6072     ac_cpp_err=
6073   fi
6074 else
6075   ac_cpp_err=yes
6076 fi
6077 if test -z "$ac_cpp_err"; then
6078   ac_header_preproc=yes
6079 else
6080   echo "$as_me: failed program was:" >&5
6081 sed 's/^/| /' conftest.$ac_ext >&5
6082
6083   ac_header_preproc=no
6084 fi
6085 rm -f conftest.err conftest.$ac_ext
6086 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6087 echo "${ECHO_T}$ac_header_preproc" >&6
6088
6089 # So?  What about this header?
6090 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6091   yes:no: )
6092     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
6093 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6094     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&5
6095 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&2;}
6096     ac_header_preproc=yes
6097     ;;
6098   no:yes:* )
6099     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
6100 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
6101     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h:     check for missing prerequisite headers?" >&5
6102 echo "$as_me: WARNING: ${with_readline}/readline.h:     check for missing prerequisite headers?" >&2;}
6103     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&5
6104 echo "$as_me: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&2;}
6105     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
6106 echo "$as_me: WARNING: ${with_readline}/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
6107     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
6108 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
6109     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&5
6110 echo "$as_me: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&2;}
6111     (
6112       cat <<\_ASBOX
6113 ## ------------------------------------------ ##
6114 ## Report this to the AC_PACKAGE_NAME lists.  ##
6115 ## ------------------------------------------ ##
6116 _ASBOX
6117     ) |
6118       sed "s/^/$as_me: WARNING:     /" >&2
6119     ;;
6120 esac
6121 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
6122 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
6123 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6124   echo $ECHO_N "(cached) $ECHO_C" >&6
6125 else
6126   eval "$as_ac_Header=\$ac_header_preproc"
6127 fi
6128 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6129 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6130
6131 fi
6132 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6133    cat >>confdefs.h <<\_ACEOF
6134 #define HAVE_READLINE 1
6135 _ACEOF
6136
6137                CONS_LIBS="-lreadline -lhistory -ltermcap"
6138                got_readline="yes"
6139
6140 else
6141    echo " "
6142                echo "readline.h not found. readline turned off ..."
6143                echo " "
6144
6145
6146 fi
6147
6148
6149           ;;
6150         esac
6151
6152 else
6153
6154        # check for standard readline library
6155        if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
6156   echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
6157 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
6158 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
6159   echo $ECHO_N "(cached) $ECHO_C" >&6
6160 fi
6161 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
6162 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
6163 else
6164   # Is the header compilable?
6165 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
6166 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6
6167 cat >conftest.$ac_ext <<_ACEOF
6168 /* confdefs.h.  */
6169 _ACEOF
6170 cat confdefs.h >>conftest.$ac_ext
6171 cat >>conftest.$ac_ext <<_ACEOF
6172 /* end confdefs.h.  */
6173 $ac_includes_default
6174 #include </usr/include/readline/readline.h>
6175 _ACEOF
6176 rm -f conftest.$ac_objext
6177 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6178   (eval $ac_compile) 2>conftest.er1
6179   ac_status=$?
6180   grep -v '^ *+' conftest.er1 >conftest.err
6181   rm -f conftest.er1
6182   cat conftest.err >&5
6183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6184   (exit $ac_status); } &&
6185          { ac_try='test -z "$ac_c_werror_flag"
6186                          || test ! -s conftest.err'
6187   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6188   (eval $ac_try) 2>&5
6189   ac_status=$?
6190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6191   (exit $ac_status); }; } &&
6192          { ac_try='test -s conftest.$ac_objext'
6193   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6194   (eval $ac_try) 2>&5
6195   ac_status=$?
6196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6197   (exit $ac_status); }; }; then
6198   ac_header_compiler=yes
6199 else
6200   echo "$as_me: failed program was:" >&5
6201 sed 's/^/| /' conftest.$ac_ext >&5
6202
6203 ac_header_compiler=no
6204 fi
6205 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6206 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6207 echo "${ECHO_T}$ac_header_compiler" >&6
6208
6209 # Is the header present?
6210 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
6211 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6
6212 cat >conftest.$ac_ext <<_ACEOF
6213 /* confdefs.h.  */
6214 _ACEOF
6215 cat confdefs.h >>conftest.$ac_ext
6216 cat >>conftest.$ac_ext <<_ACEOF
6217 /* end confdefs.h.  */
6218 #include </usr/include/readline/readline.h>
6219 _ACEOF
6220 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6221   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6222   ac_status=$?
6223   grep -v '^ *+' conftest.er1 >conftest.err
6224   rm -f conftest.er1
6225   cat conftest.err >&5
6226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6227   (exit $ac_status); } >/dev/null; then
6228   if test -s conftest.err; then
6229     ac_cpp_err=$ac_c_preproc_warn_flag
6230     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6231   else
6232     ac_cpp_err=
6233   fi
6234 else
6235   ac_cpp_err=yes
6236 fi
6237 if test -z "$ac_cpp_err"; then
6238   ac_header_preproc=yes
6239 else
6240   echo "$as_me: failed program was:" >&5
6241 sed 's/^/| /' conftest.$ac_ext >&5
6242
6243   ac_header_preproc=no
6244 fi
6245 rm -f conftest.err conftest.$ac_ext
6246 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6247 echo "${ECHO_T}$ac_header_preproc" >&6
6248
6249 # So?  What about this header?
6250 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6251   yes:no: )
6252     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
6253 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6254     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&5
6255 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&2;}
6256     ac_header_preproc=yes
6257     ;;
6258   no:yes:* )
6259     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
6260 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
6261     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h:     check for missing prerequisite headers?" >&5
6262 echo "$as_me: WARNING: /usr/include/readline/readline.h:     check for missing prerequisite headers?" >&2;}
6263     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&5
6264 echo "$as_me: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&2;}
6265     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
6266 echo "$as_me: WARNING: /usr/include/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
6267     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
6268 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
6269     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&5
6270 echo "$as_me: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&2;}
6271     (
6272       cat <<\_ASBOX
6273 ## ------------------------------------------ ##
6274 ## Report this to the AC_PACKAGE_NAME lists.  ##
6275 ## ------------------------------------------ ##
6276 _ASBOX
6277     ) |
6278       sed "s/^/$as_me: WARNING:     /" >&2
6279     ;;
6280 esac
6281 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
6282 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
6283 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
6284   echo $ECHO_N "(cached) $ECHO_C" >&6
6285 else
6286   ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
6287 fi
6288 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
6289 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
6290
6291 fi
6292 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
6293    cat >>confdefs.h <<\_ACEOF
6294 #define HAVE_READLINE 1
6295 _ACEOF
6296
6297            got_readline="yes"
6298            CONS_INC="-I/usr/include/readline"
6299            CONS_LIBS="-lreadline -ltermcap"
6300
6301 else
6302
6303            # Did not find standard library, so try Bacula's default
6304             as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
6305 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6306   echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
6307 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
6308 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6309   echo $ECHO_N "(cached) $ECHO_C" >&6
6310 fi
6311 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6312 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6313 else
6314   # Is the header compilable?
6315 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
6316 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6
6317 cat >conftest.$ac_ext <<_ACEOF
6318 /* confdefs.h.  */
6319 _ACEOF
6320 cat confdefs.h >>conftest.$ac_ext
6321 cat >>conftest.$ac_ext <<_ACEOF
6322 /* end confdefs.h.  */
6323 $ac_includes_default
6324 #include <${TOP_DIR}/depkgs/readline/readline.h>
6325 _ACEOF
6326 rm -f conftest.$ac_objext
6327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6328   (eval $ac_compile) 2>conftest.er1
6329   ac_status=$?
6330   grep -v '^ *+' conftest.er1 >conftest.err
6331   rm -f conftest.er1
6332   cat conftest.err >&5
6333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6334   (exit $ac_status); } &&
6335          { ac_try='test -z "$ac_c_werror_flag"
6336                          || test ! -s conftest.err'
6337   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6338   (eval $ac_try) 2>&5
6339   ac_status=$?
6340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6341   (exit $ac_status); }; } &&
6342          { ac_try='test -s conftest.$ac_objext'
6343   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6344   (eval $ac_try) 2>&5
6345   ac_status=$?
6346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6347   (exit $ac_status); }; }; then
6348   ac_header_compiler=yes
6349 else
6350   echo "$as_me: failed program was:" >&5
6351 sed 's/^/| /' conftest.$ac_ext >&5
6352
6353 ac_header_compiler=no
6354 fi
6355 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6356 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6357 echo "${ECHO_T}$ac_header_compiler" >&6
6358
6359 # Is the header present?
6360 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
6361 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6
6362 cat >conftest.$ac_ext <<_ACEOF
6363 /* confdefs.h.  */
6364 _ACEOF
6365 cat confdefs.h >>conftest.$ac_ext
6366 cat >>conftest.$ac_ext <<_ACEOF
6367 /* end confdefs.h.  */
6368 #include <${TOP_DIR}/depkgs/readline/readline.h>
6369 _ACEOF
6370 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6371   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6372   ac_status=$?
6373   grep -v '^ *+' conftest.er1 >conftest.err
6374   rm -f conftest.er1
6375   cat conftest.err >&5
6376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6377   (exit $ac_status); } >/dev/null; then
6378   if test -s conftest.err; then
6379     ac_cpp_err=$ac_c_preproc_warn_flag
6380     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6381   else
6382     ac_cpp_err=
6383   fi
6384 else
6385   ac_cpp_err=yes
6386 fi
6387 if test -z "$ac_cpp_err"; then
6388   ac_header_preproc=yes
6389 else
6390   echo "$as_me: failed program was:" >&5
6391 sed 's/^/| /' conftest.$ac_ext >&5
6392
6393   ac_header_preproc=no
6394 fi
6395 rm -f conftest.err conftest.$ac_ext
6396 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6397 echo "${ECHO_T}$ac_header_preproc" >&6
6398
6399 # So?  What about this header?
6400 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6401   yes:no: )
6402     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
6403 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6404     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&5
6405 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&2;}
6406     ac_header_preproc=yes
6407     ;;
6408   no:yes:* )
6409     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
6410 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
6411     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     check for missing prerequisite headers?" >&5
6412 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     check for missing prerequisite headers?" >&2;}
6413     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&5
6414 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&2;}
6415     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
6416 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
6417     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
6418 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
6419     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&5
6420 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&2;}
6421     (
6422       cat <<\_ASBOX
6423 ## ------------------------------------------ ##
6424 ## Report this to the AC_PACKAGE_NAME lists.  ##
6425 ## ------------------------------------------ ##
6426 _ASBOX
6427     ) |
6428       sed "s/^/$as_me: WARNING:     /" >&2
6429     ;;
6430 esac
6431 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
6432 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
6433 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6434   echo $ECHO_N "(cached) $ECHO_C" >&6
6435 else
6436   eval "$as_ac_Header=\$ac_header_preproc"
6437 fi
6438 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6439 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6440
6441 fi
6442 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6443    cat >>confdefs.h <<\_ACEOF
6444 #define HAVE_READLINE 1
6445 _ACEOF
6446
6447                  got_readline="yes"
6448                  CONS_INC="-I${TOP_DIR}/depkgs/readline"
6449                  CONS_LIBS="-lreadline -lhistory -ltermcap"
6450                  CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
6451                  PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
6452
6453 else
6454    echo " "
6455                 echo "readline.h not found. readline turned off ..."
6456                 echo " "
6457
6458
6459 fi
6460
6461
6462
6463
6464 fi
6465
6466
6467
6468
6469 fi;
6470 fi
6471
6472
6473
6474
6475
6476
6477
6478
6479
6480
6481 # Minimal stuff for readline Makefile configuration
6482 MAKE_SHELL=/bin/sh
6483
6484 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
6485 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
6486 if test "${ac_cv_header_stat_broken+set}" = set; then
6487   echo $ECHO_N "(cached) $ECHO_C" >&6
6488 else
6489   cat >conftest.$ac_ext <<_ACEOF
6490 /* confdefs.h.  */
6491 _ACEOF
6492 cat confdefs.h >>conftest.$ac_ext
6493 cat >>conftest.$ac_ext <<_ACEOF
6494 /* end confdefs.h.  */
6495 #include <sys/types.h>
6496 #include <sys/stat.h>
6497
6498 #if defined(S_ISBLK) && defined(S_IFDIR)
6499 # if S_ISBLK (S_IFDIR)
6500 You lose.
6501 # endif
6502 #endif
6503
6504 #if defined(S_ISBLK) && defined(S_IFCHR)
6505 # if S_ISBLK (S_IFCHR)
6506 You lose.
6507 # endif
6508 #endif
6509
6510 #if defined(S_ISLNK) && defined(S_IFREG)
6511 # if S_ISLNK (S_IFREG)
6512 You lose.
6513 # endif
6514 #endif
6515
6516 #if defined(S_ISSOCK) && defined(S_IFREG)
6517 # if S_ISSOCK (S_IFREG)
6518 You lose.
6519 # endif
6520 #endif
6521
6522 _ACEOF
6523 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6524   $EGREP "You lose" >/dev/null 2>&1; then
6525   ac_cv_header_stat_broken=yes
6526 else
6527   ac_cv_header_stat_broken=no
6528 fi
6529 rm -f conftest*
6530
6531 fi
6532 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
6533 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
6534 if test $ac_cv_header_stat_broken = yes; then
6535
6536 cat >>confdefs.h <<\_ACEOF
6537 #define STAT_MACROS_BROKEN 1
6538 _ACEOF
6539
6540 fi
6541
6542
6543
6544
6545
6546
6547 ac_header_dirent=no
6548 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6549   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6550 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6551 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
6552 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6553   echo $ECHO_N "(cached) $ECHO_C" >&6
6554 else
6555   cat >conftest.$ac_ext <<_ACEOF
6556 /* confdefs.h.  */
6557 _ACEOF
6558 cat confdefs.h >>conftest.$ac_ext
6559 cat >>conftest.$ac_ext <<_ACEOF
6560 /* end confdefs.h.  */
6561 #include <sys/types.h>
6562 #include <$ac_hdr>
6563
6564 int
6565 main ()
6566 {
6567 if ((DIR *) 0)
6568 return 0;
6569   ;
6570   return 0;
6571 }
6572 _ACEOF
6573 rm -f conftest.$ac_objext
6574 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6575   (eval $ac_compile) 2>conftest.er1
6576   ac_status=$?
6577   grep -v '^ *+' conftest.er1 >conftest.err
6578   rm -f conftest.er1
6579   cat conftest.err >&5
6580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6581   (exit $ac_status); } &&
6582          { ac_try='test -z "$ac_c_werror_flag"
6583                          || test ! -s conftest.err'
6584   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6585   (eval $ac_try) 2>&5
6586   ac_status=$?
6587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6588   (exit $ac_status); }; } &&
6589          { ac_try='test -s conftest.$ac_objext'
6590   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6591   (eval $ac_try) 2>&5
6592   ac_status=$?
6593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6594   (exit $ac_status); }; }; then
6595   eval "$as_ac_Header=yes"
6596 else
6597   echo "$as_me: failed program was:" >&5
6598 sed 's/^/| /' conftest.$ac_ext >&5
6599
6600 eval "$as_ac_Header=no"
6601 fi
6602 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6603 fi
6604 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6605 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6606 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6607   cat >>confdefs.h <<_ACEOF
6608 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6609 _ACEOF
6610
6611 ac_header_dirent=$ac_hdr; break
6612 fi
6613
6614 done
6615 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6616 if test $ac_header_dirent = dirent.h; then
6617   echo "$as_me:$LINENO: checking for library containing opendir" >&5
6618 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6619 if test "${ac_cv_search_opendir+set}" = set; then
6620   echo $ECHO_N "(cached) $ECHO_C" >&6
6621 else
6622   ac_func_search_save_LIBS=$LIBS
6623 ac_cv_search_opendir=no
6624 cat >conftest.$ac_ext <<_ACEOF
6625 /* confdefs.h.  */
6626 _ACEOF
6627 cat confdefs.h >>conftest.$ac_ext
6628 cat >>conftest.$ac_ext <<_ACEOF
6629 /* end confdefs.h.  */
6630
6631 /* Override any gcc2 internal prototype to avoid an error.  */
6632 #ifdef __cplusplus
6633 extern "C"
6634 #endif
6635 /* We use char because int might match the return type of a gcc2
6636    builtin and then its argument prototype would still apply.  */
6637 char opendir ();
6638 int
6639 main ()
6640 {
6641 opendir ();
6642   ;
6643   return 0;
6644 }
6645 _ACEOF
6646 rm -f conftest.$ac_objext conftest$ac_exeext
6647 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6648   (eval $ac_link) 2>conftest.er1
6649   ac_status=$?
6650   grep -v '^ *+' conftest.er1 >conftest.err
6651   rm -f conftest.er1
6652   cat conftest.err >&5
6653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6654   (exit $ac_status); } &&
6655          { ac_try='test -z "$ac_c_werror_flag"
6656                          || test ! -s conftest.err'
6657   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6658   (eval $ac_try) 2>&5
6659   ac_status=$?
6660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6661   (exit $ac_status); }; } &&
6662          { ac_try='test -s conftest$ac_exeext'
6663   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6664   (eval $ac_try) 2>&5
6665   ac_status=$?
6666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6667   (exit $ac_status); }; }; then
6668   ac_cv_search_opendir="none required"
6669 else
6670   echo "$as_me: failed program was:" >&5
6671 sed 's/^/| /' conftest.$ac_ext >&5
6672
6673 fi
6674 rm -f conftest.err conftest.$ac_objext \
6675       conftest$ac_exeext conftest.$ac_ext
6676 if test "$ac_cv_search_opendir" = no; then
6677   for ac_lib in dir; do
6678     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6679     cat >conftest.$ac_ext <<_ACEOF
6680 /* confdefs.h.  */
6681 _ACEOF
6682 cat confdefs.h >>conftest.$ac_ext
6683 cat >>conftest.$ac_ext <<_ACEOF
6684 /* end confdefs.h.  */
6685
6686 /* Override any gcc2 internal prototype to avoid an error.  */
6687 #ifdef __cplusplus
6688 extern "C"
6689 #endif
6690 /* We use char because int might match the return type of a gcc2
6691    builtin and then its argument prototype would still apply.  */
6692 char opendir ();
6693 int
6694 main ()
6695 {
6696 opendir ();
6697   ;
6698   return 0;
6699 }
6700 _ACEOF
6701 rm -f conftest.$ac_objext conftest$ac_exeext
6702 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6703   (eval $ac_link) 2>conftest.er1
6704   ac_status=$?
6705   grep -v '^ *+' conftest.er1 >conftest.err
6706   rm -f conftest.er1
6707   cat conftest.err >&5
6708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6709   (exit $ac_status); } &&
6710          { ac_try='test -z "$ac_c_werror_flag"
6711                          || test ! -s conftest.err'
6712   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6713   (eval $ac_try) 2>&5
6714   ac_status=$?
6715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6716   (exit $ac_status); }; } &&
6717          { ac_try='test -s conftest$ac_exeext'
6718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6719   (eval $ac_try) 2>&5
6720   ac_status=$?
6721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6722   (exit $ac_status); }; }; then
6723   ac_cv_search_opendir="-l$ac_lib"
6724 break
6725 else
6726   echo "$as_me: failed program was:" >&5
6727 sed 's/^/| /' conftest.$ac_ext >&5
6728
6729 fi
6730 rm -f conftest.err conftest.$ac_objext \
6731       conftest$ac_exeext conftest.$ac_ext
6732   done
6733 fi
6734 LIBS=$ac_func_search_save_LIBS
6735 fi
6736 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6737 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6738 if test "$ac_cv_search_opendir" != no; then
6739   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6740
6741 fi
6742
6743 else
6744   echo "$as_me:$LINENO: checking for library containing opendir" >&5
6745 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6746 if test "${ac_cv_search_opendir+set}" = set; then
6747   echo $ECHO_N "(cached) $ECHO_C" >&6
6748 else
6749   ac_func_search_save_LIBS=$LIBS
6750 ac_cv_search_opendir=no
6751 cat >conftest.$ac_ext <<_ACEOF
6752 /* confdefs.h.  */
6753 _ACEOF
6754 cat confdefs.h >>conftest.$ac_ext
6755 cat >>conftest.$ac_ext <<_ACEOF
6756 /* end confdefs.h.  */
6757
6758 /* Override any gcc2 internal prototype to avoid an error.  */
6759 #ifdef __cplusplus
6760 extern "C"
6761 #endif
6762 /* We use char because int might match the return type of a gcc2
6763    builtin and then its argument prototype would still apply.  */
6764 char opendir ();
6765 int
6766 main ()
6767 {
6768 opendir ();
6769   ;
6770   return 0;
6771 }
6772 _ACEOF
6773 rm -f conftest.$ac_objext conftest$ac_exeext
6774 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6775   (eval $ac_link) 2>conftest.er1
6776   ac_status=$?
6777   grep -v '^ *+' conftest.er1 >conftest.err
6778   rm -f conftest.er1
6779   cat conftest.err >&5
6780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6781   (exit $ac_status); } &&
6782          { ac_try='test -z "$ac_c_werror_flag"
6783                          || test ! -s conftest.err'
6784   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6785   (eval $ac_try) 2>&5
6786   ac_status=$?
6787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6788   (exit $ac_status); }; } &&
6789          { ac_try='test -s conftest$ac_exeext'
6790   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6791   (eval $ac_try) 2>&5
6792   ac_status=$?
6793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6794   (exit $ac_status); }; }; then
6795   ac_cv_search_opendir="none required"
6796 else
6797   echo "$as_me: failed program was:" >&5
6798 sed 's/^/| /' conftest.$ac_ext >&5
6799
6800 fi
6801 rm -f conftest.err conftest.$ac_objext \
6802       conftest$ac_exeext conftest.$ac_ext
6803 if test "$ac_cv_search_opendir" = no; then
6804   for ac_lib in x; do
6805     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6806     cat >conftest.$ac_ext <<_ACEOF
6807 /* confdefs.h.  */
6808 _ACEOF
6809 cat confdefs.h >>conftest.$ac_ext
6810 cat >>conftest.$ac_ext <<_ACEOF
6811 /* end confdefs.h.  */
6812
6813 /* Override any gcc2 internal prototype to avoid an error.  */
6814 #ifdef __cplusplus
6815 extern "C"
6816 #endif
6817 /* We use char because int might match the return type of a gcc2
6818    builtin and then its argument prototype would still apply.  */
6819 char opendir ();
6820 int
6821 main ()
6822 {
6823 opendir ();
6824   ;
6825   return 0;
6826 }
6827 _ACEOF
6828 rm -f conftest.$ac_objext conftest$ac_exeext
6829 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6830   (eval $ac_link) 2>conftest.er1
6831   ac_status=$?
6832   grep -v '^ *+' conftest.er1 >conftest.err
6833   rm -f conftest.er1
6834   cat conftest.err >&5
6835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6836   (exit $ac_status); } &&
6837          { ac_try='test -z "$ac_c_werror_flag"
6838                          || test ! -s conftest.err'
6839   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6840   (eval $ac_try) 2>&5
6841   ac_status=$?
6842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6843   (exit $ac_status); }; } &&
6844          { ac_try='test -s conftest$ac_exeext'
6845   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6846   (eval $ac_try) 2>&5
6847   ac_status=$?
6848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6849   (exit $ac_status); }; }; then
6850   ac_cv_search_opendir="-l$ac_lib"
6851 break
6852 else
6853   echo "$as_me: failed program was:" >&5
6854 sed 's/^/| /' conftest.$ac_ext >&5
6855
6856 fi
6857 rm -f conftest.err conftest.$ac_objext \
6858       conftest$ac_exeext conftest.$ac_ext
6859   done
6860 fi
6861 LIBS=$ac_func_search_save_LIBS
6862 fi
6863 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6864 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6865 if test "$ac_cv_search_opendir" != no; then
6866   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6867
6868 fi
6869
6870 fi
6871
6872
6873
6874
6875
6876
6877
6878
6879
6880 for ac_func in strcasecmp select setenv putenv tcgetattr setlocale lstat lchown
6881 do
6882 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6883 echo "$as_me:$LINENO: checking for $ac_func" >&5
6884 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6885 if eval "test \"\${$as_ac_var+set}\" = set"; then
6886   echo $ECHO_N "(cached) $ECHO_C" >&6
6887 else
6888   cat >conftest.$ac_ext <<_ACEOF
6889 /* confdefs.h.  */
6890 _ACEOF
6891 cat confdefs.h >>conftest.$ac_ext
6892 cat >>conftest.$ac_ext <<_ACEOF
6893 /* end confdefs.h.  */
6894 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6895    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6896 #define $ac_func innocuous_$ac_func
6897
6898 /* System header to define __stub macros and hopefully few prototypes,
6899     which can conflict with char $ac_func (); below.
6900     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6901     <limits.h> exists even on freestanding compilers.  */
6902
6903 #ifdef __STDC__
6904 # include <limits.h>
6905 #else
6906 # include <assert.h>
6907 #endif
6908
6909 #undef $ac_func
6910
6911 /* Override any gcc2 internal prototype to avoid an error.  */
6912 #ifdef __cplusplus
6913 extern "C"
6914 {
6915 #endif
6916 /* We use char because int might match the return type of a gcc2
6917    builtin and then its argument prototype would still apply.  */
6918 char $ac_func ();
6919 /* The GNU C library defines this for functions which it implements
6920     to always fail with ENOSYS.  Some functions are actually named
6921     something starting with __ and the normal name is an alias.  */
6922 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6923 choke me
6924 #else
6925 char (*f) () = $ac_func;
6926 #endif
6927 #ifdef __cplusplus
6928 }
6929 #endif
6930
6931 int
6932 main ()
6933 {
6934 return f != $ac_func;
6935   ;
6936   return 0;
6937 }
6938 _ACEOF
6939 rm -f conftest.$ac_objext conftest$ac_exeext
6940 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6941   (eval $ac_link) 2>conftest.er1
6942   ac_status=$?
6943   grep -v '^ *+' conftest.er1 >conftest.err
6944   rm -f conftest.er1
6945   cat conftest.err >&5
6946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6947   (exit $ac_status); } &&
6948          { ac_try='test -z "$ac_c_werror_flag"
6949                          || test ! -s conftest.err'
6950   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6951   (eval $ac_try) 2>&5
6952   ac_status=$?
6953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6954   (exit $ac_status); }; } &&
6955          { ac_try='test -s conftest$ac_exeext'
6956   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6957   (eval $ac_try) 2>&5
6958   ac_status=$?
6959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6960   (exit $ac_status); }; }; then
6961   eval "$as_ac_var=yes"
6962 else
6963   echo "$as_me: failed program was:" >&5
6964 sed 's/^/| /' conftest.$ac_ext >&5
6965
6966 eval "$as_ac_var=no"
6967 fi
6968 rm -f conftest.err conftest.$ac_objext \
6969       conftest$ac_exeext conftest.$ac_ext
6970 fi
6971 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6972 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6973 if test `eval echo '${'$as_ac_var'}'` = yes; then
6974   cat >>confdefs.h <<_ACEOF
6975 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6976 _ACEOF
6977
6978 fi
6979 done
6980
6981
6982
6983 for ac_func in nanosleep nl_langinfo
6984 do
6985 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6986 echo "$as_me:$LINENO: checking for $ac_func" >&5
6987 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6988 if eval "test \"\${$as_ac_var+set}\" = set"; then
6989   echo $ECHO_N "(cached) $ECHO_C" >&6
6990 else
6991   cat >conftest.$ac_ext <<_ACEOF
6992 /* confdefs.h.  */
6993 _ACEOF
6994 cat confdefs.h >>conftest.$ac_ext
6995 cat >>conftest.$ac_ext <<_ACEOF
6996 /* end confdefs.h.  */
6997 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6998    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6999 #define $ac_func innocuous_$ac_func
7000
7001 /* System header to define __stub macros and hopefully few prototypes,
7002     which can conflict with char $ac_func (); below.
7003     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7004     <limits.h> exists even on freestanding compilers.  */
7005
7006 #ifdef __STDC__
7007 # include <limits.h>
7008 #else
7009 # include <assert.h>
7010 #endif
7011
7012 #undef $ac_func
7013
7014 /* Override any gcc2 internal prototype to avoid an error.  */
7015 #ifdef __cplusplus
7016 extern "C"
7017 {
7018 #endif
7019 /* We use char because int might match the return type of a gcc2
7020    builtin and then its argument prototype would still apply.  */
7021 char $ac_func ();
7022 /* The GNU C library defines this for functions which it implements
7023     to always fail with ENOSYS.  Some functions are actually named
7024     something starting with __ and the normal name is an alias.  */
7025 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7026 choke me
7027 #else
7028 char (*f) () = $ac_func;
7029 #endif
7030 #ifdef __cplusplus
7031 }
7032 #endif
7033
7034 int
7035 main ()
7036 {
7037 return f != $ac_func;
7038   ;
7039   return 0;
7040 }
7041 _ACEOF
7042 rm -f conftest.$ac_objext conftest$ac_exeext
7043 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7044   (eval $ac_link) 2>conftest.er1
7045   ac_status=$?
7046   grep -v '^ *+' conftest.er1 >conftest.err
7047   rm -f conftest.er1
7048   cat conftest.err >&5
7049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7050   (exit $ac_status); } &&
7051          { ac_try='test -z "$ac_c_werror_flag"
7052                          || test ! -s conftest.err'
7053   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7054   (eval $ac_try) 2>&5
7055   ac_status=$?
7056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7057   (exit $ac_status); }; } &&
7058          { ac_try='test -s conftest$ac_exeext'
7059   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7060   (eval $ac_try) 2>&5
7061   ac_status=$?
7062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7063   (exit $ac_status); }; }; then
7064   eval "$as_ac_var=yes"
7065 else
7066   echo "$as_me: failed program was:" >&5
7067 sed 's/^/| /' conftest.$ac_ext >&5
7068
7069 eval "$as_ac_var=no"
7070 fi
7071 rm -f conftest.err conftest.$ac_objext \
7072       conftest$ac_exeext conftest.$ac_ext
7073 fi
7074 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7075 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7076 if test `eval echo '${'$as_ac_var'}'` = yes; then
7077   cat >>confdefs.h <<_ACEOF
7078 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7079 _ACEOF
7080
7081 fi
7082 done
7083
7084
7085 for ac_header in varargs.h
7086 do
7087 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7088 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7089   echo "$as_me:$LINENO: checking for $ac_header" >&5
7090 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7091 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7092   echo $ECHO_N "(cached) $ECHO_C" >&6
7093 fi
7094 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7095 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7096 else
7097   # Is the header compilable?
7098 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7099 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7100 cat >conftest.$ac_ext <<_ACEOF
7101 /* confdefs.h.  */
7102 _ACEOF
7103 cat confdefs.h >>conftest.$ac_ext
7104 cat >>conftest.$ac_ext <<_ACEOF
7105 /* end confdefs.h.  */
7106 $ac_includes_default
7107 #include <$ac_header>
7108 _ACEOF
7109 rm -f conftest.$ac_objext
7110 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7111   (eval $ac_compile) 2>conftest.er1
7112   ac_status=$?
7113   grep -v '^ *+' conftest.er1 >conftest.err
7114   rm -f conftest.er1
7115   cat conftest.err >&5
7116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7117   (exit $ac_status); } &&
7118          { ac_try='test -z "$ac_c_werror_flag"
7119                          || test ! -s conftest.err'
7120   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7121   (eval $ac_try) 2>&5
7122   ac_status=$?
7123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7124   (exit $ac_status); }; } &&
7125          { ac_try='test -s conftest.$ac_objext'
7126   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7127   (eval $ac_try) 2>&5
7128   ac_status=$?
7129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7130   (exit $ac_status); }; }; then
7131   ac_header_compiler=yes
7132 else
7133   echo "$as_me: failed program was:" >&5
7134 sed 's/^/| /' conftest.$ac_ext >&5
7135
7136 ac_header_compiler=no
7137 fi
7138 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7139 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7140 echo "${ECHO_T}$ac_header_compiler" >&6
7141
7142 # Is the header present?
7143 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7144 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7145 cat >conftest.$ac_ext <<_ACEOF
7146 /* confdefs.h.  */
7147 _ACEOF
7148 cat confdefs.h >>conftest.$ac_ext
7149 cat >>conftest.$ac_ext <<_ACEOF
7150 /* end confdefs.h.  */
7151 #include <$ac_header>
7152 _ACEOF
7153 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7154   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7155   ac_status=$?
7156   grep -v '^ *+' conftest.er1 >conftest.err
7157   rm -f conftest.er1
7158   cat conftest.err >&5
7159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7160   (exit $ac_status); } >/dev/null; then
7161   if test -s conftest.err; then
7162     ac_cpp_err=$ac_c_preproc_warn_flag
7163     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7164   else
7165     ac_cpp_err=
7166   fi
7167 else
7168   ac_cpp_err=yes
7169 fi
7170 if test -z "$ac_cpp_err"; then
7171   ac_header_preproc=yes
7172 else
7173   echo "$as_me: failed program was:" >&5
7174 sed 's/^/| /' conftest.$ac_ext >&5
7175
7176   ac_header_preproc=no
7177 fi
7178 rm -f conftest.err conftest.$ac_ext
7179 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7180 echo "${ECHO_T}$ac_header_preproc" >&6
7181
7182 # So?  What about this header?
7183 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7184   yes:no: )
7185     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7186 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7187     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7188 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7189     ac_header_preproc=yes
7190     ;;
7191   no:yes:* )
7192     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7193 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7194     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7195 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7196     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7197 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7198     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7199 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7200     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7201 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7202     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7203 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7204     (
7205       cat <<\_ASBOX
7206 ## ------------------------------------------ ##
7207 ## Report this to the AC_PACKAGE_NAME lists.  ##
7208 ## ------------------------------------------ ##
7209 _ASBOX
7210     ) |
7211       sed "s/^/$as_me: WARNING:     /" >&2
7212     ;;
7213 esac
7214 echo "$as_me:$LINENO: checking for $ac_header" >&5
7215 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7216 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7217   echo $ECHO_N "(cached) $ECHO_C" >&6
7218 else
7219   eval "$as_ac_Header=\$ac_header_preproc"
7220 fi
7221 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7222 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7223
7224 fi
7225 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7226   cat >>confdefs.h <<_ACEOF
7227 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7228 _ACEOF
7229
7230 fi
7231
7232 done
7233
7234
7235 # End of readline/conio stuff
7236 # -----------------------------------------------------------------------
7237
7238 # -----------------------------------------------------------------------
7239 #  Check for Python support
7240 #
7241 echo "$as_me:$LINENO: checking for Python support" >&5
7242 echo $ECHO_N "checking for Python support... $ECHO_C" >&6
7243
7244 # Check whether --with-python or --without-python was given.
7245 if test "${with_python+set}" = set; then
7246   withval="$with_python"
7247
7248   PYTHON_INCDIR=
7249   PYTHON_LIBS=
7250   if test "$withval" != "no"; then
7251      if test "$withval" = "yes"; then
7252         for python_root in /usr /usr/local; do
7253           if test -f $python_root/include/python2.2/Python.h; then
7254              PYTHON_INCDIR=-I$python_root/include/python2.2
7255              PYTHON_LIBS="-L$python_root/lib/python2.2/config -lpython2.2"
7256              break
7257           elif test -f $python_root/include/python2.3/Python.h; then
7258              PYTHON_INCDIR=-I$python_root/include/python2.3
7259              PYTHON_LIBS="-L$python_root/lib/python2.3/config -lpython2.3"
7260              break
7261           elif test -f $python_root/include/python2.4/Python.h; then
7262              PYTHON_INCDIR=-I$python_root/include/python2.4
7263              PYTHON_LIBS="-L$python_root/lib/python2.4/config -lpython2.4"
7264              break
7265           fi
7266         done
7267         if test x$PYTHON_INCDIR = x; then
7268           if test -f $prefix/include/Python.h; then
7269              PYTHON_INCDIR=-I$prefix/include
7270              PYTHON_LIBS="-L$prefix/lib/config -lpython"
7271           else
7272            echo "$as_me:$LINENO: result: no" >&5
7273 echo "${ECHO_T}no" >&6
7274            { { echo "$as_me:$LINENO: error: Unable to find Python.h in standard locations" >&5
7275 echo "$as_me: error: Unable to find Python.h in standard locations" >&2;}
7276    { (exit 1); exit 1; }; }
7277           fi
7278         fi
7279      else
7280         if test -f $withval/Python.h; then
7281            PYTHON_INCDIR=-I$withval
7282            PYTHON_LIBS="-L$withval/config -lpython"
7283         elif test -f $withval/include/Python.h; then
7284            PYTHON_INCDIR=-I$withval/include
7285            PYTHON_LIBS="-L$withval/lib/config -lpython"
7286         elif test -f $withval/include/python/Python.h; then
7287            PYTHON_INCDIR=-I$withval/include/python
7288            PYTHON_LIBS="-L$withval/lib/python/config -lpython"
7289         else
7290            echo "$as_me:$LINENO: result: no" >&5
7291 echo "${ECHO_T}no" >&6
7292            { { echo "$as_me:$LINENO: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&5
7293 echo "$as_me: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&2;}
7294    { (exit 1); exit 1; }; }
7295         fi
7296      fi
7297      cat >>confdefs.h <<\_ACEOF
7298 #define HAVE_PYTHON 1
7299 _ACEOF
7300
7301      echo "$as_me:$LINENO: result: yes" >&5
7302 echo "${ECHO_T}yes" >&6
7303      support_python=yes
7304      { echo "$as_me:$LINENO: checking for more Python libs" >&5
7305 echo "$as_me: checking for more Python libs" >&6;}
7306      saved_LIBS="$LIBS"; LIBS=
7307      echo "$as_me:$LINENO: checking for library containing shm_open" >&5
7308 echo $ECHO_N "checking for library containing shm_open... $ECHO_C" >&6
7309 if test "${ac_cv_search_shm_open+set}" = set; then
7310   echo $ECHO_N "(cached) $ECHO_C" >&6
7311 else
7312   ac_func_search_save_LIBS=$LIBS
7313 ac_cv_search_shm_open=no
7314 cat >conftest.$ac_ext <<_ACEOF
7315 /* confdefs.h.  */
7316 _ACEOF
7317 cat confdefs.h >>conftest.$ac_ext
7318 cat >>conftest.$ac_ext <<_ACEOF
7319 /* end confdefs.h.  */
7320
7321 /* Override any gcc2 internal prototype to avoid an error.  */
7322 #ifdef __cplusplus
7323 extern "C"
7324 #endif
7325 /* We use char because int might match the return type of a gcc2
7326    builtin and then its argument prototype would still apply.  */
7327 char shm_open ();
7328 int
7329 main ()
7330 {
7331 shm_open ();
7332   ;
7333   return 0;
7334 }
7335 _ACEOF
7336 rm -f conftest.$ac_objext conftest$ac_exeext
7337 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7338   (eval $ac_link) 2>conftest.er1
7339   ac_status=$?
7340   grep -v '^ *+' conftest.er1 >conftest.err
7341   rm -f conftest.er1
7342   cat conftest.err >&5
7343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7344   (exit $ac_status); } &&
7345          { ac_try='test -z "$ac_c_werror_flag"
7346                          || test ! -s conftest.err'
7347   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7348   (eval $ac_try) 2>&5
7349   ac_status=$?
7350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7351   (exit $ac_status); }; } &&
7352          { ac_try='test -s conftest$ac_exeext'
7353   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7354   (eval $ac_try) 2>&5
7355   ac_status=$?
7356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7357   (exit $ac_status); }; }; then
7358   ac_cv_search_shm_open="none required"
7359 else
7360   echo "$as_me: failed program was:" >&5
7361 sed 's/^/| /' conftest.$ac_ext >&5
7362
7363 fi
7364 rm -f conftest.err conftest.$ac_objext \
7365       conftest$ac_exeext conftest.$ac_ext
7366 if test "$ac_cv_search_shm_open" = no; then
7367   for ac_lib in rt; do
7368     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7369     cat >conftest.$ac_ext <<_ACEOF
7370 /* confdefs.h.  */
7371 _ACEOF
7372 cat confdefs.h >>conftest.$ac_ext
7373 cat >>conftest.$ac_ext <<_ACEOF
7374 /* end confdefs.h.  */
7375
7376 /* Override any gcc2 internal prototype to avoid an error.  */
7377 #ifdef __cplusplus
7378 extern "C"
7379 #endif
7380 /* We use char because int might match the return type of a gcc2
7381    builtin and then its argument prototype would still apply.  */
7382 char shm_open ();
7383 int
7384 main ()
7385 {
7386 shm_open ();
7387   ;
7388   return 0;
7389 }
7390 _ACEOF
7391 rm -f conftest.$ac_objext conftest$ac_exeext
7392 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7393   (eval $ac_link) 2>conftest.er1
7394   ac_status=$?
7395   grep -v '^ *+' conftest.er1 >conftest.err
7396   rm -f conftest.er1
7397   cat conftest.err >&5
7398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7399   (exit $ac_status); } &&
7400          { ac_try='test -z "$ac_c_werror_flag"
7401                          || test ! -s conftest.err'
7402   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7403   (eval $ac_try) 2>&5
7404   ac_status=$?
7405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7406   (exit $ac_status); }; } &&
7407          { ac_try='test -s conftest$ac_exeext'
7408   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7409   (eval $ac_try) 2>&5
7410   ac_status=$?
7411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7412   (exit $ac_status); }; }; then
7413   ac_cv_search_shm_open="-l$ac_lib"
7414 break
7415 else
7416   echo "$as_me: failed program was:" >&5
7417 sed 's/^/| /' conftest.$ac_ext >&5
7418
7419 fi
7420 rm -f conftest.err conftest.$ac_objext \
7421       conftest$ac_exeext conftest.$ac_ext
7422   done
7423 fi
7424 LIBS=$ac_func_search_save_LIBS
7425 fi
7426 echo "$as_me:$LINENO: result: $ac_cv_search_shm_open" >&5
7427 echo "${ECHO_T}$ac_cv_search_shm_open" >&6
7428 if test "$ac_cv_search_shm_open" != no; then
7429   test "$ac_cv_search_shm_open" = "none required" || LIBS="$ac_cv_search_shm_open $LIBS"
7430
7431 fi
7432
7433
7434 echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
7435 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
7436 if test "${ac_cv_lib_util_openpty+set}" = set; then
7437   echo $ECHO_N "(cached) $ECHO_C" >&6
7438 else
7439   ac_check_lib_save_LIBS=$LIBS
7440 LIBS="-lutil  $LIBS"
7441 cat >conftest.$ac_ext <<_ACEOF
7442 /* confdefs.h.  */
7443 _ACEOF
7444 cat confdefs.h >>conftest.$ac_ext
7445 cat >>conftest.$ac_ext <<_ACEOF
7446 /* end confdefs.h.  */
7447
7448 /* Override any gcc2 internal prototype to avoid an error.  */
7449 #ifdef __cplusplus
7450 extern "C"
7451 #endif
7452 /* We use char because int might match the return type of a gcc2
7453    builtin and then its argument prototype would still apply.  */
7454 char openpty ();
7455 int
7456 main ()
7457 {
7458 openpty ();
7459   ;
7460   return 0;
7461 }
7462 _ACEOF
7463 rm -f conftest.$ac_objext conftest$ac_exeext
7464 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7465   (eval $ac_link) 2>conftest.er1
7466   ac_status=$?
7467   grep -v '^ *+' conftest.er1 >conftest.err
7468   rm -f conftest.er1
7469   cat conftest.err >&5
7470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7471   (exit $ac_status); } &&
7472          { ac_try='test -z "$ac_c_werror_flag"
7473                          || test ! -s conftest.err'
7474   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7475   (eval $ac_try) 2>&5
7476   ac_status=$?
7477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7478   (exit $ac_status); }; } &&
7479          { ac_try='test -s conftest$ac_exeext'
7480   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7481   (eval $ac_try) 2>&5
7482   ac_status=$?
7483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7484   (exit $ac_status); }; }; then
7485   ac_cv_lib_util_openpty=yes
7486 else
7487   echo "$as_me: failed program was:" >&5
7488 sed 's/^/| /' conftest.$ac_ext >&5
7489
7490 ac_cv_lib_util_openpty=no
7491 fi
7492 rm -f conftest.err conftest.$ac_objext \
7493       conftest$ac_exeext conftest.$ac_ext
7494 LIBS=$ac_check_lib_save_LIBS
7495 fi
7496 echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
7497 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
7498 if test $ac_cv_lib_util_openpty = yes; then
7499   cat >>confdefs.h <<_ACEOF
7500 #define HAVE_LIBUTIL 1
7501 _ACEOF
7502
7503   LIBS="-lutil $LIBS"
7504
7505 fi
7506
7507      PYTHON_LIBS="$PYTHON_LIBS $LIBS"
7508      LIBS="$saved_LIBS"
7509   else
7510      echo "$as_me:$LINENO: result: no" >&5
7511 echo "${ECHO_T}no" >&6
7512   fi
7513
7514 else
7515
7516   echo "$as_me:$LINENO: result: no" >&5
7517 echo "${ECHO_T}no" >&6
7518
7519 fi;
7520
7521
7522
7523
7524 #
7525 # Find where sockets are (especially for Solaris)
7526 # Do this before the TCP Wrappers test since tcp wrappers
7527 # uses the socket library and some linkers are stupid.
7528 #
7529 echo "$as_me:$LINENO: checking for socket" >&5
7530 echo $ECHO_N "checking for socket... $ECHO_C" >&6
7531 if test "${ac_cv_func_socket+set}" = set; then
7532   echo $ECHO_N "(cached) $ECHO_C" >&6
7533 else
7534   cat >conftest.$ac_ext <<_ACEOF
7535 /* confdefs.h.  */
7536 _ACEOF
7537 cat confdefs.h >>conftest.$ac_ext
7538 cat >>conftest.$ac_ext <<_ACEOF
7539 /* end confdefs.h.  */
7540 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
7541    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7542 #define socket innocuous_socket
7543
7544 /* System header to define __stub macros and hopefully few prototypes,
7545     which can conflict with char socket (); below.
7546     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7547     <limits.h> exists even on freestanding compilers.  */
7548
7549 #ifdef __STDC__
7550 # include <limits.h>
7551 #else
7552 # include <assert.h>
7553 #endif
7554
7555 #undef socket
7556
7557 /* Override any gcc2 internal prototype to avoid an error.  */
7558 #ifdef __cplusplus
7559 extern "C"
7560 {
7561 #endif
7562 /* We use char because int might match the return type of a gcc2
7563    builtin and then its argument prototype would still apply.  */
7564 char socket ();
7565 /* The GNU C library defines this for functions which it implements
7566     to always fail with ENOSYS.  Some functions are actually named
7567     something starting with __ and the normal name is an alias.  */
7568 #if defined (__stub_socket) || defined (__stub___socket)
7569 choke me
7570 #else
7571 char (*f) () = socket;
7572 #endif
7573 #ifdef __cplusplus
7574 }
7575 #endif
7576
7577 int
7578 main ()
7579 {
7580 return f != socket;
7581   ;
7582   return 0;
7583 }
7584 _ACEOF
7585 rm -f conftest.$ac_objext conftest$ac_exeext
7586 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7587   (eval $ac_link) 2>conftest.er1
7588   ac_status=$?
7589   grep -v '^ *+' conftest.er1 >conftest.err
7590   rm -f conftest.er1
7591   cat conftest.err >&5
7592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7593   (exit $ac_status); } &&
7594          { ac_try='test -z "$ac_c_werror_flag"
7595                          || test ! -s conftest.err'
7596   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7597   (eval $ac_try) 2>&5
7598   ac_status=$?
7599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7600   (exit $ac_status); }; } &&
7601          { ac_try='test -s conftest$ac_exeext'
7602   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7603   (eval $ac_try) 2>&5
7604   ac_status=$?
7605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7606   (exit $ac_status); }; }; then
7607   ac_cv_func_socket=yes
7608 else
7609   echo "$as_me: failed program was:" >&5
7610 sed 's/^/| /' conftest.$ac_ext >&5
7611
7612 ac_cv_func_socket=no
7613 fi
7614 rm -f conftest.err conftest.$ac_objext \
7615       conftest$ac_exeext conftest.$ac_ext
7616 fi
7617 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
7618 echo "${ECHO_T}$ac_cv_func_socket" >&6
7619 if test $ac_cv_func_socket = yes; then
7620   echo "$as_me:$LINENO: result: using libc's socket" >&5
7621 echo "${ECHO_T}using libc's socket" >&6
7622 else
7623
7624 echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
7625 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6
7626 if test "${ac_cv_lib_xnet_socket+set}" = set; then
7627   echo $ECHO_N "(cached) $ECHO_C" >&6
7628 else
7629   ac_check_lib_save_LIBS=$LIBS
7630 LIBS="-lxnet  $LIBS"
7631 cat >conftest.$ac_ext <<_ACEOF
7632 /* confdefs.h.  */
7633 _ACEOF
7634 cat confdefs.h >>conftest.$ac_ext
7635 cat >>conftest.$ac_ext <<_ACEOF
7636 /* end confdefs.h.  */
7637
7638 /* Override any gcc2 internal prototype to avoid an error.  */
7639 #ifdef __cplusplus
7640 extern "C"
7641 #endif
7642 /* We use char because int might match the return type of a gcc2
7643    builtin and then its argument prototype would still apply.  */
7644 char socket ();
7645 int
7646 main ()
7647 {
7648 socket ();
7649   ;
7650   return 0;
7651 }
7652 _ACEOF
7653 rm -f conftest.$ac_objext conftest$ac_exeext
7654 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7655   (eval $ac_link) 2>conftest.er1
7656   ac_status=$?
7657   grep -v '^ *+' conftest.er1 >conftest.err
7658   rm -f conftest.er1
7659   cat conftest.err >&5
7660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7661   (exit $ac_status); } &&
7662          { ac_try='test -z "$ac_c_werror_flag"
7663                          || test ! -s conftest.err'
7664   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7665   (eval $ac_try) 2>&5
7666   ac_status=$?
7667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7668   (exit $ac_status); }; } &&
7669          { ac_try='test -s conftest$ac_exeext'
7670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7671   (eval $ac_try) 2>&5
7672   ac_status=$?
7673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7674   (exit $ac_status); }; }; then
7675   ac_cv_lib_xnet_socket=yes
7676 else
7677   echo "$as_me: failed program was:" >&5
7678 sed 's/^/| /' conftest.$ac_ext >&5
7679
7680 ac_cv_lib_xnet_socket=no
7681 fi
7682 rm -f conftest.err conftest.$ac_objext \
7683       conftest$ac_exeext conftest.$ac_ext
7684 LIBS=$ac_check_lib_save_LIBS
7685 fi
7686 echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
7687 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6
7688 if test $ac_cv_lib_xnet_socket = yes; then
7689   cat >>confdefs.h <<_ACEOF
7690 #define HAVE_LIBXNET 1
7691 _ACEOF
7692
7693   LIBS="-lxnet $LIBS"
7694
7695 fi
7696
7697
7698 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
7699 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
7700 if test "${ac_cv_lib_socket_socket+set}" = set; then
7701   echo $ECHO_N "(cached) $ECHO_C" >&6
7702 else
7703   ac_check_lib_save_LIBS=$LIBS
7704 LIBS="-lsocket  $LIBS"
7705 cat >conftest.$ac_ext <<_ACEOF
7706 /* confdefs.h.  */
7707 _ACEOF
7708 cat confdefs.h >>conftest.$ac_ext
7709 cat >>conftest.$ac_ext <<_ACEOF
7710 /* end confdefs.h.  */
7711
7712 /* Override any gcc2 internal prototype to avoid an error.  */
7713 #ifdef __cplusplus
7714 extern "C"
7715 #endif
7716 /* We use char because int might match the return type of a gcc2
7717    builtin and then its argument prototype would still apply.  */
7718 char socket ();
7719 int
7720 main ()
7721 {
7722 socket ();
7723   ;
7724   return 0;
7725 }
7726 _ACEOF
7727 rm -f conftest.$ac_objext conftest$ac_exeext
7728 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7729   (eval $ac_link) 2>conftest.er1
7730   ac_status=$?
7731   grep -v '^ *+' conftest.er1 >conftest.err
7732   rm -f conftest.er1
7733   cat conftest.err >&5
7734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7735   (exit $ac_status); } &&
7736          { ac_try='test -z "$ac_c_werror_flag"
7737                          || test ! -s conftest.err'
7738   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7739   (eval $ac_try) 2>&5
7740   ac_status=$?
7741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7742   (exit $ac_status); }; } &&
7743          { ac_try='test -s conftest$ac_exeext'
7744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7745   (eval $ac_try) 2>&5
7746   ac_status=$?
7747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7748   (exit $ac_status); }; }; then
7749   ac_cv_lib_socket_socket=yes
7750 else
7751   echo "$as_me: failed program was:" >&5
7752 sed 's/^/| /' conftest.$ac_ext >&5
7753
7754 ac_cv_lib_socket_socket=no
7755 fi
7756 rm -f conftest.err conftest.$ac_objext \
7757       conftest$ac_exeext conftest.$ac_ext
7758 LIBS=$ac_check_lib_save_LIBS
7759 fi
7760 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
7761 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
7762 if test $ac_cv_lib_socket_socket = yes; then
7763   cat >>confdefs.h <<_ACEOF
7764 #define HAVE_LIBSOCKET 1
7765 _ACEOF
7766
7767   LIBS="-lsocket $LIBS"
7768
7769 fi
7770
7771
7772 echo "$as_me:$LINENO: checking for socket in -linet" >&5
7773 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
7774 if test "${ac_cv_lib_inet_socket+set}" = set; then
7775   echo $ECHO_N "(cached) $ECHO_C" >&6
7776 else
7777   ac_check_lib_save_LIBS=$LIBS
7778 LIBS="-linet  $LIBS"
7779 cat >conftest.$ac_ext <<_ACEOF
7780 /* confdefs.h.  */
7781 _ACEOF
7782 cat confdefs.h >>conftest.$ac_ext
7783 cat >>conftest.$ac_ext <<_ACEOF
7784 /* end confdefs.h.  */
7785
7786 /* Override any gcc2 internal prototype to avoid an error.  */
7787 #ifdef __cplusplus
7788 extern "C"
7789 #endif
7790 /* We use char because int might match the return type of a gcc2
7791    builtin and then its argument prototype would still apply.  */
7792 char socket ();
7793 int
7794 main ()
7795 {
7796 socket ();
7797   ;
7798   return 0;
7799 }
7800 _ACEOF
7801 rm -f conftest.$ac_objext conftest$ac_exeext
7802 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7803   (eval $ac_link) 2>conftest.er1
7804   ac_status=$?
7805   grep -v '^ *+' conftest.er1 >conftest.err
7806   rm -f conftest.er1
7807   cat conftest.err >&5
7808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7809   (exit $ac_status); } &&
7810          { ac_try='test -z "$ac_c_werror_flag"
7811                          || test ! -s conftest.err'
7812   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7813   (eval $ac_try) 2>&5
7814   ac_status=$?
7815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7816   (exit $ac_status); }; } &&
7817          { ac_try='test -s conftest$ac_exeext'
7818   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7819   (eval $ac_try) 2>&5
7820   ac_status=$?
7821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7822   (exit $ac_status); }; }; then
7823   ac_cv_lib_inet_socket=yes
7824 else
7825   echo "$as_me: failed program was:" >&5
7826 sed 's/^/| /' conftest.$ac_ext >&5
7827
7828 ac_cv_lib_inet_socket=no
7829 fi
7830 rm -f conftest.err conftest.$ac_objext \
7831       conftest$ac_exeext conftest.$ac_ext
7832 LIBS=$ac_check_lib_save_LIBS
7833 fi
7834 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
7835 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
7836 if test $ac_cv_lib_inet_socket = yes; then
7837   cat >>confdefs.h <<_ACEOF
7838 #define HAVE_LIBINET 1
7839 _ACEOF
7840
7841   LIBS="-linet $LIBS"
7842
7843 fi
7844
7845 fi
7846
7847
7848
7849 # -----------------------------------------------------------
7850 # Check whether user wants TCP wrappers support (default off)
7851 # -----------------------------------------------------------
7852 TCPW_MSG="no"
7853
7854 # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
7855 if test "${with_tcp_wrappers+set}" = set; then
7856   withval="$with_tcp_wrappers"
7857
7858     if test "x$withval" != "xno" ; then
7859        saved_LIBS="$LIBS"
7860        LIBS="$saved_LIBS -lwrap"
7861        echo "$as_me:$LINENO: checking for libwrap" >&5
7862 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6
7863        cat >conftest.$ac_ext <<_ACEOF
7864 /* confdefs.h.  */
7865 _ACEOF
7866 cat confdefs.h >>conftest.$ac_ext
7867 cat >>conftest.$ac_ext <<_ACEOF
7868 /* end confdefs.h.  */
7869  #include <tcpd.h>
7870              int deny_severity = 0;
7871              int allow_severity = 0;
7872              struct request_info *req;
7873 int
7874 main ()
7875 {
7876  hosts_access(req);
7877   ;
7878   return 0;
7879 }
7880 _ACEOF
7881 rm -f conftest.$ac_objext conftest$ac_exeext
7882 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7883   (eval $ac_link) 2>conftest.er1
7884   ac_status=$?
7885   grep -v '^ *+' conftest.er1 >conftest.err
7886   rm -f conftest.er1
7887   cat conftest.err >&5
7888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7889   (exit $ac_status); } &&
7890          { ac_try='test -z "$ac_c_werror_flag"
7891                          || test ! -s conftest.err'
7892   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7893   (eval $ac_try) 2>&5
7894   ac_status=$?
7895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7896   (exit $ac_status); }; } &&
7897          { ac_try='test -s conftest$ac_exeext'
7898   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7899   (eval $ac_try) 2>&5
7900   ac_status=$?
7901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7902   (exit $ac_status); }; }; then
7903
7904             echo "$as_me:$LINENO: result: yes" >&5
7905 echo "${ECHO_T}yes" >&6
7906             cat >>confdefs.h <<\_ACEOF
7907 #define HAVE_LIBWRAP 1
7908 _ACEOF
7909
7910             TCPW_MSG="yes"
7911
7912 else
7913   echo "$as_me: failed program was:" >&5
7914 sed 's/^/| /' conftest.$ac_ext >&5
7915
7916
7917             LIBS="$saved_LIBS -lwrap -lnsl"
7918             cat >conftest.$ac_ext <<_ACEOF
7919 /* confdefs.h.  */
7920 _ACEOF
7921 cat confdefs.h >>conftest.$ac_ext
7922 cat >>conftest.$ac_ext <<_ACEOF
7923 /* end confdefs.h.  */
7924  #include <tcpd.h>
7925                  int deny_severity = 0;
7926                  int allow_severity = 0;
7927                  struct request_info *req;
7928 int
7929 main ()
7930 {
7931  hosts_access(req);
7932   ;
7933   return 0;
7934 }
7935 _ACEOF
7936 rm -f conftest.$ac_objext conftest$ac_exeext
7937 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7938   (eval $ac_link) 2>conftest.er1
7939   ac_status=$?
7940   grep -v '^ *+' conftest.er1 >conftest.err
7941   rm -f conftest.er1
7942   cat conftest.err >&5
7943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7944   (exit $ac_status); } &&
7945          { ac_try='test -z "$ac_c_werror_flag"
7946                          || test ! -s conftest.err'
7947   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7948   (eval $ac_try) 2>&5
7949   ac_status=$?
7950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7951   (exit $ac_status); }; } &&
7952          { ac_try='test -s conftest$ac_exeext'
7953   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7954   (eval $ac_try) 2>&5
7955   ac_status=$?
7956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7957   (exit $ac_status); }; }; then
7958
7959                  echo "$as_me:$LINENO: result: yes" >&5
7960 echo "${ECHO_T}yes" >&6
7961                  cat >>confdefs.h <<\_ACEOF
7962 #define HAVE_LIBWRAP 1
7963 _ACEOF
7964
7965                  TCPW_MSG="yes"
7966
7967 else
7968   echo "$as_me: failed program was:" >&5
7969 sed 's/^/| /' conftest.$ac_ext >&5
7970
7971 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
7972 echo "$as_me: error: *** libwrap missing" >&2;}
7973    { (exit 1); exit 1; }; }
7974
7975 fi
7976 rm -f conftest.err conftest.$ac_objext \
7977       conftest$ac_exeext conftest.$ac_ext
7978
7979 fi
7980 rm -f conftest.err conftest.$ac_objext \
7981       conftest$ac_exeext conftest.$ac_ext
7982     fi
7983
7984
7985 fi;
7986
7987 # -----------------------------------------------------------
7988 # Check whether OpenSSL is available
7989 # -----------------------------------------------------------
7990 echo "$as_me:$LINENO: checking for OpenSSL" >&5
7991 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6
7992
7993 # Check whether --with-openssl or --without-openssl was given.
7994 if test "${with_openssl+set}" = set; then
7995   withval="$with_openssl"
7996   with_openssl_directory=${withval}
7997 fi;
7998
7999 if test "x$with_openssl_directory" != "x"; then
8000         OPENSSL_LIBS="-lssl -lcrypto"
8001         OPENSSL_INC=""
8002
8003         if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
8004                 OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
8005                 OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
8006         fi
8007
8008         saved_LIBS="$LIBS"
8009         saved_CFLAGS="$CFLAGS"
8010         LIBS="$saved_LIBS $OPENSSL_LIBS"
8011         CFLAGS="$saved_CFLAGS $OPENSSL_INC"
8012
8013         cat >conftest.$ac_ext <<_ACEOF
8014 /* confdefs.h.  */
8015 _ACEOF
8016 cat confdefs.h >>conftest.$ac_ext
8017 cat >>conftest.$ac_ext <<_ACEOF
8018 /* end confdefs.h.  */
8019  #include <openssl/ssl.h>
8020 int
8021 main ()
8022 {
8023  CRYPTO_set_id_callback(NULL);
8024   ;
8025   return 0;
8026 }
8027 _ACEOF
8028 rm -f conftest.$ac_objext conftest$ac_exeext
8029 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8030   (eval $ac_link) 2>conftest.er1
8031   ac_status=$?
8032   grep -v '^ *+' conftest.er1 >conftest.err
8033   rm -f conftest.er1
8034   cat conftest.err >&5
8035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8036   (exit $ac_status); } &&
8037          { ac_try='test -z "$ac_c_werror_flag"
8038                          || test ! -s conftest.err'
8039   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8040   (eval $ac_try) 2>&5
8041   ac_status=$?
8042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8043   (exit $ac_status); }; } &&
8044          { ac_try='test -s conftest$ac_exeext'
8045   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8046   (eval $ac_try) 2>&5
8047   ac_status=$?
8048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8049   (exit $ac_status); }; }; then
8050    support_tls="yes"
8051 else
8052   echo "$as_me: failed program was:" >&5
8053 sed 's/^/| /' conftest.$ac_ext >&5
8054
8055  support_tls="no"
8056
8057 fi
8058 rm -f conftest.err conftest.$ac_objext \
8059       conftest$ac_exeext conftest.$ac_ext
8060
8061         LIBS="$saved_LIBS"
8062         CFLAGS="$saved_CFLAGS"
8063
8064         if test "$support_tls" = "yes"; then
8065
8066 cat >>confdefs.h <<\_ACEOF
8067 #define HAVE_OPENSSL 1
8068 _ACEOF
8069
8070
8071 cat >>confdefs.h <<\_ACEOF
8072 #define HAVE_TLS 1
8073 _ACEOF
8074
8075         fi
8076 else
8077         support_tls="no"
8078         OPENSSL_LIBS=""
8079         OPENSSL_INC=""
8080 fi
8081
8082 echo "$as_me:$LINENO: result: $support_tls" >&5
8083 echo "${ECHO_T}$support_tls" >&6
8084
8085
8086
8087
8088 # -----------------------------------------------------------
8089 # Python and OpenSSL are using dlopen
8090 # -----------------------------------------------------------
8091
8092 if test "$support_python" = "yes" -o "$support_tls" = "yes"; then
8093    echo "$as_me:$LINENO: checking for library containing dlopen" >&5
8094 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
8095 if test "${ac_cv_search_dlopen+set}" = set; then
8096   echo $ECHO_N "(cached) $ECHO_C" >&6
8097 else
8098   ac_func_search_save_LIBS=$LIBS
8099 ac_cv_search_dlopen=no
8100 cat >conftest.$ac_ext <<_ACEOF
8101 /* confdefs.h.  */
8102 _ACEOF
8103 cat confdefs.h >>conftest.$ac_ext
8104 cat >>conftest.$ac_ext <<_ACEOF
8105 /* end confdefs.h.  */
8106
8107 /* Override any gcc2 internal prototype to avoid an error.  */
8108 #ifdef __cplusplus
8109 extern "C"
8110 #endif
8111 /* We use char because int might match the return type of a gcc2
8112    builtin and then its argument prototype would still apply.  */
8113 char dlopen ();
8114 int
8115 main ()
8116 {
8117 dlopen ();
8118   ;
8119   return 0;
8120 }
8121 _ACEOF
8122 rm -f conftest.$ac_objext conftest$ac_exeext
8123 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8124   (eval $ac_link) 2>conftest.er1
8125   ac_status=$?
8126   grep -v '^ *+' conftest.er1 >conftest.err
8127   rm -f conftest.er1
8128   cat conftest.err >&5
8129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8130   (exit $ac_status); } &&
8131          { ac_try='test -z "$ac_c_werror_flag"
8132                          || test ! -s conftest.err'
8133   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8134   (eval $ac_try) 2>&5
8135   ac_status=$?
8136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8137   (exit $ac_status); }; } &&
8138          { ac_try='test -s conftest$ac_exeext'
8139   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8140   (eval $ac_try) 2>&5
8141   ac_status=$?
8142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8143   (exit $ac_status); }; }; then
8144   ac_cv_search_dlopen="none required"
8145 else
8146   echo "$as_me: failed program was:" >&5
8147 sed 's/^/| /' conftest.$ac_ext >&5
8148
8149 fi
8150 rm -f conftest.err conftest.$ac_objext \
8151       conftest$ac_exeext conftest.$ac_ext
8152 if test "$ac_cv_search_dlopen" = no; then
8153   for ac_lib in dl; do
8154     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8155     cat >conftest.$ac_ext <<_ACEOF
8156 /* confdefs.h.  */
8157 _ACEOF
8158 cat confdefs.h >>conftest.$ac_ext
8159 cat >>conftest.$ac_ext <<_ACEOF
8160 /* end confdefs.h.  */
8161
8162 /* Override any gcc2 internal prototype to avoid an error.  */
8163 #ifdef __cplusplus
8164 extern "C"
8165 #endif
8166 /* We use char because int might match the return type of a gcc2
8167    builtin and then its argument prototype would still apply.  */
8168 char dlopen ();
8169 int
8170 main ()
8171 {
8172 dlopen ();
8173   ;
8174   return 0;
8175 }
8176 _ACEOF
8177 rm -f conftest.$ac_objext conftest$ac_exeext
8178 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8179   (eval $ac_link) 2>conftest.er1
8180   ac_status=$?
8181   grep -v '^ *+' conftest.er1 >conftest.err
8182   rm -f conftest.er1
8183   cat conftest.err >&5
8184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8185   (exit $ac_status); } &&
8186          { ac_try='test -z "$ac_c_werror_flag"
8187                          || test ! -s conftest.err'
8188   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8189   (eval $ac_try) 2>&5
8190   ac_status=$?
8191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8192   (exit $ac_status); }; } &&
8193          { ac_try='test -s conftest$ac_exeext'
8194   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8195   (eval $ac_try) 2>&5
8196   ac_status=$?
8197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8198   (exit $ac_status); }; }; then
8199   ac_cv_search_dlopen="-l$ac_lib"
8200 break
8201 else
8202   echo "$as_me: failed program was:" >&5
8203 sed 's/^/| /' conftest.$ac_ext >&5
8204
8205 fi
8206 rm -f conftest.err conftest.$ac_objext \
8207       conftest$ac_exeext conftest.$ac_ext
8208   done
8209 fi
8210 LIBS=$ac_func_search_save_LIBS
8211 fi
8212 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
8213 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
8214 if test "$ac_cv_search_dlopen" != no; then
8215   test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
8216
8217 fi
8218
8219 fi
8220
8221 # ------------------------------------------
8222 # Where to place working dir
8223 # ------------------------------------------
8224 working_dir=`eval echo ${prefix}/var/bacula/working`
8225
8226 # Check whether --with-working-dir or --without-working-dir was given.
8227 if test "${with_working_dir+set}" = set; then
8228   withval="$with_working_dir"
8229
8230        if test "x$withval" != "xno" ; then
8231               working_dir=$withval
8232        fi
8233
8234
8235 fi;
8236
8237
8238
8239
8240 # ------------------------------------------
8241 # Where to place scriptdir (script files)
8242 # ------------------------------------------
8243 scriptdir=`eval echo ${sysconfdir}`
8244
8245 # Check whether --with-scriptdir or --without-scriptdir was given.
8246 if test "${with_scriptdir+set}" = set; then
8247   withval="$with_scriptdir"
8248
8249        if test "x$withval" != "xno" ; then
8250               scriptdir=$withval
8251        fi
8252
8253
8254 fi;
8255
8256
8257
8258
8259 # ------------------------------------------
8260 # Where to send dump email
8261 # ------------------------------------------
8262 dump_email=root@localhost
8263
8264 # Check whether --with-dump-email or --without-dump-email was given.
8265 if test "${with_dump_email+set}" = set; then
8266   withval="$with_dump_email"
8267
8268        if test "x$withval" != "xno" ; then
8269               dump_email=$withval
8270        fi
8271
8272
8273 fi;
8274
8275
8276
8277 # ------------------------------------------
8278 # Where to send job email
8279 # ------------------------------------------
8280 job_email=root@localhost
8281
8282 # Check whether --with-job-email or --without-job-email was given.
8283 if test "${with_job_email+set}" = set; then
8284   withval="$with_job_email"
8285
8286        if test "x$withval" != "xno" ; then
8287               job_email=$withval
8288        fi
8289
8290
8291 fi;
8292
8293
8294
8295 # ------------------------------------------
8296 # Where to find smtp host
8297 # ------------------------------------------
8298 smtp_host=localhost
8299
8300 # Check whether --with-smtp_host or --without-smtp_host was given.
8301 if test "${with_smtp_host+set}" = set; then
8302   withval="$with_smtp_host"
8303
8304        if test "x$withval" != "xno" ; then
8305               smtp_host=$withval
8306        fi
8307
8308
8309 fi;
8310
8311
8312
8313
8314 # ------------------------------------
8315 # Where to place pid files
8316 # ------------------------------------
8317 piddir=/var/run
8318
8319 # Check whether --with-pid-dir or --without-pid-dir was given.
8320 if test "${with_pid_dir+set}" = set; then
8321   withval="$with_pid_dir"
8322
8323         if test "x$withval" != "xno" ; then
8324             piddir=$withval
8325         fi
8326
8327
8328 fi;
8329
8330 cat >>confdefs.h <<_ACEOF
8331 #define _PATH_BACULA_PIDDIR "$piddir"
8332 _ACEOF
8333
8334
8335
8336
8337 # ------------------------------------
8338 # Where to place subsys "lock file"
8339 # ------------------------------------
8340 subsysdir=/var/run/subsys
8341
8342 # Check whether --with-subsys-dir or --without-subsys-dir was given.
8343 if test "${with_subsys_dir+set}" = set; then
8344   withval="$with_subsys_dir"
8345
8346         if test "x$withval" != "xno" ; then
8347             subsysdir=$withval
8348         fi
8349
8350
8351 fi;
8352
8353
8354
8355
8356
8357 # ------------------------------------
8358 # Where to start assigning ports
8359 # ------------------------------------
8360 baseport=9101
8361
8362 # Check whether --with-baseport or --without-baseport was given.
8363 if test "${with_baseport+set}" = set; then
8364   withval="$with_baseport"
8365
8366         if test "x$withval" != "xno" ; then
8367              baseport=$withval
8368         fi
8369
8370
8371 fi;
8372
8373
8374 dir_port=`expr $baseport`
8375 fd_port=`expr $baseport + 1`
8376 sd_port=`expr $fd_port + 1`
8377
8378
8379
8380
8381
8382
8383 # ------------------------------------------
8384 # Generate passwords
8385 # ------------------------------------------
8386 dir_password=
8387
8388 # Check whether --with-dir-password or --without-dir-password was given.
8389 if test "${with_dir_password+set}" = set; then
8390   withval="$with_dir_password"
8391
8392        if test "x$withval" != "xno" ; then
8393            dir_password=$withval
8394        fi
8395
8396
8397 fi;
8398
8399 if test "x$dir_password" = "x" ; then
8400    if test "x$OPENSSL" = "xnone" ; then
8401       key=`autoconf/randpass 33`
8402    else
8403       key=`openssl rand -base64 33`
8404    fi
8405    dir_password=$key
8406 fi
8407
8408 fd_password=
8409
8410 # Check whether --with-fd-password or --without-fd-password was given.
8411 if test "${with_fd_password+set}" = set; then
8412   withval="$with_fd_password"
8413
8414        if test "x$withval" != "xno" ; then
8415            fd_password=$withval
8416        fi
8417
8418
8419 fi;
8420
8421 if test "x$fd_password" = "x" ; then
8422    if test "x$OPENSSL" = "xnone" ; then
8423       key=`autoconf/randpass 37`
8424    else
8425       key=`openssl rand -base64 33`
8426    fi
8427    fd_password=$key
8428 fi
8429
8430 sd_password=
8431
8432 # Check whether --with-sd-password or --without-sd-password was given.
8433 if test "${with_sd_password+set}" = set; then
8434   withval="$with_sd_password"
8435
8436        if test "x$withval" != "xno" ; then
8437            sd_password=$withval
8438        fi
8439
8440
8441 fi;
8442
8443 if test "x$sd_password" = "x" ; then
8444    if test "x$OPENSSL" = "xnone" ; then
8445       key=`autoconf/randpass 41`
8446    else
8447       key=`openssl rand -base64 33`
8448    fi
8449    sd_password=$key
8450 fi
8451
8452 mon_dir_password=
8453
8454 # Check whether --with-mon-dir-password or --without-mon-dir-password was given.
8455 if test "${with_mon_dir_password+set}" = set; then
8456   withval="$with_mon_dir_password"
8457
8458        if test "x$withval" != "xno" ; then
8459            mon_dir_password=$withval
8460        fi
8461
8462
8463 fi;
8464
8465 if test "x$mon_dir_password" = "x" ; then
8466    if test "x$OPENSSL" = "xnone" ; then
8467       key=`autoconf/randpass 33`
8468    else
8469       key=`openssl rand -base64 33`
8470    fi
8471    mon_dir_password=$key
8472 fi
8473
8474 mon_fd_password=
8475
8476 # Check whether --with-mon-fd-password or --without-mon-fd-password was given.
8477 if test "${with_mon_fd_password+set}" = set; then
8478   withval="$with_mon_fd_password"
8479
8480        if test "x$withval" != "xno" ; then
8481            mon_fd_password=$withval
8482        fi
8483
8484
8485 fi;
8486
8487 if test "x$mon_fd_password" = "x" ; then
8488    if test "x$OPENSSL" = "xnone" ; then
8489       key=`autoconf/randpass 37`
8490    else
8491       key=`openssl rand -base64 33`
8492    fi
8493    mon_fd_password=$key
8494 fi
8495
8496 mon_sd_password=
8497
8498 # Check whether --with-mon-sd-password or --without-mon-sd-password was given.
8499 if test "${with_mon_sd_password+set}" = set; then
8500   withval="$with_mon_sd_password"
8501
8502        if test "x$withval" != "xno" ; then
8503            mon_sd_password=$withval
8504        fi
8505
8506
8507 fi;
8508
8509 if test "x$mon_sd_password" = "x" ; then
8510    if test "x$OPENSSL" = "xnone" ; then
8511       key=`autoconf/randpass 41`
8512    else
8513       key=`openssl rand -base64 33`
8514    fi
8515    mon_sd_password=$key
8516 fi
8517
8518
8519
8520
8521
8522
8523
8524
8525
8526 #
8527 # Handle users and groups for each daemon
8528 #
8529 dir_user=
8530
8531 # Check whether --with-dir_user or --without-dir_user was given.
8532 if test "${with_dir_user+set}" = set; then
8533   withval="$with_dir_user"
8534
8535         if test "x$withval" != "x" ; then
8536              dir_user=$withval
8537         fi
8538
8539
8540 fi;
8541
8542 dir_group=
8543
8544 # Check whether --with-dir_group or --without-dir_group was given.
8545 if test "${with_dir_group+set}" = set; then
8546   withval="$with_dir_group"
8547
8548         if test "x$withval" != "x" ; then
8549              dir_group=$withval
8550         fi
8551
8552
8553 fi;
8554
8555 sd_user=
8556
8557 # Check whether --with-sd_user or --without-sd_user was given.
8558 if test "${with_sd_user+set}" = set; then
8559   withval="$with_sd_user"
8560
8561         if test "x$withval" != "x" ; then
8562              sd_user=$withval
8563         fi
8564
8565
8566 fi;
8567
8568 sd_group=
8569
8570 # Check whether --with-sd_group or --without-sd_group was given.
8571 if test "${with_sd_group+set}" = set; then
8572   withval="$with_sd_group"
8573
8574         if test "x$withval" != "x" ; then
8575              sd_group=$withval
8576         fi
8577
8578
8579 fi;
8580
8581 fd_user=
8582
8583 # Check whether --with-fd_user or --without-fd_user was given.
8584 if test "${with_fd_user+set}" = set; then
8585   withval="$with_fd_user"
8586
8587         if test "x$withval" != "x" ; then
8588              fd_user=$withval
8589         fi
8590
8591
8592 fi;
8593
8594 fd_group=
8595
8596 # Check whether --with-fd_group or --without-fd_group was given.
8597 if test "${with_fd_group+set}" = set; then
8598   withval="$with_fd_group"
8599
8600         if test "x$withval" != "x" ; then
8601              fd_group=$withval
8602         fi
8603
8604
8605 fi;
8606
8607
8608
8609
8610
8611
8612
8613
8614
8615
8616
8617 #
8618 # allow setting default executable permissions
8619 #
8620 SBINPERM=0754
8621
8622 # Check whether --with-sbin-perm or --without-sbin-perm was given.
8623 if test "${with_sbin_perm+set}" = set; then
8624   withval="$with_sbin_perm"
8625
8626         if test "x$withval" != "x" ; then
8627             SBINPERM=$withval
8628         fi
8629
8630
8631 fi;
8632
8633
8634
8635 # ------------------------------------------------
8636 # Bacula check for various SQL database engines
8637 # ------------------------------------------------
8638
8639 db_found=no
8640 echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
8641 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6
8642
8643 # Check whether --with-postgresql or --without-postgresql was given.
8644 if test "${with_postgresql+set}" = set; then
8645   withval="$with_postgresql"
8646
8647   if test "$withval" != "no"; then
8648       if test "$db_found" = "yes"; then
8649           echo "$as_me:$LINENO: result: error" >&5
8650 echo "${ECHO_T}error" >&6
8651           { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
8652 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
8653    { (exit 1); exit 1; }; };
8654       fi
8655       if test "$withval" = "yes"; then
8656           if test -f /usr/local/include/libpq-fe.h; then
8657               POSTGRESQL_INCDIR=/usr/local/include
8658               POSTGRESQL_LIBDIR=/usr/local/lib
8659               POSTGRESQL_BINDIR=/usr/local/bin
8660           elif test -f /usr/include/libpq-fe.h; then
8661               POSTGRESQL_INCDIR=/usr/include
8662               POSTGRESQL_LIBDIR=/usr/lib
8663               POSTGRESQL_BINDIR=/usr/bin
8664           elif test -f /usr/include/pgsql/libpq-fe.h; then
8665               POSTGRESQL_INCDIR=/usr/include/pgsql
8666               POSTGRESQL_LIBDIR=/usr/lib/pgsql
8667               POSTGRESQL_BINDIR=/usr/bin
8668           elif test -f /usr/include/postgresql/libpq-fe.h; then
8669               POSTGRESQL_INCDIR=/usr/include/postgresql
8670               POSTGRESQL_LIBDIR=/usr/lib/postgresql
8671               POSTGRESQL_BINDIR=/usr/bin
8672           else
8673               echo "$as_me:$LINENO: result: no" >&5
8674 echo "${ECHO_T}no" >&6
8675               { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
8676 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
8677    { (exit 1); exit 1; }; }
8678           fi
8679       elif test -f $withval/include/libpq-fe.h; then
8680           POSTGRESQL_INCDIR=$withval/include
8681           POSTGRESQL_LIBDIR=$withval/lib
8682           POSTGRESQL_BINDIR=$withval/bin
8683       elif test -f $withval/include/postgresql/libpq-fe.h; then
8684           POSTGRESQL_INCDIR=$withval/include/postgresql
8685           POSTGRESQL_LIBDIR=$withval/lib
8686           POSTGRESQL_BINDIR=$withval/bin
8687       else
8688           echo "$as_me:$LINENO: result: no" >&5
8689 echo "${ECHO_T}no" >&6
8690           { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
8691 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
8692    { (exit 1); exit 1; }; }
8693       fi
8694       POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
8695       echo "$as_me:$LINENO: checking for crypt" >&5
8696 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
8697 if test "${ac_cv_func_crypt+set}" = set; then
8698   echo $ECHO_N "(cached) $ECHO_C" >&6
8699 else
8700   cat >conftest.$ac_ext <<_ACEOF
8701 /* confdefs.h.  */
8702 _ACEOF
8703 cat confdefs.h >>conftest.$ac_ext
8704 cat >>conftest.$ac_ext <<_ACEOF
8705 /* end confdefs.h.  */
8706 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
8707    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8708 #define crypt innocuous_crypt
8709
8710 /* System header to define __stub macros and hopefully few prototypes,
8711     which can conflict with char crypt (); below.
8712     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8713     <limits.h> exists even on freestanding compilers.  */
8714
8715 #ifdef __STDC__
8716 # include <limits.h>
8717 #else
8718 # include <assert.h>
8719 #endif
8720
8721 #undef crypt
8722
8723 /* Override any gcc2 internal prototype to avoid an error.  */
8724 #ifdef __cplusplus
8725 extern "C"
8726 {
8727 #endif
8728 /* We use char because int might match the return type of a gcc2
8729    builtin and then its argument prototype would still apply.  */
8730 char crypt ();
8731 /* The GNU C library defines this for functions which it implements
8732     to always fail with ENOSYS.  Some functions are actually named
8733     something starting with __ and the normal name is an alias.  */
8734 #if defined (__stub_crypt) || defined (__stub___crypt)
8735 choke me
8736 #else
8737 char (*f) () = crypt;
8738 #endif
8739 #ifdef __cplusplus
8740 }
8741 #endif
8742
8743 int
8744 main ()
8745 {
8746 return f != crypt;
8747   ;
8748   return 0;
8749 }
8750 _ACEOF
8751 rm -f conftest.$ac_objext conftest$ac_exeext
8752 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8753   (eval $ac_link) 2>conftest.er1
8754   ac_status=$?
8755   grep -v '^ *+' conftest.er1 >conftest.err
8756   rm -f conftest.er1
8757   cat conftest.err >&5
8758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8759   (exit $ac_status); } &&
8760          { ac_try='test -z "$ac_c_werror_flag"
8761                          || test ! -s conftest.err'
8762   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8763   (eval $ac_try) 2>&5
8764   ac_status=$?
8765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8766   (exit $ac_status); }; } &&
8767          { ac_try='test -s conftest$ac_exeext'
8768   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8769   (eval $ac_try) 2>&5
8770   ac_status=$?
8771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8772   (exit $ac_status); }; }; then
8773   ac_cv_func_crypt=yes
8774 else
8775   echo "$as_me: failed program was:" >&5
8776 sed 's/^/| /' conftest.$ac_ext >&5
8777
8778 ac_cv_func_crypt=no
8779 fi
8780 rm -f conftest.err conftest.$ac_objext \
8781       conftest$ac_exeext conftest.$ac_ext
8782 fi
8783 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
8784 echo "${ECHO_T}$ac_cv_func_crypt" >&6
8785 if test $ac_cv_func_crypt = yes; then
8786   :
8787 else
8788   echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
8789 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
8790 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
8791   echo $ECHO_N "(cached) $ECHO_C" >&6
8792 else
8793   ac_check_lib_save_LIBS=$LIBS
8794 LIBS="-lcrypt  $LIBS"
8795 cat >conftest.$ac_ext <<_ACEOF
8796 /* confdefs.h.  */
8797 _ACEOF
8798 cat confdefs.h >>conftest.$ac_ext
8799 cat >>conftest.$ac_ext <<_ACEOF
8800 /* end confdefs.h.  */
8801
8802 /* Override any gcc2 internal prototype to avoid an error.  */
8803 #ifdef __cplusplus
8804 extern "C"
8805 #endif
8806 /* We use char because int might match the return type of a gcc2
8807    builtin and then its argument prototype would still apply.  */
8808 char crypt ();
8809 int
8810 main ()
8811 {
8812 crypt ();
8813   ;
8814   return 0;
8815 }
8816 _ACEOF
8817 rm -f conftest.$ac_objext conftest$ac_exeext
8818 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8819   (eval $ac_link) 2>conftest.er1
8820   ac_status=$?
8821   grep -v '^ *+' conftest.er1 >conftest.err
8822   rm -f conftest.er1
8823   cat conftest.err >&5
8824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8825   (exit $ac_status); } &&
8826          { ac_try='test -z "$ac_c_werror_flag"
8827                          || test ! -s conftest.err'
8828   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8829   (eval $ac_try) 2>&5
8830   ac_status=$?
8831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8832   (exit $ac_status); }; } &&
8833          { ac_try='test -s conftest$ac_exeext'
8834   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8835   (eval $ac_try) 2>&5
8836   ac_status=$?
8837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8838   (exit $ac_status); }; }; then
8839   ac_cv_lib_crypt_crypt=yes
8840 else
8841   echo "$as_me: failed program was:" >&5
8842 sed 's/^/| /' conftest.$ac_ext >&5
8843
8844 ac_cv_lib_crypt_crypt=no
8845 fi
8846 rm -f conftest.err conftest.$ac_objext \
8847       conftest$ac_exeext conftest.$ac_ext
8848 LIBS=$ac_check_lib_save_LIBS
8849 fi
8850 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
8851 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
8852 if test $ac_cv_lib_crypt_crypt = yes; then
8853   POSTGRESQL_LFLAGS="-lcrypt $POSTGRESQL_LFLAGS"
8854 fi
8855
8856 fi
8857
8858       SQL_INCLUDE=-I$POSTGRESQL_INCDIR
8859       SQL_LFLAGS=$POSTGRESQL_LFLAGS
8860       SQL_BINDIR=$POSTGRESQL_BINDIR
8861       cat >>confdefs.h <<\_ACEOF
8862 #define HAVE_POSTGRESQL 1
8863 _ACEOF
8864
8865       echo "$as_me:$LINENO: result: yes" >&5
8866 echo "${ECHO_T}yes" >&6
8867       db_found=yes
8868       support_postgresql=yes
8869       db_name=PostgreSQL
8870       DB_NAME=postgresql
8871   else
8872       echo "$as_me:$LINENO: result: no" >&5
8873 echo "${ECHO_T}no" >&6
8874   fi
8875
8876 else
8877
8878   echo "$as_me:$LINENO: result: no" >&5
8879 echo "${ECHO_T}no" >&6
8880
8881 fi;
8882
8883
8884
8885
8886
8887
8888
8889 db_found=no
8890 echo "$as_me:$LINENO: checking for MySQL support" >&5
8891 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6
8892
8893 # Check whether --with-mysql or --without-mysql was given.
8894 if test "${with_mysql+set}" = set; then
8895   withval="$with_mysql"
8896
8897   if test "$withval" != "no"; then
8898         if test "$withval" = "yes"; then
8899                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
8900                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
8901                         MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
8902                         MYSQL_BINDIR=/usr/local/mysql/bin
8903                 elif test -f /usr/include/mysql/mysql.h; then
8904                         MYSQL_INCDIR=/usr/include/mysql
8905                         MYSQL_LIBDIR=/usr/lib/mysql
8906                         MYSQL_BINDIR=/usr/bin
8907                 elif test -f /usr/include/mysql.h; then
8908                         MYSQL_INCDIR=/usr/include
8909                         MYSQL_LIBDIR=/usr/lib
8910                         MYSQL_BINDIR=/usr/bin
8911                 elif test -f /usr/local/include/mysql/mysql.h; then
8912                         MYSQL_INCDIR=/usr/local/include/mysql
8913                         MYSQL_LIBDIR=/usr/local/lib/mysql
8914                         MYSQL_BINDIR=/usr/local/bin
8915                 elif test -f /usr/local/include/mysql.h; then
8916                         MYSQL_INCDIR=/usr/local/include
8917                         MYSQL_LIBDIR=/usr/local/lib
8918                         MYSQL_BINDIR=/usr/local/bin
8919                 else
8920                    echo "$as_me:$LINENO: result: no" >&5
8921 echo "${ECHO_T}no" >&6
8922                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
8923 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
8924    { (exit 1); exit 1; }; }
8925                 fi
8926         else
8927                 if test -f $withval/include/mysql/mysql.h; then
8928                         MYSQL_INCDIR=$withval/include/mysql
8929                         MYSQL_LIBDIR=$withval/lib/mysql
8930                         MYSQL_BINDIR=$withval/bin
8931                 elif test -f $withval/include/mysql.h; then
8932                         MYSQL_INCDIR=$withval/include
8933                         MYSQL_LIBDIR=$withval/lib
8934                         MYSQL_BINDIR=$withval/bin
8935                 else
8936                    echo "$as_me:$LINENO: result: no" >&5
8937 echo "${ECHO_T}no" >&6
8938                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
8939 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
8940    { (exit 1); exit 1; }; }
8941                 fi
8942         fi
8943     SQL_INCLUDE=-I$MYSQL_INCDIR
8944     if test -f $MYSQL_LIBDIR/libmysqlclient_r.a; then
8945        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
8946        cat >>confdefs.h <<\_ACEOF
8947 #define HAVE_THREAD_SAFE_MYSQL 1
8948 _ACEOF
8949
8950     else
8951        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient -lz"
8952     fi
8953     SQL_BINDIR=$MYSQL_BINDIR
8954
8955     cat >>confdefs.h <<\_ACEOF
8956 #define HAVE_MYSQL 1
8957 _ACEOF
8958
8959     echo "$as_me:$LINENO: result: yes" >&5
8960 echo "${ECHO_T}yes" >&6
8961     db_found=yes
8962     support_mysql=yes
8963     db_name=MySQL
8964     DB_NAME=mysql
8965
8966   else
8967         echo "$as_me:$LINENO: result: no" >&5
8968 echo "${ECHO_T}no" >&6
8969   fi
8970
8971
8972 fi;
8973
8974
8975 # Check whether --with-embedded-mysql or --without-embedded-mysql was given.
8976 if test "${with_embedded_mysql+set}" = set; then
8977   withval="$with_embedded_mysql"
8978
8979   if test "$withval" != "no"; then
8980         if test "$withval" = "yes"; then
8981                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
8982                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
8983                         MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
8984                         MYSQL_BINDIR=/usr/local/mysql/bin
8985                 elif test -f /usr/include/mysql/mysql.h; then
8986                         MYSQL_INCDIR=/usr/include/mysql
8987                         MYSQL_LIBDIR=/usr/lib/mysql
8988                         MYSQL_BINDIR=/usr/bin
8989                 elif test -f /usr/include/mysql.h; then
8990                         MYSQL_INCDIR=/usr/include
8991                         MYSQL_LIBDIR=/usr/lib
8992                         MYSQL_BINDIR=/usr/bin
8993                 elif test -f /usr/local/include/mysql/mysql.h; then
8994                         MYSQL_INCDIR=/usr/local/include/mysql
8995                         MYSQL_LIBDIR=/usr/local/lib/mysql
8996                         MYSQL_BINDIR=/usr/local/bin
8997                 elif test -f /usr/local/include/mysql.h; then
8998                         MYSQL_INCDIR=/usr/local/include
8999                         MYSQL_LIBDIR=/usr/local/lib
9000                         MYSQL_BINDIR=/usr/local/bin
9001                 else
9002                    echo "$as_me:$LINENO: result: no" >&5
9003 echo "${ECHO_T}no" >&6
9004                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
9005 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
9006    { (exit 1); exit 1; }; }
9007                 fi
9008         else
9009                 if test -f $withval/include/mysql/mysql.h; then
9010                         MYSQL_INCDIR=$withval/include/mysql
9011                         MYSQL_LIBDIR=$withval/lib/mysql
9012                         MYSQL_BINDIR=$withval/bin
9013                 elif test -f $withval/include/mysql.h; then
9014                         MYSQL_INCDIR=$withval/include
9015                         MYSQL_LIBDIR=$withval/lib
9016                         MYSQL_BINDIR=$withval/bin
9017                 else
9018                    echo "$as_me:$LINENO: result: no" >&5
9019 echo "${ECHO_T}no" >&6
9020                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
9021 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
9022    { (exit 1); exit 1; }; }
9023                 fi
9024         fi
9025     SQL_INCLUDE=-I$MYSQL_INCDIR
9026     SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
9027     SQL_BINDIR=$MYSQL_BINDIR
9028
9029     cat >>confdefs.h <<\_ACEOF
9030 #define HAVE_MYSQL 1
9031 _ACEOF
9032
9033     cat >>confdefs.h <<\_ACEOF
9034 #define HAVE_EMBEDDED_MYSQL 1
9035 _ACEOF
9036
9037     echo "$as_me:$LINENO: result: yes" >&5
9038 echo "${ECHO_T}yes" >&6
9039     db_found=yes
9040     support_mysql=yes
9041     db_name=MySQL
9042     DB_NAME=mysql
9043
9044   else
9045         echo "$as_me:$LINENO: result: no" >&5
9046 echo "${ECHO_T}no" >&6
9047   fi
9048
9049
9050 fi;
9051
9052
9053
9054
9055
9056
9057
9058
9059
9060 db_found=no
9061 echo "$as_me:$LINENO: checking for SQLite3 support" >&5
9062 echo $ECHO_N "checking for SQLite3 support... $ECHO_C" >&6
9063
9064 # Check whether --with-sqlite3 or --without-sqlite3 was given.
9065 if test "${with_sqlite3+set}" = set; then
9066   withval="$with_sqlite3"
9067
9068   if test "$withval" != "no"; then
9069      if test "$withval" = "yes"; then
9070         if test -f /usr/local/include/sqlite3.h; then
9071            SQLITE_INCDIR=/usr/local/include
9072            SQLITE_LIBDIR=/usr/local/lib
9073            SQLITE_BINDIR=/usr/local/bin
9074         elif test -f /usr/include/sqlite3.h; then
9075            SQLITE_INCDIR=/usr/include
9076            SQLITE_LIBDIR=/usr/lib
9077            SQLITE_BINDIR=/usr/bin
9078         elif test -f $prefix/include/sqlite3.h; then
9079            SQLITE_INCDIR=$prefix/include
9080            SQLITE_LIBDIR=$prefix/lib
9081            SQLITE_BINDIR=$prefix/bin
9082         else
9083            echo "$as_me:$LINENO: result: no" >&5
9084 echo "${ECHO_T}no" >&6
9085            { { echo "$as_me:$LINENO: error: Unable to find sqlite3.h in standard locations" >&5
9086 echo "$as_me: error: Unable to find sqlite3.h in standard locations" >&2;}
9087    { (exit 1); exit 1; }; }
9088         fi
9089      else
9090         if test -f $withval/sqlite3.h; then
9091            SQLITE_INCDIR=$withval
9092            SQLITE_LIBDIR=$withval
9093            SQLITE_BINDIR=$withval
9094         elif test -f $withval/include/sqlite3.h; then
9095            SQLITE_INCDIR=$withval/include
9096            SQLITE_LIBDIR=$withval/lib
9097            SQLITE_BINDIR=$withval/bin
9098         else
9099            echo "$as_me:$LINENO: result: no" >&5
9100 echo "${ECHO_T}no" >&6
9101            { { echo "$as_me:$LINENO: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&5
9102 echo "$as_me: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&2;}
9103    { (exit 1); exit 1; }; }
9104         fi
9105      fi
9106      SQL_INCLUDE=-I$SQLITE_INCDIR
9107      SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite3"
9108      SQL_BINDIR=$SQLITE_BINDIR
9109
9110      cat >>confdefs.h <<\_ACEOF
9111 #define HAVE_SQLITE3 1
9112 _ACEOF
9113
9114      echo "$as_me:$LINENO: result: yes" >&5
9115 echo "${ECHO_T}yes" >&6
9116      db_found=yes
9117      support_sqlite3=yes
9118      db_name=SQLite3
9119      DB_NAME=sqlite3
9120
9121   else
9122      echo "$as_me:$LINENO: result: no" >&5
9123 echo "${ECHO_T}no" >&6
9124   fi
9125
9126 else
9127
9128   echo "$as_me:$LINENO: result: no" >&5
9129 echo "${ECHO_T}no" >&6
9130
9131 fi;
9132
9133
9134
9135
9136
9137
9138
9139 db_found=no
9140 echo "$as_me:$LINENO: checking for SQLite support" >&5
9141 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6
9142
9143 # Check whether --with-sqlite or --without-sqlite was given.
9144 if test "${with_sqlite+set}" = set; then
9145   withval="$with_sqlite"
9146
9147   if test "$withval" != "no"; then
9148      if test "$withval" = "yes"; then
9149         if test -f /usr/local/include/sqlite.h; then
9150            SQLITE_INCDIR=/usr/local/include
9151            SQLITE_LIBDIR=/usr/local/lib
9152            SQLITE_BINDIR=/usr/local/bin
9153         elif test -f /usr/include/sqlite.h; then
9154            SQLITE_INCDIR=/usr/include
9155            SQLITE_LIBDIR=/usr/lib
9156            SQLITE_BINDIR=/usr/bin
9157         elif test -f $prefix/include/sqlite.h; then
9158            SQLITE_INCDIR=$prefix/include
9159            SQLITE_LIBDIR=$prefix/lib
9160            SQLITE_BINDIR=$prefix/bin
9161         else
9162            echo "$as_me:$LINENO: result: no" >&5
9163 echo "${ECHO_T}no" >&6
9164            { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
9165 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
9166    { (exit 1); exit 1; }; }
9167         fi
9168      else
9169         if test -f $withval/sqlite.h; then
9170            SQLITE_INCDIR=$withval
9171            SQLITE_LIBDIR=$withval
9172            SQLITE_BINDIR=$withval
9173         elif test -f $withval/include/sqlite.h; then
9174            SQLITE_INCDIR=$withval/include
9175            SQLITE_LIBDIR=$withval/lib
9176            SQLITE_BINDIR=$withval/bin
9177         else
9178            echo "$as_me:$LINENO: result: no" >&5
9179 echo "${ECHO_T}no" >&6
9180            { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
9181 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
9182    { (exit 1); exit 1; }; }
9183         fi
9184      fi
9185      SQL_INCLUDE=-I$SQLITE_INCDIR
9186      SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
9187      SQL_BINDIR=$SQLITE_BINDIR
9188
9189      cat >>confdefs.h <<\_ACEOF
9190 #define HAVE_SQLITE 1
9191 _ACEOF
9192
9193      echo "$as_me:$LINENO: result: yes" >&5
9194 echo "${ECHO_T}yes" >&6
9195      db_found=yes
9196      support_sqlite=yes
9197      db_name=SQLite
9198      DB_NAME=sqlite
9199
9200   else
9201      echo "$as_me:$LINENO: result: no" >&5
9202 echo "${ECHO_T}no" >&6
9203   fi
9204
9205 else
9206
9207   echo "$as_me:$LINENO: result: no" >&5
9208 echo "${ECHO_T}no" >&6
9209
9210 fi;
9211
9212
9213
9214
9215
9216
9217
9218
9219
9220 cat >>confdefs.h <<\_ACEOF
9221 #define PROTOTYPES 1
9222 _ACEOF
9223
9224
9225 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
9226     if test -z "$CCOPTS"; then
9227         CCOPTS='-g -O2 -Wall'
9228     fi
9229     CFLAGS="$CCOPTS"
9230 fi
9231
9232
9233
9234
9235 largefile_support="no"
9236
9237    # Check whether --enable-largefile or --disable-largefile was given.
9238 if test "${enable_largefile+set}" = set; then
9239   enableval="$enable_largefile"
9240
9241 fi;
9242    if test "$enable_largefile" != no; then
9243      if test -n "$ac_tool_prefix"; then
9244   # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
9245 set dummy ${ac_tool_prefix}getconf; ac_word=$2
9246 echo "$as_me:$LINENO: checking for $ac_word" >&5
9247 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9248 if test "${ac_cv_prog_GETCONF+set}" = set; then
9249   echo $ECHO_N "(cached) $ECHO_C" >&6
9250 else
9251   if test -n "$GETCONF"; then
9252   ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
9253 else
9254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9255 for as_dir in $PATH
9256 do
9257   IFS=$as_save_IFS
9258   test -z "$as_dir" && as_dir=.
9259   for ac_exec_ext in '' $ac_executable_extensions; do
9260   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9261     ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
9262     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9263     break 2
9264   fi
9265 done
9266 done
9267
9268 fi
9269 fi
9270 GETCONF=$ac_cv_prog_GETCONF
9271 if test -n "$GETCONF"; then
9272   echo "$as_me:$LINENO: result: $GETCONF" >&5
9273 echo "${ECHO_T}$GETCONF" >&6
9274 else
9275   echo "$as_me:$LINENO: result: no" >&5
9276 echo "${ECHO_T}no" >&6
9277 fi
9278
9279 fi
9280 if test -z "$ac_cv_prog_GETCONF"; then
9281   ac_ct_GETCONF=$GETCONF
9282   # Extract the first word of "getconf", so it can be a program name with args.
9283 set dummy getconf; ac_word=$2
9284 echo "$as_me:$LINENO: checking for $ac_word" >&5
9285 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9286 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
9287   echo $ECHO_N "(cached) $ECHO_C" >&6
9288 else
9289   if test -n "$ac_ct_GETCONF"; then
9290   ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
9291 else
9292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9293 for as_dir in $PATH
9294 do
9295   IFS=$as_save_IFS
9296   test -z "$as_dir" && as_dir=.
9297   for ac_exec_ext in '' $ac_executable_extensions; do
9298   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9299     ac_cv_prog_ac_ct_GETCONF="getconf"
9300     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9301     break 2
9302   fi
9303 done
9304 done
9305
9306 fi
9307 fi
9308 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
9309 if test -n "$ac_ct_GETCONF"; then
9310   echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
9311 echo "${ECHO_T}$ac_ct_GETCONF" >&6
9312 else
9313   echo "$as_me:$LINENO: result: no" >&5
9314 echo "${ECHO_T}no" >&6
9315 fi
9316
9317   GETCONF=$ac_ct_GETCONF
9318 else
9319   GETCONF="$ac_cv_prog_GETCONF"
9320 fi
9321
9322      echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
9323 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6
9324 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
9325   echo $ECHO_N "(cached) $ECHO_C" >&6
9326 else
9327   ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
9328         ac_cv_sys_largefile_CFLAGS=no
9329         case "$host_os" in
9330            # IRIX 6.2 and later require cc -n32.
9331            irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
9332              if test "$GCC" != yes; then
9333                ac_cv_sys_largefile_CFLAGS=-n32
9334              fi
9335              ac_save_CC="$CC"
9336              CC="$CC $ac_cv_sys_largefile_CFLAGS"
9337              cat >conftest.$ac_ext <<_ACEOF
9338 /* confdefs.h.  */
9339 _ACEOF
9340 cat confdefs.h >>conftest.$ac_ext
9341 cat >>conftest.$ac_ext <<_ACEOF
9342 /* end confdefs.h.  */
9343
9344 int
9345 main ()
9346 {
9347
9348   ;
9349   return 0;
9350 }
9351 _ACEOF
9352 rm -f conftest.$ac_objext conftest$ac_exeext
9353 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9354   (eval $ac_link) 2>conftest.er1
9355   ac_status=$?
9356   grep -v '^ *+' conftest.er1 >conftest.err
9357   rm -f conftest.er1
9358   cat conftest.err >&5
9359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9360   (exit $ac_status); } &&
9361          { ac_try='test -z "$ac_c_werror_flag"
9362                          || test ! -s conftest.err'
9363   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9364   (eval $ac_try) 2>&5
9365   ac_status=$?
9366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9367   (exit $ac_status); }; } &&
9368          { ac_try='test -s conftest$ac_exeext'
9369   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9370   (eval $ac_try) 2>&5
9371   ac_status=$?
9372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9373   (exit $ac_status); }; }; then
9374   :
9375 else
9376   echo "$as_me: failed program was:" >&5
9377 sed 's/^/| /' conftest.$ac_ext >&5
9378
9379 ac_cv_sys_largefile_CFLAGS=no
9380 fi
9381 rm -f conftest.err conftest.$ac_objext \
9382       conftest$ac_exeext conftest.$ac_ext
9383              CC="$ac_save_CC"
9384            esac
9385       }
9386 fi
9387 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
9388 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6
9389      echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
9390 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6
9391 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
9392   echo $ECHO_N "(cached) $ECHO_C" >&6
9393 else
9394   ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
9395         ac_cv_sys_largefile_LDFLAGS=no
9396
9397       }
9398 fi
9399 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
9400 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6
9401      echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
9402 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6
9403 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
9404   echo $ECHO_N "(cached) $ECHO_C" >&6
9405 else
9406   ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
9407         ac_cv_sys_largefile_LIBS=no
9408
9409       }
9410 fi
9411 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
9412 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6
9413
9414      for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
9415        case "$ac_flag" in
9416        no) ;;
9417        -D_FILE_OFFSET_BITS=*) ;;
9418        -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
9419        -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
9420        -D?* | -I?*)
9421          case "$ac_flag" in
9422    no) ;;
9423    ?*)
9424      case "$CPPFLAGS" in
9425      '') CPPFLAGS="$ac_flag" ;;
9426      *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
9427      esac ;;
9428    esac ;;
9429        *)
9430          case "$ac_flag" in
9431    no) ;;
9432    ?*)
9433      case "$CFLAGS" in
9434      '') CFLAGS="$ac_flag" ;;
9435      *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
9436      esac ;;
9437    esac ;;
9438        esac
9439      done
9440      case "$ac_cv_sys_largefile_LDFLAGS" in
9441    no) ;;
9442    ?*)
9443      case "$LDFLAGS" in
9444      '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
9445      *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
9446      esac ;;
9447    esac
9448      case "$ac_cv_sys_largefile_LIBS" in
9449    no) ;;
9450    ?*)
9451      case "$LIBS" in
9452      '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
9453      *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
9454      esac ;;
9455    esac
9456      echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
9457 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6
9458 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
9459   echo $ECHO_N "(cached) $ECHO_C" >&6
9460 else
9461   ac_cv_sys_file_offset_bits=no
9462       ac_cv_sys_file_offset_bits=64
9463       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
9464         case "$ac_flag" in
9465         -D_FILE_OFFSET_BITS)
9466           ac_cv_sys_file_offset_bits=1 ;;
9467         -D_FILE_OFFSET_BITS=*)
9468           ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
9469         esac
9470       done
9471
9472 fi
9473 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
9474 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
9475    if test "$ac_cv_sys_file_offset_bits" != no; then
9476
9477 cat >>confdefs.h <<_ACEOF
9478 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
9479 _ACEOF
9480
9481    fi
9482      echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
9483 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6
9484 if test "${ac_cv_sys_largefile_source+set}" = set; then
9485   echo $ECHO_N "(cached) $ECHO_C" >&6
9486 else
9487   ac_cv_sys_largefile_source=no
9488       ac_cv_sys_largefile_source=1
9489       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
9490         case "$ac_flag" in
9491         -D_LARGEFILE_SOURCE)
9492           ac_cv_sys_largefile_source=1 ;;
9493         -D_LARGEFILE_SOURCE=*)
9494           ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
9495         esac
9496       done
9497
9498 fi
9499 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
9500 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
9501    if test "$ac_cv_sys_largefile_source" != no; then
9502
9503 cat >>confdefs.h <<_ACEOF
9504 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
9505 _ACEOF
9506
9507    fi
9508      echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
9509 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6
9510 if test "${ac_cv_sys_large_files+set}" = set; then
9511   echo $ECHO_N "(cached) $ECHO_C" >&6
9512 else
9513   ac_cv_sys_large_files=no
9514       ac_cv_sys_large_files=1
9515       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
9516         case "$ac_flag" in
9517         -D_LARGE_FILES)
9518           ac_cv_sys_large_files=1 ;;
9519         -D_LARGE_FILES=*)
9520           ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
9521         esac
9522       done
9523
9524 fi
9525 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
9526 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
9527    if test "$ac_cv_sys_large_files" != no; then
9528
9529 cat >>confdefs.h <<_ACEOF
9530 #define _LARGE_FILES $ac_cv_sys_large_files
9531 _ACEOF
9532
9533    fi
9534    fi
9535
9536
9537
9538 echo "$as_me:$LINENO: checking for X" >&5
9539 echo $ECHO_N "checking for X... $ECHO_C" >&6
9540
9541
9542 # Check whether --with-x or --without-x was given.
9543 if test "${with_x+set}" = set; then
9544   withval="$with_x"
9545
9546 fi;
9547 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9548 if test "x$with_x" = xno; then
9549   # The user explicitly disabled X.
9550   have_x=disabled
9551 else
9552   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
9553     # Both variables are already set.
9554     have_x=yes
9555   else
9556     if test "${ac_cv_have_x+set}" = set; then
9557   echo $ECHO_N "(cached) $ECHO_C" >&6
9558 else
9559   # One or both of the vars are not set, and there is no cached value.
9560 ac_x_includes=no ac_x_libraries=no
9561 rm -fr conftest.dir
9562 if mkdir conftest.dir; then
9563   cd conftest.dir
9564   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
9565   cat >Imakefile <<'_ACEOF'
9566 acfindx:
9567         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
9568 _ACEOF
9569   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
9570     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9571     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
9572     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9573     for ac_extension in a so sl; do
9574       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
9575          test -f $ac_im_libdir/libX11.$ac_extension; then
9576         ac_im_usrlibdir=$ac_im_libdir; break
9577       fi
9578     done
9579     # Screen out bogus values from the imake configuration.  They are
9580     # bogus both because they are the default anyway, and because
9581     # using them would break gcc on systems where it needs fixed includes.
9582     case $ac_im_incroot in
9583         /usr/include) ;;
9584         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9585     esac
9586     case $ac_im_usrlibdir in
9587         /usr/lib | /lib) ;;
9588         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9589     esac
9590   fi
9591   cd ..
9592   rm -fr conftest.dir
9593 fi
9594
9595 # Standard set of common directories for X headers.
9596 # Check X11 before X11Rn because it is often a symlink to the current release.
9597 ac_x_header_dirs='
9598 /usr/X11/include
9599 /usr/X11R6/include
9600 /usr/X11R5/include
9601 /usr/X11R4/include
9602
9603 /usr/include/X11
9604 /usr/include/X11R6
9605 /usr/include/X11R5
9606 /usr/include/X11R4
9607
9608 /usr/local/X11/include
9609 /usr/local/X11R6/include
9610 /usr/local/X11R5/include
9611 /usr/local/X11R4/include
9612
9613 /usr/local/include/X11
9614 /usr/local/include/X11R6
9615 /usr/local/include/X11R5
9616 /usr/local/include/X11R4
9617
9618 /usr/X386/include
9619 /usr/x386/include
9620 /usr/XFree86/include/X11
9621
9622 /usr/include
9623 /usr/local/include
9624 /usr/unsupported/include
9625 /usr/athena/include
9626 /usr/local/x11r5/include
9627 /usr/lpp/Xamples/include
9628
9629 /usr/openwin/include
9630 /usr/openwin/share/include'
9631
9632 if test "$ac_x_includes" = no; then
9633   # Guess where to find include files, by looking for Intrinsic.h.
9634   # First, try using that file with no special directory specified.
9635   cat >conftest.$ac_ext <<_ACEOF
9636 /* confdefs.h.  */
9637 _ACEOF
9638 cat confdefs.h >>conftest.$ac_ext
9639 cat >>conftest.$ac_ext <<_ACEOF
9640 /* end confdefs.h.  */
9641 #include <X11/Intrinsic.h>
9642 _ACEOF
9643 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9644   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9645   ac_status=$?
9646   grep -v '^ *+' conftest.er1 >conftest.err
9647   rm -f conftest.er1
9648   cat conftest.err >&5
9649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9650   (exit $ac_status); } >/dev/null; then
9651   if test -s conftest.err; then
9652     ac_cpp_err=$ac_c_preproc_warn_flag
9653     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9654   else
9655     ac_cpp_err=
9656   fi
9657 else
9658   ac_cpp_err=yes
9659 fi
9660 if test -z "$ac_cpp_err"; then
9661   # We can compile using X headers with no special include directory.
9662 ac_x_includes=
9663 else
9664   echo "$as_me: failed program was:" >&5
9665 sed 's/^/| /' conftest.$ac_ext >&5
9666
9667   for ac_dir in $ac_x_header_dirs; do
9668   if test -r "$ac_dir/X11/Intrinsic.h"; then
9669     ac_x_includes=$ac_dir
9670     break
9671   fi
9672 done
9673 fi
9674 rm -f conftest.err conftest.$ac_ext
9675 fi # $ac_x_includes = no
9676
9677 if test "$ac_x_libraries" = no; then
9678   # Check for the libraries.
9679   # See if we find them without any special options.
9680   # Don't add to $LIBS permanently.
9681   ac_save_LIBS=$LIBS
9682   LIBS="-lXt $LIBS"
9683   cat >conftest.$ac_ext <<_ACEOF
9684 /* confdefs.h.  */
9685 _ACEOF
9686 cat confdefs.h >>conftest.$ac_ext
9687 cat >>conftest.$ac_ext <<_ACEOF
9688 /* end confdefs.h.  */
9689 #include <X11/Intrinsic.h>
9690 int
9691 main ()
9692 {
9693 XtMalloc (0)
9694   ;
9695   return 0;
9696 }
9697 _ACEOF
9698 rm -f conftest.$ac_objext conftest$ac_exeext
9699 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9700   (eval $ac_link) 2>conftest.er1
9701   ac_status=$?
9702   grep -v '^ *+' conftest.er1 >conftest.err
9703   rm -f conftest.er1
9704   cat conftest.err >&5
9705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9706   (exit $ac_status); } &&
9707          { ac_try='test -z "$ac_c_werror_flag"
9708                          || test ! -s conftest.err'
9709   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9710   (eval $ac_try) 2>&5
9711   ac_status=$?
9712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9713   (exit $ac_status); }; } &&
9714          { ac_try='test -s conftest$ac_exeext'
9715   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9716   (eval $ac_try) 2>&5
9717   ac_status=$?
9718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9719   (exit $ac_status); }; }; then
9720   LIBS=$ac_save_LIBS
9721 # We can link X programs with no special library path.
9722 ac_x_libraries=
9723 else
9724   echo "$as_me: failed program was:" >&5
9725 sed 's/^/| /' conftest.$ac_ext >&5
9726
9727 LIBS=$ac_save_LIBS
9728 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9729 do
9730   # Don't even attempt the hair of trying to link an X program!
9731   for ac_extension in a so sl; do
9732     if test -r $ac_dir/libXt.$ac_extension; then
9733       ac_x_libraries=$ac_dir
9734       break 2
9735     fi
9736   done
9737 done
9738 fi
9739 rm -f conftest.err conftest.$ac_objext \
9740       conftest$ac_exeext conftest.$ac_ext
9741 fi # $ac_x_libraries = no
9742
9743 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
9744   # Didn't find X anywhere.  Cache the known absence of X.
9745   ac_cv_have_x="have_x=no"
9746 else
9747   # Record where we found X for the cache.
9748   ac_cv_have_x="have_x=yes \
9749                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
9750 fi
9751 fi
9752
9753   fi
9754   eval "$ac_cv_have_x"
9755 fi # $with_x != no
9756
9757 if test "$have_x" != yes; then
9758   echo "$as_me:$LINENO: result: $have_x" >&5
9759 echo "${ECHO_T}$have_x" >&6
9760   no_x=yes
9761 else
9762   # If each of the values was on the command line, it overrides each guess.
9763   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9764   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9765   # Update the cache value to reflect the command line values.
9766   ac_cv_have_x="have_x=yes \
9767                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
9768   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9769 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
9770 fi
9771
9772 if test "$no_x" = yes; then
9773   # Not all programs may use this symbol, but it does not hurt to define it.
9774
9775 cat >>confdefs.h <<\_ACEOF
9776 #define X_DISPLAY_MISSING 1
9777 _ACEOF
9778
9779   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
9780 else
9781   if test -n "$x_includes"; then
9782     X_CFLAGS="$X_CFLAGS -I$x_includes"
9783   fi
9784
9785   # It would also be nice to do this for all -L options, not just this one.
9786   if test -n "$x_libraries"; then
9787     X_LIBS="$X_LIBS -L$x_libraries"
9788     # For Solaris; some versions of Sun CC require a space after -R and
9789     # others require no space.  Words are not sufficient . . . .
9790     case `(uname -sr) 2>/dev/null` in
9791     "SunOS 5"*)
9792       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
9793 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
9794       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
9795       cat >conftest.$ac_ext <<_ACEOF
9796 /* confdefs.h.  */
9797 _ACEOF
9798 cat confdefs.h >>conftest.$ac_ext
9799 cat >>conftest.$ac_ext <<_ACEOF
9800 /* end confdefs.h.  */
9801
9802 int
9803 main ()
9804 {
9805
9806   ;
9807   return 0;
9808 }
9809 _ACEOF
9810 rm -f conftest.$ac_objext conftest$ac_exeext
9811 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9812   (eval $ac_link) 2>conftest.er1
9813   ac_status=$?
9814   grep -v '^ *+' conftest.er1 >conftest.err
9815   rm -f conftest.er1
9816   cat conftest.err >&5
9817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9818   (exit $ac_status); } &&
9819          { ac_try='test -z "$ac_c_werror_flag"
9820                          || test ! -s conftest.err'
9821   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9822   (eval $ac_try) 2>&5
9823   ac_status=$?
9824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9825   (exit $ac_status); }; } &&
9826          { ac_try='test -s conftest$ac_exeext'
9827   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9828   (eval $ac_try) 2>&5
9829   ac_status=$?
9830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9831   (exit $ac_status); }; }; then
9832   ac_R_nospace=yes
9833 else
9834   echo "$as_me: failed program was:" >&5
9835 sed 's/^/| /' conftest.$ac_ext >&5
9836
9837 ac_R_nospace=no
9838 fi
9839 rm -f conftest.err conftest.$ac_objext \
9840       conftest$ac_exeext conftest.$ac_ext
9841       if test $ac_R_nospace = yes; then
9842         echo "$as_me:$LINENO: result: no" >&5
9843 echo "${ECHO_T}no" >&6
9844         X_LIBS="$X_LIBS -R$x_libraries"
9845       else
9846         LIBS="$ac_xsave_LIBS -R $x_libraries"
9847         cat >conftest.$ac_ext <<_ACEOF
9848 /* confdefs.h.  */
9849 _ACEOF
9850 cat confdefs.h >>conftest.$ac_ext
9851 cat >>conftest.$ac_ext <<_ACEOF
9852 /* end confdefs.h.  */
9853
9854 int
9855 main ()
9856 {
9857
9858   ;
9859   return 0;
9860 }
9861 _ACEOF
9862 rm -f conftest.$ac_objext conftest$ac_exeext
9863 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9864   (eval $ac_link) 2>conftest.er1
9865   ac_status=$?
9866   grep -v '^ *+' conftest.er1 >conftest.err
9867   rm -f conftest.er1
9868   cat conftest.err >&5
9869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9870   (exit $ac_status); } &&
9871          { ac_try='test -z "$ac_c_werror_flag"
9872                          || test ! -s conftest.err'
9873   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9874   (eval $ac_try) 2>&5
9875   ac_status=$?
9876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9877   (exit $ac_status); }; } &&
9878          { ac_try='test -s conftest$ac_exeext'
9879   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9880   (eval $ac_try) 2>&5
9881   ac_status=$?
9882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9883   (exit $ac_status); }; }; then
9884   ac_R_space=yes
9885 else
9886   echo "$as_me: failed program was:" >&5
9887 sed 's/^/| /' conftest.$ac_ext >&5
9888
9889 ac_R_space=no
9890 fi
9891 rm -f conftest.err conftest.$ac_objext \
9892       conftest$ac_exeext conftest.$ac_ext
9893         if test $ac_R_space = yes; then
9894           echo "$as_me:$LINENO: result: yes" >&5
9895 echo "${ECHO_T}yes" >&6
9896           X_LIBS="$X_LIBS -R $x_libraries"
9897         else
9898           echo "$as_me:$LINENO: result: neither works" >&5
9899 echo "${ECHO_T}neither works" >&6
9900         fi
9901       fi
9902       LIBS=$ac_xsave_LIBS
9903     esac
9904   fi
9905
9906   # Check for system-dependent libraries X programs must link with.
9907   # Do this before checking for the system-independent R6 libraries
9908   # (-lICE), since we may need -lsocket or whatever for X linking.
9909
9910   if test "$ISC" = yes; then
9911     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
9912   else
9913     # Martyn Johnson says this is needed for Ultrix, if the X
9914     # libraries were built with DECnet support.  And Karl Berry says
9915     # the Alpha needs dnet_stub (dnet does not exist).
9916     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
9917     cat >conftest.$ac_ext <<_ACEOF
9918 /* confdefs.h.  */
9919 _ACEOF
9920 cat confdefs.h >>conftest.$ac_ext
9921 cat >>conftest.$ac_ext <<_ACEOF
9922 /* end confdefs.h.  */
9923
9924 /* Override any gcc2 internal prototype to avoid an error.  */
9925 #ifdef __cplusplus
9926 extern "C"
9927 #endif
9928 /* We use char because int might match the return type of a gcc2
9929    builtin and then its argument prototype would still apply.  */
9930 char XOpenDisplay ();
9931 int
9932 main ()
9933 {
9934 XOpenDisplay ();
9935   ;
9936   return 0;
9937 }
9938 _ACEOF
9939 rm -f conftest.$ac_objext conftest$ac_exeext
9940 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9941   (eval $ac_link) 2>conftest.er1
9942   ac_status=$?
9943   grep -v '^ *+' conftest.er1 >conftest.err
9944   rm -f conftest.er1
9945   cat conftest.err >&5
9946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9947   (exit $ac_status); } &&
9948          { ac_try='test -z "$ac_c_werror_flag"
9949                          || test ! -s conftest.err'
9950   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9951   (eval $ac_try) 2>&5
9952   ac_status=$?
9953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9954   (exit $ac_status); }; } &&
9955          { ac_try='test -s conftest$ac_exeext'
9956   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9957   (eval $ac_try) 2>&5
9958   ac_status=$?
9959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9960   (exit $ac_status); }; }; then
9961   :
9962 else
9963   echo "$as_me: failed program was:" >&5
9964 sed 's/^/| /' conftest.$ac_ext >&5
9965
9966 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
9967 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
9968 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
9969   echo $ECHO_N "(cached) $ECHO_C" >&6
9970 else
9971   ac_check_lib_save_LIBS=$LIBS
9972 LIBS="-ldnet  $LIBS"
9973 cat >conftest.$ac_ext <<_ACEOF
9974 /* confdefs.h.  */
9975 _ACEOF
9976 cat confdefs.h >>conftest.$ac_ext
9977 cat >>conftest.$ac_ext <<_ACEOF
9978 /* end confdefs.h.  */
9979
9980 /* Override any gcc2 internal prototype to avoid an error.  */
9981 #ifdef __cplusplus
9982 extern "C"
9983 #endif
9984 /* We use char because int might match the return type of a gcc2
9985    builtin and then its argument prototype would still apply.  */
9986 char dnet_ntoa ();
9987 int
9988 main ()
9989 {
9990 dnet_ntoa ();
9991   ;
9992   return 0;
9993 }
9994 _ACEOF
9995 rm -f conftest.$ac_objext conftest$ac_exeext
9996 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9997   (eval $ac_link) 2>conftest.er1
9998   ac_status=$?
9999   grep -v '^ *+' conftest.er1 >conftest.err
10000   rm -f conftest.er1
10001   cat conftest.err >&5
10002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10003   (exit $ac_status); } &&
10004          { ac_try='test -z "$ac_c_werror_flag"
10005                          || test ! -s conftest.err'
10006   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10007   (eval $ac_try) 2>&5
10008   ac_status=$?
10009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10010   (exit $ac_status); }; } &&
10011          { ac_try='test -s conftest$ac_exeext'
10012   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10013   (eval $ac_try) 2>&5
10014   ac_status=$?
10015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10016   (exit $ac_status); }; }; then
10017   ac_cv_lib_dnet_dnet_ntoa=yes
10018 else
10019   echo "$as_me: failed program was:" >&5
10020 sed 's/^/| /' conftest.$ac_ext >&5
10021
10022 ac_cv_lib_dnet_dnet_ntoa=no
10023 fi
10024 rm -f conftest.err conftest.$ac_objext \
10025       conftest$ac_exeext conftest.$ac_ext
10026 LIBS=$ac_check_lib_save_LIBS
10027 fi
10028 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10029 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
10030 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10031   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
10032 fi
10033
10034     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
10035       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
10036 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
10037 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
10038   echo $ECHO_N "(cached) $ECHO_C" >&6
10039 else
10040   ac_check_lib_save_LIBS=$LIBS
10041 LIBS="-ldnet_stub  $LIBS"
10042 cat >conftest.$ac_ext <<_ACEOF
10043 /* confdefs.h.  */
10044 _ACEOF
10045 cat confdefs.h >>conftest.$ac_ext
10046 cat >>conftest.$ac_ext <<_ACEOF
10047 /* end confdefs.h.  */
10048
10049 /* Override any gcc2 internal prototype to avoid an error.  */
10050 #ifdef __cplusplus
10051 extern "C"
10052 #endif
10053 /* We use char because int might match the return type of a gcc2
10054    builtin and then its argument prototype would still apply.  */
10055 char dnet_ntoa ();
10056 int
10057 main ()
10058 {
10059 dnet_ntoa ();
10060   ;
10061   return 0;
10062 }
10063 _ACEOF
10064 rm -f conftest.$ac_objext conftest$ac_exeext
10065 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10066   (eval $ac_link) 2>conftest.er1
10067   ac_status=$?
10068   grep -v '^ *+' conftest.er1 >conftest.err
10069   rm -f conftest.er1
10070   cat conftest.err >&5
10071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10072   (exit $ac_status); } &&
10073          { ac_try='test -z "$ac_c_werror_flag"
10074                          || test ! -s conftest.err'
10075   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10076   (eval $ac_try) 2>&5
10077   ac_status=$?
10078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10079   (exit $ac_status); }; } &&
10080          { ac_try='test -s conftest$ac_exeext'
10081   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10082   (eval $ac_try) 2>&5
10083   ac_status=$?
10084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10085   (exit $ac_status); }; }; then
10086   ac_cv_lib_dnet_stub_dnet_ntoa=yes
10087 else
10088   echo "$as_me: failed program was:" >&5
10089 sed 's/^/| /' conftest.$ac_ext >&5
10090
10091 ac_cv_lib_dnet_stub_dnet_ntoa=no
10092 fi
10093 rm -f conftest.err conftest.$ac_objext \
10094       conftest$ac_exeext conftest.$ac_ext
10095 LIBS=$ac_check_lib_save_LIBS
10096 fi
10097 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
10098 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
10099 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
10100   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
10101 fi
10102
10103     fi
10104 fi
10105 rm -f conftest.err conftest.$ac_objext \
10106       conftest$ac_exeext conftest.$ac_ext
10107     LIBS="$ac_xsave_LIBS"
10108
10109     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
10110     # to get the SysV transport functions.
10111     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
10112     # needs -lnsl.
10113     # The nsl library prevents programs from opening the X display
10114     # on Irix 5.2, according to T.E. Dickey.
10115     # The functions gethostbyname, getservbyname, and inet_addr are
10116     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
10117     echo "$as_me:$LINENO: checking for gethostbyname" >&5
10118 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
10119 if test "${ac_cv_func_gethostbyname+set}" = set; then
10120   echo $ECHO_N "(cached) $ECHO_C" >&6
10121 else
10122   cat >conftest.$ac_ext <<_ACEOF
10123 /* confdefs.h.  */
10124 _ACEOF
10125 cat confdefs.h >>conftest.$ac_ext
10126 cat >>conftest.$ac_ext <<_ACEOF
10127 /* end confdefs.h.  */
10128 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
10129    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10130 #define gethostbyname innocuous_gethostbyname
10131
10132 /* System header to define __stub macros and hopefully few prototypes,
10133     which can conflict with char gethostbyname (); below.
10134     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10135     <limits.h> exists even on freestanding compilers.  */
10136
10137 #ifdef __STDC__
10138 # include <limits.h>
10139 #else
10140 # include <assert.h>
10141 #endif
10142
10143 #undef gethostbyname
10144
10145 /* Override any gcc2 internal prototype to avoid an error.  */
10146 #ifdef __cplusplus
10147 extern "C"
10148 {
10149 #endif
10150 /* We use char because int might match the return type of a gcc2
10151    builtin and then its argument prototype would still apply.  */
10152 char gethostbyname ();
10153 /* The GNU C library defines this for functions which it implements
10154     to always fail with ENOSYS.  Some functions are actually named
10155     something starting with __ and the normal name is an alias.  */
10156 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
10157 choke me
10158 #else
10159 char (*f) () = gethostbyname;
10160 #endif
10161 #ifdef __cplusplus
10162 }
10163 #endif
10164
10165 int
10166 main ()
10167 {
10168 return f != gethostbyname;
10169   ;
10170   return 0;
10171 }
10172 _ACEOF
10173 rm -f conftest.$ac_objext conftest$ac_exeext
10174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10175   (eval $ac_link) 2>conftest.er1
10176   ac_status=$?
10177   grep -v '^ *+' conftest.er1 >conftest.err
10178   rm -f conftest.er1
10179   cat conftest.err >&5
10180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10181   (exit $ac_status); } &&
10182          { ac_try='test -z "$ac_c_werror_flag"
10183                          || test ! -s conftest.err'
10184   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10185   (eval $ac_try) 2>&5
10186   ac_status=$?
10187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10188   (exit $ac_status); }; } &&
10189          { ac_try='test -s conftest$ac_exeext'
10190   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10191   (eval $ac_try) 2>&5
10192   ac_status=$?
10193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10194   (exit $ac_status); }; }; then
10195   ac_cv_func_gethostbyname=yes
10196 else
10197   echo "$as_me: failed program was:" >&5
10198 sed 's/^/| /' conftest.$ac_ext >&5
10199
10200 ac_cv_func_gethostbyname=no
10201 fi
10202 rm -f conftest.err conftest.$ac_objext \
10203       conftest$ac_exeext conftest.$ac_ext
10204 fi
10205 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
10206 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
10207
10208     if test $ac_cv_func_gethostbyname = no; then
10209       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
10210 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
10211 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
10212   echo $ECHO_N "(cached) $ECHO_C" >&6
10213 else
10214   ac_check_lib_save_LIBS=$LIBS
10215 LIBS="-lnsl  $LIBS"
10216 cat >conftest.$ac_ext <<_ACEOF
10217 /* confdefs.h.  */
10218 _ACEOF
10219 cat confdefs.h >>conftest.$ac_ext
10220 cat >>conftest.$ac_ext <<_ACEOF
10221 /* end confdefs.h.  */
10222
10223 /* Override any gcc2 internal prototype to avoid an error.  */
10224 #ifdef __cplusplus
10225 extern "C"
10226 #endif
10227 /* We use char because int might match the return type of a gcc2
10228    builtin and then its argument prototype would still apply.  */
10229 char gethostbyname ();
10230 int
10231 main ()
10232 {
10233 gethostbyname ();
10234   ;
10235   return 0;
10236 }
10237 _ACEOF
10238 rm -f conftest.$ac_objext conftest$ac_exeext
10239 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10240   (eval $ac_link) 2>conftest.er1
10241   ac_status=$?
10242   grep -v '^ *+' conftest.er1 >conftest.err
10243   rm -f conftest.er1
10244   cat conftest.err >&5
10245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10246   (exit $ac_status); } &&
10247          { ac_try='test -z "$ac_c_werror_flag"
10248                          || test ! -s conftest.err'
10249   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10250   (eval $ac_try) 2>&5
10251   ac_status=$?
10252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10253   (exit $ac_status); }; } &&
10254          { ac_try='test -s conftest$ac_exeext'
10255   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10256   (eval $ac_try) 2>&5
10257   ac_status=$?
10258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10259   (exit $ac_status); }; }; then
10260   ac_cv_lib_nsl_gethostbyname=yes
10261 else
10262   echo "$as_me: failed program was:" >&5
10263 sed 's/^/| /' conftest.$ac_ext >&5
10264
10265 ac_cv_lib_nsl_gethostbyname=no
10266 fi
10267 rm -f conftest.err conftest.$ac_objext \
10268       conftest$ac_exeext conftest.$ac_ext
10269 LIBS=$ac_check_lib_save_LIBS
10270 fi
10271 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
10272 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
10273 if test $ac_cv_lib_nsl_gethostbyname = yes; then
10274   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
10275 fi
10276
10277       if test $ac_cv_lib_nsl_gethostbyname = no; then
10278         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
10279 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
10280 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
10281   echo $ECHO_N "(cached) $ECHO_C" >&6
10282 else
10283   ac_check_lib_save_LIBS=$LIBS
10284 LIBS="-lbsd  $LIBS"
10285 cat >conftest.$ac_ext <<_ACEOF
10286 /* confdefs.h.  */
10287 _ACEOF
10288 cat confdefs.h >>conftest.$ac_ext
10289 cat >>conftest.$ac_ext <<_ACEOF
10290 /* end confdefs.h.  */
10291
10292 /* Override any gcc2 internal prototype to avoid an error.  */
10293 #ifdef __cplusplus
10294 extern "C"
10295 #endif
10296 /* We use char because int might match the return type of a gcc2
10297    builtin and then its argument prototype would still apply.  */
10298 char gethostbyname ();
10299 int
10300 main ()
10301 {
10302 gethostbyname ();
10303   ;
10304   return 0;
10305 }
10306 _ACEOF
10307 rm -f conftest.$ac_objext conftest$ac_exeext
10308 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10309   (eval $ac_link) 2>conftest.er1
10310   ac_status=$?
10311   grep -v '^ *+' conftest.er1 >conftest.err
10312   rm -f conftest.er1
10313   cat conftest.err >&5
10314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10315   (exit $ac_status); } &&
10316          { ac_try='test -z "$ac_c_werror_flag"
10317                          || test ! -s conftest.err'
10318   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10319   (eval $ac_try) 2>&5
10320   ac_status=$?
10321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10322   (exit $ac_status); }; } &&
10323          { ac_try='test -s conftest$ac_exeext'
10324   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10325   (eval $ac_try) 2>&5
10326   ac_status=$?
10327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10328   (exit $ac_status); }; }; then
10329   ac_cv_lib_bsd_gethostbyname=yes
10330 else
10331   echo "$as_me: failed program was:" >&5
10332 sed 's/^/| /' conftest.$ac_ext >&5
10333
10334 ac_cv_lib_bsd_gethostbyname=no
10335 fi
10336 rm -f conftest.err conftest.$ac_objext \
10337       conftest$ac_exeext conftest.$ac_ext
10338 LIBS=$ac_check_lib_save_LIBS
10339 fi
10340 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
10341 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
10342 if test $ac_cv_lib_bsd_gethostbyname = yes; then
10343   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
10344 fi
10345
10346       fi
10347     fi
10348
10349     # lieder@skyler.mavd.honeywell.com says without -lsocket,
10350     # socket/setsockopt and other routines are undefined under SCO ODT
10351     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
10352     # on later versions), says Simon Leinen: it contains gethostby*
10353     # variants that don't use the name server (or something).  -lsocket
10354     # must be given before -lnsl if both are needed.  We assume that
10355     # if connect needs -lnsl, so does gethostbyname.
10356     echo "$as_me:$LINENO: checking for connect" >&5
10357 echo $ECHO_N "checking for connect... $ECHO_C" >&6
10358 if test "${ac_cv_func_connect+set}" = set; then
10359   echo $ECHO_N "(cached) $ECHO_C" >&6
10360 else
10361   cat >conftest.$ac_ext <<_ACEOF
10362 /* confdefs.h.  */
10363 _ACEOF
10364 cat confdefs.h >>conftest.$ac_ext
10365 cat >>conftest.$ac_ext <<_ACEOF
10366 /* end confdefs.h.  */
10367 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
10368    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10369 #define connect innocuous_connect
10370
10371 /* System header to define __stub macros and hopefully few prototypes,
10372     which can conflict with char connect (); below.
10373     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10374     <limits.h> exists even on freestanding compilers.  */
10375
10376 #ifdef __STDC__
10377 # include <limits.h>
10378 #else
10379 # include <assert.h>
10380 #endif
10381
10382 #undef connect
10383
10384 /* Override any gcc2 internal prototype to avoid an error.  */
10385 #ifdef __cplusplus
10386 extern "C"
10387 {
10388 #endif
10389 /* We use char because int might match the return type of a gcc2
10390    builtin and then its argument prototype would still apply.  */
10391 char connect ();
10392 /* The GNU C library defines this for functions which it implements
10393     to always fail with ENOSYS.  Some functions are actually named
10394     something starting with __ and the normal name is an alias.  */
10395 #if defined (__stub_connect) || defined (__stub___connect)
10396 choke me
10397 #else
10398 char (*f) () = connect;
10399 #endif
10400 #ifdef __cplusplus
10401 }
10402 #endif
10403
10404 int
10405 main ()
10406 {
10407 return f != connect;
10408   ;
10409   return 0;
10410 }
10411 _ACEOF
10412 rm -f conftest.$ac_objext conftest$ac_exeext
10413 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10414   (eval $ac_link) 2>conftest.er1
10415   ac_status=$?
10416   grep -v '^ *+' conftest.er1 >conftest.err
10417   rm -f conftest.er1
10418   cat conftest.err >&5
10419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10420   (exit $ac_status); } &&
10421          { ac_try='test -z "$ac_c_werror_flag"
10422                          || test ! -s conftest.err'
10423   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10424   (eval $ac_try) 2>&5
10425   ac_status=$?
10426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10427   (exit $ac_status); }; } &&
10428          { ac_try='test -s conftest$ac_exeext'
10429   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10430   (eval $ac_try) 2>&5
10431   ac_status=$?
10432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10433   (exit $ac_status); }; }; then
10434   ac_cv_func_connect=yes
10435 else
10436   echo "$as_me: failed program was:" >&5
10437 sed 's/^/| /' conftest.$ac_ext >&5
10438
10439 ac_cv_func_connect=no
10440 fi
10441 rm -f conftest.err conftest.$ac_objext \
10442       conftest$ac_exeext conftest.$ac_ext
10443 fi
10444 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
10445 echo "${ECHO_T}$ac_cv_func_connect" >&6
10446
10447     if test $ac_cv_func_connect = no; then
10448       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
10449 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
10450 if test "${ac_cv_lib_socket_connect+set}" = set; then
10451   echo $ECHO_N "(cached) $ECHO_C" >&6
10452 else
10453   ac_check_lib_save_LIBS=$LIBS
10454 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
10455 cat >conftest.$ac_ext <<_ACEOF
10456 /* confdefs.h.  */
10457 _ACEOF
10458 cat confdefs.h >>conftest.$ac_ext
10459 cat >>conftest.$ac_ext <<_ACEOF
10460 /* end confdefs.h.  */
10461
10462 /* Override any gcc2 internal prototype to avoid an error.  */
10463 #ifdef __cplusplus
10464 extern "C"
10465 #endif
10466 /* We use char because int might match the return type of a gcc2
10467    builtin and then its argument prototype would still apply.  */
10468 char connect ();
10469 int
10470 main ()
10471 {
10472 connect ();
10473   ;
10474   return 0;
10475 }
10476 _ACEOF
10477 rm -f conftest.$ac_objext conftest$ac_exeext
10478 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10479   (eval $ac_link) 2>conftest.er1
10480   ac_status=$?
10481   grep -v '^ *+' conftest.er1 >conftest.err
10482   rm -f conftest.er1
10483   cat conftest.err >&5
10484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10485   (exit $ac_status); } &&
10486          { ac_try='test -z "$ac_c_werror_flag"
10487                          || test ! -s conftest.err'
10488   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10489   (eval $ac_try) 2>&5
10490   ac_status=$?
10491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10492   (exit $ac_status); }; } &&
10493          { ac_try='test -s conftest$ac_exeext'
10494   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10495   (eval $ac_try) 2>&5
10496   ac_status=$?
10497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10498   (exit $ac_status); }; }; then
10499   ac_cv_lib_socket_connect=yes
10500 else
10501   echo "$as_me: failed program was:" >&5
10502 sed 's/^/| /' conftest.$ac_ext >&5
10503
10504 ac_cv_lib_socket_connect=no
10505 fi
10506 rm -f conftest.err conftest.$ac_objext \
10507       conftest$ac_exeext conftest.$ac_ext
10508 LIBS=$ac_check_lib_save_LIBS
10509 fi
10510 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
10511 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
10512 if test $ac_cv_lib_socket_connect = yes; then
10513   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
10514 fi
10515
10516     fi
10517
10518     # Guillermo Gomez says -lposix is necessary on A/UX.
10519     echo "$as_me:$LINENO: checking for remove" >&5
10520 echo $ECHO_N "checking for remove... $ECHO_C" >&6
10521 if test "${ac_cv_func_remove+set}" = set; then
10522   echo $ECHO_N "(cached) $ECHO_C" >&6
10523 else
10524   cat >conftest.$ac_ext <<_ACEOF
10525 /* confdefs.h.  */
10526 _ACEOF
10527 cat confdefs.h >>conftest.$ac_ext
10528 cat >>conftest.$ac_ext <<_ACEOF
10529 /* end confdefs.h.  */
10530 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
10531    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10532 #define remove innocuous_remove
10533
10534 /* System header to define __stub macros and hopefully few prototypes,
10535     which can conflict with char remove (); below.
10536     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10537     <limits.h> exists even on freestanding compilers.  */
10538
10539 #ifdef __STDC__
10540 # include <limits.h>
10541 #else
10542 # include <assert.h>
10543 #endif
10544
10545 #undef remove
10546
10547 /* Override any gcc2 internal prototype to avoid an error.  */
10548 #ifdef __cplusplus
10549 extern "C"
10550 {
10551 #endif
10552 /* We use char because int might match the return type of a gcc2
10553    builtin and then its argument prototype would still apply.  */
10554 char remove ();
10555 /* The GNU C library defines this for functions which it implements
10556     to always fail with ENOSYS.  Some functions are actually named
10557     something starting with __ and the normal name is an alias.  */
10558 #if defined (__stub_remove) || defined (__stub___remove)
10559 choke me
10560 #else
10561 char (*f) () = remove;
10562 #endif
10563 #ifdef __cplusplus
10564 }
10565 #endif
10566
10567 int
10568 main ()
10569 {
10570 return f != remove;
10571   ;
10572   return 0;
10573 }
10574 _ACEOF
10575 rm -f conftest.$ac_objext conftest$ac_exeext
10576 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10577   (eval $ac_link) 2>conftest.er1
10578   ac_status=$?
10579   grep -v '^ *+' conftest.er1 >conftest.err
10580   rm -f conftest.er1
10581   cat conftest.err >&5
10582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10583   (exit $ac_status); } &&
10584          { ac_try='test -z "$ac_c_werror_flag"
10585                          || test ! -s conftest.err'
10586   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10587   (eval $ac_try) 2>&5
10588   ac_status=$?
10589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10590   (exit $ac_status); }; } &&
10591          { ac_try='test -s conftest$ac_exeext'
10592   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10593   (eval $ac_try) 2>&5
10594   ac_status=$?
10595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10596   (exit $ac_status); }; }; then
10597   ac_cv_func_remove=yes
10598 else
10599   echo "$as_me: failed program was:" >&5
10600 sed 's/^/| /' conftest.$ac_ext >&5
10601
10602 ac_cv_func_remove=no
10603 fi
10604 rm -f conftest.err conftest.$ac_objext \
10605       conftest$ac_exeext conftest.$ac_ext
10606 fi
10607 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
10608 echo "${ECHO_T}$ac_cv_func_remove" >&6
10609
10610     if test $ac_cv_func_remove = no; then
10611       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
10612 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
10613 if test "${ac_cv_lib_posix_remove+set}" = set; then
10614   echo $ECHO_N "(cached) $ECHO_C" >&6
10615 else
10616   ac_check_lib_save_LIBS=$LIBS
10617 LIBS="-lposix  $LIBS"
10618 cat >conftest.$ac_ext <<_ACEOF
10619 /* confdefs.h.  */
10620 _ACEOF
10621 cat confdefs.h >>conftest.$ac_ext
10622 cat >>conftest.$ac_ext <<_ACEOF
10623 /* end confdefs.h.  */
10624
10625 /* Override any gcc2 internal prototype to avoid an error.  */
10626 #ifdef __cplusplus
10627 extern "C"
10628 #endif
10629 /* We use char because int might match the return type of a gcc2
10630    builtin and then its argument prototype would still apply.  */
10631 char remove ();
10632 int
10633 main ()
10634 {
10635 remove ();
10636   ;
10637   return 0;
10638 }
10639 _ACEOF
10640 rm -f conftest.$ac_objext conftest$ac_exeext
10641 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10642   (eval $ac_link) 2>conftest.er1
10643   ac_status=$?
10644   grep -v '^ *+' conftest.er1 >conftest.err
10645   rm -f conftest.er1
10646   cat conftest.err >&5
10647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10648   (exit $ac_status); } &&
10649          { ac_try='test -z "$ac_c_werror_flag"
10650                          || test ! -s conftest.err'
10651   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10652   (eval $ac_try) 2>&5
10653   ac_status=$?
10654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10655   (exit $ac_status); }; } &&
10656          { ac_try='test -s conftest$ac_exeext'
10657   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10658   (eval $ac_try) 2>&5
10659   ac_status=$?
10660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10661   (exit $ac_status); }; }; then
10662   ac_cv_lib_posix_remove=yes
10663 else
10664   echo "$as_me: failed program was:" >&5
10665 sed 's/^/| /' conftest.$ac_ext >&5
10666
10667 ac_cv_lib_posix_remove=no
10668 fi
10669 rm -f conftest.err conftest.$ac_objext \
10670       conftest$ac_exeext conftest.$ac_ext
10671 LIBS=$ac_check_lib_save_LIBS
10672 fi
10673 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
10674 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
10675 if test $ac_cv_lib_posix_remove = yes; then
10676   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
10677 fi
10678
10679     fi
10680
10681     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
10682     echo "$as_me:$LINENO: checking for shmat" >&5
10683 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
10684 if test "${ac_cv_func_shmat+set}" = set; then
10685   echo $ECHO_N "(cached) $ECHO_C" >&6
10686 else
10687   cat >conftest.$ac_ext <<_ACEOF
10688 /* confdefs.h.  */
10689 _ACEOF
10690 cat confdefs.h >>conftest.$ac_ext
10691 cat >>conftest.$ac_ext <<_ACEOF
10692 /* end confdefs.h.  */
10693 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
10694    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10695 #define shmat innocuous_shmat
10696
10697 /* System header to define __stub macros and hopefully few prototypes,
10698     which can conflict with char shmat (); below.
10699     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10700     <limits.h> exists even on freestanding compilers.  */
10701
10702 #ifdef __STDC__
10703 # include <limits.h>
10704 #else
10705 # include <assert.h>
10706 #endif
10707
10708 #undef shmat
10709
10710 /* Override any gcc2 internal prototype to avoid an error.  */
10711 #ifdef __cplusplus
10712 extern "C"
10713 {
10714 #endif
10715 /* We use char because int might match the return type of a gcc2
10716    builtin and then its argument prototype would still apply.  */
10717 char shmat ();
10718 /* The GNU C library defines this for functions which it implements
10719     to always fail with ENOSYS.  Some functions are actually named
10720     something starting with __ and the normal name is an alias.  */
10721 #if defined (__stub_shmat) || defined (__stub___shmat)
10722 choke me
10723 #else
10724 char (*f) () = shmat;
10725 #endif
10726 #ifdef __cplusplus
10727 }
10728 #endif
10729
10730 int
10731 main ()
10732 {
10733 return f != shmat;
10734   ;
10735   return 0;
10736 }
10737 _ACEOF
10738 rm -f conftest.$ac_objext conftest$ac_exeext
10739 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10740   (eval $ac_link) 2>conftest.er1
10741   ac_status=$?
10742   grep -v '^ *+' conftest.er1 >conftest.err
10743   rm -f conftest.er1
10744   cat conftest.err >&5
10745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10746   (exit $ac_status); } &&
10747          { ac_try='test -z "$ac_c_werror_flag"
10748                          || test ! -s conftest.err'
10749   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10750   (eval $ac_try) 2>&5
10751   ac_status=$?
10752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10753   (exit $ac_status); }; } &&
10754          { ac_try='test -s conftest$ac_exeext'
10755   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10756   (eval $ac_try) 2>&5
10757   ac_status=$?
10758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10759   (exit $ac_status); }; }; then
10760   ac_cv_func_shmat=yes
10761 else
10762   echo "$as_me: failed program was:" >&5
10763 sed 's/^/| /' conftest.$ac_ext >&5
10764
10765 ac_cv_func_shmat=no
10766 fi
10767 rm -f conftest.err conftest.$ac_objext \
10768       conftest$ac_exeext conftest.$ac_ext
10769 fi
10770 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
10771 echo "${ECHO_T}$ac_cv_func_shmat" >&6
10772
10773     if test $ac_cv_func_shmat = no; then
10774       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
10775 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
10776 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
10777   echo $ECHO_N "(cached) $ECHO_C" >&6
10778 else
10779   ac_check_lib_save_LIBS=$LIBS
10780 LIBS="-lipc  $LIBS"
10781 cat >conftest.$ac_ext <<_ACEOF
10782 /* confdefs.h.  */
10783 _ACEOF
10784 cat confdefs.h >>conftest.$ac_ext
10785 cat >>conftest.$ac_ext <<_ACEOF
10786 /* end confdefs.h.  */
10787
10788 /* Override any gcc2 internal prototype to avoid an error.  */
10789 #ifdef __cplusplus
10790 extern "C"
10791 #endif
10792 /* We use char because int might match the return type of a gcc2
10793    builtin and then its argument prototype would still apply.  */
10794 char shmat ();
10795 int
10796 main ()
10797 {
10798 shmat ();
10799   ;
10800   return 0;
10801 }
10802 _ACEOF
10803 rm -f conftest.$ac_objext conftest$ac_exeext
10804 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10805   (eval $ac_link) 2>conftest.er1
10806   ac_status=$?
10807   grep -v '^ *+' conftest.er1 >conftest.err
10808   rm -f conftest.er1
10809   cat conftest.err >&5
10810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10811   (exit $ac_status); } &&
10812          { ac_try='test -z "$ac_c_werror_flag"
10813                          || test ! -s conftest.err'
10814   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10815   (eval $ac_try) 2>&5
10816   ac_status=$?
10817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10818   (exit $ac_status); }; } &&
10819          { ac_try='test -s conftest$ac_exeext'
10820   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10821   (eval $ac_try) 2>&5
10822   ac_status=$?
10823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10824   (exit $ac_status); }; }; then
10825   ac_cv_lib_ipc_shmat=yes
10826 else
10827   echo "$as_me: failed program was:" >&5
10828 sed 's/^/| /' conftest.$ac_ext >&5
10829
10830 ac_cv_lib_ipc_shmat=no
10831 fi
10832 rm -f conftest.err conftest.$ac_objext \
10833       conftest$ac_exeext conftest.$ac_ext
10834 LIBS=$ac_check_lib_save_LIBS
10835 fi
10836 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
10837 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
10838 if test $ac_cv_lib_ipc_shmat = yes; then
10839   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
10840 fi
10841
10842     fi
10843   fi
10844
10845   # Check for libraries that X11R6 Xt/Xaw programs need.
10846   ac_save_LDFLAGS=$LDFLAGS
10847   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
10848   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
10849   # check for ICE first), but we must link in the order -lSM -lICE or
10850   # we get undefined symbols.  So assume we have SM if we have ICE.
10851   # These have to be linked with before -lX11, unlike the other
10852   # libraries we check for below, so use a different variable.
10853   # John Interrante, Karl Berry
10854   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
10855 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
10856 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
10857   echo $ECHO_N "(cached) $ECHO_C" >&6
10858 else
10859   ac_check_lib_save_LIBS=$LIBS
10860 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
10861 cat >conftest.$ac_ext <<_ACEOF
10862 /* confdefs.h.  */
10863 _ACEOF
10864 cat confdefs.h >>conftest.$ac_ext
10865 cat >>conftest.$ac_ext <<_ACEOF
10866 /* end confdefs.h.  */
10867
10868 /* Override any gcc2 internal prototype to avoid an error.  */
10869 #ifdef __cplusplus
10870 extern "C"
10871 #endif
10872 /* We use char because int might match the return type of a gcc2
10873    builtin and then its argument prototype would still apply.  */
10874 char IceConnectionNumber ();
10875 int
10876 main ()
10877 {
10878 IceConnectionNumber ();
10879   ;
10880   return 0;
10881 }
10882 _ACEOF
10883 rm -f conftest.$ac_objext conftest$ac_exeext
10884 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10885   (eval $ac_link) 2>conftest.er1
10886   ac_status=$?
10887   grep -v '^ *+' conftest.er1 >conftest.err
10888   rm -f conftest.er1
10889   cat conftest.err >&5
10890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10891   (exit $ac_status); } &&
10892          { ac_try='test -z "$ac_c_werror_flag"
10893                          || test ! -s conftest.err'
10894   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10895   (eval $ac_try) 2>&5
10896   ac_status=$?
10897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10898   (exit $ac_status); }; } &&
10899          { ac_try='test -s conftest$ac_exeext'
10900   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10901   (eval $ac_try) 2>&5
10902   ac_status=$?
10903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10904   (exit $ac_status); }; }; then
10905   ac_cv_lib_ICE_IceConnectionNumber=yes
10906 else
10907   echo "$as_me: failed program was:" >&5
10908 sed 's/^/| /' conftest.$ac_ext >&5
10909
10910 ac_cv_lib_ICE_IceConnectionNumber=no
10911 fi
10912 rm -f conftest.err conftest.$ac_objext \
10913       conftest$ac_exeext conftest.$ac_ext
10914 LIBS=$ac_check_lib_save_LIBS
10915 fi
10916 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
10917 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
10918 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
10919   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
10920 fi
10921
10922   LDFLAGS=$ac_save_LDFLAGS
10923
10924 fi
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954 for ac_header in \
10955         assert.h \
10956         fcntl.h \
10957         grp.h \
10958         pwd.h \
10959         libc.h \
10960         limits.h \
10961         stdarg.h \
10962         stdlib.h \
10963         stdint.h \
10964         string.h \
10965         termios.h \
10966         termcap.h \
10967         term.h \
10968         unistd.h \
10969         sys/bitypes.h \
10970         sys/byteorder.h \
10971         sys/ioctl.h \
10972         sys/select.h \
10973         sys/sockio.h \
10974         sys/time.h \
10975         sys/socket.h \
10976         arpa/nameser.h \
10977         resolv.h \
10978         mtio.h \
10979         sys/mtio.h \
10980         sys/tape.h \
10981         regex.h \
10982
10983 do
10984 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10985 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10986   echo "$as_me:$LINENO: checking for $ac_header" >&5
10987 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10988 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10989   echo $ECHO_N "(cached) $ECHO_C" >&6
10990 fi
10991 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10992 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10993 else
10994   # Is the header compilable?
10995 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10996 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10997 cat >conftest.$ac_ext <<_ACEOF
10998 /* confdefs.h.  */
10999 _ACEOF
11000 cat confdefs.h >>conftest.$ac_ext
11001 cat >>conftest.$ac_ext <<_ACEOF
11002 /* end confdefs.h.  */
11003 $ac_includes_default
11004 #include <$ac_header>
11005 _ACEOF
11006 rm -f conftest.$ac_objext
11007 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11008   (eval $ac_compile) 2>conftest.er1
11009   ac_status=$?
11010   grep -v '^ *+' conftest.er1 >conftest.err
11011   rm -f conftest.er1
11012   cat conftest.err >&5
11013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11014   (exit $ac_status); } &&
11015          { ac_try='test -z "$ac_c_werror_flag"
11016                          || test ! -s conftest.err'
11017   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11018   (eval $ac_try) 2>&5
11019   ac_status=$?
11020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11021   (exit $ac_status); }; } &&
11022          { ac_try='test -s conftest.$ac_objext'
11023   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11024   (eval $ac_try) 2>&5
11025   ac_status=$?
11026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11027   (exit $ac_status); }; }; then
11028   ac_header_compiler=yes
11029 else
11030   echo "$as_me: failed program was:" >&5
11031 sed 's/^/| /' conftest.$ac_ext >&5
11032
11033 ac_header_compiler=no
11034 fi
11035 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11036 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11037 echo "${ECHO_T}$ac_header_compiler" >&6
11038
11039 # Is the header present?
11040 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11041 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11042 cat >conftest.$ac_ext <<_ACEOF
11043 /* confdefs.h.  */
11044 _ACEOF
11045 cat confdefs.h >>conftest.$ac_ext
11046 cat >>conftest.$ac_ext <<_ACEOF
11047 /* end confdefs.h.  */
11048 #include <$ac_header>
11049 _ACEOF
11050 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11051   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11052   ac_status=$?
11053   grep -v '^ *+' conftest.er1 >conftest.err
11054   rm -f conftest.er1
11055   cat conftest.err >&5
11056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11057   (exit $ac_status); } >/dev/null; then
11058   if test -s conftest.err; then
11059     ac_cpp_err=$ac_c_preproc_warn_flag
11060     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11061   else
11062     ac_cpp_err=
11063   fi
11064 else
11065   ac_cpp_err=yes
11066 fi
11067 if test -z "$ac_cpp_err"; then
11068   ac_header_preproc=yes
11069 else
11070   echo "$as_me: failed program was:" >&5
11071 sed 's/^/| /' conftest.$ac_ext >&5
11072
11073   ac_header_preproc=no
11074 fi
11075 rm -f conftest.err conftest.$ac_ext
11076 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11077 echo "${ECHO_T}$ac_header_preproc" >&6
11078
11079 # So?  What about this header?
11080 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11081   yes:no: )
11082     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11083 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11084     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11085 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11086     ac_header_preproc=yes
11087     ;;
11088   no:yes:* )
11089     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11090 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11091     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11092 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11093     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11094 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11095     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11096 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11097     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11098 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11099     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11100 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11101     (
11102       cat <<\_ASBOX
11103 ## ------------------------------------------ ##
11104 ## Report this to the AC_PACKAGE_NAME lists.  ##
11105 ## ------------------------------------------ ##
11106 _ASBOX
11107     ) |
11108       sed "s/^/$as_me: WARNING:     /" >&2
11109     ;;
11110 esac
11111 echo "$as_me:$LINENO: checking for $ac_header" >&5
11112 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11113 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11114   echo $ECHO_N "(cached) $ECHO_C" >&6
11115 else
11116   eval "$as_ac_Header=\$ac_header_preproc"
11117 fi
11118 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11119 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11120
11121 fi
11122 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11123   cat >>confdefs.h <<_ACEOF
11124 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11125 _ACEOF
11126
11127 fi
11128
11129 done
11130
11131 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
11132 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
11133 if test "${ac_cv_header_stdc+set}" = set; then
11134   echo $ECHO_N "(cached) $ECHO_C" >&6
11135 else
11136   cat >conftest.$ac_ext <<_ACEOF
11137 /* confdefs.h.  */
11138 _ACEOF
11139 cat confdefs.h >>conftest.$ac_ext
11140 cat >>conftest.$ac_ext <<_ACEOF
11141 /* end confdefs.h.  */
11142 #include <stdlib.h>
11143 #include <stdarg.h>
11144 #include <string.h>
11145 #include <float.h>
11146
11147 int
11148 main ()
11149 {
11150
11151   ;
11152   return 0;
11153 }
11154 _ACEOF
11155 rm -f conftest.$ac_objext
11156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11157   (eval $ac_compile) 2>conftest.er1
11158   ac_status=$?
11159   grep -v '^ *+' conftest.er1 >conftest.err
11160   rm -f conftest.er1
11161   cat conftest.err >&5
11162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11163   (exit $ac_status); } &&
11164          { ac_try='test -z "$ac_c_werror_flag"
11165                          || test ! -s conftest.err'
11166   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11167   (eval $ac_try) 2>&5
11168   ac_status=$?
11169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11170   (exit $ac_status); }; } &&
11171          { ac_try='test -s conftest.$ac_objext'
11172   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11173   (eval $ac_try) 2>&5
11174   ac_status=$?
11175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11176   (exit $ac_status); }; }; then
11177   ac_cv_header_stdc=yes
11178 else
11179   echo "$as_me: failed program was:" >&5
11180 sed 's/^/| /' conftest.$ac_ext >&5
11181
11182 ac_cv_header_stdc=no
11183 fi
11184 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11185
11186 if test $ac_cv_header_stdc = yes; then
11187   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11188   cat >conftest.$ac_ext <<_ACEOF
11189 /* confdefs.h.  */
11190 _ACEOF
11191 cat confdefs.h >>conftest.$ac_ext
11192 cat >>conftest.$ac_ext <<_ACEOF
11193 /* end confdefs.h.  */
11194 #include <string.h>
11195
11196 _ACEOF
11197 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11198   $EGREP "memchr" >/dev/null 2>&1; then
11199   :
11200 else
11201   ac_cv_header_stdc=no
11202 fi
11203 rm -f conftest*
11204
11205 fi
11206
11207 if test $ac_cv_header_stdc = yes; then
11208   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11209   cat >conftest.$ac_ext <<_ACEOF
11210 /* confdefs.h.  */
11211 _ACEOF
11212 cat confdefs.h >>conftest.$ac_ext
11213 cat >>conftest.$ac_ext <<_ACEOF
11214 /* end confdefs.h.  */
11215 #include <stdlib.h>
11216
11217 _ACEOF
11218 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11219   $EGREP "free" >/dev/null 2>&1; then
11220   :
11221 else
11222   ac_cv_header_stdc=no
11223 fi
11224 rm -f conftest*
11225
11226 fi
11227
11228 if test $ac_cv_header_stdc = yes; then
11229   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11230   if test "$cross_compiling" = yes; then
11231   :
11232 else
11233   cat >conftest.$ac_ext <<_ACEOF
11234 /* confdefs.h.  */
11235 _ACEOF
11236 cat confdefs.h >>conftest.$ac_ext
11237 cat >>conftest.$ac_ext <<_ACEOF
11238 /* end confdefs.h.  */
11239 #include <ctype.h>
11240 #if ((' ' & 0x0FF) == 0x020)
11241 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11242 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11243 #else
11244 # define ISLOWER(c) \
11245                    (('a' <= (c) && (c) <= 'i') \
11246                      || ('j' <= (c) && (c) <= 'r') \
11247                      || ('s' <= (c) && (c) <= 'z'))
11248 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11249 #endif
11250
11251 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11252 int
11253 main ()
11254 {
11255   int i;
11256   for (i = 0; i < 256; i++)
11257     if (XOR (islower (i), ISLOWER (i))
11258         || toupper (i) != TOUPPER (i))
11259       exit(2);
11260   exit (0);
11261 }
11262 _ACEOF
11263 rm -f conftest$ac_exeext
11264 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11265   (eval $ac_link) 2>&5
11266   ac_status=$?
11267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11268   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11269   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11270   (eval $ac_try) 2>&5
11271   ac_status=$?
11272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11273   (exit $ac_status); }; }; then
11274   :
11275 else
11276   echo "$as_me: program exited with status $ac_status" >&5
11277 echo "$as_me: failed program was:" >&5
11278 sed 's/^/| /' conftest.$ac_ext >&5
11279
11280 ( exit $ac_status )
11281 ac_cv_header_stdc=no
11282 fi
11283 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11284 fi
11285 fi
11286 fi
11287 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
11288 echo "${ECHO_T}$ac_cv_header_stdc" >&6
11289 if test $ac_cv_header_stdc = yes; then
11290
11291 cat >>confdefs.h <<\_ACEOF
11292 #define STDC_HEADERS 1
11293 _ACEOF
11294
11295 fi
11296
11297 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
11298 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
11299 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
11300   echo $ECHO_N "(cached) $ECHO_C" >&6
11301 else
11302   cat >conftest.$ac_ext <<_ACEOF
11303 /* confdefs.h.  */
11304 _ACEOF
11305 cat confdefs.h >>conftest.$ac_ext
11306 cat >>conftest.$ac_ext <<_ACEOF
11307 /* end confdefs.h.  */
11308 #include <sys/types.h>
11309 int
11310 main ()
11311 {
11312 return makedev(0, 0);
11313   ;
11314   return 0;
11315 }
11316 _ACEOF
11317 rm -f conftest.$ac_objext conftest$ac_exeext
11318 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11319   (eval $ac_link) 2>conftest.er1
11320   ac_status=$?
11321   grep -v '^ *+' conftest.er1 >conftest.err
11322   rm -f conftest.er1
11323   cat conftest.err >&5
11324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11325   (exit $ac_status); } &&
11326          { ac_try='test -z "$ac_c_werror_flag"
11327                          || test ! -s conftest.err'
11328   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11329   (eval $ac_try) 2>&5
11330   ac_status=$?
11331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11332   (exit $ac_status); }; } &&
11333          { ac_try='test -s conftest$ac_exeext'
11334   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11335   (eval $ac_try) 2>&5
11336   ac_status=$?
11337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11338   (exit $ac_status); }; }; then
11339   ac_cv_header_sys_types_h_makedev=yes
11340 else
11341   echo "$as_me: failed program was:" >&5
11342 sed 's/^/| /' conftest.$ac_ext >&5
11343
11344 ac_cv_header_sys_types_h_makedev=no
11345 fi
11346 rm -f conftest.err conftest.$ac_objext \
11347       conftest$ac_exeext conftest.$ac_ext
11348
11349 fi
11350 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
11351 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
11352
11353 if test $ac_cv_header_sys_types_h_makedev = no; then
11354 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
11355   echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
11356 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
11357 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
11358   echo $ECHO_N "(cached) $ECHO_C" >&6
11359 fi
11360 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
11361 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
11362 else
11363   # Is the header compilable?
11364 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
11365 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
11366 cat >conftest.$ac_ext <<_ACEOF
11367 /* confdefs.h.  */
11368 _ACEOF
11369 cat confdefs.h >>conftest.$ac_ext
11370 cat >>conftest.$ac_ext <<_ACEOF
11371 /* end confdefs.h.  */
11372 $ac_includes_default
11373 #include <sys/mkdev.h>
11374 _ACEOF
11375 rm -f conftest.$ac_objext
11376 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11377   (eval $ac_compile) 2>conftest.er1
11378   ac_status=$?
11379   grep -v '^ *+' conftest.er1 >conftest.err
11380   rm -f conftest.er1
11381   cat conftest.err >&5
11382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11383   (exit $ac_status); } &&
11384          { ac_try='test -z "$ac_c_werror_flag"
11385                          || test ! -s conftest.err'
11386   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11387   (eval $ac_try) 2>&5
11388   ac_status=$?
11389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11390   (exit $ac_status); }; } &&
11391          { ac_try='test -s conftest.$ac_objext'
11392   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11393   (eval $ac_try) 2>&5
11394   ac_status=$?
11395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11396   (exit $ac_status); }; }; then
11397   ac_header_compiler=yes
11398 else
11399   echo "$as_me: failed program was:" >&5
11400 sed 's/^/| /' conftest.$ac_ext >&5
11401
11402 ac_header_compiler=no
11403 fi
11404 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11405 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11406 echo "${ECHO_T}$ac_header_compiler" >&6
11407
11408 # Is the header present?
11409 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
11410 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
11411 cat >conftest.$ac_ext <<_ACEOF
11412 /* confdefs.h.  */
11413 _ACEOF
11414 cat confdefs.h >>conftest.$ac_ext
11415 cat >>conftest.$ac_ext <<_ACEOF
11416 /* end confdefs.h.  */
11417 #include <sys/mkdev.h>
11418 _ACEOF
11419 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11420   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11421   ac_status=$?
11422   grep -v '^ *+' conftest.er1 >conftest.err
11423   rm -f conftest.er1
11424   cat conftest.err >&5
11425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11426   (exit $ac_status); } >/dev/null; then
11427   if test -s conftest.err; then
11428     ac_cpp_err=$ac_c_preproc_warn_flag
11429     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11430   else
11431     ac_cpp_err=
11432   fi
11433 else
11434   ac_cpp_err=yes
11435 fi
11436 if test -z "$ac_cpp_err"; then
11437   ac_header_preproc=yes
11438 else
11439   echo "$as_me: failed program was:" >&5
11440 sed 's/^/| /' conftest.$ac_ext >&5
11441
11442   ac_header_preproc=no
11443 fi
11444 rm -f conftest.err conftest.$ac_ext
11445 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11446 echo "${ECHO_T}$ac_header_preproc" >&6
11447
11448 # So?  What about this header?
11449 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11450   yes:no: )
11451     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
11452 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11453     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
11454 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
11455     ac_header_preproc=yes
11456     ;;
11457   no:yes:* )
11458     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
11459 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
11460     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&5
11461 echo "$as_me: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&2;}
11462     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
11463 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
11464     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&5
11465 echo "$as_me: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&2;}
11466     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
11467 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
11468     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
11469 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
11470     (
11471       cat <<\_ASBOX
11472 ## ------------------------------------------ ##
11473 ## Report this to the AC_PACKAGE_NAME lists.  ##
11474 ## ------------------------------------------ ##
11475 _ASBOX
11476     ) |
11477       sed "s/^/$as_me: WARNING:     /" >&2
11478     ;;
11479 esac
11480 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
11481 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
11482 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
11483   echo $ECHO_N "(cached) $ECHO_C" >&6
11484 else
11485   ac_cv_header_sys_mkdev_h=$ac_header_preproc
11486 fi
11487 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
11488 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
11489
11490 fi
11491 if test $ac_cv_header_sys_mkdev_h = yes; then
11492
11493 cat >>confdefs.h <<\_ACEOF
11494 #define MAJOR_IN_MKDEV 1
11495 _ACEOF
11496
11497 fi
11498
11499
11500
11501   if test $ac_cv_header_sys_mkdev_h = no; then
11502     if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
11503   echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
11504 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
11505 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
11506   echo $ECHO_N "(cached) $ECHO_C" >&6
11507 fi
11508 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
11509 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
11510 else
11511   # Is the header compilable?
11512 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
11513 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
11514 cat >conftest.$ac_ext <<_ACEOF
11515 /* confdefs.h.  */
11516 _ACEOF
11517 cat confdefs.h >>conftest.$ac_ext
11518 cat >>conftest.$ac_ext <<_ACEOF
11519 /* end confdefs.h.  */
11520 $ac_includes_default
11521 #include <sys/sysmacros.h>
11522 _ACEOF
11523 rm -f conftest.$ac_objext
11524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11525   (eval $ac_compile) 2>conftest.er1
11526   ac_status=$?
11527   grep -v '^ *+' conftest.er1 >conftest.err
11528   rm -f conftest.er1
11529   cat conftest.err >&5
11530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11531   (exit $ac_status); } &&
11532          { ac_try='test -z "$ac_c_werror_flag"
11533                          || test ! -s conftest.err'
11534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11535   (eval $ac_try) 2>&5
11536   ac_status=$?
11537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11538   (exit $ac_status); }; } &&
11539          { ac_try='test -s conftest.$ac_objext'
11540   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11541   (eval $ac_try) 2>&5
11542   ac_status=$?
11543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11544   (exit $ac_status); }; }; then
11545   ac_header_compiler=yes
11546 else
11547   echo "$as_me: failed program was:" >&5
11548 sed 's/^/| /' conftest.$ac_ext >&5
11549
11550 ac_header_compiler=no
11551 fi
11552 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11553 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11554 echo "${ECHO_T}$ac_header_compiler" >&6
11555
11556 # Is the header present?
11557 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
11558 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
11559 cat >conftest.$ac_ext <<_ACEOF
11560 /* confdefs.h.  */
11561 _ACEOF
11562 cat confdefs.h >>conftest.$ac_ext
11563 cat >>conftest.$ac_ext <<_ACEOF
11564 /* end confdefs.h.  */
11565 #include <sys/sysmacros.h>
11566 _ACEOF
11567 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11568   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11569   ac_status=$?
11570   grep -v '^ *+' conftest.er1 >conftest.err
11571   rm -f conftest.er1
11572   cat conftest.err >&5
11573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11574   (exit $ac_status); } >/dev/null; then
11575   if test -s conftest.err; then
11576     ac_cpp_err=$ac_c_preproc_warn_flag
11577     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11578   else
11579     ac_cpp_err=
11580   fi
11581 else
11582   ac_cpp_err=yes
11583 fi
11584 if test -z "$ac_cpp_err"; then
11585   ac_header_preproc=yes
11586 else
11587   echo "$as_me: failed program was:" >&5
11588 sed 's/^/| /' conftest.$ac_ext >&5
11589
11590   ac_header_preproc=no
11591 fi
11592 rm -f conftest.err conftest.$ac_ext
11593 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11594 echo "${ECHO_T}$ac_header_preproc" >&6
11595
11596 # So?  What about this header?
11597 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11598   yes:no: )
11599     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
11600 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11601     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
11602 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
11603     ac_header_preproc=yes
11604     ;;
11605   no:yes:* )
11606     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
11607 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
11608     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&5
11609 echo "$as_me: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&2;}
11610     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
11611 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
11612     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&5
11613 echo "$as_me: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&2;}
11614     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
11615 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
11616     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
11617 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
11618     (
11619       cat <<\_ASBOX
11620 ## ------------------------------------------ ##
11621 ## Report this to the AC_PACKAGE_NAME lists.  ##
11622 ## ------------------------------------------ ##
11623 _ASBOX
11624     ) |
11625       sed "s/^/$as_me: WARNING:     /" >&2
11626     ;;
11627 esac
11628 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
11629 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
11630 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
11631   echo $ECHO_N "(cached) $ECHO_C" >&6
11632 else
11633   ac_cv_header_sys_sysmacros_h=$ac_header_preproc
11634 fi
11635 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
11636 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
11637
11638 fi
11639 if test $ac_cv_header_sys_sysmacros_h = yes; then
11640
11641 cat >>confdefs.h <<\_ACEOF
11642 #define MAJOR_IN_SYSMACROS 1
11643 _ACEOF
11644
11645 fi
11646
11647
11648   fi
11649 fi
11650
11651
11652
11653
11654
11655
11656 ac_header_dirent=no
11657 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
11658   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
11659 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
11660 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
11661 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11662   echo $ECHO_N "(cached) $ECHO_C" >&6
11663 else
11664   cat >conftest.$ac_ext <<_ACEOF
11665 /* confdefs.h.  */
11666 _ACEOF
11667 cat confdefs.h >>conftest.$ac_ext
11668 cat >>conftest.$ac_ext <<_ACEOF
11669 /* end confdefs.h.  */
11670 #include <sys/types.h>
11671 #include <$ac_hdr>
11672
11673 int
11674 main ()
11675 {
11676 if ((DIR *) 0)
11677 return 0;
11678   ;
11679   return 0;
11680 }
11681 _ACEOF
11682 rm -f conftest.$ac_objext
11683 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11684   (eval $ac_compile) 2>conftest.er1
11685   ac_status=$?
11686   grep -v '^ *+' conftest.er1 >conftest.err
11687   rm -f conftest.er1
11688   cat conftest.err >&5
11689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11690   (exit $ac_status); } &&
11691          { ac_try='test -z "$ac_c_werror_flag"
11692                          || test ! -s conftest.err'
11693   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11694   (eval $ac_try) 2>&5
11695   ac_status=$?
11696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11697   (exit $ac_status); }; } &&
11698          { ac_try='test -s conftest.$ac_objext'
11699   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11700   (eval $ac_try) 2>&5
11701   ac_status=$?
11702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11703   (exit $ac_status); }; }; then
11704   eval "$as_ac_Header=yes"
11705 else
11706   echo "$as_me: failed program was:" >&5
11707 sed 's/^/| /' conftest.$ac_ext >&5
11708
11709 eval "$as_ac_Header=no"
11710 fi
11711 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11712 fi
11713 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11714 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11715 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11716   cat >>confdefs.h <<_ACEOF
11717 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
11718 _ACEOF
11719
11720 ac_header_dirent=$ac_hdr; break
11721 fi
11722
11723 done
11724 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
11725 if test $ac_header_dirent = dirent.h; then
11726   echo "$as_me:$LINENO: checking for library containing opendir" >&5
11727 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
11728 if test "${ac_cv_search_opendir+set}" = set; then
11729   echo $ECHO_N "(cached) $ECHO_C" >&6
11730 else
11731   ac_func_search_save_LIBS=$LIBS
11732 ac_cv_search_opendir=no
11733 cat >conftest.$ac_ext <<_ACEOF
11734 /* confdefs.h.  */
11735 _ACEOF
11736 cat confdefs.h >>conftest.$ac_ext
11737 cat >>conftest.$ac_ext <<_ACEOF
11738 /* end confdefs.h.  */
11739
11740 /* Override any gcc2 internal prototype to avoid an error.  */
11741 #ifdef __cplusplus
11742 extern "C"
11743 #endif
11744 /* We use char because int might match the return type of a gcc2
11745    builtin and then its argument prototype would still apply.  */
11746 char opendir ();
11747 int
11748 main ()
11749 {
11750 opendir ();
11751   ;
11752   return 0;
11753 }
11754 _ACEOF
11755 rm -f conftest.$ac_objext conftest$ac_exeext
11756 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11757   (eval $ac_link) 2>conftest.er1
11758   ac_status=$?
11759   grep -v '^ *+' conftest.er1 >conftest.err
11760   rm -f conftest.er1
11761   cat conftest.err >&5
11762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11763   (exit $ac_status); } &&
11764          { ac_try='test -z "$ac_c_werror_flag"
11765                          || test ! -s conftest.err'
11766   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11767   (eval $ac_try) 2>&5
11768   ac_status=$?
11769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11770   (exit $ac_status); }; } &&
11771          { ac_try='test -s conftest$ac_exeext'
11772   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11773   (eval $ac_try) 2>&5
11774   ac_status=$?
11775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11776   (exit $ac_status); }; }; then
11777   ac_cv_search_opendir="none required"
11778 else
11779   echo "$as_me: failed program was:" >&5
11780 sed 's/^/| /' conftest.$ac_ext >&5
11781
11782 fi
11783 rm -f conftest.err conftest.$ac_objext \
11784       conftest$ac_exeext conftest.$ac_ext
11785 if test "$ac_cv_search_opendir" = no; then
11786   for ac_lib in dir; do
11787     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11788     cat >conftest.$ac_ext <<_ACEOF
11789 /* confdefs.h.  */
11790 _ACEOF
11791 cat confdefs.h >>conftest.$ac_ext
11792 cat >>conftest.$ac_ext <<_ACEOF
11793 /* end confdefs.h.  */
11794
11795 /* Override any gcc2 internal prototype to avoid an error.  */
11796 #ifdef __cplusplus
11797 extern "C"
11798 #endif
11799 /* We use char because int might match the return type of a gcc2
11800    builtin and then its argument prototype would still apply.  */
11801 char opendir ();
11802 int
11803 main ()
11804 {
11805 opendir ();
11806   ;
11807   return 0;
11808 }
11809 _ACEOF
11810 rm -f conftest.$ac_objext conftest$ac_exeext
11811 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11812   (eval $ac_link) 2>conftest.er1
11813   ac_status=$?
11814   grep -v '^ *+' conftest.er1 >conftest.err
11815   rm -f conftest.er1
11816   cat conftest.err >&5
11817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11818   (exit $ac_status); } &&
11819          { ac_try='test -z "$ac_c_werror_flag"
11820                          || test ! -s conftest.err'
11821   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11822   (eval $ac_try) 2>&5
11823   ac_status=$?
11824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11825   (exit $ac_status); }; } &&
11826          { ac_try='test -s conftest$ac_exeext'
11827   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11828   (eval $ac_try) 2>&5
11829   ac_status=$?
11830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11831   (exit $ac_status); }; }; then
11832   ac_cv_search_opendir="-l$ac_lib"
11833 break
11834 else
11835   echo "$as_me: failed program was:" >&5
11836 sed 's/^/| /' conftest.$ac_ext >&5
11837
11838 fi
11839 rm -f conftest.err conftest.$ac_objext \
11840       conftest$ac_exeext conftest.$ac_ext
11841   done
11842 fi
11843 LIBS=$ac_func_search_save_LIBS
11844 fi
11845 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11846 echo "${ECHO_T}$ac_cv_search_opendir" >&6
11847 if test "$ac_cv_search_opendir" != no; then
11848   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
11849
11850 fi
11851
11852 else
11853   echo "$as_me:$LINENO: checking for library containing opendir" >&5
11854 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
11855 if test "${ac_cv_search_opendir+set}" = set; then
11856   echo $ECHO_N "(cached) $ECHO_C" >&6
11857 else
11858   ac_func_search_save_LIBS=$LIBS
11859 ac_cv_search_opendir=no
11860 cat >conftest.$ac_ext <<_ACEOF
11861 /* confdefs.h.  */
11862 _ACEOF
11863 cat confdefs.h >>conftest.$ac_ext
11864 cat >>conftest.$ac_ext <<_ACEOF
11865 /* end confdefs.h.  */
11866
11867 /* Override any gcc2 internal prototype to avoid an error.  */
11868 #ifdef __cplusplus
11869 extern "C"
11870 #endif
11871 /* We use char because int might match the return type of a gcc2
11872    builtin and then its argument prototype would still apply.  */
11873 char opendir ();
11874 int
11875 main ()
11876 {
11877 opendir ();
11878   ;
11879   return 0;
11880 }
11881 _ACEOF
11882 rm -f conftest.$ac_objext conftest$ac_exeext
11883 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11884   (eval $ac_link) 2>conftest.er1
11885   ac_status=$?
11886   grep -v '^ *+' conftest.er1 >conftest.err
11887   rm -f conftest.er1
11888   cat conftest.err >&5
11889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11890   (exit $ac_status); } &&
11891          { ac_try='test -z "$ac_c_werror_flag"
11892                          || test ! -s conftest.err'
11893   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11894   (eval $ac_try) 2>&5
11895   ac_status=$?
11896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11897   (exit $ac_status); }; } &&
11898          { ac_try='test -s conftest$ac_exeext'
11899   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11900   (eval $ac_try) 2>&5
11901   ac_status=$?
11902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11903   (exit $ac_status); }; }; then
11904   ac_cv_search_opendir="none required"
11905 else
11906   echo "$as_me: failed program was:" >&5
11907 sed 's/^/| /' conftest.$ac_ext >&5
11908
11909 fi
11910 rm -f conftest.err conftest.$ac_objext \
11911       conftest$ac_exeext conftest.$ac_ext
11912 if test "$ac_cv_search_opendir" = no; then
11913   for ac_lib in x; do
11914     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11915     cat >conftest.$ac_ext <<_ACEOF
11916 /* confdefs.h.  */
11917 _ACEOF
11918 cat confdefs.h >>conftest.$ac_ext
11919 cat >>conftest.$ac_ext <<_ACEOF
11920 /* end confdefs.h.  */
11921
11922 /* Override any gcc2 internal prototype to avoid an error.  */
11923 #ifdef __cplusplus
11924 extern "C"
11925 #endif
11926 /* We use char because int might match the return type of a gcc2
11927    builtin and then its argument prototype would still apply.  */
11928 char opendir ();
11929 int
11930 main ()
11931 {
11932 opendir ();
11933   ;
11934   return 0;
11935 }
11936 _ACEOF
11937 rm -f conftest.$ac_objext conftest$ac_exeext
11938 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11939   (eval $ac_link) 2>conftest.er1
11940   ac_status=$?
11941   grep -v '^ *+' conftest.er1 >conftest.err
11942   rm -f conftest.er1
11943   cat conftest.err >&5
11944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11945   (exit $ac_status); } &&
11946          { ac_try='test -z "$ac_c_werror_flag"
11947                          || test ! -s conftest.err'
11948   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11949   (eval $ac_try) 2>&5
11950   ac_status=$?
11951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11952   (exit $ac_status); }; } &&
11953          { ac_try='test -s conftest$ac_exeext'
11954   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11955   (eval $ac_try) 2>&5
11956   ac_status=$?
11957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11958   (exit $ac_status); }; }; then
11959   ac_cv_search_opendir="-l$ac_lib"
11960 break
11961 else
11962   echo "$as_me: failed program was:" >&5
11963 sed 's/^/| /' conftest.$ac_ext >&5
11964
11965 fi
11966 rm -f conftest.err conftest.$ac_objext \
11967       conftest$ac_exeext conftest.$ac_ext
11968   done
11969 fi
11970 LIBS=$ac_func_search_save_LIBS
11971 fi
11972 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11973 echo "${ECHO_T}$ac_cv_search_opendir" >&6
11974 if test "$ac_cv_search_opendir" != no; then
11975   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
11976
11977 fi
11978
11979 fi
11980
11981 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
11982 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
11983 if test "${ac_cv_header_stat_broken+set}" = set; then
11984   echo $ECHO_N "(cached) $ECHO_C" >&6
11985 else
11986   cat >conftest.$ac_ext <<_ACEOF
11987 /* confdefs.h.  */
11988 _ACEOF
11989 cat confdefs.h >>conftest.$ac_ext
11990 cat >>conftest.$ac_ext <<_ACEOF
11991 /* end confdefs.h.  */
11992 #include <sys/types.h>
11993 #include <sys/stat.h>
11994
11995 #if defined(S_ISBLK) && defined(S_IFDIR)
11996 # if S_ISBLK (S_IFDIR)
11997 You lose.
11998 # endif
11999 #endif
12000
12001 #if defined(S_ISBLK) && defined(S_IFCHR)
12002 # if S_ISBLK (S_IFCHR)
12003 You lose.
12004 # endif
12005 #endif
12006
12007 #if defined(S_ISLNK) && defined(S_IFREG)
12008 # if S_ISLNK (S_IFREG)
12009 You lose.
12010 # endif
12011 #endif
12012
12013 #if defined(S_ISSOCK) && defined(S_IFREG)
12014 # if S_ISSOCK (S_IFREG)
12015 You lose.
12016 # endif
12017 #endif
12018
12019 _ACEOF
12020 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12021   $EGREP "You lose" >/dev/null 2>&1; then
12022   ac_cv_header_stat_broken=yes
12023 else
12024   ac_cv_header_stat_broken=no
12025 fi
12026 rm -f conftest*
12027
12028 fi
12029 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
12030 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
12031 if test $ac_cv_header_stat_broken = yes; then
12032
12033 cat >>confdefs.h <<\_ACEOF
12034 #define STAT_MACROS_BROKEN 1
12035 _ACEOF
12036
12037 fi
12038
12039 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
12040 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
12041 if test "${ac_cv_header_sys_wait_h+set}" = set; then
12042   echo $ECHO_N "(cached) $ECHO_C" >&6
12043 else
12044   cat >conftest.$ac_ext <<_ACEOF
12045 /* confdefs.h.  */
12046 _ACEOF
12047 cat confdefs.h >>conftest.$ac_ext
12048 cat >>conftest.$ac_ext <<_ACEOF
12049 /* end confdefs.h.  */
12050 #include <sys/types.h>
12051 #include <sys/wait.h>
12052 #ifndef WEXITSTATUS
12053 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
12054 #endif
12055 #ifndef WIFEXITED
12056 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
12057 #endif
12058
12059 int
12060 main ()
12061 {
12062   int s;
12063   wait (&s);
12064   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
12065   ;
12066   return 0;
12067 }
12068 _ACEOF
12069 rm -f conftest.$ac_objext
12070 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12071   (eval $ac_compile) 2>conftest.er1
12072   ac_status=$?
12073   grep -v '^ *+' conftest.er1 >conftest.err
12074   rm -f conftest.er1
12075   cat conftest.err >&5
12076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12077   (exit $ac_status); } &&
12078          { ac_try='test -z "$ac_c_werror_flag"
12079                          || test ! -s conftest.err'
12080   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12081   (eval $ac_try) 2>&5
12082   ac_status=$?
12083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12084   (exit $ac_status); }; } &&
12085          { ac_try='test -s conftest.$ac_objext'
12086   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12087   (eval $ac_try) 2>&5
12088   ac_status=$?
12089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12090   (exit $ac_status); }; }; then
12091   ac_cv_header_sys_wait_h=yes
12092 else
12093   echo "$as_me: failed program was:" >&5
12094 sed 's/^/| /' conftest.$ac_ext >&5
12095
12096 ac_cv_header_sys_wait_h=no
12097 fi
12098 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12099 fi
12100 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
12101 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
12102 if test $ac_cv_header_sys_wait_h = yes; then
12103
12104 cat >>confdefs.h <<\_ACEOF
12105 #define HAVE_SYS_WAIT_H 1
12106 _ACEOF
12107
12108 fi
12109
12110 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
12111 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
12112 if test "${ac_cv_header_time+set}" = set; then
12113   echo $ECHO_N "(cached) $ECHO_C" >&6
12114 else
12115   cat >conftest.$ac_ext <<_ACEOF
12116 /* confdefs.h.  */
12117 _ACEOF
12118 cat confdefs.h >>conftest.$ac_ext
12119 cat >>conftest.$ac_ext <<_ACEOF
12120 /* end confdefs.h.  */
12121 #include <sys/types.h>
12122 #include <sys/time.h>
12123 #include <time.h>
12124
12125 int
12126 main ()
12127 {
12128 if ((struct tm *) 0)
12129 return 0;
12130   ;
12131   return 0;
12132 }
12133 _ACEOF
12134 rm -f conftest.$ac_objext
12135 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12136   (eval $ac_compile) 2>conftest.er1
12137   ac_status=$?
12138   grep -v '^ *+' conftest.er1 >conftest.err
12139   rm -f conftest.er1
12140   cat conftest.err >&5
12141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12142   (exit $ac_status); } &&
12143          { ac_try='test -z "$ac_c_werror_flag"
12144                          || test ! -s conftest.err'
12145   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12146   (eval $ac_try) 2>&5
12147   ac_status=$?
12148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12149   (exit $ac_status); }; } &&
12150          { ac_try='test -s conftest.$ac_objext'
12151   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12152   (eval $ac_try) 2>&5
12153   ac_status=$?
12154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12155   (exit $ac_status); }; }; then
12156   ac_cv_header_time=yes
12157 else
12158   echo "$as_me: failed program was:" >&5
12159 sed 's/^/| /' conftest.$ac_ext >&5
12160
12161 ac_cv_header_time=no
12162 fi
12163 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12164 fi
12165 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
12166 echo "${ECHO_T}$ac_cv_header_time" >&6
12167 if test $ac_cv_header_time = yes; then
12168
12169 cat >>confdefs.h <<\_ACEOF
12170 #define TIME_WITH_SYS_TIME 1
12171 _ACEOF
12172
12173 fi
12174
12175
12176 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
12177 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
12178 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
12179   echo $ECHO_N "(cached) $ECHO_C" >&6
12180 else
12181   cat >conftest.$ac_ext <<_ACEOF
12182 /* confdefs.h.  */
12183 _ACEOF
12184 cat confdefs.h >>conftest.$ac_ext
12185 cat >>conftest.$ac_ext <<_ACEOF
12186 /* end confdefs.h.  */
12187 $ac_includes_default
12188 int
12189 main ()
12190 {
12191 static struct stat ac_aggr;
12192 if (ac_aggr.st_blksize)
12193 return 0;
12194   ;
12195   return 0;
12196 }
12197 _ACEOF
12198 rm -f conftest.$ac_objext
12199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12200   (eval $ac_compile) 2>conftest.er1
12201   ac_status=$?
12202   grep -v '^ *+' conftest.er1 >conftest.err
12203   rm -f conftest.er1
12204   cat conftest.err >&5
12205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12206   (exit $ac_status); } &&
12207          { ac_try='test -z "$ac_c_werror_flag"
12208                          || test ! -s conftest.err'
12209   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12210   (eval $ac_try) 2>&5
12211   ac_status=$?
12212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12213   (exit $ac_status); }; } &&
12214          { ac_try='test -s conftest.$ac_objext'
12215   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12216   (eval $ac_try) 2>&5
12217   ac_status=$?
12218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12219   (exit $ac_status); }; }; then
12220   ac_cv_member_struct_stat_st_blksize=yes
12221 else
12222   echo "$as_me: failed program was:" >&5
12223 sed 's/^/| /' conftest.$ac_ext >&5
12224
12225 cat >conftest.$ac_ext <<_ACEOF
12226 /* confdefs.h.  */
12227 _ACEOF
12228 cat confdefs.h >>conftest.$ac_ext
12229 cat >>conftest.$ac_ext <<_ACEOF
12230 /* end confdefs.h.  */
12231 $ac_includes_default
12232 int
12233 main ()
12234 {
12235 static struct stat ac_aggr;
12236 if (sizeof ac_aggr.st_blksize)
12237 return 0;
12238   ;
12239   return 0;
12240 }
12241 _ACEOF
12242 rm -f conftest.$ac_objext
12243 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12244   (eval $ac_compile) 2>conftest.er1
12245   ac_status=$?
12246   grep -v '^ *+' conftest.er1 >conftest.err
12247   rm -f conftest.er1
12248   cat conftest.err >&5
12249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12250   (exit $ac_status); } &&
12251          { ac_try='test -z "$ac_c_werror_flag"
12252                          || test ! -s conftest.err'
12253   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12254   (eval $ac_try) 2>&5
12255   ac_status=$?
12256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12257   (exit $ac_status); }; } &&
12258          { ac_try='test -s conftest.$ac_objext'
12259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12260   (eval $ac_try) 2>&5
12261   ac_status=$?
12262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12263   (exit $ac_status); }; }; then
12264   ac_cv_member_struct_stat_st_blksize=yes
12265 else
12266   echo "$as_me: failed program was:" >&5
12267 sed 's/^/| /' conftest.$ac_ext >&5
12268
12269 ac_cv_member_struct_stat_st_blksize=no
12270 fi
12271 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12272 fi
12273 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12274 fi
12275 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
12276 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
12277 if test $ac_cv_member_struct_stat_st_blksize = yes; then
12278
12279 cat >>confdefs.h <<_ACEOF
12280 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
12281 _ACEOF
12282
12283
12284 cat >>confdefs.h <<\_ACEOF
12285 #define HAVE_ST_BLKSIZE 1
12286 _ACEOF
12287
12288 fi
12289
12290
12291 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
12292 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
12293 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
12294   echo $ECHO_N "(cached) $ECHO_C" >&6
12295 else
12296   cat >conftest.$ac_ext <<_ACEOF
12297 /* confdefs.h.  */
12298 _ACEOF
12299 cat confdefs.h >>conftest.$ac_ext
12300 cat >>conftest.$ac_ext <<_ACEOF
12301 /* end confdefs.h.  */
12302 $ac_includes_default
12303 int
12304 main ()
12305 {
12306 static struct stat ac_aggr;
12307 if (ac_aggr.st_blocks)
12308 return 0;
12309   ;
12310   return 0;
12311 }
12312 _ACEOF
12313 rm -f conftest.$ac_objext
12314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12315   (eval $ac_compile) 2>conftest.er1
12316   ac_status=$?
12317   grep -v '^ *+' conftest.er1 >conftest.err
12318   rm -f conftest.er1
12319   cat conftest.err >&5
12320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12321   (exit $ac_status); } &&
12322          { ac_try='test -z "$ac_c_werror_flag"
12323                          || test ! -s conftest.err'
12324   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12325   (eval $ac_try) 2>&5
12326   ac_status=$?
12327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12328   (exit $ac_status); }; } &&
12329          { ac_try='test -s conftest.$ac_objext'
12330   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12331   (eval $ac_try) 2>&5
12332   ac_status=$?
12333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12334   (exit $ac_status); }; }; then
12335   ac_cv_member_struct_stat_st_blocks=yes
12336 else
12337   echo "$as_me: failed program was:" >&5
12338 sed 's/^/| /' conftest.$ac_ext >&5
12339
12340 cat >conftest.$ac_ext <<_ACEOF
12341 /* confdefs.h.  */
12342 _ACEOF
12343 cat confdefs.h >>conftest.$ac_ext
12344 cat >>conftest.$ac_ext <<_ACEOF
12345 /* end confdefs.h.  */
12346 $ac_includes_default
12347 int
12348 main ()
12349 {
12350 static struct stat ac_aggr;
12351 if (sizeof ac_aggr.st_blocks)
12352 return 0;
12353   ;
12354   return 0;
12355 }
12356 _ACEOF
12357 rm -f conftest.$ac_objext
12358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12359   (eval $ac_compile) 2>conftest.er1
12360   ac_status=$?
12361   grep -v '^ *+' conftest.er1 >conftest.err
12362   rm -f conftest.er1
12363   cat conftest.err >&5
12364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12365   (exit $ac_status); } &&
12366          { ac_try='test -z "$ac_c_werror_flag"
12367                          || test ! -s conftest.err'
12368   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12369   (eval $ac_try) 2>&5
12370   ac_status=$?
12371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12372   (exit $ac_status); }; } &&
12373          { ac_try='test -s conftest.$ac_objext'
12374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12375   (eval $ac_try) 2>&5
12376   ac_status=$?
12377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12378   (exit $ac_status); }; }; then
12379   ac_cv_member_struct_stat_st_blocks=yes
12380 else
12381   echo "$as_me: failed program was:" >&5
12382 sed 's/^/| /' conftest.$ac_ext >&5
12383
12384 ac_cv_member_struct_stat_st_blocks=no
12385 fi
12386 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12387 fi
12388 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12389 fi
12390 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
12391 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
12392 if test $ac_cv_member_struct_stat_st_blocks = yes; then
12393
12394 cat >>confdefs.h <<_ACEOF
12395 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
12396 _ACEOF
12397
12398
12399 cat >>confdefs.h <<\_ACEOF
12400 #define HAVE_ST_BLOCKS 1
12401 _ACEOF
12402
12403 else
12404   case $LIBOBJS in
12405     "fileblocks.$ac_objext"   | \
12406   *" fileblocks.$ac_objext"   | \
12407     "fileblocks.$ac_objext "* | \
12408   *" fileblocks.$ac_objext "* ) ;;
12409   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;;
12410 esac
12411
12412 fi
12413
12414
12415 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
12416 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
12417 if test "${ac_cv_struct_tm+set}" = set; then
12418   echo $ECHO_N "(cached) $ECHO_C" >&6
12419 else
12420   cat >conftest.$ac_ext <<_ACEOF
12421 /* confdefs.h.  */
12422 _ACEOF
12423 cat confdefs.h >>conftest.$ac_ext
12424 cat >>conftest.$ac_ext <<_ACEOF
12425 /* end confdefs.h.  */
12426 #include <sys/types.h>
12427 #include <time.h>
12428
12429 int
12430 main ()
12431 {
12432 struct tm *tp; tp->tm_sec;
12433   ;
12434   return 0;
12435 }
12436 _ACEOF
12437 rm -f conftest.$ac_objext
12438 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12439   (eval $ac_compile) 2>conftest.er1
12440   ac_status=$?
12441   grep -v '^ *+' conftest.er1 >conftest.err
12442   rm -f conftest.er1
12443   cat conftest.err >&5
12444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12445   (exit $ac_status); } &&
12446          { ac_try='test -z "$ac_c_werror_flag"
12447                          || test ! -s conftest.err'
12448   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12449   (eval $ac_try) 2>&5
12450   ac_status=$?
12451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12452   (exit $ac_status); }; } &&
12453          { ac_try='test -s conftest.$ac_objext'
12454   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12455   (eval $ac_try) 2>&5
12456   ac_status=$?
12457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12458   (exit $ac_status); }; }; then
12459   ac_cv_struct_tm=time.h
12460 else
12461   echo "$as_me: failed program was:" >&5
12462 sed 's/^/| /' conftest.$ac_ext >&5
12463
12464 ac_cv_struct_tm=sys/time.h
12465 fi
12466 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12467 fi
12468 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
12469 echo "${ECHO_T}$ac_cv_struct_tm" >&6
12470 if test $ac_cv_struct_tm = sys/time.h; then
12471
12472 cat >>confdefs.h <<\_ACEOF
12473 #define TM_IN_SYS_TIME 1
12474 _ACEOF
12475
12476 fi
12477
12478 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
12479 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
12480 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
12481   echo $ECHO_N "(cached) $ECHO_C" >&6
12482 else
12483   cat >conftest.$ac_ext <<_ACEOF
12484 /* confdefs.h.  */
12485 _ACEOF
12486 cat confdefs.h >>conftest.$ac_ext
12487 cat >>conftest.$ac_ext <<_ACEOF
12488 /* end confdefs.h.  */
12489 #include <sys/types.h>
12490 #include <$ac_cv_struct_tm>
12491
12492
12493 int
12494 main ()
12495 {
12496 static struct tm ac_aggr;
12497 if (ac_aggr.tm_zone)
12498 return 0;
12499   ;
12500   return 0;
12501 }
12502 _ACEOF
12503 rm -f conftest.$ac_objext
12504 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12505   (eval $ac_compile) 2>conftest.er1
12506   ac_status=$?
12507   grep -v '^ *+' conftest.er1 >conftest.err
12508   rm -f conftest.er1
12509   cat conftest.err >&5
12510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12511   (exit $ac_status); } &&
12512          { ac_try='test -z "$ac_c_werror_flag"
12513                          || test ! -s conftest.err'
12514   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12515   (eval $ac_try) 2>&5
12516   ac_status=$?
12517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12518   (exit $ac_status); }; } &&
12519          { ac_try='test -s conftest.$ac_objext'
12520   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12521   (eval $ac_try) 2>&5
12522   ac_status=$?
12523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12524   (exit $ac_status); }; }; then
12525   ac_cv_member_struct_tm_tm_zone=yes
12526 else
12527   echo "$as_me: failed program was:" >&5
12528 sed 's/^/| /' conftest.$ac_ext >&5
12529
12530 cat >conftest.$ac_ext <<_ACEOF
12531 /* confdefs.h.  */
12532 _ACEOF
12533 cat confdefs.h >>conftest.$ac_ext
12534 cat >>conftest.$ac_ext <<_ACEOF
12535 /* end confdefs.h.  */
12536 #include <sys/types.h>
12537 #include <$ac_cv_struct_tm>
12538
12539
12540 int
12541 main ()
12542 {
12543 static struct tm ac_aggr;
12544 if (sizeof ac_aggr.tm_zone)
12545 return 0;
12546   ;
12547   return 0;
12548 }
12549 _ACEOF
12550 rm -f conftest.$ac_objext
12551 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12552   (eval $ac_compile) 2>conftest.er1
12553   ac_status=$?
12554   grep -v '^ *+' conftest.er1 >conftest.err
12555   rm -f conftest.er1
12556   cat conftest.err >&5
12557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12558   (exit $ac_status); } &&
12559          { ac_try='test -z "$ac_c_werror_flag"
12560                          || test ! -s conftest.err'
12561   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12562   (eval $ac_try) 2>&5
12563   ac_status=$?
12564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12565   (exit $ac_status); }; } &&
12566          { ac_try='test -s conftest.$ac_objext'
12567   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12568   (eval $ac_try) 2>&5
12569   ac_status=$?
12570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12571   (exit $ac_status); }; }; then
12572   ac_cv_member_struct_tm_tm_zone=yes
12573 else
12574   echo "$as_me: failed program was:" >&5
12575 sed 's/^/| /' conftest.$ac_ext >&5
12576
12577 ac_cv_member_struct_tm_tm_zone=no
12578 fi
12579 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12580 fi
12581 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12582 fi
12583 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
12584 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
12585 if test $ac_cv_member_struct_tm_tm_zone = yes; then
12586
12587 cat >>confdefs.h <<_ACEOF
12588 #define HAVE_STRUCT_TM_TM_ZONE 1
12589 _ACEOF
12590
12591
12592 fi
12593
12594 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
12595
12596 cat >>confdefs.h <<\_ACEOF
12597 #define HAVE_TM_ZONE 1
12598 _ACEOF
12599
12600 else
12601   echo "$as_me:$LINENO: checking for tzname" >&5
12602 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
12603 if test "${ac_cv_var_tzname+set}" = set; then
12604   echo $ECHO_N "(cached) $ECHO_C" >&6
12605 else
12606   cat >conftest.$ac_ext <<_ACEOF
12607 /* confdefs.h.  */
12608 _ACEOF
12609 cat confdefs.h >>conftest.$ac_ext
12610 cat >>conftest.$ac_ext <<_ACEOF
12611 /* end confdefs.h.  */
12612 #include <time.h>
12613 #ifndef tzname /* For SGI.  */
12614 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
12615 #endif
12616
12617 int
12618 main ()
12619 {
12620 atoi(*tzname);
12621   ;
12622   return 0;
12623 }
12624 _ACEOF
12625 rm -f conftest.$ac_objext conftest$ac_exeext
12626 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12627   (eval $ac_link) 2>conftest.er1
12628   ac_status=$?
12629   grep -v '^ *+' conftest.er1 >conftest.err
12630   rm -f conftest.er1
12631   cat conftest.err >&5
12632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12633   (exit $ac_status); } &&
12634          { ac_try='test -z "$ac_c_werror_flag"
12635                          || test ! -s conftest.err'
12636   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12637   (eval $ac_try) 2>&5
12638   ac_status=$?
12639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12640   (exit $ac_status); }; } &&
12641          { ac_try='test -s conftest$ac_exeext'
12642   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12643   (eval $ac_try) 2>&5
12644   ac_status=$?
12645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12646   (exit $ac_status); }; }; then
12647   ac_cv_var_tzname=yes
12648 else
12649   echo "$as_me: failed program was:" >&5
12650 sed 's/^/| /' conftest.$ac_ext >&5
12651
12652 ac_cv_var_tzname=no
12653 fi
12654 rm -f conftest.err conftest.$ac_objext \
12655       conftest$ac_exeext conftest.$ac_ext
12656 fi
12657 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
12658 echo "${ECHO_T}$ac_cv_var_tzname" >&6
12659   if test $ac_cv_var_tzname = yes; then
12660
12661 cat >>confdefs.h <<\_ACEOF
12662 #define HAVE_TZNAME 1
12663 _ACEOF
12664
12665   fi
12666 fi
12667
12668
12669 echo "$as_me:$LINENO: checking for utime.h" >&5
12670 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6
12671 if test "${ba_cv_header_utime_h+set}" = set; then
12672   echo $ECHO_N "(cached) $ECHO_C" >&6
12673 else
12674   cat >conftest.$ac_ext <<_ACEOF
12675 /* confdefs.h.  */
12676 _ACEOF
12677 cat confdefs.h >>conftest.$ac_ext
12678 cat >>conftest.$ac_ext <<_ACEOF
12679 /* end confdefs.h.  */
12680
12681 #include <sys/types.h>
12682 #include <utime.h>
12683 int
12684 main ()
12685 {
12686 struct utimbuf foo
12687   ;
12688   return 0;
12689 }
12690 _ACEOF
12691 rm -f conftest.$ac_objext
12692 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12693   (eval $ac_compile) 2>conftest.er1
12694   ac_status=$?
12695   grep -v '^ *+' conftest.er1 >conftest.err
12696   rm -f conftest.er1
12697   cat conftest.err >&5
12698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12699   (exit $ac_status); } &&
12700          { ac_try='test -z "$ac_c_werror_flag"
12701                          || test ! -s conftest.err'
12702   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12703   (eval $ac_try) 2>&5
12704   ac_status=$?
12705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12706   (exit $ac_status); }; } &&
12707          { ac_try='test -s conftest.$ac_objext'
12708   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12709   (eval $ac_try) 2>&5
12710   ac_status=$?
12711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12712   (exit $ac_status); }; }; then
12713   ba_cv_header_utime_h=yes
12714 else
12715   echo "$as_me: failed program was:" >&5
12716 sed 's/^/| /' conftest.$ac_ext >&5
12717
12718 ba_cv_header_utime_h=no
12719 fi
12720 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12721 fi
12722 echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
12723 echo "${ECHO_T}$ba_cv_header_utime_h" >&6
12724 test $ba_cv_header_utime_h = yes && cat >>confdefs.h <<\_ACEOF
12725 #define HAVE_UTIME_H 1
12726 _ACEOF
12727
12728
12729 echo "$as_me:$LINENO: checking for socklen_t" >&5
12730 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
12731 if test "${ba_cv_header_socklen_t+set}" = set; then
12732   echo $ECHO_N "(cached) $ECHO_C" >&6
12733 else
12734   cat >conftest.$ac_ext <<_ACEOF
12735 /* confdefs.h.  */
12736 _ACEOF
12737 cat confdefs.h >>conftest.$ac_ext
12738 cat >>conftest.$ac_ext <<_ACEOF
12739 /* end confdefs.h.  */
12740
12741 #include <sys/types.h>
12742 #include <sys/socket.h>
12743 int
12744 main ()
12745 {
12746 socklen_t x
12747   ;
12748   return 0;
12749 }
12750 _ACEOF
12751 rm -f conftest.$ac_objext
12752 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12753   (eval $ac_compile) 2>conftest.er1
12754   ac_status=$?
12755   grep -v '^ *+' conftest.er1 >conftest.err
12756   rm -f conftest.er1
12757   cat conftest.err >&5
12758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12759   (exit $ac_status); } &&
12760          { ac_try='test -z "$ac_c_werror_flag"
12761                          || test ! -s conftest.err'
12762   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12763   (eval $ac_try) 2>&5
12764   ac_status=$?
12765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12766   (exit $ac_status); }; } &&
12767          { ac_try='test -s conftest.$ac_objext'
12768   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12769   (eval $ac_try) 2>&5
12770   ac_status=$?
12771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12772   (exit $ac_status); }; }; then
12773   ba_cv_header_socklen_t=yes
12774 else
12775   echo "$as_me: failed program was:" >&5
12776 sed 's/^/| /' conftest.$ac_ext >&5
12777
12778 ba_cv_header_socklen_t=no
12779 fi
12780 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12781 fi
12782 echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
12783 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6
12784 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
12785 #define HAVE_SOCKLEN_T 1
12786 _ACEOF
12787
12788
12789 echo "$as_me:$LINENO: checking for bigendian" >&5
12790 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6
12791 if test "${ba_cv_bigendian+set}" = set; then
12792   echo $ECHO_N "(cached) $ECHO_C" >&6
12793 else
12794   if test "$cross_compiling" = yes; then
12795   ba_cv_bigendian=no
12796 else
12797   cat >conftest.$ac_ext <<_ACEOF
12798 /* confdefs.h.  */
12799 _ACEOF
12800 cat confdefs.h >>conftest.$ac_ext
12801 cat >>conftest.$ac_ext <<_ACEOF
12802 /* end confdefs.h.  */
12803 main(){long a=1L; char *p=(char *)&a; exit(*p);}
12804 _ACEOF
12805 rm -f conftest$ac_exeext
12806 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12807   (eval $ac_link) 2>&5
12808   ac_status=$?
12809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12810   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12811   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12812   (eval $ac_try) 2>&5
12813   ac_status=$?
12814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12815   (exit $ac_status); }; }; then
12816   ba_cv_bigendian=yes
12817 else
12818   echo "$as_me: program exited with status $ac_status" >&5
12819 echo "$as_me: failed program was:" >&5
12820 sed 's/^/| /' conftest.$ac_ext >&5
12821
12822 ( exit $ac_status )
12823 ba_cv_bigendian=no
12824 fi
12825 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12826 fi
12827 fi
12828 echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
12829 echo "${ECHO_T}$ba_cv_bigendian" >&6
12830 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
12831 #define HAVE_BIGENDIAN 1
12832 _ACEOF
12833
12834
12835
12836 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
12837 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
12838 if test "${ac_cv_c_const+set}" = set; then
12839   echo $ECHO_N "(cached) $ECHO_C" >&6
12840 else
12841   cat >conftest.$ac_ext <<_ACEOF
12842 /* confdefs.h.  */
12843 _ACEOF
12844 cat confdefs.h >>conftest.$ac_ext
12845 cat >>conftest.$ac_ext <<_ACEOF
12846 /* end confdefs.h.  */
12847
12848 int
12849 main ()
12850 {
12851 /* FIXME: Include the comments suggested by Paul. */
12852 #ifndef __cplusplus
12853   /* Ultrix mips cc rejects this.  */
12854   typedef int charset[2];
12855   const charset x;
12856   /* SunOS 4.1.1 cc rejects this.  */
12857   char const *const *ccp;
12858   char **p;
12859   /* NEC SVR4.0.2 mips cc rejects this.  */
12860   struct point {int x, y;};
12861   static struct point const zero = {0,0};
12862   /* AIX XL C 1.02.0.0 rejects this.
12863      It does not let you subtract one const X* pointer from another in
12864      an arm of an if-expression whose if-part is not a constant
12865      expression */
12866   const char *g = "string";
12867   ccp = &g + (g ? g-g : 0);
12868   /* HPUX 7.0 cc rejects these. */
12869   ++ccp;
12870   p = (char**) ccp;
12871   ccp = (char const *const *) p;
12872   { /* SCO 3.2v4 cc rejects this.  */
12873     char *t;
12874     char const *s = 0 ? (char *) 0 : (char const *) 0;
12875
12876     *t++ = 0;
12877   }
12878   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
12879     int x[] = {25, 17};
12880     const int *foo = &x[0];
12881     ++foo;
12882   }
12883   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12884     typedef const int *iptr;
12885     iptr p = 0;
12886     ++p;
12887   }
12888   { /* AIX XL C 1.02.0.0 rejects this saying
12889        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12890     struct s { int j; const int *ap[3]; };
12891     struct s *b; b->j = 5;
12892   }
12893   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12894     const int foo = 10;
12895   }
12896 #endif
12897
12898   ;
12899   return 0;
12900 }
12901 _ACEOF
12902 rm -f conftest.$ac_objext
12903 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12904   (eval $ac_compile) 2>conftest.er1
12905   ac_status=$?
12906   grep -v '^ *+' conftest.er1 >conftest.err
12907   rm -f conftest.er1
12908   cat conftest.err >&5
12909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12910   (exit $ac_status); } &&
12911          { ac_try='test -z "$ac_c_werror_flag"
12912                          || test ! -s conftest.err'
12913   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12914   (eval $ac_try) 2>&5
12915   ac_status=$?
12916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12917   (exit $ac_status); }; } &&
12918          { ac_try='test -s conftest.$ac_objext'
12919   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12920   (eval $ac_try) 2>&5
12921   ac_status=$?
12922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12923   (exit $ac_status); }; }; then
12924   ac_cv_c_const=yes
12925 else
12926   echo "$as_me: failed program was:" >&5
12927 sed 's/^/| /' conftest.$ac_ext >&5
12928
12929 ac_cv_c_const=no
12930 fi
12931 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12932 fi
12933 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
12934 echo "${ECHO_T}$ac_cv_c_const" >&6
12935 if test $ac_cv_c_const = no; then
12936
12937 cat >>confdefs.h <<\_ACEOF
12938 #define const
12939 _ACEOF
12940
12941 fi
12942
12943
12944
12945 echo "$as_me:$LINENO: checking how to get filesystem type" >&5
12946 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6
12947 fstype=no
12948 # The order of these tests is important.
12949 cat >conftest.$ac_ext <<_ACEOF
12950 /* confdefs.h.  */
12951 _ACEOF
12952 cat confdefs.h >>conftest.$ac_ext
12953 cat >>conftest.$ac_ext <<_ACEOF
12954 /* end confdefs.h.  */
12955 #include <sys/statvfs.h>
12956 #include <sys/fstyp.h>
12957 _ACEOF
12958 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12959   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12960   ac_status=$?
12961   grep -v '^ *+' conftest.er1 >conftest.err
12962   rm -f conftest.er1
12963   cat conftest.err >&5
12964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12965   (exit $ac_status); } >/dev/null; then
12966   if test -s conftest.err; then
12967     ac_cpp_err=$ac_c_preproc_warn_flag
12968     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12969   else
12970     ac_cpp_err=
12971   fi
12972 else
12973   ac_cpp_err=yes
12974 fi
12975 if test -z "$ac_cpp_err"; then
12976   cat >>confdefs.h <<\_ACEOF
12977 #define FSTYPE_STATVFS 1
12978 _ACEOF
12979  fstype=SVR4
12980 else
12981   echo "$as_me: failed program was:" >&5
12982 sed 's/^/| /' conftest.$ac_ext >&5
12983
12984
12985 fi
12986 rm -f conftest.err conftest.$ac_ext
12987 if test $fstype = no; then
12988 cat >conftest.$ac_ext <<_ACEOF
12989 /* confdefs.h.  */
12990 _ACEOF
12991 cat confdefs.h >>conftest.$ac_ext
12992 cat >>conftest.$ac_ext <<_ACEOF
12993 /* end confdefs.h.  */
12994 #include <sys/statfs.h>
12995 #include <sys/fstyp.h>
12996 _ACEOF
12997 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12998   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12999   ac_status=$?
13000   grep -v '^ *+' conftest.er1 >conftest.err
13001   rm -f conftest.er1
13002   cat conftest.err >&5
13003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13004   (exit $ac_status); } >/dev/null; then
13005   if test -s conftest.err; then
13006     ac_cpp_err=$ac_c_preproc_warn_flag
13007     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13008   else
13009     ac_cpp_err=
13010   fi
13011 else
13012   ac_cpp_err=yes
13013 fi
13014 if test -z "$ac_cpp_err"; then
13015   cat >>confdefs.h <<\_ACEOF
13016 #define FSTYPE_USG_STATFS 1
13017 _ACEOF
13018  fstype=SVR3
13019 else
13020   echo "$as_me: failed program was:" >&5
13021 sed 's/^/| /' conftest.$ac_ext >&5
13022
13023
13024 fi
13025 rm -f conftest.err conftest.$ac_ext
13026 fi
13027 if test $fstype = no; then
13028 cat >conftest.$ac_ext <<_ACEOF
13029 /* confdefs.h.  */
13030 _ACEOF
13031 cat confdefs.h >>conftest.$ac_ext
13032 cat >>conftest.$ac_ext <<_ACEOF
13033 /* end confdefs.h.  */
13034 #include <sys/statfs.h>
13035 #include <sys/vmount.h>
13036 _ACEOF
13037 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13038   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13039   ac_status=$?
13040   grep -v '^ *+' conftest.er1 >conftest.err
13041   rm -f conftest.er1
13042   cat conftest.err >&5
13043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13044   (exit $ac_status); } >/dev/null; then
13045   if test -s conftest.err; then
13046     ac_cpp_err=$ac_c_preproc_warn_flag
13047     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13048   else
13049     ac_cpp_err=
13050   fi
13051 else
13052   ac_cpp_err=yes
13053 fi
13054 if test -z "$ac_cpp_err"; then
13055   cat >>confdefs.h <<\_ACEOF
13056 #define FSTYPE_AIX_STATFS 1
13057 _ACEOF
13058  fstype=AIX
13059 else
13060   echo "$as_me: failed program was:" >&5
13061 sed 's/^/| /' conftest.$ac_ext >&5
13062
13063
13064 fi
13065 rm -f conftest.err conftest.$ac_ext
13066 fi
13067 if test $fstype = no; then
13068 cat >conftest.$ac_ext <<_ACEOF
13069 /* confdefs.h.  */
13070 _ACEOF
13071 cat confdefs.h >>conftest.$ac_ext
13072 cat >>conftest.$ac_ext <<_ACEOF
13073 /* end confdefs.h.  */
13074 #include <mntent.h>
13075 _ACEOF
13076 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13077   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13078   ac_status=$?
13079   grep -v '^ *+' conftest.er1 >conftest.err
13080   rm -f conftest.er1
13081   cat conftest.err >&5
13082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13083   (exit $ac_status); } >/dev/null; then
13084   if test -s conftest.err; then
13085     ac_cpp_err=$ac_c_preproc_warn_flag
13086     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13087   else
13088     ac_cpp_err=
13089   fi
13090 else
13091   ac_cpp_err=yes
13092 fi
13093 if test -z "$ac_cpp_err"; then
13094   cat >>confdefs.h <<\_ACEOF
13095 #define FSTYPE_MNTENT 1
13096 _ACEOF
13097  fstype=4.3BSD
13098 else
13099   echo "$as_me: failed program was:" >&5
13100 sed 's/^/| /' conftest.$ac_ext >&5
13101
13102
13103 fi
13104 rm -f conftest.err conftest.$ac_ext
13105 fi
13106 if test $fstype = no; then
13107 cat >conftest.$ac_ext <<_ACEOF
13108 /* confdefs.h.  */
13109 _ACEOF
13110 cat confdefs.h >>conftest.$ac_ext
13111 cat >>conftest.$ac_ext <<_ACEOF
13112 /* end confdefs.h.  */
13113 #include <sys/mount.h>
13114
13115 _ACEOF
13116 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13117   $EGREP "f_type;" >/dev/null 2>&1; then
13118   cat >>confdefs.h <<\_ACEOF
13119 #define FSTYPE_STATFS 1
13120 _ACEOF
13121  fstype=4.4BSD/OSF1
13122 fi
13123 rm -f conftest*
13124
13125 fi
13126 if test $fstype = no; then
13127 cat >conftest.$ac_ext <<_ACEOF
13128 /* confdefs.h.  */
13129 _ACEOF
13130 cat confdefs.h >>conftest.$ac_ext
13131 cat >>conftest.$ac_ext <<_ACEOF
13132 /* end confdefs.h.  */
13133 #include <sys/mount.h>
13134 #include <sys/fs_types.h>
13135 _ACEOF
13136 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13137   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13138   ac_status=$?
13139   grep -v '^ *+' conftest.er1 >conftest.err
13140   rm -f conftest.er1
13141   cat conftest.err >&5
13142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13143   (exit $ac_status); } >/dev/null; then
13144   if test -s conftest.err; then
13145     ac_cpp_err=$ac_c_preproc_warn_flag
13146     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13147   else
13148     ac_cpp_err=
13149   fi
13150 else
13151   ac_cpp_err=yes
13152 fi
13153 if test -z "$ac_cpp_err"; then
13154   cat >>confdefs.h <<\_ACEOF
13155 #define FSTYPE_GETMNT 1
13156 _ACEOF
13157  fstype=Ultrix
13158 else
13159   echo "$as_me: failed program was:" >&5
13160 sed 's/^/| /' conftest.$ac_ext >&5
13161
13162
13163 fi
13164 rm -f conftest.err conftest.$ac_ext
13165 fi
13166 echo "$as_me:$LINENO: result: $fstype" >&5
13167 echo "${ECHO_T}$fstype" >&6
13168
13169 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
13170 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
13171 if test "${ac_cv_type_signal+set}" = set; then
13172   echo $ECHO_N "(cached) $ECHO_C" >&6
13173 else
13174   cat >conftest.$ac_ext <<_ACEOF
13175 /* confdefs.h.  */
13176 _ACEOF
13177 cat confdefs.h >>conftest.$ac_ext
13178 cat >>conftest.$ac_ext <<_ACEOF
13179 /* end confdefs.h.  */
13180 #include <sys/types.h>
13181 #include <signal.h>
13182 #ifdef signal
13183 # undef signal
13184 #endif
13185 #ifdef __cplusplus
13186 extern "C" void (*signal (int, void (*)(int)))(int);
13187 #else
13188 void (*signal ()) ();
13189 #endif
13190
13191 int
13192 main ()
13193 {
13194 int i;
13195   ;
13196   return 0;
13197 }
13198 _ACEOF
13199 rm -f conftest.$ac_objext
13200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13201   (eval $ac_compile) 2>conftest.er1
13202   ac_status=$?
13203   grep -v '^ *+' conftest.er1 >conftest.err
13204   rm -f conftest.er1
13205   cat conftest.err >&5
13206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13207   (exit $ac_status); } &&
13208          { ac_try='test -z "$ac_c_werror_flag"
13209                          || test ! -s conftest.err'
13210   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13211   (eval $ac_try) 2>&5
13212   ac_status=$?
13213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13214   (exit $ac_status); }; } &&
13215          { ac_try='test -s conftest.$ac_objext'
13216   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13217   (eval $ac_try) 2>&5
13218   ac_status=$?
13219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13220   (exit $ac_status); }; }; then
13221   ac_cv_type_signal=void
13222 else
13223   echo "$as_me: failed program was:" >&5
13224 sed 's/^/| /' conftest.$ac_ext >&5
13225
13226 ac_cv_type_signal=int
13227 fi
13228 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13229 fi
13230 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
13231 echo "${ECHO_T}$ac_cv_type_signal" >&6
13232
13233 cat >>confdefs.h <<_ACEOF
13234 #define RETSIGTYPE $ac_cv_type_signal
13235 _ACEOF
13236
13237
13238
13239 echo "$as_me:$LINENO: checking for type of signal functions" >&5
13240 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6
13241 if test "${bash_cv_signal_vintage+set}" = set; then
13242   echo $ECHO_N "(cached) $ECHO_C" >&6
13243 else
13244
13245   cat >conftest.$ac_ext <<_ACEOF
13246 /* confdefs.h.  */
13247 _ACEOF
13248 cat confdefs.h >>conftest.$ac_ext
13249 cat >>conftest.$ac_ext <<_ACEOF
13250 /* end confdefs.h.  */
13251 #include <signal.h>
13252 int
13253 main ()
13254 {
13255
13256     sigset_t ss;
13257     struct sigaction sa;
13258     sigemptyset(&ss); sigsuspend(&ss);
13259     sigaction(SIGINT, &sa, (struct sigaction *) 0);
13260     sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
13261
13262   ;
13263   return 0;
13264 }
13265 _ACEOF
13266 rm -f conftest.$ac_objext conftest$ac_exeext
13267 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13268   (eval $ac_link) 2>conftest.er1
13269   ac_status=$?
13270   grep -v '^ *+' conftest.er1 >conftest.err
13271   rm -f conftest.er1
13272   cat conftest.err >&5
13273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13274   (exit $ac_status); } &&
13275          { ac_try='test -z "$ac_c_werror_flag"
13276                          || test ! -s conftest.err'
13277   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13278   (eval $ac_try) 2>&5
13279   ac_status=$?
13280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13281   (exit $ac_status); }; } &&
13282          { ac_try='test -s conftest$ac_exeext'
13283   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13284   (eval $ac_try) 2>&5
13285   ac_status=$?
13286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13287   (exit $ac_status); }; }; then
13288   bash_cv_signal_vintage=posix
13289 else
13290   echo "$as_me: failed program was:" >&5
13291 sed 's/^/| /' conftest.$ac_ext >&5
13292
13293
13294     cat >conftest.$ac_ext <<_ACEOF
13295 /* confdefs.h.  */
13296 _ACEOF
13297 cat confdefs.h >>conftest.$ac_ext
13298 cat >>conftest.$ac_ext <<_ACEOF
13299 /* end confdefs.h.  */
13300 #include <signal.h>
13301 int
13302 main ()
13303 {
13304
13305         int mask = sigmask(SIGINT);
13306         sigsetmask(mask); sigblock(mask); sigpause(mask);
13307
13308   ;
13309   return 0;
13310 }
13311 _ACEOF
13312 rm -f conftest.$ac_objext conftest$ac_exeext
13313 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13314   (eval $ac_link) 2>conftest.er1
13315   ac_status=$?
13316   grep -v '^ *+' conftest.er1 >conftest.err
13317   rm -f conftest.er1
13318   cat conftest.err >&5
13319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13320   (exit $ac_status); } &&
13321          { ac_try='test -z "$ac_c_werror_flag"
13322                          || test ! -s conftest.err'
13323   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13324   (eval $ac_try) 2>&5
13325   ac_status=$?
13326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13327   (exit $ac_status); }; } &&
13328          { ac_try='test -s conftest$ac_exeext'
13329   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13330   (eval $ac_try) 2>&5
13331   ac_status=$?
13332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13333   (exit $ac_status); }; }; then
13334   bash_cv_signal_vintage=4.2bsd
13335 else
13336   echo "$as_me: failed program was:" >&5
13337 sed 's/^/| /' conftest.$ac_ext >&5
13338
13339
13340       cat >conftest.$ac_ext <<_ACEOF
13341 /* confdefs.h.  */
13342 _ACEOF
13343 cat confdefs.h >>conftest.$ac_ext
13344 cat >>conftest.$ac_ext <<_ACEOF
13345 /* end confdefs.h.  */
13346
13347         #include <signal.h>
13348         RETSIGTYPE foo() { }
13349 int
13350 main ()
13351 {
13352
13353                 int mask = sigmask(SIGINT);
13354                 sigset(SIGINT, foo); sigrelse(SIGINT);
13355                 sighold(SIGINT); sigpause(SIGINT);
13356
13357   ;
13358   return 0;
13359 }
13360 _ACEOF
13361 rm -f conftest.$ac_objext conftest$ac_exeext
13362 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13363   (eval $ac_link) 2>conftest.er1
13364   ac_status=$?
13365   grep -v '^ *+' conftest.er1 >conftest.err
13366   rm -f conftest.er1
13367   cat conftest.err >&5
13368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13369   (exit $ac_status); } &&
13370          { ac_try='test -z "$ac_c_werror_flag"
13371                          || test ! -s conftest.err'
13372   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13373   (eval $ac_try) 2>&5
13374   ac_status=$?
13375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13376   (exit $ac_status); }; } &&
13377          { ac_try='test -s conftest$ac_exeext'
13378   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13379   (eval $ac_try) 2>&5
13380   ac_status=$?
13381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13382   (exit $ac_status); }; }; then
13383   bash_cv_signal_vintage=svr3
13384 else
13385   echo "$as_me: failed program was:" >&5
13386 sed 's/^/| /' conftest.$ac_ext >&5
13387
13388 bash_cv_signal_vintage=v7
13389
13390 fi
13391 rm -f conftest.err conftest.$ac_objext \
13392       conftest$ac_exeext conftest.$ac_ext
13393
13394 fi
13395 rm -f conftest.err conftest.$ac_objext \
13396       conftest$ac_exeext conftest.$ac_ext
13397
13398 fi
13399 rm -f conftest.err conftest.$ac_objext \
13400       conftest$ac_exeext conftest.$ac_ext
13401
13402 fi
13403
13404 echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
13405 echo "${ECHO_T}$bash_cv_signal_vintage" >&6
13406 if test "$bash_cv_signal_vintage" = posix; then
13407 cat >>confdefs.h <<\_ACEOF
13408 #define HAVE_POSIX_SIGNALS 1
13409 _ACEOF
13410
13411 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
13412 cat >>confdefs.h <<\_ACEOF
13413 #define HAVE_BSD_SIGNALS 1
13414 _ACEOF
13415
13416 elif test "$bash_cv_signal_vintage" = svr3; then
13417 cat >>confdefs.h <<\_ACEOF
13418 #define HAVE_USG_SIGHOLD 1
13419 _ACEOF
13420
13421 fi
13422
13423 echo "$as_me:$LINENO: checking for mode_t" >&5
13424 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
13425 if test "${ac_cv_type_mode_t+set}" = set; then
13426   echo $ECHO_N "(cached) $ECHO_C" >&6
13427 else
13428   cat >conftest.$ac_ext <<_ACEOF
13429 /* confdefs.h.  */
13430 _ACEOF
13431 cat confdefs.h >>conftest.$ac_ext
13432 cat >>conftest.$ac_ext <<_ACEOF
13433 /* end confdefs.h.  */
13434 $ac_includes_default
13435 int
13436 main ()
13437 {
13438 if ((mode_t *) 0)
13439   return 0;
13440 if (sizeof (mode_t))
13441   return 0;
13442   ;
13443   return 0;
13444 }
13445 _ACEOF
13446 rm -f conftest.$ac_objext
13447 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13448   (eval $ac_compile) 2>conftest.er1
13449   ac_status=$?
13450   grep -v '^ *+' conftest.er1 >conftest.err
13451   rm -f conftest.er1
13452   cat conftest.err >&5
13453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13454   (exit $ac_status); } &&
13455          { ac_try='test -z "$ac_c_werror_flag"
13456                          || test ! -s conftest.err'
13457   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13458   (eval $ac_try) 2>&5
13459   ac_status=$?
13460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13461   (exit $ac_status); }; } &&
13462          { ac_try='test -s conftest.$ac_objext'
13463   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13464   (eval $ac_try) 2>&5
13465   ac_status=$?
13466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13467   (exit $ac_status); }; }; then
13468   ac_cv_type_mode_t=yes
13469 else
13470   echo "$as_me: failed program was:" >&5
13471 sed 's/^/| /' conftest.$ac_ext >&5
13472
13473 ac_cv_type_mode_t=no
13474 fi
13475 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13476 fi
13477 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
13478 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
13479 if test $ac_cv_type_mode_t = yes; then
13480   :
13481 else
13482
13483 cat >>confdefs.h <<_ACEOF
13484 #define mode_t int
13485 _ACEOF
13486
13487 fi
13488
13489 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
13490 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
13491 if test "${ac_cv_type_uid_t+set}" = set; then
13492   echo $ECHO_N "(cached) $ECHO_C" >&6
13493 else
13494   cat >conftest.$ac_ext <<_ACEOF
13495 /* confdefs.h.  */
13496 _ACEOF
13497 cat confdefs.h >>conftest.$ac_ext
13498 cat >>conftest.$ac_ext <<_ACEOF
13499 /* end confdefs.h.  */
13500 #include <sys/types.h>
13501
13502 _ACEOF
13503 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13504   $EGREP "uid_t" >/dev/null 2>&1; then
13505   ac_cv_type_uid_t=yes
13506 else
13507   ac_cv_type_uid_t=no
13508 fi
13509 rm -f conftest*
13510
13511 fi
13512 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
13513 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
13514 if test $ac_cv_type_uid_t = no; then
13515
13516 cat >>confdefs.h <<\_ACEOF
13517 #define uid_t int
13518 _ACEOF
13519
13520
13521 cat >>confdefs.h <<\_ACEOF
13522 #define gid_t int
13523 _ACEOF
13524
13525 fi
13526
13527 echo "$as_me:$LINENO: checking for size_t" >&5
13528 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
13529 if test "${ac_cv_type_size_t+set}" = set; then
13530   echo $ECHO_N "(cached) $ECHO_C" >&6
13531 else
13532   cat >conftest.$ac_ext <<_ACEOF
13533 /* confdefs.h.  */
13534 _ACEOF
13535 cat confdefs.h >>conftest.$ac_ext
13536 cat >>conftest.$ac_ext <<_ACEOF
13537 /* end confdefs.h.  */
13538 $ac_includes_default
13539 int
13540 main ()
13541 {
13542 if ((size_t *) 0)
13543   return 0;
13544 if (sizeof (size_t))
13545   return 0;
13546   ;
13547   return 0;
13548 }
13549 _ACEOF
13550 rm -f conftest.$ac_objext
13551 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13552   (eval $ac_compile) 2>conftest.er1
13553   ac_status=$?
13554   grep -v '^ *+' conftest.er1 >conftest.err
13555   rm -f conftest.er1
13556   cat conftest.err >&5
13557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13558   (exit $ac_status); } &&
13559          { ac_try='test -z "$ac_c_werror_flag"
13560                          || test ! -s conftest.err'
13561   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13562   (eval $ac_try) 2>&5
13563   ac_status=$?
13564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13565   (exit $ac_status); }; } &&
13566          { ac_try='test -s conftest.$ac_objext'
13567   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13568   (eval $ac_try) 2>&5
13569   ac_status=$?
13570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13571   (exit $ac_status); }; }; then
13572   ac_cv_type_size_t=yes
13573 else
13574   echo "$as_me: failed program was:" >&5
13575 sed 's/^/| /' conftest.$ac_ext >&5
13576
13577 ac_cv_type_size_t=no
13578 fi
13579 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13580 fi
13581 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
13582 echo "${ECHO_T}$ac_cv_type_size_t" >&6
13583 if test $ac_cv_type_size_t = yes; then
13584   :
13585 else
13586
13587 cat >>confdefs.h <<_ACEOF
13588 #define size_t unsigned
13589 _ACEOF
13590
13591 fi
13592
13593 echo "$as_me:$LINENO: checking for pid_t" >&5
13594 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
13595 if test "${ac_cv_type_pid_t+set}" = set; then
13596   echo $ECHO_N "(cached) $ECHO_C" >&6
13597 else
13598   cat >conftest.$ac_ext <<_ACEOF
13599 /* confdefs.h.  */
13600 _ACEOF
13601 cat confdefs.h >>conftest.$ac_ext
13602 cat >>conftest.$ac_ext <<_ACEOF
13603 /* end confdefs.h.  */
13604 $ac_includes_default
13605 int
13606 main ()
13607 {
13608 if ((pid_t *) 0)
13609   return 0;
13610 if (sizeof (pid_t))
13611   return 0;
13612   ;
13613   return 0;
13614 }
13615 _ACEOF
13616 rm -f conftest.$ac_objext
13617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13618   (eval $ac_compile) 2>conftest.er1
13619   ac_status=$?
13620   grep -v '^ *+' conftest.er1 >conftest.err
13621   rm -f conftest.er1
13622   cat conftest.err >&5
13623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13624   (exit $ac_status); } &&
13625          { ac_try='test -z "$ac_c_werror_flag"
13626                          || test ! -s conftest.err'
13627   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13628   (eval $ac_try) 2>&5
13629   ac_status=$?
13630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13631   (exit $ac_status); }; } &&
13632          { ac_try='test -s conftest.$ac_objext'
13633   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13634   (eval $ac_try) 2>&5
13635   ac_status=$?
13636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13637   (exit $ac_status); }; }; then
13638   ac_cv_type_pid_t=yes
13639 else
13640   echo "$as_me: failed program was:" >&5
13641 sed 's/^/| /' conftest.$ac_ext >&5
13642
13643 ac_cv_type_pid_t=no
13644 fi
13645 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13646 fi
13647 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
13648 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
13649 if test $ac_cv_type_pid_t = yes; then
13650   :
13651 else
13652
13653 cat >>confdefs.h <<_ACEOF
13654 #define pid_t int
13655 _ACEOF
13656
13657 fi
13658
13659 echo "$as_me:$LINENO: checking for off_t" >&5
13660 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
13661 if test "${ac_cv_type_off_t+set}" = set; then
13662   echo $ECHO_N "(cached) $ECHO_C" >&6
13663 else
13664   cat >conftest.$ac_ext <<_ACEOF
13665 /* confdefs.h.  */
13666 _ACEOF
13667 cat confdefs.h >>conftest.$ac_ext
13668 cat >>conftest.$ac_ext <<_ACEOF
13669 /* end confdefs.h.  */
13670 $ac_includes_default
13671 int
13672 main ()
13673 {
13674 if ((off_t *) 0)
13675   return 0;
13676 if (sizeof (off_t))
13677   return 0;
13678   ;
13679   return 0;
13680 }
13681 _ACEOF
13682 rm -f conftest.$ac_objext
13683 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13684   (eval $ac_compile) 2>conftest.er1
13685   ac_status=$?
13686   grep -v '^ *+' conftest.er1 >conftest.err
13687   rm -f conftest.er1
13688   cat conftest.err >&5
13689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13690   (exit $ac_status); } &&
13691          { ac_try='test -z "$ac_c_werror_flag"
13692                          || test ! -s conftest.err'
13693   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13694   (eval $ac_try) 2>&5
13695   ac_status=$?
13696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13697   (exit $ac_status); }; } &&
13698          { ac_try='test -s conftest.$ac_objext'
13699   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13700   (eval $ac_try) 2>&5
13701   ac_status=$?
13702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13703   (exit $ac_status); }; }; then
13704   ac_cv_type_off_t=yes
13705 else
13706   echo "$as_me: failed program was:" >&5
13707 sed 's/^/| /' conftest.$ac_ext >&5
13708
13709 ac_cv_type_off_t=no
13710 fi
13711 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13712 fi
13713 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
13714 echo "${ECHO_T}$ac_cv_type_off_t" >&6
13715 if test $ac_cv_type_off_t = yes; then
13716   :
13717 else
13718
13719 cat >>confdefs.h <<_ACEOF
13720 #define off_t long
13721 _ACEOF
13722
13723 fi
13724
13725 echo "$as_me:$LINENO: checking for ino_t" >&5
13726 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
13727 if test "${ac_cv_type_ino_t+set}" = set; then
13728   echo $ECHO_N "(cached) $ECHO_C" >&6
13729 else
13730   cat >conftest.$ac_ext <<_ACEOF
13731 /* confdefs.h.  */
13732 _ACEOF
13733 cat confdefs.h >>conftest.$ac_ext
13734 cat >>conftest.$ac_ext <<_ACEOF
13735 /* end confdefs.h.  */
13736 $ac_includes_default
13737 int
13738 main ()
13739 {
13740 if ((ino_t *) 0)
13741   return 0;
13742 if (sizeof (ino_t))
13743   return 0;
13744   ;
13745   return 0;
13746 }
13747 _ACEOF
13748 rm -f conftest.$ac_objext
13749 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13750   (eval $ac_compile) 2>conftest.er1
13751   ac_status=$?
13752   grep -v '^ *+' conftest.er1 >conftest.err
13753   rm -f conftest.er1
13754   cat conftest.err >&5
13755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13756   (exit $ac_status); } &&
13757          { ac_try='test -z "$ac_c_werror_flag"
13758                          || test ! -s conftest.err'
13759   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13760   (eval $ac_try) 2>&5
13761   ac_status=$?
13762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13763   (exit $ac_status); }; } &&
13764          { ac_try='test -s conftest.$ac_objext'
13765   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13766   (eval $ac_try) 2>&5
13767   ac_status=$?
13768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13769   (exit $ac_status); }; }; then
13770   ac_cv_type_ino_t=yes
13771 else
13772   echo "$as_me: failed program was:" >&5
13773 sed 's/^/| /' conftest.$ac_ext >&5
13774
13775 ac_cv_type_ino_t=no
13776 fi
13777 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13778 fi
13779 echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
13780 echo "${ECHO_T}$ac_cv_type_ino_t" >&6
13781 if test $ac_cv_type_ino_t = yes; then
13782   :
13783 else
13784
13785 cat >>confdefs.h <<_ACEOF
13786 #define ino_t unsigned long
13787 _ACEOF
13788
13789 fi
13790
13791 echo "$as_me:$LINENO: checking for dev_t" >&5
13792 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6
13793 if test "${ac_cv_type_dev_t+set}" = set; then
13794   echo $ECHO_N "(cached) $ECHO_C" >&6
13795 else
13796   cat >conftest.$ac_ext <<_ACEOF
13797 /* confdefs.h.  */
13798 _ACEOF
13799 cat confdefs.h >>conftest.$ac_ext
13800 cat >>conftest.$ac_ext <<_ACEOF
13801 /* end confdefs.h.  */
13802 $ac_includes_default
13803 int
13804 main ()
13805 {
13806 if ((dev_t *) 0)
13807   return 0;
13808 if (sizeof (dev_t))
13809   return 0;
13810   ;
13811   return 0;
13812 }
13813 _ACEOF
13814 rm -f conftest.$ac_objext
13815 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13816   (eval $ac_compile) 2>conftest.er1
13817   ac_status=$?
13818   grep -v '^ *+' conftest.er1 >conftest.err
13819   rm -f conftest.er1
13820   cat conftest.err >&5
13821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13822   (exit $ac_status); } &&
13823          { ac_try='test -z "$ac_c_werror_flag"
13824                          || test ! -s conftest.err'
13825   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13826   (eval $ac_try) 2>&5
13827   ac_status=$?
13828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13829   (exit $ac_status); }; } &&
13830          { ac_try='test -s conftest.$ac_objext'
13831   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13832   (eval $ac_try) 2>&5
13833   ac_status=$?
13834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13835   (exit $ac_status); }; }; then
13836   ac_cv_type_dev_t=yes
13837 else
13838   echo "$as_me: failed program was:" >&5
13839 sed 's/^/| /' conftest.$ac_ext >&5
13840
13841 ac_cv_type_dev_t=no
13842 fi
13843 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13844 fi
13845 echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
13846 echo "${ECHO_T}$ac_cv_type_dev_t" >&6
13847 if test $ac_cv_type_dev_t = yes; then
13848   :
13849 else
13850
13851 cat >>confdefs.h <<_ACEOF
13852 #define dev_t unsigned long
13853 _ACEOF
13854
13855 fi
13856
13857 echo "$as_me:$LINENO: checking for daddr_t" >&5
13858 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6
13859 if test "${ac_cv_type_daddr_t+set}" = set; then
13860   echo $ECHO_N "(cached) $ECHO_C" >&6
13861 else
13862   cat >conftest.$ac_ext <<_ACEOF
13863 /* confdefs.h.  */
13864 _ACEOF
13865 cat confdefs.h >>conftest.$ac_ext
13866 cat >>conftest.$ac_ext <<_ACEOF
13867 /* end confdefs.h.  */
13868 $ac_includes_default
13869 int
13870 main ()
13871 {
13872 if ((daddr_t *) 0)
13873   return 0;
13874 if (sizeof (daddr_t))
13875   return 0;
13876   ;
13877   return 0;
13878 }
13879 _ACEOF
13880 rm -f conftest.$ac_objext
13881 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13882   (eval $ac_compile) 2>conftest.er1
13883   ac_status=$?
13884   grep -v '^ *+' conftest.er1 >conftest.err
13885   rm -f conftest.er1
13886   cat conftest.err >&5
13887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13888   (exit $ac_status); } &&
13889          { ac_try='test -z "$ac_c_werror_flag"
13890                          || test ! -s conftest.err'
13891   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13892   (eval $ac_try) 2>&5
13893   ac_status=$?
13894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13895   (exit $ac_status); }; } &&
13896          { ac_try='test -s conftest.$ac_objext'
13897   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13898   (eval $ac_try) 2>&5
13899   ac_status=$?
13900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13901   (exit $ac_status); }; }; then
13902   ac_cv_type_daddr_t=yes
13903 else
13904   echo "$as_me: failed program was:" >&5
13905 sed 's/^/| /' conftest.$ac_ext >&5
13906
13907 ac_cv_type_daddr_t=no
13908 fi
13909 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13910 fi
13911 echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
13912 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6
13913 if test $ac_cv_type_daddr_t = yes; then
13914   :
13915 else
13916
13917 cat >>confdefs.h <<_ACEOF
13918 #define daddr_t long
13919 _ACEOF
13920
13921 fi
13922
13923 echo "$as_me:$LINENO: checking for major_t" >&5
13924 echo $ECHO_N "checking for major_t... $ECHO_C" >&6
13925 if test "${ac_cv_type_major_t+set}" = set; then
13926   echo $ECHO_N "(cached) $ECHO_C" >&6
13927 else
13928   cat >conftest.$ac_ext <<_ACEOF
13929 /* confdefs.h.  */
13930 _ACEOF
13931 cat confdefs.h >>conftest.$ac_ext
13932 cat >>conftest.$ac_ext <<_ACEOF
13933 /* end confdefs.h.  */
13934 $ac_includes_default
13935 int
13936 main ()
13937 {
13938 if ((major_t *) 0)
13939   return 0;
13940 if (sizeof (major_t))
13941   return 0;
13942   ;
13943   return 0;
13944 }
13945 _ACEOF
13946 rm -f conftest.$ac_objext
13947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13948   (eval $ac_compile) 2>conftest.er1
13949   ac_status=$?
13950   grep -v '^ *+' conftest.er1 >conftest.err
13951   rm -f conftest.er1
13952   cat conftest.err >&5
13953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13954   (exit $ac_status); } &&
13955          { ac_try='test -z "$ac_c_werror_flag"
13956                          || test ! -s conftest.err'
13957   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13958   (eval $ac_try) 2>&5
13959   ac_status=$?
13960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13961   (exit $ac_status); }; } &&
13962          { ac_try='test -s conftest.$ac_objext'
13963   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13964   (eval $ac_try) 2>&5
13965   ac_status=$?
13966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13967   (exit $ac_status); }; }; then
13968   ac_cv_type_major_t=yes
13969 else
13970   echo "$as_me: failed program was:" >&5
13971 sed 's/^/| /' conftest.$ac_ext >&5
13972
13973 ac_cv_type_major_t=no
13974 fi
13975 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13976 fi
13977 echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
13978 echo "${ECHO_T}$ac_cv_type_major_t" >&6
13979 if test $ac_cv_type_major_t = yes; then
13980   :
13981 else
13982
13983 cat >>confdefs.h <<_ACEOF
13984 #define major_t int
13985 _ACEOF
13986
13987 fi
13988
13989 echo "$as_me:$LINENO: checking for minor_t" >&5
13990 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6
13991 if test "${ac_cv_type_minor_t+set}" = set; then
13992   echo $ECHO_N "(cached) $ECHO_C" >&6
13993 else
13994   cat >conftest.$ac_ext <<_ACEOF
13995 /* confdefs.h.  */
13996 _ACEOF
13997 cat confdefs.h >>conftest.$ac_ext
13998 cat >>conftest.$ac_ext <<_ACEOF
13999 /* end confdefs.h.  */
14000 $ac_includes_default
14001 int
14002 main ()
14003 {
14004 if ((minor_t *) 0)
14005   return 0;
14006 if (sizeof (minor_t))
14007   return 0;
14008   ;
14009   return 0;
14010 }
14011 _ACEOF
14012 rm -f conftest.$ac_objext
14013 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14014   (eval $ac_compile) 2>conftest.er1
14015   ac_status=$?
14016   grep -v '^ *+' conftest.er1 >conftest.err
14017   rm -f conftest.er1
14018   cat conftest.err >&5
14019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14020   (exit $ac_status); } &&
14021          { ac_try='test -z "$ac_c_werror_flag"
14022                          || test ! -s conftest.err'
14023   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14024   (eval $ac_try) 2>&5
14025   ac_status=$?
14026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14027   (exit $ac_status); }; } &&
14028          { ac_try='test -s conftest.$ac_objext'
14029   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14030   (eval $ac_try) 2>&5
14031   ac_status=$?
14032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14033   (exit $ac_status); }; }; then
14034   ac_cv_type_minor_t=yes
14035 else
14036   echo "$as_me: failed program was:" >&5
14037 sed 's/^/| /' conftest.$ac_ext >&5
14038
14039 ac_cv_type_minor_t=no
14040 fi
14041 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14042 fi
14043 echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
14044 echo "${ECHO_T}$ac_cv_type_minor_t" >&6
14045 if test $ac_cv_type_minor_t = yes; then
14046   :
14047 else
14048
14049 cat >>confdefs.h <<_ACEOF
14050 #define minor_t int
14051 _ACEOF
14052
14053 fi
14054
14055 echo "$as_me:$LINENO: checking for ssize_t" >&5
14056 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
14057 if test "${ac_cv_type_ssize_t+set}" = set; then
14058   echo $ECHO_N "(cached) $ECHO_C" >&6
14059 else
14060   cat >conftest.$ac_ext <<_ACEOF
14061 /* confdefs.h.  */
14062 _ACEOF
14063 cat confdefs.h >>conftest.$ac_ext
14064 cat >>conftest.$ac_ext <<_ACEOF
14065 /* end confdefs.h.  */
14066 $ac_includes_default
14067 int
14068 main ()
14069 {
14070 if ((ssize_t *) 0)
14071   return 0;
14072 if (sizeof (ssize_t))
14073   return 0;
14074   ;
14075   return 0;
14076 }
14077 _ACEOF
14078 rm -f conftest.$ac_objext
14079 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14080   (eval $ac_compile) 2>conftest.er1
14081   ac_status=$?
14082   grep -v '^ *+' conftest.er1 >conftest.err
14083   rm -f conftest.er1
14084   cat conftest.err >&5
14085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14086   (exit $ac_status); } &&
14087          { ac_try='test -z "$ac_c_werror_flag"
14088                          || test ! -s conftest.err'
14089   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14090   (eval $ac_try) 2>&5
14091   ac_status=$?
14092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14093   (exit $ac_status); }; } &&
14094          { ac_try='test -s conftest.$ac_objext'
14095   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14096   (eval $ac_try) 2>&5
14097   ac_status=$?
14098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14099   (exit $ac_status); }; }; then
14100   ac_cv_type_ssize_t=yes
14101 else
14102   echo "$as_me: failed program was:" >&5
14103 sed 's/^/| /' conftest.$ac_ext >&5
14104
14105 ac_cv_type_ssize_t=no
14106 fi
14107 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14108 fi
14109 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
14110 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
14111 if test $ac_cv_type_ssize_t = yes; then
14112   :
14113 else
14114
14115 cat >>confdefs.h <<_ACEOF
14116 #define ssize_t int
14117 _ACEOF
14118
14119 fi
14120
14121 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
14122 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
14123 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
14124   echo $ECHO_N "(cached) $ECHO_C" >&6
14125 else
14126   cat >conftest.$ac_ext <<_ACEOF
14127 /* confdefs.h.  */
14128 _ACEOF
14129 cat confdefs.h >>conftest.$ac_ext
14130 cat >>conftest.$ac_ext <<_ACEOF
14131 /* end confdefs.h.  */
14132 $ac_includes_default
14133 int
14134 main ()
14135 {
14136 static struct stat ac_aggr;
14137 if (ac_aggr.st_blocks)
14138 return 0;
14139   ;
14140   return 0;
14141 }
14142 _ACEOF
14143 rm -f conftest.$ac_objext
14144 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14145   (eval $ac_compile) 2>conftest.er1
14146   ac_status=$?
14147   grep -v '^ *+' conftest.er1 >conftest.err
14148   rm -f conftest.er1
14149   cat conftest.err >&5
14150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14151   (exit $ac_status); } &&
14152          { ac_try='test -z "$ac_c_werror_flag"
14153                          || test ! -s conftest.err'
14154   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14155   (eval $ac_try) 2>&5
14156   ac_status=$?
14157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14158   (exit $ac_status); }; } &&
14159          { ac_try='test -s conftest.$ac_objext'
14160   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14161   (eval $ac_try) 2>&5
14162   ac_status=$?
14163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14164   (exit $ac_status); }; }; then
14165   ac_cv_member_struct_stat_st_blocks=yes
14166 else
14167   echo "$as_me: failed program was:" >&5
14168 sed 's/^/| /' conftest.$ac_ext >&5
14169
14170 cat >conftest.$ac_ext <<_ACEOF
14171 /* confdefs.h.  */
14172 _ACEOF
14173 cat confdefs.h >>conftest.$ac_ext
14174 cat >>conftest.$ac_ext <<_ACEOF
14175 /* end confdefs.h.  */
14176 $ac_includes_default
14177 int
14178 main ()
14179 {
14180 static struct stat ac_aggr;
14181 if (sizeof ac_aggr.st_blocks)
14182 return 0;
14183   ;
14184   return 0;
14185 }
14186 _ACEOF
14187 rm -f conftest.$ac_objext
14188 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14189   (eval $ac_compile) 2>conftest.er1
14190   ac_status=$?
14191   grep -v '^ *+' conftest.er1 >conftest.err
14192   rm -f conftest.er1
14193   cat conftest.err >&5
14194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14195   (exit $ac_status); } &&
14196          { ac_try='test -z "$ac_c_werror_flag"
14197                          || test ! -s conftest.err'
14198   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14199   (eval $ac_try) 2>&5
14200   ac_status=$?
14201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14202   (exit $ac_status); }; } &&
14203          { ac_try='test -s conftest.$ac_objext'
14204   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14205   (eval $ac_try) 2>&5
14206   ac_status=$?
14207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14208   (exit $ac_status); }; }; then
14209   ac_cv_member_struct_stat_st_blocks=yes
14210 else
14211   echo "$as_me: failed program was:" >&5
14212 sed 's/^/| /' conftest.$ac_ext >&5
14213
14214 ac_cv_member_struct_stat_st_blocks=no
14215 fi
14216 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14217 fi
14218 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14219 fi
14220 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
14221 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
14222 if test $ac_cv_member_struct_stat_st_blocks = yes; then
14223
14224 cat >>confdefs.h <<_ACEOF
14225 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
14226 _ACEOF
14227
14228
14229 cat >>confdefs.h <<\_ACEOF
14230 #define HAVE_ST_BLOCKS 1
14231 _ACEOF
14232
14233 else
14234   case $LIBOBJS in
14235     "fileblocks.$ac_objext"   | \
14236   *" fileblocks.$ac_objext"   | \
14237     "fileblocks.$ac_objext "* | \
14238   *" fileblocks.$ac_objext "* ) ;;
14239   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;;
14240 esac
14241
14242 fi
14243
14244
14245
14246 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
14247 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
14248 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
14249   echo $ECHO_N "(cached) $ECHO_C" >&6
14250 else
14251   cat >conftest.$ac_ext <<_ACEOF
14252 /* confdefs.h.  */
14253 _ACEOF
14254 cat confdefs.h >>conftest.$ac_ext
14255 cat >>conftest.$ac_ext <<_ACEOF
14256 /* end confdefs.h.  */
14257 $ac_includes_default
14258 int
14259 main ()
14260 {
14261 static struct stat ac_aggr;
14262 if (ac_aggr.st_rdev)
14263 return 0;
14264   ;
14265   return 0;
14266 }
14267 _ACEOF
14268 rm -f conftest.$ac_objext
14269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14270   (eval $ac_compile) 2>conftest.er1
14271   ac_status=$?
14272   grep -v '^ *+' conftest.er1 >conftest.err
14273   rm -f conftest.er1
14274   cat conftest.err >&5
14275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14276   (exit $ac_status); } &&
14277          { ac_try='test -z "$ac_c_werror_flag"
14278                          || test ! -s conftest.err'
14279   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14280   (eval $ac_try) 2>&5
14281   ac_status=$?
14282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14283   (exit $ac_status); }; } &&
14284          { ac_try='test -s conftest.$ac_objext'
14285   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14286   (eval $ac_try) 2>&5
14287   ac_status=$?
14288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14289   (exit $ac_status); }; }; then
14290   ac_cv_member_struct_stat_st_rdev=yes
14291 else
14292   echo "$as_me: failed program was:" >&5
14293 sed 's/^/| /' conftest.$ac_ext >&5
14294
14295 cat >conftest.$ac_ext <<_ACEOF
14296 /* confdefs.h.  */
14297 _ACEOF
14298 cat confdefs.h >>conftest.$ac_ext
14299 cat >>conftest.$ac_ext <<_ACEOF
14300 /* end confdefs.h.  */
14301 $ac_includes_default
14302 int
14303 main ()
14304 {
14305 static struct stat ac_aggr;
14306 if (sizeof ac_aggr.st_rdev)
14307 return 0;
14308   ;
14309   return 0;
14310 }
14311 _ACEOF
14312 rm -f conftest.$ac_objext
14313 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14314   (eval $ac_compile) 2>conftest.er1
14315   ac_status=$?
14316   grep -v '^ *+' conftest.er1 >conftest.err
14317   rm -f conftest.er1
14318   cat conftest.err >&5
14319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14320   (exit $ac_status); } &&
14321          { ac_try='test -z "$ac_c_werror_flag"
14322                          || test ! -s conftest.err'
14323   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14324   (eval $ac_try) 2>&5
14325   ac_status=$?
14326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14327   (exit $ac_status); }; } &&
14328          { ac_try='test -s conftest.$ac_objext'
14329   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14330   (eval $ac_try) 2>&5
14331   ac_status=$?
14332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14333   (exit $ac_status); }; }; then
14334   ac_cv_member_struct_stat_st_rdev=yes
14335 else
14336   echo "$as_me: failed program was:" >&5
14337 sed 's/^/| /' conftest.$ac_ext >&5
14338
14339 ac_cv_member_struct_stat_st_rdev=no
14340 fi
14341 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14342 fi
14343 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14344 fi
14345 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
14346 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
14347 if test $ac_cv_member_struct_stat_st_rdev = yes; then
14348
14349 cat >>confdefs.h <<_ACEOF
14350 #define HAVE_STRUCT_STAT_ST_RDEV 1
14351 _ACEOF
14352
14353
14354 cat >>confdefs.h <<\_ACEOF
14355 #define HAVE_ST_RDEV 1
14356 _ACEOF
14357
14358 fi
14359
14360
14361 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
14362 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
14363 if test "${ac_cv_struct_tm+set}" = set; then
14364   echo $ECHO_N "(cached) $ECHO_C" >&6
14365 else
14366   cat >conftest.$ac_ext <<_ACEOF
14367 /* confdefs.h.  */
14368 _ACEOF
14369 cat confdefs.h >>conftest.$ac_ext
14370 cat >>conftest.$ac_ext <<_ACEOF
14371 /* end confdefs.h.  */
14372 #include <sys/types.h>
14373 #include <time.h>
14374
14375 int
14376 main ()
14377 {
14378 struct tm *tp; tp->tm_sec;
14379   ;
14380   return 0;
14381 }
14382 _ACEOF
14383 rm -f conftest.$ac_objext
14384 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14385   (eval $ac_compile) 2>conftest.er1
14386   ac_status=$?
14387   grep -v '^ *+' conftest.er1 >conftest.err
14388   rm -f conftest.er1
14389   cat conftest.err >&5
14390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14391   (exit $ac_status); } &&
14392          { ac_try='test -z "$ac_c_werror_flag"
14393                          || test ! -s conftest.err'
14394   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14395   (eval $ac_try) 2>&5
14396   ac_status=$?
14397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14398   (exit $ac_status); }; } &&
14399          { ac_try='test -s conftest.$ac_objext'
14400   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14401   (eval $ac_try) 2>&5
14402   ac_status=$?
14403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14404   (exit $ac_status); }; }; then
14405   ac_cv_struct_tm=time.h
14406 else
14407   echo "$as_me: failed program was:" >&5
14408 sed 's/^/| /' conftest.$ac_ext >&5
14409
14410 ac_cv_struct_tm=sys/time.h
14411 fi
14412 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14413 fi
14414 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
14415 echo "${ECHO_T}$ac_cv_struct_tm" >&6
14416 if test $ac_cv_struct_tm = sys/time.h; then
14417
14418 cat >>confdefs.h <<\_ACEOF
14419 #define TM_IN_SYS_TIME 1
14420 _ACEOF
14421
14422 fi
14423
14424 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
14425 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
14426 if test "${ac_cv_c_const+set}" = set; then
14427   echo $ECHO_N "(cached) $ECHO_C" >&6
14428 else
14429   cat >conftest.$ac_ext <<_ACEOF
14430 /* confdefs.h.  */
14431 _ACEOF
14432 cat confdefs.h >>conftest.$ac_ext
14433 cat >>conftest.$ac_ext <<_ACEOF
14434 /* end confdefs.h.  */
14435
14436 int
14437 main ()
14438 {
14439 /* FIXME: Include the comments suggested by Paul. */
14440 #ifndef __cplusplus
14441   /* Ultrix mips cc rejects this.  */
14442   typedef int charset[2];
14443   const charset x;
14444   /* SunOS 4.1.1 cc rejects this.  */
14445   char const *const *ccp;
14446   char **p;
14447   /* NEC SVR4.0.2 mips cc rejects this.  */
14448   struct point {int x, y;};
14449   static struct point const zero = {0,0};
14450   /* AIX XL C 1.02.0.0 rejects this.
14451      It does not let you subtract one const X* pointer from another in
14452      an arm of an if-expression whose if-part is not a constant
14453      expression */
14454   const char *g = "string";
14455   ccp = &g + (g ? g-g : 0);
14456   /* HPUX 7.0 cc rejects these. */
14457   ++ccp;
14458   p = (char**) ccp;
14459   ccp = (char const *const *) p;
14460   { /* SCO 3.2v4 cc rejects this.  */
14461     char *t;
14462     char const *s = 0 ? (char *) 0 : (char const *) 0;
14463
14464     *t++ = 0;
14465   }
14466   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
14467     int x[] = {25, 17};
14468     const int *foo = &x[0];
14469     ++foo;
14470   }
14471   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14472     typedef const int *iptr;
14473     iptr p = 0;
14474     ++p;
14475   }
14476   { /* AIX XL C 1.02.0.0 rejects this saying
14477        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14478     struct s { int j; const int *ap[3]; };
14479     struct s *b; b->j = 5;
14480   }
14481   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14482     const int foo = 10;
14483   }
14484 #endif
14485
14486   ;
14487   return 0;
14488 }
14489 _ACEOF
14490 rm -f conftest.$ac_objext
14491 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14492   (eval $ac_compile) 2>conftest.er1
14493   ac_status=$?
14494   grep -v '^ *+' conftest.er1 >conftest.err
14495   rm -f conftest.er1
14496   cat conftest.err >&5
14497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14498   (exit $ac_status); } &&
14499          { ac_try='test -z "$ac_c_werror_flag"
14500                          || test ! -s conftest.err'
14501   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14502   (eval $ac_try) 2>&5
14503   ac_status=$?
14504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14505   (exit $ac_status); }; } &&
14506          { ac_try='test -s conftest.$ac_objext'
14507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14508   (eval $ac_try) 2>&5
14509   ac_status=$?
14510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14511   (exit $ac_status); }; }; then
14512   ac_cv_c_const=yes
14513 else
14514   echo "$as_me: failed program was:" >&5
14515 sed 's/^/| /' conftest.$ac_ext >&5
14516
14517 ac_cv_c_const=no
14518 fi
14519 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14520 fi
14521 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
14522 echo "${ECHO_T}$ac_cv_c_const" >&6
14523 if test $ac_cv_c_const = no; then
14524
14525 cat >>confdefs.h <<\_ACEOF
14526 #define const
14527 _ACEOF
14528
14529 fi
14530
14531
14532
14533 echo "$as_me:$LINENO: checking for char" >&5
14534 echo $ECHO_N "checking for char... $ECHO_C" >&6
14535 if test "${ac_cv_type_char+set}" = set; then
14536   echo $ECHO_N "(cached) $ECHO_C" >&6
14537 else
14538   cat >conftest.$ac_ext <<_ACEOF
14539 /* confdefs.h.  */
14540 _ACEOF
14541 cat confdefs.h >>conftest.$ac_ext
14542 cat >>conftest.$ac_ext <<_ACEOF
14543 /* end confdefs.h.  */
14544 $ac_includes_default
14545 int
14546 main ()
14547 {
14548 if ((char *) 0)
14549   return 0;
14550 if (sizeof (char))
14551   return 0;
14552   ;
14553   return 0;
14554 }
14555 _ACEOF
14556 rm -f conftest.$ac_objext
14557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14558   (eval $ac_compile) 2>conftest.er1
14559   ac_status=$?
14560   grep -v '^ *+' conftest.er1 >conftest.err
14561   rm -f conftest.er1
14562   cat conftest.err >&5
14563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14564   (exit $ac_status); } &&
14565          { ac_try='test -z "$ac_c_werror_flag"
14566                          || test ! -s conftest.err'
14567   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14568   (eval $ac_try) 2>&5
14569   ac_status=$?
14570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14571   (exit $ac_status); }; } &&
14572          { ac_try='test -s conftest.$ac_objext'
14573   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14574   (eval $ac_try) 2>&5
14575   ac_status=$?
14576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14577   (exit $ac_status); }; }; then
14578   ac_cv_type_char=yes
14579 else
14580   echo "$as_me: failed program was:" >&5
14581 sed 's/^/| /' conftest.$ac_ext >&5
14582
14583 ac_cv_type_char=no
14584 fi
14585 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14586 fi
14587 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
14588 echo "${ECHO_T}$ac_cv_type_char" >&6
14589
14590 echo "$as_me:$LINENO: checking size of char" >&5
14591 echo $ECHO_N "checking size of char... $ECHO_C" >&6
14592 if test "${ac_cv_sizeof_char+set}" = set; then
14593   echo $ECHO_N "(cached) $ECHO_C" >&6
14594 else
14595   if test "$ac_cv_type_char" = yes; then
14596   # The cast to unsigned long works around a bug in the HP C Compiler
14597   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14598   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14599   # This bug is HP SR number 8606223364.
14600   if test "$cross_compiling" = yes; then
14601   # Depending upon the size, compute the lo and hi bounds.
14602 cat >conftest.$ac_ext <<_ACEOF
14603 /* confdefs.h.  */
14604 _ACEOF
14605 cat confdefs.h >>conftest.$ac_ext
14606 cat >>conftest.$ac_ext <<_ACEOF
14607 /* end confdefs.h.  */
14608 $ac_includes_default
14609 int
14610 main ()
14611 {
14612 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
14613 test_array [0] = 0
14614
14615   ;
14616   return 0;
14617 }
14618 _ACEOF
14619 rm -f conftest.$ac_objext
14620 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14621   (eval $ac_compile) 2>conftest.er1
14622   ac_status=$?
14623   grep -v '^ *+' conftest.er1 >conftest.err
14624   rm -f conftest.er1
14625   cat conftest.err >&5
14626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14627   (exit $ac_status); } &&
14628          { ac_try='test -z "$ac_c_werror_flag"
14629                          || test ! -s conftest.err'
14630   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14631   (eval $ac_try) 2>&5
14632   ac_status=$?
14633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14634   (exit $ac_status); }; } &&
14635          { ac_try='test -s conftest.$ac_objext'
14636   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14637   (eval $ac_try) 2>&5
14638   ac_status=$?
14639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14640   (exit $ac_status); }; }; then
14641   ac_lo=0 ac_mid=0
14642   while :; do
14643     cat >conftest.$ac_ext <<_ACEOF
14644 /* confdefs.h.  */
14645 _ACEOF
14646 cat confdefs.h >>conftest.$ac_ext
14647 cat >>conftest.$ac_ext <<_ACEOF
14648 /* end confdefs.h.  */
14649 $ac_includes_default
14650 int
14651 main ()
14652 {
14653 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
14654 test_array [0] = 0
14655
14656   ;
14657   return 0;
14658 }
14659 _ACEOF
14660 rm -f conftest.$ac_objext
14661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14662   (eval $ac_compile) 2>conftest.er1
14663   ac_status=$?
14664   grep -v '^ *+' conftest.er1 >conftest.err
14665   rm -f conftest.er1
14666   cat conftest.err >&5
14667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14668   (exit $ac_status); } &&
14669          { ac_try='test -z "$ac_c_werror_flag"
14670                          || test ! -s conftest.err'
14671   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14672   (eval $ac_try) 2>&5
14673   ac_status=$?
14674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14675   (exit $ac_status); }; } &&
14676          { ac_try='test -s conftest.$ac_objext'
14677   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14678   (eval $ac_try) 2>&5
14679   ac_status=$?
14680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14681   (exit $ac_status); }; }; then
14682   ac_hi=$ac_mid; break
14683 else
14684   echo "$as_me: failed program was:" >&5
14685 sed 's/^/| /' conftest.$ac_ext >&5
14686
14687 ac_lo=`expr $ac_mid + 1`
14688                     if test $ac_lo -le $ac_mid; then
14689                       ac_lo= ac_hi=
14690                       break
14691                     fi
14692                     ac_mid=`expr 2 '*' $ac_mid + 1`
14693 fi
14694 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14695   done
14696 else
14697   echo "$as_me: failed program was:" >&5
14698 sed 's/^/| /' conftest.$ac_ext >&5
14699
14700 cat >conftest.$ac_ext <<_ACEOF
14701 /* confdefs.h.  */
14702 _ACEOF
14703 cat confdefs.h >>conftest.$ac_ext
14704 cat >>conftest.$ac_ext <<_ACEOF
14705 /* end confdefs.h.  */
14706 $ac_includes_default
14707 int
14708 main ()
14709 {
14710 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
14711 test_array [0] = 0
14712
14713   ;
14714   return 0;
14715 }
14716 _ACEOF
14717 rm -f conftest.$ac_objext
14718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14719   (eval $ac_compile) 2>conftest.er1
14720   ac_status=$?
14721   grep -v '^ *+' conftest.er1 >conftest.err
14722   rm -f conftest.er1
14723   cat conftest.err >&5
14724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14725   (exit $ac_status); } &&
14726          { ac_try='test -z "$ac_c_werror_flag"
14727                          || test ! -s conftest.err'
14728   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14729   (eval $ac_try) 2>&5
14730   ac_status=$?
14731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14732   (exit $ac_status); }; } &&
14733          { ac_try='test -s conftest.$ac_objext'
14734   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14735   (eval $ac_try) 2>&5
14736   ac_status=$?
14737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14738   (exit $ac_status); }; }; then
14739   ac_hi=-1 ac_mid=-1
14740   while :; do
14741     cat >conftest.$ac_ext <<_ACEOF
14742 /* confdefs.h.  */
14743 _ACEOF
14744 cat confdefs.h >>conftest.$ac_ext
14745 cat >>conftest.$ac_ext <<_ACEOF
14746 /* end confdefs.h.  */
14747 $ac_includes_default
14748 int
14749 main ()
14750 {
14751 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
14752 test_array [0] = 0
14753
14754   ;
14755   return 0;
14756 }
14757 _ACEOF
14758 rm -f conftest.$ac_objext
14759 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14760   (eval $ac_compile) 2>conftest.er1
14761   ac_status=$?
14762   grep -v '^ *+' conftest.er1 >conftest.err
14763   rm -f conftest.er1
14764   cat conftest.err >&5
14765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14766   (exit $ac_status); } &&
14767          { ac_try='test -z "$ac_c_werror_flag"
14768                          || test ! -s conftest.err'
14769   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14770   (eval $ac_try) 2>&5
14771   ac_status=$?
14772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14773   (exit $ac_status); }; } &&
14774          { ac_try='test -s conftest.$ac_objext'
14775   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14776   (eval $ac_try) 2>&5
14777   ac_status=$?
14778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14779   (exit $ac_status); }; }; then
14780   ac_lo=$ac_mid; break
14781 else
14782   echo "$as_me: failed program was:" >&5
14783 sed 's/^/| /' conftest.$ac_ext >&5
14784
14785 ac_hi=`expr '(' $ac_mid ')' - 1`
14786                        if test $ac_mid -le $ac_hi; then
14787                          ac_lo= ac_hi=
14788                          break
14789                        fi
14790                        ac_mid=`expr 2 '*' $ac_mid`
14791 fi
14792 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14793   done
14794 else
14795   echo "$as_me: failed program was:" >&5
14796 sed 's/^/| /' conftest.$ac_ext >&5
14797
14798 ac_lo= ac_hi=
14799 fi
14800 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14801 fi
14802 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14803 # Binary search between lo and hi bounds.
14804 while test "x$ac_lo" != "x$ac_hi"; do
14805   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14806   cat >conftest.$ac_ext <<_ACEOF
14807 /* confdefs.h.  */
14808 _ACEOF
14809 cat confdefs.h >>conftest.$ac_ext
14810 cat >>conftest.$ac_ext <<_ACEOF
14811 /* end confdefs.h.  */
14812 $ac_includes_default
14813 int
14814 main ()
14815 {
14816 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
14817 test_array [0] = 0
14818
14819   ;
14820   return 0;
14821 }
14822 _ACEOF
14823 rm -f conftest.$ac_objext
14824 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14825   (eval $ac_compile) 2>conftest.er1
14826   ac_status=$?
14827   grep -v '^ *+' conftest.er1 >conftest.err
14828   rm -f conftest.er1
14829   cat conftest.err >&5
14830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14831   (exit $ac_status); } &&
14832          { ac_try='test -z "$ac_c_werror_flag"
14833                          || test ! -s conftest.err'
14834   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14835   (eval $ac_try) 2>&5
14836   ac_status=$?
14837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14838   (exit $ac_status); }; } &&
14839          { ac_try='test -s conftest.$ac_objext'
14840   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14841   (eval $ac_try) 2>&5
14842   ac_status=$?
14843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14844   (exit $ac_status); }; }; then
14845   ac_hi=$ac_mid
14846 else
14847   echo "$as_me: failed program was:" >&5
14848 sed 's/^/| /' conftest.$ac_ext >&5
14849
14850 ac_lo=`expr '(' $ac_mid ')' + 1`
14851 fi
14852 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14853 done
14854 case $ac_lo in
14855 ?*) ac_cv_sizeof_char=$ac_lo;;
14856 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14857 See \`config.log' for more details." >&5
14858 echo "$as_me: error: cannot compute sizeof (char), 77
14859 See \`config.log' for more details." >&2;}
14860    { (exit 1); exit 1; }; } ;;
14861 esac
14862 else
14863   if test "$cross_compiling" = yes; then
14864   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14865 See \`config.log' for more details." >&5
14866 echo "$as_me: error: cannot run test program while cross compiling
14867 See \`config.log' for more details." >&2;}
14868    { (exit 1); exit 1; }; }
14869 else
14870   cat >conftest.$ac_ext <<_ACEOF
14871 /* confdefs.h.  */
14872 _ACEOF
14873 cat confdefs.h >>conftest.$ac_ext
14874 cat >>conftest.$ac_ext <<_ACEOF
14875 /* end confdefs.h.  */
14876 $ac_includes_default
14877 long longval () { return (long) (sizeof (char)); }
14878 unsigned long ulongval () { return (long) (sizeof (char)); }
14879 #include <stdio.h>
14880 #include <stdlib.h>
14881 int
14882 main ()
14883 {
14884
14885   FILE *f = fopen ("conftest.val", "w");
14886   if (! f)
14887     exit (1);
14888   if (((long) (sizeof (char))) < 0)
14889     {
14890       long i = longval ();
14891       if (i != ((long) (sizeof (char))))
14892         exit (1);
14893       fprintf (f, "%ld\n", i);
14894     }
14895   else
14896     {
14897       unsigned long i = ulongval ();
14898       if (i != ((long) (sizeof (char))))
14899         exit (1);
14900       fprintf (f, "%lu\n", i);
14901     }
14902   exit (ferror (f) || fclose (f) != 0);
14903
14904   ;
14905   return 0;
14906 }
14907 _ACEOF
14908 rm -f conftest$ac_exeext
14909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14910   (eval $ac_link) 2>&5
14911   ac_status=$?
14912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14913   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14914   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14915   (eval $ac_try) 2>&5
14916   ac_status=$?
14917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14918   (exit $ac_status); }; }; then
14919   ac_cv_sizeof_char=`cat conftest.val`
14920 else
14921   echo "$as_me: program exited with status $ac_status" >&5
14922 echo "$as_me: failed program was:" >&5
14923 sed 's/^/| /' conftest.$ac_ext >&5
14924
14925 ( exit $ac_status )
14926 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14927 See \`config.log' for more details." >&5
14928 echo "$as_me: error: cannot compute sizeof (char), 77
14929 See \`config.log' for more details." >&2;}
14930    { (exit 1); exit 1; }; }
14931 fi
14932 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14933 fi
14934 fi
14935 rm -f conftest.val
14936 else
14937   ac_cv_sizeof_char=0
14938 fi
14939 fi
14940 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
14941 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
14942 cat >>confdefs.h <<_ACEOF
14943 #define SIZEOF_CHAR $ac_cv_sizeof_char
14944 _ACEOF
14945
14946
14947 echo "$as_me:$LINENO: checking for short int" >&5
14948 echo $ECHO_N "checking for short int... $ECHO_C" >&6
14949 if test "${ac_cv_type_short_int+set}" = set; then
14950   echo $ECHO_N "(cached) $ECHO_C" >&6
14951 else
14952   cat >conftest.$ac_ext <<_ACEOF
14953 /* confdefs.h.  */
14954 _ACEOF
14955 cat confdefs.h >>conftest.$ac_ext
14956 cat >>conftest.$ac_ext <<_ACEOF
14957 /* end confdefs.h.  */
14958 $ac_includes_default
14959 int
14960 main ()
14961 {
14962 if ((short int *) 0)
14963   return 0;
14964 if (sizeof (short int))
14965   return 0;
14966   ;
14967   return 0;
14968 }
14969 _ACEOF
14970 rm -f conftest.$ac_objext
14971 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14972   (eval $ac_compile) 2>conftest.er1
14973   ac_status=$?
14974   grep -v '^ *+' conftest.er1 >conftest.err
14975   rm -f conftest.er1
14976   cat conftest.err >&5
14977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14978   (exit $ac_status); } &&
14979          { ac_try='test -z "$ac_c_werror_flag"
14980                          || test ! -s conftest.err'
14981   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14982   (eval $ac_try) 2>&5
14983   ac_status=$?
14984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14985   (exit $ac_status); }; } &&
14986          { ac_try='test -s conftest.$ac_objext'
14987   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14988   (eval $ac_try) 2>&5
14989   ac_status=$?
14990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14991   (exit $ac_status); }; }; then
14992   ac_cv_type_short_int=yes
14993 else
14994   echo "$as_me: failed program was:" >&5
14995 sed 's/^/| /' conftest.$ac_ext >&5
14996
14997 ac_cv_type_short_int=no
14998 fi
14999 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15000 fi
15001 echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
15002 echo "${ECHO_T}$ac_cv_type_short_int" >&6
15003
15004 echo "$as_me:$LINENO: checking size of short int" >&5
15005 echo $ECHO_N "checking size of short int... $ECHO_C" >&6
15006 if test "${ac_cv_sizeof_short_int+set}" = set; then
15007   echo $ECHO_N "(cached) $ECHO_C" >&6
15008 else
15009   if test "$ac_cv_type_short_int" = yes; then
15010   # The cast to unsigned long works around a bug in the HP C Compiler
15011   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15012   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15013   # This bug is HP SR number 8606223364.
15014   if test "$cross_compiling" = yes; then
15015   # Depending upon the size, compute the lo and hi bounds.
15016 cat >conftest.$ac_ext <<_ACEOF
15017 /* confdefs.h.  */
15018 _ACEOF
15019 cat confdefs.h >>conftest.$ac_ext
15020 cat >>conftest.$ac_ext <<_ACEOF
15021 /* end confdefs.h.  */
15022 $ac_includes_default
15023 int
15024 main ()
15025 {
15026 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= 0)];
15027 test_array [0] = 0
15028
15029   ;
15030   return 0;
15031 }
15032 _ACEOF
15033 rm -f conftest.$ac_objext
15034 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15035   (eval $ac_compile) 2>conftest.er1
15036   ac_status=$?
15037   grep -v '^ *+' conftest.er1 >conftest.err
15038   rm -f conftest.er1
15039   cat conftest.err >&5
15040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15041   (exit $ac_status); } &&
15042          { ac_try='test -z "$ac_c_werror_flag"
15043                          || test ! -s conftest.err'
15044   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15045   (eval $ac_try) 2>&5
15046   ac_status=$?
15047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15048   (exit $ac_status); }; } &&
15049          { ac_try='test -s conftest.$ac_objext'
15050   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15051   (eval $ac_try) 2>&5
15052   ac_status=$?
15053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15054   (exit $ac_status); }; }; then
15055   ac_lo=0 ac_mid=0
15056   while :; do
15057     cat >conftest.$ac_ext <<_ACEOF
15058 /* confdefs.h.  */
15059 _ACEOF
15060 cat confdefs.h >>conftest.$ac_ext
15061 cat >>conftest.$ac_ext <<_ACEOF
15062 /* end confdefs.h.  */
15063 $ac_includes_default
15064 int
15065 main ()
15066 {
15067 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
15068 test_array [0] = 0
15069
15070   ;
15071   return 0;
15072 }
15073 _ACEOF
15074 rm -f conftest.$ac_objext
15075 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15076   (eval $ac_compile) 2>conftest.er1
15077   ac_status=$?
15078   grep -v '^ *+' conftest.er1 >conftest.err
15079   rm -f conftest.er1
15080   cat conftest.err >&5
15081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15082   (exit $ac_status); } &&
15083          { ac_try='test -z "$ac_c_werror_flag"
15084                          || test ! -s conftest.err'
15085   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15086   (eval $ac_try) 2>&5
15087   ac_status=$?
15088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15089   (exit $ac_status); }; } &&
15090          { ac_try='test -s conftest.$ac_objext'
15091   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15092   (eval $ac_try) 2>&5
15093   ac_status=$?
15094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15095   (exit $ac_status); }; }; then
15096   ac_hi=$ac_mid; break
15097 else
15098   echo "$as_me: failed program was:" >&5
15099 sed 's/^/| /' conftest.$ac_ext >&5
15100
15101 ac_lo=`expr $ac_mid + 1`
15102                     if test $ac_lo -le $ac_mid; then
15103                       ac_lo= ac_hi=
15104                       break
15105                     fi
15106                     ac_mid=`expr 2 '*' $ac_mid + 1`
15107 fi
15108 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15109   done
15110 else
15111   echo "$as_me: failed program was:" >&5
15112 sed 's/^/| /' conftest.$ac_ext >&5
15113
15114 cat >conftest.$ac_ext <<_ACEOF
15115 /* confdefs.h.  */
15116 _ACEOF
15117 cat confdefs.h >>conftest.$ac_ext
15118 cat >>conftest.$ac_ext <<_ACEOF
15119 /* end confdefs.h.  */
15120 $ac_includes_default
15121 int
15122 main ()
15123 {
15124 static int test_array [1 - 2 * !(((long) (sizeof (short int))) < 0)];
15125 test_array [0] = 0
15126
15127   ;
15128   return 0;
15129 }
15130 _ACEOF
15131 rm -f conftest.$ac_objext
15132 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15133   (eval $ac_compile) 2>conftest.er1
15134   ac_status=$?
15135   grep -v '^ *+' conftest.er1 >conftest.err
15136   rm -f conftest.er1
15137   cat conftest.err >&5
15138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15139   (exit $ac_status); } &&
15140          { ac_try='test -z "$ac_c_werror_flag"
15141                          || test ! -s conftest.err'
15142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15143   (eval $ac_try) 2>&5
15144   ac_status=$?
15145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15146   (exit $ac_status); }; } &&
15147          { ac_try='test -s conftest.$ac_objext'
15148   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15149   (eval $ac_try) 2>&5
15150   ac_status=$?
15151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15152   (exit $ac_status); }; }; then
15153   ac_hi=-1 ac_mid=-1
15154   while :; do
15155     cat >conftest.$ac_ext <<_ACEOF
15156 /* confdefs.h.  */
15157 _ACEOF
15158 cat confdefs.h >>conftest.$ac_ext
15159 cat >>conftest.$ac_ext <<_ACEOF
15160 /* end confdefs.h.  */
15161 $ac_includes_default
15162 int
15163 main ()
15164 {
15165 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= $ac_mid)];
15166 test_array [0] = 0
15167
15168   ;
15169   return 0;
15170 }
15171 _ACEOF
15172 rm -f conftest.$ac_objext
15173 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15174   (eval $ac_compile) 2>conftest.er1
15175   ac_status=$?
15176   grep -v '^ *+' conftest.er1 >conftest.err
15177   rm -f conftest.er1
15178   cat conftest.err >&5
15179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15180   (exit $ac_status); } &&
15181          { ac_try='test -z "$ac_c_werror_flag"
15182                          || test ! -s conftest.err'
15183   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15184   (eval $ac_try) 2>&5
15185   ac_status=$?
15186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15187   (exit $ac_status); }; } &&
15188          { ac_try='test -s conftest.$ac_objext'
15189   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15190   (eval $ac_try) 2>&5
15191   ac_status=$?
15192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15193   (exit $ac_status); }; }; then
15194   ac_lo=$ac_mid; break
15195 else
15196   echo "$as_me: failed program was:" >&5
15197 sed 's/^/| /' conftest.$ac_ext >&5
15198
15199 ac_hi=`expr '(' $ac_mid ')' - 1`
15200                        if test $ac_mid -le $ac_hi; then
15201                          ac_lo= ac_hi=
15202                          break
15203                        fi
15204                        ac_mid=`expr 2 '*' $ac_mid`
15205 fi
15206 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15207   done
15208 else
15209   echo "$as_me: failed program was:" >&5
15210 sed 's/^/| /' conftest.$ac_ext >&5
15211
15212 ac_lo= ac_hi=
15213 fi
15214 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15215 fi
15216 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15217 # Binary search between lo and hi bounds.
15218 while test "x$ac_lo" != "x$ac_hi"; do
15219   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15220   cat >conftest.$ac_ext <<_ACEOF
15221 /* confdefs.h.  */
15222 _ACEOF
15223 cat confdefs.h >>conftest.$ac_ext
15224 cat >>conftest.$ac_ext <<_ACEOF
15225 /* end confdefs.h.  */
15226 $ac_includes_default
15227 int
15228 main ()
15229 {
15230 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
15231 test_array [0] = 0
15232
15233   ;
15234   return 0;
15235 }
15236 _ACEOF
15237 rm -f conftest.$ac_objext
15238 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15239   (eval $ac_compile) 2>conftest.er1
15240   ac_status=$?
15241   grep -v '^ *+' conftest.er1 >conftest.err
15242   rm -f conftest.er1
15243   cat conftest.err >&5
15244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15245   (exit $ac_status); } &&
15246          { ac_try='test -z "$ac_c_werror_flag"
15247                          || test ! -s conftest.err'
15248   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15249   (eval $ac_try) 2>&5
15250   ac_status=$?
15251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15252   (exit $ac_status); }; } &&
15253          { ac_try='test -s conftest.$ac_objext'
15254   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15255   (eval $ac_try) 2>&5
15256   ac_status=$?
15257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15258   (exit $ac_status); }; }; then
15259   ac_hi=$ac_mid
15260 else
15261   echo "$as_me: failed program was:" >&5
15262 sed 's/^/| /' conftest.$ac_ext >&5
15263
15264 ac_lo=`expr '(' $ac_mid ')' + 1`
15265 fi
15266 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15267 done
15268 case $ac_lo in
15269 ?*) ac_cv_sizeof_short_int=$ac_lo;;
15270 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
15271 See \`config.log' for more details." >&5
15272 echo "$as_me: error: cannot compute sizeof (short int), 77
15273 See \`config.log' for more details." >&2;}
15274    { (exit 1); exit 1; }; } ;;
15275 esac
15276 else
15277   if test "$cross_compiling" = yes; then
15278   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15279 See \`config.log' for more details." >&5
15280 echo "$as_me: error: cannot run test program while cross compiling
15281 See \`config.log' for more details." >&2;}
15282    { (exit 1); exit 1; }; }
15283 else
15284   cat >conftest.$ac_ext <<_ACEOF
15285 /* confdefs.h.  */
15286 _ACEOF
15287 cat confdefs.h >>conftest.$ac_ext
15288 cat >>conftest.$ac_ext <<_ACEOF
15289 /* end confdefs.h.  */
15290 $ac_includes_default
15291 long longval () { return (long) (sizeof (short int)); }
15292 unsigned long ulongval () { return (long) (sizeof (short int)); }
15293 #include <stdio.h>
15294 #include <stdlib.h>
15295 int
15296 main ()
15297 {
15298
15299   FILE *f = fopen ("conftest.val", "w");
15300   if (! f)
15301     exit (1);
15302   if (((long) (sizeof (short int))) < 0)
15303     {
15304       long i = longval ();
15305       if (i != ((long) (sizeof (short int))))
15306         exit (1);
15307       fprintf (f, "%ld\n", i);
15308     }
15309   else
15310     {
15311       unsigned long i = ulongval ();
15312       if (i != ((long) (sizeof (short int))))
15313         exit (1);
15314       fprintf (f, "%lu\n", i);
15315     }
15316   exit (ferror (f) || fclose (f) != 0);
15317
15318   ;
15319   return 0;
15320 }
15321 _ACEOF
15322 rm -f conftest$ac_exeext
15323 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15324   (eval $ac_link) 2>&5
15325   ac_status=$?
15326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15327   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15328   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15329   (eval $ac_try) 2>&5
15330   ac_status=$?
15331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15332   (exit $ac_status); }; }; then
15333   ac_cv_sizeof_short_int=`cat conftest.val`
15334 else
15335   echo "$as_me: program exited with status $ac_status" >&5
15336 echo "$as_me: failed program was:" >&5
15337 sed 's/^/| /' conftest.$ac_ext >&5
15338
15339 ( exit $ac_status )
15340 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
15341 See \`config.log' for more details." >&5
15342 echo "$as_me: error: cannot compute sizeof (short int), 77
15343 See \`config.log' for more details." >&2;}
15344    { (exit 1); exit 1; }; }
15345 fi
15346 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15347 fi
15348 fi
15349 rm -f conftest.val
15350 else
15351   ac_cv_sizeof_short_int=0
15352 fi
15353 fi
15354 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
15355 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6
15356 cat >>confdefs.h <<_ACEOF
15357 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
15358 _ACEOF
15359
15360
15361 echo "$as_me:$LINENO: checking for int" >&5
15362 echo $ECHO_N "checking for int... $ECHO_C" >&6
15363 if test "${ac_cv_type_int+set}" = set; then
15364   echo $ECHO_N "(cached) $ECHO_C" >&6
15365 else
15366   cat >conftest.$ac_ext <<_ACEOF
15367 /* confdefs.h.  */
15368 _ACEOF
15369 cat confdefs.h >>conftest.$ac_ext
15370 cat >>conftest.$ac_ext <<_ACEOF
15371 /* end confdefs.h.  */
15372 $ac_includes_default
15373 int
15374 main ()
15375 {
15376 if ((int *) 0)
15377   return 0;
15378 if (sizeof (int))
15379   return 0;
15380   ;
15381   return 0;
15382 }
15383 _ACEOF
15384 rm -f conftest.$ac_objext
15385 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15386   (eval $ac_compile) 2>conftest.er1
15387   ac_status=$?
15388   grep -v '^ *+' conftest.er1 >conftest.err
15389   rm -f conftest.er1
15390   cat conftest.err >&5
15391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15392   (exit $ac_status); } &&
15393          { ac_try='test -z "$ac_c_werror_flag"
15394                          || test ! -s conftest.err'
15395   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15396   (eval $ac_try) 2>&5
15397   ac_status=$?
15398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15399   (exit $ac_status); }; } &&
15400          { ac_try='test -s conftest.$ac_objext'
15401   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15402   (eval $ac_try) 2>&5
15403   ac_status=$?
15404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15405   (exit $ac_status); }; }; then
15406   ac_cv_type_int=yes
15407 else
15408   echo "$as_me: failed program was:" >&5
15409 sed 's/^/| /' conftest.$ac_ext >&5
15410
15411 ac_cv_type_int=no
15412 fi
15413 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15414 fi
15415 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
15416 echo "${ECHO_T}$ac_cv_type_int" >&6
15417
15418 echo "$as_me:$LINENO: checking size of int" >&5
15419 echo $ECHO_N "checking size of int... $ECHO_C" >&6
15420 if test "${ac_cv_sizeof_int+set}" = set; then
15421   echo $ECHO_N "(cached) $ECHO_C" >&6
15422 else
15423   if test "$ac_cv_type_int" = yes; then
15424   # The cast to unsigned long works around a bug in the HP C Compiler
15425   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15426   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15427   # This bug is HP SR number 8606223364.
15428   if test "$cross_compiling" = yes; then
15429   # Depending upon the size, compute the lo and hi bounds.
15430 cat >conftest.$ac_ext <<_ACEOF
15431 /* confdefs.h.  */
15432 _ACEOF
15433 cat confdefs.h >>conftest.$ac_ext
15434 cat >>conftest.$ac_ext <<_ACEOF
15435 /* end confdefs.h.  */
15436 $ac_includes_default
15437 int
15438 main ()
15439 {
15440 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
15441 test_array [0] = 0
15442
15443   ;
15444   return 0;
15445 }
15446 _ACEOF
15447 rm -f conftest.$ac_objext
15448 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15449   (eval $ac_compile) 2>conftest.er1
15450   ac_status=$?
15451   grep -v '^ *+' conftest.er1 >conftest.err
15452   rm -f conftest.er1
15453   cat conftest.err >&5
15454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15455   (exit $ac_status); } &&
15456          { ac_try='test -z "$ac_c_werror_flag"
15457                          || test ! -s conftest.err'
15458   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15459   (eval $ac_try) 2>&5
15460   ac_status=$?
15461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15462   (exit $ac_status); }; } &&
15463          { ac_try='test -s conftest.$ac_objext'
15464   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15465   (eval $ac_try) 2>&5
15466   ac_status=$?
15467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15468   (exit $ac_status); }; }; then
15469   ac_lo=0 ac_mid=0
15470   while :; do
15471     cat >conftest.$ac_ext <<_ACEOF
15472 /* confdefs.h.  */
15473 _ACEOF
15474 cat confdefs.h >>conftest.$ac_ext
15475 cat >>conftest.$ac_ext <<_ACEOF
15476 /* end confdefs.h.  */
15477 $ac_includes_default
15478 int
15479 main ()
15480 {
15481 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15482 test_array [0] = 0
15483
15484   ;
15485   return 0;
15486 }
15487 _ACEOF
15488 rm -f conftest.$ac_objext
15489 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15490   (eval $ac_compile) 2>conftest.er1
15491   ac_status=$?
15492   grep -v '^ *+' conftest.er1 >conftest.err
15493   rm -f conftest.er1
15494   cat conftest.err >&5
15495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15496   (exit $ac_status); } &&
15497          { ac_try='test -z "$ac_c_werror_flag"
15498                          || test ! -s conftest.err'
15499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15500   (eval $ac_try) 2>&5
15501   ac_status=$?
15502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15503   (exit $ac_status); }; } &&
15504          { ac_try='test -s conftest.$ac_objext'
15505   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15506   (eval $ac_try) 2>&5
15507   ac_status=$?
15508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15509   (exit $ac_status); }; }; then
15510   ac_hi=$ac_mid; break
15511 else
15512   echo "$as_me: failed program was:" >&5
15513 sed 's/^/| /' conftest.$ac_ext >&5
15514
15515 ac_lo=`expr $ac_mid + 1`
15516                     if test $ac_lo -le $ac_mid; then
15517                       ac_lo= ac_hi=
15518                       break
15519                     fi
15520                     ac_mid=`expr 2 '*' $ac_mid + 1`
15521 fi
15522 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15523   done
15524 else
15525   echo "$as_me: failed program was:" >&5
15526 sed 's/^/| /' conftest.$ac_ext >&5
15527
15528 cat >conftest.$ac_ext <<_ACEOF
15529 /* confdefs.h.  */
15530 _ACEOF
15531 cat confdefs.h >>conftest.$ac_ext
15532 cat >>conftest.$ac_ext <<_ACEOF
15533 /* end confdefs.h.  */
15534 $ac_includes_default
15535 int
15536 main ()
15537 {
15538 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
15539 test_array [0] = 0
15540
15541   ;
15542   return 0;
15543 }
15544 _ACEOF
15545 rm -f conftest.$ac_objext
15546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15547   (eval $ac_compile) 2>conftest.er1
15548   ac_status=$?
15549   grep -v '^ *+' conftest.er1 >conftest.err
15550   rm -f conftest.er1
15551   cat conftest.err >&5
15552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15553   (exit $ac_status); } &&
15554          { ac_try='test -z "$ac_c_werror_flag"
15555                          || test ! -s conftest.err'
15556   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15557   (eval $ac_try) 2>&5
15558   ac_status=$?
15559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15560   (exit $ac_status); }; } &&
15561          { ac_try='test -s conftest.$ac_objext'
15562   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15563   (eval $ac_try) 2>&5
15564   ac_status=$?
15565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15566   (exit $ac_status); }; }; then
15567   ac_hi=-1 ac_mid=-1
15568   while :; do
15569     cat >conftest.$ac_ext <<_ACEOF
15570 /* confdefs.h.  */
15571 _ACEOF
15572 cat confdefs.h >>conftest.$ac_ext
15573 cat >>conftest.$ac_ext <<_ACEOF
15574 /* end confdefs.h.  */
15575 $ac_includes_default
15576 int
15577 main ()
15578 {
15579 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
15580 test_array [0] = 0
15581
15582   ;
15583   return 0;
15584 }
15585 _ACEOF
15586 rm -f conftest.$ac_objext
15587 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15588   (eval $ac_compile) 2>conftest.er1
15589   ac_status=$?
15590   grep -v '^ *+' conftest.er1 >conftest.err
15591   rm -f conftest.er1
15592   cat conftest.err >&5
15593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15594   (exit $ac_status); } &&
15595          { ac_try='test -z "$ac_c_werror_flag"
15596                          || test ! -s conftest.err'
15597   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15598   (eval $ac_try) 2>&5
15599   ac_status=$?
15600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15601   (exit $ac_status); }; } &&
15602          { ac_try='test -s conftest.$ac_objext'
15603   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15604   (eval $ac_try) 2>&5
15605   ac_status=$?
15606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15607   (exit $ac_status); }; }; then
15608   ac_lo=$ac_mid; break
15609 else
15610   echo "$as_me: failed program was:" >&5
15611 sed 's/^/| /' conftest.$ac_ext >&5
15612
15613 ac_hi=`expr '(' $ac_mid ')' - 1`
15614                        if test $ac_mid -le $ac_hi; then
15615                          ac_lo= ac_hi=
15616                          break
15617                        fi
15618                        ac_mid=`expr 2 '*' $ac_mid`
15619 fi
15620 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15621   done
15622 else
15623   echo "$as_me: failed program was:" >&5
15624 sed 's/^/| /' conftest.$ac_ext >&5
15625
15626 ac_lo= ac_hi=
15627 fi
15628 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15629 fi
15630 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15631 # Binary search between lo and hi bounds.
15632 while test "x$ac_lo" != "x$ac_hi"; do
15633   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15634   cat >conftest.$ac_ext <<_ACEOF
15635 /* confdefs.h.  */
15636 _ACEOF
15637 cat confdefs.h >>conftest.$ac_ext
15638 cat >>conftest.$ac_ext <<_ACEOF
15639 /* end confdefs.h.  */
15640 $ac_includes_default
15641 int
15642 main ()
15643 {
15644 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15645 test_array [0] = 0
15646
15647   ;
15648   return 0;
15649 }
15650 _ACEOF
15651 rm -f conftest.$ac_objext
15652 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15653   (eval $ac_compile) 2>conftest.er1
15654   ac_status=$?
15655   grep -v '^ *+' conftest.er1 >conftest.err
15656   rm -f conftest.er1
15657   cat conftest.err >&5
15658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15659   (exit $ac_status); } &&
15660          { ac_try='test -z "$ac_c_werror_flag"
15661                          || test ! -s conftest.err'
15662   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15663   (eval $ac_try) 2>&5
15664   ac_status=$?
15665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15666   (exit $ac_status); }; } &&
15667          { ac_try='test -s conftest.$ac_objext'
15668   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15669   (eval $ac_try) 2>&5
15670   ac_status=$?
15671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15672   (exit $ac_status); }; }; then
15673   ac_hi=$ac_mid
15674 else
15675   echo "$as_me: failed program was:" >&5
15676 sed 's/^/| /' conftest.$ac_ext >&5
15677
15678 ac_lo=`expr '(' $ac_mid ')' + 1`
15679 fi
15680 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15681 done
15682 case $ac_lo in
15683 ?*) ac_cv_sizeof_int=$ac_lo;;
15684 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15685 See \`config.log' for more details." >&5
15686 echo "$as_me: error: cannot compute sizeof (int), 77
15687 See \`config.log' for more details." >&2;}
15688    { (exit 1); exit 1; }; } ;;
15689 esac
15690 else
15691   if test "$cross_compiling" = yes; then
15692   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15693 See \`config.log' for more details." >&5
15694 echo "$as_me: error: cannot run test program while cross compiling
15695 See \`config.log' for more details." >&2;}
15696    { (exit 1); exit 1; }; }
15697 else
15698   cat >conftest.$ac_ext <<_ACEOF
15699 /* confdefs.h.  */
15700 _ACEOF
15701 cat confdefs.h >>conftest.$ac_ext
15702 cat >>conftest.$ac_ext <<_ACEOF
15703 /* end confdefs.h.  */
15704 $ac_includes_default
15705 long longval () { return (long) (sizeof (int)); }
15706 unsigned long ulongval () { return (long) (sizeof (int)); }
15707 #include <stdio.h>
15708 #include <stdlib.h>
15709 int
15710 main ()
15711 {
15712
15713   FILE *f = fopen ("conftest.val", "w");
15714   if (! f)
15715     exit (1);
15716   if (((long) (sizeof (int))) < 0)
15717     {
15718       long i = longval ();
15719       if (i != ((long) (sizeof (int))))
15720         exit (1);
15721       fprintf (f, "%ld\n", i);
15722     }
15723   else
15724     {
15725       unsigned long i = ulongval ();
15726       if (i != ((long) (sizeof (int))))
15727         exit (1);
15728       fprintf (f, "%lu\n", i);
15729     }
15730   exit (ferror (f) || fclose (f) != 0);
15731
15732   ;
15733   return 0;
15734 }
15735 _ACEOF
15736 rm -f conftest$ac_exeext
15737 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15738   (eval $ac_link) 2>&5
15739   ac_status=$?
15740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15741   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15742   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15743   (eval $ac_try) 2>&5
15744   ac_status=$?
15745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15746   (exit $ac_status); }; }; then
15747   ac_cv_sizeof_int=`cat conftest.val`
15748 else
15749   echo "$as_me: program exited with status $ac_status" >&5
15750 echo "$as_me: failed program was:" >&5
15751 sed 's/^/| /' conftest.$ac_ext >&5
15752
15753 ( exit $ac_status )
15754 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15755 See \`config.log' for more details." >&5
15756 echo "$as_me: error: cannot compute sizeof (int), 77
15757 See \`config.log' for more details." >&2;}
15758    { (exit 1); exit 1; }; }
15759 fi
15760 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15761 fi
15762 fi
15763 rm -f conftest.val
15764 else
15765   ac_cv_sizeof_int=0
15766 fi
15767 fi
15768 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
15769 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
15770 cat >>confdefs.h <<_ACEOF
15771 #define SIZEOF_INT $ac_cv_sizeof_int
15772 _ACEOF
15773
15774
15775 echo "$as_me:$LINENO: checking for long int" >&5
15776 echo $ECHO_N "checking for long int... $ECHO_C" >&6
15777 if test "${ac_cv_type_long_int+set}" = set; then
15778   echo $ECHO_N "(cached) $ECHO_C" >&6
15779 else
15780   cat >conftest.$ac_ext <<_ACEOF
15781 /* confdefs.h.  */
15782 _ACEOF
15783 cat confdefs.h >>conftest.$ac_ext
15784 cat >>conftest.$ac_ext <<_ACEOF
15785 /* end confdefs.h.  */
15786 $ac_includes_default
15787 int
15788 main ()
15789 {
15790 if ((long int *) 0)
15791   return 0;
15792 if (sizeof (long int))
15793   return 0;
15794   ;
15795   return 0;
15796 }
15797 _ACEOF
15798 rm -f conftest.$ac_objext
15799 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15800   (eval $ac_compile) 2>conftest.er1
15801   ac_status=$?
15802   grep -v '^ *+' conftest.er1 >conftest.err
15803   rm -f conftest.er1
15804   cat conftest.err >&5
15805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15806   (exit $ac_status); } &&
15807          { ac_try='test -z "$ac_c_werror_flag"
15808                          || test ! -s conftest.err'
15809   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15810   (eval $ac_try) 2>&5
15811   ac_status=$?
15812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15813   (exit $ac_status); }; } &&
15814          { ac_try='test -s conftest.$ac_objext'
15815   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15816   (eval $ac_try) 2>&5
15817   ac_status=$?
15818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15819   (exit $ac_status); }; }; then
15820   ac_cv_type_long_int=yes
15821 else
15822   echo "$as_me: failed program was:" >&5
15823 sed 's/^/| /' conftest.$ac_ext >&5
15824
15825 ac_cv_type_long_int=no
15826 fi
15827 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15828 fi
15829 echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
15830 echo "${ECHO_T}$ac_cv_type_long_int" >&6
15831
15832 echo "$as_me:$LINENO: checking size of long int" >&5
15833 echo $ECHO_N "checking size of long int... $ECHO_C" >&6
15834 if test "${ac_cv_sizeof_long_int+set}" = set; then
15835   echo $ECHO_N "(cached) $ECHO_C" >&6
15836 else
15837   if test "$ac_cv_type_long_int" = yes; then
15838   # The cast to unsigned long works around a bug in the HP C Compiler
15839   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15840   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15841   # This bug is HP SR number 8606223364.
15842   if test "$cross_compiling" = yes; then
15843   # Depending upon the size, compute the lo and hi bounds.
15844 cat >conftest.$ac_ext <<_ACEOF
15845 /* confdefs.h.  */
15846 _ACEOF
15847 cat confdefs.h >>conftest.$ac_ext
15848 cat >>conftest.$ac_ext <<_ACEOF
15849 /* end confdefs.h.  */
15850 $ac_includes_default
15851 int
15852 main ()
15853 {
15854 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= 0)];
15855 test_array [0] = 0
15856
15857   ;
15858   return 0;
15859 }
15860 _ACEOF
15861 rm -f conftest.$ac_objext
15862 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15863   (eval $ac_compile) 2>conftest.er1
15864   ac_status=$?
15865   grep -v '^ *+' conftest.er1 >conftest.err
15866   rm -f conftest.er1
15867   cat conftest.err >&5
15868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15869   (exit $ac_status); } &&
15870          { ac_try='test -z "$ac_c_werror_flag"
15871                          || test ! -s conftest.err'
15872   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15873   (eval $ac_try) 2>&5
15874   ac_status=$?
15875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15876   (exit $ac_status); }; } &&
15877          { ac_try='test -s conftest.$ac_objext'
15878   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15879   (eval $ac_try) 2>&5
15880   ac_status=$?
15881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15882   (exit $ac_status); }; }; then
15883   ac_lo=0 ac_mid=0
15884   while :; do
15885     cat >conftest.$ac_ext <<_ACEOF
15886 /* confdefs.h.  */
15887 _ACEOF
15888 cat confdefs.h >>conftest.$ac_ext
15889 cat >>conftest.$ac_ext <<_ACEOF
15890 /* end confdefs.h.  */
15891 $ac_includes_default
15892 int
15893 main ()
15894 {
15895 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
15896 test_array [0] = 0
15897
15898   ;
15899   return 0;
15900 }
15901 _ACEOF
15902 rm -f conftest.$ac_objext
15903 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15904   (eval $ac_compile) 2>conftest.er1
15905   ac_status=$?
15906   grep -v '^ *+' conftest.er1 >conftest.err
15907   rm -f conftest.er1
15908   cat conftest.err >&5
15909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15910   (exit $ac_status); } &&
15911          { ac_try='test -z "$ac_c_werror_flag"
15912                          || test ! -s conftest.err'
15913   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15914   (eval $ac_try) 2>&5
15915   ac_status=$?
15916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15917   (exit $ac_status); }; } &&
15918          { ac_try='test -s conftest.$ac_objext'
15919   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15920   (eval $ac_try) 2>&5
15921   ac_status=$?
15922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15923   (exit $ac_status); }; }; then
15924   ac_hi=$ac_mid; break
15925 else
15926   echo "$as_me: failed program was:" >&5
15927 sed 's/^/| /' conftest.$ac_ext >&5
15928
15929 ac_lo=`expr $ac_mid + 1`
15930                     if test $ac_lo -le $ac_mid; then
15931                       ac_lo= ac_hi=
15932                       break
15933                     fi
15934                     ac_mid=`expr 2 '*' $ac_mid + 1`
15935 fi
15936 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15937   done
15938 else
15939   echo "$as_me: failed program was:" >&5
15940 sed 's/^/| /' conftest.$ac_ext >&5
15941
15942 cat >conftest.$ac_ext <<_ACEOF
15943 /* confdefs.h.  */
15944 _ACEOF
15945 cat confdefs.h >>conftest.$ac_ext
15946 cat >>conftest.$ac_ext <<_ACEOF
15947 /* end confdefs.h.  */
15948 $ac_includes_default
15949 int
15950 main ()
15951 {
15952 static int test_array [1 - 2 * !(((long) (sizeof (long int))) < 0)];
15953 test_array [0] = 0
15954
15955   ;
15956   return 0;
15957 }
15958 _ACEOF
15959 rm -f conftest.$ac_objext
15960 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15961   (eval $ac_compile) 2>conftest.er1
15962   ac_status=$?
15963   grep -v '^ *+' conftest.er1 >conftest.err
15964   rm -f conftest.er1
15965   cat conftest.err >&5
15966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15967   (exit $ac_status); } &&
15968          { ac_try='test -z "$ac_c_werror_flag"
15969                          || test ! -s conftest.err'
15970   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15971   (eval $ac_try) 2>&5
15972   ac_status=$?
15973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15974   (exit $ac_status); }; } &&
15975          { ac_try='test -s conftest.$ac_objext'
15976   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15977   (eval $ac_try) 2>&5
15978   ac_status=$?
15979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15980   (exit $ac_status); }; }; then
15981   ac_hi=-1 ac_mid=-1
15982   while :; do
15983     cat >conftest.$ac_ext <<_ACEOF
15984 /* confdefs.h.  */
15985 _ACEOF
15986 cat confdefs.h >>conftest.$ac_ext
15987 cat >>conftest.$ac_ext <<_ACEOF
15988 /* end confdefs.h.  */
15989 $ac_includes_default
15990 int
15991 main ()
15992 {
15993 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= $ac_mid)];
15994 test_array [0] = 0
15995
15996   ;
15997   return 0;
15998 }
15999 _ACEOF
16000 rm -f conftest.$ac_objext
16001 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16002   (eval $ac_compile) 2>conftest.er1
16003   ac_status=$?
16004   grep -v '^ *+' conftest.er1 >conftest.err
16005   rm -f conftest.er1
16006   cat conftest.err >&5
16007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16008   (exit $ac_status); } &&
16009          { ac_try='test -z "$ac_c_werror_flag"
16010                          || test ! -s conftest.err'
16011   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16012   (eval $ac_try) 2>&5
16013   ac_status=$?
16014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16015   (exit $ac_status); }; } &&
16016          { ac_try='test -s conftest.$ac_objext'
16017   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16018   (eval $ac_try) 2>&5
16019   ac_status=$?
16020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16021   (exit $ac_status); }; }; then
16022   ac_lo=$ac_mid; break
16023 else
16024   echo "$as_me: failed program was:" >&5
16025 sed 's/^/| /' conftest.$ac_ext >&5
16026
16027 ac_hi=`expr '(' $ac_mid ')' - 1`
16028                        if test $ac_mid -le $ac_hi; then
16029                          ac_lo= ac_hi=
16030                          break
16031                        fi
16032                        ac_mid=`expr 2 '*' $ac_mid`
16033 fi
16034 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16035   done
16036 else
16037   echo "$as_me: failed program was:" >&5
16038 sed 's/^/| /' conftest.$ac_ext >&5
16039
16040 ac_lo= ac_hi=
16041 fi
16042 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16043 fi
16044 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16045 # Binary search between lo and hi bounds.
16046 while test "x$ac_lo" != "x$ac_hi"; do
16047   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16048   cat >conftest.$ac_ext <<_ACEOF
16049 /* confdefs.h.  */
16050 _ACEOF
16051 cat confdefs.h >>conftest.$ac_ext
16052 cat >>conftest.$ac_ext <<_ACEOF
16053 /* end confdefs.h.  */
16054 $ac_includes_default
16055 int
16056 main ()
16057 {
16058 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
16059 test_array [0] = 0
16060
16061   ;
16062   return 0;
16063 }
16064 _ACEOF
16065 rm -f conftest.$ac_objext
16066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16067   (eval $ac_compile) 2>conftest.er1
16068   ac_status=$?
16069   grep -v '^ *+' conftest.er1 >conftest.err
16070   rm -f conftest.er1
16071   cat conftest.err >&5
16072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16073   (exit $ac_status); } &&
16074          { ac_try='test -z "$ac_c_werror_flag"
16075                          || test ! -s conftest.err'
16076   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16077   (eval $ac_try) 2>&5
16078   ac_status=$?
16079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16080   (exit $ac_status); }; } &&
16081          { ac_try='test -s conftest.$ac_objext'
16082   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16083   (eval $ac_try) 2>&5
16084   ac_status=$?
16085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16086   (exit $ac_status); }; }; then
16087   ac_hi=$ac_mid
16088 else
16089   echo "$as_me: failed program was:" >&5
16090 sed 's/^/| /' conftest.$ac_ext >&5
16091
16092 ac_lo=`expr '(' $ac_mid ')' + 1`
16093 fi
16094 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16095 done
16096 case $ac_lo in
16097 ?*) ac_cv_sizeof_long_int=$ac_lo;;
16098 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
16099 See \`config.log' for more details." >&5
16100 echo "$as_me: error: cannot compute sizeof (long int), 77
16101 See \`config.log' for more details." >&2;}
16102    { (exit 1); exit 1; }; } ;;
16103 esac
16104 else
16105   if test "$cross_compiling" = yes; then
16106   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16107 See \`config.log' for more details." >&5
16108 echo "$as_me: error: cannot run test program while cross compiling
16109 See \`config.log' for more details." >&2;}
16110    { (exit 1); exit 1; }; }
16111 else
16112   cat >conftest.$ac_ext <<_ACEOF
16113 /* confdefs.h.  */
16114 _ACEOF
16115 cat confdefs.h >>conftest.$ac_ext
16116 cat >>conftest.$ac_ext <<_ACEOF
16117 /* end confdefs.h.  */
16118 $ac_includes_default
16119 long longval () { return (long) (sizeof (long int)); }
16120 unsigned long ulongval () { return (long) (sizeof (long int)); }
16121 #include <stdio.h>
16122 #include <stdlib.h>
16123 int
16124 main ()
16125 {
16126
16127   FILE *f = fopen ("conftest.val", "w");
16128   if (! f)
16129     exit (1);
16130   if (((long) (sizeof (long int))) < 0)
16131     {
16132       long i = longval ();
16133       if (i != ((long) (sizeof (long int))))
16134         exit (1);
16135       fprintf (f, "%ld\n", i);
16136     }
16137   else
16138     {
16139       unsigned long i = ulongval ();
16140       if (i != ((long) (sizeof (long int))))
16141         exit (1);
16142       fprintf (f, "%lu\n", i);
16143     }
16144   exit (ferror (f) || fclose (f) != 0);
16145
16146   ;
16147   return 0;
16148 }
16149 _ACEOF
16150 rm -f conftest$ac_exeext
16151 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16152   (eval $ac_link) 2>&5
16153   ac_status=$?
16154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16155   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16156   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16157   (eval $ac_try) 2>&5
16158   ac_status=$?
16159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16160   (exit $ac_status); }; }; then
16161   ac_cv_sizeof_long_int=`cat conftest.val`
16162 else
16163   echo "$as_me: program exited with status $ac_status" >&5
16164 echo "$as_me: failed program was:" >&5
16165 sed 's/^/| /' conftest.$ac_ext >&5
16166
16167 ( exit $ac_status )
16168 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
16169 See \`config.log' for more details." >&5
16170 echo "$as_me: error: cannot compute sizeof (long int), 77
16171 See \`config.log' for more details." >&2;}
16172    { (exit 1); exit 1; }; }
16173 fi
16174 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16175 fi
16176 fi
16177 rm -f conftest.val
16178 else
16179   ac_cv_sizeof_long_int=0
16180 fi
16181 fi
16182 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
16183 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6
16184 cat >>confdefs.h <<_ACEOF
16185 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
16186 _ACEOF
16187
16188
16189 echo "$as_me:$LINENO: checking for long long int" >&5
16190 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
16191 if test "${ac_cv_type_long_long_int+set}" = set; then
16192   echo $ECHO_N "(cached) $ECHO_C" >&6
16193 else
16194   cat >conftest.$ac_ext <<_ACEOF
16195 /* confdefs.h.  */
16196 _ACEOF
16197 cat confdefs.h >>conftest.$ac_ext
16198 cat >>conftest.$ac_ext <<_ACEOF
16199 /* end confdefs.h.  */
16200 $ac_includes_default
16201 int
16202 main ()
16203 {
16204 if ((long long int *) 0)
16205   return 0;
16206 if (sizeof (long long int))
16207   return 0;
16208   ;
16209   return 0;
16210 }
16211 _ACEOF
16212 rm -f conftest.$ac_objext
16213 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16214   (eval $ac_compile) 2>conftest.er1
16215   ac_status=$?
16216   grep -v '^ *+' conftest.er1 >conftest.err
16217   rm -f conftest.er1
16218   cat conftest.err >&5
16219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16220   (exit $ac_status); } &&
16221          { ac_try='test -z "$ac_c_werror_flag"
16222                          || test ! -s conftest.err'
16223   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16224   (eval $ac_try) 2>&5
16225   ac_status=$?
16226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16227   (exit $ac_status); }; } &&
16228          { ac_try='test -s conftest.$ac_objext'
16229   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16230   (eval $ac_try) 2>&5
16231   ac_status=$?
16232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16233   (exit $ac_status); }; }; then
16234   ac_cv_type_long_long_int=yes
16235 else
16236   echo "$as_me: failed program was:" >&5
16237 sed 's/^/| /' conftest.$ac_ext >&5
16238
16239 ac_cv_type_long_long_int=no
16240 fi
16241 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16242 fi
16243 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
16244 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
16245
16246 echo "$as_me:$LINENO: checking size of long long int" >&5
16247 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6
16248 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
16249   echo $ECHO_N "(cached) $ECHO_C" >&6
16250 else
16251   if test "$ac_cv_type_long_long_int" = yes; then
16252   # The cast to unsigned long works around a bug in the HP C Compiler
16253   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16254   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16255   # This bug is HP SR number 8606223364.
16256   if test "$cross_compiling" = yes; then
16257   # Depending upon the size, compute the lo and hi bounds.
16258 cat >conftest.$ac_ext <<_ACEOF
16259 /* confdefs.h.  */
16260 _ACEOF
16261 cat confdefs.h >>conftest.$ac_ext
16262 cat >>conftest.$ac_ext <<_ACEOF
16263 /* end confdefs.h.  */
16264 $ac_includes_default
16265 int
16266 main ()
16267 {
16268 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= 0)];
16269 test_array [0] = 0
16270
16271   ;
16272   return 0;
16273 }
16274 _ACEOF
16275 rm -f conftest.$ac_objext
16276 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16277   (eval $ac_compile) 2>conftest.er1
16278   ac_status=$?
16279   grep -v '^ *+' conftest.er1 >conftest.err
16280   rm -f conftest.er1
16281   cat conftest.err >&5
16282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16283   (exit $ac_status); } &&
16284          { ac_try='test -z "$ac_c_werror_flag"
16285                          || test ! -s conftest.err'
16286   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16287   (eval $ac_try) 2>&5
16288   ac_status=$?
16289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16290   (exit $ac_status); }; } &&
16291          { ac_try='test -s conftest.$ac_objext'
16292   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16293   (eval $ac_try) 2>&5
16294   ac_status=$?
16295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16296   (exit $ac_status); }; }; then
16297   ac_lo=0 ac_mid=0
16298   while :; do
16299     cat >conftest.$ac_ext <<_ACEOF
16300 /* confdefs.h.  */
16301 _ACEOF
16302 cat confdefs.h >>conftest.$ac_ext
16303 cat >>conftest.$ac_ext <<_ACEOF
16304 /* end confdefs.h.  */
16305 $ac_includes_default
16306 int
16307 main ()
16308 {
16309 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
16310 test_array [0] = 0
16311
16312   ;
16313   return 0;
16314 }
16315 _ACEOF
16316 rm -f conftest.$ac_objext
16317 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16318   (eval $ac_compile) 2>conftest.er1
16319   ac_status=$?
16320   grep -v '^ *+' conftest.er1 >conftest.err
16321   rm -f conftest.er1
16322   cat conftest.err >&5
16323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16324   (exit $ac_status); } &&
16325          { ac_try='test -z "$ac_c_werror_flag"
16326                          || test ! -s conftest.err'
16327   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16328   (eval $ac_try) 2>&5
16329   ac_status=$?
16330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16331   (exit $ac_status); }; } &&
16332          { ac_try='test -s conftest.$ac_objext'
16333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16334   (eval $ac_try) 2>&5
16335   ac_status=$?
16336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16337   (exit $ac_status); }; }; then
16338   ac_hi=$ac_mid; break
16339 else
16340   echo "$as_me: failed program was:" >&5
16341 sed 's/^/| /' conftest.$ac_ext >&5
16342
16343 ac_lo=`expr $ac_mid + 1`
16344                     if test $ac_lo -le $ac_mid; then
16345                       ac_lo= ac_hi=
16346                       break
16347                     fi
16348                     ac_mid=`expr 2 '*' $ac_mid + 1`
16349 fi
16350 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16351   done
16352 else
16353   echo "$as_me: failed program was:" >&5
16354 sed 's/^/| /' conftest.$ac_ext >&5
16355
16356 cat >conftest.$ac_ext <<_ACEOF
16357 /* confdefs.h.  */
16358 _ACEOF
16359 cat confdefs.h >>conftest.$ac_ext
16360 cat >>conftest.$ac_ext <<_ACEOF
16361 /* end confdefs.h.  */
16362 $ac_includes_default
16363 int
16364 main ()
16365 {
16366 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) < 0)];
16367 test_array [0] = 0
16368
16369   ;
16370   return 0;
16371 }
16372 _ACEOF
16373 rm -f conftest.$ac_objext
16374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16375   (eval $ac_compile) 2>conftest.er1
16376   ac_status=$?
16377   grep -v '^ *+' conftest.er1 >conftest.err
16378   rm -f conftest.er1
16379   cat conftest.err >&5
16380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16381   (exit $ac_status); } &&
16382          { ac_try='test -z "$ac_c_werror_flag"
16383                          || test ! -s conftest.err'
16384   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16385   (eval $ac_try) 2>&5
16386   ac_status=$?
16387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16388   (exit $ac_status); }; } &&
16389          { ac_try='test -s conftest.$ac_objext'
16390   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16391   (eval $ac_try) 2>&5
16392   ac_status=$?
16393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16394   (exit $ac_status); }; }; then
16395   ac_hi=-1 ac_mid=-1
16396   while :; do
16397     cat >conftest.$ac_ext <<_ACEOF
16398 /* confdefs.h.  */
16399 _ACEOF
16400 cat confdefs.h >>conftest.$ac_ext
16401 cat >>conftest.$ac_ext <<_ACEOF
16402 /* end confdefs.h.  */
16403 $ac_includes_default
16404 int
16405 main ()
16406 {
16407 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= $ac_mid)];
16408 test_array [0] = 0
16409
16410   ;
16411   return 0;
16412 }
16413 _ACEOF
16414 rm -f conftest.$ac_objext
16415 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16416   (eval $ac_compile) 2>conftest.er1
16417   ac_status=$?
16418   grep -v '^ *+' conftest.er1 >conftest.err
16419   rm -f conftest.er1
16420   cat conftest.err >&5
16421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16422   (exit $ac_status); } &&
16423          { ac_try='test -z "$ac_c_werror_flag"
16424                          || test ! -s conftest.err'
16425   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16426   (eval $ac_try) 2>&5
16427   ac_status=$?
16428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16429   (exit $ac_status); }; } &&
16430          { ac_try='test -s conftest.$ac_objext'
16431   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16432   (eval $ac_try) 2>&5
16433   ac_status=$?
16434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16435   (exit $ac_status); }; }; then
16436   ac_lo=$ac_mid; break
16437 else
16438   echo "$as_me: failed program was:" >&5
16439 sed 's/^/| /' conftest.$ac_ext >&5
16440
16441 ac_hi=`expr '(' $ac_mid ')' - 1`
16442                        if test $ac_mid -le $ac_hi; then
16443                          ac_lo= ac_hi=
16444                          break
16445                        fi
16446                        ac_mid=`expr 2 '*' $ac_mid`
16447 fi
16448 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16449   done
16450 else
16451   echo "$as_me: failed program was:" >&5
16452 sed 's/^/| /' conftest.$ac_ext >&5
16453
16454 ac_lo= ac_hi=
16455 fi
16456 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16457 fi
16458 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16459 # Binary search between lo and hi bounds.
16460 while test "x$ac_lo" != "x$ac_hi"; do
16461   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16462   cat >conftest.$ac_ext <<_ACEOF
16463 /* confdefs.h.  */
16464 _ACEOF
16465 cat confdefs.h >>conftest.$ac_ext
16466 cat >>conftest.$ac_ext <<_ACEOF
16467 /* end confdefs.h.  */
16468 $ac_includes_default
16469 int
16470 main ()
16471 {
16472 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
16473 test_array [0] = 0
16474
16475   ;
16476   return 0;
16477 }
16478 _ACEOF
16479 rm -f conftest.$ac_objext
16480 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16481   (eval $ac_compile) 2>conftest.er1
16482   ac_status=$?
16483   grep -v '^ *+' conftest.er1 >conftest.err
16484   rm -f conftest.er1
16485   cat conftest.err >&5
16486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16487   (exit $ac_status); } &&
16488          { ac_try='test -z "$ac_c_werror_flag"
16489                          || test ! -s conftest.err'
16490   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16491   (eval $ac_try) 2>&5
16492   ac_status=$?
16493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16494   (exit $ac_status); }; } &&
16495          { ac_try='test -s conftest.$ac_objext'
16496   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16497   (eval $ac_try) 2>&5
16498   ac_status=$?
16499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16500   (exit $ac_status); }; }; then
16501   ac_hi=$ac_mid
16502 else
16503   echo "$as_me: failed program was:" >&5
16504 sed 's/^/| /' conftest.$ac_ext >&5
16505
16506 ac_lo=`expr '(' $ac_mid ')' + 1`
16507 fi
16508 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16509 done
16510 case $ac_lo in
16511 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
16512 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
16513 See \`config.log' for more details." >&5
16514 echo "$as_me: error: cannot compute sizeof (long long int), 77
16515 See \`config.log' for more details." >&2;}
16516    { (exit 1); exit 1; }; } ;;
16517 esac
16518 else
16519   if test "$cross_compiling" = yes; then
16520   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16521 See \`config.log' for more details." >&5
16522 echo "$as_me: error: cannot run test program while cross compiling
16523 See \`config.log' for more details." >&2;}
16524    { (exit 1); exit 1; }; }
16525 else
16526   cat >conftest.$ac_ext <<_ACEOF
16527 /* confdefs.h.  */
16528 _ACEOF
16529 cat confdefs.h >>conftest.$ac_ext
16530 cat >>conftest.$ac_ext <<_ACEOF
16531 /* end confdefs.h.  */
16532 $ac_includes_default
16533 long longval () { return (long) (sizeof (long long int)); }
16534 unsigned long ulongval () { return (long) (sizeof (long long int)); }
16535 #include <stdio.h>
16536 #include <stdlib.h>
16537 int
16538 main ()
16539 {
16540
16541   FILE *f = fopen ("conftest.val", "w");
16542   if (! f)
16543     exit (1);
16544   if (((long) (sizeof (long long int))) < 0)
16545     {
16546       long i = longval ();
16547       if (i != ((long) (sizeof (long long int))))
16548         exit (1);
16549       fprintf (f, "%ld\n", i);
16550     }
16551   else
16552     {
16553       unsigned long i = ulongval ();
16554       if (i != ((long) (sizeof (long long int))))
16555         exit (1);
16556       fprintf (f, "%lu\n", i);
16557     }
16558   exit (ferror (f) || fclose (f) != 0);
16559
16560   ;
16561   return 0;
16562 }
16563 _ACEOF
16564 rm -f conftest$ac_exeext
16565 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16566   (eval $ac_link) 2>&5
16567   ac_status=$?
16568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16569   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16570   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16571   (eval $ac_try) 2>&5
16572   ac_status=$?
16573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16574   (exit $ac_status); }; }; then
16575   ac_cv_sizeof_long_long_int=`cat conftest.val`
16576 else
16577   echo "$as_me: program exited with status $ac_status" >&5
16578 echo "$as_me: failed program was:" >&5
16579 sed 's/^/| /' conftest.$ac_ext >&5
16580
16581 ( exit $ac_status )
16582 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
16583 See \`config.log' for more details." >&5
16584 echo "$as_me: error: cannot compute sizeof (long long int), 77
16585 See \`config.log' for more details." >&2;}
16586    { (exit 1); exit 1; }; }
16587 fi
16588 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16589 fi
16590 fi
16591 rm -f conftest.val
16592 else
16593   ac_cv_sizeof_long_long_int=0
16594 fi
16595 fi
16596 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
16597 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6
16598 cat >>confdefs.h <<_ACEOF
16599 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
16600 _ACEOF
16601
16602
16603 echo "$as_me:$LINENO: checking for int *" >&5
16604 echo $ECHO_N "checking for int *... $ECHO_C" >&6
16605 if test "${ac_cv_type_int_p+set}" = set; then
16606   echo $ECHO_N "(cached) $ECHO_C" >&6
16607 else
16608   cat >conftest.$ac_ext <<_ACEOF
16609 /* confdefs.h.  */
16610 _ACEOF
16611 cat confdefs.h >>conftest.$ac_ext
16612 cat >>conftest.$ac_ext <<_ACEOF
16613 /* end confdefs.h.  */
16614 $ac_includes_default
16615 int
16616 main ()
16617 {
16618 if ((int * *) 0)
16619   return 0;
16620 if (sizeof (int *))
16621   return 0;
16622   ;
16623   return 0;
16624 }
16625 _ACEOF
16626 rm -f conftest.$ac_objext
16627 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16628   (eval $ac_compile) 2>conftest.er1
16629   ac_status=$?
16630   grep -v '^ *+' conftest.er1 >conftest.err
16631   rm -f conftest.er1
16632   cat conftest.err >&5
16633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16634   (exit $ac_status); } &&
16635          { ac_try='test -z "$ac_c_werror_flag"
16636                          || test ! -s conftest.err'
16637   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16638   (eval $ac_try) 2>&5
16639   ac_status=$?
16640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16641   (exit $ac_status); }; } &&
16642          { ac_try='test -s conftest.$ac_objext'
16643   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16644   (eval $ac_try) 2>&5
16645   ac_status=$?
16646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16647   (exit $ac_status); }; }; then
16648   ac_cv_type_int_p=yes
16649 else
16650   echo "$as_me: failed program was:" >&5
16651 sed 's/^/| /' conftest.$ac_ext >&5
16652
16653 ac_cv_type_int_p=no
16654 fi
16655 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16656 fi
16657 echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
16658 echo "${ECHO_T}$ac_cv_type_int_p" >&6
16659
16660 echo "$as_me:$LINENO: checking size of int *" >&5
16661 echo $ECHO_N "checking size of int *... $ECHO_C" >&6
16662 if test "${ac_cv_sizeof_int_p+set}" = set; then
16663   echo $ECHO_N "(cached) $ECHO_C" >&6
16664 else
16665   if test "$ac_cv_type_int_p" = yes; then
16666   # The cast to unsigned long works around a bug in the HP C Compiler
16667   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16668   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16669   # This bug is HP SR number 8606223364.
16670   if test "$cross_compiling" = yes; then
16671   # Depending upon the size, compute the lo and hi bounds.
16672 cat >conftest.$ac_ext <<_ACEOF
16673 /* confdefs.h.  */
16674 _ACEOF
16675 cat confdefs.h >>conftest.$ac_ext
16676 cat >>conftest.$ac_ext <<_ACEOF
16677 /* end confdefs.h.  */
16678 $ac_includes_default
16679 int
16680 main ()
16681 {
16682 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= 0)];
16683 test_array [0] = 0
16684
16685   ;
16686   return 0;
16687 }
16688 _ACEOF
16689 rm -f conftest.$ac_objext
16690 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16691   (eval $ac_compile) 2>conftest.er1
16692   ac_status=$?
16693   grep -v '^ *+' conftest.er1 >conftest.err
16694   rm -f conftest.er1
16695   cat conftest.err >&5
16696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16697   (exit $ac_status); } &&
16698          { ac_try='test -z "$ac_c_werror_flag"
16699                          || test ! -s conftest.err'
16700   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16701   (eval $ac_try) 2>&5
16702   ac_status=$?
16703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16704   (exit $ac_status); }; } &&
16705          { ac_try='test -s conftest.$ac_objext'
16706   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16707   (eval $ac_try) 2>&5
16708   ac_status=$?
16709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16710   (exit $ac_status); }; }; then
16711   ac_lo=0 ac_mid=0
16712   while :; do
16713     cat >conftest.$ac_ext <<_ACEOF
16714 /* confdefs.h.  */
16715 _ACEOF
16716 cat confdefs.h >>conftest.$ac_ext
16717 cat >>conftest.$ac_ext <<_ACEOF
16718 /* end confdefs.h.  */
16719 $ac_includes_default
16720 int
16721 main ()
16722 {
16723 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
16724 test_array [0] = 0
16725
16726   ;
16727   return 0;
16728 }
16729 _ACEOF
16730 rm -f conftest.$ac_objext
16731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16732   (eval $ac_compile) 2>conftest.er1
16733   ac_status=$?
16734   grep -v '^ *+' conftest.er1 >conftest.err
16735   rm -f conftest.er1
16736   cat conftest.err >&5
16737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16738   (exit $ac_status); } &&
16739          { ac_try='test -z "$ac_c_werror_flag"
16740                          || test ! -s conftest.err'
16741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16742   (eval $ac_try) 2>&5
16743   ac_status=$?
16744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16745   (exit $ac_status); }; } &&
16746          { ac_try='test -s conftest.$ac_objext'
16747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16748   (eval $ac_try) 2>&5
16749   ac_status=$?
16750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16751   (exit $ac_status); }; }; then
16752   ac_hi=$ac_mid; break
16753 else
16754   echo "$as_me: failed program was:" >&5
16755 sed 's/^/| /' conftest.$ac_ext >&5
16756
16757 ac_lo=`expr $ac_mid + 1`
16758                     if test $ac_lo -le $ac_mid; then
16759                       ac_lo= ac_hi=
16760                       break
16761                     fi
16762                     ac_mid=`expr 2 '*' $ac_mid + 1`
16763 fi
16764 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16765   done
16766 else
16767   echo "$as_me: failed program was:" >&5
16768 sed 's/^/| /' conftest.$ac_ext >&5
16769
16770 cat >conftest.$ac_ext <<_ACEOF
16771 /* confdefs.h.  */
16772 _ACEOF
16773 cat confdefs.h >>conftest.$ac_ext
16774 cat >>conftest.$ac_ext <<_ACEOF
16775 /* end confdefs.h.  */
16776 $ac_includes_default
16777 int
16778 main ()
16779 {
16780 static int test_array [1 - 2 * !(((long) (sizeof (int *))) < 0)];
16781 test_array [0] = 0
16782
16783   ;
16784   return 0;
16785 }
16786 _ACEOF
16787 rm -f conftest.$ac_objext
16788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16789   (eval $ac_compile) 2>conftest.er1
16790   ac_status=$?
16791   grep -v '^ *+' conftest.er1 >conftest.err
16792   rm -f conftest.er1
16793   cat conftest.err >&5
16794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16795   (exit $ac_status); } &&
16796          { ac_try='test -z "$ac_c_werror_flag"
16797                          || test ! -s conftest.err'
16798   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16799   (eval $ac_try) 2>&5
16800   ac_status=$?
16801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16802   (exit $ac_status); }; } &&
16803          { ac_try='test -s conftest.$ac_objext'
16804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16805   (eval $ac_try) 2>&5
16806   ac_status=$?
16807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16808   (exit $ac_status); }; }; then
16809   ac_hi=-1 ac_mid=-1
16810   while :; do
16811     cat >conftest.$ac_ext <<_ACEOF
16812 /* confdefs.h.  */
16813 _ACEOF
16814 cat confdefs.h >>conftest.$ac_ext
16815 cat >>conftest.$ac_ext <<_ACEOF
16816 /* end confdefs.h.  */
16817 $ac_includes_default
16818 int
16819 main ()
16820 {
16821 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= $ac_mid)];
16822 test_array [0] = 0
16823
16824   ;
16825   return 0;
16826 }
16827 _ACEOF
16828 rm -f conftest.$ac_objext
16829 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16830   (eval $ac_compile) 2>conftest.er1
16831   ac_status=$?
16832   grep -v '^ *+' conftest.er1 >conftest.err
16833   rm -f conftest.er1
16834   cat conftest.err >&5
16835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16836   (exit $ac_status); } &&
16837          { ac_try='test -z "$ac_c_werror_flag"
16838                          || test ! -s conftest.err'
16839   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16840   (eval $ac_try) 2>&5
16841   ac_status=$?
16842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16843   (exit $ac_status); }; } &&
16844          { ac_try='test -s conftest.$ac_objext'
16845   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16846   (eval $ac_try) 2>&5
16847   ac_status=$?
16848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16849   (exit $ac_status); }; }; then
16850   ac_lo=$ac_mid; break
16851 else
16852   echo "$as_me: failed program was:" >&5
16853 sed 's/^/| /' conftest.$ac_ext >&5
16854
16855 ac_hi=`expr '(' $ac_mid ')' - 1`
16856                        if test $ac_mid -le $ac_hi; then
16857                          ac_lo= ac_hi=
16858                          break
16859                        fi
16860                        ac_mid=`expr 2 '*' $ac_mid`
16861 fi
16862 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16863   done
16864 else
16865   echo "$as_me: failed program was:" >&5
16866 sed 's/^/| /' conftest.$ac_ext >&5
16867
16868 ac_lo= ac_hi=
16869 fi
16870 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16871 fi
16872 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16873 # Binary search between lo and hi bounds.
16874 while test "x$ac_lo" != "x$ac_hi"; do
16875   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16876   cat >conftest.$ac_ext <<_ACEOF
16877 /* confdefs.h.  */
16878 _ACEOF
16879 cat confdefs.h >>conftest.$ac_ext
16880 cat >>conftest.$ac_ext <<_ACEOF
16881 /* end confdefs.h.  */
16882 $ac_includes_default
16883 int
16884 main ()
16885 {
16886 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
16887 test_array [0] = 0
16888
16889   ;
16890   return 0;
16891 }
16892 _ACEOF
16893 rm -f conftest.$ac_objext
16894 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16895   (eval $ac_compile) 2>conftest.er1
16896   ac_status=$?
16897   grep -v '^ *+' conftest.er1 >conftest.err
16898   rm -f conftest.er1
16899   cat conftest.err >&5
16900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16901   (exit $ac_status); } &&
16902          { ac_try='test -z "$ac_c_werror_flag"
16903                          || test ! -s conftest.err'
16904   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16905   (eval $ac_try) 2>&5
16906   ac_status=$?
16907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16908   (exit $ac_status); }; } &&
16909          { ac_try='test -s conftest.$ac_objext'
16910   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16911   (eval $ac_try) 2>&5
16912   ac_status=$?
16913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16914   (exit $ac_status); }; }; then
16915   ac_hi=$ac_mid
16916 else
16917   echo "$as_me: failed program was:" >&5
16918 sed 's/^/| /' conftest.$ac_ext >&5
16919
16920 ac_lo=`expr '(' $ac_mid ')' + 1`
16921 fi
16922 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16923 done
16924 case $ac_lo in
16925 ?*) ac_cv_sizeof_int_p=$ac_lo;;
16926 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
16927 See \`config.log' for more details." >&5
16928 echo "$as_me: error: cannot compute sizeof (int *), 77
16929 See \`config.log' for more details." >&2;}
16930    { (exit 1); exit 1; }; } ;;
16931 esac
16932 else
16933   if test "$cross_compiling" = yes; then
16934   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16935 See \`config.log' for more details." >&5
16936 echo "$as_me: error: cannot run test program while cross compiling
16937 See \`config.log' for more details." >&2;}
16938    { (exit 1); exit 1; }; }
16939 else
16940   cat >conftest.$ac_ext <<_ACEOF
16941 /* confdefs.h.  */
16942 _ACEOF
16943 cat confdefs.h >>conftest.$ac_ext
16944 cat >>conftest.$ac_ext <<_ACEOF
16945 /* end confdefs.h.  */
16946 $ac_includes_default
16947 long longval () { return (long) (sizeof (int *)); }
16948 unsigned long ulongval () { return (long) (sizeof (int *)); }
16949 #include <stdio.h>
16950 #include <stdlib.h>
16951 int
16952 main ()
16953 {
16954
16955   FILE *f = fopen ("conftest.val", "w");
16956   if (! f)
16957     exit (1);
16958   if (((long) (sizeof (int *))) < 0)
16959     {
16960       long i = longval ();
16961       if (i != ((long) (sizeof (int *))))
16962         exit (1);
16963       fprintf (f, "%ld\n", i);
16964     }
16965   else
16966     {
16967       unsigned long i = ulongval ();
16968       if (i != ((long) (sizeof (int *))))
16969         exit (1);
16970       fprintf (f, "%lu\n", i);
16971     }
16972   exit (ferror (f) || fclose (f) != 0);
16973
16974   ;
16975   return 0;
16976 }
16977 _ACEOF
16978 rm -f conftest$ac_exeext
16979 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16980   (eval $ac_link) 2>&5
16981   ac_status=$?
16982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16983   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16984   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16985   (eval $ac_try) 2>&5
16986   ac_status=$?
16987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16988   (exit $ac_status); }; }; then
16989   ac_cv_sizeof_int_p=`cat conftest.val`
16990 else
16991   echo "$as_me: program exited with status $ac_status" >&5
16992 echo "$as_me: failed program was:" >&5
16993 sed 's/^/| /' conftest.$ac_ext >&5
16994
16995 ( exit $ac_status )
16996 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
16997 See \`config.log' for more details." >&5
16998 echo "$as_me: error: cannot compute sizeof (int *), 77
16999 See \`config.log' for more details." >&2;}
17000    { (exit 1); exit 1; }; }
17001 fi
17002 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17003 fi
17004 fi
17005 rm -f conftest.val
17006 else
17007   ac_cv_sizeof_int_p=0
17008 fi
17009 fi
17010 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
17011 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6
17012 cat >>confdefs.h <<_ACEOF
17013 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
17014 _ACEOF
17015
17016
17017
17018 # Check for sys/types.h types
17019 echo "$as_me:$LINENO: checking for u_int type" >&5
17020 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6
17021 if test "${ac_cv_have_u_int+set}" = set; then
17022   echo $ECHO_N "(cached) $ECHO_C" >&6
17023 else
17024
17025     cat >conftest.$ac_ext <<_ACEOF
17026 /* confdefs.h.  */
17027 _ACEOF
17028 cat confdefs.h >>conftest.$ac_ext
17029 cat >>conftest.$ac_ext <<_ACEOF
17030 /* end confdefs.h.  */
17031  #include <sys/types.h>
17032 int
17033 main ()
17034 {
17035  u_int a; a = 1;
17036   ;
17037   return 0;
17038 }
17039 _ACEOF
17040 rm -f conftest.$ac_objext
17041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17042   (eval $ac_compile) 2>conftest.er1
17043   ac_status=$?
17044   grep -v '^ *+' conftest.er1 >conftest.err
17045   rm -f conftest.er1
17046   cat conftest.err >&5
17047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17048   (exit $ac_status); } &&
17049          { ac_try='test -z "$ac_c_werror_flag"
17050                          || test ! -s conftest.err'
17051   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17052   (eval $ac_try) 2>&5
17053   ac_status=$?
17054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17055   (exit $ac_status); }; } &&
17056          { ac_try='test -s conftest.$ac_objext'
17057   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17058   (eval $ac_try) 2>&5
17059   ac_status=$?
17060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17061   (exit $ac_status); }; }; then
17062    ac_cv_have_u_int="yes"
17063 else
17064   echo "$as_me: failed program was:" >&5
17065 sed 's/^/| /' conftest.$ac_ext >&5
17066
17067  ac_cv_have_u_int="no"
17068
17069 fi
17070 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17071
17072 fi
17073 echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
17074 echo "${ECHO_T}$ac_cv_have_u_int" >&6
17075 if test "x$ac_cv_have_u_int" = "xyes" ; then
17076    cat >>confdefs.h <<\_ACEOF
17077 #define HAVE_U_INT 1
17078 _ACEOF
17079
17080    have_u_int=1
17081 fi
17082
17083 echo "$as_me:$LINENO: checking for intmax_t type" >&5
17084 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6
17085 if test "${ac_cv_have_intmax_t+set}" = set; then
17086   echo $ECHO_N "(cached) $ECHO_C" >&6
17087 else
17088
17089    cat >conftest.$ac_ext <<_ACEOF
17090 /* confdefs.h.  */
17091 _ACEOF
17092 cat confdefs.h >>conftest.$ac_ext
17093 cat >>conftest.$ac_ext <<_ACEOF
17094 /* end confdefs.h.  */
17095  #include <sys/types.h>
17096 int
17097 main ()
17098 {
17099  intmax_t a; a = 1;
17100   ;
17101   return 0;
17102 }
17103 _ACEOF
17104 rm -f conftest.$ac_objext
17105 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17106   (eval $ac_compile) 2>conftest.er1
17107   ac_status=$?
17108   grep -v '^ *+' conftest.er1 >conftest.err
17109   rm -f conftest.er1
17110   cat conftest.err >&5
17111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17112   (exit $ac_status); } &&
17113          { ac_try='test -z "$ac_c_werror_flag"
17114                          || test ! -s conftest.err'
17115   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17116   (eval $ac_try) 2>&5
17117   ac_status=$?
17118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17119   (exit $ac_status); }; } &&
17120          { ac_try='test -s conftest.$ac_objext'
17121   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17122   (eval $ac_try) 2>&5
17123   ac_status=$?
17124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17125   (exit $ac_status); }; }; then
17126    ac_cv_have_intmax_t="yes"
17127 else
17128   echo "$as_me: failed program was:" >&5
17129 sed 's/^/| /' conftest.$ac_ext >&5
17130
17131
17132          cat >conftest.$ac_ext <<_ACEOF
17133 /* confdefs.h.  */
17134 _ACEOF
17135 cat confdefs.h >>conftest.$ac_ext
17136 cat >>conftest.$ac_ext <<_ACEOF
17137 /* end confdefs.h.  */
17138  #include <stdint.h>
17139 int
17140 main ()
17141 {
17142  intmax_t a; a = 1;
17143   ;
17144   return 0;
17145 }
17146 _ACEOF
17147 rm -f conftest.$ac_objext
17148 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17149   (eval $ac_compile) 2>conftest.er1
17150   ac_status=$?
17151   grep -v '^ *+' conftest.er1 >conftest.err
17152   rm -f conftest.er1
17153   cat conftest.err >&5
17154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17155   (exit $ac_status); } &&
17156          { ac_try='test -z "$ac_c_werror_flag"
17157                          || test ! -s conftest.err'
17158   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17159   (eval $ac_try) 2>&5
17160   ac_status=$?
17161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17162   (exit $ac_status); }; } &&
17163          { ac_try='test -s conftest.$ac_objext'
17164   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17165   (eval $ac_try) 2>&5
17166   ac_status=$?
17167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17168   (exit $ac_status); }; }; then
17169    ac_cv_have_intmax_t="yes"
17170 else
17171   echo "$as_me: failed program was:" >&5
17172 sed 's/^/| /' conftest.$ac_ext >&5
17173
17174  ac_cv_have_intmax_t="no"
17175
17176 fi
17177 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17178
17179
17180 fi
17181 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17182
17183
17184 fi
17185 echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
17186 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6
17187 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
17188    cat >>confdefs.h <<\_ACEOF
17189 #define HAVE_INTMAX_T 1
17190 _ACEOF
17191
17192    have_intmax_t=1
17193 fi
17194
17195
17196 echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
17197 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6
17198 if test "${ac_cv_have_u_intmax_t+set}" = set; then
17199   echo $ECHO_N "(cached) $ECHO_C" >&6
17200 else
17201
17202    cat >conftest.$ac_ext <<_ACEOF
17203 /* confdefs.h.  */
17204 _ACEOF
17205 cat confdefs.h >>conftest.$ac_ext
17206 cat >>conftest.$ac_ext <<_ACEOF
17207 /* end confdefs.h.  */
17208  #include <sys/types.h>
17209 int
17210 main ()
17211 {
17212  u_intmax_t a; a = 1;
17213   ;
17214   return 0;
17215 }
17216 _ACEOF
17217 rm -f conftest.$ac_objext
17218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17219   (eval $ac_compile) 2>conftest.er1
17220   ac_status=$?
17221   grep -v '^ *+' conftest.er1 >conftest.err
17222   rm -f conftest.er1
17223   cat conftest.err >&5
17224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17225   (exit $ac_status); } &&
17226          { ac_try='test -z "$ac_c_werror_flag"
17227                          || test ! -s conftest.err'
17228   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17229   (eval $ac_try) 2>&5
17230   ac_status=$?
17231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17232   (exit $ac_status); }; } &&
17233          { ac_try='test -s conftest.$ac_objext'
17234   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17235   (eval $ac_try) 2>&5
17236   ac_status=$?
17237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17238   (exit $ac_status); }; }; then
17239    ac_cv_have_u_intmax_t="yes"
17240 else
17241   echo "$as_me: failed program was:" >&5
17242 sed 's/^/| /' conftest.$ac_ext >&5
17243
17244
17245          cat >conftest.$ac_ext <<_ACEOF
17246 /* confdefs.h.  */
17247 _ACEOF
17248 cat confdefs.h >>conftest.$ac_ext
17249 cat >>conftest.$ac_ext <<_ACEOF
17250 /* end confdefs.h.  */
17251  #include <stdint.h>
17252 int
17253 main ()
17254 {
17255  u_intmax_t a; a = 1;
17256   ;
17257   return 0;
17258 }
17259 _ACEOF
17260 rm -f conftest.$ac_objext
17261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17262   (eval $ac_compile) 2>conftest.er1
17263   ac_status=$?
17264   grep -v '^ *+' conftest.er1 >conftest.err
17265   rm -f conftest.er1
17266   cat conftest.err >&5
17267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17268   (exit $ac_status); } &&
17269          { ac_try='test -z "$ac_c_werror_flag"
17270                          || test ! -s conftest.err'
17271   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17272   (eval $ac_try) 2>&5
17273   ac_status=$?
17274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17275   (exit $ac_status); }; } &&
17276          { ac_try='test -s conftest.$ac_objext'
17277   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17278   (eval $ac_try) 2>&5
17279   ac_status=$?
17280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17281   (exit $ac_status); }; }; then
17282    ac_cv_have_u_intmax_t="yes"
17283 else
17284   echo "$as_me: failed program was:" >&5
17285 sed 's/^/| /' conftest.$ac_ext >&5
17286
17287  ac_cv_have_u_intmax_t="no"
17288
17289 fi
17290 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17291
17292
17293 fi
17294 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17295
17296 fi
17297 echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
17298 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6
17299 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
17300    cat >>confdefs.h <<\_ACEOF
17301 #define HAVE_U_INTMAX_T 1
17302 _ACEOF
17303
17304    have_u_intmax_t=1
17305 fi
17306
17307
17308 echo "$as_me:$LINENO: checking for intXX_t types" >&5
17309 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6
17310 if test "${ac_cv_have_intxx_t+set}" = set; then
17311   echo $ECHO_N "(cached) $ECHO_C" >&6
17312 else
17313
17314    cat >conftest.$ac_ext <<_ACEOF
17315 /* confdefs.h.  */
17316 _ACEOF
17317 cat confdefs.h >>conftest.$ac_ext
17318 cat >>conftest.$ac_ext <<_ACEOF
17319 /* end confdefs.h.  */
17320  #include <sys/types.h>
17321 int
17322 main ()
17323 {
17324  int8_t a; int16_t b; int32_t c; a = b = c = 1;
17325   ;
17326   return 0;
17327 }
17328 _ACEOF
17329 rm -f conftest.$ac_objext
17330 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17331   (eval $ac_compile) 2>conftest.er1
17332   ac_status=$?
17333   grep -v '^ *+' conftest.er1 >conftest.err
17334   rm -f conftest.er1
17335   cat conftest.err >&5
17336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17337   (exit $ac_status); } &&
17338          { ac_try='test -z "$ac_c_werror_flag"
17339                          || test ! -s conftest.err'
17340   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17341   (eval $ac_try) 2>&5
17342   ac_status=$?
17343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17344   (exit $ac_status); }; } &&
17345          { ac_try='test -s conftest.$ac_objext'
17346   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17347   (eval $ac_try) 2>&5
17348   ac_status=$?
17349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17350   (exit $ac_status); }; }; then
17351    ac_cv_have_intxx_t="yes"
17352 else
17353   echo "$as_me: failed program was:" >&5
17354 sed 's/^/| /' conftest.$ac_ext >&5
17355
17356  ac_cv_have_intxx_t="no"
17357
17358 fi
17359 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17360
17361 fi
17362 echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
17363 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6
17364 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
17365    cat >>confdefs.h <<\_ACEOF
17366 #define HAVE_INTXX_T 1
17367 _ACEOF
17368
17369    have_intxx_t=1
17370 fi
17371
17372 echo "$as_me:$LINENO: checking for int64_t type" >&5
17373 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6
17374 if test "${ac_cv_have_int64_t+set}" = set; then
17375   echo $ECHO_N "(cached) $ECHO_C" >&6
17376 else
17377
17378    cat >conftest.$ac_ext <<_ACEOF
17379 /* confdefs.h.  */
17380 _ACEOF
17381 cat confdefs.h >>conftest.$ac_ext
17382 cat >>conftest.$ac_ext <<_ACEOF
17383 /* end confdefs.h.  */
17384  #include <sys/types.h>
17385 int
17386 main ()
17387 {
17388  int64_t a; a = 1;
17389   ;
17390   return 0;
17391 }
17392 _ACEOF
17393 rm -f conftest.$ac_objext
17394 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17395   (eval $ac_compile) 2>conftest.er1
17396   ac_status=$?
17397   grep -v '^ *+' conftest.er1 >conftest.err
17398   rm -f conftest.er1
17399   cat conftest.err >&5
17400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17401   (exit $ac_status); } &&
17402          { ac_try='test -z "$ac_c_werror_flag"
17403                          || test ! -s conftest.err'
17404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17405   (eval $ac_try) 2>&5
17406   ac_status=$?
17407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17408   (exit $ac_status); }; } &&
17409          { ac_try='test -s conftest.$ac_objext'
17410   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17411   (eval $ac_try) 2>&5
17412   ac_status=$?
17413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17414   (exit $ac_status); }; }; then
17415    ac_cv_have_int64_t="yes"
17416 else
17417   echo "$as_me: failed program was:" >&5
17418 sed 's/^/| /' conftest.$ac_ext >&5
17419
17420  ac_cv_have_int64_t="no"
17421
17422 fi
17423 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17424
17425 fi
17426 echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
17427 echo "${ECHO_T}$ac_cv_have_int64_t" >&6
17428 if test "x$ac_cv_have_int64_t" = "xyes" ; then
17429    cat >>confdefs.h <<\_ACEOF
17430 #define HAVE_INT64_T 1
17431 _ACEOF
17432
17433    have_int64_t=1
17434 fi
17435
17436 echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
17437 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6
17438 if test "${ac_cv_have_u_intxx_t+set}" = set; then
17439   echo $ECHO_N "(cached) $ECHO_C" >&6
17440 else
17441
17442    cat >conftest.$ac_ext <<_ACEOF
17443 /* confdefs.h.  */
17444 _ACEOF
17445 cat confdefs.h >>conftest.$ac_ext
17446 cat >>conftest.$ac_ext <<_ACEOF
17447 /* end confdefs.h.  */
17448  #include <sys/types.h>
17449 int
17450 main ()
17451 {
17452  u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
17453   ;
17454   return 0;
17455 }
17456 _ACEOF
17457 rm -f conftest.$ac_objext
17458 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17459   (eval $ac_compile) 2>conftest.er1
17460   ac_status=$?
17461   grep -v '^ *+' conftest.er1 >conftest.err
17462   rm -f conftest.er1
17463   cat conftest.err >&5
17464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17465   (exit $ac_status); } &&
17466          { ac_try='test -z "$ac_c_werror_flag"
17467                          || test ! -s conftest.err'
17468   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17469   (eval $ac_try) 2>&5
17470   ac_status=$?
17471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17472   (exit $ac_status); }; } &&
17473          { ac_try='test -s conftest.$ac_objext'
17474   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17475   (eval $ac_try) 2>&5
17476   ac_status=$?
17477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17478   (exit $ac_status); }; }; then
17479    ac_cv_have_u_intxx_t="yes"
17480 else
17481   echo "$as_me: failed program was:" >&5
17482 sed 's/^/| /' conftest.$ac_ext >&5
17483
17484  ac_cv_have_u_intxx_t="no"
17485
17486 fi
17487 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17488
17489 fi
17490 echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
17491 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6
17492 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
17493    cat >>confdefs.h <<\_ACEOF
17494 #define HAVE_U_INTXX_T 1
17495 _ACEOF
17496
17497    have_u_intxx_t=1
17498 fi
17499
17500 echo "$as_me:$LINENO: checking for u_int64_t types" >&5
17501 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6
17502 if test "${ac_cv_have_u_int64_t+set}" = set; then
17503   echo $ECHO_N "(cached) $ECHO_C" >&6
17504 else
17505
17506    cat >conftest.$ac_ext <<_ACEOF
17507 /* confdefs.h.  */
17508 _ACEOF
17509 cat confdefs.h >>conftest.$ac_ext
17510 cat >>conftest.$ac_ext <<_ACEOF
17511 /* end confdefs.h.  */
17512  #include <sys/types.h>
17513 int
17514 main ()
17515 {
17516  u_int64_t a; a = 1;
17517   ;
17518   return 0;
17519 }
17520 _ACEOF
17521 rm -f conftest.$ac_objext
17522 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17523   (eval $ac_compile) 2>conftest.er1
17524   ac_status=$?
17525   grep -v '^ *+' conftest.er1 >conftest.err
17526   rm -f conftest.er1
17527   cat conftest.err >&5
17528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17529   (exit $ac_status); } &&
17530          { ac_try='test -z "$ac_c_werror_flag"
17531                          || test ! -s conftest.err'
17532   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17533   (eval $ac_try) 2>&5
17534   ac_status=$?
17535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17536   (exit $ac_status); }; } &&
17537          { ac_try='test -s conftest.$ac_objext'
17538   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17539   (eval $ac_try) 2>&5
17540   ac_status=$?
17541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17542   (exit $ac_status); }; }; then
17543    ac_cv_have_u_int64_t="yes"
17544 else
17545   echo "$as_me: failed program was:" >&5
17546 sed 's/^/| /' conftest.$ac_ext >&5
17547
17548  ac_cv_have_u_int64_t="no"
17549
17550 fi
17551 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17552
17553 fi
17554 echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
17555 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6
17556 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
17557    cat >>confdefs.h <<\_ACEOF
17558 #define HAVE_U_INT64_T 1
17559 _ACEOF
17560
17561    have_u_int64_t=1
17562 fi
17563
17564 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
17565            test "x$ac_cv_header_sys_bitypes_h" = "xyes")
17566 then
17567    echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
17568 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6
17569    cat >conftest.$ac_ext <<_ACEOF
17570 /* confdefs.h.  */
17571 _ACEOF
17572 cat confdefs.h >>conftest.$ac_ext
17573 cat >>conftest.$ac_ext <<_ACEOF
17574 /* end confdefs.h.  */
17575  #include <sys/bitypes.h>
17576 int
17577 main ()
17578 {
17579  int8_t a; int16_t b; int32_t c;
17580         u_int8_t e; u_int16_t f; u_int32_t g;
17581         a = b = c = e = f = g = 1;
17582   ;
17583   return 0;
17584 }
17585 _ACEOF
17586 rm -f conftest.$ac_objext
17587 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17588   (eval $ac_compile) 2>conftest.er1
17589   ac_status=$?
17590   grep -v '^ *+' conftest.er1 >conftest.err
17591   rm -f conftest.er1
17592   cat conftest.err >&5
17593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17594   (exit $ac_status); } &&
17595          { ac_try='test -z "$ac_c_werror_flag"
17596                          || test ! -s conftest.err'
17597   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17598   (eval $ac_try) 2>&5
17599   ac_status=$?
17600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17601   (exit $ac_status); }; } &&
17602          { ac_try='test -s conftest.$ac_objext'
17603   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17604   (eval $ac_try) 2>&5
17605   ac_status=$?
17606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17607   (exit $ac_status); }; }; then
17608    cat >>confdefs.h <<\_ACEOF
17609 #define HAVE_U_INTXX_T 1
17610 _ACEOF
17611
17612         cat >>confdefs.h <<\_ACEOF
17613 #define HAVE_INTXX_T 1
17614 _ACEOF
17615
17616         cat >>confdefs.h <<\_ACEOF
17617 #define HAVE_SYS_BITYPES_H 1
17618 _ACEOF
17619
17620         echo "$as_me:$LINENO: result: yes" >&5
17621 echo "${ECHO_T}yes" >&6
17622 else
17623   echo "$as_me: failed program was:" >&5
17624 sed 's/^/| /' conftest.$ac_ext >&5
17625
17626  echo "$as_me:$LINENO: result: no" >&5
17627 echo "${ECHO_T}no" >&6
17628
17629 fi
17630 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17631 fi
17632
17633 if test -z "$have_u_intxx_t" ; then
17634    echo "$as_me:$LINENO: checking for uintXX_t types" >&5
17635 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6
17636 if test "${ac_cv_have_uintxx_t+set}" = set; then
17637   echo $ECHO_N "(cached) $ECHO_C" >&6
17638 else
17639
17640       cat >conftest.$ac_ext <<_ACEOF
17641 /* confdefs.h.  */
17642 _ACEOF
17643 cat confdefs.h >>conftest.$ac_ext
17644 cat >>conftest.$ac_ext <<_ACEOF
17645 /* end confdefs.h.  */
17646  #include <sys/types.h>
17647 int
17648 main ()
17649 {
17650  uint8_t a; uint16_t b;
17651            uint32_t c; a = b = c = 1;
17652   ;
17653   return 0;
17654 }
17655 _ACEOF
17656 rm -f conftest.$ac_objext
17657 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17658   (eval $ac_compile) 2>conftest.er1
17659   ac_status=$?
17660   grep -v '^ *+' conftest.er1 >conftest.err
17661   rm -f conftest.er1
17662   cat conftest.err >&5
17663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17664   (exit $ac_status); } &&
17665          { ac_try='test -z "$ac_c_werror_flag"
17666                          || test ! -s conftest.err'
17667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17668   (eval $ac_try) 2>&5
17669   ac_status=$?
17670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17671   (exit $ac_status); }; } &&
17672          { ac_try='test -s conftest.$ac_objext'
17673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17674   (eval $ac_try) 2>&5
17675   ac_status=$?
17676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17677   (exit $ac_status); }; }; then
17678    ac_cv_have_uintxx_t="yes"
17679 else
17680   echo "$as_me: failed program was:" >&5
17681 sed 's/^/| /' conftest.$ac_ext >&5
17682
17683  ac_cv_have_uintxx_t="no"
17684
17685 fi
17686 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17687
17688 fi
17689 echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
17690 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6
17691    if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
17692       cat >>confdefs.h <<\_ACEOF
17693 #define HAVE_UINTXX_T 1
17694 _ACEOF
17695
17696    fi
17697 fi
17698
17699 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
17700           test "x$ac_cv_header_sys_bitypes_h" = "xyes")
17701 then
17702    echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
17703 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6
17704    cat >conftest.$ac_ext <<_ACEOF
17705 /* confdefs.h.  */
17706 _ACEOF
17707 cat confdefs.h >>conftest.$ac_ext
17708 cat >>conftest.$ac_ext <<_ACEOF
17709 /* end confdefs.h.  */
17710  #include <sys/bitypes.h>
17711 int
17712 main ()
17713 {
17714  int64_t a; u_int64_t b;
17715        a = b = 1;
17716   ;
17717   return 0;
17718 }
17719 _ACEOF
17720 rm -f conftest.$ac_objext
17721 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17722   (eval $ac_compile) 2>conftest.er1
17723   ac_status=$?
17724   grep -v '^ *+' conftest.er1 >conftest.err
17725   rm -f conftest.er1
17726   cat conftest.err >&5
17727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17728   (exit $ac_status); } &&
17729          { ac_try='test -z "$ac_c_werror_flag"
17730                          || test ! -s conftest.err'
17731   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17732   (eval $ac_try) 2>&5
17733   ac_status=$?
17734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17735   (exit $ac_status); }; } &&
17736          { ac_try='test -s conftest.$ac_objext'
17737   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17738   (eval $ac_try) 2>&5
17739   ac_status=$?
17740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17741   (exit $ac_status); }; }; then
17742    cat >>confdefs.h <<\_ACEOF
17743 #define HAVE_U_INT64_T 1
17744 _ACEOF
17745
17746        cat >>confdefs.h <<\_ACEOF
17747 #define HAVE_INT64_T 1
17748 _ACEOF
17749
17750        echo "$as_me:$LINENO: result: yes" >&5
17751 echo "${ECHO_T}yes" >&6
17752 else
17753   echo "$as_me: failed program was:" >&5
17754 sed 's/^/| /' conftest.$ac_ext >&5
17755
17756  echo "$as_me:$LINENO: result: no" >&5
17757 echo "${ECHO_T}no" >&6
17758
17759 fi
17760 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17761 fi
17762
17763 if (test -z "$have_uintxx_t" && \
17764           test "x$ac_cv_header_sys_bitypes_h" = "xyes")
17765 then
17766    echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
17767 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6
17768    cat >conftest.$ac_ext <<_ACEOF
17769 /* confdefs.h.  */
17770 _ACEOF
17771 cat confdefs.h >>conftest.$ac_ext
17772 cat >>conftest.$ac_ext <<_ACEOF
17773 /* end confdefs.h.  */
17774  #include <sys/bitypes.h>
17775 int
17776 main ()
17777 {
17778  uint8_t a; uint16_t b;
17779           uint32_t c; a = b = c = 1;
17780   ;
17781   return 0;
17782 }
17783 _ACEOF
17784 rm -f conftest.$ac_objext
17785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17786   (eval $ac_compile) 2>conftest.er1
17787   ac_status=$?
17788   grep -v '^ *+' conftest.er1 >conftest.err
17789   rm -f conftest.er1
17790   cat conftest.err >&5
17791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17792   (exit $ac_status); } &&
17793          { ac_try='test -z "$ac_c_werror_flag"
17794                          || test ! -s conftest.err'
17795   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17796   (eval $ac_try) 2>&5
17797   ac_status=$?
17798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17799   (exit $ac_status); }; } &&
17800          { ac_try='test -s conftest.$ac_objext'
17801   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17802   (eval $ac_try) 2>&5
17803   ac_status=$?
17804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17805   (exit $ac_status); }; }; then
17806    cat >>confdefs.h <<\_ACEOF
17807 #define HAVE_UINTXX_T 1
17808 _ACEOF
17809
17810        echo "$as_me:$LINENO: result: yes" >&5
17811 echo "${ECHO_T}yes" >&6
17812 else
17813   echo "$as_me: failed program was:" >&5
17814 sed 's/^/| /' conftest.$ac_ext >&5
17815
17816  echo "$as_me:$LINENO: result: no" >&5
17817 echo "${ECHO_T}no" >&6
17818
17819 fi
17820 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17821
17822 fi
17823
17824
17825
17826
17827
17828
17829
17830
17831
17832
17833
17834
17835
17836
17837
17838
17839
17840 for ac_func in \
17841         fork \
17842         getcwd \
17843         gethostname \
17844         getpid \
17845         gettimeofday \
17846         setpgid \
17847         setpgrp \
17848         setsid \
17849         signal \
17850         strerror \
17851         strncmp \
17852         strncpy \
17853         vfprintf \
17854
17855 do
17856 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17857 echo "$as_me:$LINENO: checking for $ac_func" >&5
17858 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17859 if eval "test \"\${$as_ac_var+set}\" = set"; then
17860   echo $ECHO_N "(cached) $ECHO_C" >&6
17861 else
17862   cat >conftest.$ac_ext <<_ACEOF
17863 /* confdefs.h.  */
17864 _ACEOF
17865 cat confdefs.h >>conftest.$ac_ext
17866 cat >>conftest.$ac_ext <<_ACEOF
17867 /* end confdefs.h.  */
17868 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17869    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17870 #define $ac_func innocuous_$ac_func
17871
17872 /* System header to define __stub macros and hopefully few prototypes,
17873     which can conflict with char $ac_func (); below.
17874     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17875     <limits.h> exists even on freestanding compilers.  */
17876
17877 #ifdef __STDC__
17878 # include <limits.h>
17879 #else
17880 # include <assert.h>
17881 #endif
17882
17883 #undef $ac_func
17884
17885 /* Override any gcc2 internal prototype to avoid an error.  */
17886 #ifdef __cplusplus
17887 extern "C"
17888 {
17889 #endif
17890 /* We use char because int might match the return type of a gcc2
17891    builtin and then its argument prototype would still apply.  */
17892 char $ac_func ();
17893 /* The GNU C library defines this for functions which it implements
17894     to always fail with ENOSYS.  Some functions are actually named
17895     something starting with __ and the normal name is an alias.  */
17896 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17897 choke me
17898 #else
17899 char (*f) () = $ac_func;
17900 #endif
17901 #ifdef __cplusplus
17902 }
17903 #endif
17904
17905 int
17906 main ()
17907 {
17908 return f != $ac_func;
17909   ;
17910   return 0;
17911 }
17912 _ACEOF
17913 rm -f conftest.$ac_objext conftest$ac_exeext
17914 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17915   (eval $ac_link) 2>conftest.er1
17916   ac_status=$?
17917   grep -v '^ *+' conftest.er1 >conftest.err
17918   rm -f conftest.er1
17919   cat conftest.err >&5
17920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17921   (exit $ac_status); } &&
17922          { ac_try='test -z "$ac_c_werror_flag"
17923                          || test ! -s conftest.err'
17924   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17925   (eval $ac_try) 2>&5
17926   ac_status=$?
17927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17928   (exit $ac_status); }; } &&
17929          { ac_try='test -s conftest$ac_exeext'
17930   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17931   (eval $ac_try) 2>&5
17932   ac_status=$?
17933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17934   (exit $ac_status); }; }; then
17935   eval "$as_ac_var=yes"
17936 else
17937   echo "$as_me: failed program was:" >&5
17938 sed 's/^/| /' conftest.$ac_ext >&5
17939
17940 eval "$as_ac_var=no"
17941 fi
17942 rm -f conftest.err conftest.$ac_objext \
17943       conftest$ac_exeext conftest.$ac_ext
17944 fi
17945 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17946 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17947 if test `eval echo '${'$as_ac_var'}'` = yes; then
17948   cat >>confdefs.h <<_ACEOF
17949 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17950 _ACEOF
17951
17952 else
17953   echo 'configure: cannot find needed function.'; exit 1
17954
17955 fi
17956 done
17957
17958
17959
17960 for ac_func in fchdir
17961 do
17962 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17963 echo "$as_me:$LINENO: checking for $ac_func" >&5
17964 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17965 if eval "test \"\${$as_ac_var+set}\" = set"; then
17966   echo $ECHO_N "(cached) $ECHO_C" >&6
17967 else
17968   cat >conftest.$ac_ext <<_ACEOF
17969 /* confdefs.h.  */
17970 _ACEOF
17971 cat confdefs.h >>conftest.$ac_ext
17972 cat >>conftest.$ac_ext <<_ACEOF
17973 /* end confdefs.h.  */
17974 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17975    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17976 #define $ac_func innocuous_$ac_func
17977
17978 /* System header to define __stub macros and hopefully few prototypes,
17979     which can conflict with char $ac_func (); below.
17980     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17981     <limits.h> exists even on freestanding compilers.  */
17982
17983 #ifdef __STDC__
17984 # include <limits.h>
17985 #else
17986 # include <assert.h>
17987 #endif
17988
17989 #undef $ac_func
17990
17991 /* Override any gcc2 internal prototype to avoid an error.  */
17992 #ifdef __cplusplus
17993 extern "C"
17994 {
17995 #endif
17996 /* We use char because int might match the return type of a gcc2
17997    builtin and then its argument prototype would still apply.  */
17998 char $ac_func ();
17999 /* The GNU C library defines this for functions which it implements
18000     to always fail with ENOSYS.  Some functions are actually named
18001     something starting with __ and the normal name is an alias.  */
18002 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18003 choke me
18004 #else
18005 char (*f) () = $ac_func;
18006 #endif
18007 #ifdef __cplusplus
18008 }
18009 #endif
18010
18011 int
18012 main ()
18013 {
18014 return f != $ac_func;
18015   ;
18016   return 0;
18017 }
18018 _ACEOF
18019 rm -f conftest.$ac_objext conftest$ac_exeext
18020 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18021   (eval $ac_link) 2>conftest.er1
18022   ac_status=$?
18023   grep -v '^ *+' conftest.er1 >conftest.err
18024   rm -f conftest.er1
18025   cat conftest.err >&5
18026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18027   (exit $ac_status); } &&
18028          { ac_try='test -z "$ac_c_werror_flag"
18029                          || test ! -s conftest.err'
18030   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18031   (eval $ac_try) 2>&5
18032   ac_status=$?
18033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18034   (exit $ac_status); }; } &&
18035          { ac_try='test -s conftest$ac_exeext'
18036   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18037   (eval $ac_try) 2>&5
18038   ac_status=$?
18039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18040   (exit $ac_status); }; }; then
18041   eval "$as_ac_var=yes"
18042 else
18043   echo "$as_me: failed program was:" >&5
18044 sed 's/^/| /' conftest.$ac_ext >&5
18045
18046 eval "$as_ac_var=no"
18047 fi
18048 rm -f conftest.err conftest.$ac_objext \
18049       conftest$ac_exeext conftest.$ac_ext
18050 fi
18051 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18052 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18053 if test `eval echo '${'$as_ac_var'}'` = yes; then
18054   cat >>confdefs.h <<_ACEOF
18055 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18056 _ACEOF
18057  cat >>confdefs.h <<\_ACEOF
18058 #define HAVE_FCHDIR 1
18059 _ACEOF
18060
18061 fi
18062 done
18063
18064
18065 for ac_func in strtoll
18066 do
18067 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18068 echo "$as_me:$LINENO: checking for $ac_func" >&5
18069 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18070 if eval "test \"\${$as_ac_var+set}\" = set"; then
18071   echo $ECHO_N "(cached) $ECHO_C" >&6
18072 else
18073   cat >conftest.$ac_ext <<_ACEOF
18074 /* confdefs.h.  */
18075 _ACEOF
18076 cat confdefs.h >>conftest.$ac_ext
18077 cat >>conftest.$ac_ext <<_ACEOF
18078 /* end confdefs.h.  */
18079 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18080    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18081 #define $ac_func innocuous_$ac_func
18082
18083 /* System header to define __stub macros and hopefully few prototypes,
18084     which can conflict with char $ac_func (); below.
18085     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18086     <limits.h> exists even on freestanding compilers.  */
18087
18088 #ifdef __STDC__
18089 # include <limits.h>
18090 #else
18091 # include <assert.h>
18092 #endif
18093
18094 #undef $ac_func
18095
18096 /* Override any gcc2 internal prototype to avoid an error.  */
18097 #ifdef __cplusplus
18098 extern "C"
18099 {
18100 #endif
18101 /* We use char because int might match the return type of a gcc2
18102    builtin and then its argument prototype would still apply.  */
18103 char $ac_func ();
18104 /* The GNU C library defines this for functions which it implements
18105     to always fail with ENOSYS.  Some functions are actually named
18106     something starting with __ and the normal name is an alias.  */
18107 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18108 choke me
18109 #else
18110 char (*f) () = $ac_func;
18111 #endif
18112 #ifdef __cplusplus
18113 }
18114 #endif
18115
18116 int
18117 main ()
18118 {
18119 return f != $ac_func;
18120   ;
18121   return 0;
18122 }
18123 _ACEOF
18124 rm -f conftest.$ac_objext conftest$ac_exeext
18125 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18126   (eval $ac_link) 2>conftest.er1
18127   ac_status=$?
18128   grep -v '^ *+' conftest.er1 >conftest.err
18129   rm -f conftest.er1
18130   cat conftest.err >&5
18131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18132   (exit $ac_status); } &&
18133          { ac_try='test -z "$ac_c_werror_flag"
18134                          || test ! -s conftest.err'
18135   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18136   (eval $ac_try) 2>&5
18137   ac_status=$?
18138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18139   (exit $ac_status); }; } &&
18140          { ac_try='test -s conftest$ac_exeext'
18141   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18142   (eval $ac_try) 2>&5
18143   ac_status=$?
18144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18145   (exit $ac_status); }; }; then
18146   eval "$as_ac_var=yes"
18147 else
18148   echo "$as_me: failed program was:" >&5
18149 sed 's/^/| /' conftest.$ac_ext >&5
18150
18151 eval "$as_ac_var=no"
18152 fi
18153 rm -f conftest.err conftest.$ac_objext \
18154       conftest$ac_exeext conftest.$ac_ext
18155 fi
18156 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18157 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18158 if test `eval echo '${'$as_ac_var'}'` = yes; then
18159   cat >>confdefs.h <<_ACEOF
18160 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18161 _ACEOF
18162  cat >>confdefs.h <<\_ACEOF
18163 #define HAVE_STRTOLL 1
18164 _ACEOF
18165
18166 fi
18167 done
18168
18169
18170
18171 for ac_func in chflags
18172 do
18173 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18174 echo "$as_me:$LINENO: checking for $ac_func" >&5
18175 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18176 if eval "test \"\${$as_ac_var+set}\" = set"; then
18177   echo $ECHO_N "(cached) $ECHO_C" >&6
18178 else
18179   cat >conftest.$ac_ext <<_ACEOF
18180 /* confdefs.h.  */
18181 _ACEOF
18182 cat confdefs.h >>conftest.$ac_ext
18183 cat >>conftest.$ac_ext <<_ACEOF
18184 /* end confdefs.h.  */
18185 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18186    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18187 #define $ac_func innocuous_$ac_func
18188
18189 /* System header to define __stub macros and hopefully few prototypes,
18190     which can conflict with char $ac_func (); below.
18191     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18192     <limits.h> exists even on freestanding compilers.  */
18193
18194 #ifdef __STDC__
18195 # include <limits.h>
18196 #else
18197 # include <assert.h>
18198 #endif
18199
18200 #undef $ac_func
18201
18202 /* Override any gcc2 internal prototype to avoid an error.  */
18203 #ifdef __cplusplus
18204 extern "C"
18205 {
18206 #endif
18207 /* We use char because int might match the return type of a gcc2
18208    builtin and then its argument prototype would still apply.  */
18209 char $ac_func ();
18210 /* The GNU C library defines this for functions which it implements
18211     to always fail with ENOSYS.  Some functions are actually named
18212     something starting with __ and the normal name is an alias.  */
18213 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18214 choke me
18215 #else
18216 char (*f) () = $ac_func;
18217 #endif
18218 #ifdef __cplusplus
18219 }
18220 #endif
18221
18222 int
18223 main ()
18224 {
18225 return f != $ac_func;
18226   ;
18227   return 0;
18228 }
18229 _ACEOF
18230 rm -f conftest.$ac_objext conftest$ac_exeext
18231 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18232   (eval $ac_link) 2>conftest.er1
18233   ac_status=$?
18234   grep -v '^ *+' conftest.er1 >conftest.err
18235   rm -f conftest.er1
18236   cat conftest.err >&5
18237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18238   (exit $ac_status); } &&
18239          { ac_try='test -z "$ac_c_werror_flag"
18240                          || test ! -s conftest.err'
18241   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18242   (eval $ac_try) 2>&5
18243   ac_status=$?
18244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18245   (exit $ac_status); }; } &&
18246          { ac_try='test -s conftest$ac_exeext'
18247   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18248   (eval $ac_try) 2>&5
18249   ac_status=$?
18250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18251   (exit $ac_status); }; }; then
18252   eval "$as_ac_var=yes"
18253 else
18254   echo "$as_me: failed program was:" >&5
18255 sed 's/^/| /' conftest.$ac_ext >&5
18256
18257 eval "$as_ac_var=no"
18258 fi
18259 rm -f conftest.err conftest.$ac_objext \
18260       conftest$ac_exeext conftest.$ac_ext
18261 fi
18262 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18263 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18264 if test `eval echo '${'$as_ac_var'}'` = yes; then
18265   cat >>confdefs.h <<_ACEOF
18266 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18267 _ACEOF
18268
18269 fi
18270 done
18271
18272
18273
18274
18275
18276
18277 for ac_func in snprintf vsnprintf gethostid fseeko
18278 do
18279 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18280 echo "$as_me:$LINENO: checking for $ac_func" >&5
18281 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18282 if eval "test \"\${$as_ac_var+set}\" = set"; then
18283   echo $ECHO_N "(cached) $ECHO_C" >&6
18284 else
18285   cat >conftest.$ac_ext <<_ACEOF
18286 /* confdefs.h.  */
18287 _ACEOF
18288 cat confdefs.h >>conftest.$ac_ext
18289 cat >>conftest.$ac_ext <<_ACEOF
18290 /* end confdefs.h.  */
18291 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18292    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18293 #define $ac_func innocuous_$ac_func
18294
18295 /* System header to define __stub macros and hopefully few prototypes,
18296     which can conflict with char $ac_func (); below.
18297     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18298     <limits.h> exists even on freestanding compilers.  */
18299
18300 #ifdef __STDC__
18301 # include <limits.h>
18302 #else
18303 # include <assert.h>
18304 #endif
18305
18306 #undef $ac_func
18307
18308 /* Override any gcc2 internal prototype to avoid an error.  */
18309 #ifdef __cplusplus
18310 extern "C"
18311 {
18312 #endif
18313 /* We use char because int might match the return type of a gcc2
18314    builtin and then its argument prototype would still apply.  */
18315 char $ac_func ();
18316 /* The GNU C library defines this for functions which it implements
18317     to always fail with ENOSYS.  Some functions are actually named
18318     something starting with __ and the normal name is an alias.  */
18319 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18320 choke me
18321 #else
18322 char (*f) () = $ac_func;
18323 #endif
18324 #ifdef __cplusplus
18325 }
18326 #endif
18327
18328 int
18329 main ()
18330 {
18331 return f != $ac_func;
18332   ;
18333   return 0;
18334 }
18335 _ACEOF
18336 rm -f conftest.$ac_objext conftest$ac_exeext
18337 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18338   (eval $ac_link) 2>conftest.er1
18339   ac_status=$?
18340   grep -v '^ *+' conftest.er1 >conftest.err
18341   rm -f conftest.er1
18342   cat conftest.err >&5
18343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18344   (exit $ac_status); } &&
18345          { ac_try='test -z "$ac_c_werror_flag"
18346                          || test ! -s conftest.err'
18347   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18348   (eval $ac_try) 2>&5
18349   ac_status=$?
18350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18351   (exit $ac_status); }; } &&
18352          { ac_try='test -s conftest$ac_exeext'
18353   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18354   (eval $ac_try) 2>&5
18355   ac_status=$?
18356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18357   (exit $ac_status); }; }; then
18358   eval "$as_ac_var=yes"
18359 else
18360   echo "$as_me: failed program was:" >&5
18361 sed 's/^/| /' conftest.$ac_ext >&5
18362
18363 eval "$as_ac_var=no"
18364 fi
18365 rm -f conftest.err conftest.$ac_objext \
18366       conftest$ac_exeext conftest.$ac_ext
18367 fi
18368 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18369 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18370 if test `eval echo '${'$as_ac_var'}'` = yes; then
18371   cat >>confdefs.h <<_ACEOF
18372 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18373 _ACEOF
18374
18375 fi
18376 done
18377
18378
18379
18380
18381
18382
18383 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
18384 do
18385 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18386 echo "$as_me:$LINENO: checking for $ac_func" >&5
18387 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18388 if eval "test \"\${$as_ac_var+set}\" = set"; then
18389   echo $ECHO_N "(cached) $ECHO_C" >&6
18390 else
18391   cat >conftest.$ac_ext <<_ACEOF
18392 /* confdefs.h.  */
18393 _ACEOF
18394 cat confdefs.h >>conftest.$ac_ext
18395 cat >>conftest.$ac_ext <<_ACEOF
18396 /* end confdefs.h.  */
18397 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18398    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18399 #define $ac_func innocuous_$ac_func
18400
18401 /* System header to define __stub macros and hopefully few prototypes,
18402     which can conflict with char $ac_func (); below.
18403     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18404     <limits.h> exists even on freestanding compilers.  */
18405
18406 #ifdef __STDC__
18407 # include <limits.h>
18408 #else
18409 # include <assert.h>
18410 #endif
18411
18412 #undef $ac_func
18413
18414 /* Override any gcc2 internal prototype to avoid an error.  */
18415 #ifdef __cplusplus
18416 extern "C"
18417 {
18418 #endif
18419 /* We use char because int might match the return type of a gcc2
18420    builtin and then its argument prototype would still apply.  */
18421 char $ac_func ();
18422 /* The GNU C library defines this for functions which it implements
18423     to always fail with ENOSYS.  Some functions are actually named
18424     something starting with __ and the normal name is an alias.  */
18425 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18426 choke me
18427 #else
18428 char (*f) () = $ac_func;
18429 #endif
18430 #ifdef __cplusplus
18431 }
18432 #endif
18433
18434 int
18435 main ()
18436 {
18437 return f != $ac_func;
18438   ;
18439   return 0;
18440 }
18441 _ACEOF
18442 rm -f conftest.$ac_objext conftest$ac_exeext
18443 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18444   (eval $ac_link) 2>conftest.er1
18445   ac_status=$?
18446   grep -v '^ *+' conftest.er1 >conftest.err
18447   rm -f conftest.er1
18448   cat conftest.err >&5
18449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18450   (exit $ac_status); } &&
18451          { ac_try='test -z "$ac_c_werror_flag"
18452                          || test ! -s conftest.err'
18453   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18454   (eval $ac_try) 2>&5
18455   ac_status=$?
18456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18457   (exit $ac_status); }; } &&
18458          { ac_try='test -s conftest$ac_exeext'
18459   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18460   (eval $ac_try) 2>&5
18461   ac_status=$?
18462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18463   (exit $ac_status); }; }; then
18464   eval "$as_ac_var=yes"
18465 else
18466   echo "$as_me: failed program was:" >&5
18467 sed 's/^/| /' conftest.$ac_ext >&5
18468
18469 eval "$as_ac_var=no"
18470 fi
18471 rm -f conftest.err conftest.$ac_objext \
18472       conftest$ac_exeext conftest.$ac_ext
18473 fi
18474 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18475 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18476 if test `eval echo '${'$as_ac_var'}'` = yes; then
18477   cat >>confdefs.h <<_ACEOF
18478 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18479 _ACEOF
18480
18481 fi
18482 done
18483
18484
18485 # If resolver functions are not in libc check for -lnsl or -lresolv.
18486 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
18487 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
18488 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
18489   echo $ECHO_N "(cached) $ECHO_C" >&6
18490 else
18491   cat >conftest.$ac_ext <<_ACEOF
18492 /* confdefs.h.  */
18493 _ACEOF
18494 cat confdefs.h >>conftest.$ac_ext
18495 cat >>conftest.$ac_ext <<_ACEOF
18496 /* end confdefs.h.  */
18497 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
18498    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18499 #define gethostbyname_r innocuous_gethostbyname_r
18500
18501 /* System header to define __stub macros and hopefully few prototypes,
18502     which can conflict with char gethostbyname_r (); below.
18503     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18504     <limits.h> exists even on freestanding compilers.  */
18505
18506 #ifdef __STDC__
18507 # include <limits.h>
18508 #else
18509 # include <assert.h>
18510 #endif
18511
18512 #undef gethostbyname_r
18513
18514 /* Override any gcc2 internal prototype to avoid an error.  */
18515 #ifdef __cplusplus
18516 extern "C"
18517 {
18518 #endif
18519 /* We use char because int might match the return type of a gcc2
18520    builtin and then its argument prototype would still apply.  */
18521 char gethostbyname_r ();
18522 /* The GNU C library defines this for functions which it implements
18523     to always fail with ENOSYS.  Some functions are actually named
18524     something starting with __ and the normal name is an alias.  */
18525 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
18526 choke me
18527 #else
18528 char (*f) () = gethostbyname_r;
18529 #endif
18530 #ifdef __cplusplus
18531 }
18532 #endif
18533
18534 int
18535 main ()
18536 {
18537 return f != gethostbyname_r;
18538   ;
18539   return 0;
18540 }
18541 _ACEOF
18542 rm -f conftest.$ac_objext conftest$ac_exeext
18543 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18544   (eval $ac_link) 2>conftest.er1
18545   ac_status=$?
18546   grep -v '^ *+' conftest.er1 >conftest.err
18547   rm -f conftest.er1
18548   cat conftest.err >&5
18549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18550   (exit $ac_status); } &&
18551          { ac_try='test -z "$ac_c_werror_flag"
18552                          || test ! -s conftest.err'
18553   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18554   (eval $ac_try) 2>&5
18555   ac_status=$?
18556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18557   (exit $ac_status); }; } &&
18558          { ac_try='test -s conftest$ac_exeext'
18559   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18560   (eval $ac_try) 2>&5
18561   ac_status=$?
18562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18563   (exit $ac_status); }; }; then
18564   ac_cv_func_gethostbyname_r=yes
18565 else
18566   echo "$as_me: failed program was:" >&5
18567 sed 's/^/| /' conftest.$ac_ext >&5
18568
18569 ac_cv_func_gethostbyname_r=no
18570 fi
18571 rm -f conftest.err conftest.$ac_objext \
18572       conftest$ac_exeext conftest.$ac_ext
18573 fi
18574 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
18575 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
18576 if test $ac_cv_func_gethostbyname_r = yes; then
18577   echo "$as_me:$LINENO: result: using libc's resolver" >&5
18578 echo "${ECHO_T}using libc's resolver" >&6
18579 else
18580
18581 echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
18582 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6
18583 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
18584   echo $ECHO_N "(cached) $ECHO_C" >&6
18585 else
18586   ac_check_lib_save_LIBS=$LIBS
18587 LIBS="-lnsl  $LIBS"
18588 cat >conftest.$ac_ext <<_ACEOF
18589 /* confdefs.h.  */
18590 _ACEOF
18591 cat confdefs.h >>conftest.$ac_ext
18592 cat >>conftest.$ac_ext <<_ACEOF
18593 /* end confdefs.h.  */
18594
18595 /* Override any gcc2 internal prototype to avoid an error.  */
18596 #ifdef __cplusplus
18597 extern "C"
18598 #endif
18599 /* We use char because int might match the return type of a gcc2
18600    builtin and then its argument prototype would still apply.  */
18601 char gethostbyname_r ();
18602 int
18603 main ()
18604 {
18605 gethostbyname_r ();
18606   ;
18607   return 0;
18608 }
18609 _ACEOF
18610 rm -f conftest.$ac_objext conftest$ac_exeext
18611 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18612   (eval $ac_link) 2>conftest.er1
18613   ac_status=$?
18614   grep -v '^ *+' conftest.er1 >conftest.err
18615   rm -f conftest.er1
18616   cat conftest.err >&5
18617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18618   (exit $ac_status); } &&
18619          { ac_try='test -z "$ac_c_werror_flag"
18620                          || test ! -s conftest.err'
18621   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18622   (eval $ac_try) 2>&5
18623   ac_status=$?
18624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18625   (exit $ac_status); }; } &&
18626          { ac_try='test -s conftest$ac_exeext'
18627   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18628   (eval $ac_try) 2>&5
18629   ac_status=$?
18630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18631   (exit $ac_status); }; }; then
18632   ac_cv_lib_nsl_gethostbyname_r=yes
18633 else
18634   echo "$as_me: failed program was:" >&5
18635 sed 's/^/| /' conftest.$ac_ext >&5
18636
18637 ac_cv_lib_nsl_gethostbyname_r=no
18638 fi
18639 rm -f conftest.err conftest.$ac_objext \
18640       conftest$ac_exeext conftest.$ac_ext
18641 LIBS=$ac_check_lib_save_LIBS
18642 fi
18643 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
18644 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6
18645 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
18646   cat >>confdefs.h <<_ACEOF
18647 #define HAVE_LIBNSL 1
18648 _ACEOF
18649
18650   LIBS="-lnsl $LIBS"
18651
18652 fi
18653
18654
18655 echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
18656 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6
18657 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
18658   echo $ECHO_N "(cached) $ECHO_C" >&6
18659 else
18660   ac_check_lib_save_LIBS=$LIBS
18661 LIBS="-lresolv  $LIBS"
18662 cat >conftest.$ac_ext <<_ACEOF
18663 /* confdefs.h.  */
18664 _ACEOF
18665 cat confdefs.h >>conftest.$ac_ext
18666 cat >>conftest.$ac_ext <<_ACEOF
18667 /* end confdefs.h.  */
18668
18669 /* Override any gcc2 internal prototype to avoid an error.  */
18670 #ifdef __cplusplus
18671 extern "C"
18672 #endif
18673 /* We use char because int might match the return type of a gcc2
18674    builtin and then its argument prototype would still apply.  */
18675 char gethostbyname_r ();
18676 int
18677 main ()
18678 {
18679 gethostbyname_r ();
18680   ;
18681   return 0;
18682 }
18683 _ACEOF
18684 rm -f conftest.$ac_objext conftest$ac_exeext
18685 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18686   (eval $ac_link) 2>conftest.er1
18687   ac_status=$?
18688   grep -v '^ *+' conftest.er1 >conftest.err
18689   rm -f conftest.er1
18690   cat conftest.err >&5
18691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18692   (exit $ac_status); } &&
18693          { ac_try='test -z "$ac_c_werror_flag"
18694                          || test ! -s conftest.err'
18695   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18696   (eval $ac_try) 2>&5
18697   ac_status=$?
18698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18699   (exit $ac_status); }; } &&
18700          { ac_try='test -s conftest$ac_exeext'
18701   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18702   (eval $ac_try) 2>&5
18703   ac_status=$?
18704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18705   (exit $ac_status); }; }; then
18706   ac_cv_lib_resolv_gethostbyname_r=yes
18707 else
18708   echo "$as_me: failed program was:" >&5
18709 sed 's/^/| /' conftest.$ac_ext >&5
18710
18711 ac_cv_lib_resolv_gethostbyname_r=no
18712 fi
18713 rm -f conftest.err conftest.$ac_objext \
18714       conftest$ac_exeext conftest.$ac_ext
18715 LIBS=$ac_check_lib_save_LIBS
18716 fi
18717 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
18718 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6
18719 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
18720   cat >>confdefs.h <<_ACEOF
18721 #define HAVE_LIBRESOLV 1
18722 _ACEOF
18723
18724   LIBS="-lresolv $LIBS"
18725
18726 fi
18727
18728 fi
18729
18730
18731
18732
18733
18734 for ac_func in inet_pton
18735 do
18736 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18737 echo "$as_me:$LINENO: checking for $ac_func" >&5
18738 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18739 if eval "test \"\${$as_ac_var+set}\" = set"; then
18740   echo $ECHO_N "(cached) $ECHO_C" >&6
18741 else
18742   cat >conftest.$ac_ext <<_ACEOF
18743 /* confdefs.h.  */
18744 _ACEOF
18745 cat confdefs.h >>conftest.$ac_ext
18746 cat >>conftest.$ac_ext <<_ACEOF
18747 /* end confdefs.h.  */
18748 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18749    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18750 #define $ac_func innocuous_$ac_func
18751
18752 /* System header to define __stub macros and hopefully few prototypes,
18753     which can conflict with char $ac_func (); below.
18754     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18755     <limits.h> exists even on freestanding compilers.  */
18756
18757 #ifdef __STDC__
18758 # include <limits.h>
18759 #else
18760 # include <assert.h>
18761 #endif
18762
18763 #undef $ac_func
18764
18765 /* Override any gcc2 internal prototype to avoid an error.  */
18766 #ifdef __cplusplus
18767 extern "C"
18768 {
18769 #endif
18770 /* We use char because int might match the return type of a gcc2
18771    builtin and then its argument prototype would still apply.  */
18772 char $ac_func ();
18773 /* The GNU C library defines this for functions which it implements
18774     to always fail with ENOSYS.  Some functions are actually named
18775     something starting with __ and the normal name is an alias.  */
18776 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18777 choke me
18778 #else
18779 char (*f) () = $ac_func;
18780 #endif
18781 #ifdef __cplusplus
18782 }
18783 #endif
18784
18785 int
18786 main ()
18787 {
18788 return f != $ac_func;
18789   ;
18790   return 0;
18791 }
18792 _ACEOF
18793 rm -f conftest.$ac_objext conftest$ac_exeext
18794 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18795   (eval $ac_link) 2>conftest.er1
18796   ac_status=$?
18797   grep -v '^ *+' conftest.er1 >conftest.err
18798   rm -f conftest.er1
18799   cat conftest.err >&5
18800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18801   (exit $ac_status); } &&
18802          { ac_try='test -z "$ac_c_werror_flag"
18803                          || test ! -s conftest.err'
18804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18805   (eval $ac_try) 2>&5
18806   ac_status=$?
18807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18808   (exit $ac_status); }; } &&
18809          { ac_try='test -s conftest$ac_exeext'
18810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18811   (eval $ac_try) 2>&5
18812   ac_status=$?
18813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18814   (exit $ac_status); }; }; then
18815   eval "$as_ac_var=yes"
18816 else
18817   echo "$as_me: failed program was:" >&5
18818 sed 's/^/| /' conftest.$ac_ext >&5
18819
18820 eval "$as_ac_var=no"
18821 fi
18822 rm -f conftest.err conftest.$ac_objext \
18823       conftest$ac_exeext conftest.$ac_ext
18824 fi
18825 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18826 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18827 if test `eval echo '${'$as_ac_var'}'` = yes; then
18828   cat >>confdefs.h <<_ACEOF
18829 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18830 _ACEOF
18831  cat >>confdefs.h <<\_ACEOF
18832 #define HAVE_INET_PTON 1
18833 _ACEOF
18834
18835 fi
18836 done
18837
18838
18839 for ac_func in inet_ntop
18840 do
18841 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18842 echo "$as_me:$LINENO: checking for $ac_func" >&5
18843 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18844 if eval "test \"\${$as_ac_var+set}\" = set"; then
18845   echo $ECHO_N "(cached) $ECHO_C" >&6
18846 else
18847   cat >conftest.$ac_ext <<_ACEOF
18848 /* confdefs.h.  */
18849 _ACEOF
18850 cat confdefs.h >>conftest.$ac_ext
18851 cat >>conftest.$ac_ext <<_ACEOF
18852 /* end confdefs.h.  */
18853 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18854    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18855 #define $ac_func innocuous_$ac_func
18856
18857 /* System header to define __stub macros and hopefully few prototypes,
18858     which can conflict with char $ac_func (); below.
18859     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18860     <limits.h> exists even on freestanding compilers.  */
18861
18862 #ifdef __STDC__
18863 # include <limits.h>
18864 #else
18865 # include <assert.h>
18866 #endif
18867
18868 #undef $ac_func
18869
18870 /* Override any gcc2 internal prototype to avoid an error.  */
18871 #ifdef __cplusplus
18872 extern "C"
18873 {
18874 #endif
18875 /* We use char because int might match the return type of a gcc2
18876    builtin and then its argument prototype would still apply.  */
18877 char $ac_func ();
18878 /* The GNU C library defines this for functions which it implements
18879     to always fail with ENOSYS.  Some functions are actually named
18880     something starting with __ and the normal name is an alias.  */
18881 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18882 choke me
18883 #else
18884 char (*f) () = $ac_func;
18885 #endif
18886 #ifdef __cplusplus
18887 }
18888 #endif
18889
18890 int
18891 main ()
18892 {
18893 return f != $ac_func;
18894   ;
18895   return 0;
18896 }
18897 _ACEOF
18898 rm -f conftest.$ac_objext conftest$ac_exeext
18899 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18900   (eval $ac_link) 2>conftest.er1
18901   ac_status=$?
18902   grep -v '^ *+' conftest.er1 >conftest.err
18903   rm -f conftest.er1
18904   cat conftest.err >&5
18905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18906   (exit $ac_status); } &&
18907          { ac_try='test -z "$ac_c_werror_flag"
18908                          || test ! -s conftest.err'
18909   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18910   (eval $ac_try) 2>&5
18911   ac_status=$?
18912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18913   (exit $ac_status); }; } &&
18914          { ac_try='test -s conftest$ac_exeext'
18915   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18916   (eval $ac_try) 2>&5
18917   ac_status=$?
18918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18919   (exit $ac_status); }; }; then
18920   eval "$as_ac_var=yes"
18921 else
18922   echo "$as_me: failed program was:" >&5
18923 sed 's/^/| /' conftest.$ac_ext >&5
18924
18925 eval "$as_ac_var=no"
18926 fi
18927 rm -f conftest.err conftest.$ac_objext \
18928       conftest$ac_exeext conftest.$ac_ext
18929 fi
18930 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18931 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18932 if test `eval echo '${'$as_ac_var'}'` = yes; then
18933   cat >>confdefs.h <<_ACEOF
18934 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18935 _ACEOF
18936  cat >>confdefs.h <<\_ACEOF
18937 #define HAVE_INET_NTOP 1
18938 _ACEOF
18939
18940 fi
18941 done
18942
18943
18944 for ac_func in gethostbyname2
18945 do
18946 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18947 echo "$as_me:$LINENO: checking for $ac_func" >&5
18948 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18949 if eval "test \"\${$as_ac_var+set}\" = set"; then
18950   echo $ECHO_N "(cached) $ECHO_C" >&6
18951 else
18952   cat >conftest.$ac_ext <<_ACEOF
18953 /* confdefs.h.  */
18954 _ACEOF
18955 cat confdefs.h >>conftest.$ac_ext
18956 cat >>conftest.$ac_ext <<_ACEOF
18957 /* end confdefs.h.  */
18958 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18959    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18960 #define $ac_func innocuous_$ac_func
18961
18962 /* System header to define __stub macros and hopefully few prototypes,
18963     which can conflict with char $ac_func (); below.
18964     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18965     <limits.h> exists even on freestanding compilers.  */
18966
18967 #ifdef __STDC__
18968 # include <limits.h>
18969 #else
18970 # include <assert.h>
18971 #endif
18972
18973 #undef $ac_func
18974
18975 /* Override any gcc2 internal prototype to avoid an error.  */
18976 #ifdef __cplusplus
18977 extern "C"
18978 {
18979 #endif
18980 /* We use char because int might match the return type of a gcc2
18981    builtin and then its argument prototype would still apply.  */
18982 char $ac_func ();
18983 /* The GNU C library defines this for functions which it implements
18984     to always fail with ENOSYS.  Some functions are actually named
18985     something starting with __ and the normal name is an alias.  */
18986 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18987 choke me
18988 #else
18989 char (*f) () = $ac_func;
18990 #endif
18991 #ifdef __cplusplus
18992 }
18993 #endif
18994
18995 int
18996 main ()
18997 {
18998 return f != $ac_func;
18999   ;
19000   return 0;
19001 }
19002 _ACEOF
19003 rm -f conftest.$ac_objext conftest$ac_exeext
19004 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19005   (eval $ac_link) 2>conftest.er1
19006   ac_status=$?
19007   grep -v '^ *+' conftest.er1 >conftest.err
19008   rm -f conftest.er1
19009   cat conftest.err >&5
19010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19011   (exit $ac_status); } &&
19012          { ac_try='test -z "$ac_c_werror_flag"
19013                          || test ! -s conftest.err'
19014   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19015   (eval $ac_try) 2>&5
19016   ac_status=$?
19017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19018   (exit $ac_status); }; } &&
19019          { ac_try='test -s conftest$ac_exeext'
19020   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19021   (eval $ac_try) 2>&5
19022   ac_status=$?
19023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19024   (exit $ac_status); }; }; then
19025   eval "$as_ac_var=yes"
19026 else
19027   echo "$as_me: failed program was:" >&5
19028 sed 's/^/| /' conftest.$ac_ext >&5
19029
19030 eval "$as_ac_var=no"
19031 fi
19032 rm -f conftest.err conftest.$ac_objext \
19033       conftest$ac_exeext conftest.$ac_ext
19034 fi
19035 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19036 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19037 if test `eval echo '${'$as_ac_var'}'` = yes; then
19038   cat >>confdefs.h <<_ACEOF
19039 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19040 _ACEOF
19041  cat >>confdefs.h <<\_ACEOF
19042 #define HAVE_GETHOSTBYNAME2 1
19043 _ACEOF
19044
19045 fi
19046 done
19047
19048
19049 echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
19050 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6
19051 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
19052   echo $ECHO_N "(cached) $ECHO_C" >&6
19053 else
19054   cat >conftest.$ac_ext <<_ACEOF
19055 /* confdefs.h.  */
19056 _ACEOF
19057 cat confdefs.h >>conftest.$ac_ext
19058 cat >>conftest.$ac_ext <<_ACEOF
19059 /* end confdefs.h.  */
19060 #include <sys/socket.h>
19061 int
19062 main ()
19063 {
19064 struct sockaddr s; s.sa_len;
19065   ;
19066   return 0;
19067 }
19068 _ACEOF
19069 rm -f conftest.$ac_objext
19070 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19071   (eval $ac_compile) 2>conftest.er1
19072   ac_status=$?
19073   grep -v '^ *+' conftest.er1 >conftest.err
19074   rm -f conftest.er1
19075   cat conftest.err >&5
19076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19077   (exit $ac_status); } &&
19078          { ac_try='test -z "$ac_c_werror_flag"
19079                          || test ! -s conftest.err'
19080   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19081   (eval $ac_try) 2>&5
19082   ac_status=$?
19083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19084   (exit $ac_status); }; } &&
19085          { ac_try='test -s conftest.$ac_objext'
19086   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19087   (eval $ac_try) 2>&5
19088   ac_status=$?
19089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19090   (exit $ac_status); }; }; then
19091   ac_cv_struct_sockaddr_sa_len=yes
19092 else
19093   echo "$as_me: failed program was:" >&5
19094 sed 's/^/| /' conftest.$ac_ext >&5
19095
19096 ac_cv_struct_sockaddr_sa_len=no
19097 fi
19098 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19099 fi
19100 echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
19101 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6
19102
19103  if test $ac_cv_struct_sockaddr_sa_len = yes; then
19104
19105 cat >>confdefs.h <<\_ACEOF
19106 #define HAVE_SA_LEN 1
19107 _ACEOF
19108
19109  fi
19110
19111
19112 echo "$as_me:$LINENO: checking for IPv6 support" >&5
19113 echo $ECHO_N "checking for IPv6 support... $ECHO_C" >&6
19114 if test "${ac_cv_ipv6_support+set}" = set; then
19115   echo $ECHO_N "(cached) $ECHO_C" >&6
19116 else
19117   cat >conftest.$ac_ext <<_ACEOF
19118 /* confdefs.h.  */
19119 _ACEOF
19120 cat confdefs.h >>conftest.$ac_ext
19121 cat >>conftest.$ac_ext <<_ACEOF
19122 /* end confdefs.h.  */
19123  #include <sys/types.h>
19124 #include <sys/socket.h>
19125 #include <netinet/in.h>
19126 int
19127 main ()
19128 {
19129 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] =
19130  0;
19131   ;
19132   return 0;
19133 }
19134 _ACEOF
19135 rm -f conftest.$ac_objext conftest$ac_exeext
19136 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19137   (eval $ac_link) 2>conftest.er1
19138   ac_status=$?
19139   grep -v '^ *+' conftest.er1 >conftest.err
19140   rm -f conftest.er1
19141   cat conftest.err >&5
19142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19143   (exit $ac_status); } &&
19144          { ac_try='test -z "$ac_c_werror_flag"
19145                          || test ! -s conftest.err'
19146   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19147   (eval $ac_try) 2>&5
19148   ac_status=$?
19149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19150   (exit $ac_status); }; } &&
19151          { ac_try='test -s conftest$ac_exeext'
19152   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19153   (eval $ac_try) 2>&5
19154   ac_status=$?
19155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19156   (exit $ac_status); }; }; then
19157   ac_cv_ipv6_support=yes
19158 else
19159   echo "$as_me: failed program was:" >&5
19160 sed 's/^/| /' conftest.$ac_ext >&5
19161
19162 ac_cv_ipv6_support=no
19163 fi
19164 rm -f conftest.err conftest.$ac_objext \
19165       conftest$ac_exeext conftest.$ac_ext
19166 fi
19167 echo "$as_me:$LINENO: result: $ac_cv_ipv6_support" >&5
19168 echo "${ECHO_T}$ac_cv_ipv6_support" >&6
19169
19170 if test "$ac_cv_ipv6_support" = yes; then
19171
19172 cat >>confdefs.h <<\_ACEOF
19173 #define HAVE_IPV6 1
19174 _ACEOF
19175
19176 fi
19177
19178
19179
19180
19181 for ac_func in strftime
19182 do
19183 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19184 echo "$as_me:$LINENO: checking for $ac_func" >&5
19185 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19186 if eval "test \"\${$as_ac_var+set}\" = set"; then
19187   echo $ECHO_N "(cached) $ECHO_C" >&6
19188 else
19189   cat >conftest.$ac_ext <<_ACEOF
19190 /* confdefs.h.  */
19191 _ACEOF
19192 cat confdefs.h >>conftest.$ac_ext
19193 cat >>conftest.$ac_ext <<_ACEOF
19194 /* end confdefs.h.  */
19195 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19196    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19197 #define $ac_func innocuous_$ac_func
19198
19199 /* System header to define __stub macros and hopefully few prototypes,
19200     which can conflict with char $ac_func (); below.
19201     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19202     <limits.h> exists even on freestanding compilers.  */
19203
19204 #ifdef __STDC__
19205 # include <limits.h>
19206 #else
19207 # include <assert.h>
19208 #endif
19209
19210 #undef $ac_func
19211
19212 /* Override any gcc2 internal prototype to avoid an error.  */
19213 #ifdef __cplusplus
19214 extern "C"
19215 {
19216 #endif
19217 /* We use char because int might match the return type of a gcc2
19218    builtin and then its argument prototype would still apply.  */
19219 char $ac_func ();
19220 /* The GNU C library defines this for functions which it implements
19221     to always fail with ENOSYS.  Some functions are actually named
19222     something starting with __ and the normal name is an alias.  */
19223 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19224 choke me
19225 #else
19226 char (*f) () = $ac_func;
19227 #endif
19228 #ifdef __cplusplus
19229 }
19230 #endif
19231
19232 int
19233 main ()
19234 {
19235 return f != $ac_func;
19236   ;
19237   return 0;
19238 }
19239 _ACEOF
19240 rm -f conftest.$ac_objext conftest$ac_exeext
19241 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19242   (eval $ac_link) 2>conftest.er1
19243   ac_status=$?
19244   grep -v '^ *+' conftest.er1 >conftest.err
19245   rm -f conftest.er1
19246   cat conftest.err >&5
19247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19248   (exit $ac_status); } &&
19249          { ac_try='test -z "$ac_c_werror_flag"
19250                          || test ! -s conftest.err'
19251   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19252   (eval $ac_try) 2>&5
19253   ac_status=$?
19254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19255   (exit $ac_status); }; } &&
19256          { ac_try='test -s conftest$ac_exeext'
19257   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19258   (eval $ac_try) 2>&5
19259   ac_status=$?
19260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19261   (exit $ac_status); }; }; then
19262   eval "$as_ac_var=yes"
19263 else
19264   echo "$as_me: failed program was:" >&5
19265 sed 's/^/| /' conftest.$ac_ext >&5
19266
19267 eval "$as_ac_var=no"
19268 fi
19269 rm -f conftest.err conftest.$ac_objext \
19270       conftest$ac_exeext conftest.$ac_ext
19271 fi
19272 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19273 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19274 if test `eval echo '${'$as_ac_var'}'` = yes; then
19275   cat >>confdefs.h <<_ACEOF
19276 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19277 _ACEOF
19278
19279 else
19280   # strftime is in -lintl on SCO UNIX.
19281 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
19282 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
19283 if test "${ac_cv_lib_intl_strftime+set}" = set; then
19284   echo $ECHO_N "(cached) $ECHO_C" >&6
19285 else
19286   ac_check_lib_save_LIBS=$LIBS
19287 LIBS="-lintl  $LIBS"
19288 cat >conftest.$ac_ext <<_ACEOF
19289 /* confdefs.h.  */
19290 _ACEOF
19291 cat confdefs.h >>conftest.$ac_ext
19292 cat >>conftest.$ac_ext <<_ACEOF
19293 /* end confdefs.h.  */
19294
19295 /* Override any gcc2 internal prototype to avoid an error.  */
19296 #ifdef __cplusplus
19297 extern "C"
19298 #endif
19299 /* We use char because int might match the return type of a gcc2
19300    builtin and then its argument prototype would still apply.  */
19301 char strftime ();
19302 int
19303 main ()
19304 {
19305 strftime ();
19306   ;
19307   return 0;
19308 }
19309 _ACEOF
19310 rm -f conftest.$ac_objext conftest$ac_exeext
19311 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19312   (eval $ac_link) 2>conftest.er1
19313   ac_status=$?
19314   grep -v '^ *+' conftest.er1 >conftest.err
19315   rm -f conftest.er1
19316   cat conftest.err >&5
19317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19318   (exit $ac_status); } &&
19319          { ac_try='test -z "$ac_c_werror_flag"
19320                          || test ! -s conftest.err'
19321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19322   (eval $ac_try) 2>&5
19323   ac_status=$?
19324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19325   (exit $ac_status); }; } &&
19326          { ac_try='test -s conftest$ac_exeext'
19327   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19328   (eval $ac_try) 2>&5
19329   ac_status=$?
19330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19331   (exit $ac_status); }; }; then
19332   ac_cv_lib_intl_strftime=yes
19333 else
19334   echo "$as_me: failed program was:" >&5
19335 sed 's/^/| /' conftest.$ac_ext >&5
19336
19337 ac_cv_lib_intl_strftime=no
19338 fi
19339 rm -f conftest.err conftest.$ac_objext \
19340       conftest$ac_exeext conftest.$ac_ext
19341 LIBS=$ac_check_lib_save_LIBS
19342 fi
19343 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
19344 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
19345 if test $ac_cv_lib_intl_strftime = yes; then
19346   cat >>confdefs.h <<\_ACEOF
19347 #define HAVE_STRFTIME 1
19348 _ACEOF
19349
19350 LIBS="-lintl $LIBS"
19351 fi
19352
19353 fi
19354 done
19355
19356
19357 for ac_func in vprintf
19358 do
19359 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19360 echo "$as_me:$LINENO: checking for $ac_func" >&5
19361 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19362 if eval "test \"\${$as_ac_var+set}\" = set"; then
19363   echo $ECHO_N "(cached) $ECHO_C" >&6
19364 else
19365   cat >conftest.$ac_ext <<_ACEOF
19366 /* confdefs.h.  */
19367 _ACEOF
19368 cat confdefs.h >>conftest.$ac_ext
19369 cat >>conftest.$ac_ext <<_ACEOF
19370 /* end confdefs.h.  */
19371 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19372    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19373 #define $ac_func innocuous_$ac_func
19374
19375 /* System header to define __stub macros and hopefully few prototypes,
19376     which can conflict with char $ac_func (); below.
19377     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19378     <limits.h> exists even on freestanding compilers.  */
19379
19380 #ifdef __STDC__
19381 # include <limits.h>
19382 #else
19383 # include <assert.h>
19384 #endif
19385
19386 #undef $ac_func
19387
19388 /* Override any gcc2 internal prototype to avoid an error.  */
19389 #ifdef __cplusplus
19390 extern "C"
19391 {
19392 #endif
19393 /* We use char because int might match the return type of a gcc2
19394    builtin and then its argument prototype would still apply.  */
19395 char $ac_func ();
19396 /* The GNU C library defines this for functions which it implements
19397     to always fail with ENOSYS.  Some functions are actually named
19398     something starting with __ and the normal name is an alias.  */
19399 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19400 choke me
19401 #else
19402 char (*f) () = $ac_func;
19403 #endif
19404 #ifdef __cplusplus
19405 }
19406 #endif
19407
19408 int
19409 main ()
19410 {
19411 return f != $ac_func;
19412   ;
19413   return 0;
19414 }
19415 _ACEOF
19416 rm -f conftest.$ac_objext conftest$ac_exeext
19417 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19418   (eval $ac_link) 2>conftest.er1
19419   ac_status=$?
19420   grep -v '^ *+' conftest.er1 >conftest.err
19421   rm -f conftest.er1
19422   cat conftest.err >&5
19423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19424   (exit $ac_status); } &&
19425          { ac_try='test -z "$ac_c_werror_flag"
19426                          || test ! -s conftest.err'
19427   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19428   (eval $ac_try) 2>&5
19429   ac_status=$?
19430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19431   (exit $ac_status); }; } &&
19432          { ac_try='test -s conftest$ac_exeext'
19433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19434   (eval $ac_try) 2>&5
19435   ac_status=$?
19436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19437   (exit $ac_status); }; }; then
19438   eval "$as_ac_var=yes"
19439 else
19440   echo "$as_me: failed program was:" >&5
19441 sed 's/^/| /' conftest.$ac_ext >&5
19442
19443 eval "$as_ac_var=no"
19444 fi
19445 rm -f conftest.err conftest.$ac_objext \
19446       conftest$ac_exeext conftest.$ac_ext
19447 fi
19448 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19449 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19450 if test `eval echo '${'$as_ac_var'}'` = yes; then
19451   cat >>confdefs.h <<_ACEOF
19452 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19453 _ACEOF
19454
19455 echo "$as_me:$LINENO: checking for _doprnt" >&5
19456 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
19457 if test "${ac_cv_func__doprnt+set}" = set; then
19458   echo $ECHO_N "(cached) $ECHO_C" >&6
19459 else
19460   cat >conftest.$ac_ext <<_ACEOF
19461 /* confdefs.h.  */
19462 _ACEOF
19463 cat confdefs.h >>conftest.$ac_ext
19464 cat >>conftest.$ac_ext <<_ACEOF
19465 /* end confdefs.h.  */
19466 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
19467    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19468 #define _doprnt innocuous__doprnt
19469
19470 /* System header to define __stub macros and hopefully few prototypes,
19471     which can conflict with char _doprnt (); below.
19472     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19473     <limits.h> exists even on freestanding compilers.  */
19474
19475 #ifdef __STDC__
19476 # include <limits.h>
19477 #else
19478 # include <assert.h>
19479 #endif
19480
19481 #undef _doprnt
19482
19483 /* Override any gcc2 internal prototype to avoid an error.  */
19484 #ifdef __cplusplus
19485 extern "C"
19486 {
19487 #endif
19488 /* We use char because int might match the return type of a gcc2
19489    builtin and then its argument prototype would still apply.  */
19490 char _doprnt ();
19491 /* The GNU C library defines this for functions which it implements
19492     to always fail with ENOSYS.  Some functions are actually named
19493     something starting with __ and the normal name is an alias.  */
19494 #if defined (__stub__doprnt) || defined (__stub____doprnt)
19495 choke me
19496 #else
19497 char (*f) () = _doprnt;
19498 #endif
19499 #ifdef __cplusplus
19500 }
19501 #endif
19502
19503 int
19504 main ()
19505 {
19506 return f != _doprnt;
19507   ;
19508   return 0;
19509 }
19510 _ACEOF
19511 rm -f conftest.$ac_objext conftest$ac_exeext
19512 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19513   (eval $ac_link) 2>conftest.er1
19514   ac_status=$?
19515   grep -v '^ *+' conftest.er1 >conftest.err
19516   rm -f conftest.er1
19517   cat conftest.err >&5
19518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19519   (exit $ac_status); } &&
19520          { ac_try='test -z "$ac_c_werror_flag"
19521                          || test ! -s conftest.err'
19522   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19523   (eval $ac_try) 2>&5
19524   ac_status=$?
19525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19526   (exit $ac_status); }; } &&
19527          { ac_try='test -s conftest$ac_exeext'
19528   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19529   (eval $ac_try) 2>&5
19530   ac_status=$?
19531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19532   (exit $ac_status); }; }; then
19533   ac_cv_func__doprnt=yes
19534 else
19535   echo "$as_me: failed program was:" >&5
19536 sed 's/^/| /' conftest.$ac_ext >&5
19537
19538 ac_cv_func__doprnt=no
19539 fi
19540 rm -f conftest.err conftest.$ac_objext \
19541       conftest$ac_exeext conftest.$ac_ext
19542 fi
19543 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
19544 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
19545 if test $ac_cv_func__doprnt = yes; then
19546
19547 cat >>confdefs.h <<\_ACEOF
19548 #define HAVE_DOPRNT 1
19549 _ACEOF
19550
19551 fi
19552
19553 fi
19554 done
19555
19556
19557 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
19558 # for constant arguments.  Useless!
19559 echo "$as_me:$LINENO: checking for working alloca.h" >&5
19560 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
19561 if test "${ac_cv_working_alloca_h+set}" = set; then
19562   echo $ECHO_N "(cached) $ECHO_C" >&6
19563 else
19564   cat >conftest.$ac_ext <<_ACEOF
19565 /* confdefs.h.  */
19566 _ACEOF
19567 cat confdefs.h >>conftest.$ac_ext
19568 cat >>conftest.$ac_ext <<_ACEOF
19569 /* end confdefs.h.  */
19570 #include <alloca.h>
19571 int
19572 main ()
19573 {
19574 char *p = (char *) alloca (2 * sizeof (int));
19575   ;
19576   return 0;
19577 }
19578 _ACEOF
19579 rm -f conftest.$ac_objext conftest$ac_exeext
19580 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19581   (eval $ac_link) 2>conftest.er1
19582   ac_status=$?
19583   grep -v '^ *+' conftest.er1 >conftest.err
19584   rm -f conftest.er1
19585   cat conftest.err >&5
19586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19587   (exit $ac_status); } &&
19588          { ac_try='test -z "$ac_c_werror_flag"
19589                          || test ! -s conftest.err'
19590   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19591   (eval $ac_try) 2>&5
19592   ac_status=$?
19593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19594   (exit $ac_status); }; } &&
19595          { ac_try='test -s conftest$ac_exeext'
19596   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19597   (eval $ac_try) 2>&5
19598   ac_status=$?
19599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19600   (exit $ac_status); }; }; then
19601   ac_cv_working_alloca_h=yes
19602 else
19603   echo "$as_me: failed program was:" >&5
19604 sed 's/^/| /' conftest.$ac_ext >&5
19605
19606 ac_cv_working_alloca_h=no
19607 fi
19608 rm -f conftest.err conftest.$ac_objext \
19609       conftest$ac_exeext conftest.$ac_ext
19610 fi
19611 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
19612 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
19613 if test $ac_cv_working_alloca_h = yes; then
19614
19615 cat >>confdefs.h <<\_ACEOF
19616 #define HAVE_ALLOCA_H 1
19617 _ACEOF
19618
19619 fi
19620
19621 echo "$as_me:$LINENO: checking for alloca" >&5
19622 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
19623 if test "${ac_cv_func_alloca_works+set}" = set; then
19624   echo $ECHO_N "(cached) $ECHO_C" >&6
19625 else
19626   cat >conftest.$ac_ext <<_ACEOF
19627 /* confdefs.h.  */
19628 _ACEOF
19629 cat confdefs.h >>conftest.$ac_ext
19630 cat >>conftest.$ac_ext <<_ACEOF
19631 /* end confdefs.h.  */
19632 #ifdef __GNUC__
19633 # define alloca __builtin_alloca
19634 #else
19635 # ifdef _MSC_VER
19636 #  include <malloc.h>
19637 #  define alloca _alloca
19638 # else
19639 #  if HAVE_ALLOCA_H
19640 #   include <alloca.h>
19641 #  else
19642 #   ifdef _AIX
19643  #pragma alloca
19644 #   else
19645 #    ifndef alloca /* predefined by HP cc +Olibcalls */
19646 char *alloca ();
19647 #    endif
19648 #   endif
19649 #  endif
19650 # endif
19651 #endif
19652
19653 int
19654 main ()
19655 {
19656 char *p = (char *) alloca (1);
19657   ;
19658   return 0;
19659 }
19660 _ACEOF
19661 rm -f conftest.$ac_objext conftest$ac_exeext
19662 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19663   (eval $ac_link) 2>conftest.er1
19664   ac_status=$?
19665   grep -v '^ *+' conftest.er1 >conftest.err
19666   rm -f conftest.er1
19667   cat conftest.err >&5
19668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19669   (exit $ac_status); } &&
19670          { ac_try='test -z "$ac_c_werror_flag"
19671                          || test ! -s conftest.err'
19672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19673   (eval $ac_try) 2>&5
19674   ac_status=$?
19675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19676   (exit $ac_status); }; } &&
19677          { ac_try='test -s conftest$ac_exeext'
19678   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19679   (eval $ac_try) 2>&5
19680   ac_status=$?
19681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19682   (exit $ac_status); }; }; then
19683   ac_cv_func_alloca_works=yes
19684 else
19685   echo "$as_me: failed program was:" >&5
19686 sed 's/^/| /' conftest.$ac_ext >&5
19687
19688 ac_cv_func_alloca_works=no
19689 fi
19690 rm -f conftest.err conftest.$ac_objext \
19691       conftest$ac_exeext conftest.$ac_ext
19692 fi
19693 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
19694 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
19695
19696 if test $ac_cv_func_alloca_works = yes; then
19697
19698 cat >>confdefs.h <<\_ACEOF
19699 #define HAVE_ALLOCA 1
19700 _ACEOF
19701
19702 else
19703   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
19704 # that cause trouble.  Some versions do not even contain alloca or
19705 # contain a buggy version.  If you still want to use their alloca,
19706 # use ar to extract alloca.o from them instead of compiling alloca.c.
19707
19708 ALLOCA=alloca.$ac_objext
19709
19710 cat >>confdefs.h <<\_ACEOF
19711 #define C_ALLOCA 1
19712 _ACEOF
19713
19714
19715 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
19716 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
19717 if test "${ac_cv_os_cray+set}" = set; then
19718   echo $ECHO_N "(cached) $ECHO_C" >&6
19719 else
19720   cat >conftest.$ac_ext <<_ACEOF
19721 /* confdefs.h.  */
19722 _ACEOF
19723 cat confdefs.h >>conftest.$ac_ext
19724 cat >>conftest.$ac_ext <<_ACEOF
19725 /* end confdefs.h.  */
19726 #if defined(CRAY) && ! defined(CRAY2)
19727 webecray
19728 #else
19729 wenotbecray
19730 #endif
19731
19732 _ACEOF
19733 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19734   $EGREP "webecray" >/dev/null 2>&1; then
19735   ac_cv_os_cray=yes
19736 else
19737   ac_cv_os_cray=no
19738 fi
19739 rm -f conftest*
19740
19741 fi
19742 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
19743 echo "${ECHO_T}$ac_cv_os_cray" >&6
19744 if test $ac_cv_os_cray = yes; then
19745   for ac_func in _getb67 GETB67 getb67; do
19746     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19747 echo "$as_me:$LINENO: checking for $ac_func" >&5
19748 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19749 if eval "test \"\${$as_ac_var+set}\" = set"; then
19750   echo $ECHO_N "(cached) $ECHO_C" >&6
19751 else
19752   cat >conftest.$ac_ext <<_ACEOF
19753 /* confdefs.h.  */
19754 _ACEOF
19755 cat confdefs.h >>conftest.$ac_ext
19756 cat >>conftest.$ac_ext <<_ACEOF
19757 /* end confdefs.h.  */
19758 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19759    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19760 #define $ac_func innocuous_$ac_func
19761
19762 /* System header to define __stub macros and hopefully few prototypes,
19763     which can conflict with char $ac_func (); below.
19764     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19765     <limits.h> exists even on freestanding compilers.  */
19766
19767 #ifdef __STDC__
19768 # include <limits.h>
19769 #else
19770 # include <assert.h>
19771 #endif
19772
19773 #undef $ac_func
19774
19775 /* Override any gcc2 internal prototype to avoid an error.  */
19776 #ifdef __cplusplus
19777 extern "C"
19778 {
19779 #endif
19780 /* We use char because int might match the return type of a gcc2
19781    builtin and then its argument prototype would still apply.  */
19782 char $ac_func ();
19783 /* The GNU C library defines this for functions which it implements
19784     to always fail with ENOSYS.  Some functions are actually named
19785     something starting with __ and the normal name is an alias.  */
19786 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19787 choke me
19788 #else
19789 char (*f) () = $ac_func;
19790 #endif
19791 #ifdef __cplusplus
19792 }
19793 #endif
19794
19795 int
19796 main ()
19797 {
19798 return f != $ac_func;
19799   ;
19800   return 0;
19801 }
19802 _ACEOF
19803 rm -f conftest.$ac_objext conftest$ac_exeext
19804 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19805   (eval $ac_link) 2>conftest.er1
19806   ac_status=$?
19807   grep -v '^ *+' conftest.er1 >conftest.err
19808   rm -f conftest.er1
19809   cat conftest.err >&5
19810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19811   (exit $ac_status); } &&
19812          { ac_try='test -z "$ac_c_werror_flag"
19813                          || test ! -s conftest.err'
19814   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19815   (eval $ac_try) 2>&5
19816   ac_status=$?
19817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19818   (exit $ac_status); }; } &&
19819          { ac_try='test -s conftest$ac_exeext'
19820   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19821   (eval $ac_try) 2>&5
19822   ac_status=$?
19823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19824   (exit $ac_status); }; }; then
19825   eval "$as_ac_var=yes"
19826 else
19827   echo "$as_me: failed program was:" >&5
19828 sed 's/^/| /' conftest.$ac_ext >&5
19829
19830 eval "$as_ac_var=no"
19831 fi
19832 rm -f conftest.err conftest.$ac_objext \
19833       conftest$ac_exeext conftest.$ac_ext
19834 fi
19835 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19836 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19837 if test `eval echo '${'$as_ac_var'}'` = yes; then
19838
19839 cat >>confdefs.h <<_ACEOF
19840 #define CRAY_STACKSEG_END $ac_func
19841 _ACEOF
19842
19843     break
19844 fi
19845
19846   done
19847 fi
19848
19849 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
19850 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
19851 if test "${ac_cv_c_stack_direction+set}" = set; then
19852   echo $ECHO_N "(cached) $ECHO_C" >&6
19853 else
19854   if test "$cross_compiling" = yes; then
19855   ac_cv_c_stack_direction=0
19856 else
19857   cat >conftest.$ac_ext <<_ACEOF
19858 /* confdefs.h.  */
19859 _ACEOF
19860 cat confdefs.h >>conftest.$ac_ext
19861 cat >>conftest.$ac_ext <<_ACEOF
19862 /* end confdefs.h.  */
19863 int
19864 find_stack_direction ()
19865 {
19866   static char *addr = 0;
19867   auto char dummy;
19868   if (addr == 0)
19869     {
19870       addr = &dummy;
19871       return find_stack_direction ();
19872     }
19873   else
19874     return (&dummy > addr) ? 1 : -1;
19875 }
19876
19877 int
19878 main ()
19879 {
19880   exit (find_stack_direction () < 0);
19881 }
19882 _ACEOF
19883 rm -f conftest$ac_exeext
19884 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19885   (eval $ac_link) 2>&5
19886   ac_status=$?
19887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19888   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19890   (eval $ac_try) 2>&5
19891   ac_status=$?
19892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19893   (exit $ac_status); }; }; then
19894   ac_cv_c_stack_direction=1
19895 else
19896   echo "$as_me: program exited with status $ac_status" >&5
19897 echo "$as_me: failed program was:" >&5
19898 sed 's/^/| /' conftest.$ac_ext >&5
19899
19900 ( exit $ac_status )
19901 ac_cv_c_stack_direction=-1
19902 fi
19903 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19904 fi
19905 fi
19906 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
19907 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
19908
19909 cat >>confdefs.h <<_ACEOF
19910 #define STACK_DIRECTION $ac_cv_c_stack_direction
19911 _ACEOF
19912
19913
19914 fi
19915
19916 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
19917 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
19918 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
19919 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
19920   echo $ECHO_N "(cached) $ECHO_C" >&6
19921 else
19922   ac_check_lib_save_LIBS=$LIBS
19923 LIBS="-lsun  $LIBS"
19924 cat >conftest.$ac_ext <<_ACEOF
19925 /* confdefs.h.  */
19926 _ACEOF
19927 cat confdefs.h >>conftest.$ac_ext
19928 cat >>conftest.$ac_ext <<_ACEOF
19929 /* end confdefs.h.  */
19930
19931 /* Override any gcc2 internal prototype to avoid an error.  */
19932 #ifdef __cplusplus
19933 extern "C"
19934 #endif
19935 /* We use char because int might match the return type of a gcc2
19936    builtin and then its argument prototype would still apply.  */
19937 char getmntent ();
19938 int
19939 main ()
19940 {
19941 getmntent ();
19942   ;
19943   return 0;
19944 }
19945 _ACEOF
19946 rm -f conftest.$ac_objext conftest$ac_exeext
19947 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19948   (eval $ac_link) 2>conftest.er1
19949   ac_status=$?
19950   grep -v '^ *+' conftest.er1 >conftest.err
19951   rm -f conftest.er1
19952   cat conftest.err >&5
19953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19954   (exit $ac_status); } &&
19955          { ac_try='test -z "$ac_c_werror_flag"
19956                          || test ! -s conftest.err'
19957   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19958   (eval $ac_try) 2>&5
19959   ac_status=$?
19960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19961   (exit $ac_status); }; } &&
19962          { ac_try='test -s conftest$ac_exeext'
19963   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19964   (eval $ac_try) 2>&5
19965   ac_status=$?
19966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19967   (exit $ac_status); }; }; then
19968   ac_cv_lib_sun_getmntent=yes
19969 else
19970   echo "$as_me: failed program was:" >&5
19971 sed 's/^/| /' conftest.$ac_ext >&5
19972
19973 ac_cv_lib_sun_getmntent=no
19974 fi
19975 rm -f conftest.err conftest.$ac_objext \
19976       conftest$ac_exeext conftest.$ac_ext
19977 LIBS=$ac_check_lib_save_LIBS
19978 fi
19979 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
19980 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
19981 if test $ac_cv_lib_sun_getmntent = yes; then
19982   LIBS="-lsun $LIBS"
19983 else
19984   echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
19985 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
19986 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
19987   echo $ECHO_N "(cached) $ECHO_C" >&6
19988 else
19989   ac_check_lib_save_LIBS=$LIBS
19990 LIBS="-lseq  $LIBS"
19991 cat >conftest.$ac_ext <<_ACEOF
19992 /* confdefs.h.  */
19993 _ACEOF
19994 cat confdefs.h >>conftest.$ac_ext
19995 cat >>conftest.$ac_ext <<_ACEOF
19996 /* end confdefs.h.  */
19997
19998 /* Override any gcc2 internal prototype to avoid an error.  */
19999 #ifdef __cplusplus
20000 extern "C"
20001 #endif
20002 /* We use char because int might match the return type of a gcc2
20003    builtin and then its argument prototype would still apply.  */
20004 char getmntent ();
20005 int
20006 main ()
20007 {
20008 getmntent ();
20009   ;
20010   return 0;
20011 }
20012 _ACEOF
20013 rm -f conftest.$ac_objext conftest$ac_exeext
20014 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20015   (eval $ac_link) 2>conftest.er1
20016   ac_status=$?
20017   grep -v '^ *+' conftest.er1 >conftest.err
20018   rm -f conftest.er1
20019   cat conftest.err >&5
20020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20021   (exit $ac_status); } &&
20022          { ac_try='test -z "$ac_c_werror_flag"
20023                          || test ! -s conftest.err'
20024   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20025   (eval $ac_try) 2>&5
20026   ac_status=$?
20027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20028   (exit $ac_status); }; } &&
20029          { ac_try='test -s conftest$ac_exeext'
20030   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20031   (eval $ac_try) 2>&5
20032   ac_status=$?
20033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20034   (exit $ac_status); }; }; then
20035   ac_cv_lib_seq_getmntent=yes
20036 else
20037   echo "$as_me: failed program was:" >&5
20038 sed 's/^/| /' conftest.$ac_ext >&5
20039
20040 ac_cv_lib_seq_getmntent=no
20041 fi
20042 rm -f conftest.err conftest.$ac_objext \
20043       conftest$ac_exeext conftest.$ac_ext
20044 LIBS=$ac_check_lib_save_LIBS
20045 fi
20046 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
20047 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
20048 if test $ac_cv_lib_seq_getmntent = yes; then
20049   LIBS="-lseq $LIBS"
20050 else
20051   echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
20052 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
20053 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
20054   echo $ECHO_N "(cached) $ECHO_C" >&6
20055 else
20056   ac_check_lib_save_LIBS=$LIBS
20057 LIBS="-lgen  $LIBS"
20058 cat >conftest.$ac_ext <<_ACEOF
20059 /* confdefs.h.  */
20060 _ACEOF
20061 cat confdefs.h >>conftest.$ac_ext
20062 cat >>conftest.$ac_ext <<_ACEOF
20063 /* end confdefs.h.  */
20064
20065 /* Override any gcc2 internal prototype to avoid an error.  */
20066 #ifdef __cplusplus
20067 extern "C"
20068 #endif
20069 /* We use char because int might match the return type of a gcc2
20070    builtin and then its argument prototype would still apply.  */
20071 char getmntent ();
20072 int
20073 main ()
20074 {
20075 getmntent ();
20076   ;
20077   return 0;
20078 }
20079 _ACEOF
20080 rm -f conftest.$ac_objext conftest$ac_exeext
20081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20082   (eval $ac_link) 2>conftest.er1
20083   ac_status=$?
20084   grep -v '^ *+' conftest.er1 >conftest.err
20085   rm -f conftest.er1
20086   cat conftest.err >&5
20087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20088   (exit $ac_status); } &&
20089          { ac_try='test -z "$ac_c_werror_flag"
20090                          || test ! -s conftest.err'
20091   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20092   (eval $ac_try) 2>&5
20093   ac_status=$?
20094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20095   (exit $ac_status); }; } &&
20096          { ac_try='test -s conftest$ac_exeext'
20097   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20098   (eval $ac_try) 2>&5
20099   ac_status=$?
20100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20101   (exit $ac_status); }; }; then
20102   ac_cv_lib_gen_getmntent=yes
20103 else
20104   echo "$as_me: failed program was:" >&5
20105 sed 's/^/| /' conftest.$ac_ext >&5
20106
20107 ac_cv_lib_gen_getmntent=no
20108 fi
20109 rm -f conftest.err conftest.$ac_objext \
20110       conftest$ac_exeext conftest.$ac_ext
20111 LIBS=$ac_check_lib_save_LIBS
20112 fi
20113 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
20114 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
20115 if test $ac_cv_lib_gen_getmntent = yes; then
20116   LIBS="-lgen $LIBS"
20117 fi
20118
20119 fi
20120
20121 fi
20122
20123
20124 for ac_func in getmntent
20125 do
20126 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20127 echo "$as_me:$LINENO: checking for $ac_func" >&5
20128 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20129 if eval "test \"\${$as_ac_var+set}\" = set"; then
20130   echo $ECHO_N "(cached) $ECHO_C" >&6
20131 else
20132   cat >conftest.$ac_ext <<_ACEOF
20133 /* confdefs.h.  */
20134 _ACEOF
20135 cat confdefs.h >>conftest.$ac_ext
20136 cat >>conftest.$ac_ext <<_ACEOF
20137 /* end confdefs.h.  */
20138 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20139    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20140 #define $ac_func innocuous_$ac_func
20141
20142 /* System header to define __stub macros and hopefully few prototypes,
20143     which can conflict with char $ac_func (); below.
20144     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20145     <limits.h> exists even on freestanding compilers.  */
20146
20147 #ifdef __STDC__
20148 # include <limits.h>
20149 #else
20150 # include <assert.h>
20151 #endif
20152
20153 #undef $ac_func
20154
20155 /* Override any gcc2 internal prototype to avoid an error.  */
20156 #ifdef __cplusplus
20157 extern "C"
20158 {
20159 #endif
20160 /* We use char because int might match the return type of a gcc2
20161    builtin and then its argument prototype would still apply.  */
20162 char $ac_func ();
20163 /* The GNU C library defines this for functions which it implements
20164     to always fail with ENOSYS.  Some functions are actually named
20165     something starting with __ and the normal name is an alias.  */
20166 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20167 choke me
20168 #else
20169 char (*f) () = $ac_func;
20170 #endif
20171 #ifdef __cplusplus
20172 }
20173 #endif
20174
20175 int
20176 main ()
20177 {
20178 return f != $ac_func;
20179   ;
20180   return 0;
20181 }
20182 _ACEOF
20183 rm -f conftest.$ac_objext conftest$ac_exeext
20184 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20185   (eval $ac_link) 2>conftest.er1
20186   ac_status=$?
20187   grep -v '^ *+' conftest.er1 >conftest.err
20188   rm -f conftest.er1
20189   cat conftest.err >&5
20190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20191   (exit $ac_status); } &&
20192          { ac_try='test -z "$ac_c_werror_flag"
20193                          || test ! -s conftest.err'
20194   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20195   (eval $ac_try) 2>&5
20196   ac_status=$?
20197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20198   (exit $ac_status); }; } &&
20199          { ac_try='test -s conftest$ac_exeext'
20200   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20201   (eval $ac_try) 2>&5
20202   ac_status=$?
20203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20204   (exit $ac_status); }; }; then
20205   eval "$as_ac_var=yes"
20206 else
20207   echo "$as_me: failed program was:" >&5
20208 sed 's/^/| /' conftest.$ac_ext >&5
20209
20210 eval "$as_ac_var=no"
20211 fi
20212 rm -f conftest.err conftest.$ac_objext \
20213       conftest$ac_exeext conftest.$ac_ext
20214 fi
20215 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20216 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20217 if test `eval echo '${'$as_ac_var'}'` = yes; then
20218   cat >>confdefs.h <<_ACEOF
20219 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20220 _ACEOF
20221
20222 fi
20223 done
20224
20225
20226 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
20227 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
20228 if test "${ac_cv_func_closedir_void+set}" = set; then
20229   echo $ECHO_N "(cached) $ECHO_C" >&6
20230 else
20231   if test "$cross_compiling" = yes; then
20232   ac_cv_func_closedir_void=yes
20233 else
20234   cat >conftest.$ac_ext <<_ACEOF
20235 /* confdefs.h.  */
20236 _ACEOF
20237 cat confdefs.h >>conftest.$ac_ext
20238 cat >>conftest.$ac_ext <<_ACEOF
20239 /* end confdefs.h.  */
20240 $ac_includes_default
20241 #include <$ac_header_dirent>
20242 #ifndef __cplusplus
20243 int closedir ();
20244 #endif
20245
20246 int
20247 main ()
20248 {
20249 exit (closedir (opendir (".")) != 0);
20250   ;
20251   return 0;
20252 }
20253 _ACEOF
20254 rm -f conftest$ac_exeext
20255 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20256   (eval $ac_link) 2>&5
20257   ac_status=$?
20258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20259   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20260   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20261   (eval $ac_try) 2>&5
20262   ac_status=$?
20263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20264   (exit $ac_status); }; }; then
20265   ac_cv_func_closedir_void=no
20266 else
20267   echo "$as_me: program exited with status $ac_status" >&5
20268 echo "$as_me: failed program was:" >&5
20269 sed 's/^/| /' conftest.$ac_ext >&5
20270
20271 ( exit $ac_status )
20272 ac_cv_func_closedir_void=yes
20273 fi
20274 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20275 fi
20276 fi
20277 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
20278 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
20279 if test $ac_cv_func_closedir_void = yes; then
20280
20281 cat >>confdefs.h <<\_ACEOF
20282 #define CLOSEDIR_VOID 1
20283 _ACEOF
20284
20285 fi
20286
20287 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
20288 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
20289 if test "${ac_cv_func_setpgrp_void+set}" = set; then
20290   echo $ECHO_N "(cached) $ECHO_C" >&6
20291 else
20292   if test "$cross_compiling" = yes; then
20293   { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
20294 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
20295    { (exit 1); exit 1; }; }
20296 else
20297   cat >conftest.$ac_ext <<_ACEOF
20298 /* confdefs.h.  */
20299 _ACEOF
20300 cat confdefs.h >>conftest.$ac_ext
20301 cat >>conftest.$ac_ext <<_ACEOF
20302 /* end confdefs.h.  */
20303 #if HAVE_UNISTD_H
20304 # include <unistd.h>
20305 #endif
20306
20307 int
20308 main ()
20309 {
20310 /* If this system has a BSD-style setpgrp which takes arguments,
20311   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
20312   exit successfully. */
20313   exit (setpgrp (1,1) == -1 ? 0 : 1);
20314   ;
20315   return 0;
20316 }
20317 _ACEOF
20318 rm -f conftest$ac_exeext
20319 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20320   (eval $ac_link) 2>&5
20321   ac_status=$?
20322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20323   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20324   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20325   (eval $ac_try) 2>&5
20326   ac_status=$?
20327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20328   (exit $ac_status); }; }; then
20329   ac_cv_func_setpgrp_void=no
20330 else
20331   echo "$as_me: program exited with status $ac_status" >&5
20332 echo "$as_me: failed program was:" >&5
20333 sed 's/^/| /' conftest.$ac_ext >&5
20334
20335 ( exit $ac_status )
20336 ac_cv_func_setpgrp_void=yes
20337 fi
20338 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20339 fi
20340 fi
20341 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
20342 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
20343 if test $ac_cv_func_setpgrp_void = yes; then
20344
20345 cat >>confdefs.h <<\_ACEOF
20346 #define SETPGRP_VOID 1
20347 _ACEOF
20348
20349 fi
20350                       # AC_FUNC_FNMATCH    dnl use local version
20351
20352
20353 echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
20354 echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
20355 if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
20356   echo $ECHO_N "(cached) $ECHO_C" >&6
20357 else
20358   ac_check_lib_save_LIBS=$LIBS
20359 LIBS="-lxpg4  $LIBS"
20360 cat >conftest.$ac_ext <<_ACEOF
20361 /* confdefs.h.  */
20362 _ACEOF
20363 cat confdefs.h >>conftest.$ac_ext
20364 cat >>conftest.$ac_ext <<_ACEOF
20365 /* end confdefs.h.  */
20366
20367 /* Override any gcc2 internal prototype to avoid an error.  */
20368 #ifdef __cplusplus
20369 extern "C"
20370 #endif
20371 /* We use char because int might match the return type of a gcc2
20372    builtin and then its argument prototype would still apply.  */
20373 char setlocale ();
20374 int
20375 main ()
20376 {
20377 setlocale ();
20378   ;
20379   return 0;
20380 }
20381 _ACEOF
20382 rm -f conftest.$ac_objext conftest$ac_exeext
20383 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20384   (eval $ac_link) 2>conftest.er1
20385   ac_status=$?
20386   grep -v '^ *+' conftest.er1 >conftest.err
20387   rm -f conftest.er1
20388   cat conftest.err >&5
20389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20390   (exit $ac_status); } &&
20391          { ac_try='test -z "$ac_c_werror_flag"
20392                          || test ! -s conftest.err'
20393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20394   (eval $ac_try) 2>&5
20395   ac_status=$?
20396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20397   (exit $ac_status); }; } &&
20398          { ac_try='test -s conftest$ac_exeext'
20399   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20400   (eval $ac_try) 2>&5
20401   ac_status=$?
20402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20403   (exit $ac_status); }; }; then
20404   ac_cv_lib_xpg4_setlocale=yes
20405 else
20406   echo "$as_me: failed program was:" >&5
20407 sed 's/^/| /' conftest.$ac_ext >&5
20408
20409 ac_cv_lib_xpg4_setlocale=no
20410 fi
20411 rm -f conftest.err conftest.$ac_objext \
20412       conftest$ac_exeext conftest.$ac_ext
20413 LIBS=$ac_check_lib_save_LIBS
20414 fi
20415 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
20416 echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
20417 if test $ac_cv_lib_xpg4_setlocale = yes; then
20418   LIBS="$LIBS -lxpg4"
20419 fi
20420
20421
20422
20423
20424 echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
20425 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6
20426 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
20427   echo $ECHO_N "(cached) $ECHO_C" >&6
20428 else
20429   ac_check_lib_save_LIBS=$LIBS
20430 LIBS="-lsun  $LIBS"
20431 cat >conftest.$ac_ext <<_ACEOF
20432 /* confdefs.h.  */
20433 _ACEOF
20434 cat confdefs.h >>conftest.$ac_ext
20435 cat >>conftest.$ac_ext <<_ACEOF
20436 /* end confdefs.h.  */
20437
20438 /* Override any gcc2 internal prototype to avoid an error.  */
20439 #ifdef __cplusplus
20440 extern "C"
20441 #endif
20442 /* We use char because int might match the return type of a gcc2
20443    builtin and then its argument prototype would still apply.  */
20444 char getpwnam ();
20445 int
20446 main ()
20447 {
20448 getpwnam ();
20449   ;
20450   return 0;
20451 }
20452 _ACEOF
20453 rm -f conftest.$ac_objext conftest$ac_exeext
20454 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20455   (eval $ac_link) 2>conftest.er1
20456   ac_status=$?
20457   grep -v '^ *+' conftest.er1 >conftest.err
20458   rm -f conftest.er1
20459   cat conftest.err >&5
20460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20461   (exit $ac_status); } &&
20462          { ac_try='test -z "$ac_c_werror_flag"
20463                          || test ! -s conftest.err'
20464   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20465   (eval $ac_try) 2>&5
20466   ac_status=$?
20467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20468   (exit $ac_status); }; } &&
20469          { ac_try='test -s conftest$ac_exeext'
20470   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20471   (eval $ac_try) 2>&5
20472   ac_status=$?
20473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20474   (exit $ac_status); }; }; then
20475   ac_cv_lib_sun_getpwnam=yes
20476 else
20477   echo "$as_me: failed program was:" >&5
20478 sed 's/^/| /' conftest.$ac_ext >&5
20479
20480 ac_cv_lib_sun_getpwnam=no
20481 fi
20482 rm -f conftest.err conftest.$ac_objext \
20483       conftest$ac_exeext conftest.$ac_ext
20484 LIBS=$ac_check_lib_save_LIBS
20485 fi
20486 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
20487 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6
20488 if test $ac_cv_lib_sun_getpwnam = yes; then
20489   cat >>confdefs.h <<_ACEOF
20490 #define HAVE_LIBSUN 1
20491 _ACEOF
20492
20493   LIBS="-lsun $LIBS"
20494
20495 fi
20496
20497
20498
20499 for ac_header in zlib.h
20500 do
20501 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20502 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20503   echo "$as_me:$LINENO: checking for $ac_header" >&5
20504 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20505 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20506   echo $ECHO_N "(cached) $ECHO_C" >&6
20507 fi
20508 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20509 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20510 else
20511   # Is the header compilable?
20512 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20513 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20514 cat >conftest.$ac_ext <<_ACEOF
20515 /* confdefs.h.  */
20516 _ACEOF
20517 cat confdefs.h >>conftest.$ac_ext
20518 cat >>conftest.$ac_ext <<_ACEOF
20519 /* end confdefs.h.  */
20520 $ac_includes_default
20521 #include <$ac_header>
20522 _ACEOF
20523 rm -f conftest.$ac_objext
20524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20525   (eval $ac_compile) 2>conftest.er1
20526   ac_status=$?
20527   grep -v '^ *+' conftest.er1 >conftest.err
20528   rm -f conftest.er1
20529   cat conftest.err >&5
20530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20531   (exit $ac_status); } &&
20532          { ac_try='test -z "$ac_c_werror_flag"
20533                          || test ! -s conftest.err'
20534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20535   (eval $ac_try) 2>&5
20536   ac_status=$?
20537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20538   (exit $ac_status); }; } &&
20539          { ac_try='test -s conftest.$ac_objext'
20540   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20541   (eval $ac_try) 2>&5
20542   ac_status=$?
20543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20544   (exit $ac_status); }; }; then
20545   ac_header_compiler=yes
20546 else
20547   echo "$as_me: failed program was:" >&5
20548 sed 's/^/| /' conftest.$ac_ext >&5
20549
20550 ac_header_compiler=no
20551 fi
20552 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20553 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20554 echo "${ECHO_T}$ac_header_compiler" >&6
20555
20556 # Is the header present?
20557 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20558 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20559 cat >conftest.$ac_ext <<_ACEOF
20560 /* confdefs.h.  */
20561 _ACEOF
20562 cat confdefs.h >>conftest.$ac_ext
20563 cat >>conftest.$ac_ext <<_ACEOF
20564 /* end confdefs.h.  */
20565 #include <$ac_header>
20566 _ACEOF
20567 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20568   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20569   ac_status=$?
20570   grep -v '^ *+' conftest.er1 >conftest.err
20571   rm -f conftest.er1
20572   cat conftest.err >&5
20573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20574   (exit $ac_status); } >/dev/null; then
20575   if test -s conftest.err; then
20576     ac_cpp_err=$ac_c_preproc_warn_flag
20577     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20578   else
20579     ac_cpp_err=
20580   fi
20581 else
20582   ac_cpp_err=yes
20583 fi
20584 if test -z "$ac_cpp_err"; then
20585   ac_header_preproc=yes
20586 else
20587   echo "$as_me: failed program was:" >&5
20588 sed 's/^/| /' conftest.$ac_ext >&5
20589
20590   ac_header_preproc=no
20591 fi
20592 rm -f conftest.err conftest.$ac_ext
20593 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20594 echo "${ECHO_T}$ac_header_preproc" >&6
20595
20596 # So?  What about this header?
20597 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20598   yes:no: )
20599     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20600 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20601     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20602 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20603     ac_header_preproc=yes
20604     ;;
20605   no:yes:* )
20606     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20607 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20608     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20609 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20610     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20611 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20612     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20613 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20614     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20615 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20616     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20617 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20618     (
20619       cat <<\_ASBOX
20620 ## ------------------------------------------ ##
20621 ## Report this to the AC_PACKAGE_NAME lists.  ##
20622 ## ------------------------------------------ ##
20623 _ASBOX
20624     ) |
20625       sed "s/^/$as_me: WARNING:     /" >&2
20626     ;;
20627 esac
20628 echo "$as_me:$LINENO: checking for $ac_header" >&5
20629 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20630 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20631   echo $ECHO_N "(cached) $ECHO_C" >&6
20632 else
20633   eval "$as_ac_Header=\$ac_header_preproc"
20634 fi
20635 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20636 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20637
20638 fi
20639 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20640   cat >>confdefs.h <<_ACEOF
20641 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20642 _ACEOF
20643
20644 fi
20645
20646 done
20647
20648 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
20649 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
20650 if test "${ac_cv_lib_z_deflate+set}" = set; then
20651   echo $ECHO_N "(cached) $ECHO_C" >&6
20652 else
20653   ac_check_lib_save_LIBS=$LIBS
20654 LIBS="-lz  $LIBS"
20655 cat >conftest.$ac_ext <<_ACEOF
20656 /* confdefs.h.  */
20657 _ACEOF
20658 cat confdefs.h >>conftest.$ac_ext
20659 cat >>conftest.$ac_ext <<_ACEOF
20660 /* end confdefs.h.  */
20661
20662 /* Override any gcc2 internal prototype to avoid an error.  */
20663 #ifdef __cplusplus
20664 extern "C"
20665 #endif
20666 /* We use char because int might match the return type of a gcc2
20667    builtin and then its argument prototype would still apply.  */
20668 char deflate ();
20669 int
20670 main ()
20671 {
20672 deflate ();
20673   ;
20674   return 0;
20675 }
20676 _ACEOF
20677 rm -f conftest.$ac_objext conftest$ac_exeext
20678 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20679   (eval $ac_link) 2>conftest.er1
20680   ac_status=$?
20681   grep -v '^ *+' conftest.er1 >conftest.err
20682   rm -f conftest.er1
20683   cat conftest.err >&5
20684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20685   (exit $ac_status); } &&
20686          { ac_try='test -z "$ac_c_werror_flag"
20687                          || test ! -s conftest.err'
20688   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20689   (eval $ac_try) 2>&5
20690   ac_status=$?
20691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20692   (exit $ac_status); }; } &&
20693          { ac_try='test -s conftest$ac_exeext'
20694   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20695   (eval $ac_try) 2>&5
20696   ac_status=$?
20697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20698   (exit $ac_status); }; }; then
20699   ac_cv_lib_z_deflate=yes
20700 else
20701   echo "$as_me: failed program was:" >&5
20702 sed 's/^/| /' conftest.$ac_ext >&5
20703
20704 ac_cv_lib_z_deflate=no
20705 fi
20706 rm -f conftest.err conftest.$ac_objext \
20707       conftest$ac_exeext conftest.$ac_ext
20708 LIBS=$ac_check_lib_save_LIBS
20709 fi
20710 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
20711 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
20712 if test $ac_cv_lib_z_deflate = yes; then
20713   FDLIBS="-lz"
20714 fi
20715
20716 have_zlib=no
20717 if test x$FDLIBS = x-lz; then
20718   cat >>confdefs.h <<\_ACEOF
20719 #define HAVE_LIBZ 1
20720 _ACEOF
20721
20722   have_zlib=yes
20723 fi
20724
20725 if test "${ac_cv_header_sys_acl_h+set}" = set; then
20726   echo "$as_me:$LINENO: checking for sys/acl.h" >&5
20727 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
20728 if test "${ac_cv_header_sys_acl_h+set}" = set; then
20729   echo $ECHO_N "(cached) $ECHO_C" >&6
20730 fi
20731 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
20732 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
20733 else
20734   # Is the header compilable?
20735 echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
20736 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6
20737 cat >conftest.$ac_ext <<_ACEOF
20738 /* confdefs.h.  */
20739 _ACEOF
20740 cat confdefs.h >>conftest.$ac_ext
20741 cat >>conftest.$ac_ext <<_ACEOF
20742 /* end confdefs.h.  */
20743 $ac_includes_default
20744 #include <sys/acl.h>
20745 _ACEOF
20746 rm -f conftest.$ac_objext
20747 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20748   (eval $ac_compile) 2>conftest.er1
20749   ac_status=$?
20750   grep -v '^ *+' conftest.er1 >conftest.err
20751   rm -f conftest.er1
20752   cat conftest.err >&5
20753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20754   (exit $ac_status); } &&
20755          { ac_try='test -z "$ac_c_werror_flag"
20756                          || test ! -s conftest.err'
20757   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20758   (eval $ac_try) 2>&5
20759   ac_status=$?
20760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20761   (exit $ac_status); }; } &&
20762          { ac_try='test -s conftest.$ac_objext'
20763   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20764   (eval $ac_try) 2>&5
20765   ac_status=$?
20766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20767   (exit $ac_status); }; }; then
20768   ac_header_compiler=yes
20769 else
20770   echo "$as_me: failed program was:" >&5
20771 sed 's/^/| /' conftest.$ac_ext >&5
20772
20773 ac_header_compiler=no
20774 fi
20775 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20776 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20777 echo "${ECHO_T}$ac_header_compiler" >&6
20778
20779 # Is the header present?
20780 echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
20781 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6
20782 cat >conftest.$ac_ext <<_ACEOF
20783 /* confdefs.h.  */
20784 _ACEOF
20785 cat confdefs.h >>conftest.$ac_ext
20786 cat >>conftest.$ac_ext <<_ACEOF
20787 /* end confdefs.h.  */
20788 #include <sys/acl.h>
20789 _ACEOF
20790 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20791   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20792   ac_status=$?
20793   grep -v '^ *+' conftest.er1 >conftest.err
20794   rm -f conftest.er1
20795   cat conftest.err >&5
20796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20797   (exit $ac_status); } >/dev/null; then
20798   if test -s conftest.err; then
20799     ac_cpp_err=$ac_c_preproc_warn_flag
20800     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20801   else
20802     ac_cpp_err=
20803   fi
20804 else
20805   ac_cpp_err=yes
20806 fi
20807 if test -z "$ac_cpp_err"; then
20808   ac_header_preproc=yes
20809 else
20810   echo "$as_me: failed program was:" >&5
20811 sed 's/^/| /' conftest.$ac_ext >&5
20812
20813   ac_header_preproc=no
20814 fi
20815 rm -f conftest.err conftest.$ac_ext
20816 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20817 echo "${ECHO_T}$ac_header_preproc" >&6
20818
20819 # So?  What about this header?
20820 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20821   yes:no: )
20822     { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
20823 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20824     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the compiler's result" >&5
20825 echo "$as_me: WARNING: sys/acl.h: proceeding with the compiler's result" >&2;}
20826     ac_header_preproc=yes
20827     ;;
20828   no:yes:* )
20829     { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
20830 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
20831     { echo "$as_me:$LINENO: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&5
20832 echo "$as_me: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&2;}
20833     { echo "$as_me:$LINENO: WARNING: sys/acl.h: see the Autoconf documentation" >&5
20834 echo "$as_me: WARNING: sys/acl.h: see the Autoconf documentation" >&2;}
20835     { echo "$as_me:$LINENO: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&5
20836 echo "$as_me: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
20837     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
20838 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
20839     { echo "$as_me:$LINENO: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&5
20840 echo "$as_me: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&2;}
20841     (
20842       cat <<\_ASBOX
20843 ## ------------------------------------------ ##
20844 ## Report this to the AC_PACKAGE_NAME lists.  ##
20845 ## ------------------------------------------ ##
20846 _ASBOX
20847     ) |
20848       sed "s/^/$as_me: WARNING:     /" >&2
20849     ;;
20850 esac
20851 echo "$as_me:$LINENO: checking for sys/acl.h" >&5
20852 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
20853 if test "${ac_cv_header_sys_acl_h+set}" = set; then
20854   echo $ECHO_N "(cached) $ECHO_C" >&6
20855 else
20856   ac_cv_header_sys_acl_h=$ac_header_preproc
20857 fi
20858 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
20859 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
20860
20861 fi
20862
20863
20864 echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
20865 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6
20866 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
20867   echo $ECHO_N "(cached) $ECHO_C" >&6
20868 else
20869   ac_check_lib_save_LIBS=$LIBS
20870 LIBS="-lacl  $LIBS"
20871 cat >conftest.$ac_ext <<_ACEOF
20872 /* confdefs.h.  */
20873 _ACEOF
20874 cat confdefs.h >>conftest.$ac_ext
20875 cat >>conftest.$ac_ext <<_ACEOF
20876 /* end confdefs.h.  */
20877
20878 /* Override any gcc2 internal prototype to avoid an error.  */
20879 #ifdef __cplusplus
20880 extern "C"
20881 #endif
20882 /* We use char because int might match the return type of a gcc2
20883    builtin and then its argument prototype would still apply.  */
20884 char acl_get_file ();
20885 int
20886 main ()
20887 {
20888 acl_get_file ();
20889   ;
20890   return 0;
20891 }
20892 _ACEOF
20893 rm -f conftest.$ac_objext conftest$ac_exeext
20894 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20895   (eval $ac_link) 2>conftest.er1
20896   ac_status=$?
20897   grep -v '^ *+' conftest.er1 >conftest.err
20898   rm -f conftest.er1
20899   cat conftest.err >&5
20900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20901   (exit $ac_status); } &&
20902          { ac_try='test -z "$ac_c_werror_flag"
20903                          || test ! -s conftest.err'
20904   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20905   (eval $ac_try) 2>&5
20906   ac_status=$?
20907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20908   (exit $ac_status); }; } &&
20909          { ac_try='test -s conftest$ac_exeext'
20910   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20911   (eval $ac_try) 2>&5
20912   ac_status=$?
20913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20914   (exit $ac_status); }; }; then
20915   ac_cv_lib_acl_acl_get_file=yes
20916 else
20917   echo "$as_me: failed program was:" >&5
20918 sed 's/^/| /' conftest.$ac_ext >&5
20919
20920 ac_cv_lib_acl_acl_get_file=no
20921 fi
20922 rm -f conftest.err conftest.$ac_objext \
20923       conftest$ac_exeext conftest.$ac_ext
20924 LIBS=$ac_check_lib_save_LIBS
20925 fi
20926 echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
20927 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6
20928 if test $ac_cv_lib_acl_acl_get_file = yes; then
20929   FDLIBS="-lacl $FDLIBS"
20930 fi
20931
20932 have_acl=no
20933 if test $ac_cv_lib_acl_acl_get_file = yes; then
20934    cat >>confdefs.h <<\_ACEOF
20935 #define HAVE_ACL 1
20936 _ACEOF
20937
20938    have_acl=yes
20939 fi
20940
20941 PTHREAD_LIB=""
20942 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
20943 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
20944 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
20945   echo $ECHO_N "(cached) $ECHO_C" >&6
20946 else
20947   ac_check_lib_save_LIBS=$LIBS
20948 LIBS="-lpthread  $LIBS"
20949 cat >conftest.$ac_ext <<_ACEOF
20950 /* confdefs.h.  */
20951 _ACEOF
20952 cat confdefs.h >>conftest.$ac_ext
20953 cat >>conftest.$ac_ext <<_ACEOF
20954 /* end confdefs.h.  */
20955
20956 /* Override any gcc2 internal prototype to avoid an error.  */
20957 #ifdef __cplusplus
20958 extern "C"
20959 #endif
20960 /* We use char because int might match the return type of a gcc2
20961    builtin and then its argument prototype would still apply.  */
20962 char pthread_create ();
20963 int
20964 main ()
20965 {
20966 pthread_create ();
20967   ;
20968   return 0;
20969 }
20970 _ACEOF
20971 rm -f conftest.$ac_objext conftest$ac_exeext
20972 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20973   (eval $ac_link) 2>conftest.er1
20974   ac_status=$?
20975   grep -v '^ *+' conftest.er1 >conftest.err
20976   rm -f conftest.er1
20977   cat conftest.err >&5
20978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20979   (exit $ac_status); } &&
20980          { ac_try='test -z "$ac_c_werror_flag"
20981                          || test ! -s conftest.err'
20982   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20983   (eval $ac_try) 2>&5
20984   ac_status=$?
20985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20986   (exit $ac_status); }; } &&
20987          { ac_try='test -s conftest$ac_exeext'
20988   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20989   (eval $ac_try) 2>&5
20990   ac_status=$?
20991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20992   (exit $ac_status); }; }; then
20993   ac_cv_lib_pthread_pthread_create=yes
20994 else
20995   echo "$as_me: failed program was:" >&5
20996 sed 's/^/| /' conftest.$ac_ext >&5
20997
20998 ac_cv_lib_pthread_pthread_create=no
20999 fi
21000 rm -f conftest.err conftest.$ac_objext \
21001       conftest$ac_exeext conftest.$ac_ext
21002 LIBS=$ac_check_lib_save_LIBS
21003 fi
21004 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
21005 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
21006 if test $ac_cv_lib_pthread_pthread_create = yes; then
21007   PTHREAD_LIB="-lpthread"
21008 else
21009   echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
21010 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
21011 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
21012   echo $ECHO_N "(cached) $ECHO_C" >&6
21013 else
21014   ac_check_lib_save_LIBS=$LIBS
21015 LIBS="-lpthreads  $LIBS"
21016 cat >conftest.$ac_ext <<_ACEOF
21017 /* confdefs.h.  */
21018 _ACEOF
21019 cat confdefs.h >>conftest.$ac_ext
21020 cat >>conftest.$ac_ext <<_ACEOF
21021 /* end confdefs.h.  */
21022
21023 /* Override any gcc2 internal prototype to avoid an error.  */
21024 #ifdef __cplusplus
21025 extern "C"
21026 #endif
21027 /* We use char because int might match the return type of a gcc2
21028    builtin and then its argument prototype would still apply.  */
21029 char pthread_create ();
21030 int
21031 main ()
21032 {
21033 pthread_create ();
21034   ;
21035   return 0;
21036 }
21037 _ACEOF
21038 rm -f conftest.$ac_objext conftest$ac_exeext
21039 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21040   (eval $ac_link) 2>conftest.er1
21041   ac_status=$?
21042   grep -v '^ *+' conftest.er1 >conftest.err
21043   rm -f conftest.er1
21044   cat conftest.err >&5
21045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21046   (exit $ac_status); } &&
21047          { ac_try='test -z "$ac_c_werror_flag"
21048                          || test ! -s conftest.err'
21049   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21050   (eval $ac_try) 2>&5
21051   ac_status=$?
21052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21053   (exit $ac_status); }; } &&
21054          { ac_try='test -s conftest$ac_exeext'
21055   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21056   (eval $ac_try) 2>&5
21057   ac_status=$?
21058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21059   (exit $ac_status); }; }; then
21060   ac_cv_lib_pthreads_pthread_create=yes
21061 else
21062   echo "$as_me: failed program was:" >&5
21063 sed 's/^/| /' conftest.$ac_ext >&5
21064
21065 ac_cv_lib_pthreads_pthread_create=no
21066 fi
21067 rm -f conftest.err conftest.$ac_objext \
21068       conftest$ac_exeext conftest.$ac_ext
21069 LIBS=$ac_check_lib_save_LIBS
21070 fi
21071 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
21072 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
21073 if test $ac_cv_lib_pthreads_pthread_create = yes; then
21074   PTHREAD_LIB="-lpthreads"
21075 else
21076   echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
21077 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
21078 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
21079   echo $ECHO_N "(cached) $ECHO_C" >&6
21080 else
21081   ac_check_lib_save_LIBS=$LIBS
21082 LIBS="-lc_r  $LIBS"
21083 cat >conftest.$ac_ext <<_ACEOF
21084 /* confdefs.h.  */
21085 _ACEOF
21086 cat confdefs.h >>conftest.$ac_ext
21087 cat >>conftest.$ac_ext <<_ACEOF
21088 /* end confdefs.h.  */
21089
21090 /* Override any gcc2 internal prototype to avoid an error.  */
21091 #ifdef __cplusplus
21092 extern "C"
21093 #endif
21094 /* We use char because int might match the return type of a gcc2
21095    builtin and then its argument prototype would still apply.  */
21096 char pthread_create ();
21097 int
21098 main ()
21099 {
21100 pthread_create ();
21101   ;
21102   return 0;
21103 }
21104 _ACEOF
21105 rm -f conftest.$ac_objext conftest$ac_exeext
21106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21107   (eval $ac_link) 2>conftest.er1
21108   ac_status=$?
21109   grep -v '^ *+' conftest.er1 >conftest.err
21110   rm -f conftest.er1
21111   cat conftest.err >&5
21112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21113   (exit $ac_status); } &&
21114          { ac_try='test -z "$ac_c_werror_flag"
21115                          || test ! -s conftest.err'
21116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21117   (eval $ac_try) 2>&5
21118   ac_status=$?
21119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21120   (exit $ac_status); }; } &&
21121          { ac_try='test -s conftest$ac_exeext'
21122   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21123   (eval $ac_try) 2>&5
21124   ac_status=$?
21125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21126   (exit $ac_status); }; }; then
21127   ac_cv_lib_c_r_pthread_create=yes
21128 else
21129   echo "$as_me: failed program was:" >&5
21130 sed 's/^/| /' conftest.$ac_ext >&5
21131
21132 ac_cv_lib_c_r_pthread_create=no
21133 fi
21134 rm -f conftest.err conftest.$ac_objext \
21135       conftest$ac_exeext conftest.$ac_ext
21136 LIBS=$ac_check_lib_save_LIBS
21137 fi
21138 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
21139 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
21140 if test $ac_cv_lib_c_r_pthread_create = yes; then
21141   PTHREAD_LIB="-lc_r"
21142 else
21143   echo "$as_me:$LINENO: checking for pthread_create" >&5
21144 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6
21145 if test "${ac_cv_func_pthread_create+set}" = set; then
21146   echo $ECHO_N "(cached) $ECHO_C" >&6
21147 else
21148   cat >conftest.$ac_ext <<_ACEOF
21149 /* confdefs.h.  */
21150 _ACEOF
21151 cat confdefs.h >>conftest.$ac_ext
21152 cat >>conftest.$ac_ext <<_ACEOF
21153 /* end confdefs.h.  */
21154 /* Define pthread_create to an innocuous variant, in case <limits.h> declares pthread_create.
21155    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21156 #define pthread_create innocuous_pthread_create
21157
21158 /* System header to define __stub macros and hopefully few prototypes,
21159     which can conflict with char pthread_create (); below.
21160     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21161     <limits.h> exists even on freestanding compilers.  */
21162
21163 #ifdef __STDC__
21164 # include <limits.h>
21165 #else
21166 # include <assert.h>
21167 #endif
21168
21169 #undef pthread_create
21170
21171 /* Override any gcc2 internal prototype to avoid an error.  */
21172 #ifdef __cplusplus
21173 extern "C"
21174 {
21175 #endif
21176 /* We use char because int might match the return type of a gcc2
21177    builtin and then its argument prototype would still apply.  */
21178 char pthread_create ();
21179 /* The GNU C library defines this for functions which it implements
21180     to always fail with ENOSYS.  Some functions are actually named
21181     something starting with __ and the normal name is an alias.  */
21182 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
21183 choke me
21184 #else
21185 char (*f) () = pthread_create;
21186 #endif
21187 #ifdef __cplusplus
21188 }
21189 #endif
21190
21191 int
21192 main ()
21193 {
21194 return f != pthread_create;
21195   ;
21196   return 0;
21197 }
21198 _ACEOF
21199 rm -f conftest.$ac_objext conftest$ac_exeext
21200 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21201   (eval $ac_link) 2>conftest.er1
21202   ac_status=$?
21203   grep -v '^ *+' conftest.er1 >conftest.err
21204   rm -f conftest.er1
21205   cat conftest.err >&5
21206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21207   (exit $ac_status); } &&
21208          { ac_try='test -z "$ac_c_werror_flag"
21209                          || test ! -s conftest.err'
21210   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21211   (eval $ac_try) 2>&5
21212   ac_status=$?
21213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21214   (exit $ac_status); }; } &&
21215          { ac_try='test -s conftest$ac_exeext'
21216   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21217   (eval $ac_try) 2>&5
21218   ac_status=$?
21219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21220   (exit $ac_status); }; }; then
21221   ac_cv_func_pthread_create=yes
21222 else
21223   echo "$as_me: failed program was:" >&5
21224 sed 's/^/| /' conftest.$ac_ext >&5
21225
21226 ac_cv_func_pthread_create=no
21227 fi
21228 rm -f conftest.err conftest.$ac_objext \
21229       conftest$ac_exeext conftest.$ac_ext
21230 fi
21231 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
21232 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6
21233
21234
21235 fi
21236
21237
21238 fi
21239
21240
21241 fi
21242
21243
21244
21245 cat >>confdefs.h <<\_ACEOF
21246 #define FDLIBS 1
21247 _ACEOF
21248
21249
21250
21251 CFLAGS=${CFLAGS--O}
21252 LDFLAGS=${LDFLAGS--O}
21253 DB_LIBS="${SQL_LFLAGS}"
21254
21255 CPPFLAGS="$CPPFLAGS"
21256
21257
21258
21259
21260
21261
21262
21263
21264
21265
21266
21267
21268
21269
21270 OBJLIST=
21271
21272
21273 lld="lld"
21274 llu="llu"
21275
21276 WCFLAGS=
21277 WLDFLAGS=
21278
21279 #
21280 # Finally we set appropriate distribution specific
21281 #  variables and defaults
21282 #
21283 # PFILES are platform specific files
21284 PFILES="platforms/Makefile"
21285 PSCMD="ps -e"
21286 WIN32=
21287 MACOSX=
21288 hostname=`uname -n | cut -d '.' -f 1`
21289 case "$DISTNAME" in
21290 aix)
21291         DISTVER=`uname -r`
21292         PSCMD="ps -e -o pid,comm"
21293         PFILES="${PFILES} \
21294            platforms/aix/Makefile"
21295         TAPEDRIVE="/dev/rmt0.1"
21296   ;;
21297 alpha)
21298         DISTVER=`uname -r`
21299         PTHREAD_LIB="-lpthread -lexc"
21300         if test "${CC}" = "gcc" ; then
21301            lld="lld"
21302            llu="llu"
21303         else
21304            lld="ld"
21305            llu="lu"
21306         fi
21307         TAPEDRIVE="/dev/nrmt0"
21308   ;;
21309 bsdi)
21310         DISTVER=`uname -a |awk '{print $3}'`
21311         TAPEDRIVE="/dev/nrmt0"
21312         PTHREAD_LIB="-pthread"
21313         CFLAGS="${CFLAGS} -pthread"
21314         PSCMD="ps -ax -o pid,command"
21315         lld="qd"
21316         llu="qu"
21317         PFILES="${PFILES} \
21318             platforms/bsdi/Makefile \
21319             platforms/bsdi/bacula-fd \
21320             platforms/bsdi/bacula-sd \
21321             platforms/bsdi/bacula-dir"
21322         largefile_support="yes"
21323   ;;
21324 cygwin)
21325         DISTVER=`uname -a |awk '{print $3}'`
21326         TAPEDRIVE="/dev/nrst0"
21327         WIN32=win32
21328         WCFLAGS="-mwindows"
21329         WLDFLAGS="-mwindows"
21330   ;;
21331 darwin)
21332         DISTVER=`uname -r`
21333         TAPEDRIVE="/dev/nst0"
21334         PSCMD="ps -e -o pid,command"
21335         MACOSX=macosx
21336         PFILES="${PFILES} \
21337            platforms/darwin/Makefile"
21338   ;;
21339 debian)
21340         DISTVER=`cat /etc/debian_version`
21341         TAPEDRIVE="/dev/nrst0"
21342         PSCMD="ps -e -o pid,command"
21343   ;;
21344 freebsd)
21345         DISTVER=`uname -a |awk '{print $3}'`
21346         VER=`echo $DISTVER | cut -c 1`
21347         if test x$VER = x4 ; then
21348            PTHREAD_LIB="-pthread"
21349            CFLAGS="${CFLAGS} -pthread"
21350         fi
21351         lld="qd"
21352         llu="qu"
21353         TAPEDRIVE="/dev/nrsa0"
21354         PSCMD="ps -ax -o pid,command"
21355         PFILES="${PFILES} \
21356             platforms/freebsd/Makefile \
21357             platforms/freebsd/bacula-fd \
21358             platforms/freebsd/bacula-sd \
21359             platforms/freebsd/bacula-dir"
21360         largefile_support="yes"
21361   ;;
21362 hpux)
21363         PSCMD="UNIX95=1 ps -e -o pid,comm"
21364         CFLAGS="$(CFLAGS) -D_XOPEN_SOURCE_EXTENDED=1"
21365         DISTVER=`uname -r`
21366         TAPEDRIVE="/dev/rmt/0hnb"
21367         PTHREAD_LIB="-lpthread"
21368         cat >>confdefs.h <<\_ACEOF
21369 #define _INCLUDE_LONGLONG 1
21370 _ACEOF
21371
21372   ;;
21373 irix)
21374         DISTVER=`uname -r`
21375         TAPEDRIVE="/dev/rmt/0cbn"
21376         PSCMD="ps -e -o pid,comm"
21377         PFILES="${PFILES} \
21378             platforms/irix/Makefile \
21379             platforms/irix/bacula-fd \
21380             platforms/irix/bacula-sd \
21381             platforms/irix/bacula-dir"
21382   ;;
21383 netbsd)
21384         DISTVER=`uname -a |awk '{print $3}'`
21385         lld="qd"
21386         llu="qu"
21387         TAPEDRIVE="/dev/nrst0"
21388         PSCMD="ps -ax -o pid,command"
21389         PTHREAD_LIB="-pthread"
21390         CFLAGS="${CFLAGS} -pthread"
21391   ;;
21392 openbsd)
21393         DISTVER=`uname -a |awk '{print $3}'`
21394         lld="qd"
21395         llu="qu"
21396         TAPEDRIVE="/dev/nrst0"
21397         PSCMD="ps -ax -o pid,command"
21398         PTHREAD_LIB="-pthread"
21399         CFLAGS="${CFLAGS} -pthread"
21400         PFILES="${PFILES} \
21401             platforms/openbsd/Makefile \
21402             platforms/openbsd/bacula-fd \
21403             platforms/openbsd/bacula-sd \
21404             platforms/openbsd/bacula-dir"
21405   ;;
21406 redhat)
21407         if test -f /etc/whitebox-release ; then
21408            f=/etc/whitebox-release
21409         else
21410            f=/etc/redhat-release
21411         fi
21412         if test `cat $f | grep release |\
21413                    cut -f 3 -d ' '`x = "Enterprise"x ; then
21414            DISTVER="Enterprise "`cat $f | grep release |\
21415                     cut -f 6 -d ' '`
21416         else
21417             DISTVER=`cat /etc/redhat-release | grep release |\
21418                      cut -f 5 -d ' '`
21419         fi
21420         TAPEDRIVE="/dev/nst0"
21421         PSCMD="ps -e -o pid,command"
21422         PFILES="${PFILES} \
21423             platforms/redhat/Makefile \
21424             platforms/redhat/bacula-fd \
21425             platforms/redhat/bacula-sd \
21426             platforms/redhat/bacula-dir \
21427             platforms/redhat/bacula.spec \
21428             "
21429         hostname=`hostname -s`
21430   ;;
21431 mandrake)
21432         DISTVER=`cat /etc/mandrake-release | grep release |\
21433            cut -f 5 -d ' '`
21434         TAPEDRIVE="/dev/nst0"
21435         PSCMD="ps -e -o pid,command"
21436         PFILES="${PFILES} \
21437             platforms/mandrake/Makefile \
21438             platforms/mandrake/bacula-fd \
21439             platforms/mandrake/bacula-sd \
21440             platforms/mandrake/bacula-dir \
21441             platforms/mandrake/bacula.spec \
21442             "
21443   ;;
21444 gentoo)
21445         DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
21446         TAPEDRIVE="/dev/nst0"
21447         PSCMD="ps -e -o pid,command"
21448         PFILES="${PFILES} \
21449             platforms/gentoo/Makefile \
21450          platforms/gentoo/bacula-init \
21451             platforms/gentoo/bacula-fd \
21452             platforms/gentoo/bacula-sd \
21453             platforms/gentoo/bacula-dir"
21454   ;;
21455 slackware)
21456         DISTVER=`cat /etc/slackware-version`
21457         TAPEDRIVE="/dev/nst0"
21458         PSCMD="ps -e -o pid,command"
21459         PFILES="${PFILES} \
21460             platforms/slackware/Makefile \
21461             platforms/slackware/rc.bacula-fd \
21462             platforms/slackware/rc.bacula-sd \
21463             platforms/slackware/rc.bacula-dir\
21464             platforms/slackware/functions.bacula"
21465   ;;
21466 solaris)
21467         DISTVER=`uname -r`
21468         TAPEDRIVE="/dev/rmt/0cbn"
21469         PSCMD="ps -e -o pid,comm"
21470         PFILES="${PFILES} \
21471             platforms/solaris/Makefile \
21472             platforms/solaris/bacula-fd \
21473             platforms/solaris/bacula-sd \
21474             platforms/solaris/bacula-dir"
21475         if test x$DISTVER = x5.6 ; then
21476             cat >>confdefs.h <<\_ACEOF
21477 #define HAVE_OLD_SOCKOPT 1
21478 _ACEOF
21479
21480         fi
21481         LIBS="$LIBS -lresolv"
21482   ;;
21483 suse)
21484         DISTVER=`cat /etc/SuSE-release |grep VERSION|\
21485             cut -f 3 -d ' '`
21486         TAPEDRIVE="/dev/nst0"
21487         PSCMD="ps -e -o pid,command"
21488         PFILES="${PFILES} \
21489             platforms/suse/Makefile \
21490             platforms/suse/bacula-fd \
21491             platforms/suse/bacula-sd \
21492             platforms/suse/bacula-dir \
21493             platforms/suse/bacula \
21494             platforms/suse/bacula.spec"
21495   ;;
21496 suse5)
21497         DISTNAME=suse
21498         DISTVER=5.x
21499         TAPEDRIVE="/dev/nst0"
21500         PSCMD="ps -e -o pid,command"
21501         PFILES="${PFILES} \
21502             platforms/suse/Makefile \
21503             platforms/suse/bacula-fd \
21504             platforms/suse/bacula-sd \
21505             platforms/suse/bacula-dir"
21506   ;;
21507 unknown)
21508         DISTVER=unknown
21509         TAPEDRIVE="/dev/nst0"
21510   ;;
21511 *)
21512   echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
21513   ;;
21514 esac
21515
21516
21517
21518 LIBS="$PTHREAD_LIB $LIBS"
21519
21520 cat >>confdefs.h <<_ACEOF
21521 #define lld "$lld"
21522 _ACEOF
21523
21524 cat >>confdefs.h <<_ACEOF
21525 #define llu "$llu"
21526 _ACEOF
21527
21528
21529
21530
21531
21532
21533
21534
21535 MCOMMON=./autoconf/Make.common
21536
21537
21538 if test "x${subsysdir}" = "x${sbindir}" ; then
21539    echo " "
21540    echo " "
21541    echo "You have set both --sbindir and --with-subsys-dir"
21542    echo "  equal to: ${subsysdir} "
21543    echo "This is not permitted. Please reconfigure."
21544    echo " "
21545    echo "Aborting configuration ..."
21546    echo " "
21547    echo " "
21548    exit 1
21549 fi
21550
21551                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             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 $PFILES"
21552           ac_config_commands="$ac_config_commands default"
21553 cat >confcache <<\_ACEOF
21554 # This file is a shell script that caches the results of configure
21555 # tests run on this system so they can be shared between configure
21556 # scripts and configure runs, see configure's option --config-cache.
21557 # It is not useful on other systems.  If it contains results you don't
21558 # want to keep, you may remove or edit it.
21559 #
21560 # config.status only pays attention to the cache file if you give it
21561 # the --recheck option to rerun configure.
21562 #
21563 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21564 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21565 # following values.
21566
21567 _ACEOF
21568
21569 # The following way of writing the cache mishandles newlines in values,
21570 # but we know of no workaround that is simple, portable, and efficient.
21571 # So, don't put newlines in cache variables' values.
21572 # Ultrix sh set writes to stderr and can't be redirected directly,
21573 # and sets the high bit in the cache file unless we assign to the vars.
21574 {
21575   (set) 2>&1 |
21576     case `(ac_space=' '; set | grep ac_space) 2>&1` in
21577     *ac_space=\ *)
21578       # `set' does not quote correctly, so add quotes (double-quote
21579       # substitution turns \\\\ into \\, and sed turns \\ into \).
21580       sed -n \
21581         "s/'/'\\\\''/g;
21582           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21583       ;;
21584     *)
21585       # `set' quotes correctly as required by POSIX, so do not add quotes.
21586       sed -n \
21587         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
21588       ;;
21589     esac;
21590 } |
21591   sed '
21592      t clear
21593      : clear
21594      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21595      t end
21596      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21597      : end' >>confcache
21598 if diff $cache_file confcache >/dev/null 2>&1; then :; else
21599   if test -w $cache_file; then
21600     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21601     cat confcache >$cache_file
21602   else
21603     echo "not updating unwritable cache $cache_file"
21604   fi
21605 fi
21606 rm -f confcache
21607
21608 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21609 # Let make expand exec_prefix.
21610 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21611
21612 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21613 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21614 # trailing colons and then remove the whole line if VPATH becomes empty
21615 # (actually we leave an empty line to preserve line numbers).
21616 if test "x$srcdir" = x.; then
21617   ac_vpsub='/^[  ]*VPATH[        ]*=/{
21618 s/:*\$(srcdir):*/:/;
21619 s/:*\${srcdir}:*/:/;
21620 s/:*@srcdir@:*/:/;
21621 s/^\([^=]*=[     ]*\):*/\1/;
21622 s/:*$//;
21623 s/^[^=]*=[       ]*$//;
21624 }'
21625 fi
21626
21627 DEFS=-DHAVE_CONFIG_H
21628
21629 ac_libobjs=
21630 ac_ltlibobjs=
21631 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21632   # 1. Remove the extension, and $U if already installed.
21633   ac_i=`echo "$ac_i" |
21634          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
21635   # 2. Add them.
21636   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
21637   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
21638 done
21639 LIBOBJS=$ac_libobjs
21640
21641 LTLIBOBJS=$ac_ltlibobjs
21642
21643
21644
21645 : ${CONFIG_STATUS=./config.status}
21646 ac_clean_files_save=$ac_clean_files
21647 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21648 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21649 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21650 cat >$CONFIG_STATUS <<_ACEOF
21651 #! $SHELL
21652 # Generated by $as_me.
21653 # Run this file to recreate the current configuration.
21654 # Compiler output produced by configure, useful for debugging
21655 # configure, is in config.log if it exists.
21656
21657 debug=false
21658 ac_cs_recheck=false
21659 ac_cs_silent=false
21660 SHELL=\${CONFIG_SHELL-$SHELL}
21661 _ACEOF
21662
21663 cat >>$CONFIG_STATUS <<\_ACEOF
21664 ## --------------------- ##
21665 ## M4sh Initialization.  ##
21666 ## --------------------- ##
21667
21668 # Be Bourne compatible
21669 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21670   emulate sh
21671   NULLCMD=:
21672   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21673   # is contrary to our usage.  Disable this feature.
21674   alias -g '${1+"$@"}'='"$@"'
21675 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21676   set -o posix
21677 fi
21678 DUALCASE=1; export DUALCASE # for MKS sh
21679
21680 # Support unset when possible.
21681 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21682   as_unset=unset
21683 else
21684   as_unset=false
21685 fi
21686
21687
21688 # Work around bugs in pre-3.0 UWIN ksh.
21689 $as_unset ENV MAIL MAILPATH
21690 PS1='$ '
21691 PS2='> '
21692 PS4='+ '
21693
21694 # NLS nuisances.
21695 for as_var in \
21696   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21697   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21698   LC_TELEPHONE LC_TIME
21699 do
21700   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21701     eval $as_var=C; export $as_var
21702   else
21703     $as_unset $as_var
21704   fi
21705 done
21706
21707 # Required to use basename.
21708 if expr a : '\(a\)' >/dev/null 2>&1; then
21709   as_expr=expr
21710 else
21711   as_expr=false
21712 fi
21713
21714 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
21715   as_basename=basename
21716 else
21717   as_basename=false
21718 fi
21719
21720
21721 # Name of the executable.
21722 as_me=`$as_basename "$0" ||
21723 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21724          X"$0" : 'X\(//\)$' \| \
21725          X"$0" : 'X\(/\)$' \| \
21726          .     : '\(.\)' 2>/dev/null ||
21727 echo X/"$0" |
21728     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
21729           /^X\/\(\/\/\)$/{ s//\1/; q; }
21730           /^X\/\(\/\).*/{ s//\1/; q; }
21731           s/.*/./; q'`
21732
21733
21734 # PATH needs CR, and LINENO needs CR and PATH.
21735 # Avoid depending upon Character Ranges.
21736 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21737 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21738 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21739 as_cr_digits='0123456789'
21740 as_cr_alnum=$as_cr_Letters$as_cr_digits
21741
21742 # The user is always right.
21743 if test "${PATH_SEPARATOR+set}" != set; then
21744   echo "#! /bin/sh" >conf$$.sh
21745   echo  "exit 0"   >>conf$$.sh
21746   chmod +x conf$$.sh
21747   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21748     PATH_SEPARATOR=';'
21749   else
21750     PATH_SEPARATOR=:
21751   fi
21752   rm -f conf$$.sh
21753 fi
21754
21755
21756   as_lineno_1=$LINENO
21757   as_lineno_2=$LINENO
21758   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21759   test "x$as_lineno_1" != "x$as_lineno_2" &&
21760   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
21761   # Find who we are.  Look in the path if we contain no path at all
21762   # relative or not.
21763   case $0 in
21764     *[\\/]* ) as_myself=$0 ;;
21765     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21766 for as_dir in $PATH
21767 do
21768   IFS=$as_save_IFS
21769   test -z "$as_dir" && as_dir=.
21770   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21771 done
21772
21773        ;;
21774   esac
21775   # We did not find ourselves, most probably we were run as `sh COMMAND'
21776   # in which case we are not to be found in the path.
21777   if test "x$as_myself" = x; then
21778     as_myself=$0
21779   fi
21780   if test ! -f "$as_myself"; then
21781     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
21782 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
21783    { (exit 1); exit 1; }; }
21784   fi
21785   case $CONFIG_SHELL in
21786   '')
21787     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21788 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
21789 do
21790   IFS=$as_save_IFS
21791   test -z "$as_dir" && as_dir=.
21792   for as_base in sh bash ksh sh5; do
21793          case $as_dir in
21794          /*)
21795            if ("$as_dir/$as_base" -c '
21796   as_lineno_1=$LINENO
21797   as_lineno_2=$LINENO
21798   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21799   test "x$as_lineno_1" != "x$as_lineno_2" &&
21800   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
21801              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
21802              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
21803              CONFIG_SHELL=$as_dir/$as_base
21804              export CONFIG_SHELL
21805              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
21806            fi;;
21807          esac
21808        done
21809 done
21810 ;;
21811   esac
21812
21813   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21814   # uniformly replaced by the line number.  The first 'sed' inserts a
21815   # line-number line before each line; the second 'sed' does the real
21816   # work.  The second script uses 'N' to pair each line-number line
21817   # with the numbered line, and appends trailing '-' during
21818   # substitution so that $LINENO is not a special case at line end.
21819   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21820   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
21821   sed '=' <$as_myself |
21822     sed '
21823       N
21824       s,$,-,
21825       : loop
21826       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
21827       t loop
21828       s,-$,,
21829       s,^['$as_cr_digits']*\n,,
21830     ' >$as_me.lineno &&
21831   chmod +x $as_me.lineno ||
21832     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
21833 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
21834    { (exit 1); exit 1; }; }
21835
21836   # Don't try to exec as it changes $[0], causing all sort of problems
21837   # (the dirname of $[0] is not the place where we might find the
21838   # original and so on.  Autoconf is especially sensible to this).
21839   . ./$as_me.lineno
21840   # Exit status is that of the last command.
21841   exit
21842 }
21843
21844
21845 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
21846   *c*,-n*) ECHO_N= ECHO_C='
21847 ' ECHO_T='      ' ;;
21848   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
21849   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
21850 esac
21851
21852 if expr a : '\(a\)' >/dev/null 2>&1; then
21853   as_expr=expr
21854 else
21855   as_expr=false
21856 fi
21857
21858 rm -f conf$$ conf$$.exe conf$$.file
21859 echo >conf$$.file
21860 if ln -s conf$$.file conf$$ 2>/dev/null; then
21861   # We could just check for DJGPP; but this test a) works b) is more generic
21862   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
21863   if test -f conf$$.exe; then
21864     # Don't use ln at all; we don't have any links
21865     as_ln_s='cp -p'
21866   else
21867     as_ln_s='ln -s'
21868   fi
21869 elif ln conf$$.file conf$$ 2>/dev/null; then
21870   as_ln_s=ln
21871 else
21872   as_ln_s='cp -p'
21873 fi
21874 rm -f conf$$ conf$$.exe conf$$.file
21875
21876 if mkdir -p . 2>/dev/null; then
21877   as_mkdir_p=:
21878 else
21879   test -d ./-p && rmdir ./-p
21880   as_mkdir_p=false
21881 fi
21882
21883 as_executable_p="test -f"
21884
21885 # Sed expression to map a string onto a valid CPP name.
21886 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21887
21888 # Sed expression to map a string onto a valid variable name.
21889 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21890
21891
21892 # IFS
21893 # We need space, tab and new line, in precisely that order.
21894 as_nl='
21895 '
21896 IFS="   $as_nl"
21897
21898 # CDPATH.
21899 $as_unset CDPATH
21900
21901 exec 6>&1
21902
21903 # Open the log real soon, to keep \$[0] and so on meaningful, and to
21904 # report actual input values of CONFIG_FILES etc. instead of their
21905 # values after options handling.  Logging --version etc. is OK.
21906 exec 5>>config.log
21907 {
21908   echo
21909   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21910 ## Running $as_me. ##
21911 _ASBOX
21912 } >&5
21913 cat >&5 <<_CSEOF
21914
21915 This file was extended by $as_me, which was
21916 generated by GNU Autoconf 2.59.  Invocation command line was
21917
21918   CONFIG_FILES    = $CONFIG_FILES
21919   CONFIG_HEADERS  = $CONFIG_HEADERS
21920   CONFIG_LINKS    = $CONFIG_LINKS
21921   CONFIG_COMMANDS = $CONFIG_COMMANDS
21922   $ $0 $@
21923
21924 _CSEOF
21925 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
21926 echo >&5
21927 _ACEOF
21928
21929 # Files that config.status was made for.
21930 if test -n "$ac_config_files"; then
21931   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
21932 fi
21933
21934 if test -n "$ac_config_headers"; then
21935   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
21936 fi
21937
21938 if test -n "$ac_config_links"; then
21939   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
21940 fi
21941
21942 if test -n "$ac_config_commands"; then
21943   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
21944 fi
21945
21946 cat >>$CONFIG_STATUS <<\_ACEOF
21947
21948 ac_cs_usage="\
21949 \`$as_me' instantiates files from templates according to the
21950 current configuration.
21951
21952 Usage: $0 [OPTIONS] [FILE]...
21953
21954   -h, --help       print this help, then exit
21955   -V, --version    print version number, then exit
21956   -q, --quiet      do not print progress messages
21957   -d, --debug      don't remove temporary files
21958       --recheck    update $as_me by reconfiguring in the same conditions
21959   --file=FILE[:TEMPLATE]
21960                    instantiate the configuration file FILE
21961   --header=FILE[:TEMPLATE]
21962                    instantiate the configuration header FILE
21963
21964 Configuration files:
21965 $config_files
21966
21967 Configuration headers:
21968 $config_headers
21969
21970 Configuration commands:
21971 $config_commands
21972
21973 Report bugs to <bug-autoconf@gnu.org>."
21974 _ACEOF
21975
21976 cat >>$CONFIG_STATUS <<_ACEOF
21977 ac_cs_version="\\
21978 config.status
21979 configured by $0, generated by GNU Autoconf 2.59,
21980   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
21981
21982 Copyright (C) 2003 Free Software Foundation, Inc.
21983 This config.status script is free software; the Free Software Foundation
21984 gives unlimited permission to copy, distribute and modify it."
21985 srcdir=$srcdir
21986 INSTALL="$INSTALL"
21987 _ACEOF
21988
21989 cat >>$CONFIG_STATUS <<\_ACEOF
21990 # If no file are specified by the user, then we need to provide default
21991 # value.  By we need to know if files were specified by the user.
21992 ac_need_defaults=:
21993 while test $# != 0
21994 do
21995   case $1 in
21996   --*=*)
21997     ac_option=`expr "x$1" : 'x\([^=]*\)='`
21998     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
21999     ac_shift=:
22000     ;;
22001   -*)
22002     ac_option=$1
22003     ac_optarg=$2
22004     ac_shift=shift
22005     ;;
22006   *) # This is not an option, so the user has probably given explicit
22007      # arguments.
22008      ac_option=$1
22009      ac_need_defaults=false;;
22010   esac
22011
22012   case $ac_option in
22013   # Handling of the options.
22014 _ACEOF
22015 cat >>$CONFIG_STATUS <<\_ACEOF
22016   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22017     ac_cs_recheck=: ;;
22018   --version | --vers* | -V )
22019     echo "$ac_cs_version"; exit 0 ;;
22020   --he | --h)
22021     # Conflict between --help and --header
22022     { { echo "$as_me:$LINENO: error: ambiguous option: $1
22023 Try \`$0 --help' for more information." >&5
22024 echo "$as_me: error: ambiguous option: $1
22025 Try \`$0 --help' for more information." >&2;}
22026    { (exit 1); exit 1; }; };;
22027   --help | --hel | -h )
22028     echo "$ac_cs_usage"; exit 0 ;;
22029   --debug | --d* | -d )
22030     debug=: ;;
22031   --file | --fil | --fi | --f )
22032     $ac_shift
22033     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22034     ac_need_defaults=false;;
22035   --header | --heade | --head | --hea )
22036     $ac_shift
22037     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22038     ac_need_defaults=false;;
22039   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22040   | -silent | --silent | --silen | --sile | --sil | --si | --s)
22041     ac_cs_silent=: ;;
22042
22043   # This is an error.
22044   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22045 Try \`$0 --help' for more information." >&5
22046 echo "$as_me: error: unrecognized option: $1
22047 Try \`$0 --help' for more information." >&2;}
22048    { (exit 1); exit 1; }; } ;;
22049
22050   *) ac_config_targets="$ac_config_targets $1" ;;
22051
22052   esac
22053   shift
22054 done
22055
22056 ac_configure_extra_args=
22057
22058 if $ac_cs_silent; then
22059   exec 6>/dev/null
22060   ac_configure_extra_args="$ac_configure_extra_args --silent"
22061 fi
22062
22063 _ACEOF
22064 cat >>$CONFIG_STATUS <<_ACEOF
22065 if \$ac_cs_recheck; then
22066   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22067   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22068 fi
22069
22070 _ACEOF
22071
22072
22073
22074
22075
22076 cat >>$CONFIG_STATUS <<\_ACEOF
22077 for ac_config_target in $ac_config_targets
22078 do
22079   case "$ac_config_target" in
22080   # Handling of arguments.
22081   "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
22082   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22083   "scripts/startmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
22084   "scripts/stopmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
22085   "scripts/btraceback" ) CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
22086   "scripts/startit" ) CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
22087   "scripts/stopit" ) CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
22088   "scripts/bconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
22089   "scripts/gconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
22090   "scripts/bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
22091   "scripts/devel_bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
22092   "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
22093   "scripts/logrotate" ) CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
22094   "scripts/bacula.desktop.gnome1" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
22095   "scripts/bacula.desktop.gnome2" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
22096   "scripts/bacula.desktop.gnome1.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
22097   "scripts/bacula.desktop.gnome2.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
22098   "scripts/bacula.desktop.gnome1.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
22099   "scripts/bacula.desktop.gnome2.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
22100   "scripts/gnome-console.console_apps" ) CONFIG_FILES="$CONFIG_FILES scripts/gnome-console.console_apps" ;;
22101   "scripts/mtx-changer" ) CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
22102   "scripts/dvd-writepart" ) CONFIG_FILES="$CONFIG_FILES scripts/dvd-writepart" ;;
22103   "scripts/dvd-freespace" ) CONFIG_FILES="$CONFIG_FILES scripts/dvd-freespace" ;;
22104   "scripts/bacula-tray-monitor.desktop" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
22105   "scripts/logwatch/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
22106   "scripts/logwatch/logfile.bacula.conf" ) CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
22107   "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
22108   "src/host.h" ) CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
22109   "src/console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
22110   "src/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
22111   "src/gnome2-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
22112   "src/gnome2-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/gnome-console.conf" ;;
22113   "src/wx-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
22114   "src/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/wx-console.conf" ;;
22115   "src/tray-monitor/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
22116   "src/tray-monitor/tray-monitor.conf" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
22117   "src/dird/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
22118   "src/dird/bacula-dir.conf" ) CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
22119   "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
22120   "src/stored/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
22121   "src/stored/bacula-sd.conf" ) CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
22122   "src/filed/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
22123   "src/filed/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
22124   "src/filed/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/win32/Makefile" ;;
22125   "src/cats/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
22126   "src/cats/make_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
22127   "src/cats/delete_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
22128   "src/cats/create_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
22129   "src/cats/update_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
22130   "src/cats/make_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
22131   "src/cats/grant_postgresql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
22132   "src/cats/drop_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
22133   "src/cats/drop_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
22134   "src/cats/create_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
22135   "src/cats/update_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
22136   "src/cats/make_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
22137   "src/cats/grant_mysql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
22138   "src/cats/drop_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
22139   "src/cats/drop_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
22140   "src/cats/create_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
22141   "src/cats/update_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
22142   "src/cats/make_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
22143   "src/cats/grant_sqlite_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
22144   "src/cats/drop_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
22145   "src/cats/drop_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
22146   "src/cats/create_sqlite3_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
22147   "src/cats/update_sqlite3_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
22148   "src/cats/make_sqlite3_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
22149   "src/cats/grant_sqlite3_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
22150   "src/cats/drop_sqlite3_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
22151   "src/cats/drop_sqlite3_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
22152   "src/cats/sqlite" ) CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
22153   "src/cats/mysql" ) CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
22154   "src/cats/create_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
22155   "src/cats/update_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
22156   "src/cats/make_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
22157   "src/cats/grant_bdb_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
22158   "src/cats/drop_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
22159   "src/cats/drop_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
22160   "src/cats/create_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
22161   "src/cats/update_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
22162   "src/cats/grant_bacula_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
22163   "src/cats/make_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
22164   "src/cats/drop_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
22165   "src/cats/drop_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
22166   "src/findlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
22167   "src/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
22168   "src/win32/winbacula.nsi" ) CONFIG_FILES="$CONFIG_FILES src/win32/winbacula.nsi" ;;
22169   "src/win32/baculafd/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/baculafd/bacula-fd.conf" ;;
22170   "src/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/win32/Makefile" ;;
22171   "src/win32/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/console/bconsole.conf" ;;
22172   "src/win32/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/wx-console/wx-console.conf" ;;
22173   "src/win32/pebuilder/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/win32/pebuilder/Makefile" ;;
22174   "$PFILES" ) CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
22175   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
22176   "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
22177   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22178 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22179    { (exit 1); exit 1; }; };;
22180   esac
22181 done
22182
22183 # If the user did not use the arguments to specify the items to instantiate,
22184 # then the envvar interface is used.  Set only those that are not.
22185 # We use the long form for the default assignment because of an extremely
22186 # bizarre bug on SunOS 4.1.3.
22187 if $ac_need_defaults; then
22188   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22189   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22190   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22191 fi
22192
22193 # Have a temporary directory for convenience.  Make it in the build tree
22194 # simply because there is no reason to put it here, and in addition,
22195 # creating and moving files from /tmp can sometimes cause problems.
22196 # Create a temporary directory, and hook for its removal unless debugging.
22197 $debug ||
22198 {
22199   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22200   trap '{ (exit 1); exit 1; }' 1 2 13 15
22201 }
22202
22203 # Create a (secure) tmp directory for tmp files.
22204
22205 {
22206   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22207   test -n "$tmp" && test -d "$tmp"
22208 }  ||
22209 {
22210   tmp=./confstat$$-$RANDOM
22211   (umask 077 && mkdir $tmp)
22212 } ||
22213 {
22214    echo "$me: cannot create a temporary directory in ." >&2
22215    { (exit 1); exit 1; }
22216 }
22217
22218 _ACEOF
22219
22220 cat >>$CONFIG_STATUS <<_ACEOF
22221
22222 #
22223 # CONFIG_FILES section.
22224 #
22225
22226 # No need to generate the scripts if there are no CONFIG_FILES.
22227 # This happens for instance when ./config.status config.h
22228 if test -n "\$CONFIG_FILES"; then
22229   # Protect against being on the right side of a sed subst in config.status.
22230   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22231    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22232 s,@SHELL@,$SHELL,;t t
22233 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22234 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22235 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22236 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22237 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22238 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22239 s,@exec_prefix@,$exec_prefix,;t t
22240 s,@prefix@,$prefix,;t t
22241 s,@program_transform_name@,$program_transform_name,;t t
22242 s,@bindir@,$bindir,;t t
22243 s,@sbindir@,$sbindir,;t t
22244 s,@libexecdir@,$libexecdir,;t t
22245 s,@datadir@,$datadir,;t t
22246 s,@sysconfdir@,$sysconfdir,;t t
22247 s,@sharedstatedir@,$sharedstatedir,;t t
22248 s,@localstatedir@,$localstatedir,;t t
22249 s,@libdir@,$libdir,;t t
22250 s,@includedir@,$includedir,;t t
22251 s,@oldincludedir@,$oldincludedir,;t t
22252 s,@infodir@,$infodir,;t t
22253 s,@mandir@,$mandir,;t t
22254 s,@build_alias@,$build_alias,;t t
22255 s,@host_alias@,$host_alias,;t t
22256 s,@target_alias@,$target_alias,;t t
22257 s,@DEFS@,$DEFS,;t t
22258 s,@ECHO_C@,$ECHO_C,;t t
22259 s,@ECHO_N@,$ECHO_N,;t t
22260 s,@ECHO_T@,$ECHO_T,;t t
22261 s,@LIBS@,$LIBS,;t t
22262 s,@BUILD_DIR@,$BUILD_DIR,;t t
22263 s,@TRUEPRG@,$TRUEPRG,;t t
22264 s,@FALSEPRG@,$FALSEPRG,;t t
22265 s,@VERSION@,$VERSION,;t t
22266 s,@DATE@,$DATE,;t t
22267 s,@LSMDATE@,$LSMDATE,;t t
22268 s,@CC@,$CC,;t t
22269 s,@CFLAGS@,$CFLAGS,;t t
22270 s,@LDFLAGS@,$LDFLAGS,;t t
22271 s,@CPPFLAGS@,$CPPFLAGS,;t t
22272 s,@ac_ct_CC@,$ac_ct_CC,;t t
22273 s,@EXEEXT@,$EXEEXT,;t t
22274 s,@OBJEXT@,$OBJEXT,;t t
22275 s,@CXX@,$CXX,;t t
22276 s,@CXXFLAGS@,$CXXFLAGS,;t t
22277 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
22278 s,@CPP@,$CPP,;t t
22279 s,@EGREP@,$EGREP,;t t
22280 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22281 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22282 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22283 s,@RANLIB@,$RANLIB,;t t
22284 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22285 s,@MV@,$MV,;t t
22286 s,@RM@,$RM,;t t
22287 s,@CP@,$CP,;t t
22288 s,@SED@,$SED,;t t
22289 s,@ECHO@,$ECHO,;t t
22290 s,@CMP@,$CMP,;t t
22291 s,@TBL@,$TBL,;t t
22292 s,@AR@,$AR,;t t
22293 s,@OPENSSL@,$OPENSSL,;t t
22294 s,@MTX@,$MTX,;t t
22295 s,@DF@,$DF,;t t
22296 s,@MKISOFS@,$MKISOFS,;t t
22297 s,@PYTHON@,$PYTHON,;t t
22298 s,@GROWISOFS@,$GROWISOFS,;t t
22299 s,@DVDRWMEDIAINFO@,$DVDRWMEDIAINFO,;t t
22300 s,@PKGCONFIG@,$PKGCONFIG,;t t
22301 s,@WXCONFIG@,$WXCONFIG,;t t
22302 s,@WXFLAGS@,$WXFLAGS,;t t
22303 s,@CDRECORD@,$CDRECORD,;t t
22304 s,@PIDOF@,$PIDOF,;t t
22305 s,@AWK@,$AWK,;t t
22306 s,@ARFLAGS@,$ARFLAGS,;t t
22307 s,@MAKE_SHELL@,$MAKE_SHELL,;t t
22308 s,@LOCAL_LIBS@,$LOCAL_LIBS,;t t
22309 s,@LOCAL_CFLAGS@,$LOCAL_CFLAGS,;t t
22310 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
22311 s,@LOCAL_DEFS@,$LOCAL_DEFS,;t t
22312 s,@build@,$build,;t t
22313 s,@build_cpu@,$build_cpu,;t t
22314 s,@build_vendor@,$build_vendor,;t t
22315 s,@build_os@,$build_os,;t t
22316 s,@host@,$host,;t t
22317 s,@host_cpu@,$host_cpu,;t t
22318 s,@host_vendor@,$host_vendor,;t t
22319 s,@host_os@,$host_os,;t t
22320 s,@HAVE_SUN_OS_TRUE@,$HAVE_SUN_OS_TRUE,;t t
22321 s,@HAVE_SUN_OS_FALSE@,$HAVE_SUN_OS_FALSE,;t t
22322 s,@HAVE_OSF1_OS_TRUE@,$HAVE_OSF1_OS_TRUE,;t t
22323 s,@HAVE_OSF1_OS_FALSE@,$HAVE_OSF1_OS_FALSE,;t t
22324 s,@HAVE_AIX_OS_TRUE@,$HAVE_AIX_OS_TRUE,;t t
22325 s,@HAVE_AIX_OS_FALSE@,$HAVE_AIX_OS_FALSE,;t t
22326 s,@HAVE_HPUX_OS_TRUE@,$HAVE_HPUX_OS_TRUE,;t t
22327 s,@HAVE_HPUX_OS_FALSE@,$HAVE_HPUX_OS_FALSE,;t t
22328 s,@HAVE_LINUX_OS_TRUE@,$HAVE_LINUX_OS_TRUE,;t t
22329 s,@HAVE_LINUX_OS_FALSE@,$HAVE_LINUX_OS_FALSE,;t t
22330 s,@HAVE_FREEBSD_OS_TRUE@,$HAVE_FREEBSD_OS_TRUE,;t t
22331 s,@HAVE_FREEBSD_OS_FALSE@,$HAVE_FREEBSD_OS_FALSE,;t t
22332 s,@HAVE_NETBSD_OS_TRUE@,$HAVE_NETBSD_OS_TRUE,;t t
22333 s,@HAVE_NETBSD_OS_FALSE@,$HAVE_NETBSD_OS_FALSE,;t t
22334 s,@HAVE_OPENBSD_OS_TRUE@,$HAVE_OPENBSD_OS_TRUE,;t t
22335 s,@HAVE_OPENBSD_OS_FALSE@,$HAVE_OPENBSD_OS_FALSE,;t t
22336 s,@HAVE_BSDI_OS_TRUE@,$HAVE_BSDI_OS_TRUE,;t t
22337 s,@HAVE_BSDI_OS_FALSE@,$HAVE_BSDI_OS_FALSE,;t t
22338 s,@HAVE_SGI_OS_TRUE@,$HAVE_SGI_OS_TRUE,;t t
22339 s,@HAVE_SGI_OS_FALSE@,$HAVE_SGI_OS_FALSE,;t t
22340 s,@HAVE_IRIX_OS_TRUE@,$HAVE_IRIX_OS_TRUE,;t t
22341 s,@HAVE_IRIX_OS_FALSE@,$HAVE_IRIX_OS_FALSE,;t t
22342 s,@HAVE_DARWIN_OS_TRUE@,$HAVE_DARWIN_OS_TRUE,;t t
22343 s,@HAVE_DARWIN_OS_FALSE@,$HAVE_DARWIN_OS_FALSE,;t t
22344 s,@INSIDE_GNOME_COMMON_TRUE@,$INSIDE_GNOME_COMMON_TRUE,;t t
22345 s,@INSIDE_GNOME_COMMON_FALSE@,$INSIDE_GNOME_COMMON_FALSE,;t t
22346 s,@MSGFMT@,$MSGFMT,;t t
22347 s,@GNOME_INCLUDEDIR@,$GNOME_INCLUDEDIR,;t t
22348 s,@GNOMEUI_LIBS@,$GNOMEUI_LIBS,;t t
22349 s,@GNOME_LIBDIR@,$GNOME_LIBDIR,;t t
22350 s,@GNOME_LIBS@,$GNOME_LIBS,;t t
22351 s,@GNOME_DIR@,$GNOME_DIR,;t t
22352 s,@WXCONS_CPPFLAGS@,$WXCONS_CPPFLAGS,;t t
22353 s,@WXCONS_LDFLAGS@,$WXCONS_LDFLAGS,;t t
22354 s,@WX_DIR@,$WX_DIR,;t t
22355 s,@TRAY_MONITOR_CPPFLAGS@,$TRAY_MONITOR_CPPFLAGS,;t t
22356 s,@TRAY_MONITOR_LDFLAGS@,$TRAY_MONITOR_LDFLAGS,;t t
22357 s,@TRAY_MONITOR_DIR@,$TRAY_MONITOR_DIR,;t t
22358 s,@TTOOL_LDFLAGS@,$TTOOL_LDFLAGS,;t t
22359 s,@STATIC_FD@,$STATIC_FD,;t t
22360 s,@STATIC_SD@,$STATIC_SD,;t t
22361 s,@STATIC_DIR@,$STATIC_DIR,;t t
22362 s,@STATIC_CONS@,$STATIC_CONS,;t t
22363 s,@STATIC_GNOME_CONS@,$STATIC_GNOME_CONS,;t t
22364 s,@STATIC_WX_CONS@,$STATIC_WX_CONS,;t t
22365 s,@ALL_DIRS@,$ALL_DIRS,;t t
22366 s,@CONS_INC@,$CONS_INC,;t t
22367 s,@CONS_OBJ@,$CONS_OBJ,;t t
22368 s,@CONS_SRC@,$CONS_SRC,;t t
22369 s,@CONS_LIBS@,$CONS_LIBS,;t t
22370 s,@CONS_LDFLAGS@,$CONS_LDFLAGS,;t t
22371 s,@READLINE_SRC@,$READLINE_SRC,;t t
22372 s,@PYTHON_LIBS@,$PYTHON_LIBS,;t t
22373 s,@PYTHON_INCDIR@,$PYTHON_INCDIR,;t t
22374 s,@OPENSSL_LIBS@,$OPENSSL_LIBS,;t t
22375 s,@OPENSSL_INC@,$OPENSSL_INC,;t t
22376 s,@working_dir@,$working_dir,;t t
22377 s,@scriptdir@,$scriptdir,;t t
22378 s,@dump_email@,$dump_email,;t t
22379 s,@job_email@,$job_email,;t t
22380 s,@smtp_host@,$smtp_host,;t t
22381 s,@piddir@,$piddir,;t t
22382 s,@subsysdir@,$subsysdir,;t t
22383 s,@baseport@,$baseport,;t t
22384 s,@dir_port@,$dir_port,;t t
22385 s,@fd_port@,$fd_port,;t t
22386 s,@sd_port@,$sd_port,;t t
22387 s,@dir_password@,$dir_password,;t t
22388 s,@fd_password@,$fd_password,;t t
22389 s,@sd_password@,$sd_password,;t t
22390 s,@mon_dir_password@,$mon_dir_password,;t t
22391 s,@mon_fd_password@,$mon_fd_password,;t t
22392 s,@mon_sd_password@,$mon_sd_password,;t t
22393 s,@dir_user@,$dir_user,;t t
22394 s,@dir_group@,$dir_group,;t t
22395 s,@sd_user@,$sd_user,;t t
22396 s,@sd_group@,$sd_group,;t t
22397 s,@fd_user@,$fd_user,;t t
22398 s,@fd_group@,$fd_group,;t t
22399 s,@SBINPERM@,$SBINPERM,;t t
22400 s,@SQL_LFLAGS@,$SQL_LFLAGS,;t t
22401 s,@SQL_INCLUDE@,$SQL_INCLUDE,;t t
22402 s,@SQL_BINDIR@,$SQL_BINDIR,;t t
22403 s,@cats@,$cats,;t t
22404 s,@DB_NAME@,$DB_NAME,;t t
22405 s,@GETCONF@,$GETCONF,;t t
22406 s,@ac_ct_GETCONF@,$ac_ct_GETCONF,;t t
22407 s,@X_CFLAGS@,$X_CFLAGS,;t t
22408 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
22409 s,@X_LIBS@,$X_LIBS,;t t
22410 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
22411 s,@LIBOBJS@,$LIBOBJS,;t t
22412 s,@ALLOCA@,$ALLOCA,;t t
22413 s,@FDLIBS@,$FDLIBS,;t t
22414 s,@DEBUG@,$DEBUG,;t t
22415 s,@DINCLUDE@,$DINCLUDE,;t t
22416 s,@DLIB@,$DLIB,;t t
22417 s,@DB_LIBS@,$DB_LIBS,;t t
22418 s,@WCFLAGS@,$WCFLAGS,;t t
22419 s,@WLDFLAGS@,$WLDFLAGS,;t t
22420 s,@OBJLIST@,$OBJLIST,;t t
22421 s,@hostname@,$hostname,;t t
22422 s,@TAPEDRIVE@,$TAPEDRIVE,;t t
22423 s,@PSCMD@,$PSCMD,;t t
22424 s,@WIN32@,$WIN32,;t t
22425 s,@MACOSX@,$MACOSX,;t t
22426 s,@DISTNAME@,$DISTNAME,;t t
22427 s,@DISTVER@,$DISTVER,;t t
22428 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22429 /@MCOMMON@/r $MCOMMON
22430 s,@MCOMMON@,,;t t
22431 CEOF
22432
22433 _ACEOF
22434
22435   cat >>$CONFIG_STATUS <<\_ACEOF
22436   # Split the substitutions into bite-sized pieces for seds with
22437   # small command number limits, like on Digital OSF/1 and HP-UX.
22438   ac_max_sed_lines=48
22439   ac_sed_frag=1 # Number of current file.
22440   ac_beg=1 # First line for current file.
22441   ac_end=$ac_max_sed_lines # Line after last line for current file.
22442   ac_more_lines=:
22443   ac_sed_cmds=
22444   while $ac_more_lines; do
22445     if test $ac_beg -gt 1; then
22446       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22447     else
22448       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22449     fi
22450     if test ! -s $tmp/subs.frag; then
22451       ac_more_lines=false
22452     else
22453       # The purpose of the label and of the branching condition is to
22454       # speed up the sed processing (if there are no `@' at all, there
22455       # is no need to browse any of the substitutions).
22456       # These are the two extra sed commands mentioned above.
22457       (echo ':t
22458   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22459       if test -z "$ac_sed_cmds"; then
22460         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22461       else
22462         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22463       fi
22464       ac_sed_frag=`expr $ac_sed_frag + 1`
22465       ac_beg=$ac_end
22466       ac_end=`expr $ac_end + $ac_max_sed_lines`
22467     fi
22468   done
22469   if test -z "$ac_sed_cmds"; then
22470     ac_sed_cmds=cat
22471   fi
22472 fi # test -n "$CONFIG_FILES"
22473
22474 _ACEOF
22475 cat >>$CONFIG_STATUS <<\_ACEOF
22476 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
22477   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22478   case $ac_file in
22479   - | *:- | *:-:* ) # input from stdin
22480         cat >$tmp/stdin
22481         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22482         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22483   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22484         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22485   * )   ac_file_in=$ac_file.in ;;
22486   esac
22487
22488   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22489   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22490 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22491          X"$ac_file" : 'X\(//\)[^/]' \| \
22492          X"$ac_file" : 'X\(//\)$' \| \
22493          X"$ac_file" : 'X\(/\)' \| \
22494          .     : '\(.\)' 2>/dev/null ||
22495 echo X"$ac_file" |
22496     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22497           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22498           /^X\(\/\/\)$/{ s//\1/; q; }
22499           /^X\(\/\).*/{ s//\1/; q; }
22500           s/.*/./; q'`
22501   { if $as_mkdir_p; then
22502     mkdir -p "$ac_dir"
22503   else
22504     as_dir="$ac_dir"
22505     as_dirs=
22506     while test ! -d "$as_dir"; do
22507       as_dirs="$as_dir $as_dirs"
22508       as_dir=`(dirname "$as_dir") 2>/dev/null ||
22509 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22510          X"$as_dir" : 'X\(//\)[^/]' \| \
22511          X"$as_dir" : 'X\(//\)$' \| \
22512          X"$as_dir" : 'X\(/\)' \| \
22513          .     : '\(.\)' 2>/dev/null ||
22514 echo X"$as_dir" |
22515     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22516           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22517           /^X\(\/\/\)$/{ s//\1/; q; }
22518           /^X\(\/\).*/{ s//\1/; q; }
22519           s/.*/./; q'`
22520     done
22521     test ! -n "$as_dirs" || mkdir $as_dirs
22522   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22523 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22524    { (exit 1); exit 1; }; }; }
22525
22526   ac_builddir=.
22527
22528 if test "$ac_dir" != .; then
22529   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22530   # A "../" for each directory in $ac_dir_suffix.
22531   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22532 else
22533   ac_dir_suffix= ac_top_builddir=
22534 fi
22535
22536 case $srcdir in
22537   .)  # No --srcdir option.  We are building in place.
22538     ac_srcdir=.
22539     if test -z "$ac_top_builddir"; then
22540        ac_top_srcdir=.
22541     else
22542        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22543     fi ;;
22544   [\\/]* | ?:[\\/]* )  # Absolute path.
22545     ac_srcdir=$srcdir$ac_dir_suffix;
22546     ac_top_srcdir=$srcdir ;;
22547   *) # Relative path.
22548     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22549     ac_top_srcdir=$ac_top_builddir$srcdir ;;
22550 esac
22551
22552 # Do not use `cd foo && pwd` to compute absolute paths, because
22553 # the directories may not exist.
22554 case `pwd` in
22555 .) ac_abs_builddir="$ac_dir";;
22556 *)
22557   case "$ac_dir" in
22558   .) ac_abs_builddir=`pwd`;;
22559   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22560   *) ac_abs_builddir=`pwd`/"$ac_dir";;
22561   esac;;
22562 esac
22563 case $ac_abs_builddir in
22564 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22565 *)
22566   case ${ac_top_builddir}. in
22567   .) ac_abs_top_builddir=$ac_abs_builddir;;
22568   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22569   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22570   esac;;
22571 esac
22572 case $ac_abs_builddir in
22573 .) ac_abs_srcdir=$ac_srcdir;;
22574 *)
22575   case $ac_srcdir in
22576   .) ac_abs_srcdir=$ac_abs_builddir;;
22577   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22578   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22579   esac;;
22580 esac
22581 case $ac_abs_builddir in
22582 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22583 *)
22584   case $ac_top_srcdir in
22585   .) ac_abs_top_srcdir=$ac_abs_builddir;;
22586   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22587   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22588   esac;;
22589 esac
22590
22591
22592   case $INSTALL in
22593   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22594   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
22595   esac
22596
22597   if test x"$ac_file" != x-; then
22598     { echo "$as_me:$LINENO: creating $ac_file" >&5
22599 echo "$as_me: creating $ac_file" >&6;}
22600     rm -f "$ac_file"
22601   fi
22602   # Let's still pretend it is `configure' which instantiates (i.e., don't
22603   # use $as_me), people would be surprised to read:
22604   #    /* config.h.  Generated by config.status.  */
22605   if test x"$ac_file" = x-; then
22606     configure_input=
22607   else
22608     configure_input="$ac_file.  "
22609   fi
22610   configure_input=$configure_input"Generated from `echo $ac_file_in |
22611                                      sed 's,.*/,,'` by configure."
22612
22613   # First look for the input files in the build tree, otherwise in the
22614   # src tree.
22615   ac_file_inputs=`IFS=:
22616     for f in $ac_file_in; do
22617       case $f in
22618       -) echo $tmp/stdin ;;
22619       [\\/$]*)
22620          # Absolute (can't be DOS-style, as IFS=:)
22621          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22622 echo "$as_me: error: cannot find input file: $f" >&2;}
22623    { (exit 1); exit 1; }; }
22624          echo "$f";;
22625       *) # Relative
22626          if test -f "$f"; then
22627            # Build tree
22628            echo "$f"
22629          elif test -f "$srcdir/$f"; then
22630            # Source tree
22631            echo "$srcdir/$f"
22632          else
22633            # /dev/null tree
22634            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22635 echo "$as_me: error: cannot find input file: $f" >&2;}
22636    { (exit 1); exit 1; }; }
22637          fi;;
22638       esac
22639     done` || { (exit 1); exit 1; }
22640 _ACEOF
22641 cat >>$CONFIG_STATUS <<_ACEOF
22642   sed "$ac_vpsub
22643 $extrasub
22644 _ACEOF
22645 cat >>$CONFIG_STATUS <<\_ACEOF
22646 :t
22647 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22648 s,@configure_input@,$configure_input,;t t
22649 s,@srcdir@,$ac_srcdir,;t t
22650 s,@abs_srcdir@,$ac_abs_srcdir,;t t
22651 s,@top_srcdir@,$ac_top_srcdir,;t t
22652 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
22653 s,@builddir@,$ac_builddir,;t t
22654 s,@abs_builddir@,$ac_abs_builddir,;t t
22655 s,@top_builddir@,$ac_top_builddir,;t t
22656 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
22657 s,@INSTALL@,$ac_INSTALL,;t t
22658 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22659   rm -f $tmp/stdin
22660   if test x"$ac_file" != x-; then
22661     mv $tmp/out $ac_file
22662   else
22663     cat $tmp/out
22664     rm -f $tmp/out
22665   fi
22666
22667 done
22668 _ACEOF
22669 cat >>$CONFIG_STATUS <<\_ACEOF
22670
22671 #
22672 # CONFIG_HEADER section.
22673 #
22674
22675 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22676 # NAME is the cpp macro being defined and VALUE is the value it is being given.
22677 #
22678 # ac_d sets the value in "#define NAME VALUE" lines.
22679 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
22680 ac_dB='[         ].*$,\1#\2'
22681 ac_dC=' '
22682 ac_dD=',;t'
22683 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22684 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
22685 ac_uB='$,\1#\2define\3'
22686 ac_uC=' '
22687 ac_uD=',;t'
22688
22689 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
22690   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22691   case $ac_file in
22692   - | *:- | *:-:* ) # input from stdin
22693         cat >$tmp/stdin
22694         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22695         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22696   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22697         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22698   * )   ac_file_in=$ac_file.in ;;
22699   esac
22700
22701   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
22702 echo "$as_me: creating $ac_file" >&6;}
22703
22704   # First look for the input files in the build tree, otherwise in the
22705   # src tree.
22706   ac_file_inputs=`IFS=:
22707     for f in $ac_file_in; do
22708       case $f in
22709       -) echo $tmp/stdin ;;
22710       [\\/$]*)
22711          # Absolute (can't be DOS-style, as IFS=:)
22712          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22713 echo "$as_me: error: cannot find input file: $f" >&2;}
22714    { (exit 1); exit 1; }; }
22715          # Do quote $f, to prevent DOS paths from being IFS'd.
22716          echo "$f";;
22717       *) # Relative
22718          if test -f "$f"; then
22719            # Build tree
22720            echo "$f"
22721          elif test -f "$srcdir/$f"; then
22722            # Source tree
22723            echo "$srcdir/$f"
22724          else
22725            # /dev/null tree
22726            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22727 echo "$as_me: error: cannot find input file: $f" >&2;}
22728    { (exit 1); exit 1; }; }
22729          fi;;
22730       esac
22731     done` || { (exit 1); exit 1; }
22732   # Remove the trailing spaces.
22733   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
22734
22735 _ACEOF
22736
22737 # Transform confdefs.h into two sed scripts, `conftest.defines' and
22738 # `conftest.undefs', that substitutes the proper values into
22739 # config.h.in to produce config.h.  The first handles `#define'
22740 # templates, and the second `#undef' templates.
22741 # And first: Protect against being on the right side of a sed subst in
22742 # config.status.  Protect against being in an unquoted here document
22743 # in config.status.
22744 rm -f conftest.defines conftest.undefs
22745 # Using a here document instead of a string reduces the quoting nightmare.
22746 # Putting comments in sed scripts is not portable.
22747 #
22748 # `end' is used to avoid that the second main sed command (meant for
22749 # 0-ary CPP macros) applies to n-ary macro definitions.
22750 # See the Autoconf documentation for `clear'.
22751 cat >confdef2sed.sed <<\_ACEOF
22752 s/[\\&,]/\\&/g
22753 s,[\\$`],\\&,g
22754 t clear
22755 : clear
22756 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
22757 t end
22758 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
22759 : end
22760 _ACEOF
22761 # If some macros were called several times there might be several times
22762 # the same #defines, which is useless.  Nevertheless, we may not want to
22763 # sort them, since we want the *last* AC-DEFINE to be honored.
22764 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
22765 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
22766 rm -f confdef2sed.sed
22767
22768 # This sed command replaces #undef with comments.  This is necessary, for
22769 # example, in the case of _POSIX_SOURCE, which is predefined and required
22770 # on some systems where configure will not decide to define it.
22771 cat >>conftest.undefs <<\_ACEOF
22772 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
22773 _ACEOF
22774
22775 # Break up conftest.defines because some shells have a limit on the size
22776 # of here documents, and old seds have small limits too (100 cmds).
22777 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
22778 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
22779 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
22780 echo '  :' >>$CONFIG_STATUS
22781 rm -f conftest.tail
22782 while grep . conftest.defines >/dev/null
22783 do
22784   # Write a limited-size here document to $tmp/defines.sed.
22785   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
22786   # Speed up: don't consider the non `#define' lines.
22787   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
22788   # Work around the forget-to-reset-the-flag bug.
22789   echo 't clr' >>$CONFIG_STATUS
22790   echo ': clr' >>$CONFIG_STATUS
22791   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
22792   echo 'CEOF
22793   sed -f $tmp/defines.sed $tmp/in >$tmp/out
22794   rm -f $tmp/in
22795   mv $tmp/out $tmp/in
22796 ' >>$CONFIG_STATUS
22797   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
22798   rm -f conftest.defines
22799   mv conftest.tail conftest.defines
22800 done
22801 rm -f conftest.defines
22802 echo '  fi # grep' >>$CONFIG_STATUS
22803 echo >>$CONFIG_STATUS
22804
22805 # Break up conftest.undefs because some shells have a limit on the size
22806 # of here documents, and old seds have small limits too (100 cmds).
22807 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
22808 rm -f conftest.tail
22809 while grep . conftest.undefs >/dev/null
22810 do
22811   # Write a limited-size here document to $tmp/undefs.sed.
22812   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
22813   # Speed up: don't consider the non `#undef'
22814   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
22815   # Work around the forget-to-reset-the-flag bug.
22816   echo 't clr' >>$CONFIG_STATUS
22817   echo ': clr' >>$CONFIG_STATUS
22818   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
22819   echo 'CEOF
22820   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
22821   rm -f $tmp/in
22822   mv $tmp/out $tmp/in
22823 ' >>$CONFIG_STATUS
22824   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
22825   rm -f conftest.undefs
22826   mv conftest.tail conftest.undefs
22827 done
22828 rm -f conftest.undefs
22829
22830 cat >>$CONFIG_STATUS <<\_ACEOF
22831   # Let's still pretend it is `configure' which instantiates (i.e., don't
22832   # use $as_me), people would be surprised to read:
22833   #    /* config.h.  Generated by config.status.  */
22834   if test x"$ac_file" = x-; then
22835     echo "/* Generated by configure.  */" >$tmp/config.h
22836   else
22837     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
22838   fi
22839   cat $tmp/in >>$tmp/config.h
22840   rm -f $tmp/in
22841   if test x"$ac_file" != x-; then
22842     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
22843       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22844 echo "$as_me: $ac_file is unchanged" >&6;}
22845     else
22846       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22847 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22848          X"$ac_file" : 'X\(//\)[^/]' \| \
22849          X"$ac_file" : 'X\(//\)$' \| \
22850          X"$ac_file" : 'X\(/\)' \| \
22851          .     : '\(.\)' 2>/dev/null ||
22852 echo X"$ac_file" |
22853     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22854           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22855           /^X\(\/\/\)$/{ s//\1/; q; }
22856           /^X\(\/\).*/{ s//\1/; q; }
22857           s/.*/./; q'`
22858       { if $as_mkdir_p; then
22859     mkdir -p "$ac_dir"
22860   else
22861     as_dir="$ac_dir"
22862     as_dirs=
22863     while test ! -d "$as_dir"; do
22864       as_dirs="$as_dir $as_dirs"
22865       as_dir=`(dirname "$as_dir") 2>/dev/null ||
22866 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22867          X"$as_dir" : 'X\(//\)[^/]' \| \
22868          X"$as_dir" : 'X\(//\)$' \| \
22869          X"$as_dir" : 'X\(/\)' \| \
22870          .     : '\(.\)' 2>/dev/null ||
22871 echo X"$as_dir" |
22872     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22873           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22874           /^X\(\/\/\)$/{ s//\1/; q; }
22875           /^X\(\/\).*/{ s//\1/; q; }
22876           s/.*/./; q'`
22877     done
22878     test ! -n "$as_dirs" || mkdir $as_dirs
22879   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22880 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22881    { (exit 1); exit 1; }; }; }
22882
22883       rm -f $ac_file
22884       mv $tmp/config.h $ac_file
22885     fi
22886   else
22887     cat $tmp/config.h
22888     rm -f $tmp/config.h
22889   fi
22890 done
22891 _ACEOF
22892 cat >>$CONFIG_STATUS <<\_ACEOF
22893
22894 #
22895 # CONFIG_COMMANDS section.
22896 #
22897 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
22898   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
22899   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
22900   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
22901 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22902          X"$ac_dest" : 'X\(//\)[^/]' \| \
22903          X"$ac_dest" : 'X\(//\)$' \| \
22904          X"$ac_dest" : 'X\(/\)' \| \
22905          .     : '\(.\)' 2>/dev/null ||
22906 echo X"$ac_dest" |
22907     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22908           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22909           /^X\(\/\/\)$/{ s//\1/; q; }
22910           /^X\(\/\).*/{ s//\1/; q; }
22911           s/.*/./; q'`
22912   { if $as_mkdir_p; then
22913     mkdir -p "$ac_dir"
22914   else
22915     as_dir="$ac_dir"
22916     as_dirs=
22917     while test ! -d "$as_dir"; do
22918       as_dirs="$as_dir $as_dirs"
22919       as_dir=`(dirname "$as_dir") 2>/dev/null ||
22920 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22921          X"$as_dir" : 'X\(//\)[^/]' \| \
22922          X"$as_dir" : 'X\(//\)$' \| \
22923          X"$as_dir" : 'X\(/\)' \| \
22924          .     : '\(.\)' 2>/dev/null ||
22925 echo X"$as_dir" |
22926     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22927           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22928           /^X\(\/\/\)$/{ s//\1/; q; }
22929           /^X\(\/\).*/{ s//\1/; q; }
22930           s/.*/./; q'`
22931     done
22932     test ! -n "$as_dirs" || mkdir $as_dirs
22933   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22934 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22935    { (exit 1); exit 1; }; }; }
22936
22937   ac_builddir=.
22938
22939 if test "$ac_dir" != .; then
22940   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22941   # A "../" for each directory in $ac_dir_suffix.
22942   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22943 else
22944   ac_dir_suffix= ac_top_builddir=
22945 fi
22946
22947 case $srcdir in
22948   .)  # No --srcdir option.  We are building in place.
22949     ac_srcdir=.
22950     if test -z "$ac_top_builddir"; then
22951        ac_top_srcdir=.
22952     else
22953        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22954     fi ;;
22955   [\\/]* | ?:[\\/]* )  # Absolute path.
22956     ac_srcdir=$srcdir$ac_dir_suffix;
22957     ac_top_srcdir=$srcdir ;;
22958   *) # Relative path.
22959     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22960     ac_top_srcdir=$ac_top_builddir$srcdir ;;
22961 esac
22962
22963 # Do not use `cd foo && pwd` to compute absolute paths, because
22964 # the directories may not exist.
22965 case `pwd` in
22966 .) ac_abs_builddir="$ac_dir";;
22967 *)
22968   case "$ac_dir" in
22969   .) ac_abs_builddir=`pwd`;;
22970   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22971   *) ac_abs_builddir=`pwd`/"$ac_dir";;
22972   esac;;
22973 esac
22974 case $ac_abs_builddir in
22975 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22976 *)
22977   case ${ac_top_builddir}. in
22978   .) ac_abs_top_builddir=$ac_abs_builddir;;
22979   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22980   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22981   esac;;
22982 esac
22983 case $ac_abs_builddir in
22984 .) ac_abs_srcdir=$ac_srcdir;;
22985 *)
22986   case $ac_srcdir in
22987   .) ac_abs_srcdir=$ac_abs_builddir;;
22988   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22989   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22990   esac;;
22991 esac
22992 case $ac_abs_builddir in
22993 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22994 *)
22995   case $ac_top_srcdir in
22996   .) ac_abs_top_srcdir=$ac_abs_builddir;;
22997   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22998   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22999   esac;;
23000 esac
23001
23002
23003   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
23004 echo "$as_me: executing $ac_dest commands" >&6;}
23005   case $ac_dest in
23006     default ) (echo "Doing make of dependencies"; ${MAKE:-make} depend;)
23007  ;;
23008   esac
23009 done
23010 _ACEOF
23011
23012 cat >>$CONFIG_STATUS <<\_ACEOF
23013
23014 { (exit 0); exit 0; }
23015 _ACEOF
23016 chmod +x $CONFIG_STATUS
23017 ac_clean_files=$ac_clean_files_save
23018
23019
23020 # configure is writing to config.log, and then calls config.status.
23021 # config.status does its own redirection, appending to config.log.
23022 # Unfortunately, on DOS this fails, as config.log is still kept open
23023 # by configure, so config.status won't be able to write to it; its
23024 # output is simply discarded.  So we exec the FD to /dev/null,
23025 # effectively closing config.log, so it can be properly (re)opened and
23026 # appended to by config.status.  When coming back to configure, we
23027 # need to make the FD available again.
23028 if test "$no_create" != yes; then
23029   ac_cs_success=:
23030   ac_config_status_args=
23031   test "$silent" = yes &&
23032     ac_config_status_args="$ac_config_status_args --quiet"
23033   exec 5>/dev/null
23034   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23035   exec 5>>config.log
23036   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23037   # would make configure fail if this is the last instruction.
23038   $ac_cs_success || { (exit 1); exit 1; }
23039 fi
23040
23041
23042 cd scripts
23043 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
23044 chmod 755 dvd-writepart dvd-freespace
23045 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
23046 cd ..
23047
23048 c=src/cats
23049
23050 chmod 755 $c/create_bacula_database   $c/update_bacula_tables  $c/make_bacula_tables
23051 chmod 755 $c/grant_bacula_privileges  $c/drop_bacula_tables    $c/drop_bacula_database
23052
23053 chmod 755 $c/create_bdb_database      $c/update_bdb_tables     $c/make_bdb_tables
23054 chmod 755 $c/grant_bdb_privileges     $c/drop_bdb_tables       $c/drop_bdb_database
23055
23056 chmod 755 $c/create_mysql_database    $c/update_mysql_tables   $c/make_mysql_tables
23057 chmod 755 $c/grant_mysql_privileges   $c/drop_mysql_tables     $c/drop_mysql_database
23058
23059 chmod 755 $c/create_sqlite_database   $c/update_sqlite_tables  $c/make_sqlite_tables
23060 chmod 755 $c/grant_sqlite_privileges  $c/drop_sqlite_tables    $c/drop_sqlite_database
23061
23062 chmod 755 $c/create_postgresql_database  $c/update_postgresql_tables $c/make_postgresql_tables
23063 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables   $c/drop_postgresql_database
23064
23065 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
23066 chmod 755 $c/sqlite
23067 chmod 755 $c/mysql
23068
23069 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
23070    largefile_support="yes"
23071 fi
23072
23073 #
23074 # A whole lot of hand springs to get the compiler version.
23075 #  This is because gcc changed the output in version 3.0
23076 #
23077 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
23078 if test "x${CCVERSION}" = "x" ; then
23079   CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
23080 fi
23081 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
23082 if test x"${CXXVERSION}" = x ; then
23083   CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
23084 fi
23085
23086 if test "x${subsysdir}" = "x${sbindir}" ; then
23087    echo " "
23088    echo " "
23089    echo "You have set --sbindir and --with-subsys-dir"
23090    echo "  both equal to: ${subsysdir} "
23091    echo "  This is not permitted. Please reconfigure."
23092    echo " "
23093    echo "Aborting configuration ..."
23094    echo " "
23095    echo " "
23096    exit 1
23097 fi
23098
23099 if test "x${db_name}" = "xInternal" ; then
23100    echo " "
23101    echo " "
23102    echo "You have not specified either --enable-client-only or one of the"
23103    echo "  supported databases: MySQL, PostgreSQL, SQLite3 or SQLite."
23104    echo "  This is not permitted. Please reconfigure."
23105    echo " "
23106    echo "Aborting the configuration ..."
23107    echo " "
23108    echo " "
23109    exit 1
23110 fi
23111
23112 echo "
23113 Configuration on `date`:
23114
23115   Host:                       $host -- ${DISTNAME} ${DISTVER}
23116   Bacula version:             ${VERSION} (${DATE})
23117   Source code location:       ${srcdir}
23118   Install binaries:           ${sbindir}
23119   Install config files:       ${sysconfdir}
23120   Scripts directory:          ${scriptdir}
23121   Working directory:          ${working_dir}
23122   PID directory:              ${piddir}
23123   Subsys directory:           ${subsysdir}
23124   Man directory:              ${mandir}
23125   C Compiler:                 ${CC} ${CCVERSION}
23126   C++ Compiler:               ${CXX} ${CXXVERSION}
23127   Compiler flags:             ${WCFLAGS} ${CFLAGS}
23128   Linker flags:               ${WLDFLAGS} ${LDFLAGS}
23129   Libraries:                  ${LIBS}
23130   Statically Linked Tools:    ${support_static_tools}
23131   Statically Linked FD:       ${support_static_fd}
23132   Statically Linked SD:       ${support_static_sd}
23133   Statically Linked DIR:      ${support_static_dir}
23134   Statically Linked CONS:     ${support_static_cons}
23135   Database type:              ${db_name}
23136   Database lib:               ${DB_LIBS}
23137
23138   Job Output Email:           ${job_email}
23139   Traceback Email:            ${dump_email}
23140   SMTP Host Address:          ${smtp_host}
23141
23142   Director Port:              ${dir_port}
23143   File daemon Port:           ${fd_port}
23144   Storage daemon Port:        ${sd_port}
23145
23146   Director User:              ${dir_user}
23147   Director Group:             ${dir_group}
23148   Storage Daemon User:        ${sd_user}
23149   Storage DaemonGroup:        ${sd_group}
23150   File Daemon User:           ${fd_user}
23151   File Daemon Group:          ${fd_group}
23152
23153   SQL binaries Directory      ${SQL_BINDIR}
23154
23155   Large file support:         $largefile_support
23156   Bacula conio support:       ${got_conio} ${CONS_LIBS}
23157   readline support:           ${got_readline} ${PRTREADLINE_SRC}
23158   TCP Wrappers support:       ${TCPW_MSG}
23159   TLS support:                ${support_tls}
23160   ZLIB support:               ${have_zlib}
23161   enable-smartalloc:          ${support_smartalloc}
23162   enable-gnome:               ${support_gnome} ${gnome_version}
23163   enable-wx-console:          ${support_wx_console} ${wx_version}
23164   enable-tray-monitor:        ${support_tray_monitor}
23165   client-only:                ${build_client_only}
23166   ACL support:                ${have_acl}
23167   Python support:             ${support_python} ${PYTHON_LIBS}
23168
23169   " > config.out
23170
23171 cat config.out