]> git.sur5r.net Git - bacula/bacula/blob - bacula/configure
- Make default mandir /usr/share/man
[bacula/bacula] / bacula / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization.  ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14   emulate sh
15   NULLCMD=:
16   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17   # is contrary to our usage.  Disable this feature.
18   alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20   set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26   as_unset=unset
27 else
28   as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42   LC_TELEPHONE LC_TIME
43 do
44   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45     eval $as_var=C; export $as_var
46   else
47     $as_unset $as_var
48   fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53   as_expr=expr
54 else
55   as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59   as_basename=basename
60 else
61   as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68          X"$0" : 'X\(//\)$' \| \
69          X"$0" : 'X\(/\)$' \| \
70          .     : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73           /^X\/\(\/\/\)$/{ s//\1/; q; }
74           /^X\/\(\/\).*/{ s//\1/; q; }
75           s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88   echo "#! /bin/sh" >conf$$.sh
89   echo  "exit 0"   >>conf$$.sh
90   chmod +x conf$$.sh
91   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92     PATH_SEPARATOR=';'
93   else
94     PATH_SEPARATOR=:
95   fi
96   rm -f conf$$.sh
97 fi
98
99
100   as_lineno_1=$LINENO
101   as_lineno_2=$LINENO
102   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103   test "x$as_lineno_1" != "x$as_lineno_2" &&
104   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105   # Find who we are.  Look in the path if we contain no path at all
106   # relative or not.
107   case $0 in
108     *[\\/]* ) as_myself=$0 ;;
109     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112   IFS=$as_save_IFS
113   test -z "$as_dir" && as_dir=.
114   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117        ;;
118   esac
119   # We did not find ourselves, most probably we were run as `sh COMMAND'
120   # in which case we are not to be found in the path.
121   if test "x$as_myself" = x; then
122     as_myself=$0
123   fi
124   if test ! -f "$as_myself"; then
125     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126    { (exit 1); exit 1; }; }
127   fi
128   case $CONFIG_SHELL in
129   '')
130     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133   IFS=$as_save_IFS
134   test -z "$as_dir" && as_dir=.
135   for as_base in sh bash ksh sh5; do
136          case $as_dir in
137          /*)
138            if ("$as_dir/$as_base" -c '
139   as_lineno_1=$LINENO
140   as_lineno_2=$LINENO
141   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142   test "x$as_lineno_1" != "x$as_lineno_2" &&
143   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146              CONFIG_SHELL=$as_dir/$as_base
147              export CONFIG_SHELL
148              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149            fi;;
150          esac
151        done
152 done
153 ;;
154   esac
155
156   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157   # uniformly replaced by the line number.  The first 'sed' inserts a
158   # line-number line before each line; the second 'sed' does the real
159   # work.  The second script uses 'N' to pair each line-number line
160   # with the numbered line, and appends trailing '-' during
161   # substitution so that $LINENO is not a special case at line end.
162   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164   sed '=' <$as_myself |
165     sed '
166       N
167       s,$,-,
168       : loop
169       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170       t loop
171       s,-$,,
172       s,^['$as_cr_digits']*\n,,
173     ' >$as_me.lineno &&
174   chmod +x $as_me.lineno ||
175     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176    { (exit 1); exit 1; }; }
177
178   # Don't try to exec as it changes $[0], causing all sort of problems
179   # (the dirname of $[0] is not the place where we might find the
180   # original and so on.  Autoconf is especially sensible to this).
181   . ./$as_me.lineno
182   # Exit status is that of the last command.
183   exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188   *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T='      ' ;;
190   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195   as_expr=expr
196 else
197   as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203   # We could just check for DJGPP; but this test a) works b) is more generic
204   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205   if test -f conf$$.exe; then
206     # Don't use ln at all; we don't have any links
207     as_ln_s='cp -p'
208   else
209     as_ln_s='ln -s'
210   fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212   as_ln_s=ln
213 else
214   as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219   as_mkdir_p=:
220 else
221   test -d ./-p && rmdir ./-p
222   as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS="   $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249 exec 6>&1
250
251 #
252 # Initializations.
253 #
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
261
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete.  It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
266
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
273
274 ac_unique_file="src/version.h"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
277 #include <stdio.h>
278 #if HAVE_SYS_TYPES_H
279 # include <sys/types.h>
280 #endif
281 #if HAVE_SYS_STAT_H
282 # include <sys/stat.h>
283 #endif
284 #if STDC_HEADERS
285 # include <stdlib.h>
286 # include <stddef.h>
287 #else
288 # if HAVE_STDLIB_H
289 #  include <stdlib.h>
290 # endif
291 #endif
292 #if HAVE_STRING_H
293 # if !STDC_HEADERS && HAVE_MEMORY_H
294 #  include <memory.h>
295 # endif
296 # include <string.h>
297 #endif
298 #if HAVE_STRINGS_H
299 # include <strings.h>
300 #endif
301 #if HAVE_INTTYPES_H
302 # include <inttypes.h>
303 #else
304 # if HAVE_STDINT_H
305 #  include <stdint.h>
306 # endif
307 #endif
308 #if HAVE_UNISTD_H
309 # include <unistd.h>
310 #endif"
311
312 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS BUILD_DIR TRUEPRG FALSEPRG VERSION DATE LSMDATE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX CPP EGREP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA RANLIB ac_ct_RANLIB MV RM CP SED ECHO CMP TBL AR OPENSSL MTX MKISOFS PYTHON GROWISOFS DVDRWMEDIAINFO PKGCONFIG WXCONFIG 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 GNOMEGNORBA_LIBS GTKXMHTML_LIBS ZVT_LIBS GNOME_CONFIG ORBIT_CONFIG ORBIT_IDL HAVE_ORBIT_TRUE HAVE_ORBIT_FALSE ORBIT_CFLAGS ORBIT_LIBS HAVE_GNORBA_TRUE HAVE_GNORBA_FALSE GNORBA_CFLAGS GNORBA_LIBS GNOME_APPLETS_LIBS GNOME_DOCKLETS_LIBS GNOME_CAPPLET_LIBS GNOME_DIR WXCONS_CPPFLAGS WXCONS_LDFLAGS WX_DIR TRAY_MONITOR_CPPFLAGS TRAY_MONITOR_LDFLAGS TRAY_MONITOR_DIR TTOOL_LDFLAGS STATIC_FD STATIC_SD STATIC_DIR STATIC_CONS STATIC_GNOME_CONS STATIC_WX_CONS ALL_DIRS CONS_INC CONS_OBJ CONS_SRC CONS_LIBS CONS_LDFLAGS READLINE_SRC PYTHON_LIBS PYTHON_INCDIR 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 bimagemgr_cgidir bimagemgr_docdir bimagemgr_binowner bimagemgr_bingroup bimagemgr_dataowner bimagemgr_datagroup dir_user dir_group sd_user sd_group fd_user fd_group SBINPERM SQL_LFLAGS SQL_INCLUDE SQL_BINDIR cats DB_NAME GETCONF ac_ct_GETCONF X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS LIBOBJS ALLOCA FDLIBS DEBUG DINCLUDE DLIB DB_LIBS WCFLAGS WLDFLAGS OBJLIST hostname TAPEDRIVE PSCMD WIN32 MACOSX DISTNAME DISTVER LTLIBOBJS'
313 ac_subst_files='MCOMMON'
314
315 # Initialize some variables set by options.
316 ac_init_help=
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
320 cache_file=/dev/null
321 exec_prefix=NONE
322 no_create=
323 no_recursion=
324 prefix=NONE
325 program_prefix=NONE
326 program_suffix=NONE
327 program_transform_name=s,x,x,
328 silent=
329 site=
330 srcdir=
331 verbose=
332 x_includes=NONE
333 x_libraries=NONE
334
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
352
353 ac_prev=
354 for ac_option
355 do
356   # If the previous option needs an argument, assign it.
357   if test -n "$ac_prev"; then
358     eval "$ac_prev=\$ac_option"
359     ac_prev=
360     continue
361   fi
362
363   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364
365   # Accept the important Cygnus configure options, so we can diagnose typos.
366
367   case $ac_option in
368
369   -bindir | --bindir | --bindi | --bind | --bin | --bi)
370     ac_prev=bindir ;;
371   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372     bindir=$ac_optarg ;;
373
374   -build | --build | --buil | --bui | --bu)
375     ac_prev=build_alias ;;
376   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377     build_alias=$ac_optarg ;;
378
379   -cache-file | --cache-file | --cache-fil | --cache-fi \
380   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381     ac_prev=cache_file ;;
382   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384     cache_file=$ac_optarg ;;
385
386   --config-cache | -C)
387     cache_file=config.cache ;;
388
389   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390     ac_prev=datadir ;;
391   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392   | --da=*)
393     datadir=$ac_optarg ;;
394
395   -disable-* | --disable-*)
396     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397     # Reject names that are not valid shell variable names.
398     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400    { (exit 1); exit 1; }; }
401     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402     eval "enable_$ac_feature=no" ;;
403
404   -enable-* | --enable-*)
405     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406     # Reject names that are not valid shell variable names.
407     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409    { (exit 1); exit 1; }; }
410     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411     case $ac_option in
412       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413       *) ac_optarg=yes ;;
414     esac
415     eval "enable_$ac_feature='$ac_optarg'" ;;
416
417   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419   | --exec | --exe | --ex)
420     ac_prev=exec_prefix ;;
421   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423   | --exec=* | --exe=* | --ex=*)
424     exec_prefix=$ac_optarg ;;
425
426   -gas | --gas | --ga | --g)
427     # Obsolete; use --with-gas.
428     with_gas=yes ;;
429
430   -help | --help | --hel | --he | -h)
431     ac_init_help=long ;;
432   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433     ac_init_help=recursive ;;
434   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435     ac_init_help=short ;;
436
437   -host | --host | --hos | --ho)
438     ac_prev=host_alias ;;
439   -host=* | --host=* | --hos=* | --ho=*)
440     host_alias=$ac_optarg ;;
441
442   -includedir | --includedir | --includedi | --included | --include \
443   | --includ | --inclu | --incl | --inc)
444     ac_prev=includedir ;;
445   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446   | --includ=* | --inclu=* | --incl=* | --inc=*)
447     includedir=$ac_optarg ;;
448
449   -infodir | --infodir | --infodi | --infod | --info | --inf)
450     ac_prev=infodir ;;
451   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452     infodir=$ac_optarg ;;
453
454   -libdir | --libdir | --libdi | --libd)
455     ac_prev=libdir ;;
456   -libdir=* | --libdir=* | --libdi=* | --libd=*)
457     libdir=$ac_optarg ;;
458
459   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460   | --libexe | --libex | --libe)
461     ac_prev=libexecdir ;;
462   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463   | --libexe=* | --libex=* | --libe=*)
464     libexecdir=$ac_optarg ;;
465
466   -localstatedir | --localstatedir | --localstatedi | --localstated \
467   | --localstate | --localstat | --localsta | --localst \
468   | --locals | --local | --loca | --loc | --lo)
469     ac_prev=localstatedir ;;
470   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473     localstatedir=$ac_optarg ;;
474
475   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476     ac_prev=mandir ;;
477   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478     mandir=$ac_optarg ;;
479
480   -nfp | --nfp | --nf)
481     # Obsolete; use --without-fp.
482     with_fp=no ;;
483
484   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485   | --no-cr | --no-c | -n)
486     no_create=yes ;;
487
488   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490     no_recursion=yes ;;
491
492   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494   | --oldin | --oldi | --old | --ol | --o)
495     ac_prev=oldincludedir ;;
496   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499     oldincludedir=$ac_optarg ;;
500
501   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502     ac_prev=prefix ;;
503   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504     prefix=$ac_optarg ;;
505
506   -program-prefix | --program-prefix | --program-prefi | --program-pref \
507   | --program-pre | --program-pr | --program-p)
508     ac_prev=program_prefix ;;
509   -program-prefix=* | --program-prefix=* | --program-prefi=* \
510   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511     program_prefix=$ac_optarg ;;
512
513   -program-suffix | --program-suffix | --program-suffi | --program-suff \
514   | --program-suf | --program-su | --program-s)
515     ac_prev=program_suffix ;;
516   -program-suffix=* | --program-suffix=* | --program-suffi=* \
517   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518     program_suffix=$ac_optarg ;;
519
520   -program-transform-name | --program-transform-name \
521   | --program-transform-nam | --program-transform-na \
522   | --program-transform-n | --program-transform- \
523   | --program-transform | --program-transfor \
524   | --program-transfo | --program-transf \
525   | --program-trans | --program-tran \
526   | --progr-tra | --program-tr | --program-t)
527     ac_prev=program_transform_name ;;
528   -program-transform-name=* | --program-transform-name=* \
529   | --program-transform-nam=* | --program-transform-na=* \
530   | --program-transform-n=* | --program-transform-=* \
531   | --program-transform=* | --program-transfor=* \
532   | --program-transfo=* | --program-transf=* \
533   | --program-trans=* | --program-tran=* \
534   | --progr-tra=* | --program-tr=* | --program-t=*)
535     program_transform_name=$ac_optarg ;;
536
537   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538   | -silent | --silent | --silen | --sile | --sil)
539     silent=yes ;;
540
541   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542     ac_prev=sbindir ;;
543   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544   | --sbi=* | --sb=*)
545     sbindir=$ac_optarg ;;
546
547   -sharedstatedir | --sharedstatedir | --sharedstatedi \
548   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549   | --sharedst | --shareds | --shared | --share | --shar \
550   | --sha | --sh)
551     ac_prev=sharedstatedir ;;
552   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555   | --sha=* | --sh=*)
556     sharedstatedir=$ac_optarg ;;
557
558   -site | --site | --sit)
559     ac_prev=site ;;
560   -site=* | --site=* | --sit=*)
561     site=$ac_optarg ;;
562
563   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564     ac_prev=srcdir ;;
565   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566     srcdir=$ac_optarg ;;
567
568   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569   | --syscon | --sysco | --sysc | --sys | --sy)
570     ac_prev=sysconfdir ;;
571   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573     sysconfdir=$ac_optarg ;;
574
575   -target | --target | --targe | --targ | --tar | --ta | --t)
576     ac_prev=target_alias ;;
577   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578     target_alias=$ac_optarg ;;
579
580   -v | -verbose | --verbose | --verbos | --verbo | --verb)
581     verbose=yes ;;
582
583   -version | --version | --versio | --versi | --vers | -V)
584     ac_init_version=: ;;
585
586   -with-* | --with-*)
587     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588     # Reject names that are not valid shell variable names.
589     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590       { echo "$as_me: error: invalid package name: $ac_package" >&2
591    { (exit 1); exit 1; }; }
592     ac_package=`echo $ac_package| sed 's/-/_/g'`
593     case $ac_option in
594       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595       *) ac_optarg=yes ;;
596     esac
597     eval "with_$ac_package='$ac_optarg'" ;;
598
599   -without-* | --without-*)
600     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601     # Reject names that are not valid shell variable names.
602     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603       { echo "$as_me: error: invalid package name: $ac_package" >&2
604    { (exit 1); exit 1; }; }
605     ac_package=`echo $ac_package | sed 's/-/_/g'`
606     eval "with_$ac_package=no" ;;
607
608   --x)
609     # Obsolete; use --with-x.
610     with_x=yes ;;
611
612   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613   | --x-incl | --x-inc | --x-in | --x-i)
614     ac_prev=x_includes ;;
615   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617     x_includes=$ac_optarg ;;
618
619   -x-libraries | --x-libraries | --x-librarie | --x-librari \
620   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621     ac_prev=x_libraries ;;
622   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624     x_libraries=$ac_optarg ;;
625
626   -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628    { (exit 1); exit 1; }; }
629     ;;
630
631   *=*)
632     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633     # Reject names that are not valid shell variable names.
634     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636    { (exit 1); exit 1; }; }
637     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638     eval "$ac_envvar='$ac_optarg'"
639     export $ac_envvar ;;
640
641   *)
642     # FIXME: should be removed in autoconf 3.0.
643     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
647     ;;
648
649   esac
650 done
651
652 if test -n "$ac_prev"; then
653   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654   { echo "$as_me: error: missing argument to $ac_option" >&2
655    { (exit 1); exit 1; }; }
656 fi
657
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
660 do
661   eval ac_val=$`echo $ac_var`
662   case $ac_val in
663     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665    { (exit 1); exit 1; }; };;
666   esac
667 done
668
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671               localstatedir libdir includedir oldincludedir infodir mandir
672 do
673   eval ac_val=$`echo $ac_var`
674   case $ac_val in
675     [\\/$]* | ?:[\\/]* ) ;;
676     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677    { (exit 1); exit 1; }; };;
678   esac
679 done
680
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
684 build=$build_alias
685 host=$host_alias
686 target=$target_alias
687
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690   if test "x$build_alias" = x; then
691     cross_compiling=maybe
692     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693     If a cross compiler is detected then cross compile mode will be used." >&2
694   elif test "x$build_alias" != "x$host_alias"; then
695     cross_compiling=yes
696   fi
697 fi
698
699 ac_tool_prefix=
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
701
702 test "$silent" = yes && exec 6>/dev/null
703
704
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707   ac_srcdir_defaulted=yes
708   # Try the directory containing this script, then its parent.
709   ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711          X"$0" : 'X\(//\)[^/]' \| \
712          X"$0" : 'X\(//\)$' \| \
713          X"$0" : 'X\(/\)' \| \
714          .     : '\(.\)' 2>/dev/null ||
715 echo X"$0" |
716     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718           /^X\(\/\/\)$/{ s//\1/; q; }
719           /^X\(\/\).*/{ s//\1/; q; }
720           s/.*/./; q'`
721   srcdir=$ac_confdir
722   if test ! -r $srcdir/$ac_unique_file; then
723     srcdir=..
724   fi
725 else
726   ac_srcdir_defaulted=no
727 fi
728 if test ! -r $srcdir/$ac_unique_file; then
729   if test "$ac_srcdir_defaulted" = yes; then
730     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731    { (exit 1); exit 1; }; }
732   else
733     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734    { (exit 1); exit 1; }; }
735   fi
736 fi
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739    { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
754 ac_env_CC_value=$CC
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CXX_set=${CXX+set}
770 ac_env_CXX_value=$CXX
771 ac_cv_env_CXX_set=${CXX+set}
772 ac_cv_env_CXX_value=$CXX
773 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
774 ac_env_CXXFLAGS_value=$CXXFLAGS
775 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
776 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
777 ac_env_CPP_set=${CPP+set}
778 ac_env_CPP_value=$CPP
779 ac_cv_env_CPP_set=${CPP+set}
780 ac_cv_env_CPP_value=$CPP
781 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-gnome-includes   Specify location of GNOME headers
887   --with-gnome-libs       Specify location of GNOME libs
888   --with-gnome            Specify prefix for GNOME files
889  --with-readline=DIR             specify readline library directory
890
891   --with-python=DIR       Include Python support.  DIR is the Python base
892                           install directory, default is to search through
893                           a number of common places for the Python files.
894   --with-tcp-wrappers=DIR        enable tcpwrappers support
895   --with-openssl[=DIR]
896                           Include OpenSSL support. DIR is the OpenSSL base
897   --with-working-dir=PATH        specify path of Bacula working directory
898   --with-scriptdir=PATH    specify path of Bacula scripts directory
899   --with-dump-email=EMAIL        dump email address
900   --with-job-email=EMAIL         job output email address
901   --with-smtp-host=HOST          SMTP mail host address
902   --with-pid-dir=PATH            specify location of Bacula pid files
903   --with-subsys-dir=PATH         specify location of Bacula subsys file
904   --with-baseport=PORT           specify base port address for daemons
905   --with-dir-password=PASSWORD   specify Director's password
906   --with-fd-password=PASSWORD    specify Client's password
907   --with-sd-password=PASSWORD    specify Storage daemon's password
908   --with-mon-dir-password=PASSWORD       specify Director's password used by the monitor
909   --with-mon-fd-password=PASSWORD        specify Client's password used by the monitor
910   --with-mon-sd-password=PASSWORD        specify Storage daemon's password used by the monitor
911   --with-bimagemgr-cgidir=DIR   specify bimagemgr cgi-bin dir
912   --with-bimagemgr-docdir=DIR   specify bimagemgr doc root dir
913   --with-bimagemgr-binowner=USER   specify bimagemgr binary file owner
914   --with-bimagemgr-bingroup=USER   specify bimagemgr binary file group
915   --with-bimagemgr-dataowner=USER       specify bimagemgr data file owner
916   --with-bimagemgr-datagroup=USER       specify bimagemgr data file group
917   --with-dir-user=USER           specify user for Director daemon
918   --with-dir-group=GROUP                 specify group for Director daemon
919   --with-sd-user=USER            specify user for Storage daemon
920   --with-sd-group=GROUP          specify group for Storage daemon
921   --with-fd-user=USER            specify user for File daemon
922   --with-fd-group=GROUP          specify group for File daemon
923   --with-sbin-perm=MODE          specify permissions for sbin binaries (0754)
924   --with-postgresql=DIR      Include PostgreSQL support.  DIR is the PostgreSQL
925                           base install directory, defaults to /usr/local/pgsql
926
927   --with-mysql=DIR      Include MySQL support.  DIR is the MySQL base
928                           install directory, default is to search through
929                           a number of common places for the MySQL files.
930
931   --with-embedded-mysql=DIR Include MySQL support.  DIR is the MySQL base
932                           install directory, default is to search through
933                           a number of common places for the MySQL files.
934
935   --with-sqlite3=DIR    Include SQLite3 support.  DIR is the SQLite3 base
936                           install directory, default is to search through
937                           a number of common places for the SQLite3 files.
938
939   --with-sqlite=DIR     Include SQLite support.  DIR is the SQLite base
940                           install directory, default is to search through
941                           a number of common places for the SQLite files.
942   --with-x                use the X Window System
943
944 Some influential environment variables:
945   CC          C compiler command
946   CFLAGS      C compiler flags
947   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
948               nonstandard directory <lib dir>
949   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
950               headers in a nonstandard directory <include dir>
951   CXX         C++ compiler command
952   CXXFLAGS    C++ compiler flags
953   CPP         C preprocessor
954   WXCONFIG    wx-config command. On some systems, you must set it to
955               wx-config-2.6 to use wxWidgets 2.6.
956   WXFLAGS     Parameters to pass to wx-config (e.g. --unicode=no).
957
958 Use these variables to override the choices made by `configure' or to help
959 it to find libraries and programs with nonstandard names/locations.
960
961 _ACEOF
962 fi
963
964 if test "$ac_init_help" = "recursive"; then
965   # If there are subdirs, report their specific --help.
966   ac_popdir=`pwd`
967   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
968     test -d $ac_dir || continue
969     ac_builddir=.
970
971 if test "$ac_dir" != .; then
972   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
973   # A "../" for each directory in $ac_dir_suffix.
974   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
975 else
976   ac_dir_suffix= ac_top_builddir=
977 fi
978
979 case $srcdir in
980   .)  # No --srcdir option.  We are building in place.
981     ac_srcdir=.
982     if test -z "$ac_top_builddir"; then
983        ac_top_srcdir=.
984     else
985        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
986     fi ;;
987   [\\/]* | ?:[\\/]* )  # Absolute path.
988     ac_srcdir=$srcdir$ac_dir_suffix;
989     ac_top_srcdir=$srcdir ;;
990   *) # Relative path.
991     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
992     ac_top_srcdir=$ac_top_builddir$srcdir ;;
993 esac
994
995 # Do not use `cd foo && pwd` to compute absolute paths, because
996 # the directories may not exist.
997 case `pwd` in
998 .) ac_abs_builddir="$ac_dir";;
999 *)
1000   case "$ac_dir" in
1001   .) ac_abs_builddir=`pwd`;;
1002   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1003   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1004   esac;;
1005 esac
1006 case $ac_abs_builddir in
1007 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1008 *)
1009   case ${ac_top_builddir}. in
1010   .) ac_abs_top_builddir=$ac_abs_builddir;;
1011   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1012   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1013   esac;;
1014 esac
1015 case $ac_abs_builddir in
1016 .) ac_abs_srcdir=$ac_srcdir;;
1017 *)
1018   case $ac_srcdir in
1019   .) ac_abs_srcdir=$ac_abs_builddir;;
1020   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1021   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1022   esac;;
1023 esac
1024 case $ac_abs_builddir in
1025 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1026 *)
1027   case $ac_top_srcdir in
1028   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1029   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1030   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1031   esac;;
1032 esac
1033
1034     cd $ac_dir
1035     # Check for guested configure; otherwise get Cygnus style configure.
1036     if test -f $ac_srcdir/configure.gnu; then
1037       echo
1038       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1039     elif test -f $ac_srcdir/configure; then
1040       echo
1041       $SHELL $ac_srcdir/configure  --help=recursive
1042     elif test -f $ac_srcdir/configure.ac ||
1043            test -f $ac_srcdir/configure.in; then
1044       echo
1045       $ac_configure --help
1046     else
1047       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1048     fi
1049     cd $ac_popdir
1050   done
1051 fi
1052
1053 test -n "$ac_init_help" && exit 0
1054 if $ac_init_version; then
1055   cat <<\_ACEOF
1056
1057 Copyright (C) 2003 Free Software Foundation, Inc.
1058 This configure script is free software; the Free Software Foundation
1059 gives unlimited permission to copy, distribute and modify it.
1060 _ACEOF
1061   exit 0
1062 fi
1063 exec 5>config.log
1064 cat >&5 <<_ACEOF
1065 This file contains any messages produced by compilers while
1066 running configure, to aid debugging if configure makes a mistake.
1067
1068 It was created by $as_me, which was
1069 generated by GNU Autoconf 2.59.  Invocation command line was
1070
1071   $ $0 $@
1072
1073 _ACEOF
1074 {
1075 cat <<_ASUNAME
1076 ## --------- ##
1077 ## Platform. ##
1078 ## --------- ##
1079
1080 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1081 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1082 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1083 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1084 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1085
1086 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1087 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1088
1089 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1090 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1091 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1092 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1093 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1094 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1095 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1096
1097 _ASUNAME
1098
1099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1100 for as_dir in $PATH
1101 do
1102   IFS=$as_save_IFS
1103   test -z "$as_dir" && as_dir=.
1104   echo "PATH: $as_dir"
1105 done
1106
1107 } >&5
1108
1109 cat >&5 <<_ACEOF
1110
1111
1112 ## ----------- ##
1113 ## Core tests. ##
1114 ## ----------- ##
1115
1116 _ACEOF
1117
1118
1119 # Keep a trace of the command line.
1120 # Strip out --no-create and --no-recursion so they do not pile up.
1121 # Strip out --silent because we don't want to record it for future runs.
1122 # Also quote any args containing shell meta-characters.
1123 # Make two passes to allow for proper duplicate-argument suppression.
1124 ac_configure_args=
1125 ac_configure_args0=
1126 ac_configure_args1=
1127 ac_sep=
1128 ac_must_keep_next=false
1129 for ac_pass in 1 2
1130 do
1131   for ac_arg
1132   do
1133     case $ac_arg in
1134     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1135     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1136     | -silent | --silent | --silen | --sile | --sil)
1137       continue ;;
1138     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1139       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1140     esac
1141     case $ac_pass in
1142     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1143     2)
1144       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1145       if test $ac_must_keep_next = true; then
1146         ac_must_keep_next=false # Got value, back to normal.
1147       else
1148         case $ac_arg in
1149           *=* | --config-cache | -C | -disable-* | --disable-* \
1150           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1151           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1152           | -with-* | --with-* | -without-* | --without-* | --x)
1153             case "$ac_configure_args0 " in
1154               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1155             esac
1156             ;;
1157           -* ) ac_must_keep_next=true ;;
1158         esac
1159       fi
1160       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1161       # Get rid of the leading space.
1162       ac_sep=" "
1163       ;;
1164     esac
1165   done
1166 done
1167 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1168 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1169
1170 # When interrupted or exit'd, cleanup temporary files, and complete
1171 # config.log.  We remove comments because anyway the quotes in there
1172 # would cause problems or look ugly.
1173 # WARNING: Be sure not to use single quotes in there, as some shells,
1174 # such as our DU 5.0 friend, will then `close' the trap.
1175 trap 'exit_status=$?
1176   # Save into config.log some information that might help in debugging.
1177   {
1178     echo
1179
1180     cat <<\_ASBOX
1181 ## ---------------- ##
1182 ## Cache variables. ##
1183 ## ---------------- ##
1184 _ASBOX
1185     echo
1186     # The following way of writing the cache mishandles newlines in values,
1187 {
1188   (set) 2>&1 |
1189     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1190     *ac_space=\ *)
1191       sed -n \
1192         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1193           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1194       ;;
1195     *)
1196       sed -n \
1197         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1198       ;;
1199     esac;
1200 }
1201     echo
1202
1203     cat <<\_ASBOX
1204 ## ----------------- ##
1205 ## Output variables. ##
1206 ## ----------------- ##
1207 _ASBOX
1208     echo
1209     for ac_var in $ac_subst_vars
1210     do
1211       eval ac_val=$`echo $ac_var`
1212       echo "$ac_var='"'"'$ac_val'"'"'"
1213     done | sort
1214     echo
1215
1216     if test -n "$ac_subst_files"; then
1217       cat <<\_ASBOX
1218 ## ------------- ##
1219 ## Output files. ##
1220 ## ------------- ##
1221 _ASBOX
1222       echo
1223       for ac_var in $ac_subst_files
1224       do
1225         eval ac_val=$`echo $ac_var`
1226         echo "$ac_var='"'"'$ac_val'"'"'"
1227       done | sort
1228       echo
1229     fi
1230
1231     if test -s confdefs.h; then
1232       cat <<\_ASBOX
1233 ## ----------- ##
1234 ## confdefs.h. ##
1235 ## ----------- ##
1236 _ASBOX
1237       echo
1238       sed "/^$/d" confdefs.h | sort
1239       echo
1240     fi
1241     test "$ac_signal" != 0 &&
1242       echo "$as_me: caught signal $ac_signal"
1243     echo "$as_me: exit $exit_status"
1244   } >&5
1245   rm -f core *.core &&
1246   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1247     exit $exit_status
1248      ' 0
1249 for ac_signal in 1 2 13 15; do
1250   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1251 done
1252 ac_signal=0
1253
1254 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1255 rm -rf conftest* confdefs.h
1256 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1257 echo >confdefs.h
1258
1259 # Predefined preprocessor variables.
1260
1261 cat >>confdefs.h <<_ACEOF
1262 #define PACKAGE_NAME "$PACKAGE_NAME"
1263 _ACEOF
1264
1265
1266 cat >>confdefs.h <<_ACEOF
1267 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1268 _ACEOF
1269
1270
1271 cat >>confdefs.h <<_ACEOF
1272 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1273 _ACEOF
1274
1275
1276 cat >>confdefs.h <<_ACEOF
1277 #define PACKAGE_STRING "$PACKAGE_STRING"
1278 _ACEOF
1279
1280
1281 cat >>confdefs.h <<_ACEOF
1282 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1283 _ACEOF
1284
1285
1286 # Let the site file select an alternate cache file if it wants to.
1287 # Prefer explicitly selected file to automatically selected ones.
1288 if test -z "$CONFIG_SITE"; then
1289   if test "x$prefix" != xNONE; then
1290     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1291   else
1292     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1293   fi
1294 fi
1295 for ac_site_file in $CONFIG_SITE; do
1296   if test -r "$ac_site_file"; then
1297     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1298 echo "$as_me: loading site script $ac_site_file" >&6;}
1299     sed 's/^/| /' "$ac_site_file" >&5
1300     . "$ac_site_file"
1301   fi
1302 done
1303
1304 if test -r "$cache_file"; then
1305   # Some versions of bash will fail to source /dev/null (special
1306   # files actually), so we avoid doing that.
1307   if test -f "$cache_file"; then
1308     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1309 echo "$as_me: loading cache $cache_file" >&6;}
1310     case $cache_file in
1311       [\\/]* | ?:[\\/]* ) . $cache_file;;
1312       *)                      . ./$cache_file;;
1313     esac
1314   fi
1315 else
1316   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1317 echo "$as_me: creating cache $cache_file" >&6;}
1318   >$cache_file
1319 fi
1320
1321 # Check that the precious variables saved in the cache have kept the same
1322 # value.
1323 ac_cache_corrupted=false
1324 for ac_var in `(set) 2>&1 |
1325                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1326   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1327   eval ac_new_set=\$ac_env_${ac_var}_set
1328   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1329   eval ac_new_val="\$ac_env_${ac_var}_value"
1330   case $ac_old_set,$ac_new_set in
1331     set,)
1332       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1333 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1334       ac_cache_corrupted=: ;;
1335     ,set)
1336       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1337 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1338       ac_cache_corrupted=: ;;
1339     ,);;
1340     *)
1341       if test "x$ac_old_val" != "x$ac_new_val"; then
1342         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1343 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1344         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1345 echo "$as_me:   former value:  $ac_old_val" >&2;}
1346         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1347 echo "$as_me:   current value: $ac_new_val" >&2;}
1348         ac_cache_corrupted=:
1349       fi;;
1350   esac
1351   # Pass precious variables to config.status.
1352   if test "$ac_new_set" = set; then
1353     case $ac_new_val in
1354     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1355       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1356     *) ac_arg=$ac_var=$ac_new_val ;;
1357     esac
1358     case " $ac_configure_args " in
1359       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1360       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1361     esac
1362   fi
1363 done
1364 if $ac_cache_corrupted; then
1365   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1366 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1367   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1368 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1369    { (exit 1); exit 1; }; }
1370 fi
1371
1372 ac_ext=c
1373 ac_cpp='$CPP $CPPFLAGS'
1374 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1375 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1376 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396 BUILD_DIR=`pwd`
1397 cd ..
1398 TOP_DIR=`pwd`
1399 cd ${BUILD_DIR}
1400
1401 ac_aux_dir=
1402 for ac_dir in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf; do
1403   if test -f $ac_dir/install-sh; then
1404     ac_aux_dir=$ac_dir
1405     ac_install_sh="$ac_aux_dir/install-sh -c"
1406     break
1407   elif test -f $ac_dir/install.sh; then
1408     ac_aux_dir=$ac_dir
1409     ac_install_sh="$ac_aux_dir/install.sh -c"
1410     break
1411   elif test -f $ac_dir/shtool; then
1412     ac_aux_dir=$ac_dir
1413     ac_install_sh="$ac_aux_dir/shtool install -c"
1414     break
1415   fi
1416 done
1417 if test -z "$ac_aux_dir"; then
1418   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&5
1419 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&2;}
1420    { (exit 1); exit 1; }; }
1421 fi
1422 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1423 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1424 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1425
1426           ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
1427
1428
1429
1430
1431
1432 for ac_prog in true
1433 do
1434   # Extract the first word of "$ac_prog", so it can be a program name with args.
1435 set dummy $ac_prog; ac_word=$2
1436 echo "$as_me:$LINENO: checking for $ac_word" >&5
1437 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1438 if test "${ac_cv_path_TRUEPRG+set}" = set; then
1439   echo $ECHO_N "(cached) $ECHO_C" >&6
1440 else
1441   case $TRUEPRG in
1442   [\\/]* | ?:[\\/]*)
1443   ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
1444   ;;
1445   *)
1446   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1447 for as_dir in $PATH
1448 do
1449   IFS=$as_save_IFS
1450   test -z "$as_dir" && as_dir=.
1451   for ac_exec_ext in '' $ac_executable_extensions; do
1452   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1453     ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
1454     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1455     break 2
1456   fi
1457 done
1458 done
1459
1460   ;;
1461 esac
1462 fi
1463 TRUEPRG=$ac_cv_path_TRUEPRG
1464
1465 if test -n "$TRUEPRG"; then
1466   echo "$as_me:$LINENO: result: $TRUEPRG" >&5
1467 echo "${ECHO_T}$TRUEPRG" >&6
1468 else
1469   echo "$as_me:$LINENO: result: no" >&5
1470 echo "${ECHO_T}no" >&6
1471 fi
1472
1473   test -n "$TRUEPRG" && break
1474 done
1475 test -n "$TRUEPRG" || TRUEPRG=":"
1476
1477 for ac_prog in false
1478 do
1479   # Extract the first word of "$ac_prog", so it can be a program name with args.
1480 set dummy $ac_prog; ac_word=$2
1481 echo "$as_me:$LINENO: checking for $ac_word" >&5
1482 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1483 if test "${ac_cv_path_FALSEPRG+set}" = set; then
1484   echo $ECHO_N "(cached) $ECHO_C" >&6
1485 else
1486   case $FALSEPRG in
1487   [\\/]* | ?:[\\/]*)
1488   ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
1489   ;;
1490   *)
1491   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1492 for as_dir in $PATH
1493 do
1494   IFS=$as_save_IFS
1495   test -z "$as_dir" && as_dir=.
1496   for ac_exec_ext in '' $ac_executable_extensions; do
1497   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1498     ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
1499     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1500     break 2
1501   fi
1502 done
1503 done
1504
1505   ;;
1506 esac
1507 fi
1508 FALSEPRG=$ac_cv_path_FALSEPRG
1509
1510 if test -n "$FALSEPRG"; then
1511   echo "$as_me:$LINENO: result: $FALSEPRG" >&5
1512 echo "${ECHO_T}$FALSEPRG" >&6
1513 else
1514   echo "$as_me:$LINENO: result: no" >&5
1515 echo "${ECHO_T}no" >&6
1516 fi
1517
1518   test -n "$FALSEPRG" && break
1519 done
1520 test -n "$FALSEPRG" || FALSEPRG=":"
1521
1522
1523 #AC_CANONICAL_HOST
1524
1525 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1526 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1527 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1528 echo "configuring for bacula $VERSION ($DATE)"
1529
1530
1531
1532 ac_ext=c
1533 ac_cpp='$CPP $CPPFLAGS'
1534 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1535 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1536 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1537 if test -n "$ac_tool_prefix"; then
1538   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1539 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1540 echo "$as_me:$LINENO: checking for $ac_word" >&5
1541 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1542 if test "${ac_cv_prog_CC+set}" = set; then
1543   echo $ECHO_N "(cached) $ECHO_C" >&6
1544 else
1545   if test -n "$CC"; then
1546   ac_cv_prog_CC="$CC" # Let the user override the test.
1547 else
1548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1549 for as_dir in $PATH
1550 do
1551   IFS=$as_save_IFS
1552   test -z "$as_dir" && as_dir=.
1553   for ac_exec_ext in '' $ac_executable_extensions; do
1554   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1555     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1556     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1557     break 2
1558   fi
1559 done
1560 done
1561
1562 fi
1563 fi
1564 CC=$ac_cv_prog_CC
1565 if test -n "$CC"; then
1566   echo "$as_me:$LINENO: result: $CC" >&5
1567 echo "${ECHO_T}$CC" >&6
1568 else
1569   echo "$as_me:$LINENO: result: no" >&5
1570 echo "${ECHO_T}no" >&6
1571 fi
1572
1573 fi
1574 if test -z "$ac_cv_prog_CC"; then
1575   ac_ct_CC=$CC
1576   # Extract the first word of "gcc", so it can be a program name with args.
1577 set dummy gcc; ac_word=$2
1578 echo "$as_me:$LINENO: checking for $ac_word" >&5
1579 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1580 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1581   echo $ECHO_N "(cached) $ECHO_C" >&6
1582 else
1583   if test -n "$ac_ct_CC"; then
1584   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1585 else
1586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1587 for as_dir in $PATH
1588 do
1589   IFS=$as_save_IFS
1590   test -z "$as_dir" && as_dir=.
1591   for ac_exec_ext in '' $ac_executable_extensions; do
1592   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1593     ac_cv_prog_ac_ct_CC="gcc"
1594     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1595     break 2
1596   fi
1597 done
1598 done
1599
1600 fi
1601 fi
1602 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1603 if test -n "$ac_ct_CC"; then
1604   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1605 echo "${ECHO_T}$ac_ct_CC" >&6
1606 else
1607   echo "$as_me:$LINENO: result: no" >&5
1608 echo "${ECHO_T}no" >&6
1609 fi
1610
1611   CC=$ac_ct_CC
1612 else
1613   CC="$ac_cv_prog_CC"
1614 fi
1615
1616 if test -z "$CC"; then
1617   if test -n "$ac_tool_prefix"; then
1618   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1619 set dummy ${ac_tool_prefix}cc; ac_word=$2
1620 echo "$as_me:$LINENO: checking for $ac_word" >&5
1621 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1622 if test "${ac_cv_prog_CC+set}" = set; then
1623   echo $ECHO_N "(cached) $ECHO_C" >&6
1624 else
1625   if test -n "$CC"; then
1626   ac_cv_prog_CC="$CC" # Let the user override the test.
1627 else
1628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1629 for as_dir in $PATH
1630 do
1631   IFS=$as_save_IFS
1632   test -z "$as_dir" && as_dir=.
1633   for ac_exec_ext in '' $ac_executable_extensions; do
1634   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1635     ac_cv_prog_CC="${ac_tool_prefix}cc"
1636     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1637     break 2
1638   fi
1639 done
1640 done
1641
1642 fi
1643 fi
1644 CC=$ac_cv_prog_CC
1645 if test -n "$CC"; then
1646   echo "$as_me:$LINENO: result: $CC" >&5
1647 echo "${ECHO_T}$CC" >&6
1648 else
1649   echo "$as_me:$LINENO: result: no" >&5
1650 echo "${ECHO_T}no" >&6
1651 fi
1652
1653 fi
1654 if test -z "$ac_cv_prog_CC"; then
1655   ac_ct_CC=$CC
1656   # Extract the first word of "cc", so it can be a program name with args.
1657 set dummy cc; ac_word=$2
1658 echo "$as_me:$LINENO: checking for $ac_word" >&5
1659 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1660 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1661   echo $ECHO_N "(cached) $ECHO_C" >&6
1662 else
1663   if test -n "$ac_ct_CC"; then
1664   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1665 else
1666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1667 for as_dir in $PATH
1668 do
1669   IFS=$as_save_IFS
1670   test -z "$as_dir" && as_dir=.
1671   for ac_exec_ext in '' $ac_executable_extensions; do
1672   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1673     ac_cv_prog_ac_ct_CC="cc"
1674     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1675     break 2
1676   fi
1677 done
1678 done
1679
1680 fi
1681 fi
1682 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1683 if test -n "$ac_ct_CC"; then
1684   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1685 echo "${ECHO_T}$ac_ct_CC" >&6
1686 else
1687   echo "$as_me:$LINENO: result: no" >&5
1688 echo "${ECHO_T}no" >&6
1689 fi
1690
1691   CC=$ac_ct_CC
1692 else
1693   CC="$ac_cv_prog_CC"
1694 fi
1695
1696 fi
1697 if test -z "$CC"; then
1698   # Extract the first word of "cc", so it can be a program name with args.
1699 set dummy cc; ac_word=$2
1700 echo "$as_me:$LINENO: checking for $ac_word" >&5
1701 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1702 if test "${ac_cv_prog_CC+set}" = set; then
1703   echo $ECHO_N "(cached) $ECHO_C" >&6
1704 else
1705   if test -n "$CC"; then
1706   ac_cv_prog_CC="$CC" # Let the user override the test.
1707 else
1708   ac_prog_rejected=no
1709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1710 for as_dir in $PATH
1711 do
1712   IFS=$as_save_IFS
1713   test -z "$as_dir" && as_dir=.
1714   for ac_exec_ext in '' $ac_executable_extensions; do
1715   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1716     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1717        ac_prog_rejected=yes
1718        continue
1719      fi
1720     ac_cv_prog_CC="cc"
1721     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1722     break 2
1723   fi
1724 done
1725 done
1726
1727 if test $ac_prog_rejected = yes; then
1728   # We found a bogon in the path, so make sure we never use it.
1729   set dummy $ac_cv_prog_CC
1730   shift
1731   if test $# != 0; then
1732     # We chose a different compiler from the bogus one.
1733     # However, it has the same basename, so the bogon will be chosen
1734     # first if we set CC to just the basename; use the full file name.
1735     shift
1736     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1737   fi
1738 fi
1739 fi
1740 fi
1741 CC=$ac_cv_prog_CC
1742 if test -n "$CC"; then
1743   echo "$as_me:$LINENO: result: $CC" >&5
1744 echo "${ECHO_T}$CC" >&6
1745 else
1746   echo "$as_me:$LINENO: result: no" >&5
1747 echo "${ECHO_T}no" >&6
1748 fi
1749
1750 fi
1751 if test -z "$CC"; then
1752   if test -n "$ac_tool_prefix"; then
1753   for ac_prog in cl
1754   do
1755     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1756 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1757 echo "$as_me:$LINENO: checking for $ac_word" >&5
1758 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1759 if test "${ac_cv_prog_CC+set}" = set; then
1760   echo $ECHO_N "(cached) $ECHO_C" >&6
1761 else
1762   if test -n "$CC"; then
1763   ac_cv_prog_CC="$CC" # Let the user override the test.
1764 else
1765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1766 for as_dir in $PATH
1767 do
1768   IFS=$as_save_IFS
1769   test -z "$as_dir" && as_dir=.
1770   for ac_exec_ext in '' $ac_executable_extensions; do
1771   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1772     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1773     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1774     break 2
1775   fi
1776 done
1777 done
1778
1779 fi
1780 fi
1781 CC=$ac_cv_prog_CC
1782 if test -n "$CC"; then
1783   echo "$as_me:$LINENO: result: $CC" >&5
1784 echo "${ECHO_T}$CC" >&6
1785 else
1786   echo "$as_me:$LINENO: result: no" >&5
1787 echo "${ECHO_T}no" >&6
1788 fi
1789
1790     test -n "$CC" && break
1791   done
1792 fi
1793 if test -z "$CC"; then
1794   ac_ct_CC=$CC
1795   for ac_prog in cl
1796 do
1797   # Extract the first word of "$ac_prog", so it can be a program name with args.
1798 set dummy $ac_prog; ac_word=$2
1799 echo "$as_me:$LINENO: checking for $ac_word" >&5
1800 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1801 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1802   echo $ECHO_N "(cached) $ECHO_C" >&6
1803 else
1804   if test -n "$ac_ct_CC"; then
1805   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1806 else
1807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1808 for as_dir in $PATH
1809 do
1810   IFS=$as_save_IFS
1811   test -z "$as_dir" && as_dir=.
1812   for ac_exec_ext in '' $ac_executable_extensions; do
1813   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1814     ac_cv_prog_ac_ct_CC="$ac_prog"
1815     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1816     break 2
1817   fi
1818 done
1819 done
1820
1821 fi
1822 fi
1823 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1824 if test -n "$ac_ct_CC"; then
1825   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1826 echo "${ECHO_T}$ac_ct_CC" >&6
1827 else
1828   echo "$as_me:$LINENO: result: no" >&5
1829 echo "${ECHO_T}no" >&6
1830 fi
1831
1832   test -n "$ac_ct_CC" && break
1833 done
1834
1835   CC=$ac_ct_CC
1836 fi
1837
1838 fi
1839
1840
1841 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1842 See \`config.log' for more details." >&5
1843 echo "$as_me: error: no acceptable C compiler found in \$PATH
1844 See \`config.log' for more details." >&2;}
1845    { (exit 1); exit 1; }; }
1846
1847 # Provide some information about the compiler.
1848 echo "$as_me:$LINENO:" \
1849      "checking for C compiler version" >&5
1850 ac_compiler=`set X $ac_compile; echo $2`
1851 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1852   (eval $ac_compiler --version </dev/null >&5) 2>&5
1853   ac_status=$?
1854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1855   (exit $ac_status); }
1856 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1857   (eval $ac_compiler -v </dev/null >&5) 2>&5
1858   ac_status=$?
1859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1860   (exit $ac_status); }
1861 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1862   (eval $ac_compiler -V </dev/null >&5) 2>&5
1863   ac_status=$?
1864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1865   (exit $ac_status); }
1866
1867 cat >conftest.$ac_ext <<_ACEOF
1868 /* confdefs.h.  */
1869 _ACEOF
1870 cat confdefs.h >>conftest.$ac_ext
1871 cat >>conftest.$ac_ext <<_ACEOF
1872 /* end confdefs.h.  */
1873
1874 int
1875 main ()
1876 {
1877
1878   ;
1879   return 0;
1880 }
1881 _ACEOF
1882 ac_clean_files_save=$ac_clean_files
1883 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1884 # Try to create an executable without -o first, disregard a.out.
1885 # It will help us diagnose broken compilers, and finding out an intuition
1886 # of exeext.
1887 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1888 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1889 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1890 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1891   (eval $ac_link_default) 2>&5
1892   ac_status=$?
1893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1894   (exit $ac_status); }; then
1895   # Find the output, starting from the most likely.  This scheme is
1896 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1897 # resort.
1898
1899 # Be careful to initialize this variable, since it used to be cached.
1900 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1901 ac_cv_exeext=
1902 # b.out is created by i960 compilers.
1903 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1904 do
1905   test -f "$ac_file" || continue
1906   case $ac_file in
1907     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1908         ;;
1909     conftest.$ac_ext )
1910         # This is the source file.
1911         ;;
1912     [ab].out )
1913         # We found the default executable, but exeext='' is most
1914         # certainly right.
1915         break;;
1916     *.* )
1917         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1918         # FIXME: I believe we export ac_cv_exeext for Libtool,
1919         # but it would be cool to find out if it's true.  Does anybody
1920         # maintain Libtool? --akim.
1921         export ac_cv_exeext
1922         break;;
1923     * )
1924         break;;
1925   esac
1926 done
1927 else
1928   echo "$as_me: failed program was:" >&5
1929 sed 's/^/| /' conftest.$ac_ext >&5
1930
1931 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1932 See \`config.log' for more details." >&5
1933 echo "$as_me: error: C compiler cannot create executables
1934 See \`config.log' for more details." >&2;}
1935    { (exit 77); exit 77; }; }
1936 fi
1937
1938 ac_exeext=$ac_cv_exeext
1939 echo "$as_me:$LINENO: result: $ac_file" >&5
1940 echo "${ECHO_T}$ac_file" >&6
1941
1942 # Check the compiler produces executables we can run.  If not, either
1943 # the compiler is broken, or we cross compile.
1944 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1945 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1946 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1947 # If not cross compiling, check that we can run a simple program.
1948 if test "$cross_compiling" != yes; then
1949   if { ac_try='./$ac_file'
1950   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1951   (eval $ac_try) 2>&5
1952   ac_status=$?
1953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1954   (exit $ac_status); }; }; then
1955     cross_compiling=no
1956   else
1957     if test "$cross_compiling" = maybe; then
1958         cross_compiling=yes
1959     else
1960         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1961 If you meant to cross compile, use \`--host'.
1962 See \`config.log' for more details." >&5
1963 echo "$as_me: error: cannot run C compiled programs.
1964 If you meant to cross compile, use \`--host'.
1965 See \`config.log' for more details." >&2;}
1966    { (exit 1); exit 1; }; }
1967     fi
1968   fi
1969 fi
1970 echo "$as_me:$LINENO: result: yes" >&5
1971 echo "${ECHO_T}yes" >&6
1972
1973 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1974 ac_clean_files=$ac_clean_files_save
1975 # Check the compiler produces executables we can run.  If not, either
1976 # the compiler is broken, or we cross compile.
1977 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1978 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1979 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1980 echo "${ECHO_T}$cross_compiling" >&6
1981
1982 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1983 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1984 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1985   (eval $ac_link) 2>&5
1986   ac_status=$?
1987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1988   (exit $ac_status); }; then
1989   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1990 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1991 # work properly (i.e., refer to `conftest.exe'), while it won't with
1992 # `rm'.
1993 for ac_file in conftest.exe conftest conftest.*; do
1994   test -f "$ac_file" || continue
1995   case $ac_file in
1996     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1997     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1998           export ac_cv_exeext
1999           break;;
2000     * ) break;;
2001   esac
2002 done
2003 else
2004   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2005 See \`config.log' for more details." >&5
2006 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2007 See \`config.log' for more details." >&2;}
2008    { (exit 1); exit 1; }; }
2009 fi
2010
2011 rm -f conftest$ac_cv_exeext
2012 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2013 echo "${ECHO_T}$ac_cv_exeext" >&6
2014
2015 rm -f conftest.$ac_ext
2016 EXEEXT=$ac_cv_exeext
2017 ac_exeext=$EXEEXT
2018 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2019 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2020 if test "${ac_cv_objext+set}" = set; then
2021   echo $ECHO_N "(cached) $ECHO_C" >&6
2022 else
2023   cat >conftest.$ac_ext <<_ACEOF
2024 /* confdefs.h.  */
2025 _ACEOF
2026 cat confdefs.h >>conftest.$ac_ext
2027 cat >>conftest.$ac_ext <<_ACEOF
2028 /* end confdefs.h.  */
2029
2030 int
2031 main ()
2032 {
2033
2034   ;
2035   return 0;
2036 }
2037 _ACEOF
2038 rm -f conftest.o conftest.obj
2039 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2040   (eval $ac_compile) 2>&5
2041   ac_status=$?
2042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2043   (exit $ac_status); }; then
2044   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2045   case $ac_file in
2046     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2047     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2048        break;;
2049   esac
2050 done
2051 else
2052   echo "$as_me: failed program was:" >&5
2053 sed 's/^/| /' conftest.$ac_ext >&5
2054
2055 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2056 See \`config.log' for more details." >&5
2057 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2058 See \`config.log' for more details." >&2;}
2059    { (exit 1); exit 1; }; }
2060 fi
2061
2062 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2063 fi
2064 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2065 echo "${ECHO_T}$ac_cv_objext" >&6
2066 OBJEXT=$ac_cv_objext
2067 ac_objext=$OBJEXT
2068 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2069 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2070 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2071   echo $ECHO_N "(cached) $ECHO_C" >&6
2072 else
2073   cat >conftest.$ac_ext <<_ACEOF
2074 /* confdefs.h.  */
2075 _ACEOF
2076 cat confdefs.h >>conftest.$ac_ext
2077 cat >>conftest.$ac_ext <<_ACEOF
2078 /* end confdefs.h.  */
2079
2080 int
2081 main ()
2082 {
2083 #ifndef __GNUC__
2084        choke me
2085 #endif
2086
2087   ;
2088   return 0;
2089 }
2090 _ACEOF
2091 rm -f conftest.$ac_objext
2092 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2093   (eval $ac_compile) 2>conftest.er1
2094   ac_status=$?
2095   grep -v '^ *+' conftest.er1 >conftest.err
2096   rm -f conftest.er1
2097   cat conftest.err >&5
2098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2099   (exit $ac_status); } &&
2100          { ac_try='test -z "$ac_c_werror_flag"
2101                          || test ! -s conftest.err'
2102   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2103   (eval $ac_try) 2>&5
2104   ac_status=$?
2105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2106   (exit $ac_status); }; } &&
2107          { ac_try='test -s conftest.$ac_objext'
2108   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2109   (eval $ac_try) 2>&5
2110   ac_status=$?
2111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2112   (exit $ac_status); }; }; then
2113   ac_compiler_gnu=yes
2114 else
2115   echo "$as_me: failed program was:" >&5
2116 sed 's/^/| /' conftest.$ac_ext >&5
2117
2118 ac_compiler_gnu=no
2119 fi
2120 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2121 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2122
2123 fi
2124 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2125 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2126 GCC=`test $ac_compiler_gnu = yes && echo yes`
2127 ac_test_CFLAGS=${CFLAGS+set}
2128 ac_save_CFLAGS=$CFLAGS
2129 CFLAGS="-g"
2130 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2131 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2132 if test "${ac_cv_prog_cc_g+set}" = set; then
2133   echo $ECHO_N "(cached) $ECHO_C" >&6
2134 else
2135   cat >conftest.$ac_ext <<_ACEOF
2136 /* confdefs.h.  */
2137 _ACEOF
2138 cat confdefs.h >>conftest.$ac_ext
2139 cat >>conftest.$ac_ext <<_ACEOF
2140 /* end confdefs.h.  */
2141
2142 int
2143 main ()
2144 {
2145
2146   ;
2147   return 0;
2148 }
2149 _ACEOF
2150 rm -f conftest.$ac_objext
2151 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2152   (eval $ac_compile) 2>conftest.er1
2153   ac_status=$?
2154   grep -v '^ *+' conftest.er1 >conftest.err
2155   rm -f conftest.er1
2156   cat conftest.err >&5
2157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2158   (exit $ac_status); } &&
2159          { ac_try='test -z "$ac_c_werror_flag"
2160                          || test ! -s conftest.err'
2161   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2162   (eval $ac_try) 2>&5
2163   ac_status=$?
2164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2165   (exit $ac_status); }; } &&
2166          { ac_try='test -s conftest.$ac_objext'
2167   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2168   (eval $ac_try) 2>&5
2169   ac_status=$?
2170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2171   (exit $ac_status); }; }; then
2172   ac_cv_prog_cc_g=yes
2173 else
2174   echo "$as_me: failed program was:" >&5
2175 sed 's/^/| /' conftest.$ac_ext >&5
2176
2177 ac_cv_prog_cc_g=no
2178 fi
2179 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2180 fi
2181 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2182 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2183 if test "$ac_test_CFLAGS" = set; then
2184   CFLAGS=$ac_save_CFLAGS
2185 elif test $ac_cv_prog_cc_g = yes; then
2186   if test "$GCC" = yes; then
2187     CFLAGS="-g -O2"
2188   else
2189     CFLAGS="-g"
2190   fi
2191 else
2192   if test "$GCC" = yes; then
2193     CFLAGS="-O2"
2194   else
2195     CFLAGS=
2196   fi
2197 fi
2198 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2199 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2200 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2201   echo $ECHO_N "(cached) $ECHO_C" >&6
2202 else
2203   ac_cv_prog_cc_stdc=no
2204 ac_save_CC=$CC
2205 cat >conftest.$ac_ext <<_ACEOF
2206 /* confdefs.h.  */
2207 _ACEOF
2208 cat confdefs.h >>conftest.$ac_ext
2209 cat >>conftest.$ac_ext <<_ACEOF
2210 /* end confdefs.h.  */
2211 #include <stdarg.h>
2212 #include <stdio.h>
2213 #include <sys/types.h>
2214 #include <sys/stat.h>
2215 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2216 struct buf { int x; };
2217 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2218 static char *e (p, i)
2219      char **p;
2220      int i;
2221 {
2222   return p[i];
2223 }
2224 static char *f (char * (*g) (char **, int), char **p, ...)
2225 {
2226   char *s;
2227   va_list v;
2228   va_start (v,p);
2229   s = g (p, va_arg (v,int));
2230   va_end (v);
2231   return s;
2232 }
2233
2234 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2235    function prototypes and stuff, but not '\xHH' hex character constants.
2236    These don't provoke an error unfortunately, instead are silently treated
2237    as 'x'.  The following induces an error, until -std1 is added to get
2238    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2239    array size at least.  It's necessary to write '\x00'==0 to get something
2240    that's true only with -std1.  */
2241 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2242
2243 int test (int i, double x);
2244 struct s1 {int (*f) (int a);};
2245 struct s2 {int (*f) (double a);};
2246 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2247 int argc;
2248 char **argv;
2249 int
2250 main ()
2251 {
2252 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2253   ;
2254   return 0;
2255 }
2256 _ACEOF
2257 # Don't try gcc -ansi; that turns off useful extensions and
2258 # breaks some systems' header files.
2259 # AIX                   -qlanglvl=ansi
2260 # Ultrix and OSF/1      -std1
2261 # HP-UX 10.20 and later -Ae
2262 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2263 # SVR4                  -Xc -D__EXTENSIONS__
2264 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2265 do
2266   CC="$ac_save_CC $ac_arg"
2267   rm -f conftest.$ac_objext
2268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2269   (eval $ac_compile) 2>conftest.er1
2270   ac_status=$?
2271   grep -v '^ *+' conftest.er1 >conftest.err
2272   rm -f conftest.er1
2273   cat conftest.err >&5
2274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2275   (exit $ac_status); } &&
2276          { ac_try='test -z "$ac_c_werror_flag"
2277                          || test ! -s conftest.err'
2278   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2279   (eval $ac_try) 2>&5
2280   ac_status=$?
2281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2282   (exit $ac_status); }; } &&
2283          { ac_try='test -s conftest.$ac_objext'
2284   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2285   (eval $ac_try) 2>&5
2286   ac_status=$?
2287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2288   (exit $ac_status); }; }; then
2289   ac_cv_prog_cc_stdc=$ac_arg
2290 break
2291 else
2292   echo "$as_me: failed program was:" >&5
2293 sed 's/^/| /' conftest.$ac_ext >&5
2294
2295 fi
2296 rm -f conftest.err conftest.$ac_objext
2297 done
2298 rm -f conftest.$ac_ext conftest.$ac_objext
2299 CC=$ac_save_CC
2300
2301 fi
2302
2303 case "x$ac_cv_prog_cc_stdc" in
2304   x|xno)
2305     echo "$as_me:$LINENO: result: none needed" >&5
2306 echo "${ECHO_T}none needed" >&6 ;;
2307   *)
2308     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2309 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2310     CC="$CC $ac_cv_prog_cc_stdc" ;;
2311 esac
2312
2313 # Some people use a C++ compiler to compile C.  Since we use `exit',
2314 # in C++ we need to declare it.  In case someone uses the same compiler
2315 # for both compiling C and C++ we need to have the C++ compiler decide
2316 # the declaration of exit, since it's the most demanding environment.
2317 cat >conftest.$ac_ext <<_ACEOF
2318 #ifndef __cplusplus
2319   choke me
2320 #endif
2321 _ACEOF
2322 rm -f conftest.$ac_objext
2323 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2324   (eval $ac_compile) 2>conftest.er1
2325   ac_status=$?
2326   grep -v '^ *+' conftest.er1 >conftest.err
2327   rm -f conftest.er1
2328   cat conftest.err >&5
2329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2330   (exit $ac_status); } &&
2331          { ac_try='test -z "$ac_c_werror_flag"
2332                          || test ! -s conftest.err'
2333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2334   (eval $ac_try) 2>&5
2335   ac_status=$?
2336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2337   (exit $ac_status); }; } &&
2338          { ac_try='test -s conftest.$ac_objext'
2339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2340   (eval $ac_try) 2>&5
2341   ac_status=$?
2342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2343   (exit $ac_status); }; }; then
2344   for ac_declaration in \
2345    '' \
2346    'extern "C" void std::exit (int) throw (); using std::exit;' \
2347    'extern "C" void std::exit (int); using std::exit;' \
2348    'extern "C" void exit (int) throw ();' \
2349    'extern "C" void exit (int);' \
2350    'void exit (int);'
2351 do
2352   cat >conftest.$ac_ext <<_ACEOF
2353 /* confdefs.h.  */
2354 _ACEOF
2355 cat confdefs.h >>conftest.$ac_ext
2356 cat >>conftest.$ac_ext <<_ACEOF
2357 /* end confdefs.h.  */
2358 $ac_declaration
2359 #include <stdlib.h>
2360 int
2361 main ()
2362 {
2363 exit (42);
2364   ;
2365   return 0;
2366 }
2367 _ACEOF
2368 rm -f conftest.$ac_objext
2369 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2370   (eval $ac_compile) 2>conftest.er1
2371   ac_status=$?
2372   grep -v '^ *+' conftest.er1 >conftest.err
2373   rm -f conftest.er1
2374   cat conftest.err >&5
2375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2376   (exit $ac_status); } &&
2377          { ac_try='test -z "$ac_c_werror_flag"
2378                          || test ! -s conftest.err'
2379   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2380   (eval $ac_try) 2>&5
2381   ac_status=$?
2382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2383   (exit $ac_status); }; } &&
2384          { ac_try='test -s conftest.$ac_objext'
2385   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2386   (eval $ac_try) 2>&5
2387   ac_status=$?
2388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2389   (exit $ac_status); }; }; then
2390   :
2391 else
2392   echo "$as_me: failed program was:" >&5
2393 sed 's/^/| /' conftest.$ac_ext >&5
2394
2395 continue
2396 fi
2397 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2398   cat >conftest.$ac_ext <<_ACEOF
2399 /* confdefs.h.  */
2400 _ACEOF
2401 cat confdefs.h >>conftest.$ac_ext
2402 cat >>conftest.$ac_ext <<_ACEOF
2403 /* end confdefs.h.  */
2404 $ac_declaration
2405 int
2406 main ()
2407 {
2408 exit (42);
2409   ;
2410   return 0;
2411 }
2412 _ACEOF
2413 rm -f conftest.$ac_objext
2414 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2415   (eval $ac_compile) 2>conftest.er1
2416   ac_status=$?
2417   grep -v '^ *+' conftest.er1 >conftest.err
2418   rm -f conftest.er1
2419   cat conftest.err >&5
2420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2421   (exit $ac_status); } &&
2422          { ac_try='test -z "$ac_c_werror_flag"
2423                          || test ! -s conftest.err'
2424   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2425   (eval $ac_try) 2>&5
2426   ac_status=$?
2427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2428   (exit $ac_status); }; } &&
2429          { ac_try='test -s conftest.$ac_objext'
2430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2431   (eval $ac_try) 2>&5
2432   ac_status=$?
2433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2434   (exit $ac_status); }; }; then
2435   break
2436 else
2437   echo "$as_me: failed program was:" >&5
2438 sed 's/^/| /' conftest.$ac_ext >&5
2439
2440 fi
2441 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2442 done
2443 rm -f conftest*
2444 if test -n "$ac_declaration"; then
2445   echo '#ifdef __cplusplus' >>confdefs.h
2446   echo $ac_declaration      >>confdefs.h
2447   echo '#endif'             >>confdefs.h
2448 fi
2449
2450 else
2451   echo "$as_me: failed program was:" >&5
2452 sed 's/^/| /' conftest.$ac_ext >&5
2453
2454 fi
2455 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2456 ac_ext=c
2457 ac_cpp='$CPP $CPPFLAGS'
2458 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2459 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2460 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2461
2462 ac_ext=cc
2463 ac_cpp='$CXXCPP $CPPFLAGS'
2464 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2465 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2466 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2467 if test -n "$ac_tool_prefix"; then
2468   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2469   do
2470     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2471 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2472 echo "$as_me:$LINENO: checking for $ac_word" >&5
2473 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2474 if test "${ac_cv_prog_CXX+set}" = set; then
2475   echo $ECHO_N "(cached) $ECHO_C" >&6
2476 else
2477   if test -n "$CXX"; then
2478   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2479 else
2480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2481 for as_dir in $PATH
2482 do
2483   IFS=$as_save_IFS
2484   test -z "$as_dir" && as_dir=.
2485   for ac_exec_ext in '' $ac_executable_extensions; do
2486   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2487     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2488     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2489     break 2
2490   fi
2491 done
2492 done
2493
2494 fi
2495 fi
2496 CXX=$ac_cv_prog_CXX
2497 if test -n "$CXX"; then
2498   echo "$as_me:$LINENO: result: $CXX" >&5
2499 echo "${ECHO_T}$CXX" >&6
2500 else
2501   echo "$as_me:$LINENO: result: no" >&5
2502 echo "${ECHO_T}no" >&6
2503 fi
2504
2505     test -n "$CXX" && break
2506   done
2507 fi
2508 if test -z "$CXX"; then
2509   ac_ct_CXX=$CXX
2510   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2511 do
2512   # Extract the first word of "$ac_prog", so it can be a program name with args.
2513 set dummy $ac_prog; ac_word=$2
2514 echo "$as_me:$LINENO: checking for $ac_word" >&5
2515 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2516 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2517   echo $ECHO_N "(cached) $ECHO_C" >&6
2518 else
2519   if test -n "$ac_ct_CXX"; then
2520   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2521 else
2522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2523 for as_dir in $PATH
2524 do
2525   IFS=$as_save_IFS
2526   test -z "$as_dir" && as_dir=.
2527   for ac_exec_ext in '' $ac_executable_extensions; do
2528   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2529     ac_cv_prog_ac_ct_CXX="$ac_prog"
2530     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2531     break 2
2532   fi
2533 done
2534 done
2535
2536 fi
2537 fi
2538 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2539 if test -n "$ac_ct_CXX"; then
2540   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2541 echo "${ECHO_T}$ac_ct_CXX" >&6
2542 else
2543   echo "$as_me:$LINENO: result: no" >&5
2544 echo "${ECHO_T}no" >&6
2545 fi
2546
2547   test -n "$ac_ct_CXX" && break
2548 done
2549 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2550
2551   CXX=$ac_ct_CXX
2552 fi
2553
2554
2555 # Provide some information about the compiler.
2556 echo "$as_me:$LINENO:" \
2557      "checking for C++ compiler version" >&5
2558 ac_compiler=`set X $ac_compile; echo $2`
2559 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2560   (eval $ac_compiler --version </dev/null >&5) 2>&5
2561   ac_status=$?
2562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2563   (exit $ac_status); }
2564 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2565   (eval $ac_compiler -v </dev/null >&5) 2>&5
2566   ac_status=$?
2567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2568   (exit $ac_status); }
2569 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2570   (eval $ac_compiler -V </dev/null >&5) 2>&5
2571   ac_status=$?
2572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2573   (exit $ac_status); }
2574
2575 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2576 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2577 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2578   echo $ECHO_N "(cached) $ECHO_C" >&6
2579 else
2580   cat >conftest.$ac_ext <<_ACEOF
2581 /* confdefs.h.  */
2582 _ACEOF
2583 cat confdefs.h >>conftest.$ac_ext
2584 cat >>conftest.$ac_ext <<_ACEOF
2585 /* end confdefs.h.  */
2586
2587 int
2588 main ()
2589 {
2590 #ifndef __GNUC__
2591        choke me
2592 #endif
2593
2594   ;
2595   return 0;
2596 }
2597 _ACEOF
2598 rm -f conftest.$ac_objext
2599 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2600   (eval $ac_compile) 2>conftest.er1
2601   ac_status=$?
2602   grep -v '^ *+' conftest.er1 >conftest.err
2603   rm -f conftest.er1
2604   cat conftest.err >&5
2605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2606   (exit $ac_status); } &&
2607          { ac_try='test -z "$ac_cxx_werror_flag"
2608                          || test ! -s conftest.err'
2609   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2610   (eval $ac_try) 2>&5
2611   ac_status=$?
2612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2613   (exit $ac_status); }; } &&
2614          { ac_try='test -s conftest.$ac_objext'
2615   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2616   (eval $ac_try) 2>&5
2617   ac_status=$?
2618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2619   (exit $ac_status); }; }; then
2620   ac_compiler_gnu=yes
2621 else
2622   echo "$as_me: failed program was:" >&5
2623 sed 's/^/| /' conftest.$ac_ext >&5
2624
2625 ac_compiler_gnu=no
2626 fi
2627 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2628 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2629
2630 fi
2631 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2632 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2633 GXX=`test $ac_compiler_gnu = yes && echo yes`
2634 ac_test_CXXFLAGS=${CXXFLAGS+set}
2635 ac_save_CXXFLAGS=$CXXFLAGS
2636 CXXFLAGS="-g"
2637 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2638 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2639 if test "${ac_cv_prog_cxx_g+set}" = set; then
2640   echo $ECHO_N "(cached) $ECHO_C" >&6
2641 else
2642   cat >conftest.$ac_ext <<_ACEOF
2643 /* confdefs.h.  */
2644 _ACEOF
2645 cat confdefs.h >>conftest.$ac_ext
2646 cat >>conftest.$ac_ext <<_ACEOF
2647 /* end confdefs.h.  */
2648
2649 int
2650 main ()
2651 {
2652
2653   ;
2654   return 0;
2655 }
2656 _ACEOF
2657 rm -f conftest.$ac_objext
2658 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2659   (eval $ac_compile) 2>conftest.er1
2660   ac_status=$?
2661   grep -v '^ *+' conftest.er1 >conftest.err
2662   rm -f conftest.er1
2663   cat conftest.err >&5
2664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2665   (exit $ac_status); } &&
2666          { ac_try='test -z "$ac_cxx_werror_flag"
2667                          || test ! -s conftest.err'
2668   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2669   (eval $ac_try) 2>&5
2670   ac_status=$?
2671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2672   (exit $ac_status); }; } &&
2673          { ac_try='test -s conftest.$ac_objext'
2674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2675   (eval $ac_try) 2>&5
2676   ac_status=$?
2677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2678   (exit $ac_status); }; }; then
2679   ac_cv_prog_cxx_g=yes
2680 else
2681   echo "$as_me: failed program was:" >&5
2682 sed 's/^/| /' conftest.$ac_ext >&5
2683
2684 ac_cv_prog_cxx_g=no
2685 fi
2686 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2687 fi
2688 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2689 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2690 if test "$ac_test_CXXFLAGS" = set; then
2691   CXXFLAGS=$ac_save_CXXFLAGS
2692 elif test $ac_cv_prog_cxx_g = yes; then
2693   if test "$GXX" = yes; then
2694     CXXFLAGS="-g -O2"
2695   else
2696     CXXFLAGS="-g"
2697   fi
2698 else
2699   if test "$GXX" = yes; then
2700     CXXFLAGS="-O2"
2701   else
2702     CXXFLAGS=
2703   fi
2704 fi
2705 for ac_declaration in \
2706    '' \
2707    'extern "C" void std::exit (int) throw (); using std::exit;' \
2708    'extern "C" void std::exit (int); using std::exit;' \
2709    'extern "C" void exit (int) throw ();' \
2710    'extern "C" void exit (int);' \
2711    'void exit (int);'
2712 do
2713   cat >conftest.$ac_ext <<_ACEOF
2714 /* confdefs.h.  */
2715 _ACEOF
2716 cat confdefs.h >>conftest.$ac_ext
2717 cat >>conftest.$ac_ext <<_ACEOF
2718 /* end confdefs.h.  */
2719 $ac_declaration
2720 #include <stdlib.h>
2721 int
2722 main ()
2723 {
2724 exit (42);
2725   ;
2726   return 0;
2727 }
2728 _ACEOF
2729 rm -f conftest.$ac_objext
2730 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2731   (eval $ac_compile) 2>conftest.er1
2732   ac_status=$?
2733   grep -v '^ *+' conftest.er1 >conftest.err
2734   rm -f conftest.er1
2735   cat conftest.err >&5
2736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2737   (exit $ac_status); } &&
2738          { ac_try='test -z "$ac_cxx_werror_flag"
2739                          || test ! -s conftest.err'
2740   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2741   (eval $ac_try) 2>&5
2742   ac_status=$?
2743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2744   (exit $ac_status); }; } &&
2745          { ac_try='test -s conftest.$ac_objext'
2746   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2747   (eval $ac_try) 2>&5
2748   ac_status=$?
2749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2750   (exit $ac_status); }; }; then
2751   :
2752 else
2753   echo "$as_me: failed program was:" >&5
2754 sed 's/^/| /' conftest.$ac_ext >&5
2755
2756 continue
2757 fi
2758 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2759   cat >conftest.$ac_ext <<_ACEOF
2760 /* confdefs.h.  */
2761 _ACEOF
2762 cat confdefs.h >>conftest.$ac_ext
2763 cat >>conftest.$ac_ext <<_ACEOF
2764 /* end confdefs.h.  */
2765 $ac_declaration
2766 int
2767 main ()
2768 {
2769 exit (42);
2770   ;
2771   return 0;
2772 }
2773 _ACEOF
2774 rm -f conftest.$ac_objext
2775 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2776   (eval $ac_compile) 2>conftest.er1
2777   ac_status=$?
2778   grep -v '^ *+' conftest.er1 >conftest.err
2779   rm -f conftest.er1
2780   cat conftest.err >&5
2781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2782   (exit $ac_status); } &&
2783          { ac_try='test -z "$ac_cxx_werror_flag"
2784                          || test ! -s conftest.err'
2785   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2786   (eval $ac_try) 2>&5
2787   ac_status=$?
2788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2789   (exit $ac_status); }; } &&
2790          { ac_try='test -s conftest.$ac_objext'
2791   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2792   (eval $ac_try) 2>&5
2793   ac_status=$?
2794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2795   (exit $ac_status); }; }; then
2796   break
2797 else
2798   echo "$as_me: failed program was:" >&5
2799 sed 's/^/| /' conftest.$ac_ext >&5
2800
2801 fi
2802 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2803 done
2804 rm -f conftest*
2805 if test -n "$ac_declaration"; then
2806   echo '#ifdef __cplusplus' >>confdefs.h
2807   echo $ac_declaration      >>confdefs.h
2808   echo '#endif'             >>confdefs.h
2809 fi
2810
2811 ac_ext=c
2812 ac_cpp='$CPP $CPPFLAGS'
2813 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2814 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2815 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2816
2817 if test "x$CC" != xcc; then
2818   echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2819 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2820 else
2821   echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2822 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2823 fi
2824 set dummy $CC; ac_cc=`echo $2 |
2825                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2826 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2827   echo $ECHO_N "(cached) $ECHO_C" >&6
2828 else
2829   cat >conftest.$ac_ext <<_ACEOF
2830 /* confdefs.h.  */
2831 _ACEOF
2832 cat confdefs.h >>conftest.$ac_ext
2833 cat >>conftest.$ac_ext <<_ACEOF
2834 /* end confdefs.h.  */
2835
2836 int
2837 main ()
2838 {
2839
2840   ;
2841   return 0;
2842 }
2843 _ACEOF
2844 # Make sure it works both with $CC and with simple cc.
2845 # We do the test twice because some compilers refuse to overwrite an
2846 # existing .o file with -o, though they will create one.
2847 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2848 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2849   (eval $ac_try) 2>&5
2850   ac_status=$?
2851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2852   (exit $ac_status); } &&
2853    test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2854   (eval $ac_try) 2>&5
2855   ac_status=$?
2856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2857   (exit $ac_status); };
2858 then
2859   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2860   if test "x$CC" != xcc; then
2861     # Test first that cc exists at all.
2862     if { ac_try='cc -c conftest.$ac_ext >&5'
2863   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2864   (eval $ac_try) 2>&5
2865   ac_status=$?
2866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2867   (exit $ac_status); }; }; then
2868       ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2869       if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2870   (eval $ac_try) 2>&5
2871   ac_status=$?
2872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2873   (exit $ac_status); } &&
2874          test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2875   (eval $ac_try) 2>&5
2876   ac_status=$?
2877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2878   (exit $ac_status); };
2879       then
2880         # cc works too.
2881         :
2882       else
2883         # cc exists but doesn't like -o.
2884         eval ac_cv_prog_cc_${ac_cc}_c_o=no
2885       fi
2886     fi
2887   fi
2888 else
2889   eval ac_cv_prog_cc_${ac_cc}_c_o=no
2890 fi
2891 rm -f conftest*
2892
2893 fi
2894 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2895   echo "$as_me:$LINENO: result: yes" >&5
2896 echo "${ECHO_T}yes" >&6
2897 else
2898   echo "$as_me:$LINENO: result: no" >&5
2899 echo "${ECHO_T}no" >&6
2900
2901 cat >>confdefs.h <<\_ACEOF
2902 #define NO_MINUS_C_MINUS_O 1
2903 _ACEOF
2904
2905 fi
2906
2907 ac_ext=c
2908 ac_cpp='$CPP $CPPFLAGS'
2909 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2910 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2911 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2912 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2913 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2914 # On Suns, sometimes $CPP names a directory.
2915 if test -n "$CPP" && test -d "$CPP"; then
2916   CPP=
2917 fi
2918 if test -z "$CPP"; then
2919   if test "${ac_cv_prog_CPP+set}" = set; then
2920   echo $ECHO_N "(cached) $ECHO_C" >&6
2921 else
2922       # Double quotes because CPP needs to be expanded
2923     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2924     do
2925       ac_preproc_ok=false
2926 for ac_c_preproc_warn_flag in '' yes
2927 do
2928   # Use a header file that comes with gcc, so configuring glibc
2929   # with a fresh cross-compiler works.
2930   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2931   # <limits.h> exists even on freestanding compilers.
2932   # On the NeXT, cc -E runs the code through the compiler's parser,
2933   # not just through cpp. "Syntax error" is here to catch this case.
2934   cat >conftest.$ac_ext <<_ACEOF
2935 /* confdefs.h.  */
2936 _ACEOF
2937 cat confdefs.h >>conftest.$ac_ext
2938 cat >>conftest.$ac_ext <<_ACEOF
2939 /* end confdefs.h.  */
2940 #ifdef __STDC__
2941 # include <limits.h>
2942 #else
2943 # include <assert.h>
2944 #endif
2945                      Syntax error
2946 _ACEOF
2947 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2948   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2949   ac_status=$?
2950   grep -v '^ *+' conftest.er1 >conftest.err
2951   rm -f conftest.er1
2952   cat conftest.err >&5
2953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2954   (exit $ac_status); } >/dev/null; then
2955   if test -s conftest.err; then
2956     ac_cpp_err=$ac_c_preproc_warn_flag
2957     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2958   else
2959     ac_cpp_err=
2960   fi
2961 else
2962   ac_cpp_err=yes
2963 fi
2964 if test -z "$ac_cpp_err"; then
2965   :
2966 else
2967   echo "$as_me: failed program was:" >&5
2968 sed 's/^/| /' conftest.$ac_ext >&5
2969
2970   # Broken: fails on valid input.
2971 continue
2972 fi
2973 rm -f conftest.err conftest.$ac_ext
2974
2975   # OK, works on sane cases.  Now check whether non-existent headers
2976   # can be detected and how.
2977   cat >conftest.$ac_ext <<_ACEOF
2978 /* confdefs.h.  */
2979 _ACEOF
2980 cat confdefs.h >>conftest.$ac_ext
2981 cat >>conftest.$ac_ext <<_ACEOF
2982 /* end confdefs.h.  */
2983 #include <ac_nonexistent.h>
2984 _ACEOF
2985 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2986   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2987   ac_status=$?
2988   grep -v '^ *+' conftest.er1 >conftest.err
2989   rm -f conftest.er1
2990   cat conftest.err >&5
2991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2992   (exit $ac_status); } >/dev/null; then
2993   if test -s conftest.err; then
2994     ac_cpp_err=$ac_c_preproc_warn_flag
2995     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2996   else
2997     ac_cpp_err=
2998   fi
2999 else
3000   ac_cpp_err=yes
3001 fi
3002 if test -z "$ac_cpp_err"; then
3003   # Broken: success on invalid input.
3004 continue
3005 else
3006   echo "$as_me: failed program was:" >&5
3007 sed 's/^/| /' conftest.$ac_ext >&5
3008
3009   # Passes both tests.
3010 ac_preproc_ok=:
3011 break
3012 fi
3013 rm -f conftest.err conftest.$ac_ext
3014
3015 done
3016 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3017 rm -f conftest.err conftest.$ac_ext
3018 if $ac_preproc_ok; then
3019   break
3020 fi
3021
3022     done
3023     ac_cv_prog_CPP=$CPP
3024
3025 fi
3026   CPP=$ac_cv_prog_CPP
3027 else
3028   ac_cv_prog_CPP=$CPP
3029 fi
3030 echo "$as_me:$LINENO: result: $CPP" >&5
3031 echo "${ECHO_T}$CPP" >&6
3032 ac_preproc_ok=false
3033 for ac_c_preproc_warn_flag in '' yes
3034 do
3035   # Use a header file that comes with gcc, so configuring glibc
3036   # with a fresh cross-compiler works.
3037   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3038   # <limits.h> exists even on freestanding compilers.
3039   # On the NeXT, cc -E runs the code through the compiler's parser,
3040   # not just through cpp. "Syntax error" is here to catch this case.
3041   cat >conftest.$ac_ext <<_ACEOF
3042 /* confdefs.h.  */
3043 _ACEOF
3044 cat confdefs.h >>conftest.$ac_ext
3045 cat >>conftest.$ac_ext <<_ACEOF
3046 /* end confdefs.h.  */
3047 #ifdef __STDC__
3048 # include <limits.h>
3049 #else
3050 # include <assert.h>
3051 #endif
3052                      Syntax error
3053 _ACEOF
3054 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3055   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3056   ac_status=$?
3057   grep -v '^ *+' conftest.er1 >conftest.err
3058   rm -f conftest.er1
3059   cat conftest.err >&5
3060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3061   (exit $ac_status); } >/dev/null; then
3062   if test -s conftest.err; then
3063     ac_cpp_err=$ac_c_preproc_warn_flag
3064     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3065   else
3066     ac_cpp_err=
3067   fi
3068 else
3069   ac_cpp_err=yes
3070 fi
3071 if test -z "$ac_cpp_err"; then
3072   :
3073 else
3074   echo "$as_me: failed program was:" >&5
3075 sed 's/^/| /' conftest.$ac_ext >&5
3076
3077   # Broken: fails on valid input.
3078 continue
3079 fi
3080 rm -f conftest.err conftest.$ac_ext
3081
3082   # OK, works on sane cases.  Now check whether non-existent headers
3083   # can be detected and how.
3084   cat >conftest.$ac_ext <<_ACEOF
3085 /* confdefs.h.  */
3086 _ACEOF
3087 cat confdefs.h >>conftest.$ac_ext
3088 cat >>conftest.$ac_ext <<_ACEOF
3089 /* end confdefs.h.  */
3090 #include <ac_nonexistent.h>
3091 _ACEOF
3092 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3093   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3094   ac_status=$?
3095   grep -v '^ *+' conftest.er1 >conftest.err
3096   rm -f conftest.er1
3097   cat conftest.err >&5
3098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3099   (exit $ac_status); } >/dev/null; then
3100   if test -s conftest.err; then
3101     ac_cpp_err=$ac_c_preproc_warn_flag
3102     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3103   else
3104     ac_cpp_err=
3105   fi
3106 else
3107   ac_cpp_err=yes
3108 fi
3109 if test -z "$ac_cpp_err"; then
3110   # Broken: success on invalid input.
3111 continue
3112 else
3113   echo "$as_me: failed program was:" >&5
3114 sed 's/^/| /' conftest.$ac_ext >&5
3115
3116   # Passes both tests.
3117 ac_preproc_ok=:
3118 break
3119 fi
3120 rm -f conftest.err conftest.$ac_ext
3121
3122 done
3123 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3124 rm -f conftest.err conftest.$ac_ext
3125 if $ac_preproc_ok; then
3126   :
3127 else
3128   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3129 See \`config.log' for more details." >&5
3130 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3131 See \`config.log' for more details." >&2;}
3132    { (exit 1); exit 1; }; }
3133 fi
3134
3135 ac_ext=c
3136 ac_cpp='$CPP $CPPFLAGS'
3137 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3138 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3139 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3140
3141
3142 echo "$as_me:$LINENO: checking for egrep" >&5
3143 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3144 if test "${ac_cv_prog_egrep+set}" = set; then
3145   echo $ECHO_N "(cached) $ECHO_C" >&6
3146 else
3147   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3148     then ac_cv_prog_egrep='grep -E'
3149     else ac_cv_prog_egrep='egrep'
3150     fi
3151 fi
3152 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3153 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3154  EGREP=$ac_cv_prog_egrep
3155
3156
3157 if test $ac_cv_c_compiler_gnu = yes; then
3158     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3159 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3160 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3161   echo $ECHO_N "(cached) $ECHO_C" >&6
3162 else
3163     ac_pattern="Autoconf.*'x'"
3164   cat >conftest.$ac_ext <<_ACEOF
3165 /* confdefs.h.  */
3166 _ACEOF
3167 cat confdefs.h >>conftest.$ac_ext
3168 cat >>conftest.$ac_ext <<_ACEOF
3169 /* end confdefs.h.  */
3170 #include <sgtty.h>
3171 Autoconf TIOCGETP
3172 _ACEOF
3173 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3174   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3175   ac_cv_prog_gcc_traditional=yes
3176 else
3177   ac_cv_prog_gcc_traditional=no
3178 fi
3179 rm -f conftest*
3180
3181
3182   if test $ac_cv_prog_gcc_traditional = no; then
3183     cat >conftest.$ac_ext <<_ACEOF
3184 /* confdefs.h.  */
3185 _ACEOF
3186 cat confdefs.h >>conftest.$ac_ext
3187 cat >>conftest.$ac_ext <<_ACEOF
3188 /* end confdefs.h.  */
3189 #include <termio.h>
3190 Autoconf TCGETA
3191 _ACEOF
3192 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3193   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3194   ac_cv_prog_gcc_traditional=yes
3195 fi
3196 rm -f conftest*
3197
3198   fi
3199 fi
3200 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3201 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3202   if test $ac_cv_prog_gcc_traditional = yes; then
3203     CC="$CC -traditional"
3204   fi
3205 fi
3206
3207 if test "x$CC" = xgcc; then
3208    cat >>confdefs.h <<\_ACEOF
3209 #define HAVE_GCC 1
3210 _ACEOF
3211
3212 fi
3213 # Extract the first word of "$CXX", so it can be a program name with args.
3214 set dummy $CXX; ac_word=$2
3215 echo "$as_me:$LINENO: checking for $ac_word" >&5
3216 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3217 if test "${ac_cv_path_CXX+set}" = set; then
3218   echo $ECHO_N "(cached) $ECHO_C" >&6
3219 else
3220   case $CXX in
3221   [\\/]* | ?:[\\/]*)
3222   ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3223   ;;
3224   *)
3225   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3226 for as_dir in $PATH
3227 do
3228   IFS=$as_save_IFS
3229   test -z "$as_dir" && as_dir=.
3230   for ac_exec_ext in '' $ac_executable_extensions; do
3231   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3232     ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
3233     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3234     break 2
3235   fi
3236 done
3237 done
3238
3239   test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
3240   ;;
3241 esac
3242 fi
3243 CXX=$ac_cv_path_CXX
3244
3245 if test -n "$CXX"; then
3246   echo "$as_me:$LINENO: result: $CXX" >&5
3247 echo "${ECHO_T}$CXX" >&6
3248 else
3249   echo "$as_me:$LINENO: result: no" >&5
3250 echo "${ECHO_T}no" >&6
3251 fi
3252
3253 if test ! -e $CXX; then
3254    { { echo "$as_me:$LINENO: error: Unable to find C++ compiler" >&5
3255 echo "$as_me: error: Unable to find C++ compiler" >&2;}
3256    { (exit 1); exit 1; }; }
3257 fi
3258
3259 # Find a good install program.  We prefer a C program (faster),
3260 # so one script is as good as another.  But avoid the broken or
3261 # incompatible versions:
3262 # SysV /etc/install, /usr/sbin/install
3263 # SunOS /usr/etc/install
3264 # IRIX /sbin/install
3265 # AIX /bin/install
3266 # AmigaOS /C/install, which installs bootblocks on floppy discs
3267 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3268 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3269 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3270 # OS/2's system install, which has a completely different semantic
3271 # ./install, which can be erroneously created by make from ./install.sh.
3272 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3273 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3274 if test -z "$INSTALL"; then
3275 if test "${ac_cv_path_install+set}" = set; then
3276   echo $ECHO_N "(cached) $ECHO_C" >&6
3277 else
3278   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3279 for as_dir in $PATH
3280 do
3281   IFS=$as_save_IFS
3282   test -z "$as_dir" && as_dir=.
3283   # Account for people who put trailing slashes in PATH elements.
3284 case $as_dir/ in
3285   ./ | .// | /cC/* | \
3286   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3287   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3288   /usr/ucb/* ) ;;
3289   *)
3290     # OSF1 and SCO ODT 3.0 have their own names for install.
3291     # Don't use installbsd from OSF since it installs stuff as root
3292     # by default.
3293     for ac_prog in ginstall scoinst install; do
3294       for ac_exec_ext in '' $ac_executable_extensions; do
3295         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3296           if test $ac_prog = install &&
3297             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3298             # AIX install.  It has an incompatible calling convention.
3299             :
3300           elif test $ac_prog = install &&
3301             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3302             # program-specific install script used by HP pwplus--don't use.
3303             :
3304           else
3305             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3306             break 3
3307           fi
3308         fi
3309       done
3310     done
3311     ;;
3312 esac
3313 done
3314
3315
3316 fi
3317   if test "${ac_cv_path_install+set}" = set; then
3318     INSTALL=$ac_cv_path_install
3319   else
3320     # As a last resort, use the slow shell script.  We don't cache a
3321     # path for INSTALL within a source directory, because that will
3322     # break other packages using the cache if that directory is
3323     # removed, or if the path is relative.
3324     INSTALL=$ac_install_sh
3325   fi
3326 fi
3327 echo "$as_me:$LINENO: result: $INSTALL" >&5
3328 echo "${ECHO_T}$INSTALL" >&6
3329
3330 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3331 # It thinks the first close brace ends the variable substitution.
3332 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3333
3334 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3335
3336 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3337
3338 if test -n "$ac_tool_prefix"; then
3339   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3340 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3341 echo "$as_me:$LINENO: checking for $ac_word" >&5
3342 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3343 if test "${ac_cv_prog_RANLIB+set}" = set; then
3344   echo $ECHO_N "(cached) $ECHO_C" >&6
3345 else
3346   if test -n "$RANLIB"; then
3347   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3348 else
3349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3350 for as_dir in $PATH
3351 do
3352   IFS=$as_save_IFS
3353   test -z "$as_dir" && as_dir=.
3354   for ac_exec_ext in '' $ac_executable_extensions; do
3355   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3356     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3357     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3358     break 2
3359   fi
3360 done
3361 done
3362
3363 fi
3364 fi
3365 RANLIB=$ac_cv_prog_RANLIB
3366 if test -n "$RANLIB"; then
3367   echo "$as_me:$LINENO: result: $RANLIB" >&5
3368 echo "${ECHO_T}$RANLIB" >&6
3369 else
3370   echo "$as_me:$LINENO: result: no" >&5
3371 echo "${ECHO_T}no" >&6
3372 fi
3373
3374 fi
3375 if test -z "$ac_cv_prog_RANLIB"; then
3376   ac_ct_RANLIB=$RANLIB
3377   # Extract the first word of "ranlib", so it can be a program name with args.
3378 set dummy ranlib; ac_word=$2
3379 echo "$as_me:$LINENO: checking for $ac_word" >&5
3380 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3381 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3382   echo $ECHO_N "(cached) $ECHO_C" >&6
3383 else
3384   if test -n "$ac_ct_RANLIB"; then
3385   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3386 else
3387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3388 for as_dir in $PATH
3389 do
3390   IFS=$as_save_IFS
3391   test -z "$as_dir" && as_dir=.
3392   for ac_exec_ext in '' $ac_executable_extensions; do
3393   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3394     ac_cv_prog_ac_ct_RANLIB="ranlib"
3395     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3396     break 2
3397   fi
3398 done
3399 done
3400
3401   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3402 fi
3403 fi
3404 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3405 if test -n "$ac_ct_RANLIB"; then
3406   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3407 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3408 else
3409   echo "$as_me:$LINENO: result: no" >&5
3410 echo "${ECHO_T}no" >&6
3411 fi
3412
3413   RANLIB=$ac_ct_RANLIB
3414 else
3415   RANLIB="$ac_cv_prog_RANLIB"
3416 fi
3417
3418 # Extract the first word of "mv", so it can be a program name with args.
3419 set dummy mv; ac_word=$2
3420 echo "$as_me:$LINENO: checking for $ac_word" >&5
3421 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3422 if test "${ac_cv_path_MV+set}" = set; then
3423   echo $ECHO_N "(cached) $ECHO_C" >&6
3424 else
3425   case $MV in
3426   [\\/]* | ?:[\\/]*)
3427   ac_cv_path_MV="$MV" # Let the user override the test with a path.
3428   ;;
3429   *)
3430   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3431 for as_dir in $PATH
3432 do
3433   IFS=$as_save_IFS
3434   test -z "$as_dir" && as_dir=.
3435   for ac_exec_ext in '' $ac_executable_extensions; do
3436   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3437     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
3438     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3439     break 2
3440   fi
3441 done
3442 done
3443
3444   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
3445   ;;
3446 esac
3447 fi
3448 MV=$ac_cv_path_MV
3449
3450 if test -n "$MV"; then
3451   echo "$as_me:$LINENO: result: $MV" >&5
3452 echo "${ECHO_T}$MV" >&6
3453 else
3454   echo "$as_me:$LINENO: result: no" >&5
3455 echo "${ECHO_T}no" >&6
3456 fi
3457
3458 # Extract the first word of "rm", so it can be a program name with args.
3459 set dummy rm; ac_word=$2
3460 echo "$as_me:$LINENO: checking for $ac_word" >&5
3461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3462 if test "${ac_cv_path_RM+set}" = set; then
3463   echo $ECHO_N "(cached) $ECHO_C" >&6
3464 else
3465   case $RM in
3466   [\\/]* | ?:[\\/]*)
3467   ac_cv_path_RM="$RM" # Let the user override the test with a path.
3468   ;;
3469   *)
3470   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3471 for as_dir in $PATH
3472 do
3473   IFS=$as_save_IFS
3474   test -z "$as_dir" && as_dir=.
3475   for ac_exec_ext in '' $ac_executable_extensions; do
3476   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3477     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
3478     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3479     break 2
3480   fi
3481 done
3482 done
3483
3484   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
3485   ;;
3486 esac
3487 fi
3488 RM=$ac_cv_path_RM
3489
3490 if test -n "$RM"; then
3491   echo "$as_me:$LINENO: result: $RM" >&5
3492 echo "${ECHO_T}$RM" >&6
3493 else
3494   echo "$as_me:$LINENO: result: no" >&5
3495 echo "${ECHO_T}no" >&6
3496 fi
3497
3498 # Extract the first word of "cp", so it can be a program name with args.
3499 set dummy cp; ac_word=$2
3500 echo "$as_me:$LINENO: checking for $ac_word" >&5
3501 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3502 if test "${ac_cv_path_CP+set}" = set; then
3503   echo $ECHO_N "(cached) $ECHO_C" >&6
3504 else
3505   case $CP in
3506   [\\/]* | ?:[\\/]*)
3507   ac_cv_path_CP="$CP" # Let the user override the test with a path.
3508   ;;
3509   *)
3510   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3511 for as_dir in $PATH
3512 do
3513   IFS=$as_save_IFS
3514   test -z "$as_dir" && as_dir=.
3515   for ac_exec_ext in '' $ac_executable_extensions; do
3516   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3517     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
3518     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3519     break 2
3520   fi
3521 done
3522 done
3523
3524   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
3525   ;;
3526 esac
3527 fi
3528 CP=$ac_cv_path_CP
3529
3530 if test -n "$CP"; then
3531   echo "$as_me:$LINENO: result: $CP" >&5
3532 echo "${ECHO_T}$CP" >&6
3533 else
3534   echo "$as_me:$LINENO: result: no" >&5
3535 echo "${ECHO_T}no" >&6
3536 fi
3537
3538 # Extract the first word of "sed", so it can be a program name with args.
3539 set dummy sed; ac_word=$2
3540 echo "$as_me:$LINENO: checking for $ac_word" >&5
3541 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3542 if test "${ac_cv_path_SED+set}" = set; then
3543   echo $ECHO_N "(cached) $ECHO_C" >&6
3544 else
3545   case $SED in
3546   [\\/]* | ?:[\\/]*)
3547   ac_cv_path_SED="$SED" # Let the user override the test with a path.
3548   ;;
3549   *)
3550   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3551 for as_dir in $PATH
3552 do
3553   IFS=$as_save_IFS
3554   test -z "$as_dir" && as_dir=.
3555   for ac_exec_ext in '' $ac_executable_extensions; do
3556   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3557     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
3558     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3559     break 2
3560   fi
3561 done
3562 done
3563
3564   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
3565   ;;
3566 esac
3567 fi
3568 SED=$ac_cv_path_SED
3569
3570 if test -n "$SED"; then
3571   echo "$as_me:$LINENO: result: $SED" >&5
3572 echo "${ECHO_T}$SED" >&6
3573 else
3574   echo "$as_me:$LINENO: result: no" >&5
3575 echo "${ECHO_T}no" >&6
3576 fi
3577
3578 # Extract the first word of "echo", so it can be a program name with args.
3579 set dummy echo; ac_word=$2
3580 echo "$as_me:$LINENO: checking for $ac_word" >&5
3581 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3582 if test "${ac_cv_path_ECHO+set}" = set; then
3583   echo $ECHO_N "(cached) $ECHO_C" >&6
3584 else
3585   case $ECHO in
3586   [\\/]* | ?:[\\/]*)
3587   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
3588   ;;
3589   *)
3590   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3591 for as_dir in $PATH
3592 do
3593   IFS=$as_save_IFS
3594   test -z "$as_dir" && as_dir=.
3595   for ac_exec_ext in '' $ac_executable_extensions; do
3596   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3597     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
3598     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3599     break 2
3600   fi
3601 done
3602 done
3603
3604   test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
3605   ;;
3606 esac
3607 fi
3608 ECHO=$ac_cv_path_ECHO
3609
3610 if test -n "$ECHO"; then
3611   echo "$as_me:$LINENO: result: $ECHO" >&5
3612 echo "${ECHO_T}$ECHO" >&6
3613 else
3614   echo "$as_me:$LINENO: result: no" >&5
3615 echo "${ECHO_T}no" >&6
3616 fi
3617
3618 # Extract the first word of "cmp", so it can be a program name with args.
3619 set dummy cmp; ac_word=$2
3620 echo "$as_me:$LINENO: checking for $ac_word" >&5
3621 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3622 if test "${ac_cv_path_CMP+set}" = set; then
3623   echo $ECHO_N "(cached) $ECHO_C" >&6
3624 else
3625   case $CMP in
3626   [\\/]* | ?:[\\/]*)
3627   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
3628   ;;
3629   *)
3630   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3631 for as_dir in $PATH
3632 do
3633   IFS=$as_save_IFS
3634   test -z "$as_dir" && as_dir=.
3635   for ac_exec_ext in '' $ac_executable_extensions; do
3636   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3637     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
3638     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3639     break 2
3640   fi
3641 done
3642 done
3643
3644   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
3645   ;;
3646 esac
3647 fi
3648 CMP=$ac_cv_path_CMP
3649
3650 if test -n "$CMP"; then
3651   echo "$as_me:$LINENO: result: $CMP" >&5
3652 echo "${ECHO_T}$CMP" >&6
3653 else
3654   echo "$as_me:$LINENO: result: no" >&5
3655 echo "${ECHO_T}no" >&6
3656 fi
3657
3658 # Extract the first word of "tbl", so it can be a program name with args.
3659 set dummy tbl; ac_word=$2
3660 echo "$as_me:$LINENO: checking for $ac_word" >&5
3661 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3662 if test "${ac_cv_path_TBL+set}" = set; then
3663   echo $ECHO_N "(cached) $ECHO_C" >&6
3664 else
3665   case $TBL in
3666   [\\/]* | ?:[\\/]*)
3667   ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
3668   ;;
3669   *)
3670   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3671 for as_dir in $PATH
3672 do
3673   IFS=$as_save_IFS
3674   test -z "$as_dir" && as_dir=.
3675   for ac_exec_ext in '' $ac_executable_extensions; do
3676   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3677     ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
3678     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3679     break 2
3680   fi
3681 done
3682 done
3683
3684   test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
3685   ;;
3686 esac
3687 fi
3688 TBL=$ac_cv_path_TBL
3689
3690 if test -n "$TBL"; then
3691   echo "$as_me:$LINENO: result: $TBL" >&5
3692 echo "${ECHO_T}$TBL" >&6
3693 else
3694   echo "$as_me:$LINENO: result: no" >&5
3695 echo "${ECHO_T}no" >&6
3696 fi
3697
3698 # Extract the first word of "ar", so it can be a program name with args.
3699 set dummy ar; ac_word=$2
3700 echo "$as_me:$LINENO: checking for $ac_word" >&5
3701 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3702 if test "${ac_cv_path_AR+set}" = set; then
3703   echo $ECHO_N "(cached) $ECHO_C" >&6
3704 else
3705   case $AR in
3706   [\\/]* | ?:[\\/]*)
3707   ac_cv_path_AR="$AR" # Let the user override the test with a path.
3708   ;;
3709   *)
3710   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3711 for as_dir in $PATH
3712 do
3713   IFS=$as_save_IFS
3714   test -z "$as_dir" && as_dir=.
3715   for ac_exec_ext in '' $ac_executable_extensions; do
3716   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3717     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3718     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3719     break 2
3720   fi
3721 done
3722 done
3723
3724   test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
3725   ;;
3726 esac
3727 fi
3728 AR=$ac_cv_path_AR
3729
3730 if test -n "$AR"; then
3731   echo "$as_me:$LINENO: result: $AR" >&5
3732 echo "${ECHO_T}$AR" >&6
3733 else
3734   echo "$as_me:$LINENO: result: no" >&5
3735 echo "${ECHO_T}no" >&6
3736 fi
3737
3738 # Extract the first word of "openssl", so it can be a program name with args.
3739 set dummy openssl; ac_word=$2
3740 echo "$as_me:$LINENO: checking for $ac_word" >&5
3741 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3742 if test "${ac_cv_path_OPENSSL+set}" = set; then
3743   echo $ECHO_N "(cached) $ECHO_C" >&6
3744 else
3745   case $OPENSSL in
3746   [\\/]* | ?:[\\/]*)
3747   ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
3748   ;;
3749   *)
3750   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3751 for as_dir in $PATH
3752 do
3753   IFS=$as_save_IFS
3754   test -z "$as_dir" && as_dir=.
3755   for ac_exec_ext in '' $ac_executable_extensions; do
3756   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3757     ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
3758     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3759     break 2
3760   fi
3761 done
3762 done
3763
3764   test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
3765   ;;
3766 esac
3767 fi
3768 OPENSSL=$ac_cv_path_OPENSSL
3769
3770 if test -n "$OPENSSL"; then
3771   echo "$as_me:$LINENO: result: $OPENSSL" >&5
3772 echo "${ECHO_T}$OPENSSL" >&6
3773 else
3774   echo "$as_me:$LINENO: result: no" >&5
3775 echo "${ECHO_T}no" >&6
3776 fi
3777
3778 # Extract the first word of "mtx", so it can be a program name with args.
3779 set dummy mtx; ac_word=$2
3780 echo "$as_me:$LINENO: checking for $ac_word" >&5
3781 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3782 if test "${ac_cv_path_MTX+set}" = set; then
3783   echo $ECHO_N "(cached) $ECHO_C" >&6
3784 else
3785   case $MTX in
3786   [\\/]* | ?:[\\/]*)
3787   ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
3788   ;;
3789   *)
3790   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3791 for as_dir in $PATH
3792 do
3793   IFS=$as_save_IFS
3794   test -z "$as_dir" && as_dir=.
3795   for ac_exec_ext in '' $ac_executable_extensions; do
3796   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3797     ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
3798     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3799     break 2
3800   fi
3801 done
3802 done
3803
3804   test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
3805   ;;
3806 esac
3807 fi
3808 MTX=$ac_cv_path_MTX
3809
3810 if test -n "$MTX"; then
3811   echo "$as_me:$LINENO: result: $MTX" >&5
3812 echo "${ECHO_T}$MTX" >&6
3813 else
3814   echo "$as_me:$LINENO: result: no" >&5
3815 echo "${ECHO_T}no" >&6
3816 fi
3817
3818 # Extract the first word of "mkisofs", so it can be a program name with args.
3819 set dummy mkisofs; ac_word=$2
3820 echo "$as_me:$LINENO: checking for $ac_word" >&5
3821 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3822 if test "${ac_cv_path_MKISOFS+set}" = set; then
3823   echo $ECHO_N "(cached) $ECHO_C" >&6
3824 else
3825   case $MKISOFS in
3826   [\\/]* | ?:[\\/]*)
3827   ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
3828   ;;
3829   *)
3830   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3831 for as_dir in $PATH
3832 do
3833   IFS=$as_save_IFS
3834   test -z "$as_dir" && as_dir=.
3835   for ac_exec_ext in '' $ac_executable_extensions; do
3836   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3837     ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
3838     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3839     break 2
3840   fi
3841 done
3842 done
3843
3844   test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
3845   ;;
3846 esac
3847 fi
3848 MKISOFS=$ac_cv_path_MKISOFS
3849
3850 if test -n "$MKISOFS"; then
3851   echo "$as_me:$LINENO: result: $MKISOFS" >&5
3852 echo "${ECHO_T}$MKISOFS" >&6
3853 else
3854   echo "$as_me:$LINENO: result: no" >&5
3855 echo "${ECHO_T}no" >&6
3856 fi
3857
3858 # Extract the first word of "python", so it can be a program name with args.
3859 set dummy python; ac_word=$2
3860 echo "$as_me:$LINENO: checking for $ac_word" >&5
3861 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3862 if test "${ac_cv_path_PYTHON+set}" = set; then
3863   echo $ECHO_N "(cached) $ECHO_C" >&6
3864 else
3865   case $PYTHON in
3866   [\\/]* | ?:[\\/]*)
3867   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
3868   ;;
3869   *)
3870   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3871 for as_dir in $PATH
3872 do
3873   IFS=$as_save_IFS
3874   test -z "$as_dir" && as_dir=.
3875   for ac_exec_ext in '' $ac_executable_extensions; do
3876   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3877     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
3878     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3879     break 2
3880   fi
3881 done
3882 done
3883
3884   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
3885   ;;
3886 esac
3887 fi
3888 PYTHON=$ac_cv_path_PYTHON
3889
3890 if test -n "$PYTHON"; then
3891   echo "$as_me:$LINENO: result: $PYTHON" >&5
3892 echo "${ECHO_T}$PYTHON" >&6
3893 else
3894   echo "$as_me:$LINENO: result: no" >&5
3895 echo "${ECHO_T}no" >&6
3896 fi
3897
3898 # Extract the first word of "growisofs", so it can be a program name with args.
3899 set dummy growisofs; ac_word=$2
3900 echo "$as_me:$LINENO: checking for $ac_word" >&5
3901 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3902 if test "${ac_cv_path_GROWISOFS+set}" = set; then
3903   echo $ECHO_N "(cached) $ECHO_C" >&6
3904 else
3905   case $GROWISOFS in
3906   [\\/]* | ?:[\\/]*)
3907   ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
3908   ;;
3909   *)
3910   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3911 for as_dir in $PATH
3912 do
3913   IFS=$as_save_IFS
3914   test -z "$as_dir" && as_dir=.
3915   for ac_exec_ext in '' $ac_executable_extensions; do
3916   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3917     ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
3918     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3919     break 2
3920   fi
3921 done
3922 done
3923
3924   test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
3925   ;;
3926 esac
3927 fi
3928 GROWISOFS=$ac_cv_path_GROWISOFS
3929
3930 if test -n "$GROWISOFS"; then
3931   echo "$as_me:$LINENO: result: $GROWISOFS" >&5
3932 echo "${ECHO_T}$GROWISOFS" >&6
3933 else
3934   echo "$as_me:$LINENO: result: no" >&5
3935 echo "${ECHO_T}no" >&6
3936 fi
3937
3938 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
3939 set dummy dvd+rw-mediainfo; ac_word=$2
3940 echo "$as_me:$LINENO: checking for $ac_word" >&5
3941 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3942 if test "${ac_cv_path_DVDRWMEDIAINFO+set}" = set; then
3943   echo $ECHO_N "(cached) $ECHO_C" >&6
3944 else
3945   case $DVDRWMEDIAINFO in
3946   [\\/]* | ?:[\\/]*)
3947   ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
3948   ;;
3949   *)
3950   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3951 for as_dir in $PATH
3952 do
3953   IFS=$as_save_IFS
3954   test -z "$as_dir" && as_dir=.
3955   for ac_exec_ext in '' $ac_executable_extensions; do
3956   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3957     ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
3958     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3959     break 2
3960   fi
3961 done
3962 done
3963
3964   test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
3965   ;;
3966 esac
3967 fi
3968 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
3969
3970 if test -n "$DVDRWMEDIAINFO"; then
3971   echo "$as_me:$LINENO: result: $DVDRWMEDIAINFO" >&5
3972 echo "${ECHO_T}$DVDRWMEDIAINFO" >&6
3973 else
3974   echo "$as_me:$LINENO: result: no" >&5
3975 echo "${ECHO_T}no" >&6
3976 fi
3977
3978 # Extract the first word of "pkg-config", so it can be a program name with args.
3979 set dummy pkg-config; ac_word=$2
3980 echo "$as_me:$LINENO: checking for $ac_word" >&5
3981 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3982 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
3983   echo $ECHO_N "(cached) $ECHO_C" >&6
3984 else
3985   case $PKGCONFIG in
3986   [\\/]* | ?:[\\/]*)
3987   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
3988   ;;
3989   *)
3990   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3991 for as_dir in $PATH
3992 do
3993   IFS=$as_save_IFS
3994   test -z "$as_dir" && as_dir=.
3995   for ac_exec_ext in '' $ac_executable_extensions; do
3996   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3997     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
3998     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3999     break 2
4000   fi
4001 done
4002 done
4003
4004   test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
4005   ;;
4006 esac
4007 fi
4008 PKGCONFIG=$ac_cv_path_PKGCONFIG
4009
4010 if test -n "$PKGCONFIG"; then
4011   echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
4012 echo "${ECHO_T}$PKGCONFIG" >&6
4013 else
4014   echo "$as_me:$LINENO: result: no" >&5
4015 echo "${ECHO_T}no" >&6
4016 fi
4017
4018
4019 if test "x$WXCONFIG" = x; then
4020   WXCONFIG=wx-config
4021 fi
4022 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
4023 set dummy ${WXCONFIG}; ac_word=$2
4024 echo "$as_me:$LINENO: checking for $ac_word" >&5
4025 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4026 if test "${ac_cv_path_WXCONFIG+set}" = set; then
4027   echo $ECHO_N "(cached) $ECHO_C" >&6
4028 else
4029   case $WXCONFIG in
4030   [\\/]* | ?:[\\/]*)
4031   ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
4032   ;;
4033   *)
4034   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4035 for as_dir in $PATH
4036 do
4037   IFS=$as_save_IFS
4038   test -z "$as_dir" && as_dir=.
4039   for ac_exec_ext in '' $ac_executable_extensions; do
4040   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4041     ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
4042     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4043     break 2
4044   fi
4045 done
4046 done
4047
4048   test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
4049   ;;
4050 esac
4051 fi
4052 WXCONFIG=$ac_cv_path_WXCONFIG
4053
4054 if test -n "$WXCONFIG"; then
4055   echo "$as_me:$LINENO: result: $WXCONFIG" >&5
4056 echo "${ECHO_T}$WXCONFIG" >&6
4057 else
4058   echo "$as_me:$LINENO: result: no" >&5
4059 echo "${ECHO_T}no" >&6
4060 fi
4061
4062
4063 # Extract the first word of "cdrecord", so it can be a program name with args.
4064 set dummy cdrecord; ac_word=$2
4065 echo "$as_me:$LINENO: checking for $ac_word" >&5
4066 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4067 if test "${ac_cv_path_CDRECORD+set}" = set; then
4068   echo $ECHO_N "(cached) $ECHO_C" >&6
4069 else
4070   case $CDRECORD in
4071   [\\/]* | ?:[\\/]*)
4072   ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
4073   ;;
4074   *)
4075   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4076 for as_dir in $PATH
4077 do
4078   IFS=$as_save_IFS
4079   test -z "$as_dir" && as_dir=.
4080   for ac_exec_ext in '' $ac_executable_extensions; do
4081   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4082     ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
4083     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4084     break 2
4085   fi
4086 done
4087 done
4088
4089   test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
4090   ;;
4091 esac
4092 fi
4093 CDRECORD=$ac_cv_path_CDRECORD
4094
4095 if test -n "$CDRECORD"; then
4096   echo "$as_me:$LINENO: result: $CDRECORD" >&5
4097 echo "${ECHO_T}$CDRECORD" >&6
4098 else
4099   echo "$as_me:$LINENO: result: no" >&5
4100 echo "${ECHO_T}no" >&6
4101 fi
4102
4103 # Extract the first word of "pidof", so it can be a program name with args.
4104 set dummy pidof; ac_word=$2
4105 echo "$as_me:$LINENO: checking for $ac_word" >&5
4106 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4107 if test "${ac_cv_path_PIDOF+set}" = set; then
4108   echo $ECHO_N "(cached) $ECHO_C" >&6
4109 else
4110   case $PIDOF in
4111   [\\/]* | ?:[\\/]*)
4112   ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
4113   ;;
4114   *)
4115   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4116 for as_dir in $PATH
4117 do
4118   IFS=$as_save_IFS
4119   test -z "$as_dir" && as_dir=.
4120   for ac_exec_ext in '' $ac_executable_extensions; do
4121   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4122     ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
4123     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4124     break 2
4125   fi
4126 done
4127 done
4128
4129   test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
4130   ;;
4131 esac
4132 fi
4133 PIDOF=$ac_cv_path_PIDOF
4134
4135 if test -n "$PIDOF"; then
4136   echo "$as_me:$LINENO: result: $PIDOF" >&5
4137 echo "${ECHO_T}$PIDOF" >&6
4138 else
4139   echo "$as_me:$LINENO: result: no" >&5
4140 echo "${ECHO_T}no" >&6
4141 fi
4142
4143 for ac_prog in gawk mawk nawk awk
4144 do
4145   # Extract the first word of "$ac_prog", so it can be a program name with args.
4146 set dummy $ac_prog; ac_word=$2
4147 echo "$as_me:$LINENO: checking for $ac_word" >&5
4148 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4149 if test "${ac_cv_prog_AWK+set}" = set; then
4150   echo $ECHO_N "(cached) $ECHO_C" >&6
4151 else
4152   if test -n "$AWK"; then
4153   ac_cv_prog_AWK="$AWK" # Let the user override the test.
4154 else
4155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4156 for as_dir in $PATH
4157 do
4158   IFS=$as_save_IFS
4159   test -z "$as_dir" && as_dir=.
4160   for ac_exec_ext in '' $ac_executable_extensions; do
4161   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4162     ac_cv_prog_AWK="$ac_prog"
4163     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4164     break 2
4165   fi
4166 done
4167 done
4168
4169 fi
4170 fi
4171 AWK=$ac_cv_prog_AWK
4172 if test -n "$AWK"; then
4173   echo "$as_me:$LINENO: result: $AWK" >&5
4174 echo "${ECHO_T}$AWK" >&6
4175 else
4176   echo "$as_me:$LINENO: result: no" >&5
4177 echo "${ECHO_T}no" >&6
4178 fi
4179
4180   test -n "$AWK" && break
4181 done
4182
4183 # Some AWK programs fail, so test it and warn the user
4184 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
4185       { if ((prog == $2) || (("(" prog ")") == $2) ||
4186            (("" prog "") == $2) ||
4187            ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
4188 else
4189   { { echo "$as_me:$LINENO: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
4190    The regex engine of $AWK is too broken to be used you
4191    might want to install GNU AWK.
4192    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&5
4193 echo "$as_me: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
4194    The regex engine of $AWK is too broken to be used you
4195    might want to install GNU AWK.
4196    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&2;}
4197    { (exit 1); exit 1; }; }
4198 fi
4199 THE_AWK=$AWK
4200 # Extract the first word of "$THE_AWK", so it can be a program name with args.
4201 set dummy $THE_AWK; ac_word=$2
4202 echo "$as_me:$LINENO: checking for $ac_word" >&5
4203 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4204 if test "${ac_cv_path_AWK+set}" = set; then
4205   echo $ECHO_N "(cached) $ECHO_C" >&6
4206 else
4207   case $AWK in
4208   [\\/]* | ?:[\\/]*)
4209   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
4210   ;;
4211   *)
4212   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4213 for as_dir in $PATH
4214 do
4215   IFS=$as_save_IFS
4216   test -z "$as_dir" && as_dir=.
4217   for ac_exec_ext in '' $ac_executable_extensions; do
4218   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4219     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
4220     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4221     break 2
4222   fi
4223 done
4224 done
4225
4226   test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
4227   ;;
4228 esac
4229 fi
4230 AWK=$ac_cv_path_AWK
4231
4232 if test -n "$AWK"; then
4233   echo "$as_me:$LINENO: result: $AWK" >&5
4234 echo "${ECHO_T}$AWK" >&6
4235 else
4236   echo "$as_me:$LINENO: result: no" >&5
4237 echo "${ECHO_T}no" >&6
4238 fi
4239
4240
4241 test -n "$ARFLAG" || ARFLAGS="cr"
4242
4243
4244 MAKE_SHELL=/bin/sh
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254 # Make sure we can run config.sub.
4255 $ac_config_sub sun4 >/dev/null 2>&1 ||
4256   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
4257 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
4258    { (exit 1); exit 1; }; }
4259
4260 echo "$as_me:$LINENO: checking build system type" >&5
4261 echo $ECHO_N "checking build system type... $ECHO_C" >&6
4262 if test "${ac_cv_build+set}" = set; then
4263   echo $ECHO_N "(cached) $ECHO_C" >&6
4264 else
4265   ac_cv_build_alias=$build_alias
4266 test -z "$ac_cv_build_alias" &&
4267   ac_cv_build_alias=`$ac_config_guess`
4268 test -z "$ac_cv_build_alias" &&
4269   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4270 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4271    { (exit 1); exit 1; }; }
4272 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
4273   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
4274 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
4275    { (exit 1); exit 1; }; }
4276
4277 fi
4278 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4279 echo "${ECHO_T}$ac_cv_build" >&6
4280 build=$ac_cv_build
4281 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4282 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4283 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4284
4285
4286
4287 echo "$as_me:$LINENO: checking host system type" >&5
4288 echo $ECHO_N "checking host system type... $ECHO_C" >&6
4289 if test "${ac_cv_host+set}" = set; then
4290   echo $ECHO_N "(cached) $ECHO_C" >&6
4291 else
4292   ac_cv_host_alias=$host_alias
4293 test -z "$ac_cv_host_alias" &&
4294   ac_cv_host_alias=$ac_cv_build_alias
4295 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
4296   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
4297 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
4298    { (exit 1); exit 1; }; }
4299
4300 fi
4301 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4302 echo "${ECHO_T}$ac_cv_host" >&6
4303 host=$ac_cv_host
4304 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4305 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4306 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4307
4308
4309 case $host_os in
4310   *cygwin* ) CYGWIN=yes;;
4311          * ) CYGWIN=no;;
4312 esac
4313
4314 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4315 then
4316
4317
4318 if $TRUEPRG; then
4319   HAVE_SUN_OS_TRUE=
4320   HAVE_SUN_OS_FALSE='#'
4321 else
4322   HAVE_SUN_OS_TRUE='#'
4323   HAVE_SUN_OS_FALSE=
4324 fi
4325         cat >>confdefs.h <<\_ACEOF
4326 #define HAVE_SUN_OS 1
4327 _ACEOF
4328
4329 else
4330
4331
4332 if $FALSEPRG; then
4333   HAVE_SUN_OS_TRUE=
4334   HAVE_SUN_OS_FALSE='#'
4335 else
4336   HAVE_SUN_OS_TRUE='#'
4337   HAVE_SUN_OS_FALSE=
4338 fi
4339 fi
4340
4341 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4342 then
4343
4344
4345 if $TRUEPRG; then
4346   HAVE_OSF1_OS_TRUE=
4347   HAVE_OSF1_OS_FALSE='#'
4348 else
4349   HAVE_OSF1_OS_TRUE='#'
4350   HAVE_OSF1_OS_FALSE=
4351 fi
4352         cat >>confdefs.h <<\_ACEOF
4353 #define HAVE_OSF1_OS 1
4354 _ACEOF
4355
4356 else
4357
4358
4359 if $FALSEPRG; then
4360   HAVE_OSF1_OS_TRUE=
4361   HAVE_OSF1_OS_FALSE='#'
4362 else
4363   HAVE_OSF1_OS_TRUE='#'
4364   HAVE_OSF1_OS_FALSE=
4365 fi
4366 fi
4367
4368 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4369 then
4370
4371
4372 if $TRUEPRG; then
4373   HAVE_AIX_OS_TRUE=
4374   HAVE_AIX_OS_FALSE='#'
4375 else
4376   HAVE_AIX_OS_TRUE='#'
4377   HAVE_AIX_OS_FALSE=
4378 fi
4379         cat >>confdefs.h <<\_ACEOF
4380 #define HAVE_AIX_OS 1
4381 _ACEOF
4382
4383 else
4384
4385
4386 if $FALSEPRG; then
4387   HAVE_AIX_OS_TRUE=
4388   HAVE_AIX_OS_FALSE='#'
4389 else
4390   HAVE_AIX_OS_TRUE='#'
4391   HAVE_AIX_OS_FALSE=
4392 fi
4393 fi
4394
4395 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4396 then
4397
4398
4399 if $TRUEPRG; then
4400   HAVE_HPUX_OS_TRUE=
4401   HAVE_HPUX_OS_FALSE='#'
4402 else
4403   HAVE_HPUX_OS_TRUE='#'
4404   HAVE_HPUX_OS_FALSE=
4405 fi
4406         cat >>confdefs.h <<\_ACEOF
4407 #define HAVE_HPUX_OS 1
4408 _ACEOF
4409
4410 else
4411
4412
4413 if $FALSEPRG; then
4414   HAVE_HPUX_OS_TRUE=
4415   HAVE_HPUX_OS_FALSE='#'
4416 else
4417   HAVE_HPUX_OS_TRUE='#'
4418   HAVE_HPUX_OS_FALSE=
4419 fi
4420 fi
4421
4422 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
4423 then
4424
4425
4426 if $TRUEPRG; then
4427   HAVE_LINUX_OS_TRUE=
4428   HAVE_LINUX_OS_FALSE='#'
4429 else
4430   HAVE_LINUX_OS_TRUE='#'
4431   HAVE_LINUX_OS_FALSE=
4432 fi
4433         cat >>confdefs.h <<\_ACEOF
4434 #define HAVE_LINUX_OS 1
4435 _ACEOF
4436
4437 else
4438
4439
4440 if $FALSEPRG; then
4441   HAVE_LINUX_OS_TRUE=
4442   HAVE_LINUX_OS_FALSE='#'
4443 else
4444   HAVE_LINUX_OS_TRUE='#'
4445   HAVE_LINUX_OS_FALSE=
4446 fi
4447 fi
4448
4449 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4450 then
4451
4452
4453 if $TRUEPRG; then
4454   HAVE_FREEBSD_OS_TRUE=
4455   HAVE_FREEBSD_OS_FALSE='#'
4456 else
4457   HAVE_FREEBSD_OS_TRUE='#'
4458   HAVE_FREEBSD_OS_FALSE=
4459 fi
4460         cat >>confdefs.h <<\_ACEOF
4461 #define HAVE_FREEBSD_OS 1
4462 _ACEOF
4463
4464 else
4465
4466
4467 if $FALSEPRG; then
4468   HAVE_FREEBSD_OS_TRUE=
4469   HAVE_FREEBSD_OS_FALSE='#'
4470 else
4471   HAVE_FREEBSD_OS_TRUE='#'
4472   HAVE_FREEBSD_OS_FALSE=
4473 fi
4474 fi
4475
4476 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4477 then
4478
4479
4480 if $TRUEPRG; then
4481   HAVE_NETBSD_OS_TRUE=
4482   HAVE_NETBSD_OS_FALSE='#'
4483 else
4484   HAVE_NETBSD_OS_TRUE='#'
4485   HAVE_NETBSD_OS_FALSE=
4486 fi
4487         cat >>confdefs.h <<\_ACEOF
4488 #define HAVE_NETBSD_OS 1
4489 _ACEOF
4490
4491 else
4492
4493
4494 if $FALSEPRG; then
4495   HAVE_NETBSD_OS_TRUE=
4496   HAVE_NETBSD_OS_FALSE='#'
4497 else
4498   HAVE_NETBSD_OS_TRUE='#'
4499   HAVE_NETBSD_OS_FALSE=
4500 fi
4501 fi
4502
4503 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4504 then
4505
4506
4507 if $TRUEPRG; then
4508   HAVE_OPENBSD_OS_TRUE=
4509   HAVE_OPENBSD_OS_FALSE='#'
4510 else
4511   HAVE_OPENBSD_OS_TRUE='#'
4512   HAVE_OPENBSD_OS_FALSE=
4513 fi
4514         cat >>confdefs.h <<\_ACEOF
4515 #define HAVE_OPENBSD_OS 1
4516 _ACEOF
4517
4518 else
4519
4520
4521 if $FALSEPRG; then
4522   HAVE_OPENBSD_OS_TRUE=
4523   HAVE_OPENBSD_OS_FALSE='#'
4524 else
4525   HAVE_OPENBSD_OS_TRUE='#'
4526   HAVE_OPENBSD_OS_FALSE=
4527 fi
4528 fi
4529
4530 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4531 then
4532
4533
4534 if $TRUEPRG; then
4535   HAVE_BSDI_OS_TRUE=
4536   HAVE_BSDI_OS_FALSE='#'
4537 else
4538   HAVE_BSDI_OS_TRUE='#'
4539   HAVE_BSDI_OS_FALSE=
4540 fi
4541         cat >>confdefs.h <<\_ACEOF
4542 #define HAVE_BSDI_OS 1
4543 _ACEOF
4544
4545 else
4546
4547
4548 if $FALSEPRG; then
4549   HAVE_BSDI_OS_TRUE=
4550   HAVE_BSDI_OS_FALSE='#'
4551 else
4552   HAVE_BSDI_OS_TRUE='#'
4553   HAVE_BSDI_OS_FALSE=
4554 fi
4555 fi
4556
4557 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
4558 then
4559
4560
4561 if $TRUEPRG; then
4562   HAVE_SGI_OS_TRUE=
4563   HAVE_SGI_OS_FALSE='#'
4564 else
4565   HAVE_SGI_OS_TRUE='#'
4566   HAVE_SGI_OS_FALSE=
4567 fi
4568         cat >>confdefs.h <<\_ACEOF
4569 #define HAVE_SGI_OS 1
4570 _ACEOF
4571
4572 else
4573
4574
4575 if $FALSEPRG; then
4576   HAVE_SGI_OS_TRUE=
4577   HAVE_SGI_OS_FALSE='#'
4578 else
4579   HAVE_SGI_OS_TRUE='#'
4580   HAVE_SGI_OS_FALSE=
4581 fi
4582 fi
4583
4584 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4585 then
4586
4587
4588 if $TRUEPRG; then
4589   HAVE_IRIX_OS_TRUE=
4590   HAVE_IRIX_OS_FALSE='#'
4591 else
4592   HAVE_IRIX_OS_TRUE='#'
4593   HAVE_IRIX_OS_FALSE=
4594 fi
4595         cat >>confdefs.h <<\_ACEOF
4596 #define HAVE_IRIX_OS 1
4597 _ACEOF
4598
4599 else
4600
4601
4602 if $FALSEPRG; then
4603   HAVE_IRIX_OS_TRUE=
4604   HAVE_IRIX_OS_FALSE='#'
4605 else
4606   HAVE_IRIX_OS_TRUE='#'
4607   HAVE_IRIX_OS_FALSE=
4608 fi
4609 fi
4610
4611 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4612 then
4613
4614
4615 if $TRUEPRG; then
4616   HAVE_DARWIN_OS_TRUE=
4617   HAVE_DARWIN_OS_FALSE='#'
4618 else
4619   HAVE_DARWIN_OS_TRUE='#'
4620   HAVE_DARWIN_OS_FALSE=
4621 fi
4622     cat >>confdefs.h <<\_ACEOF
4623 #define HAVE_DARWIN_OS 1
4624 _ACEOF
4625
4626 else
4627
4628
4629 if $FALSEPRG; then
4630   HAVE_DARWIN_OS_TRUE=
4631   HAVE_DARWIN_OS_FALSE='#'
4632 else
4633   HAVE_DARWIN_OS_TRUE='#'
4634   HAVE_DARWIN_OS_FALSE=
4635 fi
4636 fi
4637
4638
4639 # -----------------------------------------------------------
4640 # ----------------------------------------------------------
4641 echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
4642 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6
4643 if test "x$DISTNAME" != "x"
4644 then
4645         echo "distname set to $DISTNAME"
4646 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4647 then
4648         DISTNAME=alpha
4649 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4650 then
4651         DISTNAME=aix
4652 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4653 then
4654         DISTNAME=hpux
4655 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4656 then
4657         DISTNAME=solaris
4658 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4659 then
4660         DISTNAME=freebsd
4661 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4662 then
4663         DISTNAME=netbsd
4664 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4665 then
4666         DISTNAME=openbsd
4667 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4668 then
4669         DISTNAME=irix
4670 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4671 then
4672         DISTNAME=bsdi
4673 elif test -f /etc/SuSE-release
4674 then
4675         DISTNAME=suse
4676 elif test -d /etc/SuSEconfig
4677 then
4678         DISTNAME=suse5
4679 elif test -f /etc/mandrake-release
4680 then
4681         DISTNAME=mandrake
4682 elif test -f /etc/whitebox-release
4683 then
4684        DISTNAME=redhat
4685 elif test -f /etc/redhat-release
4686 then
4687         DISTNAME=redhat
4688 elif test -f /etc/gentoo-release
4689 then
4690         DISTNAME=gentoo
4691 elif test -f /etc/debian_version
4692 then
4693         DISTNAME=debian
4694 elif test -f /etc/slackware-version
4695 then
4696         DISTNAME=slackware
4697 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4698 then
4699     DISTNAME=darwin
4700 elif test -f /etc/engarde-version
4701 then
4702         DISTNAME=engarde
4703 elif test "$CYGWIN" = yes
4704 then
4705         DISTNAME=cygwin
4706         cat >>confdefs.h <<\_ACEOF
4707 #define HAVE_CYGWIN 1
4708 _ACEOF
4709
4710 else
4711         DISTNAME=unknown
4712 fi
4713 echo "$as_me:$LINENO: result: done" >&5
4714 echo "${ECHO_T}done" >&6
4715
4716
4717 # -----------------------------------------------------------
4718 # ----------------------------------------------------------
4719
4720
4721
4722 if false; then
4723   INSIDE_GNOME_COMMON_TRUE=
4724   INSIDE_GNOME_COMMON_FALSE='#'
4725 else
4726   INSIDE_GNOME_COMMON_TRUE='#'
4727   INSIDE_GNOME_COMMON_FALSE=
4728 fi
4729
4730         test -n "$ACLOCAL_FLAGS" && ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
4731
4732         for k in gnome-macros ; do ACLOCAL="$ACLOCAL -I $k" ; done
4733
4734
4735 # ------------------------------------------------------------------
4736 #  If the user has not set --prefix, we set our default to nothing.
4737 #  In this case, if the user has not set --sysconfdir, we set it
4738 #  to the package default of /etc/bacula.  If either --prefix or
4739 #  --sysconfdir is set, we leave sysconfdir alone except to eval it.
4740 # ------------------------------------------------------------------
4741 if test x${prefix} = xNONE ; then
4742     if test `eval echo ${sysconfdir}` = NONE/etc ; then
4743         sysconfdir=/etc/bacula
4744     fi
4745     prefix=
4746 fi
4747 sysconfdir=`eval echo ${sysconfdir}`
4748
4749 # -------------------------------------------------------------------------
4750 #  If the user has not set --exec-prefix, we default to ${prefix}
4751 # -------------------------------------------------------------------------
4752 if test x${exec_prefix} = xNONE ; then
4753     exec_prefix=${prefix}
4754 fi
4755
4756 # ------------------------------------------------------------------
4757 # If the user has not set --sbindir, we set our default as /sbin
4758 # ------------------------------------------------------------------
4759 if test x$sbindir = x'${exec_prefix}/sbin' ; then
4760     sbindir=${exec_prefix}/sbin
4761 fi
4762 sbindir=`eval echo ${sbindir}`
4763
4764 # -------------------------------------------------------------------------
4765 #  If the user has not set --mandir, we default to /usr/share/man
4766 # -------------------------------------------------------------------------
4767 if test x$mandir = x'${prefix}/man' ; then
4768    mandir=/usr/share/man
4769 fi
4770
4771
4772 # ------------------------------------------------------------------
4773 # All list of languages for which a translation exist. Each
4774 #  language is separated by a space.
4775 # ------------------------------------------------------------------
4776 ALL_LINGUAS=""
4777
4778 for ac_prog in msgfmt
4779 do
4780   # Extract the first word of "$ac_prog", so it can be a program name with args.
4781 set dummy $ac_prog; ac_word=$2
4782 echo "$as_me:$LINENO: checking for $ac_word" >&5
4783 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4784 if test "${ac_cv_path_MSGFMT+set}" = set; then
4785   echo $ECHO_N "(cached) $ECHO_C" >&6
4786 else
4787   case $MSGFMT in
4788   [\\/]* | ?:[\\/]*)
4789   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4790   ;;
4791   *)
4792   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4793 for as_dir in $PATH
4794 do
4795   IFS=$as_save_IFS
4796   test -z "$as_dir" && as_dir=.
4797   for ac_exec_ext in '' $ac_executable_extensions; do
4798   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4799     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
4800     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4801     break 2
4802   fi
4803 done
4804 done
4805
4806   ;;
4807 esac
4808 fi
4809 MSGFMT=$ac_cv_path_MSGFMT
4810
4811 if test -n "$MSGFMT"; then
4812   echo "$as_me:$LINENO: result: $MSGFMT" >&5
4813 echo "${ECHO_T}$MSGFMT" >&6
4814 else
4815   echo "$as_me:$LINENO: result: no" >&5
4816 echo "${ECHO_T}no" >&6
4817 fi
4818
4819   test -n "$MSGFMT" && break
4820 done
4821 test -n "$MSGFMT" || MSGFMT="no"
4822
4823 if test "$MSGFMT" = "no"
4824 then
4825    echo 'msgfmt program not found, disabling NLS !'
4826    USE_NLS=no
4827    USE_INCLUDED_LIBINTL=no
4828 #else
4829 #   AM_GNU_GETTEXT
4830 fi
4831
4832
4833 support_mysql=no
4834 support_sqlite=no
4835 support_sqlite3=no
4836 support_postgresql=no
4837 support_smartalloc=yes
4838 support_readline=yes
4839 support_conio=yes
4840 support_gnome=no
4841 support_wx_console=no
4842 support_tls=no
4843 gnome_version=
4844 wx_version=
4845 support_static_tools=no
4846 support_static_fd=no
4847 support_static_sd=no
4848 support_static_dir=no
4849 support_static_cons=no
4850 support_python=no
4851 build_client_only=no
4852 cats=
4853 db_name=Internal
4854 DB_NAME=bdb
4855
4856
4857 # -------------------------------------------
4858 # gnome (default off)
4859 # -------------------------------------------
4860 # Check whether --enable-gnome or --disable-gnome was given.
4861 if test "${enable_gnome+set}" = set; then
4862   enableval="$enable_gnome"
4863   if test x$enableval = xyes; then
4864     support_gnome=yes
4865   fi
4866 fi;
4867
4868 GNOME_DIR=
4869 if test x$support_gnome = xyes; then
4870   abc=`$PKGCONFIG --exists libgnomeui-2.0`
4871   pkg=$?
4872   if test $pkg = 0; then
4873      GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
4874      GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
4875      GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
4876      GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
4877
4878
4879
4880
4881      GNOME_DIR=src/gnome2-console
4882      gnome_version="Version 2.x"
4883   else
4884
4885
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895 # Check whether --with-gnome-includes or --without-gnome-includes was given.
4896 if test "${with_gnome_includes+set}" = set; then
4897   withval="$with_gnome_includes"
4898
4899         CFLAGS="$CFLAGS -I$withval"
4900
4901 fi;
4902
4903
4904 # Check whether --with-gnome-libs or --without-gnome-libs was given.
4905 if test "${with_gnome_libs+set}" = set; then
4906   withval="$with_gnome_libs"
4907
4908         LDFLAGS="$LDFLAGS -L$withval"
4909         gnome_prefix=$withval
4910
4911 fi;
4912
4913
4914 # Check whether --with-gnome or --without-gnome was given.
4915 if test "${with_gnome+set}" = set; then
4916   withval="$with_gnome"
4917   if test x$withval = xyes; then
4918                         want_gnome=yes
4919                                                                         :
4920                 else
4921                         if test "x$withval" = xno; then
4922                                 want_gnome=no
4923                         else
4924                                 want_gnome=yes
4925                                 LDFLAGS="$LDFLAGS -L$withval/lib"
4926                                 CFLAGS="$CFLAGS -I$withval/include"
4927                                 gnome_prefix=$withval/lib
4928                         fi
4929                 fi
4930 else
4931   want_gnome=yes
4932 fi;
4933
4934         if test "x$want_gnome" = xyes; then
4935
4936             # Extract the first word of "gnome-config", so it can be a program name with args.
4937 set dummy gnome-config; ac_word=$2
4938 echo "$as_me:$LINENO: checking for $ac_word" >&5
4939 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4940 if test "${ac_cv_path_GNOME_CONFIG+set}" = set; then
4941   echo $ECHO_N "(cached) $ECHO_C" >&6
4942 else
4943   case $GNOME_CONFIG in
4944   [\\/]* | ?:[\\/]*)
4945   ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
4946   ;;
4947   *)
4948   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4949 for as_dir in $PATH
4950 do
4951   IFS=$as_save_IFS
4952   test -z "$as_dir" && as_dir=.
4953   for ac_exec_ext in '' $ac_executable_extensions; do
4954   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4955     ac_cv_path_GNOME_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4956     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4957     break 2
4958   fi
4959 done
4960 done
4961
4962   test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
4963   ;;
4964 esac
4965 fi
4966 GNOME_CONFIG=$ac_cv_path_GNOME_CONFIG
4967
4968 if test -n "$GNOME_CONFIG"; then
4969   echo "$as_me:$LINENO: result: $GNOME_CONFIG" >&5
4970 echo "${ECHO_T}$GNOME_CONFIG" >&6
4971 else
4972   echo "$as_me:$LINENO: result: no" >&5
4973 echo "${ECHO_T}no" >&6
4974 fi
4975
4976             if test "$GNOME_CONFIG" = "no"; then
4977               no_gnome_config="yes"
4978             else
4979               echo "$as_me:$LINENO: checking if $GNOME_CONFIG works" >&5
4980 echo $ECHO_N "checking if $GNOME_CONFIG works... $ECHO_C" >&6
4981               if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then
4982                 echo "$as_me:$LINENO: result: yes" >&5
4983 echo "${ECHO_T}yes" >&6
4984
4985
4986         # Extract the first word of "orbit-config", so it can be a program name with args.
4987 set dummy orbit-config; ac_word=$2
4988 echo "$as_me:$LINENO: checking for $ac_word" >&5
4989 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4990 if test "${ac_cv_path_ORBIT_CONFIG+set}" = set; then
4991   echo $ECHO_N "(cached) $ECHO_C" >&6
4992 else
4993   case $ORBIT_CONFIG in
4994   [\\/]* | ?:[\\/]*)
4995   ac_cv_path_ORBIT_CONFIG="$ORBIT_CONFIG" # Let the user override the test with a path.
4996   ;;
4997   *)
4998   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4999 for as_dir in $PATH
5000 do
5001   IFS=$as_save_IFS
5002   test -z "$as_dir" && as_dir=.
5003   for ac_exec_ext in '' $ac_executable_extensions; do
5004   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5005     ac_cv_path_ORBIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5006     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5007     break 2
5008   fi
5009 done
5010 done
5011
5012   test -z "$ac_cv_path_ORBIT_CONFIG" && ac_cv_path_ORBIT_CONFIG="no"
5013   ;;
5014 esac
5015 fi
5016 ORBIT_CONFIG=$ac_cv_path_ORBIT_CONFIG
5017
5018 if test -n "$ORBIT_CONFIG"; then
5019   echo "$as_me:$LINENO: result: $ORBIT_CONFIG" >&5
5020 echo "${ECHO_T}$ORBIT_CONFIG" >&6
5021 else
5022   echo "$as_me:$LINENO: result: no" >&5
5023 echo "${ECHO_T}no" >&6
5024 fi
5025
5026         # Extract the first word of "orbit-idl", so it can be a program name with args.
5027 set dummy orbit-idl; ac_word=$2
5028 echo "$as_me:$LINENO: checking for $ac_word" >&5
5029 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5030 if test "${ac_cv_path_ORBIT_IDL+set}" = set; then
5031   echo $ECHO_N "(cached) $ECHO_C" >&6
5032 else
5033   case $ORBIT_IDL in
5034   [\\/]* | ?:[\\/]*)
5035   ac_cv_path_ORBIT_IDL="$ORBIT_IDL" # Let the user override the test with a path.
5036   ;;
5037   *)
5038   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5039 for as_dir in $PATH
5040 do
5041   IFS=$as_save_IFS
5042   test -z "$as_dir" && as_dir=.
5043   for ac_exec_ext in '' $ac_executable_extensions; do
5044   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5045     ac_cv_path_ORBIT_IDL="$as_dir/$ac_word$ac_exec_ext"
5046     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5047     break 2
5048   fi
5049 done
5050 done
5051
5052   test -z "$ac_cv_path_ORBIT_IDL" && ac_cv_path_ORBIT_IDL="no"
5053   ;;
5054 esac
5055 fi
5056 ORBIT_IDL=$ac_cv_path_ORBIT_IDL
5057
5058 if test -n "$ORBIT_IDL"; then
5059   echo "$as_me:$LINENO: result: $ORBIT_IDL" >&5
5060 echo "${ECHO_T}$ORBIT_IDL" >&6
5061 else
5062   echo "$as_me:$LINENO: result: no" >&5
5063 echo "${ECHO_T}no" >&6
5064 fi
5065
5066         echo "$as_me:$LINENO: checking for working ORBit environment" >&5
5067 echo $ECHO_N "checking for working ORBit environment... $ECHO_C" >&6
5068 if test "${gnome_cv_orbit_found+set}" = set; then
5069   echo $ECHO_N "(cached) $ECHO_C" >&6
5070 else
5071
5072                 if test x$ORBIT_CONFIG = xno -o x$ORBIT_IDL = xno; then
5073                         gnome_cv_orbit_found=no
5074                 else
5075                         gnome_cv_orbit_found=yes
5076                 fi
5077
5078 fi
5079 echo "$as_me:$LINENO: result: $gnome_cv_orbit_found" >&5
5080 echo "${ECHO_T}$gnome_cv_orbit_found" >&6
5081
5082
5083 if test x$gnome_cv_orbit_found = xyes; then
5084   HAVE_ORBIT_TRUE=
5085   HAVE_ORBIT_FALSE='#'
5086 else
5087   HAVE_ORBIT_TRUE='#'
5088   HAVE_ORBIT_FALSE=
5089 fi
5090         if test x$gnome_cv_orbit_found = xyes; then
5091
5092                 ORBIT_CFLAGS=`orbit-config --cflags client server`
5093                 ORBIT_LIBS=`orbit-config --use-service=name --libs client server`
5094
5095
5096         else
5097                 if test xfail = xfailure; then
5098                         { { echo "$as_me:$LINENO: error: ORBit not installed or installation problem" >&5
5099 echo "$as_me: error: ORBit not installed or installation problem" >&2;}
5100    { (exit 1); exit 1; }; }
5101                 fi
5102         fi
5103
5104         echo "$as_me:$LINENO: checking for gnorba libraries" >&5
5105 echo $ECHO_N "checking for gnorba libraries... $ECHO_C" >&6
5106 if test "${gnome_cv_gnorba_found+set}" = set; then
5107   echo $ECHO_N "(cached) $ECHO_C" >&6
5108 else
5109
5110                 gnome_cv_gnorba_found=no
5111                 if test x$gnome_cv_orbit_found = xyes; then
5112                         GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
5113                         GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
5114                         if test -n "$GNORBA_LIBS"; then
5115                                 gnome_cv_gnorba_found=yes
5116                         fi
5117                 fi
5118
5119 fi
5120 echo "$as_me:$LINENO: result: $gnome_cv_gnorba_found" >&5
5121 echo "${ECHO_T}$gnome_cv_gnorba_found" >&6
5122
5123
5124 if test x$gnome_cv_gnorba_found = xyes; then
5125   HAVE_GNORBA_TRUE=
5126   HAVE_GNORBA_FALSE='#'
5127 else
5128   HAVE_GNORBA_TRUE='#'
5129   HAVE_GNORBA_FALSE=
5130 fi
5131         if test x$gnome_cv_orbit_found = xyes; then
5132
5133                 GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
5134                 GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
5135
5136
5137         else
5138                 if test xfail = xfailure; then
5139                         { { echo "$as_me:$LINENO: error: gnorba library not installed or installation problem" >&5
5140 echo "$as_me: error: gnorba library not installed or installation problem" >&2;}
5141    { (exit 1); exit 1; }; }
5142                 fi
5143         fi
5144
5145                 GNOME_LIBS="`$GNOME_CONFIG --libs-only-l gnome`"
5146                 GNOMEUI_LIBS="`$GNOME_CONFIG --libs-only-l gnomeui`"
5147                 GNOMEGNORBA_LIBS="`$GNOME_CONFIG --libs-only-l gnorba gnomeui`"
5148                 GTKXMHTML_LIBS="`$GNOME_CONFIG --libs-only-l gtkxmhtml`"
5149                 ZVT_LIBS="`$GNOME_CONFIG --libs-only-l zvt`"
5150                 GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui`"
5151                 GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui`"
5152
5153               else
5154                 echo "$as_me:$LINENO: result: no" >&5
5155 echo "${ECHO_T}no" >&6
5156                 no_gnome_config="yes"
5157               fi
5158             fi
5159
5160             if test x$exec_prefix = xNONE; then
5161                 if test x$prefix = xNONE; then
5162                     gnome_prefix=$ac_default_prefix/lib
5163                 else
5164                     gnome_prefix=$prefix/lib
5165                 fi
5166             else
5167                 gnome_prefix=`eval echo \`echo $libdir\``
5168             fi
5169
5170             if test "$no_gnome_config" = "yes"; then
5171               echo "$as_me:$LINENO: checking for gnomeConf.sh file in $gnome_prefix" >&5
5172 echo $ECHO_N "checking for gnomeConf.sh file in $gnome_prefix... $ECHO_C" >&6
5173               if test -f $gnome_prefix/gnomeConf.sh; then
5174                 echo "$as_me:$LINENO: result: found" >&5
5175 echo "${ECHO_T}found" >&6
5176                 echo "loading gnome configuration from" \
5177                      "$gnome_prefix/gnomeConf.sh"
5178                 . $gnome_prefix/gnomeConf.sh
5179
5180               else
5181                 echo "$as_me:$LINENO: result: not found" >&5
5182 echo "${ECHO_T}not found" >&6
5183                 if test xfail = xfail; then
5184                   { { echo "$as_me:$LINENO: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&5
5185 echo "$as_me: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&2;}
5186    { (exit 1); exit 1; }; }
5187                 fi
5188               fi
5189             fi
5190         fi
5191
5192         if test -n ""; then
5193           n=""
5194           for i in $n; do
5195             echo "$as_me:$LINENO: checking extra library \"$i\"" >&5
5196 echo $ECHO_N "checking extra library \"$i\"... $ECHO_C" >&6
5197             case $i in
5198               applets)
5199
5200                 GNOME_APPLETS_LIBS=`$GNOME_CONFIG --libs-only-l applets`
5201                 echo "$as_me:$LINENO: result: $GNOME_APPLETS_LIBS" >&5
5202 echo "${ECHO_T}$GNOME_APPLETS_LIBS" >&6;;
5203               docklets)
5204
5205                 GNOME_DOCKLETS_LIBS=`$GNOME_CONFIG --libs-only-l docklets`
5206                 echo "$as_me:$LINENO: result: $GNOME_DOCKLETS_LIBS" >&5
5207 echo "${ECHO_T}$GNOME_DOCKLETS_LIBS" >&6;;
5208               capplet)
5209
5210                 GNOME_CAPPLET_LIBS=`$GNOME_CONFIG --libs-only-l capplet`
5211                 echo "$as_me:$LINENO: result: $GNOME_CAPPLET_LIBS" >&5
5212 echo "${ECHO_T}$GNOME_CAPPLET_LIBS" >&6;;
5213               *)
5214                 echo "$as_me:$LINENO: result: unknown library" >&5
5215 echo "${ECHO_T}unknown library" >&6
5216             esac
5217             EXTRA_INCLUDEDIR=`$GNOME_CONFIG --cflags $i`
5218             GNOME_INCLUDEDIR="$GNOME_INCLUDEDIR $EXTRA_INCLUDEDIR"
5219           done
5220         fi
5221
5222
5223      GNOME_DIR=src/gnome-console
5224      gnome_version="Version 1.4"
5225   fi
5226 fi
5227
5228
5229
5230 # -------------------------------------------
5231 # wx-console (default off)
5232 # -------------------------------------------
5233 # Check whether --enable-wx-console or --disable-wx-console was given.
5234 if test "${enable_wx_console+set}" = set; then
5235   enableval="$enable_wx_console"
5236   if test x$enableval = xyes; then
5237     support_wx_console=yes
5238   fi
5239 fi;
5240
5241 WX_DIR=
5242 if test x$support_wx_console = xyes; then
5243   abc=`$WXCONFIG $WXFLAGS --cppflags`
5244   pkg=$?
5245   if test $pkg = 0; then
5246      wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
5247      WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
5248      WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
5249
5250
5251
5252      WX_DIR=src/wx-console
5253   else
5254      echo " "
5255      echo "wx-config program not found. wx-console disabled."
5256      echo " "
5257      support_wx_console=no
5258   fi
5259 fi
5260
5261
5262
5263 # -------------------------------------------
5264 # tray-monitor (default off)
5265 # -------------------------------------------
5266 # Check whether --enable-tray-monitor or --disable-tray-monitor was given.
5267 if test "${enable_tray_monitor+set}" = set; then
5268   enableval="$enable_tray_monitor"
5269   if test x$enableval = xyes; then
5270     support_tray_monitor=yes
5271   fi
5272 fi;
5273
5274 TRAY_MONITOR_DIR=
5275 if test x$support_tray_monitor = xyes; then
5276   abc=`$PKGCONFIG --exists gtk+-2.0`
5277   pkg=$?
5278   if test $pkg = 0; then
5279      TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
5280      TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
5281
5282
5283      TRAY_MONITOR_DIR=src/tray-monitor
5284      abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
5285      pkg=$?
5286      if test $pkg = 0; then
5287         cat >>confdefs.h <<\_ACEOF
5288 #define HAVE_GTK_2_4 1
5289 _ACEOF
5290
5291      fi
5292   fi
5293 fi
5294
5295
5296 # -------------------------------------------
5297 # smartalloc (default off)
5298 # -------------------------------------------
5299 # Check whether --enable-smartalloc or --disable-smartalloc was given.
5300 if test "${enable_smartalloc+set}" = set; then
5301   enableval="$enable_smartalloc"
5302   if test x$enableval = xno; then
5303     support_smartalloc=no
5304   fi
5305 fi;
5306
5307 if test x$support_smartalloc = xyes; then
5308    cat >>confdefs.h <<\_ACEOF
5309 #define SMARTALLOC 1
5310 _ACEOF
5311
5312 fi
5313
5314 # -------------------------------------------
5315 # static-tools (default off)
5316 # -------------------------------------------
5317 # Check whether --enable-static-tools or --disable-static-tools was given.
5318 if test "${enable_static_tools+set}" = set; then
5319   enableval="$enable_static_tools"
5320   if test x$enableval = xyes; then
5321      support_static_tools=yes
5322    fi
5323 fi;
5324
5325 TTOOL_LDFLAGS=
5326 if test x$support_static_tools = xyes; then
5327    TTOOL_LDFLAGS="-static"
5328 fi
5329
5330
5331 # -------------------------------------------
5332 # static-fd    (default off)
5333 # -------------------------------------------
5334 # Check whether --enable-static-fd or --disable-static-fd was given.
5335 if test "${enable_static_fd+set}" = set; then
5336   enableval="$enable_static_fd"
5337   if test x$enableval = xyes; then
5338      support_static_fd=yes
5339    fi
5340 fi;
5341
5342 STATIC_FD=
5343 if test x$support_static_fd = xyes; then
5344    STATIC_FD="static-bacula-fd"
5345 fi
5346
5347
5348 # -------------------------------------------
5349 # static-sd    (default off)
5350 # -------------------------------------------
5351 # Check whether --enable-static-sd or --disable-static-sd was given.
5352 if test "${enable_static_sd+set}" = set; then
5353   enableval="$enable_static_sd"
5354   if test x$enableval = xyes; then
5355      support_static_sd=yes
5356    fi
5357 fi;
5358
5359 STATIC_SD=
5360 if test x$support_static_sd = xyes; then
5361    STATIC_SD="static-bacula-sd"
5362 fi
5363
5364
5365 # -------------------------------------------
5366 # static-dir   (default off)
5367 # -------------------------------------------
5368 # Check whether --enable-static-dir or --disable-static-dir was given.
5369 if test "${enable_static_dir+set}" = set; then
5370   enableval="$enable_static_dir"
5371   if test x$enableval = xyes; then
5372      support_static_dir=yes
5373    fi
5374 fi;
5375
5376 STATIC_DIR=
5377 if test x$support_static_dir = xyes; then
5378    STATIC_DIR="static-bacula-dir"
5379 fi
5380
5381
5382 # -------------------------------------------
5383 # static-cons  (default off)
5384 # -------------------------------------------
5385 # Check whether --enable-static-cons or --disable-static-cons was given.
5386 if test "${enable_static_cons+set}" = set; then
5387   enableval="$enable_static_cons"
5388   if test x$enableval = xyes; then
5389      support_static_cons=yes
5390    fi
5391 fi;
5392
5393 STATIC_CONS=
5394 STATIC_GNOME_CONS=
5395 STATIC_WX_CONS=
5396 if test x$support_static_cons = xyes; then
5397    STATIC_CONS="static-bconsole"
5398    STATIC_GNOME_CONS="static-gnome-console"
5399    STATIC_WX_CONS="static-wx-console"
5400 fi
5401
5402
5403
5404
5405 # -------------------------------------------
5406 # client_only  (default off)
5407 # -------------------------------------------
5408 # Check whether --enable-client-only or --disable-client-only was given.
5409 if test "${enable_client_only+set}" = set; then
5410   enableval="$enable_client_only"
5411   if test x$enableval = xyes; then
5412      build_client_only=yes
5413     db_name=None
5414     DB_NAME=none
5415    fi
5416 fi;
5417 if test x$build_client_only = xno; then
5418    ALL_DIRS="subdirs"
5419 else
5420    ALL_DIRS=""
5421 fi
5422
5423
5424 # ---------------------------------------------------
5425 # Check for conio (Bacula readline substitute)(
5426 # ---------------------------------------------------
5427 # this allows you to turn it completely off
5428 # Check whether --enable-conio or --disable-conio was given.
5429 if test "${enable_conio+set}" = set; then
5430   enableval="$enable_conio"
5431   if test x$enableval = xno; then
5432     support_conio=no
5433   fi
5434 fi;
5435
5436 got_conio="no"
5437 if test x$support_conio = xyes; then
5438    echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5439 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5440 if test "${ac_cv_header_stdc+set}" = set; then
5441   echo $ECHO_N "(cached) $ECHO_C" >&6
5442 else
5443   cat >conftest.$ac_ext <<_ACEOF
5444 /* confdefs.h.  */
5445 _ACEOF
5446 cat confdefs.h >>conftest.$ac_ext
5447 cat >>conftest.$ac_ext <<_ACEOF
5448 /* end confdefs.h.  */
5449 #include <stdlib.h>
5450 #include <stdarg.h>
5451 #include <string.h>
5452 #include <float.h>
5453
5454 int
5455 main ()
5456 {
5457
5458   ;
5459   return 0;
5460 }
5461 _ACEOF
5462 rm -f conftest.$ac_objext
5463 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5464   (eval $ac_compile) 2>conftest.er1
5465   ac_status=$?
5466   grep -v '^ *+' conftest.er1 >conftest.err
5467   rm -f conftest.er1
5468   cat conftest.err >&5
5469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5470   (exit $ac_status); } &&
5471          { ac_try='test -z "$ac_c_werror_flag"
5472                          || test ! -s conftest.err'
5473   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5474   (eval $ac_try) 2>&5
5475   ac_status=$?
5476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5477   (exit $ac_status); }; } &&
5478          { ac_try='test -s conftest.$ac_objext'
5479   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5480   (eval $ac_try) 2>&5
5481   ac_status=$?
5482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5483   (exit $ac_status); }; }; then
5484   ac_cv_header_stdc=yes
5485 else
5486   echo "$as_me: failed program was:" >&5
5487 sed 's/^/| /' conftest.$ac_ext >&5
5488
5489 ac_cv_header_stdc=no
5490 fi
5491 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5492
5493 if test $ac_cv_header_stdc = yes; then
5494   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5495   cat >conftest.$ac_ext <<_ACEOF
5496 /* confdefs.h.  */
5497 _ACEOF
5498 cat confdefs.h >>conftest.$ac_ext
5499 cat >>conftest.$ac_ext <<_ACEOF
5500 /* end confdefs.h.  */
5501 #include <string.h>
5502
5503 _ACEOF
5504 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5505   $EGREP "memchr" >/dev/null 2>&1; then
5506   :
5507 else
5508   ac_cv_header_stdc=no
5509 fi
5510 rm -f conftest*
5511
5512 fi
5513
5514 if test $ac_cv_header_stdc = yes; then
5515   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5516   cat >conftest.$ac_ext <<_ACEOF
5517 /* confdefs.h.  */
5518 _ACEOF
5519 cat confdefs.h >>conftest.$ac_ext
5520 cat >>conftest.$ac_ext <<_ACEOF
5521 /* end confdefs.h.  */
5522 #include <stdlib.h>
5523
5524 _ACEOF
5525 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5526   $EGREP "free" >/dev/null 2>&1; then
5527   :
5528 else
5529   ac_cv_header_stdc=no
5530 fi
5531 rm -f conftest*
5532
5533 fi
5534
5535 if test $ac_cv_header_stdc = yes; then
5536   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5537   if test "$cross_compiling" = yes; then
5538   :
5539 else
5540   cat >conftest.$ac_ext <<_ACEOF
5541 /* confdefs.h.  */
5542 _ACEOF
5543 cat confdefs.h >>conftest.$ac_ext
5544 cat >>conftest.$ac_ext <<_ACEOF
5545 /* end confdefs.h.  */
5546 #include <ctype.h>
5547 #if ((' ' & 0x0FF) == 0x020)
5548 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5549 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5550 #else
5551 # define ISLOWER(c) \
5552                    (('a' <= (c) && (c) <= 'i') \
5553                      || ('j' <= (c) && (c) <= 'r') \
5554                      || ('s' <= (c) && (c) <= 'z'))
5555 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5556 #endif
5557
5558 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5559 int
5560 main ()
5561 {
5562   int i;
5563   for (i = 0; i < 256; i++)
5564     if (XOR (islower (i), ISLOWER (i))
5565         || toupper (i) != TOUPPER (i))
5566       exit(2);
5567   exit (0);
5568 }
5569 _ACEOF
5570 rm -f conftest$ac_exeext
5571 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5572   (eval $ac_link) 2>&5
5573   ac_status=$?
5574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5575   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5576   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5577   (eval $ac_try) 2>&5
5578   ac_status=$?
5579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5580   (exit $ac_status); }; }; then
5581   :
5582 else
5583   echo "$as_me: program exited with status $ac_status" >&5
5584 echo "$as_me: failed program was:" >&5
5585 sed 's/^/| /' conftest.$ac_ext >&5
5586
5587 ( exit $ac_status )
5588 ac_cv_header_stdc=no
5589 fi
5590 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5591 fi
5592 fi
5593 fi
5594 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5595 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5596 if test $ac_cv_header_stdc = yes; then
5597
5598 cat >>confdefs.h <<\_ACEOF
5599 #define STDC_HEADERS 1
5600 _ACEOF
5601
5602 fi
5603
5604 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5605
5606
5607
5608
5609
5610
5611
5612
5613
5614 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5615                   inttypes.h stdint.h unistd.h
5616 do
5617 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5618 echo "$as_me:$LINENO: checking for $ac_header" >&5
5619 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5620 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5621   echo $ECHO_N "(cached) $ECHO_C" >&6
5622 else
5623   cat >conftest.$ac_ext <<_ACEOF
5624 /* confdefs.h.  */
5625 _ACEOF
5626 cat confdefs.h >>conftest.$ac_ext
5627 cat >>conftest.$ac_ext <<_ACEOF
5628 /* end confdefs.h.  */
5629 $ac_includes_default
5630
5631 #include <$ac_header>
5632 _ACEOF
5633 rm -f conftest.$ac_objext
5634 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5635   (eval $ac_compile) 2>conftest.er1
5636   ac_status=$?
5637   grep -v '^ *+' conftest.er1 >conftest.err
5638   rm -f conftest.er1
5639   cat conftest.err >&5
5640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5641   (exit $ac_status); } &&
5642          { ac_try='test -z "$ac_c_werror_flag"
5643                          || test ! -s conftest.err'
5644   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5645   (eval $ac_try) 2>&5
5646   ac_status=$?
5647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5648   (exit $ac_status); }; } &&
5649          { ac_try='test -s conftest.$ac_objext'
5650   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5651   (eval $ac_try) 2>&5
5652   ac_status=$?
5653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5654   (exit $ac_status); }; }; then
5655   eval "$as_ac_Header=yes"
5656 else
5657   echo "$as_me: failed program was:" >&5
5658 sed 's/^/| /' conftest.$ac_ext >&5
5659
5660 eval "$as_ac_Header=no"
5661 fi
5662 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5663 fi
5664 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5665 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5666 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5667   cat >>confdefs.h <<_ACEOF
5668 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5669 _ACEOF
5670
5671 fi
5672
5673 done
5674
5675
5676 if test "${ac_cv_header_termcap_h+set}" = set; then
5677   echo "$as_me:$LINENO: checking for termcap.h" >&5
5678 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
5679 if test "${ac_cv_header_termcap_h+set}" = set; then
5680   echo $ECHO_N "(cached) $ECHO_C" >&6
5681 fi
5682 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
5683 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
5684 else
5685   # Is the header compilable?
5686 echo "$as_me:$LINENO: checking termcap.h usability" >&5
5687 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6
5688 cat >conftest.$ac_ext <<_ACEOF
5689 /* confdefs.h.  */
5690 _ACEOF
5691 cat confdefs.h >>conftest.$ac_ext
5692 cat >>conftest.$ac_ext <<_ACEOF
5693 /* end confdefs.h.  */
5694 $ac_includes_default
5695 #include <termcap.h>
5696 _ACEOF
5697 rm -f conftest.$ac_objext
5698 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5699   (eval $ac_compile) 2>conftest.er1
5700   ac_status=$?
5701   grep -v '^ *+' conftest.er1 >conftest.err
5702   rm -f conftest.er1
5703   cat conftest.err >&5
5704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5705   (exit $ac_status); } &&
5706          { ac_try='test -z "$ac_c_werror_flag"
5707                          || test ! -s conftest.err'
5708   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5709   (eval $ac_try) 2>&5
5710   ac_status=$?
5711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5712   (exit $ac_status); }; } &&
5713          { ac_try='test -s conftest.$ac_objext'
5714   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5715   (eval $ac_try) 2>&5
5716   ac_status=$?
5717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5718   (exit $ac_status); }; }; then
5719   ac_header_compiler=yes
5720 else
5721   echo "$as_me: failed program was:" >&5
5722 sed 's/^/| /' conftest.$ac_ext >&5
5723
5724 ac_header_compiler=no
5725 fi
5726 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5727 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5728 echo "${ECHO_T}$ac_header_compiler" >&6
5729
5730 # Is the header present?
5731 echo "$as_me:$LINENO: checking termcap.h presence" >&5
5732 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6
5733 cat >conftest.$ac_ext <<_ACEOF
5734 /* confdefs.h.  */
5735 _ACEOF
5736 cat confdefs.h >>conftest.$ac_ext
5737 cat >>conftest.$ac_ext <<_ACEOF
5738 /* end confdefs.h.  */
5739 #include <termcap.h>
5740 _ACEOF
5741 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5742   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5743   ac_status=$?
5744   grep -v '^ *+' conftest.er1 >conftest.err
5745   rm -f conftest.er1
5746   cat conftest.err >&5
5747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5748   (exit $ac_status); } >/dev/null; then
5749   if test -s conftest.err; then
5750     ac_cpp_err=$ac_c_preproc_warn_flag
5751     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5752   else
5753     ac_cpp_err=
5754   fi
5755 else
5756   ac_cpp_err=yes
5757 fi
5758 if test -z "$ac_cpp_err"; then
5759   ac_header_preproc=yes
5760 else
5761   echo "$as_me: failed program was:" >&5
5762 sed 's/^/| /' conftest.$ac_ext >&5
5763
5764   ac_header_preproc=no
5765 fi
5766 rm -f conftest.err conftest.$ac_ext
5767 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5768 echo "${ECHO_T}$ac_header_preproc" >&6
5769
5770 # So?  What about this header?
5771 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5772   yes:no: )
5773     { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
5774 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5775     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the compiler's result" >&5
5776 echo "$as_me: WARNING: termcap.h: proceeding with the compiler's result" >&2;}
5777     ac_header_preproc=yes
5778     ;;
5779   no:yes:* )
5780     { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
5781 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
5782     { echo "$as_me:$LINENO: WARNING: termcap.h:     check for missing prerequisite headers?" >&5
5783 echo "$as_me: WARNING: termcap.h:     check for missing prerequisite headers?" >&2;}
5784     { echo "$as_me:$LINENO: WARNING: termcap.h: see the Autoconf documentation" >&5
5785 echo "$as_me: WARNING: termcap.h: see the Autoconf documentation" >&2;}
5786     { echo "$as_me:$LINENO: WARNING: termcap.h:     section \"Present But Cannot Be Compiled\"" >&5
5787 echo "$as_me: WARNING: termcap.h:     section \"Present But Cannot Be Compiled\"" >&2;}
5788     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
5789 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
5790     { echo "$as_me:$LINENO: WARNING: termcap.h: in the future, the compiler will take precedence" >&5
5791 echo "$as_me: WARNING: termcap.h: in the future, the compiler will take precedence" >&2;}
5792     (
5793       cat <<\_ASBOX
5794 ## ------------------------------------------ ##
5795 ## Report this to the AC_PACKAGE_NAME lists.  ##
5796 ## ------------------------------------------ ##
5797 _ASBOX
5798     ) |
5799       sed "s/^/$as_me: WARNING:     /" >&2
5800     ;;
5801 esac
5802 echo "$as_me:$LINENO: checking for termcap.h" >&5
5803 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
5804 if test "${ac_cv_header_termcap_h+set}" = set; then
5805   echo $ECHO_N "(cached) $ECHO_C" >&6
5806 else
5807   ac_cv_header_termcap_h=$ac_header_preproc
5808 fi
5809 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
5810 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
5811
5812 fi
5813 if test $ac_cv_header_termcap_h = yes; then
5814    echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
5815 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
5816 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
5817   echo $ECHO_N "(cached) $ECHO_C" >&6
5818 else
5819   ac_check_lib_save_LIBS=$LIBS
5820 LIBS="-ltermcap  $LIBS"
5821 cat >conftest.$ac_ext <<_ACEOF
5822 /* confdefs.h.  */
5823 _ACEOF
5824 cat confdefs.h >>conftest.$ac_ext
5825 cat >>conftest.$ac_ext <<_ACEOF
5826 /* end confdefs.h.  */
5827
5828 /* Override any gcc2 internal prototype to avoid an error.  */
5829 #ifdef __cplusplus
5830 extern "C"
5831 #endif
5832 /* We use char because int might match the return type of a gcc2
5833    builtin and then its argument prototype would still apply.  */
5834 char tgetent ();
5835 int
5836 main ()
5837 {
5838 tgetent ();
5839   ;
5840   return 0;
5841 }
5842 _ACEOF
5843 rm -f conftest.$ac_objext conftest$ac_exeext
5844 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5845   (eval $ac_link) 2>conftest.er1
5846   ac_status=$?
5847   grep -v '^ *+' conftest.er1 >conftest.err
5848   rm -f conftest.er1
5849   cat conftest.err >&5
5850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5851   (exit $ac_status); } &&
5852          { ac_try='test -z "$ac_c_werror_flag"
5853                          || test ! -s conftest.err'
5854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5855   (eval $ac_try) 2>&5
5856   ac_status=$?
5857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5858   (exit $ac_status); }; } &&
5859          { ac_try='test -s conftest$ac_exeext'
5860   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5861   (eval $ac_try) 2>&5
5862   ac_status=$?
5863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5864   (exit $ac_status); }; }; then
5865   ac_cv_lib_termcap_tgetent=yes
5866 else
5867   echo "$as_me: failed program was:" >&5
5868 sed 's/^/| /' conftest.$ac_ext >&5
5869
5870 ac_cv_lib_termcap_tgetent=no
5871 fi
5872 rm -f conftest.err conftest.$ac_objext \
5873       conftest$ac_exeext conftest.$ac_ext
5874 LIBS=$ac_check_lib_save_LIBS
5875 fi
5876 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
5877 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
5878 if test $ac_cv_lib_termcap_tgetent = yes; then
5879    CONS_LIBS="-ltermcap"
5880          CONS_OBJ="conio.o"
5881          CONS_SRC="conio.c"
5882          got_conio="yes"
5883          support_readline=no
5884
5885 cat >>confdefs.h <<\_ACEOF
5886 #define HAVE_CONIO 1
5887 _ACEOF
5888
5889
5890 else
5891    echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
5892 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6
5893 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
5894   echo $ECHO_N "(cached) $ECHO_C" >&6
5895 else
5896   ac_check_lib_save_LIBS=$LIBS
5897 LIBS="-lncurses  $LIBS"
5898 cat >conftest.$ac_ext <<_ACEOF
5899 /* confdefs.h.  */
5900 _ACEOF
5901 cat confdefs.h >>conftest.$ac_ext
5902 cat >>conftest.$ac_ext <<_ACEOF
5903 /* end confdefs.h.  */
5904
5905 /* Override any gcc2 internal prototype to avoid an error.  */
5906 #ifdef __cplusplus
5907 extern "C"
5908 #endif
5909 /* We use char because int might match the return type of a gcc2
5910    builtin and then its argument prototype would still apply.  */
5911 char tgetent ();
5912 int
5913 main ()
5914 {
5915 tgetent ();
5916   ;
5917   return 0;
5918 }
5919 _ACEOF
5920 rm -f conftest.$ac_objext conftest$ac_exeext
5921 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5922   (eval $ac_link) 2>conftest.er1
5923   ac_status=$?
5924   grep -v '^ *+' conftest.er1 >conftest.err
5925   rm -f conftest.er1
5926   cat conftest.err >&5
5927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5928   (exit $ac_status); } &&
5929          { ac_try='test -z "$ac_c_werror_flag"
5930                          || test ! -s conftest.err'
5931   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5932   (eval $ac_try) 2>&5
5933   ac_status=$?
5934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5935   (exit $ac_status); }; } &&
5936          { ac_try='test -s conftest$ac_exeext'
5937   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5938   (eval $ac_try) 2>&5
5939   ac_status=$?
5940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5941   (exit $ac_status); }; }; then
5942   ac_cv_lib_ncurses_tgetent=yes
5943 else
5944   echo "$as_me: failed program was:" >&5
5945 sed 's/^/| /' conftest.$ac_ext >&5
5946
5947 ac_cv_lib_ncurses_tgetent=no
5948 fi
5949 rm -f conftest.err conftest.$ac_objext \
5950       conftest$ac_exeext conftest.$ac_ext
5951 LIBS=$ac_check_lib_save_LIBS
5952 fi
5953 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
5954 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6
5955 if test $ac_cv_lib_ncurses_tgetent = yes; then
5956    CONS_LIBS="-lncurses"
5957            CONS_OBJ="conio.o"
5958            CONS_SRC="conio.c"
5959            got_conio="yes"
5960            support_readline=no
5961
5962 cat >>confdefs.h <<\_ACEOF
5963 #define HAVE_CONIO 1
5964 _ACEOF
5965
5966
5967 fi
5968
5969
5970 fi
5971
5972
5973 else
5974
5975
5976 for ac_header in curses.h
5977 do
5978 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5979 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5980   echo "$as_me:$LINENO: checking for $ac_header" >&5
5981 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5982 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5983   echo $ECHO_N "(cached) $ECHO_C" >&6
5984 fi
5985 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5986 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5987 else
5988   # Is the header compilable?
5989 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5990 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5991 cat >conftest.$ac_ext <<_ACEOF
5992 /* confdefs.h.  */
5993 _ACEOF
5994 cat confdefs.h >>conftest.$ac_ext
5995 cat >>conftest.$ac_ext <<_ACEOF
5996 /* end confdefs.h.  */
5997 $ac_includes_default
5998 #include <$ac_header>
5999 _ACEOF
6000 rm -f conftest.$ac_objext
6001 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6002   (eval $ac_compile) 2>conftest.er1
6003   ac_status=$?
6004   grep -v '^ *+' conftest.er1 >conftest.err
6005   rm -f conftest.er1
6006   cat conftest.err >&5
6007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6008   (exit $ac_status); } &&
6009          { ac_try='test -z "$ac_c_werror_flag"
6010                          || test ! -s conftest.err'
6011   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6012   (eval $ac_try) 2>&5
6013   ac_status=$?
6014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6015   (exit $ac_status); }; } &&
6016          { ac_try='test -s conftest.$ac_objext'
6017   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6018   (eval $ac_try) 2>&5
6019   ac_status=$?
6020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6021   (exit $ac_status); }; }; then
6022   ac_header_compiler=yes
6023 else
6024   echo "$as_me: failed program was:" >&5
6025 sed 's/^/| /' conftest.$ac_ext >&5
6026
6027 ac_header_compiler=no
6028 fi
6029 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6030 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6031 echo "${ECHO_T}$ac_header_compiler" >&6
6032
6033 # Is the header present?
6034 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6035 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6036 cat >conftest.$ac_ext <<_ACEOF
6037 /* confdefs.h.  */
6038 _ACEOF
6039 cat confdefs.h >>conftest.$ac_ext
6040 cat >>conftest.$ac_ext <<_ACEOF
6041 /* end confdefs.h.  */
6042 #include <$ac_header>
6043 _ACEOF
6044 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6045   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6046   ac_status=$?
6047   grep -v '^ *+' conftest.er1 >conftest.err
6048   rm -f conftest.er1
6049   cat conftest.err >&5
6050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6051   (exit $ac_status); } >/dev/null; then
6052   if test -s conftest.err; then
6053     ac_cpp_err=$ac_c_preproc_warn_flag
6054     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6055   else
6056     ac_cpp_err=
6057   fi
6058 else
6059   ac_cpp_err=yes
6060 fi
6061 if test -z "$ac_cpp_err"; then
6062   ac_header_preproc=yes
6063 else
6064   echo "$as_me: failed program was:" >&5
6065 sed 's/^/| /' conftest.$ac_ext >&5
6066
6067   ac_header_preproc=no
6068 fi
6069 rm -f conftest.err conftest.$ac_ext
6070 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6071 echo "${ECHO_T}$ac_header_preproc" >&6
6072
6073 # So?  What about this header?
6074 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6075   yes:no: )
6076     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6077 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6078     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6079 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6080     ac_header_preproc=yes
6081     ;;
6082   no:yes:* )
6083     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6084 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6085     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6086 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6087     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6088 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6089     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6090 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6091     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6092 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6093     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6094 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6095     (
6096       cat <<\_ASBOX
6097 ## ------------------------------------------ ##
6098 ## Report this to the AC_PACKAGE_NAME lists.  ##
6099 ## ------------------------------------------ ##
6100 _ASBOX
6101     ) |
6102       sed "s/^/$as_me: WARNING:     /" >&2
6103     ;;
6104 esac
6105 echo "$as_me:$LINENO: checking for $ac_header" >&5
6106 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6107 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6108   echo $ECHO_N "(cached) $ECHO_C" >&6
6109 else
6110   eval "$as_ac_Header=\$ac_header_preproc"
6111 fi
6112 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6113 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6114
6115 fi
6116 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6117   cat >>confdefs.h <<_ACEOF
6118 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6119 _ACEOF
6120
6121 fi
6122
6123 done
6124
6125          echo "$as_me:$LINENO: checking for term.h" >&5
6126 echo $ECHO_N "checking for term.h... $ECHO_C" >&6
6127 if test "${ac_cv_header_term_h+set}" = set; then
6128   echo $ECHO_N "(cached) $ECHO_C" >&6
6129 else
6130   cat >conftest.$ac_ext <<_ACEOF
6131 /* confdefs.h.  */
6132 _ACEOF
6133 cat confdefs.h >>conftest.$ac_ext
6134 cat >>conftest.$ac_ext <<_ACEOF
6135 /* end confdefs.h.  */
6136 #if HAVE_CURSES_H
6137 #include <curses.h>
6138 #endif
6139
6140
6141 #include <term.h>
6142 _ACEOF
6143 rm -f conftest.$ac_objext
6144 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6145   (eval $ac_compile) 2>conftest.er1
6146   ac_status=$?
6147   grep -v '^ *+' conftest.er1 >conftest.err
6148   rm -f conftest.er1
6149   cat conftest.err >&5
6150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6151   (exit $ac_status); } &&
6152          { ac_try='test -z "$ac_c_werror_flag"
6153                          || test ! -s conftest.err'
6154   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6155   (eval $ac_try) 2>&5
6156   ac_status=$?
6157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6158   (exit $ac_status); }; } &&
6159          { ac_try='test -s conftest.$ac_objext'
6160   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6161   (eval $ac_try) 2>&5
6162   ac_status=$?
6163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6164   (exit $ac_status); }; }; then
6165   ac_cv_header_term_h=yes
6166 else
6167   echo "$as_me: failed program was:" >&5
6168 sed 's/^/| /' conftest.$ac_ext >&5
6169
6170 ac_cv_header_term_h=no
6171 fi
6172 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6173 fi
6174 echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
6175 echo "${ECHO_T}$ac_cv_header_term_h" >&6
6176 if test $ac_cv_header_term_h = yes; then
6177    echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
6178 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6
6179 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
6180   echo $ECHO_N "(cached) $ECHO_C" >&6
6181 else
6182   ac_check_lib_save_LIBS=$LIBS
6183 LIBS="-lcurses  $LIBS"
6184 cat >conftest.$ac_ext <<_ACEOF
6185 /* confdefs.h.  */
6186 _ACEOF
6187 cat confdefs.h >>conftest.$ac_ext
6188 cat >>conftest.$ac_ext <<_ACEOF
6189 /* end confdefs.h.  */
6190
6191 /* Override any gcc2 internal prototype to avoid an error.  */
6192 #ifdef __cplusplus
6193 extern "C"
6194 #endif
6195 /* We use char because int might match the return type of a gcc2
6196    builtin and then its argument prototype would still apply.  */
6197 char tgetent ();
6198 int
6199 main ()
6200 {
6201 tgetent ();
6202   ;
6203   return 0;
6204 }
6205 _ACEOF
6206 rm -f conftest.$ac_objext conftest$ac_exeext
6207 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6208   (eval $ac_link) 2>conftest.er1
6209   ac_status=$?
6210   grep -v '^ *+' conftest.er1 >conftest.err
6211   rm -f conftest.er1
6212   cat conftest.err >&5
6213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6214   (exit $ac_status); } &&
6215          { ac_try='test -z "$ac_c_werror_flag"
6216                          || test ! -s conftest.err'
6217   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6218   (eval $ac_try) 2>&5
6219   ac_status=$?
6220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6221   (exit $ac_status); }; } &&
6222          { ac_try='test -s conftest$ac_exeext'
6223   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6224   (eval $ac_try) 2>&5
6225   ac_status=$?
6226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6227   (exit $ac_status); }; }; then
6228   ac_cv_lib_curses_tgetent=yes
6229 else
6230   echo "$as_me: failed program was:" >&5
6231 sed 's/^/| /' conftest.$ac_ext >&5
6232
6233 ac_cv_lib_curses_tgetent=no
6234 fi
6235 rm -f conftest.err conftest.$ac_objext \
6236       conftest$ac_exeext conftest.$ac_ext
6237 LIBS=$ac_check_lib_save_LIBS
6238 fi
6239 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
6240 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6
6241 if test $ac_cv_lib_curses_tgetent = yes; then
6242    CONS_LIBS="-lcurses"
6243                    CONS_OBJ="conio.o"
6244                    CONS_SRC="conio.c"
6245                    got_conio="yes"
6246                    support_readline=no
6247
6248 cat >>confdefs.h <<\_ACEOF
6249 #define HAVE_CONIO 1
6250 _ACEOF
6251
6252
6253 fi
6254
6255
6256 else
6257    echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
6258 fi
6259
6260
6261
6262 fi
6263
6264
6265 fi
6266
6267
6268 # ---------------------------------------------------
6269 # Check for readline support/directory (default off)
6270 # ---------------------------------------------------
6271 # this allows you to turn it completely off
6272 # Check whether --enable-readline or --disable-readline was given.
6273 if test "${enable_readline+set}" = set; then
6274   enableval="$enable_readline"
6275   if test x$enableval = xno; then
6276     support_readline=no
6277   fi
6278 fi;
6279
6280 got_readline="no"
6281 READLINE_SRC=
6282 if test x$support_readline = xyes; then
6283
6284 # Check whether --with-readline or --without-readline was given.
6285 if test "${with_readline+set}" = set; then
6286   withval="$with_readline"
6287
6288         case "$with_readline" in
6289         no) : ;;
6290         yes|*)
6291           if test "$with_readline" != "yes"; then
6292             CONS_INC="-I${with_readline}"
6293             CONS_LDFLAGS="-L$with_readline"
6294           else
6295              with_readline="/usr/include/readline"
6296           fi
6297           as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
6298 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6299   echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
6300 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
6301 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6302   echo $ECHO_N "(cached) $ECHO_C" >&6
6303 fi
6304 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6305 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6306 else
6307   # Is the header compilable?
6308 echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
6309 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6
6310 cat >conftest.$ac_ext <<_ACEOF
6311 /* confdefs.h.  */
6312 _ACEOF
6313 cat confdefs.h >>conftest.$ac_ext
6314 cat >>conftest.$ac_ext <<_ACEOF
6315 /* end confdefs.h.  */
6316 $ac_includes_default
6317 #include <${with_readline}/readline.h>
6318 _ACEOF
6319 rm -f conftest.$ac_objext
6320 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6321   (eval $ac_compile) 2>conftest.er1
6322   ac_status=$?
6323   grep -v '^ *+' conftest.er1 >conftest.err
6324   rm -f conftest.er1
6325   cat conftest.err >&5
6326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6327   (exit $ac_status); } &&
6328          { ac_try='test -z "$ac_c_werror_flag"
6329                          || test ! -s conftest.err'
6330   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6331   (eval $ac_try) 2>&5
6332   ac_status=$?
6333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6334   (exit $ac_status); }; } &&
6335          { ac_try='test -s conftest.$ac_objext'
6336   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6337   (eval $ac_try) 2>&5
6338   ac_status=$?
6339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6340   (exit $ac_status); }; }; then
6341   ac_header_compiler=yes
6342 else
6343   echo "$as_me: failed program was:" >&5
6344 sed 's/^/| /' conftest.$ac_ext >&5
6345
6346 ac_header_compiler=no
6347 fi
6348 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6349 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6350 echo "${ECHO_T}$ac_header_compiler" >&6
6351
6352 # Is the header present?
6353 echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
6354 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6
6355 cat >conftest.$ac_ext <<_ACEOF
6356 /* confdefs.h.  */
6357 _ACEOF
6358 cat confdefs.h >>conftest.$ac_ext
6359 cat >>conftest.$ac_ext <<_ACEOF
6360 /* end confdefs.h.  */
6361 #include <${with_readline}/readline.h>
6362 _ACEOF
6363 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6364   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6365   ac_status=$?
6366   grep -v '^ *+' conftest.er1 >conftest.err
6367   rm -f conftest.er1
6368   cat conftest.err >&5
6369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6370   (exit $ac_status); } >/dev/null; then
6371   if test -s conftest.err; then
6372     ac_cpp_err=$ac_c_preproc_warn_flag
6373     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6374   else
6375     ac_cpp_err=
6376   fi
6377 else
6378   ac_cpp_err=yes
6379 fi
6380 if test -z "$ac_cpp_err"; then
6381   ac_header_preproc=yes
6382 else
6383   echo "$as_me: failed program was:" >&5
6384 sed 's/^/| /' conftest.$ac_ext >&5
6385
6386   ac_header_preproc=no
6387 fi
6388 rm -f conftest.err conftest.$ac_ext
6389 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6390 echo "${ECHO_T}$ac_header_preproc" >&6
6391
6392 # So?  What about this header?
6393 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6394   yes:no: )
6395     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
6396 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6397     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&5
6398 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&2;}
6399     ac_header_preproc=yes
6400     ;;
6401   no:yes:* )
6402     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
6403 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
6404     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h:     check for missing prerequisite headers?" >&5
6405 echo "$as_me: WARNING: ${with_readline}/readline.h:     check for missing prerequisite headers?" >&2;}
6406     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&5
6407 echo "$as_me: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&2;}
6408     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
6409 echo "$as_me: WARNING: ${with_readline}/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
6410     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
6411 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
6412     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&5
6413 echo "$as_me: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&2;}
6414     (
6415       cat <<\_ASBOX
6416 ## ------------------------------------------ ##
6417 ## Report this to the AC_PACKAGE_NAME lists.  ##
6418 ## ------------------------------------------ ##
6419 _ASBOX
6420     ) |
6421       sed "s/^/$as_me: WARNING:     /" >&2
6422     ;;
6423 esac
6424 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
6425 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
6426 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6427   echo $ECHO_N "(cached) $ECHO_C" >&6
6428 else
6429   eval "$as_ac_Header=\$ac_header_preproc"
6430 fi
6431 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6432 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6433
6434 fi
6435 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6436    cat >>confdefs.h <<\_ACEOF
6437 #define HAVE_READLINE 1
6438 _ACEOF
6439
6440                CONS_LIBS="-lreadline -ltermcap"
6441                got_readline="yes"
6442
6443 else
6444    echo " "
6445                echo "readline.h not found. readline turned off ..."
6446                echo " "
6447
6448
6449 fi
6450
6451
6452           ;;
6453         esac
6454
6455 else
6456
6457        # check for standard readline library
6458        if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
6459   echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
6460 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
6461 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
6462   echo $ECHO_N "(cached) $ECHO_C" >&6
6463 fi
6464 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
6465 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
6466 else
6467   # Is the header compilable?
6468 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
6469 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6
6470 cat >conftest.$ac_ext <<_ACEOF
6471 /* confdefs.h.  */
6472 _ACEOF
6473 cat confdefs.h >>conftest.$ac_ext
6474 cat >>conftest.$ac_ext <<_ACEOF
6475 /* end confdefs.h.  */
6476 $ac_includes_default
6477 #include </usr/include/readline/readline.h>
6478 _ACEOF
6479 rm -f conftest.$ac_objext
6480 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6481   (eval $ac_compile) 2>conftest.er1
6482   ac_status=$?
6483   grep -v '^ *+' conftest.er1 >conftest.err
6484   rm -f conftest.er1
6485   cat conftest.err >&5
6486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6487   (exit $ac_status); } &&
6488          { ac_try='test -z "$ac_c_werror_flag"
6489                          || test ! -s conftest.err'
6490   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6491   (eval $ac_try) 2>&5
6492   ac_status=$?
6493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6494   (exit $ac_status); }; } &&
6495          { ac_try='test -s conftest.$ac_objext'
6496   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6497   (eval $ac_try) 2>&5
6498   ac_status=$?
6499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6500   (exit $ac_status); }; }; then
6501   ac_header_compiler=yes
6502 else
6503   echo "$as_me: failed program was:" >&5
6504 sed 's/^/| /' conftest.$ac_ext >&5
6505
6506 ac_header_compiler=no
6507 fi
6508 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6509 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6510 echo "${ECHO_T}$ac_header_compiler" >&6
6511
6512 # Is the header present?
6513 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
6514 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6
6515 cat >conftest.$ac_ext <<_ACEOF
6516 /* confdefs.h.  */
6517 _ACEOF
6518 cat confdefs.h >>conftest.$ac_ext
6519 cat >>conftest.$ac_ext <<_ACEOF
6520 /* end confdefs.h.  */
6521 #include </usr/include/readline/readline.h>
6522 _ACEOF
6523 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6524   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6525   ac_status=$?
6526   grep -v '^ *+' conftest.er1 >conftest.err
6527   rm -f conftest.er1
6528   cat conftest.err >&5
6529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6530   (exit $ac_status); } >/dev/null; then
6531   if test -s conftest.err; then
6532     ac_cpp_err=$ac_c_preproc_warn_flag
6533     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6534   else
6535     ac_cpp_err=
6536   fi
6537 else
6538   ac_cpp_err=yes
6539 fi
6540 if test -z "$ac_cpp_err"; then
6541   ac_header_preproc=yes
6542 else
6543   echo "$as_me: failed program was:" >&5
6544 sed 's/^/| /' conftest.$ac_ext >&5
6545
6546   ac_header_preproc=no
6547 fi
6548 rm -f conftest.err conftest.$ac_ext
6549 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6550 echo "${ECHO_T}$ac_header_preproc" >&6
6551
6552 # So?  What about this header?
6553 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6554   yes:no: )
6555     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
6556 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6557     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&5
6558 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&2;}
6559     ac_header_preproc=yes
6560     ;;
6561   no:yes:* )
6562     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
6563 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
6564     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h:     check for missing prerequisite headers?" >&5
6565 echo "$as_me: WARNING: /usr/include/readline/readline.h:     check for missing prerequisite headers?" >&2;}
6566     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&5
6567 echo "$as_me: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&2;}
6568     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
6569 echo "$as_me: WARNING: /usr/include/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
6570     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
6571 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
6572     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&5
6573 echo "$as_me: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&2;}
6574     (
6575       cat <<\_ASBOX
6576 ## ------------------------------------------ ##
6577 ## Report this to the AC_PACKAGE_NAME lists.  ##
6578 ## ------------------------------------------ ##
6579 _ASBOX
6580     ) |
6581       sed "s/^/$as_me: WARNING:     /" >&2
6582     ;;
6583 esac
6584 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
6585 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
6586 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
6587   echo $ECHO_N "(cached) $ECHO_C" >&6
6588 else
6589   ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
6590 fi
6591 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
6592 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
6593
6594 fi
6595 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
6596    cat >>confdefs.h <<\_ACEOF
6597 #define HAVE_READLINE 1
6598 _ACEOF
6599
6600            got_readline="yes"
6601            CONS_INC="-I/usr/include/readline"
6602            CONS_LIBS="-lreadline -ltermcap"
6603
6604 else
6605
6606            # Did not find standard library, so try Bacula's default
6607             as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
6608 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6609   echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
6610 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
6611 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6612   echo $ECHO_N "(cached) $ECHO_C" >&6
6613 fi
6614 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6615 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6616 else
6617   # Is the header compilable?
6618 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
6619 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6
6620 cat >conftest.$ac_ext <<_ACEOF
6621 /* confdefs.h.  */
6622 _ACEOF
6623 cat confdefs.h >>conftest.$ac_ext
6624 cat >>conftest.$ac_ext <<_ACEOF
6625 /* end confdefs.h.  */
6626 $ac_includes_default
6627 #include <${TOP_DIR}/depkgs/readline/readline.h>
6628 _ACEOF
6629 rm -f conftest.$ac_objext
6630 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6631   (eval $ac_compile) 2>conftest.er1
6632   ac_status=$?
6633   grep -v '^ *+' conftest.er1 >conftest.err
6634   rm -f conftest.er1
6635   cat conftest.err >&5
6636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6637   (exit $ac_status); } &&
6638          { ac_try='test -z "$ac_c_werror_flag"
6639                          || test ! -s conftest.err'
6640   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6641   (eval $ac_try) 2>&5
6642   ac_status=$?
6643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6644   (exit $ac_status); }; } &&
6645          { ac_try='test -s conftest.$ac_objext'
6646   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6647   (eval $ac_try) 2>&5
6648   ac_status=$?
6649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6650   (exit $ac_status); }; }; then
6651   ac_header_compiler=yes
6652 else
6653   echo "$as_me: failed program was:" >&5
6654 sed 's/^/| /' conftest.$ac_ext >&5
6655
6656 ac_header_compiler=no
6657 fi
6658 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6659 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6660 echo "${ECHO_T}$ac_header_compiler" >&6
6661
6662 # Is the header present?
6663 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
6664 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6
6665 cat >conftest.$ac_ext <<_ACEOF
6666 /* confdefs.h.  */
6667 _ACEOF
6668 cat confdefs.h >>conftest.$ac_ext
6669 cat >>conftest.$ac_ext <<_ACEOF
6670 /* end confdefs.h.  */
6671 #include <${TOP_DIR}/depkgs/readline/readline.h>
6672 _ACEOF
6673 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6674   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6675   ac_status=$?
6676   grep -v '^ *+' conftest.er1 >conftest.err
6677   rm -f conftest.er1
6678   cat conftest.err >&5
6679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6680   (exit $ac_status); } >/dev/null; then
6681   if test -s conftest.err; then
6682     ac_cpp_err=$ac_c_preproc_warn_flag
6683     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6684   else
6685     ac_cpp_err=
6686   fi
6687 else
6688   ac_cpp_err=yes
6689 fi
6690 if test -z "$ac_cpp_err"; then
6691   ac_header_preproc=yes
6692 else
6693   echo "$as_me: failed program was:" >&5
6694 sed 's/^/| /' conftest.$ac_ext >&5
6695
6696   ac_header_preproc=no
6697 fi
6698 rm -f conftest.err conftest.$ac_ext
6699 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6700 echo "${ECHO_T}$ac_header_preproc" >&6
6701
6702 # So?  What about this header?
6703 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6704   yes:no: )
6705     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
6706 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6707     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&5
6708 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&2;}
6709     ac_header_preproc=yes
6710     ;;
6711   no:yes:* )
6712     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
6713 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
6714     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     check for missing prerequisite headers?" >&5
6715 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     check for missing prerequisite headers?" >&2;}
6716     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&5
6717 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&2;}
6718     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
6719 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
6720     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
6721 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
6722     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&5
6723 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&2;}
6724     (
6725       cat <<\_ASBOX
6726 ## ------------------------------------------ ##
6727 ## Report this to the AC_PACKAGE_NAME lists.  ##
6728 ## ------------------------------------------ ##
6729 _ASBOX
6730     ) |
6731       sed "s/^/$as_me: WARNING:     /" >&2
6732     ;;
6733 esac
6734 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
6735 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
6736 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6737   echo $ECHO_N "(cached) $ECHO_C" >&6
6738 else
6739   eval "$as_ac_Header=\$ac_header_preproc"
6740 fi
6741 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6742 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6743
6744 fi
6745 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6746    cat >>confdefs.h <<\_ACEOF
6747 #define HAVE_READLINE 1
6748 _ACEOF
6749
6750                  got_readline="yes"
6751                  CONS_INC="-I${TOP_DIR}/depkgs/readline"
6752                  CONS_LIBS="-lreadline -lhistory -ltermcap"
6753                  CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
6754                  PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
6755
6756 else
6757    echo " "
6758                 echo "readline.h not found. readline turned off ..."
6759                 echo " "
6760
6761
6762 fi
6763
6764
6765
6766
6767 fi
6768
6769
6770
6771
6772 fi;
6773 fi
6774
6775
6776
6777
6778
6779
6780
6781
6782
6783
6784 # Minimal stuff for readline Makefile configuration
6785 MAKE_SHELL=/bin/sh
6786
6787 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
6788 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
6789 if test "${ac_cv_header_stat_broken+set}" = set; then
6790   echo $ECHO_N "(cached) $ECHO_C" >&6
6791 else
6792   cat >conftest.$ac_ext <<_ACEOF
6793 /* confdefs.h.  */
6794 _ACEOF
6795 cat confdefs.h >>conftest.$ac_ext
6796 cat >>conftest.$ac_ext <<_ACEOF
6797 /* end confdefs.h.  */
6798 #include <sys/types.h>
6799 #include <sys/stat.h>
6800
6801 #if defined(S_ISBLK) && defined(S_IFDIR)
6802 # if S_ISBLK (S_IFDIR)
6803 You lose.
6804 # endif
6805 #endif
6806
6807 #if defined(S_ISBLK) && defined(S_IFCHR)
6808 # if S_ISBLK (S_IFCHR)
6809 You lose.
6810 # endif
6811 #endif
6812
6813 #if defined(S_ISLNK) && defined(S_IFREG)
6814 # if S_ISLNK (S_IFREG)
6815 You lose.
6816 # endif
6817 #endif
6818
6819 #if defined(S_ISSOCK) && defined(S_IFREG)
6820 # if S_ISSOCK (S_IFREG)
6821 You lose.
6822 # endif
6823 #endif
6824
6825 _ACEOF
6826 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6827   $EGREP "You lose" >/dev/null 2>&1; then
6828   ac_cv_header_stat_broken=yes
6829 else
6830   ac_cv_header_stat_broken=no
6831 fi
6832 rm -f conftest*
6833
6834 fi
6835 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
6836 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
6837 if test $ac_cv_header_stat_broken = yes; then
6838
6839 cat >>confdefs.h <<\_ACEOF
6840 #define STAT_MACROS_BROKEN 1
6841 _ACEOF
6842
6843 fi
6844
6845
6846
6847
6848
6849
6850 ac_header_dirent=no
6851 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6852   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6853 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6854 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
6855 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6856   echo $ECHO_N "(cached) $ECHO_C" >&6
6857 else
6858   cat >conftest.$ac_ext <<_ACEOF
6859 /* confdefs.h.  */
6860 _ACEOF
6861 cat confdefs.h >>conftest.$ac_ext
6862 cat >>conftest.$ac_ext <<_ACEOF
6863 /* end confdefs.h.  */
6864 #include <sys/types.h>
6865 #include <$ac_hdr>
6866
6867 int
6868 main ()
6869 {
6870 if ((DIR *) 0)
6871 return 0;
6872   ;
6873   return 0;
6874 }
6875 _ACEOF
6876 rm -f conftest.$ac_objext
6877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6878   (eval $ac_compile) 2>conftest.er1
6879   ac_status=$?
6880   grep -v '^ *+' conftest.er1 >conftest.err
6881   rm -f conftest.er1
6882   cat conftest.err >&5
6883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6884   (exit $ac_status); } &&
6885          { ac_try='test -z "$ac_c_werror_flag"
6886                          || test ! -s conftest.err'
6887   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6888   (eval $ac_try) 2>&5
6889   ac_status=$?
6890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6891   (exit $ac_status); }; } &&
6892          { ac_try='test -s conftest.$ac_objext'
6893   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6894   (eval $ac_try) 2>&5
6895   ac_status=$?
6896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6897   (exit $ac_status); }; }; then
6898   eval "$as_ac_Header=yes"
6899 else
6900   echo "$as_me: failed program was:" >&5
6901 sed 's/^/| /' conftest.$ac_ext >&5
6902
6903 eval "$as_ac_Header=no"
6904 fi
6905 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6906 fi
6907 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6908 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6909 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6910   cat >>confdefs.h <<_ACEOF
6911 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6912 _ACEOF
6913
6914 ac_header_dirent=$ac_hdr; break
6915 fi
6916
6917 done
6918 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6919 if test $ac_header_dirent = dirent.h; then
6920   echo "$as_me:$LINENO: checking for library containing opendir" >&5
6921 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6922 if test "${ac_cv_search_opendir+set}" = set; then
6923   echo $ECHO_N "(cached) $ECHO_C" >&6
6924 else
6925   ac_func_search_save_LIBS=$LIBS
6926 ac_cv_search_opendir=no
6927 cat >conftest.$ac_ext <<_ACEOF
6928 /* confdefs.h.  */
6929 _ACEOF
6930 cat confdefs.h >>conftest.$ac_ext
6931 cat >>conftest.$ac_ext <<_ACEOF
6932 /* end confdefs.h.  */
6933
6934 /* Override any gcc2 internal prototype to avoid an error.  */
6935 #ifdef __cplusplus
6936 extern "C"
6937 #endif
6938 /* We use char because int might match the return type of a gcc2
6939    builtin and then its argument prototype would still apply.  */
6940 char opendir ();
6941 int
6942 main ()
6943 {
6944 opendir ();
6945   ;
6946   return 0;
6947 }
6948 _ACEOF
6949 rm -f conftest.$ac_objext conftest$ac_exeext
6950 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6951   (eval $ac_link) 2>conftest.er1
6952   ac_status=$?
6953   grep -v '^ *+' conftest.er1 >conftest.err
6954   rm -f conftest.er1
6955   cat conftest.err >&5
6956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6957   (exit $ac_status); } &&
6958          { ac_try='test -z "$ac_c_werror_flag"
6959                          || test ! -s conftest.err'
6960   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6961   (eval $ac_try) 2>&5
6962   ac_status=$?
6963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6964   (exit $ac_status); }; } &&
6965          { ac_try='test -s conftest$ac_exeext'
6966   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6967   (eval $ac_try) 2>&5
6968   ac_status=$?
6969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6970   (exit $ac_status); }; }; then
6971   ac_cv_search_opendir="none required"
6972 else
6973   echo "$as_me: failed program was:" >&5
6974 sed 's/^/| /' conftest.$ac_ext >&5
6975
6976 fi
6977 rm -f conftest.err conftest.$ac_objext \
6978       conftest$ac_exeext conftest.$ac_ext
6979 if test "$ac_cv_search_opendir" = no; then
6980   for ac_lib in dir; do
6981     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6982     cat >conftest.$ac_ext <<_ACEOF
6983 /* confdefs.h.  */
6984 _ACEOF
6985 cat confdefs.h >>conftest.$ac_ext
6986 cat >>conftest.$ac_ext <<_ACEOF
6987 /* end confdefs.h.  */
6988
6989 /* Override any gcc2 internal prototype to avoid an error.  */
6990 #ifdef __cplusplus
6991 extern "C"
6992 #endif
6993 /* We use char because int might match the return type of a gcc2
6994    builtin and then its argument prototype would still apply.  */
6995 char opendir ();
6996 int
6997 main ()
6998 {
6999 opendir ();
7000   ;
7001   return 0;
7002 }
7003 _ACEOF
7004 rm -f conftest.$ac_objext conftest$ac_exeext
7005 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7006   (eval $ac_link) 2>conftest.er1
7007   ac_status=$?
7008   grep -v '^ *+' conftest.er1 >conftest.err
7009   rm -f conftest.er1
7010   cat conftest.err >&5
7011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7012   (exit $ac_status); } &&
7013          { ac_try='test -z "$ac_c_werror_flag"
7014                          || test ! -s conftest.err'
7015   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7016   (eval $ac_try) 2>&5
7017   ac_status=$?
7018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7019   (exit $ac_status); }; } &&
7020          { ac_try='test -s conftest$ac_exeext'
7021   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7022   (eval $ac_try) 2>&5
7023   ac_status=$?
7024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7025   (exit $ac_status); }; }; then
7026   ac_cv_search_opendir="-l$ac_lib"
7027 break
7028 else
7029   echo "$as_me: failed program was:" >&5
7030 sed 's/^/| /' conftest.$ac_ext >&5
7031
7032 fi
7033 rm -f conftest.err conftest.$ac_objext \
7034       conftest$ac_exeext conftest.$ac_ext
7035   done
7036 fi
7037 LIBS=$ac_func_search_save_LIBS
7038 fi
7039 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
7040 echo "${ECHO_T}$ac_cv_search_opendir" >&6
7041 if test "$ac_cv_search_opendir" != no; then
7042   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
7043
7044 fi
7045
7046 else
7047   echo "$as_me:$LINENO: checking for library containing opendir" >&5
7048 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
7049 if test "${ac_cv_search_opendir+set}" = set; then
7050   echo $ECHO_N "(cached) $ECHO_C" >&6
7051 else
7052   ac_func_search_save_LIBS=$LIBS
7053 ac_cv_search_opendir=no
7054 cat >conftest.$ac_ext <<_ACEOF
7055 /* confdefs.h.  */
7056 _ACEOF
7057 cat confdefs.h >>conftest.$ac_ext
7058 cat >>conftest.$ac_ext <<_ACEOF
7059 /* end confdefs.h.  */
7060
7061 /* Override any gcc2 internal prototype to avoid an error.  */
7062 #ifdef __cplusplus
7063 extern "C"
7064 #endif
7065 /* We use char because int might match the return type of a gcc2
7066    builtin and then its argument prototype would still apply.  */
7067 char opendir ();
7068 int
7069 main ()
7070 {
7071 opendir ();
7072   ;
7073   return 0;
7074 }
7075 _ACEOF
7076 rm -f conftest.$ac_objext conftest$ac_exeext
7077 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7078   (eval $ac_link) 2>conftest.er1
7079   ac_status=$?
7080   grep -v '^ *+' conftest.er1 >conftest.err
7081   rm -f conftest.er1
7082   cat conftest.err >&5
7083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7084   (exit $ac_status); } &&
7085          { ac_try='test -z "$ac_c_werror_flag"
7086                          || test ! -s conftest.err'
7087   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7088   (eval $ac_try) 2>&5
7089   ac_status=$?
7090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7091   (exit $ac_status); }; } &&
7092          { ac_try='test -s conftest$ac_exeext'
7093   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7094   (eval $ac_try) 2>&5
7095   ac_status=$?
7096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7097   (exit $ac_status); }; }; then
7098   ac_cv_search_opendir="none required"
7099 else
7100   echo "$as_me: failed program was:" >&5
7101 sed 's/^/| /' conftest.$ac_ext >&5
7102
7103 fi
7104 rm -f conftest.err conftest.$ac_objext \
7105       conftest$ac_exeext conftest.$ac_ext
7106 if test "$ac_cv_search_opendir" = no; then
7107   for ac_lib in x; do
7108     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7109     cat >conftest.$ac_ext <<_ACEOF
7110 /* confdefs.h.  */
7111 _ACEOF
7112 cat confdefs.h >>conftest.$ac_ext
7113 cat >>conftest.$ac_ext <<_ACEOF
7114 /* end confdefs.h.  */
7115
7116 /* Override any gcc2 internal prototype to avoid an error.  */
7117 #ifdef __cplusplus
7118 extern "C"
7119 #endif
7120 /* We use char because int might match the return type of a gcc2
7121    builtin and then its argument prototype would still apply.  */
7122 char opendir ();
7123 int
7124 main ()
7125 {
7126 opendir ();
7127   ;
7128   return 0;
7129 }
7130 _ACEOF
7131 rm -f conftest.$ac_objext conftest$ac_exeext
7132 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7133   (eval $ac_link) 2>conftest.er1
7134   ac_status=$?
7135   grep -v '^ *+' conftest.er1 >conftest.err
7136   rm -f conftest.er1
7137   cat conftest.err >&5
7138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7139   (exit $ac_status); } &&
7140          { ac_try='test -z "$ac_c_werror_flag"
7141                          || test ! -s conftest.err'
7142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7143   (eval $ac_try) 2>&5
7144   ac_status=$?
7145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7146   (exit $ac_status); }; } &&
7147          { ac_try='test -s conftest$ac_exeext'
7148   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7149   (eval $ac_try) 2>&5
7150   ac_status=$?
7151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7152   (exit $ac_status); }; }; then
7153   ac_cv_search_opendir="-l$ac_lib"
7154 break
7155 else
7156   echo "$as_me: failed program was:" >&5
7157 sed 's/^/| /' conftest.$ac_ext >&5
7158
7159 fi
7160 rm -f conftest.err conftest.$ac_objext \
7161       conftest$ac_exeext conftest.$ac_ext
7162   done
7163 fi
7164 LIBS=$ac_func_search_save_LIBS
7165 fi
7166 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
7167 echo "${ECHO_T}$ac_cv_search_opendir" >&6
7168 if test "$ac_cv_search_opendir" != no; then
7169   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
7170
7171 fi
7172
7173 fi
7174
7175
7176
7177
7178
7179
7180
7181
7182
7183 for ac_func in strcasecmp select setenv putenv tcgetattr setlocale lstat lchown
7184 do
7185 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7186 echo "$as_me:$LINENO: checking for $ac_func" >&5
7187 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7188 if eval "test \"\${$as_ac_var+set}\" = set"; then
7189   echo $ECHO_N "(cached) $ECHO_C" >&6
7190 else
7191   cat >conftest.$ac_ext <<_ACEOF
7192 /* confdefs.h.  */
7193 _ACEOF
7194 cat confdefs.h >>conftest.$ac_ext
7195 cat >>conftest.$ac_ext <<_ACEOF
7196 /* end confdefs.h.  */
7197 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7198    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7199 #define $ac_func innocuous_$ac_func
7200
7201 /* System header to define __stub macros and hopefully few prototypes,
7202     which can conflict with char $ac_func (); below.
7203     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7204     <limits.h> exists even on freestanding compilers.  */
7205
7206 #ifdef __STDC__
7207 # include <limits.h>
7208 #else
7209 # include <assert.h>
7210 #endif
7211
7212 #undef $ac_func
7213
7214 /* Override any gcc2 internal prototype to avoid an error.  */
7215 #ifdef __cplusplus
7216 extern "C"
7217 {
7218 #endif
7219 /* We use char because int might match the return type of a gcc2
7220    builtin and then its argument prototype would still apply.  */
7221 char $ac_func ();
7222 /* The GNU C library defines this for functions which it implements
7223     to always fail with ENOSYS.  Some functions are actually named
7224     something starting with __ and the normal name is an alias.  */
7225 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7226 choke me
7227 #else
7228 char (*f) () = $ac_func;
7229 #endif
7230 #ifdef __cplusplus
7231 }
7232 #endif
7233
7234 int
7235 main ()
7236 {
7237 return f != $ac_func;
7238   ;
7239   return 0;
7240 }
7241 _ACEOF
7242 rm -f conftest.$ac_objext conftest$ac_exeext
7243 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7244   (eval $ac_link) 2>conftest.er1
7245   ac_status=$?
7246   grep -v '^ *+' conftest.er1 >conftest.err
7247   rm -f conftest.er1
7248   cat conftest.err >&5
7249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7250   (exit $ac_status); } &&
7251          { ac_try='test -z "$ac_c_werror_flag"
7252                          || test ! -s conftest.err'
7253   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7254   (eval $ac_try) 2>&5
7255   ac_status=$?
7256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7257   (exit $ac_status); }; } &&
7258          { ac_try='test -s conftest$ac_exeext'
7259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7260   (eval $ac_try) 2>&5
7261   ac_status=$?
7262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7263   (exit $ac_status); }; }; then
7264   eval "$as_ac_var=yes"
7265 else
7266   echo "$as_me: failed program was:" >&5
7267 sed 's/^/| /' conftest.$ac_ext >&5
7268
7269 eval "$as_ac_var=no"
7270 fi
7271 rm -f conftest.err conftest.$ac_objext \
7272       conftest$ac_exeext conftest.$ac_ext
7273 fi
7274 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7275 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7276 if test `eval echo '${'$as_ac_var'}'` = yes; then
7277   cat >>confdefs.h <<_ACEOF
7278 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7279 _ACEOF
7280
7281 fi
7282 done
7283
7284
7285
7286 for ac_func in nanosleep nl_langinfo
7287 do
7288 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7289 echo "$as_me:$LINENO: checking for $ac_func" >&5
7290 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7291 if eval "test \"\${$as_ac_var+set}\" = set"; then
7292   echo $ECHO_N "(cached) $ECHO_C" >&6
7293 else
7294   cat >conftest.$ac_ext <<_ACEOF
7295 /* confdefs.h.  */
7296 _ACEOF
7297 cat confdefs.h >>conftest.$ac_ext
7298 cat >>conftest.$ac_ext <<_ACEOF
7299 /* end confdefs.h.  */
7300 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7301    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7302 #define $ac_func innocuous_$ac_func
7303
7304 /* System header to define __stub macros and hopefully few prototypes,
7305     which can conflict with char $ac_func (); below.
7306     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7307     <limits.h> exists even on freestanding compilers.  */
7308
7309 #ifdef __STDC__
7310 # include <limits.h>
7311 #else
7312 # include <assert.h>
7313 #endif
7314
7315 #undef $ac_func
7316
7317 /* Override any gcc2 internal prototype to avoid an error.  */
7318 #ifdef __cplusplus
7319 extern "C"
7320 {
7321 #endif
7322 /* We use char because int might match the return type of a gcc2
7323    builtin and then its argument prototype would still apply.  */
7324 char $ac_func ();
7325 /* The GNU C library defines this for functions which it implements
7326     to always fail with ENOSYS.  Some functions are actually named
7327     something starting with __ and the normal name is an alias.  */
7328 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7329 choke me
7330 #else
7331 char (*f) () = $ac_func;
7332 #endif
7333 #ifdef __cplusplus
7334 }
7335 #endif
7336
7337 int
7338 main ()
7339 {
7340 return f != $ac_func;
7341   ;
7342   return 0;
7343 }
7344 _ACEOF
7345 rm -f conftest.$ac_objext conftest$ac_exeext
7346 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7347   (eval $ac_link) 2>conftest.er1
7348   ac_status=$?
7349   grep -v '^ *+' conftest.er1 >conftest.err
7350   rm -f conftest.er1
7351   cat conftest.err >&5
7352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7353   (exit $ac_status); } &&
7354          { ac_try='test -z "$ac_c_werror_flag"
7355                          || test ! -s conftest.err'
7356   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7357   (eval $ac_try) 2>&5
7358   ac_status=$?
7359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7360   (exit $ac_status); }; } &&
7361          { ac_try='test -s conftest$ac_exeext'
7362   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7363   (eval $ac_try) 2>&5
7364   ac_status=$?
7365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7366   (exit $ac_status); }; }; then
7367   eval "$as_ac_var=yes"
7368 else
7369   echo "$as_me: failed program was:" >&5
7370 sed 's/^/| /' conftest.$ac_ext >&5
7371
7372 eval "$as_ac_var=no"
7373 fi
7374 rm -f conftest.err conftest.$ac_objext \
7375       conftest$ac_exeext conftest.$ac_ext
7376 fi
7377 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7378 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7379 if test `eval echo '${'$as_ac_var'}'` = yes; then
7380   cat >>confdefs.h <<_ACEOF
7381 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7382 _ACEOF
7383
7384 fi
7385 done
7386
7387
7388 for ac_header in varargs.h
7389 do
7390 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7391 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7392   echo "$as_me:$LINENO: checking for $ac_header" >&5
7393 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7394 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7395   echo $ECHO_N "(cached) $ECHO_C" >&6
7396 fi
7397 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7398 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7399 else
7400   # Is the header compilable?
7401 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7402 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7403 cat >conftest.$ac_ext <<_ACEOF
7404 /* confdefs.h.  */
7405 _ACEOF
7406 cat confdefs.h >>conftest.$ac_ext
7407 cat >>conftest.$ac_ext <<_ACEOF
7408 /* end confdefs.h.  */
7409 $ac_includes_default
7410 #include <$ac_header>
7411 _ACEOF
7412 rm -f conftest.$ac_objext
7413 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7414   (eval $ac_compile) 2>conftest.er1
7415   ac_status=$?
7416   grep -v '^ *+' conftest.er1 >conftest.err
7417   rm -f conftest.er1
7418   cat conftest.err >&5
7419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7420   (exit $ac_status); } &&
7421          { ac_try='test -z "$ac_c_werror_flag"
7422                          || test ! -s conftest.err'
7423   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7424   (eval $ac_try) 2>&5
7425   ac_status=$?
7426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7427   (exit $ac_status); }; } &&
7428          { ac_try='test -s conftest.$ac_objext'
7429   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7430   (eval $ac_try) 2>&5
7431   ac_status=$?
7432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7433   (exit $ac_status); }; }; then
7434   ac_header_compiler=yes
7435 else
7436   echo "$as_me: failed program was:" >&5
7437 sed 's/^/| /' conftest.$ac_ext >&5
7438
7439 ac_header_compiler=no
7440 fi
7441 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7442 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7443 echo "${ECHO_T}$ac_header_compiler" >&6
7444
7445 # Is the header present?
7446 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7447 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7448 cat >conftest.$ac_ext <<_ACEOF
7449 /* confdefs.h.  */
7450 _ACEOF
7451 cat confdefs.h >>conftest.$ac_ext
7452 cat >>conftest.$ac_ext <<_ACEOF
7453 /* end confdefs.h.  */
7454 #include <$ac_header>
7455 _ACEOF
7456 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7457   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7458   ac_status=$?
7459   grep -v '^ *+' conftest.er1 >conftest.err
7460   rm -f conftest.er1
7461   cat conftest.err >&5
7462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7463   (exit $ac_status); } >/dev/null; then
7464   if test -s conftest.err; then
7465     ac_cpp_err=$ac_c_preproc_warn_flag
7466     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7467   else
7468     ac_cpp_err=
7469   fi
7470 else
7471   ac_cpp_err=yes
7472 fi
7473 if test -z "$ac_cpp_err"; then
7474   ac_header_preproc=yes
7475 else
7476   echo "$as_me: failed program was:" >&5
7477 sed 's/^/| /' conftest.$ac_ext >&5
7478
7479   ac_header_preproc=no
7480 fi
7481 rm -f conftest.err conftest.$ac_ext
7482 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7483 echo "${ECHO_T}$ac_header_preproc" >&6
7484
7485 # So?  What about this header?
7486 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7487   yes:no: )
7488     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7489 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7490     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7491 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7492     ac_header_preproc=yes
7493     ;;
7494   no:yes:* )
7495     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7496 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7497     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7498 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7499     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7500 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7501     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7502 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7503     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7504 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7505     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7506 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7507     (
7508       cat <<\_ASBOX
7509 ## ------------------------------------------ ##
7510 ## Report this to the AC_PACKAGE_NAME lists.  ##
7511 ## ------------------------------------------ ##
7512 _ASBOX
7513     ) |
7514       sed "s/^/$as_me: WARNING:     /" >&2
7515     ;;
7516 esac
7517 echo "$as_me:$LINENO: checking for $ac_header" >&5
7518 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7519 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7520   echo $ECHO_N "(cached) $ECHO_C" >&6
7521 else
7522   eval "$as_ac_Header=\$ac_header_preproc"
7523 fi
7524 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7525 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7526
7527 fi
7528 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7529   cat >>confdefs.h <<_ACEOF
7530 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7531 _ACEOF
7532
7533 fi
7534
7535 done
7536
7537
7538 # End of readline/conio stuff
7539 # -----------------------------------------------------------------------
7540
7541 # -----------------------------------------------------------------------
7542 #  Check for Python support
7543 #
7544 echo "$as_me:$LINENO: checking for Python support" >&5
7545 echo $ECHO_N "checking for Python support... $ECHO_C" >&6
7546
7547 # Check whether --with-python or --without-python was given.
7548 if test "${with_python+set}" = set; then
7549   withval="$with_python"
7550
7551   PYTHON_INCDIR=
7552   PYTHON_LIBS=
7553   if test "$withval" != "no"; then
7554      if test "$withval" = "yes"; then
7555         if test -f /usr/include/python2.2/Python.h; then
7556            PYTHON_INCDIR=-I/usr/include/python2.2
7557            PYTHON_LIBS="-L/usr/lib/python2.2/config -lpython2.2 -lutil -ldl"
7558         elif test -f /usr/include/python2.3/Python.h; then
7559            PYTHON_INCDIR=-I/usr/include/python2.3
7560            PYTHON_LIBS="-L/usr/lib/python2.3/config -lpython2.3 -lutil -ldl"
7561         elif test -f /usr/include/python2.4/Python.h; then
7562            PYTHON_INCDIR=-I/usr/include/python2.4
7563            PYTHON_LIBS="-L/usr/lib/python2.4/config -lpython2.4 -lutil -ldl"
7564         elif test -f $prefix/include/Python.h; then
7565            PYTHON_INCDIR=-I$prefix/include
7566            PYTHON_LIBS="-L$prefix/lib/config -lpython -lutil -ldl"
7567         else
7568            echo "$as_me:$LINENO: result: no" >&5
7569 echo "${ECHO_T}no" >&6
7570            { { echo "$as_me:$LINENO: error: Unable to find Python.h in standard locations" >&5
7571 echo "$as_me: error: Unable to find Python.h in standard locations" >&2;}
7572    { (exit 1); exit 1; }; }
7573         fi
7574      else
7575         if test -f $withval/Python.h; then
7576            PYTHON_INCDIR=-I$withval
7577            PYTHON_LIBS="-L$withval/config -lpython -lutil -ldl"
7578         elif test -f $withval/include/Python.h; then
7579            PYTHON_INCDIR=-I$withval/include
7580            PYTHON_LIBS="-L$withval/lib/config -lpython -lutil -ldl"
7581         else
7582            echo "$as_me:$LINENO: result: no" >&5
7583 echo "${ECHO_T}no" >&6
7584            { { echo "$as_me:$LINENO: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&5
7585 echo "$as_me: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&2;}
7586    { (exit 1); exit 1; }; }
7587         fi
7588      fi
7589      cat >>confdefs.h <<\_ACEOF
7590 #define HAVE_PYTHON 1
7591 _ACEOF
7592
7593      echo "$as_me:$LINENO: result: yes" >&5
7594 echo "${ECHO_T}yes" >&6
7595      support_python=yes
7596
7597   else
7598      echo "$as_me:$LINENO: result: no" >&5
7599 echo "${ECHO_T}no" >&6
7600   fi
7601
7602 else
7603
7604   echo "$as_me:$LINENO: result: no" >&5
7605 echo "${ECHO_T}no" >&6
7606
7607 fi;
7608
7609
7610
7611
7612 #
7613 # Find where sockets are (especially for Solaris)
7614 # Do this before the TCP Wrappers test since tcp wrappers
7615 # uses the socket library and some linkers are stupid.
7616 #
7617 echo "$as_me:$LINENO: checking for socket" >&5
7618 echo $ECHO_N "checking for socket... $ECHO_C" >&6
7619 if test "${ac_cv_func_socket+set}" = set; then
7620   echo $ECHO_N "(cached) $ECHO_C" >&6
7621 else
7622   cat >conftest.$ac_ext <<_ACEOF
7623 /* confdefs.h.  */
7624 _ACEOF
7625 cat confdefs.h >>conftest.$ac_ext
7626 cat >>conftest.$ac_ext <<_ACEOF
7627 /* end confdefs.h.  */
7628 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
7629    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7630 #define socket innocuous_socket
7631
7632 /* System header to define __stub macros and hopefully few prototypes,
7633     which can conflict with char socket (); below.
7634     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7635     <limits.h> exists even on freestanding compilers.  */
7636
7637 #ifdef __STDC__
7638 # include <limits.h>
7639 #else
7640 # include <assert.h>
7641 #endif
7642
7643 #undef socket
7644
7645 /* Override any gcc2 internal prototype to avoid an error.  */
7646 #ifdef __cplusplus
7647 extern "C"
7648 {
7649 #endif
7650 /* We use char because int might match the return type of a gcc2
7651    builtin and then its argument prototype would still apply.  */
7652 char socket ();
7653 /* The GNU C library defines this for functions which it implements
7654     to always fail with ENOSYS.  Some functions are actually named
7655     something starting with __ and the normal name is an alias.  */
7656 #if defined (__stub_socket) || defined (__stub___socket)
7657 choke me
7658 #else
7659 char (*f) () = socket;
7660 #endif
7661 #ifdef __cplusplus
7662 }
7663 #endif
7664
7665 int
7666 main ()
7667 {
7668 return f != socket;
7669   ;
7670   return 0;
7671 }
7672 _ACEOF
7673 rm -f conftest.$ac_objext conftest$ac_exeext
7674 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7675   (eval $ac_link) 2>conftest.er1
7676   ac_status=$?
7677   grep -v '^ *+' conftest.er1 >conftest.err
7678   rm -f conftest.er1
7679   cat conftest.err >&5
7680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7681   (exit $ac_status); } &&
7682          { ac_try='test -z "$ac_c_werror_flag"
7683                          || test ! -s conftest.err'
7684   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7685   (eval $ac_try) 2>&5
7686   ac_status=$?
7687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7688   (exit $ac_status); }; } &&
7689          { ac_try='test -s conftest$ac_exeext'
7690   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7691   (eval $ac_try) 2>&5
7692   ac_status=$?
7693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7694   (exit $ac_status); }; }; then
7695   ac_cv_func_socket=yes
7696 else
7697   echo "$as_me: failed program was:" >&5
7698 sed 's/^/| /' conftest.$ac_ext >&5
7699
7700 ac_cv_func_socket=no
7701 fi
7702 rm -f conftest.err conftest.$ac_objext \
7703       conftest$ac_exeext conftest.$ac_ext
7704 fi
7705 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
7706 echo "${ECHO_T}$ac_cv_func_socket" >&6
7707 if test $ac_cv_func_socket = yes; then
7708   echo "$as_me:$LINENO: result: using libc's socket" >&5
7709 echo "${ECHO_T}using libc's socket" >&6
7710 else
7711
7712 echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
7713 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6
7714 if test "${ac_cv_lib_xnet_socket+set}" = set; then
7715   echo $ECHO_N "(cached) $ECHO_C" >&6
7716 else
7717   ac_check_lib_save_LIBS=$LIBS
7718 LIBS="-lxnet  $LIBS"
7719 cat >conftest.$ac_ext <<_ACEOF
7720 /* confdefs.h.  */
7721 _ACEOF
7722 cat confdefs.h >>conftest.$ac_ext
7723 cat >>conftest.$ac_ext <<_ACEOF
7724 /* end confdefs.h.  */
7725
7726 /* Override any gcc2 internal prototype to avoid an error.  */
7727 #ifdef __cplusplus
7728 extern "C"
7729 #endif
7730 /* We use char because int might match the return type of a gcc2
7731    builtin and then its argument prototype would still apply.  */
7732 char socket ();
7733 int
7734 main ()
7735 {
7736 socket ();
7737   ;
7738   return 0;
7739 }
7740 _ACEOF
7741 rm -f conftest.$ac_objext conftest$ac_exeext
7742 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7743   (eval $ac_link) 2>conftest.er1
7744   ac_status=$?
7745   grep -v '^ *+' conftest.er1 >conftest.err
7746   rm -f conftest.er1
7747   cat conftest.err >&5
7748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7749   (exit $ac_status); } &&
7750          { ac_try='test -z "$ac_c_werror_flag"
7751                          || test ! -s conftest.err'
7752   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7753   (eval $ac_try) 2>&5
7754   ac_status=$?
7755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7756   (exit $ac_status); }; } &&
7757          { ac_try='test -s conftest$ac_exeext'
7758   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7759   (eval $ac_try) 2>&5
7760   ac_status=$?
7761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7762   (exit $ac_status); }; }; then
7763   ac_cv_lib_xnet_socket=yes
7764 else
7765   echo "$as_me: failed program was:" >&5
7766 sed 's/^/| /' conftest.$ac_ext >&5
7767
7768 ac_cv_lib_xnet_socket=no
7769 fi
7770 rm -f conftest.err conftest.$ac_objext \
7771       conftest$ac_exeext conftest.$ac_ext
7772 LIBS=$ac_check_lib_save_LIBS
7773 fi
7774 echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
7775 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6
7776 if test $ac_cv_lib_xnet_socket = yes; then
7777   cat >>confdefs.h <<_ACEOF
7778 #define HAVE_LIBXNET 1
7779 _ACEOF
7780
7781   LIBS="-lxnet $LIBS"
7782
7783 fi
7784
7785
7786 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
7787 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
7788 if test "${ac_cv_lib_socket_socket+set}" = set; then
7789   echo $ECHO_N "(cached) $ECHO_C" >&6
7790 else
7791   ac_check_lib_save_LIBS=$LIBS
7792 LIBS="-lsocket  $LIBS"
7793 cat >conftest.$ac_ext <<_ACEOF
7794 /* confdefs.h.  */
7795 _ACEOF
7796 cat confdefs.h >>conftest.$ac_ext
7797 cat >>conftest.$ac_ext <<_ACEOF
7798 /* end confdefs.h.  */
7799
7800 /* Override any gcc2 internal prototype to avoid an error.  */
7801 #ifdef __cplusplus
7802 extern "C"
7803 #endif
7804 /* We use char because int might match the return type of a gcc2
7805    builtin and then its argument prototype would still apply.  */
7806 char socket ();
7807 int
7808 main ()
7809 {
7810 socket ();
7811   ;
7812   return 0;
7813 }
7814 _ACEOF
7815 rm -f conftest.$ac_objext conftest$ac_exeext
7816 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7817   (eval $ac_link) 2>conftest.er1
7818   ac_status=$?
7819   grep -v '^ *+' conftest.er1 >conftest.err
7820   rm -f conftest.er1
7821   cat conftest.err >&5
7822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7823   (exit $ac_status); } &&
7824          { ac_try='test -z "$ac_c_werror_flag"
7825                          || test ! -s conftest.err'
7826   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7827   (eval $ac_try) 2>&5
7828   ac_status=$?
7829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7830   (exit $ac_status); }; } &&
7831          { ac_try='test -s conftest$ac_exeext'
7832   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7833   (eval $ac_try) 2>&5
7834   ac_status=$?
7835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7836   (exit $ac_status); }; }; then
7837   ac_cv_lib_socket_socket=yes
7838 else
7839   echo "$as_me: failed program was:" >&5
7840 sed 's/^/| /' conftest.$ac_ext >&5
7841
7842 ac_cv_lib_socket_socket=no
7843 fi
7844 rm -f conftest.err conftest.$ac_objext \
7845       conftest$ac_exeext conftest.$ac_ext
7846 LIBS=$ac_check_lib_save_LIBS
7847 fi
7848 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
7849 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
7850 if test $ac_cv_lib_socket_socket = yes; then
7851   cat >>confdefs.h <<_ACEOF
7852 #define HAVE_LIBSOCKET 1
7853 _ACEOF
7854
7855   LIBS="-lsocket $LIBS"
7856
7857 fi
7858
7859
7860 echo "$as_me:$LINENO: checking for socket in -linet" >&5
7861 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
7862 if test "${ac_cv_lib_inet_socket+set}" = set; then
7863   echo $ECHO_N "(cached) $ECHO_C" >&6
7864 else
7865   ac_check_lib_save_LIBS=$LIBS
7866 LIBS="-linet  $LIBS"
7867 cat >conftest.$ac_ext <<_ACEOF
7868 /* confdefs.h.  */
7869 _ACEOF
7870 cat confdefs.h >>conftest.$ac_ext
7871 cat >>conftest.$ac_ext <<_ACEOF
7872 /* end confdefs.h.  */
7873
7874 /* Override any gcc2 internal prototype to avoid an error.  */
7875 #ifdef __cplusplus
7876 extern "C"
7877 #endif
7878 /* We use char because int might match the return type of a gcc2
7879    builtin and then its argument prototype would still apply.  */
7880 char socket ();
7881 int
7882 main ()
7883 {
7884 socket ();
7885   ;
7886   return 0;
7887 }
7888 _ACEOF
7889 rm -f conftest.$ac_objext conftest$ac_exeext
7890 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7891   (eval $ac_link) 2>conftest.er1
7892   ac_status=$?
7893   grep -v '^ *+' conftest.er1 >conftest.err
7894   rm -f conftest.er1
7895   cat conftest.err >&5
7896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7897   (exit $ac_status); } &&
7898          { ac_try='test -z "$ac_c_werror_flag"
7899                          || test ! -s conftest.err'
7900   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7901   (eval $ac_try) 2>&5
7902   ac_status=$?
7903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7904   (exit $ac_status); }; } &&
7905          { ac_try='test -s conftest$ac_exeext'
7906   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7907   (eval $ac_try) 2>&5
7908   ac_status=$?
7909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7910   (exit $ac_status); }; }; then
7911   ac_cv_lib_inet_socket=yes
7912 else
7913   echo "$as_me: failed program was:" >&5
7914 sed 's/^/| /' conftest.$ac_ext >&5
7915
7916 ac_cv_lib_inet_socket=no
7917 fi
7918 rm -f conftest.err conftest.$ac_objext \
7919       conftest$ac_exeext conftest.$ac_ext
7920 LIBS=$ac_check_lib_save_LIBS
7921 fi
7922 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
7923 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
7924 if test $ac_cv_lib_inet_socket = yes; then
7925   cat >>confdefs.h <<_ACEOF
7926 #define HAVE_LIBINET 1
7927 _ACEOF
7928
7929   LIBS="-linet $LIBS"
7930
7931 fi
7932
7933 fi
7934
7935
7936
7937 # -----------------------------------------------------------
7938 # Check whether user wants TCP wrappers support (default off)
7939 # -----------------------------------------------------------
7940 TCPW_MSG="no"
7941
7942 # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
7943 if test "${with_tcp_wrappers+set}" = set; then
7944   withval="$with_tcp_wrappers"
7945
7946     if test "x$withval" != "xno" ; then
7947        saved_LIBS="$LIBS"
7948        LIBS="$saved_LIBS -lwrap"
7949        echo "$as_me:$LINENO: checking for libwrap" >&5
7950 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6
7951        cat >conftest.$ac_ext <<_ACEOF
7952 /* confdefs.h.  */
7953 _ACEOF
7954 cat confdefs.h >>conftest.$ac_ext
7955 cat >>conftest.$ac_ext <<_ACEOF
7956 /* end confdefs.h.  */
7957  #include <tcpd.h>
7958              int deny_severity = 0;
7959              int allow_severity = 0;
7960              struct request_info *req;
7961 int
7962 main ()
7963 {
7964  hosts_access(req);
7965   ;
7966   return 0;
7967 }
7968 _ACEOF
7969 rm -f conftest.$ac_objext conftest$ac_exeext
7970 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7971   (eval $ac_link) 2>conftest.er1
7972   ac_status=$?
7973   grep -v '^ *+' conftest.er1 >conftest.err
7974   rm -f conftest.er1
7975   cat conftest.err >&5
7976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7977   (exit $ac_status); } &&
7978          { ac_try='test -z "$ac_c_werror_flag"
7979                          || test ! -s conftest.err'
7980   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7981   (eval $ac_try) 2>&5
7982   ac_status=$?
7983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7984   (exit $ac_status); }; } &&
7985          { ac_try='test -s conftest$ac_exeext'
7986   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7987   (eval $ac_try) 2>&5
7988   ac_status=$?
7989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7990   (exit $ac_status); }; }; then
7991
7992             echo "$as_me:$LINENO: result: yes" >&5
7993 echo "${ECHO_T}yes" >&6
7994             cat >>confdefs.h <<\_ACEOF
7995 #define HAVE_LIBWRAP 1
7996 _ACEOF
7997
7998             TCPW_MSG="yes"
7999
8000 else
8001   echo "$as_me: failed program was:" >&5
8002 sed 's/^/| /' conftest.$ac_ext >&5
8003
8004
8005             LIBS="$saved_LIBS -lwrap -lnsl"
8006             cat >conftest.$ac_ext <<_ACEOF
8007 /* confdefs.h.  */
8008 _ACEOF
8009 cat confdefs.h >>conftest.$ac_ext
8010 cat >>conftest.$ac_ext <<_ACEOF
8011 /* end confdefs.h.  */
8012  #include <tcpd.h>
8013                  int deny_severity = 0;
8014                  int allow_severity = 0;
8015                  struct request_info *req;
8016 int
8017 main ()
8018 {
8019  hosts_access(req);
8020   ;
8021   return 0;
8022 }
8023 _ACEOF
8024 rm -f conftest.$ac_objext conftest$ac_exeext
8025 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8026   (eval $ac_link) 2>conftest.er1
8027   ac_status=$?
8028   grep -v '^ *+' conftest.er1 >conftest.err
8029   rm -f conftest.er1
8030   cat conftest.err >&5
8031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8032   (exit $ac_status); } &&
8033          { ac_try='test -z "$ac_c_werror_flag"
8034                          || test ! -s conftest.err'
8035   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8036   (eval $ac_try) 2>&5
8037   ac_status=$?
8038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8039   (exit $ac_status); }; } &&
8040          { ac_try='test -s conftest$ac_exeext'
8041   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8042   (eval $ac_try) 2>&5
8043   ac_status=$?
8044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8045   (exit $ac_status); }; }; then
8046
8047                  echo "$as_me:$LINENO: result: yes" >&5
8048 echo "${ECHO_T}yes" >&6
8049                  cat >>confdefs.h <<\_ACEOF
8050 #define HAVE_LIBWRAP 1
8051 _ACEOF
8052
8053                  TCPW_MSG="yes"
8054
8055 else
8056   echo "$as_me: failed program was:" >&5
8057 sed 's/^/| /' conftest.$ac_ext >&5
8058
8059 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
8060 echo "$as_me: error: *** libwrap missing" >&2;}
8061    { (exit 1); exit 1; }; }
8062
8063 fi
8064 rm -f conftest.err conftest.$ac_objext \
8065       conftest$ac_exeext conftest.$ac_ext
8066
8067 fi
8068 rm -f conftest.err conftest.$ac_objext \
8069       conftest$ac_exeext conftest.$ac_ext
8070     fi
8071
8072
8073 fi;
8074
8075 # -----------------------------------------------------------
8076 # Check whether OpenSSL is available
8077 # -----------------------------------------------------------
8078 echo "$as_me:$LINENO: checking for OpenSSL" >&5
8079 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6
8080
8081 # Check whether --with-openssl or --without-openssl was given.
8082 if test "${with_openssl+set}" = set; then
8083   withval="$with_openssl"
8084   with_openssl_directory=${withval}
8085 fi;
8086
8087 if test "x$with_openssl_directory" != "x"; then
8088         OPENSSL_LIBS="-lssl -lcrypto"
8089         OPENSSL_INC=""
8090
8091         if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
8092                 OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
8093                 OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
8094         fi
8095
8096         saved_LIBS="$LIBS"
8097         saved_CFLAGS="$CFLAGS"
8098         LIBS="$saved_LIBS $OPENSSL_LIBS"
8099         CFLAGS="$saved_CFLAGS $OPENSSL_INC"
8100
8101         cat >conftest.$ac_ext <<_ACEOF
8102 /* confdefs.h.  */
8103 _ACEOF
8104 cat confdefs.h >>conftest.$ac_ext
8105 cat >>conftest.$ac_ext <<_ACEOF
8106 /* end confdefs.h.  */
8107  #include <openssl/ssl.h>
8108 int
8109 main ()
8110 {
8111  CRYPTO_set_id_callback(NULL);
8112   ;
8113   return 0;
8114 }
8115 _ACEOF
8116 rm -f conftest.$ac_objext conftest$ac_exeext
8117 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8118   (eval $ac_link) 2>conftest.er1
8119   ac_status=$?
8120   grep -v '^ *+' conftest.er1 >conftest.err
8121   rm -f conftest.er1
8122   cat conftest.err >&5
8123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8124   (exit $ac_status); } &&
8125          { ac_try='test -z "$ac_c_werror_flag"
8126                          || test ! -s conftest.err'
8127   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8128   (eval $ac_try) 2>&5
8129   ac_status=$?
8130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8131   (exit $ac_status); }; } &&
8132          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
8138    support_tls="yes"
8139 else
8140   echo "$as_me: failed program was:" >&5
8141 sed 's/^/| /' conftest.$ac_ext >&5
8142
8143  support_tls="no"
8144
8145 fi
8146 rm -f conftest.err conftest.$ac_objext \
8147       conftest$ac_exeext conftest.$ac_ext
8148
8149         LIBS="$saved_LIBS"
8150         CFLAGS="$saved_CFLAGS"
8151
8152         if test "$support_tls" = "yes"; then
8153
8154 cat >>confdefs.h <<\_ACEOF
8155 #define HAVE_OPENSSL 1
8156 _ACEOF
8157
8158
8159 cat >>confdefs.h <<\_ACEOF
8160 #define HAVE_TLS 1
8161 _ACEOF
8162
8163         fi
8164 else
8165         support_tls="no"
8166         OPENSSL_LIBS=""
8167         OPENSSL_INC=""
8168 fi
8169
8170 echo "$as_me:$LINENO: result: $support_tls" >&5
8171 echo "${ECHO_T}$support_tls" >&6
8172
8173
8174
8175
8176
8177 # ------------------------------------------
8178 # Where to place working dir
8179 # ------------------------------------------
8180 working_dir=`eval echo ${prefix}/var/bacula/working`
8181
8182 # Check whether --with-working-dir or --without-working-dir was given.
8183 if test "${with_working_dir+set}" = set; then
8184   withval="$with_working_dir"
8185
8186        if test "x$withval" != "xno" ; then
8187               working_dir=$withval
8188        fi
8189
8190
8191 fi;
8192
8193
8194
8195
8196 # ------------------------------------------
8197 # Where to place scriptdir (script files)
8198 # ------------------------------------------
8199 scriptdir=`eval echo ${sysconfdir}`
8200
8201 # Check whether --with-scriptdir or --without-scriptdir was given.
8202 if test "${with_scriptdir+set}" = set; then
8203   withval="$with_scriptdir"
8204
8205        if test "x$withval" != "xno" ; then
8206               scriptdir=$withval
8207        fi
8208
8209
8210 fi;
8211
8212
8213
8214
8215 # ------------------------------------------
8216 # Where to send dump email
8217 # ------------------------------------------
8218 dump_email=root@localhost
8219
8220 # Check whether --with-dump-email or --without-dump-email was given.
8221 if test "${with_dump_email+set}" = set; then
8222   withval="$with_dump_email"
8223
8224        if test "x$withval" != "xno" ; then
8225               dump_email=$withval
8226        fi
8227
8228
8229 fi;
8230
8231
8232
8233 # ------------------------------------------
8234 # Where to send job email
8235 # ------------------------------------------
8236 job_email=root@localhost
8237
8238 # Check whether --with-job-email or --without-job-email was given.
8239 if test "${with_job_email+set}" = set; then
8240   withval="$with_job_email"
8241
8242        if test "x$withval" != "xno" ; then
8243               job_email=$withval
8244        fi
8245
8246
8247 fi;
8248
8249
8250
8251 # ------------------------------------------
8252 # Where to find smtp host
8253 # ------------------------------------------
8254 smtp_host=localhost
8255
8256 # Check whether --with-smtp_host or --without-smtp_host was given.
8257 if test "${with_smtp_host+set}" = set; then
8258   withval="$with_smtp_host"
8259
8260        if test "x$withval" != "xno" ; then
8261               smtp_host=$withval
8262        fi
8263
8264
8265 fi;
8266
8267
8268
8269
8270 # ------------------------------------
8271 # Where to place pid files
8272 # ------------------------------------
8273 piddir=/var/run
8274
8275 # Check whether --with-pid-dir or --without-pid-dir was given.
8276 if test "${with_pid_dir+set}" = set; then
8277   withval="$with_pid_dir"
8278
8279         if test "x$withval" != "xno" ; then
8280             piddir=$withval
8281         fi
8282
8283
8284 fi;
8285
8286 cat >>confdefs.h <<_ACEOF
8287 #define _PATH_BACULA_PIDDIR "$piddir"
8288 _ACEOF
8289
8290
8291
8292
8293 # ------------------------------------
8294 # Where to place subsys "lock file"
8295 # ------------------------------------
8296 subsysdir=/var/run/subsys
8297
8298 # Check whether --with-subsys-dir or --without-subsys-dir was given.
8299 if test "${with_subsys_dir+set}" = set; then
8300   withval="$with_subsys_dir"
8301
8302         if test "x$withval" != "xno" ; then
8303             subsysdir=$withval
8304         fi
8305
8306
8307 fi;
8308
8309
8310
8311
8312
8313 # ------------------------------------
8314 # Where to start assigning ports
8315 # ------------------------------------
8316 baseport=9101
8317
8318 # Check whether --with-baseport or --without-baseport was given.
8319 if test "${with_baseport+set}" = set; then
8320   withval="$with_baseport"
8321
8322         if test "x$withval" != "xno" ; then
8323              baseport=$withval
8324         fi
8325
8326
8327 fi;
8328
8329
8330 dir_port=`expr $baseport`
8331 fd_port=`expr $baseport + 1`
8332 sd_port=`expr $fd_port + 1`
8333
8334
8335
8336
8337
8338
8339 # ------------------------------------------
8340 # Generate passwords
8341 # ------------------------------------------
8342 dir_password=
8343
8344 # Check whether --with-dir-password or --without-dir-password was given.
8345 if test "${with_dir_password+set}" = set; then
8346   withval="$with_dir_password"
8347
8348        if test "x$withval" != "xno" ; then
8349            dir_password=$withval
8350        fi
8351
8352
8353 fi;
8354
8355 if test "x$dir_password" = "x" ; then
8356    if test "x$OPENSSL" = "xnone" ; then
8357 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" abcdefghijklmnopqrst | awk '{getline} {print} {exit}'`
8358       key=`autoconf/randpass 33`
8359    else
8360       key=`openssl rand -base64 33`
8361    fi
8362    dir_password=$key
8363 fi
8364
8365 fd_password=
8366
8367 # Check whether --with-fd-password or --without-fd-password was given.
8368 if test "${with_fd_password+set}" = set; then
8369   withval="$with_fd_password"
8370
8371        if test "x$withval" != "xno" ; then
8372            fd_password=$withval
8373        fi
8374
8375
8376 fi;
8377
8378 if test "x$fd_password" = "x" ; then
8379    if test "x$OPENSSL" = "xnone" ; then
8380 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" tsrqponmlkjihgfedcba | awk '{getline} {print} {exit}'`
8381       key=`autoconf/randpass 37`
8382    else
8383       key=`openssl rand -base64 33`
8384    fi
8385    fd_password=$key
8386 fi
8387
8388 sd_password=
8389
8390 # Check whether --with-sd-password or --without-sd-password was given.
8391 if test "${with_sd_password+set}" = set; then
8392   withval="$with_sd_password"
8393
8394        if test "x$withval" != "xno" ; then
8395            sd_password=$withval
8396        fi
8397
8398
8399 fi;
8400
8401 if test "x$sd_password" = "x" ; then
8402    if test "x$OPENSSL" = "xnone" ; then
8403 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" 123456789uvwxyzabcdef | awk '{getline} {print} {exit}'`
8404       key=`autoconf/randpass 41`
8405    else
8406       key=`openssl rand -base64 33`
8407    fi
8408    sd_password=$key
8409 fi
8410
8411 mon_dir_password=
8412
8413 # Check whether --with-mon-dir-password or --without-mon-dir-password was given.
8414 if test "${with_mon_dir_password+set}" = set; then
8415   withval="$with_mon_dir_password"
8416
8417        if test "x$withval" != "xno" ; then
8418            mon_dir_password=$withval
8419        fi
8420
8421
8422 fi;
8423
8424 if test "x$mon_dir_password" = "x" ; then
8425    if test "x$OPENSSL" = "xnone" ; then
8426 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" abcdefghijklmnopqrst | awk '{getline} {print} {exit}'`
8427       key=`autoconf/randpass 33`
8428    else
8429       key=`openssl rand -base64 33`
8430    fi
8431    mon_dir_password=$key
8432 fi
8433
8434 mon_fd_password=
8435
8436 # Check whether --with-mon-fd-password or --without-mon-fd-password was given.
8437 if test "${with_mon_fd_password+set}" = set; then
8438   withval="$with_mon_fd_password"
8439
8440        if test "x$withval" != "xno" ; then
8441            mon_fd_password=$withval
8442        fi
8443
8444
8445 fi;
8446
8447 if test "x$mon_fd_password" = "x" ; then
8448    if test "x$OPENSSL" = "xnone" ; then
8449 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" tsrqponmlkjihgfedcba | awk '{getline} {print} {exit}'`
8450       key=`autoconf/randpass 37`
8451    else
8452       key=`openssl rand -base64 33`
8453    fi
8454    mon_fd_password=$key
8455 fi
8456
8457 mon_sd_password=
8458
8459 # Check whether --with-mon-sd-password or --without-mon-sd-password was given.
8460 if test "${with_mon_sd_password+set}" = set; then
8461   withval="$with_mon_sd_password"
8462
8463        if test "x$withval" != "xno" ; then
8464            mon_sd_password=$withval
8465        fi
8466
8467
8468 fi;
8469
8470 if test "x$mon_sd_password" = "x" ; then
8471    if test "x$OPENSSL" = "xnone" ; then
8472 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" 123456789uvwxyzabcdef | awk '{getline} {print} {exit}'`
8473       key=`autoconf/randpass 41`
8474    else
8475       key=`openssl rand -base64 33`
8476    fi
8477    mon_sd_password=$key
8478 fi
8479
8480
8481
8482
8483
8484
8485
8486
8487 # -------------------------------------------------------------------------
8488 #  Set variables for bimagemgr installation
8489 # -------------------------------------------------------------------------
8490 bimagemgr_cgidir=/var/www/cgi-bin
8491
8492 # Check whether --with-bimagemgr-cgidir or --without-bimagemgr-cgidir was given.
8493 if test "${with_bimagemgr_cgidir+set}" = set; then
8494   withval="$with_bimagemgr_cgidir"
8495
8496        if test "x$withval" != "xno" ; then
8497            bimagemgr_cgidir=$withval
8498        fi
8499
8500
8501 fi;
8502
8503 bimagemgr_docdir=/var/www/html
8504
8505 # Check whether --with-bimagemgr-docdir or --without-bimagemgr-docdir was given.
8506 if test "${with_bimagemgr_docdir+set}" = set; then
8507   withval="$with_bimagemgr_docdir"
8508
8509        if test "x$withval" != "xno" ; then
8510            bimagemgr_docdir=$withval
8511        fi
8512
8513
8514 fi;
8515
8516 bimagemgr_binowner=root
8517
8518 # Check whether --with-bimagemgr-binowner or --without-bimagemgr-binowner was given.
8519 if test "${with_bimagemgr_binowner+set}" = set; then
8520   withval="$with_bimagemgr_binowner"
8521
8522        if test "x$withval" != "xno" ; then
8523            bimagemgr_binowner=$withval
8524        fi
8525
8526
8527 fi;
8528
8529 bimagemgr_bingroup=root
8530
8531 # Check whether --with-bimagemgr-bingroup or --without-bimagemgr-bingroup was given.
8532 if test "${with_bimagemgr_bingroup+set}" = set; then
8533   withval="$with_bimagemgr_bingroup"
8534
8535        if test "x$withval" != "xno" ; then
8536            bimagemgr_bingroup=$withval
8537        fi
8538
8539
8540 fi;
8541
8542 bimagemgr_dataowner=apache
8543
8544 # Check whether --with-bimagemgr-dataowner or --without-bimagemgr-dataowner was given.
8545 if test "${with_bimagemgr_dataowner+set}" = set; then
8546   withval="$with_bimagemgr_dataowner"
8547
8548        if test "x$withval" != "xno" ; then
8549            bimagemgr_dataowner=$withval
8550        fi
8551
8552
8553 fi;
8554
8555 bimagemgr_datagroup=apache
8556
8557 # Check whether --with-bimagemgr-datagroup or --without-bimagemgr-datagroup was given.
8558 if test "${with_bimagemgr_datagroup+set}" = set; then
8559   withval="$with_bimagemgr_datagroup"
8560
8561        if test "x$withval" != "xno" ; then
8562            bimagemgr_datagroup=$withval
8563        fi
8564
8565
8566 fi;
8567
8568
8569
8570
8571
8572
8573
8574
8575 #
8576 # Handle users and groups for each daemon
8577 #
8578 dir_user=
8579
8580 # Check whether --with-dir_user or --without-dir_user was given.
8581 if test "${with_dir_user+set}" = set; then
8582   withval="$with_dir_user"
8583
8584         if test "x$withval" != "x" ; then
8585              dir_user=$withval
8586         fi
8587
8588
8589 fi;
8590
8591 dir_group=
8592
8593 # Check whether --with-dir_group or --without-dir_group was given.
8594 if test "${with_dir_group+set}" = set; then
8595   withval="$with_dir_group"
8596
8597         if test "x$withval" != "x" ; then
8598              dir_group=$withval
8599         fi
8600
8601
8602 fi;
8603
8604 sd_user=
8605
8606 # Check whether --with-sd_user or --without-sd_user was given.
8607 if test "${with_sd_user+set}" = set; then
8608   withval="$with_sd_user"
8609
8610         if test "x$withval" != "x" ; then
8611              sd_user=$withval
8612         fi
8613
8614
8615 fi;
8616
8617 sd_group=
8618
8619 # Check whether --with-sd_group or --without-sd_group was given.
8620 if test "${with_sd_group+set}" = set; then
8621   withval="$with_sd_group"
8622
8623         if test "x$withval" != "x" ; then
8624              sd_group=$withval
8625         fi
8626
8627
8628 fi;
8629
8630 fd_user=
8631
8632 # Check whether --with-fd_user or --without-fd_user was given.
8633 if test "${with_fd_user+set}" = set; then
8634   withval="$with_fd_user"
8635
8636         if test "x$withval" != "x" ; then
8637              fd_user=$withval
8638         fi
8639
8640
8641 fi;
8642
8643 fd_group=
8644
8645 # Check whether --with-fd_group or --without-fd_group was given.
8646 if test "${with_fd_group+set}" = set; then
8647   withval="$with_fd_group"
8648
8649         if test "x$withval" != "x" ; then
8650              fd_group=$withval
8651         fi
8652
8653
8654 fi;
8655
8656
8657
8658
8659
8660
8661
8662
8663
8664
8665
8666 #
8667 # allow setting default executable permissions
8668 #
8669 SBINPERM=0754
8670
8671 # Check whether --with-sbin-perm or --without-sbin-perm was given.
8672 if test "${with_sbin_perm+set}" = set; then
8673   withval="$with_sbin_perm"
8674
8675         if test "x$withval" != "x" ; then
8676             SBINPERM=$withval
8677         fi
8678
8679
8680 fi;
8681
8682
8683
8684 # ------------------------------------------------
8685 # Bacula check for various SQL database engines
8686 # ------------------------------------------------
8687
8688 db_found=no
8689 echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
8690 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6
8691
8692 # Check whether --with-postgresql or --without-postgresql was given.
8693 if test "${with_postgresql+set}" = set; then
8694   withval="$with_postgresql"
8695
8696   if test "$withval" != "no"; then
8697       if test "$db_found" = "yes"; then
8698           echo "$as_me:$LINENO: result: error" >&5
8699 echo "${ECHO_T}error" >&6
8700           { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
8701 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
8702    { (exit 1); exit 1; }; };
8703       fi
8704       if test "$withval" = "yes"; then
8705           if test -f /usr/local/include/libpq-fe.h; then
8706               POSTGRESQL_INCDIR=/usr/local/include
8707               POSTGRESQL_LIBDIR=/usr/local/lib
8708               POSTGRESQL_BINDIR=/usr/local/bin
8709           elif test -f /usr/include/libpq-fe.h; then
8710               POSTGRESQL_INCDIR=/usr/include
8711               POSTGRESQL_LIBDIR=/usr/lib
8712               POSTGRESQL_BINDIR=/usr/bin
8713           elif test -f /usr/include/pgsql/libpq-fe.h; then
8714               POSTGRESQL_INCDIR=/usr/include/pgsql
8715               POSTGRESQL_LIBDIR=/usr/lib/pgsql
8716               POSTGRESQL_BINDIR=/usr/bin
8717           elif test -f /usr/include/postgresql/libpq-fe.h; then
8718               POSTGRESQL_INCDIR=/usr/include/postgresql
8719               POSTGRESQL_LIBDIR=/usr/lib/postgresql
8720               POSTGRESQL_BINDIR=/usr/bin
8721           else
8722               echo "$as_me:$LINENO: result: no" >&5
8723 echo "${ECHO_T}no" >&6
8724               { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
8725 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
8726    { (exit 1); exit 1; }; }
8727           fi
8728       elif test -f $withval/include/libpq-fe.h; then
8729           POSTGRESQL_INCDIR=$withval/include
8730           POSTGRESQL_LIBDIR=$withval/lib
8731           POSTGRESQL_BINDIR=$withval/bin
8732       elif test -f $withval/include/postgresql/libpq-fe.h; then
8733           POSTGRESQL_INCDIR=$withval/include/postgresql
8734           POSTGRESQL_LIBDIR=$withval/lib
8735           POSTGRESQL_BINDIR=$withval/bin
8736       else
8737           echo "$as_me:$LINENO: result: no" >&5
8738 echo "${ECHO_T}no" >&6
8739           { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
8740 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
8741    { (exit 1); exit 1; }; }
8742       fi
8743       POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
8744       echo "$as_me:$LINENO: checking for crypt" >&5
8745 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
8746 if test "${ac_cv_func_crypt+set}" = set; then
8747   echo $ECHO_N "(cached) $ECHO_C" >&6
8748 else
8749   cat >conftest.$ac_ext <<_ACEOF
8750 /* confdefs.h.  */
8751 _ACEOF
8752 cat confdefs.h >>conftest.$ac_ext
8753 cat >>conftest.$ac_ext <<_ACEOF
8754 /* end confdefs.h.  */
8755 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
8756    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8757 #define crypt innocuous_crypt
8758
8759 /* System header to define __stub macros and hopefully few prototypes,
8760     which can conflict with char crypt (); below.
8761     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8762     <limits.h> exists even on freestanding compilers.  */
8763
8764 #ifdef __STDC__
8765 # include <limits.h>
8766 #else
8767 # include <assert.h>
8768 #endif
8769
8770 #undef crypt
8771
8772 /* Override any gcc2 internal prototype to avoid an error.  */
8773 #ifdef __cplusplus
8774 extern "C"
8775 {
8776 #endif
8777 /* We use char because int might match the return type of a gcc2
8778    builtin and then its argument prototype would still apply.  */
8779 char crypt ();
8780 /* The GNU C library defines this for functions which it implements
8781     to always fail with ENOSYS.  Some functions are actually named
8782     something starting with __ and the normal name is an alias.  */
8783 #if defined (__stub_crypt) || defined (__stub___crypt)
8784 choke me
8785 #else
8786 char (*f) () = crypt;
8787 #endif
8788 #ifdef __cplusplus
8789 }
8790 #endif
8791
8792 int
8793 main ()
8794 {
8795 return f != crypt;
8796   ;
8797   return 0;
8798 }
8799 _ACEOF
8800 rm -f conftest.$ac_objext conftest$ac_exeext
8801 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8802   (eval $ac_link) 2>conftest.er1
8803   ac_status=$?
8804   grep -v '^ *+' conftest.er1 >conftest.err
8805   rm -f conftest.er1
8806   cat conftest.err >&5
8807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8808   (exit $ac_status); } &&
8809          { ac_try='test -z "$ac_c_werror_flag"
8810                          || test ! -s conftest.err'
8811   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8812   (eval $ac_try) 2>&5
8813   ac_status=$?
8814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8815   (exit $ac_status); }; } &&
8816          { ac_try='test -s conftest$ac_exeext'
8817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8818   (eval $ac_try) 2>&5
8819   ac_status=$?
8820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8821   (exit $ac_status); }; }; then
8822   ac_cv_func_crypt=yes
8823 else
8824   echo "$as_me: failed program was:" >&5
8825 sed 's/^/| /' conftest.$ac_ext >&5
8826
8827 ac_cv_func_crypt=no
8828 fi
8829 rm -f conftest.err conftest.$ac_objext \
8830       conftest$ac_exeext conftest.$ac_ext
8831 fi
8832 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
8833 echo "${ECHO_T}$ac_cv_func_crypt" >&6
8834 if test $ac_cv_func_crypt = yes; then
8835   :
8836 else
8837   echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
8838 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
8839 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
8840   echo $ECHO_N "(cached) $ECHO_C" >&6
8841 else
8842   ac_check_lib_save_LIBS=$LIBS
8843 LIBS="-lcrypt  $LIBS"
8844 cat >conftest.$ac_ext <<_ACEOF
8845 /* confdefs.h.  */
8846 _ACEOF
8847 cat confdefs.h >>conftest.$ac_ext
8848 cat >>conftest.$ac_ext <<_ACEOF
8849 /* end confdefs.h.  */
8850
8851 /* Override any gcc2 internal prototype to avoid an error.  */
8852 #ifdef __cplusplus
8853 extern "C"
8854 #endif
8855 /* We use char because int might match the return type of a gcc2
8856    builtin and then its argument prototype would still apply.  */
8857 char crypt ();
8858 int
8859 main ()
8860 {
8861 crypt ();
8862   ;
8863   return 0;
8864 }
8865 _ACEOF
8866 rm -f conftest.$ac_objext conftest$ac_exeext
8867 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8868   (eval $ac_link) 2>conftest.er1
8869   ac_status=$?
8870   grep -v '^ *+' conftest.er1 >conftest.err
8871   rm -f conftest.er1
8872   cat conftest.err >&5
8873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8874   (exit $ac_status); } &&
8875          { ac_try='test -z "$ac_c_werror_flag"
8876                          || test ! -s conftest.err'
8877   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8878   (eval $ac_try) 2>&5
8879   ac_status=$?
8880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8881   (exit $ac_status); }; } &&
8882          { ac_try='test -s conftest$ac_exeext'
8883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8884   (eval $ac_try) 2>&5
8885   ac_status=$?
8886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8887   (exit $ac_status); }; }; then
8888   ac_cv_lib_crypt_crypt=yes
8889 else
8890   echo "$as_me: failed program was:" >&5
8891 sed 's/^/| /' conftest.$ac_ext >&5
8892
8893 ac_cv_lib_crypt_crypt=no
8894 fi
8895 rm -f conftest.err conftest.$ac_objext \
8896       conftest$ac_exeext conftest.$ac_ext
8897 LIBS=$ac_check_lib_save_LIBS
8898 fi
8899 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
8900 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
8901 if test $ac_cv_lib_crypt_crypt = yes; then
8902   POSTGRESQL_LFLAGS="-lcrypt $POSTGRESQL_LFLAGS"
8903 fi
8904
8905 fi
8906
8907       SQL_INCLUDE=-I$POSTGRESQL_INCDIR
8908       SQL_LFLAGS=$POSTGRESQL_LFLAGS
8909       SQL_BINDIR=$POSTGRESQL_BINDIR
8910       cat >>confdefs.h <<\_ACEOF
8911 #define HAVE_POSTGRESQL 1
8912 _ACEOF
8913
8914       echo "$as_me:$LINENO: result: yes" >&5
8915 echo "${ECHO_T}yes" >&6
8916       db_found=yes
8917       support_postgresql=yes
8918       db_name=PostgreSQL
8919       DB_NAME=postgresql
8920   else
8921       echo "$as_me:$LINENO: result: no" >&5
8922 echo "${ECHO_T}no" >&6
8923   fi
8924
8925 else
8926
8927   echo "$as_me:$LINENO: result: no" >&5
8928 echo "${ECHO_T}no" >&6
8929
8930 fi;
8931
8932
8933
8934
8935
8936
8937
8938 db_found=no
8939 echo "$as_me:$LINENO: checking for MySQL support" >&5
8940 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6
8941
8942 # Check whether --with-mysql or --without-mysql was given.
8943 if test "${with_mysql+set}" = set; then
8944   withval="$with_mysql"
8945
8946   if test "$withval" != "no"; then
8947         if test "$withval" = "yes"; then
8948                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
8949                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
8950                         MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
8951                         MYSQL_BINDIR=/usr/local/mysql/bin
8952                 elif test -f /usr/include/mysql/mysql.h; then
8953                         MYSQL_INCDIR=/usr/include/mysql
8954                         MYSQL_LIBDIR=/usr/lib/mysql
8955                         MYSQL_BINDIR=/usr/bin
8956                 elif test -f /usr/include/mysql.h; then
8957                         MYSQL_INCDIR=/usr/include
8958                         MYSQL_LIBDIR=/usr/lib
8959                         MYSQL_BINDIR=/usr/bin
8960                 elif test -f /usr/local/include/mysql/mysql.h; then
8961                         MYSQL_INCDIR=/usr/local/include/mysql
8962                         MYSQL_LIBDIR=/usr/local/lib/mysql
8963                         MYSQL_BINDIR=/usr/local/bin
8964                 elif test -f /usr/local/include/mysql.h; then
8965                         MYSQL_INCDIR=/usr/local/include
8966                         MYSQL_LIBDIR=/usr/local/lib
8967                         MYSQL_BINDIR=/usr/local/bin
8968                 else
8969                    echo "$as_me:$LINENO: result: no" >&5
8970 echo "${ECHO_T}no" >&6
8971                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
8972 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
8973    { (exit 1); exit 1; }; }
8974                 fi
8975         else
8976                 if test -f $withval/include/mysql/mysql.h; then
8977                         MYSQL_INCDIR=$withval/include/mysql
8978                         MYSQL_LIBDIR=$withval/lib/mysql
8979                         MYSQL_BINDIR=$withval/bin
8980                 elif test -f $withval/include/mysql.h; then
8981                         MYSQL_INCDIR=$withval/include
8982                         MYSQL_LIBDIR=$withval/lib
8983                         MYSQL_BINDIR=$withval/bin
8984                 else
8985                    echo "$as_me:$LINENO: result: no" >&5
8986 echo "${ECHO_T}no" >&6
8987                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
8988 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
8989    { (exit 1); exit 1; }; }
8990                 fi
8991         fi
8992     SQL_INCLUDE=-I$MYSQL_INCDIR
8993     if test -f $MYSQL_LIBDIR/libmysqlclient_r.a; then
8994        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
8995        cat >>confdefs.h <<\_ACEOF
8996 #define HAVE_THREAD_SAFE_MYSQL 1
8997 _ACEOF
8998
8999     else
9000        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient -lz"
9001     fi
9002     SQL_BINDIR=$MYSQL_BINDIR
9003
9004     cat >>confdefs.h <<\_ACEOF
9005 #define HAVE_MYSQL 1
9006 _ACEOF
9007
9008     echo "$as_me:$LINENO: result: yes" >&5
9009 echo "${ECHO_T}yes" >&6
9010     db_found=yes
9011     support_mysql=yes
9012     db_name=MySQL
9013     DB_NAME=mysql
9014
9015   else
9016         echo "$as_me:$LINENO: result: no" >&5
9017 echo "${ECHO_T}no" >&6
9018   fi
9019
9020
9021 fi;
9022
9023
9024 # Check whether --with-embedded-mysql or --without-embedded-mysql was given.
9025 if test "${with_embedded_mysql+set}" = set; then
9026   withval="$with_embedded_mysql"
9027
9028   if test "$withval" != "no"; then
9029         if test "$withval" = "yes"; then
9030                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
9031                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
9032                         MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
9033                         MYSQL_BINDIR=/usr/local/mysql/bin
9034                 elif test -f /usr/include/mysql/mysql.h; then
9035                         MYSQL_INCDIR=/usr/include/mysql
9036                         MYSQL_LIBDIR=/usr/lib/mysql
9037                         MYSQL_BINDIR=/usr/bin
9038                 elif test -f /usr/include/mysql.h; then
9039                         MYSQL_INCDIR=/usr/include
9040                         MYSQL_LIBDIR=/usr/lib
9041                         MYSQL_BINDIR=/usr/bin
9042                 elif test -f /usr/local/include/mysql/mysql.h; then
9043                         MYSQL_INCDIR=/usr/local/include/mysql
9044                         MYSQL_LIBDIR=/usr/local/lib/mysql
9045                         MYSQL_BINDIR=/usr/local/bin
9046                 elif test -f /usr/local/include/mysql.h; then
9047                         MYSQL_INCDIR=/usr/local/include
9048                         MYSQL_LIBDIR=/usr/local/lib
9049                         MYSQL_BINDIR=/usr/local/bin
9050                 else
9051                    echo "$as_me:$LINENO: result: no" >&5
9052 echo "${ECHO_T}no" >&6
9053                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
9054 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
9055    { (exit 1); exit 1; }; }
9056                 fi
9057         else
9058                 if test -f $withval/include/mysql/mysql.h; then
9059                         MYSQL_INCDIR=$withval/include/mysql
9060                         MYSQL_LIBDIR=$withval/lib/mysql
9061                         MYSQL_BINDIR=$withval/bin
9062                 elif test -f $withval/include/mysql.h; then
9063                         MYSQL_INCDIR=$withval/include
9064                         MYSQL_LIBDIR=$withval/lib
9065                         MYSQL_BINDIR=$withval/bin
9066                 else
9067                    echo "$as_me:$LINENO: result: no" >&5
9068 echo "${ECHO_T}no" >&6
9069                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
9070 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
9071    { (exit 1); exit 1; }; }
9072                 fi
9073         fi
9074     SQL_INCLUDE=-I$MYSQL_INCDIR
9075     SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
9076     SQL_BINDIR=$MYSQL_BINDIR
9077
9078     cat >>confdefs.h <<\_ACEOF
9079 #define HAVE_MYSQL 1
9080 _ACEOF
9081
9082     cat >>confdefs.h <<\_ACEOF
9083 #define HAVE_EMBEDDED_MYSQL 1
9084 _ACEOF
9085
9086     echo "$as_me:$LINENO: result: yes" >&5
9087 echo "${ECHO_T}yes" >&6
9088     db_found=yes
9089     support_mysql=yes
9090     db_name=MySQL
9091     DB_NAME=mysql
9092
9093   else
9094         echo "$as_me:$LINENO: result: no" >&5
9095 echo "${ECHO_T}no" >&6
9096   fi
9097
9098
9099 fi;
9100
9101
9102
9103
9104
9105
9106
9107
9108
9109 db_found=no
9110 echo "$as_me:$LINENO: checking for SQLite3 support" >&5
9111 echo $ECHO_N "checking for SQLite3 support... $ECHO_C" >&6
9112
9113 # Check whether --with-sqlite3 or --without-sqlite3 was given.
9114 if test "${with_sqlite3+set}" = set; then
9115   withval="$with_sqlite3"
9116
9117   if test "$withval" != "no"; then
9118      if test "$withval" = "yes"; then
9119         if test -f /usr/local/include/sqlite3.h; then
9120            SQLITE_INCDIR=/usr/local/include
9121            SQLITE_LIBDIR=/usr/local/lib
9122            SQLITE_BINDIR=/usr/local/bin
9123         elif test -f /usr/include/sqlite3.h; then
9124            SQLITE_INCDIR=/usr/include
9125            SQLITE_LIBDIR=/usr/lib
9126            SQLITE_BINDIR=/usr/bin
9127         elif test -f $prefix/include/sqlite3.h; then
9128            SQLITE_INCDIR=$prefix/include
9129            SQLITE_LIBDIR=$prefix/lib
9130            SQLITE_BINDIR=$prefix/bin
9131         else
9132            echo "$as_me:$LINENO: result: no" >&5
9133 echo "${ECHO_T}no" >&6
9134            { { echo "$as_me:$LINENO: error: Unable to find sqlite3.h in standard locations" >&5
9135 echo "$as_me: error: Unable to find sqlite3.h in standard locations" >&2;}
9136    { (exit 1); exit 1; }; }
9137         fi
9138      else
9139         if test -f $withval/sqlite3.h; then
9140            SQLITE_INCDIR=$withval
9141            SQLITE_LIBDIR=$withval
9142            SQLITE_BINDIR=$withval
9143         elif test -f $withval/include/sqlite3.h; then
9144            SQLITE_INCDIR=$withval/include
9145            SQLITE_LIBDIR=$withval/lib
9146            SQLITE_BINDIR=$withval/bin
9147         else
9148            echo "$as_me:$LINENO: result: no" >&5
9149 echo "${ECHO_T}no" >&6
9150            { { echo "$as_me:$LINENO: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&5
9151 echo "$as_me: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&2;}
9152    { (exit 1); exit 1; }; }
9153         fi
9154      fi
9155      SQL_INCLUDE=-I$SQLITE_INCDIR
9156      SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite3"
9157      SQL_BINDIR=$SQLITE_BINDIR
9158
9159      cat >>confdefs.h <<\_ACEOF
9160 #define HAVE_SQLITE3 1
9161 _ACEOF
9162
9163      echo "$as_me:$LINENO: result: yes" >&5
9164 echo "${ECHO_T}yes" >&6
9165      db_found=yes
9166      support_sqlite3=yes
9167      db_name=SQLite3
9168      DB_NAME=sqlite3
9169
9170   else
9171      echo "$as_me:$LINENO: result: no" >&5
9172 echo "${ECHO_T}no" >&6
9173   fi
9174
9175 else
9176
9177   echo "$as_me:$LINENO: result: no" >&5
9178 echo "${ECHO_T}no" >&6
9179
9180 fi;
9181
9182
9183
9184
9185
9186
9187
9188 db_found=no
9189 echo "$as_me:$LINENO: checking for SQLite support" >&5
9190 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6
9191
9192 # Check whether --with-sqlite or --without-sqlite was given.
9193 if test "${with_sqlite+set}" = set; then
9194   withval="$with_sqlite"
9195
9196   if test "$withval" != "no"; then
9197      if test "$withval" = "yes"; then
9198         if test -f /usr/local/include/sqlite.h; then
9199            SQLITE_INCDIR=/usr/local/include
9200            SQLITE_LIBDIR=/usr/local/lib
9201            SQLITE_BINDIR=/usr/local/bin
9202         elif test -f /usr/include/sqlite.h; then
9203            SQLITE_INCDIR=/usr/include
9204            SQLITE_LIBDIR=/usr/lib
9205            SQLITE_BINDIR=/usr/bin
9206         elif test -f $prefix/include/sqlite.h; then
9207            SQLITE_INCDIR=$prefix/include
9208            SQLITE_LIBDIR=$prefix/lib
9209            SQLITE_BINDIR=$prefix/bin
9210         else
9211            echo "$as_me:$LINENO: result: no" >&5
9212 echo "${ECHO_T}no" >&6
9213            { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
9214 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
9215    { (exit 1); exit 1; }; }
9216         fi
9217      else
9218         if test -f $withval/sqlite.h; then
9219            SQLITE_INCDIR=$withval
9220            SQLITE_LIBDIR=$withval
9221            SQLITE_BINDIR=$withval
9222         elif test -f $withval/include/sqlite.h; then
9223            SQLITE_INCDIR=$withval/include
9224            SQLITE_LIBDIR=$withval/lib
9225            SQLITE_BINDIR=$withval/bin
9226         else
9227            echo "$as_me:$LINENO: result: no" >&5
9228 echo "${ECHO_T}no" >&6
9229            { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
9230 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
9231    { (exit 1); exit 1; }; }
9232         fi
9233      fi
9234      SQL_INCLUDE=-I$SQLITE_INCDIR
9235      SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
9236      SQL_BINDIR=$SQLITE_BINDIR
9237
9238      cat >>confdefs.h <<\_ACEOF
9239 #define HAVE_SQLITE 1
9240 _ACEOF
9241
9242      echo "$as_me:$LINENO: result: yes" >&5
9243 echo "${ECHO_T}yes" >&6
9244      db_found=yes
9245      support_sqlite=yes
9246      db_name=SQLite
9247      DB_NAME=sqlite
9248
9249   else
9250      echo "$as_me:$LINENO: result: no" >&5
9251 echo "${ECHO_T}no" >&6
9252   fi
9253
9254 else
9255
9256   echo "$as_me:$LINENO: result: no" >&5
9257 echo "${ECHO_T}no" >&6
9258
9259 fi;
9260
9261
9262
9263
9264
9265
9266
9267
9268
9269 cat >>confdefs.h <<\_ACEOF
9270 #define PROTOTYPES 1
9271 _ACEOF
9272
9273
9274 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
9275     if test -z "$CCOPTS"; then
9276         CCOPTS='-g -O2 -Wall'
9277     fi
9278     CFLAGS="$CCOPTS"
9279 fi
9280
9281
9282
9283
9284 largefile_support="no"
9285
9286    # Check whether --enable-largefile or --disable-largefile was given.
9287 if test "${enable_largefile+set}" = set; then
9288   enableval="$enable_largefile"
9289
9290 fi;
9291    if test "$enable_largefile" != no; then
9292      if test -n "$ac_tool_prefix"; then
9293   # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
9294 set dummy ${ac_tool_prefix}getconf; ac_word=$2
9295 echo "$as_me:$LINENO: checking for $ac_word" >&5
9296 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9297 if test "${ac_cv_prog_GETCONF+set}" = set; then
9298   echo $ECHO_N "(cached) $ECHO_C" >&6
9299 else
9300   if test -n "$GETCONF"; then
9301   ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
9302 else
9303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9304 for as_dir in $PATH
9305 do
9306   IFS=$as_save_IFS
9307   test -z "$as_dir" && as_dir=.
9308   for ac_exec_ext in '' $ac_executable_extensions; do
9309   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9310     ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
9311     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9312     break 2
9313   fi
9314 done
9315 done
9316
9317 fi
9318 fi
9319 GETCONF=$ac_cv_prog_GETCONF
9320 if test -n "$GETCONF"; then
9321   echo "$as_me:$LINENO: result: $GETCONF" >&5
9322 echo "${ECHO_T}$GETCONF" >&6
9323 else
9324   echo "$as_me:$LINENO: result: no" >&5
9325 echo "${ECHO_T}no" >&6
9326 fi
9327
9328 fi
9329 if test -z "$ac_cv_prog_GETCONF"; then
9330   ac_ct_GETCONF=$GETCONF
9331   # Extract the first word of "getconf", so it can be a program name with args.
9332 set dummy getconf; ac_word=$2
9333 echo "$as_me:$LINENO: checking for $ac_word" >&5
9334 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9335 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
9336   echo $ECHO_N "(cached) $ECHO_C" >&6
9337 else
9338   if test -n "$ac_ct_GETCONF"; then
9339   ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
9340 else
9341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9342 for as_dir in $PATH
9343 do
9344   IFS=$as_save_IFS
9345   test -z "$as_dir" && as_dir=.
9346   for ac_exec_ext in '' $ac_executable_extensions; do
9347   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9348     ac_cv_prog_ac_ct_GETCONF="getconf"
9349     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9350     break 2
9351   fi
9352 done
9353 done
9354
9355 fi
9356 fi
9357 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
9358 if test -n "$ac_ct_GETCONF"; then
9359   echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
9360 echo "${ECHO_T}$ac_ct_GETCONF" >&6
9361 else
9362   echo "$as_me:$LINENO: result: no" >&5
9363 echo "${ECHO_T}no" >&6
9364 fi
9365
9366   GETCONF=$ac_ct_GETCONF
9367 else
9368   GETCONF="$ac_cv_prog_GETCONF"
9369 fi
9370
9371      echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
9372 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6
9373 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
9374   echo $ECHO_N "(cached) $ECHO_C" >&6
9375 else
9376   ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
9377         ac_cv_sys_largefile_CFLAGS=no
9378         case "$host_os" in
9379            # IRIX 6.2 and later require cc -n32.
9380            irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
9381              if test "$GCC" != yes; then
9382                ac_cv_sys_largefile_CFLAGS=-n32
9383              fi
9384              ac_save_CC="$CC"
9385              CC="$CC $ac_cv_sys_largefile_CFLAGS"
9386              cat >conftest.$ac_ext <<_ACEOF
9387 /* confdefs.h.  */
9388 _ACEOF
9389 cat confdefs.h >>conftest.$ac_ext
9390 cat >>conftest.$ac_ext <<_ACEOF
9391 /* end confdefs.h.  */
9392
9393 int
9394 main ()
9395 {
9396
9397   ;
9398   return 0;
9399 }
9400 _ACEOF
9401 rm -f conftest.$ac_objext conftest$ac_exeext
9402 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9403   (eval $ac_link) 2>conftest.er1
9404   ac_status=$?
9405   grep -v '^ *+' conftest.er1 >conftest.err
9406   rm -f conftest.er1
9407   cat conftest.err >&5
9408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9409   (exit $ac_status); } &&
9410          { ac_try='test -z "$ac_c_werror_flag"
9411                          || test ! -s conftest.err'
9412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9413   (eval $ac_try) 2>&5
9414   ac_status=$?
9415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9416   (exit $ac_status); }; } &&
9417          { ac_try='test -s conftest$ac_exeext'
9418   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9419   (eval $ac_try) 2>&5
9420   ac_status=$?
9421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9422   (exit $ac_status); }; }; then
9423   :
9424 else
9425   echo "$as_me: failed program was:" >&5
9426 sed 's/^/| /' conftest.$ac_ext >&5
9427
9428 ac_cv_sys_largefile_CFLAGS=no
9429 fi
9430 rm -f conftest.err conftest.$ac_objext \
9431       conftest$ac_exeext conftest.$ac_ext
9432              CC="$ac_save_CC"
9433            esac
9434       }
9435 fi
9436 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
9437 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6
9438      echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
9439 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6
9440 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
9441   echo $ECHO_N "(cached) $ECHO_C" >&6
9442 else
9443   ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
9444         ac_cv_sys_largefile_LDFLAGS=no
9445
9446       }
9447 fi
9448 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
9449 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6
9450      echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
9451 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6
9452 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
9453   echo $ECHO_N "(cached) $ECHO_C" >&6
9454 else
9455   ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
9456         ac_cv_sys_largefile_LIBS=no
9457
9458       }
9459 fi
9460 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
9461 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6
9462
9463      for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
9464        case "$ac_flag" in
9465        no) ;;
9466        -D_FILE_OFFSET_BITS=*) ;;
9467        -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
9468        -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
9469        -D?* | -I?*)
9470          case "$ac_flag" in
9471    no) ;;
9472    ?*)
9473      case "$CPPFLAGS" in
9474      '') CPPFLAGS="$ac_flag" ;;
9475      *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
9476      esac ;;
9477    esac ;;
9478        *)
9479          case "$ac_flag" in
9480    no) ;;
9481    ?*)
9482      case "$CFLAGS" in
9483      '') CFLAGS="$ac_flag" ;;
9484      *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
9485      esac ;;
9486    esac ;;
9487        esac
9488      done
9489      case "$ac_cv_sys_largefile_LDFLAGS" in
9490    no) ;;
9491    ?*)
9492      case "$LDFLAGS" in
9493      '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
9494      *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
9495      esac ;;
9496    esac
9497      case "$ac_cv_sys_largefile_LIBS" in
9498    no) ;;
9499    ?*)
9500      case "$LIBS" in
9501      '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
9502      *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
9503      esac ;;
9504    esac
9505      echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
9506 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6
9507 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
9508   echo $ECHO_N "(cached) $ECHO_C" >&6
9509 else
9510   ac_cv_sys_file_offset_bits=no
9511       ac_cv_sys_file_offset_bits=64
9512       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
9513         case "$ac_flag" in
9514         -D_FILE_OFFSET_BITS)
9515           ac_cv_sys_file_offset_bits=1 ;;
9516         -D_FILE_OFFSET_BITS=*)
9517           ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
9518         esac
9519       done
9520
9521 fi
9522 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
9523 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
9524    if test "$ac_cv_sys_file_offset_bits" != no; then
9525
9526 cat >>confdefs.h <<_ACEOF
9527 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
9528 _ACEOF
9529
9530    fi
9531      echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
9532 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6
9533 if test "${ac_cv_sys_largefile_source+set}" = set; then
9534   echo $ECHO_N "(cached) $ECHO_C" >&6
9535 else
9536   ac_cv_sys_largefile_source=no
9537       ac_cv_sys_largefile_source=1
9538       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
9539         case "$ac_flag" in
9540         -D_LARGEFILE_SOURCE)
9541           ac_cv_sys_largefile_source=1 ;;
9542         -D_LARGEFILE_SOURCE=*)
9543           ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
9544         esac
9545       done
9546
9547 fi
9548 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
9549 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
9550    if test "$ac_cv_sys_largefile_source" != no; then
9551
9552 cat >>confdefs.h <<_ACEOF
9553 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
9554 _ACEOF
9555
9556    fi
9557      echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
9558 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6
9559 if test "${ac_cv_sys_large_files+set}" = set; then
9560   echo $ECHO_N "(cached) $ECHO_C" >&6
9561 else
9562   ac_cv_sys_large_files=no
9563       ac_cv_sys_large_files=1
9564       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
9565         case "$ac_flag" in
9566         -D_LARGE_FILES)
9567           ac_cv_sys_large_files=1 ;;
9568         -D_LARGE_FILES=*)
9569           ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
9570         esac
9571       done
9572
9573 fi
9574 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
9575 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
9576    if test "$ac_cv_sys_large_files" != no; then
9577
9578 cat >>confdefs.h <<_ACEOF
9579 #define _LARGE_FILES $ac_cv_sys_large_files
9580 _ACEOF
9581
9582    fi
9583    fi
9584
9585
9586
9587 echo "$as_me:$LINENO: checking for X" >&5
9588 echo $ECHO_N "checking for X... $ECHO_C" >&6
9589
9590
9591 # Check whether --with-x or --without-x was given.
9592 if test "${with_x+set}" = set; then
9593   withval="$with_x"
9594
9595 fi;
9596 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9597 if test "x$with_x" = xno; then
9598   # The user explicitly disabled X.
9599   have_x=disabled
9600 else
9601   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
9602     # Both variables are already set.
9603     have_x=yes
9604   else
9605     if test "${ac_cv_have_x+set}" = set; then
9606   echo $ECHO_N "(cached) $ECHO_C" >&6
9607 else
9608   # One or both of the vars are not set, and there is no cached value.
9609 ac_x_includes=no ac_x_libraries=no
9610 rm -fr conftest.dir
9611 if mkdir conftest.dir; then
9612   cd conftest.dir
9613   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
9614   cat >Imakefile <<'_ACEOF'
9615 acfindx:
9616         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
9617 _ACEOF
9618   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
9619     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9620     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
9621     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9622     for ac_extension in a so sl; do
9623       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
9624          test -f $ac_im_libdir/libX11.$ac_extension; then
9625         ac_im_usrlibdir=$ac_im_libdir; break
9626       fi
9627     done
9628     # Screen out bogus values from the imake configuration.  They are
9629     # bogus both because they are the default anyway, and because
9630     # using them would break gcc on systems where it needs fixed includes.
9631     case $ac_im_incroot in
9632         /usr/include) ;;
9633         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9634     esac
9635     case $ac_im_usrlibdir in
9636         /usr/lib | /lib) ;;
9637         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9638     esac
9639   fi
9640   cd ..
9641   rm -fr conftest.dir
9642 fi
9643
9644 # Standard set of common directories for X headers.
9645 # Check X11 before X11Rn because it is often a symlink to the current release.
9646 ac_x_header_dirs='
9647 /usr/X11/include
9648 /usr/X11R6/include
9649 /usr/X11R5/include
9650 /usr/X11R4/include
9651
9652 /usr/include/X11
9653 /usr/include/X11R6
9654 /usr/include/X11R5
9655 /usr/include/X11R4
9656
9657 /usr/local/X11/include
9658 /usr/local/X11R6/include
9659 /usr/local/X11R5/include
9660 /usr/local/X11R4/include
9661
9662 /usr/local/include/X11
9663 /usr/local/include/X11R6
9664 /usr/local/include/X11R5
9665 /usr/local/include/X11R4
9666
9667 /usr/X386/include
9668 /usr/x386/include
9669 /usr/XFree86/include/X11
9670
9671 /usr/include
9672 /usr/local/include
9673 /usr/unsupported/include
9674 /usr/athena/include
9675 /usr/local/x11r5/include
9676 /usr/lpp/Xamples/include
9677
9678 /usr/openwin/include
9679 /usr/openwin/share/include'
9680
9681 if test "$ac_x_includes" = no; then
9682   # Guess where to find include files, by looking for Intrinsic.h.
9683   # First, try using that file with no special directory specified.
9684   cat >conftest.$ac_ext <<_ACEOF
9685 /* confdefs.h.  */
9686 _ACEOF
9687 cat confdefs.h >>conftest.$ac_ext
9688 cat >>conftest.$ac_ext <<_ACEOF
9689 /* end confdefs.h.  */
9690 #include <X11/Intrinsic.h>
9691 _ACEOF
9692 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9693   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9694   ac_status=$?
9695   grep -v '^ *+' conftest.er1 >conftest.err
9696   rm -f conftest.er1
9697   cat conftest.err >&5
9698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9699   (exit $ac_status); } >/dev/null; then
9700   if test -s conftest.err; then
9701     ac_cpp_err=$ac_c_preproc_warn_flag
9702     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9703   else
9704     ac_cpp_err=
9705   fi
9706 else
9707   ac_cpp_err=yes
9708 fi
9709 if test -z "$ac_cpp_err"; then
9710   # We can compile using X headers with no special include directory.
9711 ac_x_includes=
9712 else
9713   echo "$as_me: failed program was:" >&5
9714 sed 's/^/| /' conftest.$ac_ext >&5
9715
9716   for ac_dir in $ac_x_header_dirs; do
9717   if test -r "$ac_dir/X11/Intrinsic.h"; then
9718     ac_x_includes=$ac_dir
9719     break
9720   fi
9721 done
9722 fi
9723 rm -f conftest.err conftest.$ac_ext
9724 fi # $ac_x_includes = no
9725
9726 if test "$ac_x_libraries" = no; then
9727   # Check for the libraries.
9728   # See if we find them without any special options.
9729   # Don't add to $LIBS permanently.
9730   ac_save_LIBS=$LIBS
9731   LIBS="-lXt $LIBS"
9732   cat >conftest.$ac_ext <<_ACEOF
9733 /* confdefs.h.  */
9734 _ACEOF
9735 cat confdefs.h >>conftest.$ac_ext
9736 cat >>conftest.$ac_ext <<_ACEOF
9737 /* end confdefs.h.  */
9738 #include <X11/Intrinsic.h>
9739 int
9740 main ()
9741 {
9742 XtMalloc (0)
9743   ;
9744   return 0;
9745 }
9746 _ACEOF
9747 rm -f conftest.$ac_objext conftest$ac_exeext
9748 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9749   (eval $ac_link) 2>conftest.er1
9750   ac_status=$?
9751   grep -v '^ *+' conftest.er1 >conftest.err
9752   rm -f conftest.er1
9753   cat conftest.err >&5
9754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9755   (exit $ac_status); } &&
9756          { ac_try='test -z "$ac_c_werror_flag"
9757                          || test ! -s conftest.err'
9758   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9759   (eval $ac_try) 2>&5
9760   ac_status=$?
9761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9762   (exit $ac_status); }; } &&
9763          { ac_try='test -s conftest$ac_exeext'
9764   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9765   (eval $ac_try) 2>&5
9766   ac_status=$?
9767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9768   (exit $ac_status); }; }; then
9769   LIBS=$ac_save_LIBS
9770 # We can link X programs with no special library path.
9771 ac_x_libraries=
9772 else
9773   echo "$as_me: failed program was:" >&5
9774 sed 's/^/| /' conftest.$ac_ext >&5
9775
9776 LIBS=$ac_save_LIBS
9777 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9778 do
9779   # Don't even attempt the hair of trying to link an X program!
9780   for ac_extension in a so sl; do
9781     if test -r $ac_dir/libXt.$ac_extension; then
9782       ac_x_libraries=$ac_dir
9783       break 2
9784     fi
9785   done
9786 done
9787 fi
9788 rm -f conftest.err conftest.$ac_objext \
9789       conftest$ac_exeext conftest.$ac_ext
9790 fi # $ac_x_libraries = no
9791
9792 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
9793   # Didn't find X anywhere.  Cache the known absence of X.
9794   ac_cv_have_x="have_x=no"
9795 else
9796   # Record where we found X for the cache.
9797   ac_cv_have_x="have_x=yes \
9798                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
9799 fi
9800 fi
9801
9802   fi
9803   eval "$ac_cv_have_x"
9804 fi # $with_x != no
9805
9806 if test "$have_x" != yes; then
9807   echo "$as_me:$LINENO: result: $have_x" >&5
9808 echo "${ECHO_T}$have_x" >&6
9809   no_x=yes
9810 else
9811   # If each of the values was on the command line, it overrides each guess.
9812   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9813   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9814   # Update the cache value to reflect the command line values.
9815   ac_cv_have_x="have_x=yes \
9816                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
9817   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9818 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
9819 fi
9820
9821 if test "$no_x" = yes; then
9822   # Not all programs may use this symbol, but it does not hurt to define it.
9823
9824 cat >>confdefs.h <<\_ACEOF
9825 #define X_DISPLAY_MISSING 1
9826 _ACEOF
9827
9828   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
9829 else
9830   if test -n "$x_includes"; then
9831     X_CFLAGS="$X_CFLAGS -I$x_includes"
9832   fi
9833
9834   # It would also be nice to do this for all -L options, not just this one.
9835   if test -n "$x_libraries"; then
9836     X_LIBS="$X_LIBS -L$x_libraries"
9837     # For Solaris; some versions of Sun CC require a space after -R and
9838     # others require no space.  Words are not sufficient . . . .
9839     case `(uname -sr) 2>/dev/null` in
9840     "SunOS 5"*)
9841       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
9842 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
9843       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
9844       cat >conftest.$ac_ext <<_ACEOF
9845 /* confdefs.h.  */
9846 _ACEOF
9847 cat confdefs.h >>conftest.$ac_ext
9848 cat >>conftest.$ac_ext <<_ACEOF
9849 /* end confdefs.h.  */
9850
9851 int
9852 main ()
9853 {
9854
9855   ;
9856   return 0;
9857 }
9858 _ACEOF
9859 rm -f conftest.$ac_objext conftest$ac_exeext
9860 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9861   (eval $ac_link) 2>conftest.er1
9862   ac_status=$?
9863   grep -v '^ *+' conftest.er1 >conftest.err
9864   rm -f conftest.er1
9865   cat conftest.err >&5
9866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9867   (exit $ac_status); } &&
9868          { ac_try='test -z "$ac_c_werror_flag"
9869                          || test ! -s conftest.err'
9870   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9871   (eval $ac_try) 2>&5
9872   ac_status=$?
9873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9874   (exit $ac_status); }; } &&
9875          { ac_try='test -s conftest$ac_exeext'
9876   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9877   (eval $ac_try) 2>&5
9878   ac_status=$?
9879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9880   (exit $ac_status); }; }; then
9881   ac_R_nospace=yes
9882 else
9883   echo "$as_me: failed program was:" >&5
9884 sed 's/^/| /' conftest.$ac_ext >&5
9885
9886 ac_R_nospace=no
9887 fi
9888 rm -f conftest.err conftest.$ac_objext \
9889       conftest$ac_exeext conftest.$ac_ext
9890       if test $ac_R_nospace = yes; then
9891         echo "$as_me:$LINENO: result: no" >&5
9892 echo "${ECHO_T}no" >&6
9893         X_LIBS="$X_LIBS -R$x_libraries"
9894       else
9895         LIBS="$ac_xsave_LIBS -R $x_libraries"
9896         cat >conftest.$ac_ext <<_ACEOF
9897 /* confdefs.h.  */
9898 _ACEOF
9899 cat confdefs.h >>conftest.$ac_ext
9900 cat >>conftest.$ac_ext <<_ACEOF
9901 /* end confdefs.h.  */
9902
9903 int
9904 main ()
9905 {
9906
9907   ;
9908   return 0;
9909 }
9910 _ACEOF
9911 rm -f conftest.$ac_objext conftest$ac_exeext
9912 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9913   (eval $ac_link) 2>conftest.er1
9914   ac_status=$?
9915   grep -v '^ *+' conftest.er1 >conftest.err
9916   rm -f conftest.er1
9917   cat conftest.err >&5
9918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9919   (exit $ac_status); } &&
9920          { ac_try='test -z "$ac_c_werror_flag"
9921                          || test ! -s conftest.err'
9922   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9923   (eval $ac_try) 2>&5
9924   ac_status=$?
9925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9926   (exit $ac_status); }; } &&
9927          { ac_try='test -s conftest$ac_exeext'
9928   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9929   (eval $ac_try) 2>&5
9930   ac_status=$?
9931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9932   (exit $ac_status); }; }; then
9933   ac_R_space=yes
9934 else
9935   echo "$as_me: failed program was:" >&5
9936 sed 's/^/| /' conftest.$ac_ext >&5
9937
9938 ac_R_space=no
9939 fi
9940 rm -f conftest.err conftest.$ac_objext \
9941       conftest$ac_exeext conftest.$ac_ext
9942         if test $ac_R_space = yes; then
9943           echo "$as_me:$LINENO: result: yes" >&5
9944 echo "${ECHO_T}yes" >&6
9945           X_LIBS="$X_LIBS -R $x_libraries"
9946         else
9947           echo "$as_me:$LINENO: result: neither works" >&5
9948 echo "${ECHO_T}neither works" >&6
9949         fi
9950       fi
9951       LIBS=$ac_xsave_LIBS
9952     esac
9953   fi
9954
9955   # Check for system-dependent libraries X programs must link with.
9956   # Do this before checking for the system-independent R6 libraries
9957   # (-lICE), since we may need -lsocket or whatever for X linking.
9958
9959   if test "$ISC" = yes; then
9960     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
9961   else
9962     # Martyn Johnson says this is needed for Ultrix, if the X
9963     # libraries were built with DECnet support.  And Karl Berry says
9964     # the Alpha needs dnet_stub (dnet does not exist).
9965     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
9966     cat >conftest.$ac_ext <<_ACEOF
9967 /* confdefs.h.  */
9968 _ACEOF
9969 cat confdefs.h >>conftest.$ac_ext
9970 cat >>conftest.$ac_ext <<_ACEOF
9971 /* end confdefs.h.  */
9972
9973 /* Override any gcc2 internal prototype to avoid an error.  */
9974 #ifdef __cplusplus
9975 extern "C"
9976 #endif
9977 /* We use char because int might match the return type of a gcc2
9978    builtin and then its argument prototype would still apply.  */
9979 char XOpenDisplay ();
9980 int
9981 main ()
9982 {
9983 XOpenDisplay ();
9984   ;
9985   return 0;
9986 }
9987 _ACEOF
9988 rm -f conftest.$ac_objext conftest$ac_exeext
9989 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9990   (eval $ac_link) 2>conftest.er1
9991   ac_status=$?
9992   grep -v '^ *+' conftest.er1 >conftest.err
9993   rm -f conftest.er1
9994   cat conftest.err >&5
9995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9996   (exit $ac_status); } &&
9997          { ac_try='test -z "$ac_c_werror_flag"
9998                          || test ! -s conftest.err'
9999   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10000   (eval $ac_try) 2>&5
10001   ac_status=$?
10002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10003   (exit $ac_status); }; } &&
10004          { ac_try='test -s conftest$ac_exeext'
10005   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10006   (eval $ac_try) 2>&5
10007   ac_status=$?
10008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10009   (exit $ac_status); }; }; then
10010   :
10011 else
10012   echo "$as_me: failed program was:" >&5
10013 sed 's/^/| /' conftest.$ac_ext >&5
10014
10015 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10016 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
10017 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10018   echo $ECHO_N "(cached) $ECHO_C" >&6
10019 else
10020   ac_check_lib_save_LIBS=$LIBS
10021 LIBS="-ldnet  $LIBS"
10022 cat >conftest.$ac_ext <<_ACEOF
10023 /* confdefs.h.  */
10024 _ACEOF
10025 cat confdefs.h >>conftest.$ac_ext
10026 cat >>conftest.$ac_ext <<_ACEOF
10027 /* end confdefs.h.  */
10028
10029 /* Override any gcc2 internal prototype to avoid an error.  */
10030 #ifdef __cplusplus
10031 extern "C"
10032 #endif
10033 /* We use char because int might match the return type of a gcc2
10034    builtin and then its argument prototype would still apply.  */
10035 char dnet_ntoa ();
10036 int
10037 main ()
10038 {
10039 dnet_ntoa ();
10040   ;
10041   return 0;
10042 }
10043 _ACEOF
10044 rm -f conftest.$ac_objext conftest$ac_exeext
10045 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10046   (eval $ac_link) 2>conftest.er1
10047   ac_status=$?
10048   grep -v '^ *+' conftest.er1 >conftest.err
10049   rm -f conftest.er1
10050   cat conftest.err >&5
10051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10052   (exit $ac_status); } &&
10053          { ac_try='test -z "$ac_c_werror_flag"
10054                          || test ! -s conftest.err'
10055   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10056   (eval $ac_try) 2>&5
10057   ac_status=$?
10058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10059   (exit $ac_status); }; } &&
10060          { ac_try='test -s conftest$ac_exeext'
10061   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10062   (eval $ac_try) 2>&5
10063   ac_status=$?
10064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10065   (exit $ac_status); }; }; then
10066   ac_cv_lib_dnet_dnet_ntoa=yes
10067 else
10068   echo "$as_me: failed program was:" >&5
10069 sed 's/^/| /' conftest.$ac_ext >&5
10070
10071 ac_cv_lib_dnet_dnet_ntoa=no
10072 fi
10073 rm -f conftest.err conftest.$ac_objext \
10074       conftest$ac_exeext conftest.$ac_ext
10075 LIBS=$ac_check_lib_save_LIBS
10076 fi
10077 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10078 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
10079 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10080   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
10081 fi
10082
10083     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
10084       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
10085 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
10086 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
10087   echo $ECHO_N "(cached) $ECHO_C" >&6
10088 else
10089   ac_check_lib_save_LIBS=$LIBS
10090 LIBS="-ldnet_stub  $LIBS"
10091 cat >conftest.$ac_ext <<_ACEOF
10092 /* confdefs.h.  */
10093 _ACEOF
10094 cat confdefs.h >>conftest.$ac_ext
10095 cat >>conftest.$ac_ext <<_ACEOF
10096 /* end confdefs.h.  */
10097
10098 /* Override any gcc2 internal prototype to avoid an error.  */
10099 #ifdef __cplusplus
10100 extern "C"
10101 #endif
10102 /* We use char because int might match the return type of a gcc2
10103    builtin and then its argument prototype would still apply.  */
10104 char dnet_ntoa ();
10105 int
10106 main ()
10107 {
10108 dnet_ntoa ();
10109   ;
10110   return 0;
10111 }
10112 _ACEOF
10113 rm -f conftest.$ac_objext conftest$ac_exeext
10114 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10115   (eval $ac_link) 2>conftest.er1
10116   ac_status=$?
10117   grep -v '^ *+' conftest.er1 >conftest.err
10118   rm -f conftest.er1
10119   cat conftest.err >&5
10120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10121   (exit $ac_status); } &&
10122          { ac_try='test -z "$ac_c_werror_flag"
10123                          || test ! -s conftest.err'
10124   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10125   (eval $ac_try) 2>&5
10126   ac_status=$?
10127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10128   (exit $ac_status); }; } &&
10129          { ac_try='test -s conftest$ac_exeext'
10130   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10131   (eval $ac_try) 2>&5
10132   ac_status=$?
10133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10134   (exit $ac_status); }; }; then
10135   ac_cv_lib_dnet_stub_dnet_ntoa=yes
10136 else
10137   echo "$as_me: failed program was:" >&5
10138 sed 's/^/| /' conftest.$ac_ext >&5
10139
10140 ac_cv_lib_dnet_stub_dnet_ntoa=no
10141 fi
10142 rm -f conftest.err conftest.$ac_objext \
10143       conftest$ac_exeext conftest.$ac_ext
10144 LIBS=$ac_check_lib_save_LIBS
10145 fi
10146 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
10147 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
10148 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
10149   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
10150 fi
10151
10152     fi
10153 fi
10154 rm -f conftest.err conftest.$ac_objext \
10155       conftest$ac_exeext conftest.$ac_ext
10156     LIBS="$ac_xsave_LIBS"
10157
10158     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
10159     # to get the SysV transport functions.
10160     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
10161     # needs -lnsl.
10162     # The nsl library prevents programs from opening the X display
10163     # on Irix 5.2, according to T.E. Dickey.
10164     # The functions gethostbyname, getservbyname, and inet_addr are
10165     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
10166     echo "$as_me:$LINENO: checking for gethostbyname" >&5
10167 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
10168 if test "${ac_cv_func_gethostbyname+set}" = set; then
10169   echo $ECHO_N "(cached) $ECHO_C" >&6
10170 else
10171   cat >conftest.$ac_ext <<_ACEOF
10172 /* confdefs.h.  */
10173 _ACEOF
10174 cat confdefs.h >>conftest.$ac_ext
10175 cat >>conftest.$ac_ext <<_ACEOF
10176 /* end confdefs.h.  */
10177 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
10178    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10179 #define gethostbyname innocuous_gethostbyname
10180
10181 /* System header to define __stub macros and hopefully few prototypes,
10182     which can conflict with char gethostbyname (); below.
10183     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10184     <limits.h> exists even on freestanding compilers.  */
10185
10186 #ifdef __STDC__
10187 # include <limits.h>
10188 #else
10189 # include <assert.h>
10190 #endif
10191
10192 #undef gethostbyname
10193
10194 /* Override any gcc2 internal prototype to avoid an error.  */
10195 #ifdef __cplusplus
10196 extern "C"
10197 {
10198 #endif
10199 /* We use char because int might match the return type of a gcc2
10200    builtin and then its argument prototype would still apply.  */
10201 char gethostbyname ();
10202 /* The GNU C library defines this for functions which it implements
10203     to always fail with ENOSYS.  Some functions are actually named
10204     something starting with __ and the normal name is an alias.  */
10205 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
10206 choke me
10207 #else
10208 char (*f) () = gethostbyname;
10209 #endif
10210 #ifdef __cplusplus
10211 }
10212 #endif
10213
10214 int
10215 main ()
10216 {
10217 return f != gethostbyname;
10218   ;
10219   return 0;
10220 }
10221 _ACEOF
10222 rm -f conftest.$ac_objext conftest$ac_exeext
10223 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10224   (eval $ac_link) 2>conftest.er1
10225   ac_status=$?
10226   grep -v '^ *+' conftest.er1 >conftest.err
10227   rm -f conftest.er1
10228   cat conftest.err >&5
10229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10230   (exit $ac_status); } &&
10231          { ac_try='test -z "$ac_c_werror_flag"
10232                          || test ! -s conftest.err'
10233   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10234   (eval $ac_try) 2>&5
10235   ac_status=$?
10236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10237   (exit $ac_status); }; } &&
10238          { ac_try='test -s conftest$ac_exeext'
10239   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10240   (eval $ac_try) 2>&5
10241   ac_status=$?
10242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10243   (exit $ac_status); }; }; then
10244   ac_cv_func_gethostbyname=yes
10245 else
10246   echo "$as_me: failed program was:" >&5
10247 sed 's/^/| /' conftest.$ac_ext >&5
10248
10249 ac_cv_func_gethostbyname=no
10250 fi
10251 rm -f conftest.err conftest.$ac_objext \
10252       conftest$ac_exeext conftest.$ac_ext
10253 fi
10254 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
10255 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
10256
10257     if test $ac_cv_func_gethostbyname = no; then
10258       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
10259 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
10260 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
10261   echo $ECHO_N "(cached) $ECHO_C" >&6
10262 else
10263   ac_check_lib_save_LIBS=$LIBS
10264 LIBS="-lnsl  $LIBS"
10265 cat >conftest.$ac_ext <<_ACEOF
10266 /* confdefs.h.  */
10267 _ACEOF
10268 cat confdefs.h >>conftest.$ac_ext
10269 cat >>conftest.$ac_ext <<_ACEOF
10270 /* end confdefs.h.  */
10271
10272 /* Override any gcc2 internal prototype to avoid an error.  */
10273 #ifdef __cplusplus
10274 extern "C"
10275 #endif
10276 /* We use char because int might match the return type of a gcc2
10277    builtin and then its argument prototype would still apply.  */
10278 char gethostbyname ();
10279 int
10280 main ()
10281 {
10282 gethostbyname ();
10283   ;
10284   return 0;
10285 }
10286 _ACEOF
10287 rm -f conftest.$ac_objext conftest$ac_exeext
10288 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10289   (eval $ac_link) 2>conftest.er1
10290   ac_status=$?
10291   grep -v '^ *+' conftest.er1 >conftest.err
10292   rm -f conftest.er1
10293   cat conftest.err >&5
10294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10295   (exit $ac_status); } &&
10296          { ac_try='test -z "$ac_c_werror_flag"
10297                          || test ! -s conftest.err'
10298   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10299   (eval $ac_try) 2>&5
10300   ac_status=$?
10301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10302   (exit $ac_status); }; } &&
10303          { ac_try='test -s conftest$ac_exeext'
10304   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10305   (eval $ac_try) 2>&5
10306   ac_status=$?
10307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10308   (exit $ac_status); }; }; then
10309   ac_cv_lib_nsl_gethostbyname=yes
10310 else
10311   echo "$as_me: failed program was:" >&5
10312 sed 's/^/| /' conftest.$ac_ext >&5
10313
10314 ac_cv_lib_nsl_gethostbyname=no
10315 fi
10316 rm -f conftest.err conftest.$ac_objext \
10317       conftest$ac_exeext conftest.$ac_ext
10318 LIBS=$ac_check_lib_save_LIBS
10319 fi
10320 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
10321 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
10322 if test $ac_cv_lib_nsl_gethostbyname = yes; then
10323   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
10324 fi
10325
10326       if test $ac_cv_lib_nsl_gethostbyname = no; then
10327         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
10328 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
10329 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
10330   echo $ECHO_N "(cached) $ECHO_C" >&6
10331 else
10332   ac_check_lib_save_LIBS=$LIBS
10333 LIBS="-lbsd  $LIBS"
10334 cat >conftest.$ac_ext <<_ACEOF
10335 /* confdefs.h.  */
10336 _ACEOF
10337 cat confdefs.h >>conftest.$ac_ext
10338 cat >>conftest.$ac_ext <<_ACEOF
10339 /* end confdefs.h.  */
10340
10341 /* Override any gcc2 internal prototype to avoid an error.  */
10342 #ifdef __cplusplus
10343 extern "C"
10344 #endif
10345 /* We use char because int might match the return type of a gcc2
10346    builtin and then its argument prototype would still apply.  */
10347 char gethostbyname ();
10348 int
10349 main ()
10350 {
10351 gethostbyname ();
10352   ;
10353   return 0;
10354 }
10355 _ACEOF
10356 rm -f conftest.$ac_objext conftest$ac_exeext
10357 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10358   (eval $ac_link) 2>conftest.er1
10359   ac_status=$?
10360   grep -v '^ *+' conftest.er1 >conftest.err
10361   rm -f conftest.er1
10362   cat conftest.err >&5
10363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10364   (exit $ac_status); } &&
10365          { ac_try='test -z "$ac_c_werror_flag"
10366                          || test ! -s conftest.err'
10367   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10368   (eval $ac_try) 2>&5
10369   ac_status=$?
10370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10371   (exit $ac_status); }; } &&
10372          { ac_try='test -s conftest$ac_exeext'
10373   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10374   (eval $ac_try) 2>&5
10375   ac_status=$?
10376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10377   (exit $ac_status); }; }; then
10378   ac_cv_lib_bsd_gethostbyname=yes
10379 else
10380   echo "$as_me: failed program was:" >&5
10381 sed 's/^/| /' conftest.$ac_ext >&5
10382
10383 ac_cv_lib_bsd_gethostbyname=no
10384 fi
10385 rm -f conftest.err conftest.$ac_objext \
10386       conftest$ac_exeext conftest.$ac_ext
10387 LIBS=$ac_check_lib_save_LIBS
10388 fi
10389 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
10390 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
10391 if test $ac_cv_lib_bsd_gethostbyname = yes; then
10392   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
10393 fi
10394
10395       fi
10396     fi
10397
10398     # lieder@skyler.mavd.honeywell.com says without -lsocket,
10399     # socket/setsockopt and other routines are undefined under SCO ODT
10400     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
10401     # on later versions), says Simon Leinen: it contains gethostby*
10402     # variants that don't use the name server (or something).  -lsocket
10403     # must be given before -lnsl if both are needed.  We assume that
10404     # if connect needs -lnsl, so does gethostbyname.
10405     echo "$as_me:$LINENO: checking for connect" >&5
10406 echo $ECHO_N "checking for connect... $ECHO_C" >&6
10407 if test "${ac_cv_func_connect+set}" = set; then
10408   echo $ECHO_N "(cached) $ECHO_C" >&6
10409 else
10410   cat >conftest.$ac_ext <<_ACEOF
10411 /* confdefs.h.  */
10412 _ACEOF
10413 cat confdefs.h >>conftest.$ac_ext
10414 cat >>conftest.$ac_ext <<_ACEOF
10415 /* end confdefs.h.  */
10416 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
10417    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10418 #define connect innocuous_connect
10419
10420 /* System header to define __stub macros and hopefully few prototypes,
10421     which can conflict with char connect (); below.
10422     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10423     <limits.h> exists even on freestanding compilers.  */
10424
10425 #ifdef __STDC__
10426 # include <limits.h>
10427 #else
10428 # include <assert.h>
10429 #endif
10430
10431 #undef connect
10432
10433 /* Override any gcc2 internal prototype to avoid an error.  */
10434 #ifdef __cplusplus
10435 extern "C"
10436 {
10437 #endif
10438 /* We use char because int might match the return type of a gcc2
10439    builtin and then its argument prototype would still apply.  */
10440 char connect ();
10441 /* The GNU C library defines this for functions which it implements
10442     to always fail with ENOSYS.  Some functions are actually named
10443     something starting with __ and the normal name is an alias.  */
10444 #if defined (__stub_connect) || defined (__stub___connect)
10445 choke me
10446 #else
10447 char (*f) () = connect;
10448 #endif
10449 #ifdef __cplusplus
10450 }
10451 #endif
10452
10453 int
10454 main ()
10455 {
10456 return f != connect;
10457   ;
10458   return 0;
10459 }
10460 _ACEOF
10461 rm -f conftest.$ac_objext conftest$ac_exeext
10462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10463   (eval $ac_link) 2>conftest.er1
10464   ac_status=$?
10465   grep -v '^ *+' conftest.er1 >conftest.err
10466   rm -f conftest.er1
10467   cat conftest.err >&5
10468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10469   (exit $ac_status); } &&
10470          { ac_try='test -z "$ac_c_werror_flag"
10471                          || test ! -s conftest.err'
10472   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10473   (eval $ac_try) 2>&5
10474   ac_status=$?
10475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10476   (exit $ac_status); }; } &&
10477          { ac_try='test -s conftest$ac_exeext'
10478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10479   (eval $ac_try) 2>&5
10480   ac_status=$?
10481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10482   (exit $ac_status); }; }; then
10483   ac_cv_func_connect=yes
10484 else
10485   echo "$as_me: failed program was:" >&5
10486 sed 's/^/| /' conftest.$ac_ext >&5
10487
10488 ac_cv_func_connect=no
10489 fi
10490 rm -f conftest.err conftest.$ac_objext \
10491       conftest$ac_exeext conftest.$ac_ext
10492 fi
10493 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
10494 echo "${ECHO_T}$ac_cv_func_connect" >&6
10495
10496     if test $ac_cv_func_connect = no; then
10497       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
10498 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
10499 if test "${ac_cv_lib_socket_connect+set}" = set; then
10500   echo $ECHO_N "(cached) $ECHO_C" >&6
10501 else
10502   ac_check_lib_save_LIBS=$LIBS
10503 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
10504 cat >conftest.$ac_ext <<_ACEOF
10505 /* confdefs.h.  */
10506 _ACEOF
10507 cat confdefs.h >>conftest.$ac_ext
10508 cat >>conftest.$ac_ext <<_ACEOF
10509 /* end confdefs.h.  */
10510
10511 /* Override any gcc2 internal prototype to avoid an error.  */
10512 #ifdef __cplusplus
10513 extern "C"
10514 #endif
10515 /* We use char because int might match the return type of a gcc2
10516    builtin and then its argument prototype would still apply.  */
10517 char connect ();
10518 int
10519 main ()
10520 {
10521 connect ();
10522   ;
10523   return 0;
10524 }
10525 _ACEOF
10526 rm -f conftest.$ac_objext conftest$ac_exeext
10527 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10528   (eval $ac_link) 2>conftest.er1
10529   ac_status=$?
10530   grep -v '^ *+' conftest.er1 >conftest.err
10531   rm -f conftest.er1
10532   cat conftest.err >&5
10533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10534   (exit $ac_status); } &&
10535          { ac_try='test -z "$ac_c_werror_flag"
10536                          || test ! -s conftest.err'
10537   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10538   (eval $ac_try) 2>&5
10539   ac_status=$?
10540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10541   (exit $ac_status); }; } &&
10542          { ac_try='test -s conftest$ac_exeext'
10543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10544   (eval $ac_try) 2>&5
10545   ac_status=$?
10546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10547   (exit $ac_status); }; }; then
10548   ac_cv_lib_socket_connect=yes
10549 else
10550   echo "$as_me: failed program was:" >&5
10551 sed 's/^/| /' conftest.$ac_ext >&5
10552
10553 ac_cv_lib_socket_connect=no
10554 fi
10555 rm -f conftest.err conftest.$ac_objext \
10556       conftest$ac_exeext conftest.$ac_ext
10557 LIBS=$ac_check_lib_save_LIBS
10558 fi
10559 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
10560 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
10561 if test $ac_cv_lib_socket_connect = yes; then
10562   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
10563 fi
10564
10565     fi
10566
10567     # Guillermo Gomez says -lposix is necessary on A/UX.
10568     echo "$as_me:$LINENO: checking for remove" >&5
10569 echo $ECHO_N "checking for remove... $ECHO_C" >&6
10570 if test "${ac_cv_func_remove+set}" = set; then
10571   echo $ECHO_N "(cached) $ECHO_C" >&6
10572 else
10573   cat >conftest.$ac_ext <<_ACEOF
10574 /* confdefs.h.  */
10575 _ACEOF
10576 cat confdefs.h >>conftest.$ac_ext
10577 cat >>conftest.$ac_ext <<_ACEOF
10578 /* end confdefs.h.  */
10579 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
10580    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10581 #define remove innocuous_remove
10582
10583 /* System header to define __stub macros and hopefully few prototypes,
10584     which can conflict with char remove (); below.
10585     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10586     <limits.h> exists even on freestanding compilers.  */
10587
10588 #ifdef __STDC__
10589 # include <limits.h>
10590 #else
10591 # include <assert.h>
10592 #endif
10593
10594 #undef remove
10595
10596 /* Override any gcc2 internal prototype to avoid an error.  */
10597 #ifdef __cplusplus
10598 extern "C"
10599 {
10600 #endif
10601 /* We use char because int might match the return type of a gcc2
10602    builtin and then its argument prototype would still apply.  */
10603 char remove ();
10604 /* The GNU C library defines this for functions which it implements
10605     to always fail with ENOSYS.  Some functions are actually named
10606     something starting with __ and the normal name is an alias.  */
10607 #if defined (__stub_remove) || defined (__stub___remove)
10608 choke me
10609 #else
10610 char (*f) () = remove;
10611 #endif
10612 #ifdef __cplusplus
10613 }
10614 #endif
10615
10616 int
10617 main ()
10618 {
10619 return f != remove;
10620   ;
10621   return 0;
10622 }
10623 _ACEOF
10624 rm -f conftest.$ac_objext conftest$ac_exeext
10625 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10626   (eval $ac_link) 2>conftest.er1
10627   ac_status=$?
10628   grep -v '^ *+' conftest.er1 >conftest.err
10629   rm -f conftest.er1
10630   cat conftest.err >&5
10631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10632   (exit $ac_status); } &&
10633          { ac_try='test -z "$ac_c_werror_flag"
10634                          || test ! -s conftest.err'
10635   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10636   (eval $ac_try) 2>&5
10637   ac_status=$?
10638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10639   (exit $ac_status); }; } &&
10640          { ac_try='test -s conftest$ac_exeext'
10641   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10642   (eval $ac_try) 2>&5
10643   ac_status=$?
10644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10645   (exit $ac_status); }; }; then
10646   ac_cv_func_remove=yes
10647 else
10648   echo "$as_me: failed program was:" >&5
10649 sed 's/^/| /' conftest.$ac_ext >&5
10650
10651 ac_cv_func_remove=no
10652 fi
10653 rm -f conftest.err conftest.$ac_objext \
10654       conftest$ac_exeext conftest.$ac_ext
10655 fi
10656 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
10657 echo "${ECHO_T}$ac_cv_func_remove" >&6
10658
10659     if test $ac_cv_func_remove = no; then
10660       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
10661 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
10662 if test "${ac_cv_lib_posix_remove+set}" = set; then
10663   echo $ECHO_N "(cached) $ECHO_C" >&6
10664 else
10665   ac_check_lib_save_LIBS=$LIBS
10666 LIBS="-lposix  $LIBS"
10667 cat >conftest.$ac_ext <<_ACEOF
10668 /* confdefs.h.  */
10669 _ACEOF
10670 cat confdefs.h >>conftest.$ac_ext
10671 cat >>conftest.$ac_ext <<_ACEOF
10672 /* end confdefs.h.  */
10673
10674 /* Override any gcc2 internal prototype to avoid an error.  */
10675 #ifdef __cplusplus
10676 extern "C"
10677 #endif
10678 /* We use char because int might match the return type of a gcc2
10679    builtin and then its argument prototype would still apply.  */
10680 char remove ();
10681 int
10682 main ()
10683 {
10684 remove ();
10685   ;
10686   return 0;
10687 }
10688 _ACEOF
10689 rm -f conftest.$ac_objext conftest$ac_exeext
10690 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10691   (eval $ac_link) 2>conftest.er1
10692   ac_status=$?
10693   grep -v '^ *+' conftest.er1 >conftest.err
10694   rm -f conftest.er1
10695   cat conftest.err >&5
10696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10697   (exit $ac_status); } &&
10698          { ac_try='test -z "$ac_c_werror_flag"
10699                          || test ! -s conftest.err'
10700   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10701   (eval $ac_try) 2>&5
10702   ac_status=$?
10703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10704   (exit $ac_status); }; } &&
10705          { ac_try='test -s conftest$ac_exeext'
10706   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10707   (eval $ac_try) 2>&5
10708   ac_status=$?
10709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10710   (exit $ac_status); }; }; then
10711   ac_cv_lib_posix_remove=yes
10712 else
10713   echo "$as_me: failed program was:" >&5
10714 sed 's/^/| /' conftest.$ac_ext >&5
10715
10716 ac_cv_lib_posix_remove=no
10717 fi
10718 rm -f conftest.err conftest.$ac_objext \
10719       conftest$ac_exeext conftest.$ac_ext
10720 LIBS=$ac_check_lib_save_LIBS
10721 fi
10722 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
10723 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
10724 if test $ac_cv_lib_posix_remove = yes; then
10725   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
10726 fi
10727
10728     fi
10729
10730     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
10731     echo "$as_me:$LINENO: checking for shmat" >&5
10732 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
10733 if test "${ac_cv_func_shmat+set}" = set; then
10734   echo $ECHO_N "(cached) $ECHO_C" >&6
10735 else
10736   cat >conftest.$ac_ext <<_ACEOF
10737 /* confdefs.h.  */
10738 _ACEOF
10739 cat confdefs.h >>conftest.$ac_ext
10740 cat >>conftest.$ac_ext <<_ACEOF
10741 /* end confdefs.h.  */
10742 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
10743    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10744 #define shmat innocuous_shmat
10745
10746 /* System header to define __stub macros and hopefully few prototypes,
10747     which can conflict with char shmat (); below.
10748     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10749     <limits.h> exists even on freestanding compilers.  */
10750
10751 #ifdef __STDC__
10752 # include <limits.h>
10753 #else
10754 # include <assert.h>
10755 #endif
10756
10757 #undef shmat
10758
10759 /* Override any gcc2 internal prototype to avoid an error.  */
10760 #ifdef __cplusplus
10761 extern "C"
10762 {
10763 #endif
10764 /* We use char because int might match the return type of a gcc2
10765    builtin and then its argument prototype would still apply.  */
10766 char shmat ();
10767 /* The GNU C library defines this for functions which it implements
10768     to always fail with ENOSYS.  Some functions are actually named
10769     something starting with __ and the normal name is an alias.  */
10770 #if defined (__stub_shmat) || defined (__stub___shmat)
10771 choke me
10772 #else
10773 char (*f) () = shmat;
10774 #endif
10775 #ifdef __cplusplus
10776 }
10777 #endif
10778
10779 int
10780 main ()
10781 {
10782 return f != shmat;
10783   ;
10784   return 0;
10785 }
10786 _ACEOF
10787 rm -f conftest.$ac_objext conftest$ac_exeext
10788 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10789   (eval $ac_link) 2>conftest.er1
10790   ac_status=$?
10791   grep -v '^ *+' conftest.er1 >conftest.err
10792   rm -f conftest.er1
10793   cat conftest.err >&5
10794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10795   (exit $ac_status); } &&
10796          { ac_try='test -z "$ac_c_werror_flag"
10797                          || test ! -s conftest.err'
10798   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10799   (eval $ac_try) 2>&5
10800   ac_status=$?
10801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10802   (exit $ac_status); }; } &&
10803          { ac_try='test -s conftest$ac_exeext'
10804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10805   (eval $ac_try) 2>&5
10806   ac_status=$?
10807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10808   (exit $ac_status); }; }; then
10809   ac_cv_func_shmat=yes
10810 else
10811   echo "$as_me: failed program was:" >&5
10812 sed 's/^/| /' conftest.$ac_ext >&5
10813
10814 ac_cv_func_shmat=no
10815 fi
10816 rm -f conftest.err conftest.$ac_objext \
10817       conftest$ac_exeext conftest.$ac_ext
10818 fi
10819 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
10820 echo "${ECHO_T}$ac_cv_func_shmat" >&6
10821
10822     if test $ac_cv_func_shmat = no; then
10823       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
10824 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
10825 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
10826   echo $ECHO_N "(cached) $ECHO_C" >&6
10827 else
10828   ac_check_lib_save_LIBS=$LIBS
10829 LIBS="-lipc  $LIBS"
10830 cat >conftest.$ac_ext <<_ACEOF
10831 /* confdefs.h.  */
10832 _ACEOF
10833 cat confdefs.h >>conftest.$ac_ext
10834 cat >>conftest.$ac_ext <<_ACEOF
10835 /* end confdefs.h.  */
10836
10837 /* Override any gcc2 internal prototype to avoid an error.  */
10838 #ifdef __cplusplus
10839 extern "C"
10840 #endif
10841 /* We use char because int might match the return type of a gcc2
10842    builtin and then its argument prototype would still apply.  */
10843 char shmat ();
10844 int
10845 main ()
10846 {
10847 shmat ();
10848   ;
10849   return 0;
10850 }
10851 _ACEOF
10852 rm -f conftest.$ac_objext conftest$ac_exeext
10853 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10854   (eval $ac_link) 2>conftest.er1
10855   ac_status=$?
10856   grep -v '^ *+' conftest.er1 >conftest.err
10857   rm -f conftest.er1
10858   cat conftest.err >&5
10859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10860   (exit $ac_status); } &&
10861          { ac_try='test -z "$ac_c_werror_flag"
10862                          || test ! -s conftest.err'
10863   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10864   (eval $ac_try) 2>&5
10865   ac_status=$?
10866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10867   (exit $ac_status); }; } &&
10868          { ac_try='test -s conftest$ac_exeext'
10869   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10870   (eval $ac_try) 2>&5
10871   ac_status=$?
10872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10873   (exit $ac_status); }; }; then
10874   ac_cv_lib_ipc_shmat=yes
10875 else
10876   echo "$as_me: failed program was:" >&5
10877 sed 's/^/| /' conftest.$ac_ext >&5
10878
10879 ac_cv_lib_ipc_shmat=no
10880 fi
10881 rm -f conftest.err conftest.$ac_objext \
10882       conftest$ac_exeext conftest.$ac_ext
10883 LIBS=$ac_check_lib_save_LIBS
10884 fi
10885 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
10886 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
10887 if test $ac_cv_lib_ipc_shmat = yes; then
10888   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
10889 fi
10890
10891     fi
10892   fi
10893
10894   # Check for libraries that X11R6 Xt/Xaw programs need.
10895   ac_save_LDFLAGS=$LDFLAGS
10896   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
10897   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
10898   # check for ICE first), but we must link in the order -lSM -lICE or
10899   # we get undefined symbols.  So assume we have SM if we have ICE.
10900   # These have to be linked with before -lX11, unlike the other
10901   # libraries we check for below, so use a different variable.
10902   # John Interrante, Karl Berry
10903   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
10904 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
10905 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
10906   echo $ECHO_N "(cached) $ECHO_C" >&6
10907 else
10908   ac_check_lib_save_LIBS=$LIBS
10909 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
10910 cat >conftest.$ac_ext <<_ACEOF
10911 /* confdefs.h.  */
10912 _ACEOF
10913 cat confdefs.h >>conftest.$ac_ext
10914 cat >>conftest.$ac_ext <<_ACEOF
10915 /* end confdefs.h.  */
10916
10917 /* Override any gcc2 internal prototype to avoid an error.  */
10918 #ifdef __cplusplus
10919 extern "C"
10920 #endif
10921 /* We use char because int might match the return type of a gcc2
10922    builtin and then its argument prototype would still apply.  */
10923 char IceConnectionNumber ();
10924 int
10925 main ()
10926 {
10927 IceConnectionNumber ();
10928   ;
10929   return 0;
10930 }
10931 _ACEOF
10932 rm -f conftest.$ac_objext conftest$ac_exeext
10933 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10934   (eval $ac_link) 2>conftest.er1
10935   ac_status=$?
10936   grep -v '^ *+' conftest.er1 >conftest.err
10937   rm -f conftest.er1
10938   cat conftest.err >&5
10939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10940   (exit $ac_status); } &&
10941          { ac_try='test -z "$ac_c_werror_flag"
10942                          || test ! -s conftest.err'
10943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10944   (eval $ac_try) 2>&5
10945   ac_status=$?
10946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10947   (exit $ac_status); }; } &&
10948          { ac_try='test -s conftest$ac_exeext'
10949   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10950   (eval $ac_try) 2>&5
10951   ac_status=$?
10952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10953   (exit $ac_status); }; }; then
10954   ac_cv_lib_ICE_IceConnectionNumber=yes
10955 else
10956   echo "$as_me: failed program was:" >&5
10957 sed 's/^/| /' conftest.$ac_ext >&5
10958
10959 ac_cv_lib_ICE_IceConnectionNumber=no
10960 fi
10961 rm -f conftest.err conftest.$ac_objext \
10962       conftest$ac_exeext conftest.$ac_ext
10963 LIBS=$ac_check_lib_save_LIBS
10964 fi
10965 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
10966 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
10967 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
10968   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
10969 fi
10970
10971   LDFLAGS=$ac_save_LDFLAGS
10972
10973 fi
10974
10975
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003 for ac_header in \
11004         assert.h \
11005         fcntl.h \
11006         grp.h \
11007         pwd.h \
11008         libc.h \
11009         limits.h \
11010         stdarg.h \
11011         stdlib.h \
11012         stdint.h \
11013         string.h \
11014         termios.h \
11015         termcap.h \
11016         term.h \
11017         unistd.h \
11018         sys/bitypes.h \
11019         sys/byteorder.h \
11020         sys/ioctl.h \
11021         sys/select.h \
11022         sys/sockio.h \
11023         sys/time.h \
11024         sys/socket.h \
11025         arpa/nameser.h \
11026         resolv.h \
11027         mtio.h \
11028         sys/mtio.h \
11029         sys/tape.h \
11030         regex.h \
11031
11032 do
11033 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11034 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11035   echo "$as_me:$LINENO: checking for $ac_header" >&5
11036 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11037 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11038   echo $ECHO_N "(cached) $ECHO_C" >&6
11039 fi
11040 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11041 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11042 else
11043   # Is the header compilable?
11044 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11045 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11046 cat >conftest.$ac_ext <<_ACEOF
11047 /* confdefs.h.  */
11048 _ACEOF
11049 cat confdefs.h >>conftest.$ac_ext
11050 cat >>conftest.$ac_ext <<_ACEOF
11051 /* end confdefs.h.  */
11052 $ac_includes_default
11053 #include <$ac_header>
11054 _ACEOF
11055 rm -f conftest.$ac_objext
11056 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11057   (eval $ac_compile) 2>conftest.er1
11058   ac_status=$?
11059   grep -v '^ *+' conftest.er1 >conftest.err
11060   rm -f conftest.er1
11061   cat conftest.err >&5
11062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11063   (exit $ac_status); } &&
11064          { ac_try='test -z "$ac_c_werror_flag"
11065                          || test ! -s conftest.err'
11066   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11067   (eval $ac_try) 2>&5
11068   ac_status=$?
11069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11070   (exit $ac_status); }; } &&
11071          { ac_try='test -s conftest.$ac_objext'
11072   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11073   (eval $ac_try) 2>&5
11074   ac_status=$?
11075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11076   (exit $ac_status); }; }; then
11077   ac_header_compiler=yes
11078 else
11079   echo "$as_me: failed program was:" >&5
11080 sed 's/^/| /' conftest.$ac_ext >&5
11081
11082 ac_header_compiler=no
11083 fi
11084 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11085 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11086 echo "${ECHO_T}$ac_header_compiler" >&6
11087
11088 # Is the header present?
11089 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11090 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11091 cat >conftest.$ac_ext <<_ACEOF
11092 /* confdefs.h.  */
11093 _ACEOF
11094 cat confdefs.h >>conftest.$ac_ext
11095 cat >>conftest.$ac_ext <<_ACEOF
11096 /* end confdefs.h.  */
11097 #include <$ac_header>
11098 _ACEOF
11099 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11100   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11101   ac_status=$?
11102   grep -v '^ *+' conftest.er1 >conftest.err
11103   rm -f conftest.er1
11104   cat conftest.err >&5
11105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11106   (exit $ac_status); } >/dev/null; then
11107   if test -s conftest.err; then
11108     ac_cpp_err=$ac_c_preproc_warn_flag
11109     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11110   else
11111     ac_cpp_err=
11112   fi
11113 else
11114   ac_cpp_err=yes
11115 fi
11116 if test -z "$ac_cpp_err"; then
11117   ac_header_preproc=yes
11118 else
11119   echo "$as_me: failed program was:" >&5
11120 sed 's/^/| /' conftest.$ac_ext >&5
11121
11122   ac_header_preproc=no
11123 fi
11124 rm -f conftest.err conftest.$ac_ext
11125 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11126 echo "${ECHO_T}$ac_header_preproc" >&6
11127
11128 # So?  What about this header?
11129 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11130   yes:no: )
11131     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11132 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11133     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11134 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11135     ac_header_preproc=yes
11136     ;;
11137   no:yes:* )
11138     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11139 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11140     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11141 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11142     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11143 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11144     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11145 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11146     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11147 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11148     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11149 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11150     (
11151       cat <<\_ASBOX
11152 ## ------------------------------------------ ##
11153 ## Report this to the AC_PACKAGE_NAME lists.  ##
11154 ## ------------------------------------------ ##
11155 _ASBOX
11156     ) |
11157       sed "s/^/$as_me: WARNING:     /" >&2
11158     ;;
11159 esac
11160 echo "$as_me:$LINENO: checking for $ac_header" >&5
11161 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11162 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11163   echo $ECHO_N "(cached) $ECHO_C" >&6
11164 else
11165   eval "$as_ac_Header=\$ac_header_preproc"
11166 fi
11167 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11168 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11169
11170 fi
11171 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11172   cat >>confdefs.h <<_ACEOF
11173 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11174 _ACEOF
11175
11176 fi
11177
11178 done
11179
11180 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
11181 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
11182 if test "${ac_cv_header_stdc+set}" = set; then
11183   echo $ECHO_N "(cached) $ECHO_C" >&6
11184 else
11185   cat >conftest.$ac_ext <<_ACEOF
11186 /* confdefs.h.  */
11187 _ACEOF
11188 cat confdefs.h >>conftest.$ac_ext
11189 cat >>conftest.$ac_ext <<_ACEOF
11190 /* end confdefs.h.  */
11191 #include <stdlib.h>
11192 #include <stdarg.h>
11193 #include <string.h>
11194 #include <float.h>
11195
11196 int
11197 main ()
11198 {
11199
11200   ;
11201   return 0;
11202 }
11203 _ACEOF
11204 rm -f conftest.$ac_objext
11205 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11206   (eval $ac_compile) 2>conftest.er1
11207   ac_status=$?
11208   grep -v '^ *+' conftest.er1 >conftest.err
11209   rm -f conftest.er1
11210   cat conftest.err >&5
11211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11212   (exit $ac_status); } &&
11213          { ac_try='test -z "$ac_c_werror_flag"
11214                          || test ! -s conftest.err'
11215   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11216   (eval $ac_try) 2>&5
11217   ac_status=$?
11218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11219   (exit $ac_status); }; } &&
11220          { ac_try='test -s conftest.$ac_objext'
11221   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11222   (eval $ac_try) 2>&5
11223   ac_status=$?
11224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11225   (exit $ac_status); }; }; then
11226   ac_cv_header_stdc=yes
11227 else
11228   echo "$as_me: failed program was:" >&5
11229 sed 's/^/| /' conftest.$ac_ext >&5
11230
11231 ac_cv_header_stdc=no
11232 fi
11233 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11234
11235 if test $ac_cv_header_stdc = yes; then
11236   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11237   cat >conftest.$ac_ext <<_ACEOF
11238 /* confdefs.h.  */
11239 _ACEOF
11240 cat confdefs.h >>conftest.$ac_ext
11241 cat >>conftest.$ac_ext <<_ACEOF
11242 /* end confdefs.h.  */
11243 #include <string.h>
11244
11245 _ACEOF
11246 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11247   $EGREP "memchr" >/dev/null 2>&1; then
11248   :
11249 else
11250   ac_cv_header_stdc=no
11251 fi
11252 rm -f conftest*
11253
11254 fi
11255
11256 if test $ac_cv_header_stdc = yes; then
11257   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11258   cat >conftest.$ac_ext <<_ACEOF
11259 /* confdefs.h.  */
11260 _ACEOF
11261 cat confdefs.h >>conftest.$ac_ext
11262 cat >>conftest.$ac_ext <<_ACEOF
11263 /* end confdefs.h.  */
11264 #include <stdlib.h>
11265
11266 _ACEOF
11267 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11268   $EGREP "free" >/dev/null 2>&1; then
11269   :
11270 else
11271   ac_cv_header_stdc=no
11272 fi
11273 rm -f conftest*
11274
11275 fi
11276
11277 if test $ac_cv_header_stdc = yes; then
11278   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11279   if test "$cross_compiling" = yes; then
11280   :
11281 else
11282   cat >conftest.$ac_ext <<_ACEOF
11283 /* confdefs.h.  */
11284 _ACEOF
11285 cat confdefs.h >>conftest.$ac_ext
11286 cat >>conftest.$ac_ext <<_ACEOF
11287 /* end confdefs.h.  */
11288 #include <ctype.h>
11289 #if ((' ' & 0x0FF) == 0x020)
11290 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11291 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11292 #else
11293 # define ISLOWER(c) \
11294                    (('a' <= (c) && (c) <= 'i') \
11295                      || ('j' <= (c) && (c) <= 'r') \
11296                      || ('s' <= (c) && (c) <= 'z'))
11297 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11298 #endif
11299
11300 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11301 int
11302 main ()
11303 {
11304   int i;
11305   for (i = 0; i < 256; i++)
11306     if (XOR (islower (i), ISLOWER (i))
11307         || toupper (i) != TOUPPER (i))
11308       exit(2);
11309   exit (0);
11310 }
11311 _ACEOF
11312 rm -f conftest$ac_exeext
11313 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11314   (eval $ac_link) 2>&5
11315   ac_status=$?
11316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11317   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11318   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11319   (eval $ac_try) 2>&5
11320   ac_status=$?
11321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11322   (exit $ac_status); }; }; then
11323   :
11324 else
11325   echo "$as_me: program exited with status $ac_status" >&5
11326 echo "$as_me: failed program was:" >&5
11327 sed 's/^/| /' conftest.$ac_ext >&5
11328
11329 ( exit $ac_status )
11330 ac_cv_header_stdc=no
11331 fi
11332 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11333 fi
11334 fi
11335 fi
11336 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
11337 echo "${ECHO_T}$ac_cv_header_stdc" >&6
11338 if test $ac_cv_header_stdc = yes; then
11339
11340 cat >>confdefs.h <<\_ACEOF
11341 #define STDC_HEADERS 1
11342 _ACEOF
11343
11344 fi
11345
11346 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
11347 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
11348 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
11349   echo $ECHO_N "(cached) $ECHO_C" >&6
11350 else
11351   cat >conftest.$ac_ext <<_ACEOF
11352 /* confdefs.h.  */
11353 _ACEOF
11354 cat confdefs.h >>conftest.$ac_ext
11355 cat >>conftest.$ac_ext <<_ACEOF
11356 /* end confdefs.h.  */
11357 #include <sys/types.h>
11358 int
11359 main ()
11360 {
11361 return makedev(0, 0);
11362   ;
11363   return 0;
11364 }
11365 _ACEOF
11366 rm -f conftest.$ac_objext conftest$ac_exeext
11367 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11368   (eval $ac_link) 2>conftest.er1
11369   ac_status=$?
11370   grep -v '^ *+' conftest.er1 >conftest.err
11371   rm -f conftest.er1
11372   cat conftest.err >&5
11373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11374   (exit $ac_status); } &&
11375          { ac_try='test -z "$ac_c_werror_flag"
11376                          || test ! -s conftest.err'
11377   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11378   (eval $ac_try) 2>&5
11379   ac_status=$?
11380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11381   (exit $ac_status); }; } &&
11382          { ac_try='test -s conftest$ac_exeext'
11383   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11384   (eval $ac_try) 2>&5
11385   ac_status=$?
11386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11387   (exit $ac_status); }; }; then
11388   ac_cv_header_sys_types_h_makedev=yes
11389 else
11390   echo "$as_me: failed program was:" >&5
11391 sed 's/^/| /' conftest.$ac_ext >&5
11392
11393 ac_cv_header_sys_types_h_makedev=no
11394 fi
11395 rm -f conftest.err conftest.$ac_objext \
11396       conftest$ac_exeext conftest.$ac_ext
11397
11398 fi
11399 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
11400 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
11401
11402 if test $ac_cv_header_sys_types_h_makedev = no; then
11403 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
11404   echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
11405 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
11406 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
11407   echo $ECHO_N "(cached) $ECHO_C" >&6
11408 fi
11409 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
11410 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
11411 else
11412   # Is the header compilable?
11413 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
11414 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
11415 cat >conftest.$ac_ext <<_ACEOF
11416 /* confdefs.h.  */
11417 _ACEOF
11418 cat confdefs.h >>conftest.$ac_ext
11419 cat >>conftest.$ac_ext <<_ACEOF
11420 /* end confdefs.h.  */
11421 $ac_includes_default
11422 #include <sys/mkdev.h>
11423 _ACEOF
11424 rm -f conftest.$ac_objext
11425 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11426   (eval $ac_compile) 2>conftest.er1
11427   ac_status=$?
11428   grep -v '^ *+' conftest.er1 >conftest.err
11429   rm -f conftest.er1
11430   cat conftest.err >&5
11431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11432   (exit $ac_status); } &&
11433          { ac_try='test -z "$ac_c_werror_flag"
11434                          || test ! -s conftest.err'
11435   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11436   (eval $ac_try) 2>&5
11437   ac_status=$?
11438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11439   (exit $ac_status); }; } &&
11440          { ac_try='test -s conftest.$ac_objext'
11441   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11442   (eval $ac_try) 2>&5
11443   ac_status=$?
11444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11445   (exit $ac_status); }; }; then
11446   ac_header_compiler=yes
11447 else
11448   echo "$as_me: failed program was:" >&5
11449 sed 's/^/| /' conftest.$ac_ext >&5
11450
11451 ac_header_compiler=no
11452 fi
11453 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11454 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11455 echo "${ECHO_T}$ac_header_compiler" >&6
11456
11457 # Is the header present?
11458 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
11459 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
11460 cat >conftest.$ac_ext <<_ACEOF
11461 /* confdefs.h.  */
11462 _ACEOF
11463 cat confdefs.h >>conftest.$ac_ext
11464 cat >>conftest.$ac_ext <<_ACEOF
11465 /* end confdefs.h.  */
11466 #include <sys/mkdev.h>
11467 _ACEOF
11468 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11469   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11470   ac_status=$?
11471   grep -v '^ *+' conftest.er1 >conftest.err
11472   rm -f conftest.er1
11473   cat conftest.err >&5
11474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11475   (exit $ac_status); } >/dev/null; then
11476   if test -s conftest.err; then
11477     ac_cpp_err=$ac_c_preproc_warn_flag
11478     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11479   else
11480     ac_cpp_err=
11481   fi
11482 else
11483   ac_cpp_err=yes
11484 fi
11485 if test -z "$ac_cpp_err"; then
11486   ac_header_preproc=yes
11487 else
11488   echo "$as_me: failed program was:" >&5
11489 sed 's/^/| /' conftest.$ac_ext >&5
11490
11491   ac_header_preproc=no
11492 fi
11493 rm -f conftest.err conftest.$ac_ext
11494 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11495 echo "${ECHO_T}$ac_header_preproc" >&6
11496
11497 # So?  What about this header?
11498 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11499   yes:no: )
11500     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
11501 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11502     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
11503 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
11504     ac_header_preproc=yes
11505     ;;
11506   no:yes:* )
11507     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
11508 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
11509     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&5
11510 echo "$as_me: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&2;}
11511     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
11512 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
11513     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&5
11514 echo "$as_me: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&2;}
11515     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
11516 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
11517     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
11518 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
11519     (
11520       cat <<\_ASBOX
11521 ## ------------------------------------------ ##
11522 ## Report this to the AC_PACKAGE_NAME lists.  ##
11523 ## ------------------------------------------ ##
11524 _ASBOX
11525     ) |
11526       sed "s/^/$as_me: WARNING:     /" >&2
11527     ;;
11528 esac
11529 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
11530 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
11531 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
11532   echo $ECHO_N "(cached) $ECHO_C" >&6
11533 else
11534   ac_cv_header_sys_mkdev_h=$ac_header_preproc
11535 fi
11536 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
11537 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
11538
11539 fi
11540 if test $ac_cv_header_sys_mkdev_h = yes; then
11541
11542 cat >>confdefs.h <<\_ACEOF
11543 #define MAJOR_IN_MKDEV 1
11544 _ACEOF
11545
11546 fi
11547
11548
11549
11550   if test $ac_cv_header_sys_mkdev_h = no; then
11551     if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
11552   echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
11553 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
11554 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
11555   echo $ECHO_N "(cached) $ECHO_C" >&6
11556 fi
11557 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
11558 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
11559 else
11560   # Is the header compilable?
11561 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
11562 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
11563 cat >conftest.$ac_ext <<_ACEOF
11564 /* confdefs.h.  */
11565 _ACEOF
11566 cat confdefs.h >>conftest.$ac_ext
11567 cat >>conftest.$ac_ext <<_ACEOF
11568 /* end confdefs.h.  */
11569 $ac_includes_default
11570 #include <sys/sysmacros.h>
11571 _ACEOF
11572 rm -f conftest.$ac_objext
11573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11574   (eval $ac_compile) 2>conftest.er1
11575   ac_status=$?
11576   grep -v '^ *+' conftest.er1 >conftest.err
11577   rm -f conftest.er1
11578   cat conftest.err >&5
11579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11580   (exit $ac_status); } &&
11581          { ac_try='test -z "$ac_c_werror_flag"
11582                          || test ! -s conftest.err'
11583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11584   (eval $ac_try) 2>&5
11585   ac_status=$?
11586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11587   (exit $ac_status); }; } &&
11588          { ac_try='test -s conftest.$ac_objext'
11589   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11590   (eval $ac_try) 2>&5
11591   ac_status=$?
11592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11593   (exit $ac_status); }; }; then
11594   ac_header_compiler=yes
11595 else
11596   echo "$as_me: failed program was:" >&5
11597 sed 's/^/| /' conftest.$ac_ext >&5
11598
11599 ac_header_compiler=no
11600 fi
11601 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11602 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11603 echo "${ECHO_T}$ac_header_compiler" >&6
11604
11605 # Is the header present?
11606 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
11607 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
11608 cat >conftest.$ac_ext <<_ACEOF
11609 /* confdefs.h.  */
11610 _ACEOF
11611 cat confdefs.h >>conftest.$ac_ext
11612 cat >>conftest.$ac_ext <<_ACEOF
11613 /* end confdefs.h.  */
11614 #include <sys/sysmacros.h>
11615 _ACEOF
11616 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11617   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11618   ac_status=$?
11619   grep -v '^ *+' conftest.er1 >conftest.err
11620   rm -f conftest.er1
11621   cat conftest.err >&5
11622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11623   (exit $ac_status); } >/dev/null; then
11624   if test -s conftest.err; then
11625     ac_cpp_err=$ac_c_preproc_warn_flag
11626     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11627   else
11628     ac_cpp_err=
11629   fi
11630 else
11631   ac_cpp_err=yes
11632 fi
11633 if test -z "$ac_cpp_err"; then
11634   ac_header_preproc=yes
11635 else
11636   echo "$as_me: failed program was:" >&5
11637 sed 's/^/| /' conftest.$ac_ext >&5
11638
11639   ac_header_preproc=no
11640 fi
11641 rm -f conftest.err conftest.$ac_ext
11642 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11643 echo "${ECHO_T}$ac_header_preproc" >&6
11644
11645 # So?  What about this header?
11646 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11647   yes:no: )
11648     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
11649 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11650     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
11651 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
11652     ac_header_preproc=yes
11653     ;;
11654   no:yes:* )
11655     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
11656 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
11657     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&5
11658 echo "$as_me: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&2;}
11659     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
11660 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
11661     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&5
11662 echo "$as_me: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&2;}
11663     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
11664 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
11665     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
11666 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
11667     (
11668       cat <<\_ASBOX
11669 ## ------------------------------------------ ##
11670 ## Report this to the AC_PACKAGE_NAME lists.  ##
11671 ## ------------------------------------------ ##
11672 _ASBOX
11673     ) |
11674       sed "s/^/$as_me: WARNING:     /" >&2
11675     ;;
11676 esac
11677 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
11678 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
11679 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
11680   echo $ECHO_N "(cached) $ECHO_C" >&6
11681 else
11682   ac_cv_header_sys_sysmacros_h=$ac_header_preproc
11683 fi
11684 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
11685 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
11686
11687 fi
11688 if test $ac_cv_header_sys_sysmacros_h = yes; then
11689
11690 cat >>confdefs.h <<\_ACEOF
11691 #define MAJOR_IN_SYSMACROS 1
11692 _ACEOF
11693
11694 fi
11695
11696
11697   fi
11698 fi
11699
11700
11701
11702
11703
11704
11705 ac_header_dirent=no
11706 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
11707   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
11708 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
11709 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
11710 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11711   echo $ECHO_N "(cached) $ECHO_C" >&6
11712 else
11713   cat >conftest.$ac_ext <<_ACEOF
11714 /* confdefs.h.  */
11715 _ACEOF
11716 cat confdefs.h >>conftest.$ac_ext
11717 cat >>conftest.$ac_ext <<_ACEOF
11718 /* end confdefs.h.  */
11719 #include <sys/types.h>
11720 #include <$ac_hdr>
11721
11722 int
11723 main ()
11724 {
11725 if ((DIR *) 0)
11726 return 0;
11727   ;
11728   return 0;
11729 }
11730 _ACEOF
11731 rm -f conftest.$ac_objext
11732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11733   (eval $ac_compile) 2>conftest.er1
11734   ac_status=$?
11735   grep -v '^ *+' conftest.er1 >conftest.err
11736   rm -f conftest.er1
11737   cat conftest.err >&5
11738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11739   (exit $ac_status); } &&
11740          { ac_try='test -z "$ac_c_werror_flag"
11741                          || test ! -s conftest.err'
11742   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11743   (eval $ac_try) 2>&5
11744   ac_status=$?
11745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11746   (exit $ac_status); }; } &&
11747          { ac_try='test -s conftest.$ac_objext'
11748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11749   (eval $ac_try) 2>&5
11750   ac_status=$?
11751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11752   (exit $ac_status); }; }; then
11753   eval "$as_ac_Header=yes"
11754 else
11755   echo "$as_me: failed program was:" >&5
11756 sed 's/^/| /' conftest.$ac_ext >&5
11757
11758 eval "$as_ac_Header=no"
11759 fi
11760 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11761 fi
11762 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11763 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11764 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11765   cat >>confdefs.h <<_ACEOF
11766 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
11767 _ACEOF
11768
11769 ac_header_dirent=$ac_hdr; break
11770 fi
11771
11772 done
11773 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
11774 if test $ac_header_dirent = dirent.h; then
11775   echo "$as_me:$LINENO: checking for library containing opendir" >&5
11776 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
11777 if test "${ac_cv_search_opendir+set}" = set; then
11778   echo $ECHO_N "(cached) $ECHO_C" >&6
11779 else
11780   ac_func_search_save_LIBS=$LIBS
11781 ac_cv_search_opendir=no
11782 cat >conftest.$ac_ext <<_ACEOF
11783 /* confdefs.h.  */
11784 _ACEOF
11785 cat confdefs.h >>conftest.$ac_ext
11786 cat >>conftest.$ac_ext <<_ACEOF
11787 /* end confdefs.h.  */
11788
11789 /* Override any gcc2 internal prototype to avoid an error.  */
11790 #ifdef __cplusplus
11791 extern "C"
11792 #endif
11793 /* We use char because int might match the return type of a gcc2
11794    builtin and then its argument prototype would still apply.  */
11795 char opendir ();
11796 int
11797 main ()
11798 {
11799 opendir ();
11800   ;
11801   return 0;
11802 }
11803 _ACEOF
11804 rm -f conftest.$ac_objext conftest$ac_exeext
11805 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11806   (eval $ac_link) 2>conftest.er1
11807   ac_status=$?
11808   grep -v '^ *+' conftest.er1 >conftest.err
11809   rm -f conftest.er1
11810   cat conftest.err >&5
11811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11812   (exit $ac_status); } &&
11813          { ac_try='test -z "$ac_c_werror_flag"
11814                          || test ! -s conftest.err'
11815   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11816   (eval $ac_try) 2>&5
11817   ac_status=$?
11818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11819   (exit $ac_status); }; } &&
11820          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
11826   ac_cv_search_opendir="none required"
11827 else
11828   echo "$as_me: failed program was:" >&5
11829 sed 's/^/| /' conftest.$ac_ext >&5
11830
11831 fi
11832 rm -f conftest.err conftest.$ac_objext \
11833       conftest$ac_exeext conftest.$ac_ext
11834 if test "$ac_cv_search_opendir" = no; then
11835   for ac_lib in dir; do
11836     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11837     cat >conftest.$ac_ext <<_ACEOF
11838 /* confdefs.h.  */
11839 _ACEOF
11840 cat confdefs.h >>conftest.$ac_ext
11841 cat >>conftest.$ac_ext <<_ACEOF
11842 /* end confdefs.h.  */
11843
11844 /* Override any gcc2 internal prototype to avoid an error.  */
11845 #ifdef __cplusplus
11846 extern "C"
11847 #endif
11848 /* We use char because int might match the return type of a gcc2
11849    builtin and then its argument prototype would still apply.  */
11850 char opendir ();
11851 int
11852 main ()
11853 {
11854 opendir ();
11855   ;
11856   return 0;
11857 }
11858 _ACEOF
11859 rm -f conftest.$ac_objext conftest$ac_exeext
11860 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11861   (eval $ac_link) 2>conftest.er1
11862   ac_status=$?
11863   grep -v '^ *+' conftest.er1 >conftest.err
11864   rm -f conftest.er1
11865   cat conftest.err >&5
11866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11867   (exit $ac_status); } &&
11868          { ac_try='test -z "$ac_c_werror_flag"
11869                          || test ! -s conftest.err'
11870   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11871   (eval $ac_try) 2>&5
11872   ac_status=$?
11873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11874   (exit $ac_status); }; } &&
11875          { ac_try='test -s conftest$ac_exeext'
11876   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11877   (eval $ac_try) 2>&5
11878   ac_status=$?
11879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11880   (exit $ac_status); }; }; then
11881   ac_cv_search_opendir="-l$ac_lib"
11882 break
11883 else
11884   echo "$as_me: failed program was:" >&5
11885 sed 's/^/| /' conftest.$ac_ext >&5
11886
11887 fi
11888 rm -f conftest.err conftest.$ac_objext \
11889       conftest$ac_exeext conftest.$ac_ext
11890   done
11891 fi
11892 LIBS=$ac_func_search_save_LIBS
11893 fi
11894 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11895 echo "${ECHO_T}$ac_cv_search_opendir" >&6
11896 if test "$ac_cv_search_opendir" != no; then
11897   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
11898
11899 fi
11900
11901 else
11902   echo "$as_me:$LINENO: checking for library containing opendir" >&5
11903 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
11904 if test "${ac_cv_search_opendir+set}" = set; then
11905   echo $ECHO_N "(cached) $ECHO_C" >&6
11906 else
11907   ac_func_search_save_LIBS=$LIBS
11908 ac_cv_search_opendir=no
11909 cat >conftest.$ac_ext <<_ACEOF
11910 /* confdefs.h.  */
11911 _ACEOF
11912 cat confdefs.h >>conftest.$ac_ext
11913 cat >>conftest.$ac_ext <<_ACEOF
11914 /* end confdefs.h.  */
11915
11916 /* Override any gcc2 internal prototype to avoid an error.  */
11917 #ifdef __cplusplus
11918 extern "C"
11919 #endif
11920 /* We use char because int might match the return type of a gcc2
11921    builtin and then its argument prototype would still apply.  */
11922 char opendir ();
11923 int
11924 main ()
11925 {
11926 opendir ();
11927   ;
11928   return 0;
11929 }
11930 _ACEOF
11931 rm -f conftest.$ac_objext conftest$ac_exeext
11932 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11933   (eval $ac_link) 2>conftest.er1
11934   ac_status=$?
11935   grep -v '^ *+' conftest.er1 >conftest.err
11936   rm -f conftest.er1
11937   cat conftest.err >&5
11938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11939   (exit $ac_status); } &&
11940          { ac_try='test -z "$ac_c_werror_flag"
11941                          || test ! -s conftest.err'
11942   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11943   (eval $ac_try) 2>&5
11944   ac_status=$?
11945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11946   (exit $ac_status); }; } &&
11947          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
11953   ac_cv_search_opendir="none required"
11954 else
11955   echo "$as_me: failed program was:" >&5
11956 sed 's/^/| /' conftest.$ac_ext >&5
11957
11958 fi
11959 rm -f conftest.err conftest.$ac_objext \
11960       conftest$ac_exeext conftest.$ac_ext
11961 if test "$ac_cv_search_opendir" = no; then
11962   for ac_lib in x; do
11963     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11964     cat >conftest.$ac_ext <<_ACEOF
11965 /* confdefs.h.  */
11966 _ACEOF
11967 cat confdefs.h >>conftest.$ac_ext
11968 cat >>conftest.$ac_ext <<_ACEOF
11969 /* end confdefs.h.  */
11970
11971 /* Override any gcc2 internal prototype to avoid an error.  */
11972 #ifdef __cplusplus
11973 extern "C"
11974 #endif
11975 /* We use char because int might match the return type of a gcc2
11976    builtin and then its argument prototype would still apply.  */
11977 char opendir ();
11978 int
11979 main ()
11980 {
11981 opendir ();
11982   ;
11983   return 0;
11984 }
11985 _ACEOF
11986 rm -f conftest.$ac_objext conftest$ac_exeext
11987 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11988   (eval $ac_link) 2>conftest.er1
11989   ac_status=$?
11990   grep -v '^ *+' conftest.er1 >conftest.err
11991   rm -f conftest.er1
11992   cat conftest.err >&5
11993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11994   (exit $ac_status); } &&
11995          { ac_try='test -z "$ac_c_werror_flag"
11996                          || test ! -s conftest.err'
11997   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11998   (eval $ac_try) 2>&5
11999   ac_status=$?
12000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12001   (exit $ac_status); }; } &&
12002          { ac_try='test -s conftest$ac_exeext'
12003   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12004   (eval $ac_try) 2>&5
12005   ac_status=$?
12006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12007   (exit $ac_status); }; }; then
12008   ac_cv_search_opendir="-l$ac_lib"
12009 break
12010 else
12011   echo "$as_me: failed program was:" >&5
12012 sed 's/^/| /' conftest.$ac_ext >&5
12013
12014 fi
12015 rm -f conftest.err conftest.$ac_objext \
12016       conftest$ac_exeext conftest.$ac_ext
12017   done
12018 fi
12019 LIBS=$ac_func_search_save_LIBS
12020 fi
12021 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
12022 echo "${ECHO_T}$ac_cv_search_opendir" >&6
12023 if test "$ac_cv_search_opendir" != no; then
12024   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
12025
12026 fi
12027
12028 fi
12029
12030 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
12031 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
12032 if test "${ac_cv_header_stat_broken+set}" = set; then
12033   echo $ECHO_N "(cached) $ECHO_C" >&6
12034 else
12035   cat >conftest.$ac_ext <<_ACEOF
12036 /* confdefs.h.  */
12037 _ACEOF
12038 cat confdefs.h >>conftest.$ac_ext
12039 cat >>conftest.$ac_ext <<_ACEOF
12040 /* end confdefs.h.  */
12041 #include <sys/types.h>
12042 #include <sys/stat.h>
12043
12044 #if defined(S_ISBLK) && defined(S_IFDIR)
12045 # if S_ISBLK (S_IFDIR)
12046 You lose.
12047 # endif
12048 #endif
12049
12050 #if defined(S_ISBLK) && defined(S_IFCHR)
12051 # if S_ISBLK (S_IFCHR)
12052 You lose.
12053 # endif
12054 #endif
12055
12056 #if defined(S_ISLNK) && defined(S_IFREG)
12057 # if S_ISLNK (S_IFREG)
12058 You lose.
12059 # endif
12060 #endif
12061
12062 #if defined(S_ISSOCK) && defined(S_IFREG)
12063 # if S_ISSOCK (S_IFREG)
12064 You lose.
12065 # endif
12066 #endif
12067
12068 _ACEOF
12069 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12070   $EGREP "You lose" >/dev/null 2>&1; then
12071   ac_cv_header_stat_broken=yes
12072 else
12073   ac_cv_header_stat_broken=no
12074 fi
12075 rm -f conftest*
12076
12077 fi
12078 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
12079 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
12080 if test $ac_cv_header_stat_broken = yes; then
12081
12082 cat >>confdefs.h <<\_ACEOF
12083 #define STAT_MACROS_BROKEN 1
12084 _ACEOF
12085
12086 fi
12087
12088 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
12089 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
12090 if test "${ac_cv_header_sys_wait_h+set}" = set; then
12091   echo $ECHO_N "(cached) $ECHO_C" >&6
12092 else
12093   cat >conftest.$ac_ext <<_ACEOF
12094 /* confdefs.h.  */
12095 _ACEOF
12096 cat confdefs.h >>conftest.$ac_ext
12097 cat >>conftest.$ac_ext <<_ACEOF
12098 /* end confdefs.h.  */
12099 #include <sys/types.h>
12100 #include <sys/wait.h>
12101 #ifndef WEXITSTATUS
12102 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
12103 #endif
12104 #ifndef WIFEXITED
12105 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
12106 #endif
12107
12108 int
12109 main ()
12110 {
12111   int s;
12112   wait (&s);
12113   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
12114   ;
12115   return 0;
12116 }
12117 _ACEOF
12118 rm -f conftest.$ac_objext
12119 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12120   (eval $ac_compile) 2>conftest.er1
12121   ac_status=$?
12122   grep -v '^ *+' conftest.er1 >conftest.err
12123   rm -f conftest.er1
12124   cat conftest.err >&5
12125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12126   (exit $ac_status); } &&
12127          { ac_try='test -z "$ac_c_werror_flag"
12128                          || test ! -s conftest.err'
12129   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12130   (eval $ac_try) 2>&5
12131   ac_status=$?
12132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12133   (exit $ac_status); }; } &&
12134          { ac_try='test -s conftest.$ac_objext'
12135   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12136   (eval $ac_try) 2>&5
12137   ac_status=$?
12138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12139   (exit $ac_status); }; }; then
12140   ac_cv_header_sys_wait_h=yes
12141 else
12142   echo "$as_me: failed program was:" >&5
12143 sed 's/^/| /' conftest.$ac_ext >&5
12144
12145 ac_cv_header_sys_wait_h=no
12146 fi
12147 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12148 fi
12149 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
12150 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
12151 if test $ac_cv_header_sys_wait_h = yes; then
12152
12153 cat >>confdefs.h <<\_ACEOF
12154 #define HAVE_SYS_WAIT_H 1
12155 _ACEOF
12156
12157 fi
12158
12159 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
12160 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
12161 if test "${ac_cv_header_time+set}" = set; then
12162   echo $ECHO_N "(cached) $ECHO_C" >&6
12163 else
12164   cat >conftest.$ac_ext <<_ACEOF
12165 /* confdefs.h.  */
12166 _ACEOF
12167 cat confdefs.h >>conftest.$ac_ext
12168 cat >>conftest.$ac_ext <<_ACEOF
12169 /* end confdefs.h.  */
12170 #include <sys/types.h>
12171 #include <sys/time.h>
12172 #include <time.h>
12173
12174 int
12175 main ()
12176 {
12177 if ((struct tm *) 0)
12178 return 0;
12179   ;
12180   return 0;
12181 }
12182 _ACEOF
12183 rm -f conftest.$ac_objext
12184 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12185   (eval $ac_compile) 2>conftest.er1
12186   ac_status=$?
12187   grep -v '^ *+' conftest.er1 >conftest.err
12188   rm -f conftest.er1
12189   cat conftest.err >&5
12190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12191   (exit $ac_status); } &&
12192          { ac_try='test -z "$ac_c_werror_flag"
12193                          || test ! -s conftest.err'
12194   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12195   (eval $ac_try) 2>&5
12196   ac_status=$?
12197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12198   (exit $ac_status); }; } &&
12199          { ac_try='test -s conftest.$ac_objext'
12200   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12201   (eval $ac_try) 2>&5
12202   ac_status=$?
12203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12204   (exit $ac_status); }; }; then
12205   ac_cv_header_time=yes
12206 else
12207   echo "$as_me: failed program was:" >&5
12208 sed 's/^/| /' conftest.$ac_ext >&5
12209
12210 ac_cv_header_time=no
12211 fi
12212 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12213 fi
12214 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
12215 echo "${ECHO_T}$ac_cv_header_time" >&6
12216 if test $ac_cv_header_time = yes; then
12217
12218 cat >>confdefs.h <<\_ACEOF
12219 #define TIME_WITH_SYS_TIME 1
12220 _ACEOF
12221
12222 fi
12223
12224
12225 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
12226 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
12227 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
12228   echo $ECHO_N "(cached) $ECHO_C" >&6
12229 else
12230   cat >conftest.$ac_ext <<_ACEOF
12231 /* confdefs.h.  */
12232 _ACEOF
12233 cat confdefs.h >>conftest.$ac_ext
12234 cat >>conftest.$ac_ext <<_ACEOF
12235 /* end confdefs.h.  */
12236 $ac_includes_default
12237 int
12238 main ()
12239 {
12240 static struct stat ac_aggr;
12241 if (ac_aggr.st_blksize)
12242 return 0;
12243   ;
12244   return 0;
12245 }
12246 _ACEOF
12247 rm -f conftest.$ac_objext
12248 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12249   (eval $ac_compile) 2>conftest.er1
12250   ac_status=$?
12251   grep -v '^ *+' conftest.er1 >conftest.err
12252   rm -f conftest.er1
12253   cat conftest.err >&5
12254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12255   (exit $ac_status); } &&
12256          { ac_try='test -z "$ac_c_werror_flag"
12257                          || test ! -s conftest.err'
12258   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12259   (eval $ac_try) 2>&5
12260   ac_status=$?
12261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12262   (exit $ac_status); }; } &&
12263          { ac_try='test -s conftest.$ac_objext'
12264   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12265   (eval $ac_try) 2>&5
12266   ac_status=$?
12267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12268   (exit $ac_status); }; }; then
12269   ac_cv_member_struct_stat_st_blksize=yes
12270 else
12271   echo "$as_me: failed program was:" >&5
12272 sed 's/^/| /' conftest.$ac_ext >&5
12273
12274 cat >conftest.$ac_ext <<_ACEOF
12275 /* confdefs.h.  */
12276 _ACEOF
12277 cat confdefs.h >>conftest.$ac_ext
12278 cat >>conftest.$ac_ext <<_ACEOF
12279 /* end confdefs.h.  */
12280 $ac_includes_default
12281 int
12282 main ()
12283 {
12284 static struct stat ac_aggr;
12285 if (sizeof ac_aggr.st_blksize)
12286 return 0;
12287   ;
12288   return 0;
12289 }
12290 _ACEOF
12291 rm -f conftest.$ac_objext
12292 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12293   (eval $ac_compile) 2>conftest.er1
12294   ac_status=$?
12295   grep -v '^ *+' conftest.er1 >conftest.err
12296   rm -f conftest.er1
12297   cat conftest.err >&5
12298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12299   (exit $ac_status); } &&
12300          { ac_try='test -z "$ac_c_werror_flag"
12301                          || test ! -s conftest.err'
12302   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12303   (eval $ac_try) 2>&5
12304   ac_status=$?
12305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12306   (exit $ac_status); }; } &&
12307          { ac_try='test -s conftest.$ac_objext'
12308   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12309   (eval $ac_try) 2>&5
12310   ac_status=$?
12311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12312   (exit $ac_status); }; }; then
12313   ac_cv_member_struct_stat_st_blksize=yes
12314 else
12315   echo "$as_me: failed program was:" >&5
12316 sed 's/^/| /' conftest.$ac_ext >&5
12317
12318 ac_cv_member_struct_stat_st_blksize=no
12319 fi
12320 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12321 fi
12322 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12323 fi
12324 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
12325 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
12326 if test $ac_cv_member_struct_stat_st_blksize = yes; then
12327
12328 cat >>confdefs.h <<_ACEOF
12329 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
12330 _ACEOF
12331
12332
12333 cat >>confdefs.h <<\_ACEOF
12334 #define HAVE_ST_BLKSIZE 1
12335 _ACEOF
12336
12337 fi
12338
12339
12340 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
12341 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
12342 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
12343   echo $ECHO_N "(cached) $ECHO_C" >&6
12344 else
12345   cat >conftest.$ac_ext <<_ACEOF
12346 /* confdefs.h.  */
12347 _ACEOF
12348 cat confdefs.h >>conftest.$ac_ext
12349 cat >>conftest.$ac_ext <<_ACEOF
12350 /* end confdefs.h.  */
12351 $ac_includes_default
12352 int
12353 main ()
12354 {
12355 static struct stat ac_aggr;
12356 if (ac_aggr.st_blocks)
12357 return 0;
12358   ;
12359   return 0;
12360 }
12361 _ACEOF
12362 rm -f conftest.$ac_objext
12363 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12364   (eval $ac_compile) 2>conftest.er1
12365   ac_status=$?
12366   grep -v '^ *+' conftest.er1 >conftest.err
12367   rm -f conftest.er1
12368   cat conftest.err >&5
12369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12370   (exit $ac_status); } &&
12371          { ac_try='test -z "$ac_c_werror_flag"
12372                          || test ! -s conftest.err'
12373   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12374   (eval $ac_try) 2>&5
12375   ac_status=$?
12376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12377   (exit $ac_status); }; } &&
12378          { ac_try='test -s conftest.$ac_objext'
12379   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12380   (eval $ac_try) 2>&5
12381   ac_status=$?
12382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12383   (exit $ac_status); }; }; then
12384   ac_cv_member_struct_stat_st_blocks=yes
12385 else
12386   echo "$as_me: failed program was:" >&5
12387 sed 's/^/| /' conftest.$ac_ext >&5
12388
12389 cat >conftest.$ac_ext <<_ACEOF
12390 /* confdefs.h.  */
12391 _ACEOF
12392 cat confdefs.h >>conftest.$ac_ext
12393 cat >>conftest.$ac_ext <<_ACEOF
12394 /* end confdefs.h.  */
12395 $ac_includes_default
12396 int
12397 main ()
12398 {
12399 static struct stat ac_aggr;
12400 if (sizeof ac_aggr.st_blocks)
12401 return 0;
12402   ;
12403   return 0;
12404 }
12405 _ACEOF
12406 rm -f conftest.$ac_objext
12407 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12408   (eval $ac_compile) 2>conftest.er1
12409   ac_status=$?
12410   grep -v '^ *+' conftest.er1 >conftest.err
12411   rm -f conftest.er1
12412   cat conftest.err >&5
12413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12414   (exit $ac_status); } &&
12415          { ac_try='test -z "$ac_c_werror_flag"
12416                          || test ! -s conftest.err'
12417   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12418   (eval $ac_try) 2>&5
12419   ac_status=$?
12420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12421   (exit $ac_status); }; } &&
12422          { ac_try='test -s conftest.$ac_objext'
12423   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12424   (eval $ac_try) 2>&5
12425   ac_status=$?
12426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12427   (exit $ac_status); }; }; then
12428   ac_cv_member_struct_stat_st_blocks=yes
12429 else
12430   echo "$as_me: failed program was:" >&5
12431 sed 's/^/| /' conftest.$ac_ext >&5
12432
12433 ac_cv_member_struct_stat_st_blocks=no
12434 fi
12435 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12436 fi
12437 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12438 fi
12439 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
12440 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
12441 if test $ac_cv_member_struct_stat_st_blocks = yes; then
12442
12443 cat >>confdefs.h <<_ACEOF
12444 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
12445 _ACEOF
12446
12447
12448 cat >>confdefs.h <<\_ACEOF
12449 #define HAVE_ST_BLOCKS 1
12450 _ACEOF
12451
12452 else
12453   case $LIBOBJS in
12454     "fileblocks.$ac_objext"   | \
12455   *" fileblocks.$ac_objext"   | \
12456     "fileblocks.$ac_objext "* | \
12457   *" fileblocks.$ac_objext "* ) ;;
12458   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;;
12459 esac
12460
12461 fi
12462
12463
12464 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
12465 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
12466 if test "${ac_cv_struct_tm+set}" = set; then
12467   echo $ECHO_N "(cached) $ECHO_C" >&6
12468 else
12469   cat >conftest.$ac_ext <<_ACEOF
12470 /* confdefs.h.  */
12471 _ACEOF
12472 cat confdefs.h >>conftest.$ac_ext
12473 cat >>conftest.$ac_ext <<_ACEOF
12474 /* end confdefs.h.  */
12475 #include <sys/types.h>
12476 #include <time.h>
12477
12478 int
12479 main ()
12480 {
12481 struct tm *tp; tp->tm_sec;
12482   ;
12483   return 0;
12484 }
12485 _ACEOF
12486 rm -f conftest.$ac_objext
12487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12488   (eval $ac_compile) 2>conftest.er1
12489   ac_status=$?
12490   grep -v '^ *+' conftest.er1 >conftest.err
12491   rm -f conftest.er1
12492   cat conftest.err >&5
12493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12494   (exit $ac_status); } &&
12495          { ac_try='test -z "$ac_c_werror_flag"
12496                          || test ! -s conftest.err'
12497   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12498   (eval $ac_try) 2>&5
12499   ac_status=$?
12500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12501   (exit $ac_status); }; } &&
12502          { ac_try='test -s conftest.$ac_objext'
12503   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12504   (eval $ac_try) 2>&5
12505   ac_status=$?
12506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12507   (exit $ac_status); }; }; then
12508   ac_cv_struct_tm=time.h
12509 else
12510   echo "$as_me: failed program was:" >&5
12511 sed 's/^/| /' conftest.$ac_ext >&5
12512
12513 ac_cv_struct_tm=sys/time.h
12514 fi
12515 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12516 fi
12517 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
12518 echo "${ECHO_T}$ac_cv_struct_tm" >&6
12519 if test $ac_cv_struct_tm = sys/time.h; then
12520
12521 cat >>confdefs.h <<\_ACEOF
12522 #define TM_IN_SYS_TIME 1
12523 _ACEOF
12524
12525 fi
12526
12527 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
12528 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
12529 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
12530   echo $ECHO_N "(cached) $ECHO_C" >&6
12531 else
12532   cat >conftest.$ac_ext <<_ACEOF
12533 /* confdefs.h.  */
12534 _ACEOF
12535 cat confdefs.h >>conftest.$ac_ext
12536 cat >>conftest.$ac_ext <<_ACEOF
12537 /* end confdefs.h.  */
12538 #include <sys/types.h>
12539 #include <$ac_cv_struct_tm>
12540
12541
12542 int
12543 main ()
12544 {
12545 static struct tm ac_aggr;
12546 if (ac_aggr.tm_zone)
12547 return 0;
12548   ;
12549   return 0;
12550 }
12551 _ACEOF
12552 rm -f conftest.$ac_objext
12553 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12554   (eval $ac_compile) 2>conftest.er1
12555   ac_status=$?
12556   grep -v '^ *+' conftest.er1 >conftest.err
12557   rm -f conftest.er1
12558   cat conftest.err >&5
12559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12560   (exit $ac_status); } &&
12561          { ac_try='test -z "$ac_c_werror_flag"
12562                          || test ! -s conftest.err'
12563   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12564   (eval $ac_try) 2>&5
12565   ac_status=$?
12566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12567   (exit $ac_status); }; } &&
12568          { ac_try='test -s conftest.$ac_objext'
12569   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12570   (eval $ac_try) 2>&5
12571   ac_status=$?
12572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12573   (exit $ac_status); }; }; then
12574   ac_cv_member_struct_tm_tm_zone=yes
12575 else
12576   echo "$as_me: failed program was:" >&5
12577 sed 's/^/| /' conftest.$ac_ext >&5
12578
12579 cat >conftest.$ac_ext <<_ACEOF
12580 /* confdefs.h.  */
12581 _ACEOF
12582 cat confdefs.h >>conftest.$ac_ext
12583 cat >>conftest.$ac_ext <<_ACEOF
12584 /* end confdefs.h.  */
12585 #include <sys/types.h>
12586 #include <$ac_cv_struct_tm>
12587
12588
12589 int
12590 main ()
12591 {
12592 static struct tm ac_aggr;
12593 if (sizeof ac_aggr.tm_zone)
12594 return 0;
12595   ;
12596   return 0;
12597 }
12598 _ACEOF
12599 rm -f conftest.$ac_objext
12600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12601   (eval $ac_compile) 2>conftest.er1
12602   ac_status=$?
12603   grep -v '^ *+' conftest.er1 >conftest.err
12604   rm -f conftest.er1
12605   cat conftest.err >&5
12606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12607   (exit $ac_status); } &&
12608          { ac_try='test -z "$ac_c_werror_flag"
12609                          || test ! -s conftest.err'
12610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12611   (eval $ac_try) 2>&5
12612   ac_status=$?
12613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12614   (exit $ac_status); }; } &&
12615          { ac_try='test -s conftest.$ac_objext'
12616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12617   (eval $ac_try) 2>&5
12618   ac_status=$?
12619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12620   (exit $ac_status); }; }; then
12621   ac_cv_member_struct_tm_tm_zone=yes
12622 else
12623   echo "$as_me: failed program was:" >&5
12624 sed 's/^/| /' conftest.$ac_ext >&5
12625
12626 ac_cv_member_struct_tm_tm_zone=no
12627 fi
12628 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12629 fi
12630 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12631 fi
12632 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
12633 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
12634 if test $ac_cv_member_struct_tm_tm_zone = yes; then
12635
12636 cat >>confdefs.h <<_ACEOF
12637 #define HAVE_STRUCT_TM_TM_ZONE 1
12638 _ACEOF
12639
12640
12641 fi
12642
12643 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
12644
12645 cat >>confdefs.h <<\_ACEOF
12646 #define HAVE_TM_ZONE 1
12647 _ACEOF
12648
12649 else
12650   echo "$as_me:$LINENO: checking for tzname" >&5
12651 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
12652 if test "${ac_cv_var_tzname+set}" = set; then
12653   echo $ECHO_N "(cached) $ECHO_C" >&6
12654 else
12655   cat >conftest.$ac_ext <<_ACEOF
12656 /* confdefs.h.  */
12657 _ACEOF
12658 cat confdefs.h >>conftest.$ac_ext
12659 cat >>conftest.$ac_ext <<_ACEOF
12660 /* end confdefs.h.  */
12661 #include <time.h>
12662 #ifndef tzname /* For SGI.  */
12663 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
12664 #endif
12665
12666 int
12667 main ()
12668 {
12669 atoi(*tzname);
12670   ;
12671   return 0;
12672 }
12673 _ACEOF
12674 rm -f conftest.$ac_objext conftest$ac_exeext
12675 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12676   (eval $ac_link) 2>conftest.er1
12677   ac_status=$?
12678   grep -v '^ *+' conftest.er1 >conftest.err
12679   rm -f conftest.er1
12680   cat conftest.err >&5
12681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12682   (exit $ac_status); } &&
12683          { ac_try='test -z "$ac_c_werror_flag"
12684                          || test ! -s conftest.err'
12685   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12686   (eval $ac_try) 2>&5
12687   ac_status=$?
12688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12689   (exit $ac_status); }; } &&
12690          { ac_try='test -s conftest$ac_exeext'
12691   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12692   (eval $ac_try) 2>&5
12693   ac_status=$?
12694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12695   (exit $ac_status); }; }; then
12696   ac_cv_var_tzname=yes
12697 else
12698   echo "$as_me: failed program was:" >&5
12699 sed 's/^/| /' conftest.$ac_ext >&5
12700
12701 ac_cv_var_tzname=no
12702 fi
12703 rm -f conftest.err conftest.$ac_objext \
12704       conftest$ac_exeext conftest.$ac_ext
12705 fi
12706 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
12707 echo "${ECHO_T}$ac_cv_var_tzname" >&6
12708   if test $ac_cv_var_tzname = yes; then
12709
12710 cat >>confdefs.h <<\_ACEOF
12711 #define HAVE_TZNAME 1
12712 _ACEOF
12713
12714   fi
12715 fi
12716
12717
12718 echo "$as_me:$LINENO: checking for utime.h" >&5
12719 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6
12720 if test "${ba_cv_header_utime_h+set}" = set; then
12721   echo $ECHO_N "(cached) $ECHO_C" >&6
12722 else
12723   cat >conftest.$ac_ext <<_ACEOF
12724 /* confdefs.h.  */
12725 _ACEOF
12726 cat confdefs.h >>conftest.$ac_ext
12727 cat >>conftest.$ac_ext <<_ACEOF
12728 /* end confdefs.h.  */
12729
12730 #include <sys/types.h>
12731 #include <utime.h>
12732 int
12733 main ()
12734 {
12735 struct utimbuf foo
12736   ;
12737   return 0;
12738 }
12739 _ACEOF
12740 rm -f conftest.$ac_objext
12741 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12742   (eval $ac_compile) 2>conftest.er1
12743   ac_status=$?
12744   grep -v '^ *+' conftest.er1 >conftest.err
12745   rm -f conftest.er1
12746   cat conftest.err >&5
12747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12748   (exit $ac_status); } &&
12749          { ac_try='test -z "$ac_c_werror_flag"
12750                          || test ! -s conftest.err'
12751   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12752   (eval $ac_try) 2>&5
12753   ac_status=$?
12754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12755   (exit $ac_status); }; } &&
12756          { ac_try='test -s conftest.$ac_objext'
12757   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12758   (eval $ac_try) 2>&5
12759   ac_status=$?
12760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12761   (exit $ac_status); }; }; then
12762   ba_cv_header_utime_h=yes
12763 else
12764   echo "$as_me: failed program was:" >&5
12765 sed 's/^/| /' conftest.$ac_ext >&5
12766
12767 ba_cv_header_utime_h=no
12768 fi
12769 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12770 fi
12771 echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
12772 echo "${ECHO_T}$ba_cv_header_utime_h" >&6
12773 test $ba_cv_header_utime_h = yes && cat >>confdefs.h <<\_ACEOF
12774 #define HAVE_UTIME_H 1
12775 _ACEOF
12776
12777
12778 echo "$as_me:$LINENO: checking for socklen_t" >&5
12779 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
12780 if test "${ba_cv_header_socklen_t+set}" = set; then
12781   echo $ECHO_N "(cached) $ECHO_C" >&6
12782 else
12783   cat >conftest.$ac_ext <<_ACEOF
12784 /* confdefs.h.  */
12785 _ACEOF
12786 cat confdefs.h >>conftest.$ac_ext
12787 cat >>conftest.$ac_ext <<_ACEOF
12788 /* end confdefs.h.  */
12789
12790 #include <sys/types.h>
12791 #include <sys/socket.h>
12792 int
12793 main ()
12794 {
12795 socklen_t x
12796   ;
12797   return 0;
12798 }
12799 _ACEOF
12800 rm -f conftest.$ac_objext
12801 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12802   (eval $ac_compile) 2>conftest.er1
12803   ac_status=$?
12804   grep -v '^ *+' conftest.er1 >conftest.err
12805   rm -f conftest.er1
12806   cat conftest.err >&5
12807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12808   (exit $ac_status); } &&
12809          { ac_try='test -z "$ac_c_werror_flag"
12810                          || test ! -s conftest.err'
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); }; } &&
12816          { ac_try='test -s conftest.$ac_objext'
12817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12818   (eval $ac_try) 2>&5
12819   ac_status=$?
12820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12821   (exit $ac_status); }; }; then
12822   ba_cv_header_socklen_t=yes
12823 else
12824   echo "$as_me: failed program was:" >&5
12825 sed 's/^/| /' conftest.$ac_ext >&5
12826
12827 ba_cv_header_socklen_t=no
12828 fi
12829 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12830 fi
12831 echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
12832 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6
12833 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
12834 #define HAVE_SOCKLEN_T 1
12835 _ACEOF
12836
12837
12838 echo "$as_me:$LINENO: checking for bigendian" >&5
12839 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6
12840 if test "${ba_cv_bigendian+set}" = set; then
12841   echo $ECHO_N "(cached) $ECHO_C" >&6
12842 else
12843   if test "$cross_compiling" = yes; then
12844   ba_cv_bigendian=no
12845 else
12846   cat >conftest.$ac_ext <<_ACEOF
12847 /* confdefs.h.  */
12848 _ACEOF
12849 cat confdefs.h >>conftest.$ac_ext
12850 cat >>conftest.$ac_ext <<_ACEOF
12851 /* end confdefs.h.  */
12852 main(){long a=1L; char *p=(char *)&a; exit(*p);}
12853 _ACEOF
12854 rm -f conftest$ac_exeext
12855 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12856   (eval $ac_link) 2>&5
12857   ac_status=$?
12858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12859   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12860   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12861   (eval $ac_try) 2>&5
12862   ac_status=$?
12863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12864   (exit $ac_status); }; }; then
12865   ba_cv_bigendian=yes
12866 else
12867   echo "$as_me: program exited with status $ac_status" >&5
12868 echo "$as_me: failed program was:" >&5
12869 sed 's/^/| /' conftest.$ac_ext >&5
12870
12871 ( exit $ac_status )
12872 ba_cv_bigendian=no
12873 fi
12874 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12875 fi
12876 fi
12877 echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
12878 echo "${ECHO_T}$ba_cv_bigendian" >&6
12879 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
12880 #define HAVE_BIGENDIAN 1
12881 _ACEOF
12882
12883
12884
12885 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
12886 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
12887 if test "${ac_cv_c_const+set}" = set; then
12888   echo $ECHO_N "(cached) $ECHO_C" >&6
12889 else
12890   cat >conftest.$ac_ext <<_ACEOF
12891 /* confdefs.h.  */
12892 _ACEOF
12893 cat confdefs.h >>conftest.$ac_ext
12894 cat >>conftest.$ac_ext <<_ACEOF
12895 /* end confdefs.h.  */
12896
12897 int
12898 main ()
12899 {
12900 /* FIXME: Include the comments suggested by Paul. */
12901 #ifndef __cplusplus
12902   /* Ultrix mips cc rejects this.  */
12903   typedef int charset[2];
12904   const charset x;
12905   /* SunOS 4.1.1 cc rejects this.  */
12906   char const *const *ccp;
12907   char **p;
12908   /* NEC SVR4.0.2 mips cc rejects this.  */
12909   struct point {int x, y;};
12910   static struct point const zero = {0,0};
12911   /* AIX XL C 1.02.0.0 rejects this.
12912      It does not let you subtract one const X* pointer from another in
12913      an arm of an if-expression whose if-part is not a constant
12914      expression */
12915   const char *g = "string";
12916   ccp = &g + (g ? g-g : 0);
12917   /* HPUX 7.0 cc rejects these. */
12918   ++ccp;
12919   p = (char**) ccp;
12920   ccp = (char const *const *) p;
12921   { /* SCO 3.2v4 cc rejects this.  */
12922     char *t;
12923     char const *s = 0 ? (char *) 0 : (char const *) 0;
12924
12925     *t++ = 0;
12926   }
12927   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
12928     int x[] = {25, 17};
12929     const int *foo = &x[0];
12930     ++foo;
12931   }
12932   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12933     typedef const int *iptr;
12934     iptr p = 0;
12935     ++p;
12936   }
12937   { /* AIX XL C 1.02.0.0 rejects this saying
12938        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12939     struct s { int j; const int *ap[3]; };
12940     struct s *b; b->j = 5;
12941   }
12942   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12943     const int foo = 10;
12944   }
12945 #endif
12946
12947   ;
12948   return 0;
12949 }
12950 _ACEOF
12951 rm -f conftest.$ac_objext
12952 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12953   (eval $ac_compile) 2>conftest.er1
12954   ac_status=$?
12955   grep -v '^ *+' conftest.er1 >conftest.err
12956   rm -f conftest.er1
12957   cat conftest.err >&5
12958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12959   (exit $ac_status); } &&
12960          { ac_try='test -z "$ac_c_werror_flag"
12961                          || test ! -s conftest.err'
12962   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12963   (eval $ac_try) 2>&5
12964   ac_status=$?
12965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12966   (exit $ac_status); }; } &&
12967          { ac_try='test -s conftest.$ac_objext'
12968   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12969   (eval $ac_try) 2>&5
12970   ac_status=$?
12971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12972   (exit $ac_status); }; }; then
12973   ac_cv_c_const=yes
12974 else
12975   echo "$as_me: failed program was:" >&5
12976 sed 's/^/| /' conftest.$ac_ext >&5
12977
12978 ac_cv_c_const=no
12979 fi
12980 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12981 fi
12982 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
12983 echo "${ECHO_T}$ac_cv_c_const" >&6
12984 if test $ac_cv_c_const = no; then
12985
12986 cat >>confdefs.h <<\_ACEOF
12987 #define const
12988 _ACEOF
12989
12990 fi
12991
12992
12993
12994 echo "$as_me:$LINENO: checking how to get filesystem type" >&5
12995 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6
12996 fstype=no
12997 # The order of these tests is important.
12998 cat >conftest.$ac_ext <<_ACEOF
12999 /* confdefs.h.  */
13000 _ACEOF
13001 cat confdefs.h >>conftest.$ac_ext
13002 cat >>conftest.$ac_ext <<_ACEOF
13003 /* end confdefs.h.  */
13004 #include <sys/statvfs.h>
13005 #include <sys/fstyp.h>
13006 _ACEOF
13007 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13008   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13009   ac_status=$?
13010   grep -v '^ *+' conftest.er1 >conftest.err
13011   rm -f conftest.er1
13012   cat conftest.err >&5
13013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13014   (exit $ac_status); } >/dev/null; then
13015   if test -s conftest.err; then
13016     ac_cpp_err=$ac_c_preproc_warn_flag
13017     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13018   else
13019     ac_cpp_err=
13020   fi
13021 else
13022   ac_cpp_err=yes
13023 fi
13024 if test -z "$ac_cpp_err"; then
13025   cat >>confdefs.h <<\_ACEOF
13026 #define FSTYPE_STATVFS 1
13027 _ACEOF
13028  fstype=SVR4
13029 else
13030   echo "$as_me: failed program was:" >&5
13031 sed 's/^/| /' conftest.$ac_ext >&5
13032
13033
13034 fi
13035 rm -f conftest.err conftest.$ac_ext
13036 if test $fstype = no; then
13037 cat >conftest.$ac_ext <<_ACEOF
13038 /* confdefs.h.  */
13039 _ACEOF
13040 cat confdefs.h >>conftest.$ac_ext
13041 cat >>conftest.$ac_ext <<_ACEOF
13042 /* end confdefs.h.  */
13043 #include <sys/statfs.h>
13044 #include <sys/fstyp.h>
13045 _ACEOF
13046 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13047   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13048   ac_status=$?
13049   grep -v '^ *+' conftest.er1 >conftest.err
13050   rm -f conftest.er1
13051   cat conftest.err >&5
13052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13053   (exit $ac_status); } >/dev/null; then
13054   if test -s conftest.err; then
13055     ac_cpp_err=$ac_c_preproc_warn_flag
13056     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13057   else
13058     ac_cpp_err=
13059   fi
13060 else
13061   ac_cpp_err=yes
13062 fi
13063 if test -z "$ac_cpp_err"; then
13064   cat >>confdefs.h <<\_ACEOF
13065 #define FSTYPE_USG_STATFS 1
13066 _ACEOF
13067  fstype=SVR3
13068 else
13069   echo "$as_me: failed program was:" >&5
13070 sed 's/^/| /' conftest.$ac_ext >&5
13071
13072
13073 fi
13074 rm -f conftest.err conftest.$ac_ext
13075 fi
13076 if test $fstype = no; then
13077 cat >conftest.$ac_ext <<_ACEOF
13078 /* confdefs.h.  */
13079 _ACEOF
13080 cat confdefs.h >>conftest.$ac_ext
13081 cat >>conftest.$ac_ext <<_ACEOF
13082 /* end confdefs.h.  */
13083 #include <sys/statfs.h>
13084 #include <sys/vmount.h>
13085 _ACEOF
13086 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13087   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13088   ac_status=$?
13089   grep -v '^ *+' conftest.er1 >conftest.err
13090   rm -f conftest.er1
13091   cat conftest.err >&5
13092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13093   (exit $ac_status); } >/dev/null; then
13094   if test -s conftest.err; then
13095     ac_cpp_err=$ac_c_preproc_warn_flag
13096     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13097   else
13098     ac_cpp_err=
13099   fi
13100 else
13101   ac_cpp_err=yes
13102 fi
13103 if test -z "$ac_cpp_err"; then
13104   cat >>confdefs.h <<\_ACEOF
13105 #define FSTYPE_AIX_STATFS 1
13106 _ACEOF
13107  fstype=AIX
13108 else
13109   echo "$as_me: failed program was:" >&5
13110 sed 's/^/| /' conftest.$ac_ext >&5
13111
13112
13113 fi
13114 rm -f conftest.err conftest.$ac_ext
13115 fi
13116 if test $fstype = no; then
13117 cat >conftest.$ac_ext <<_ACEOF
13118 /* confdefs.h.  */
13119 _ACEOF
13120 cat confdefs.h >>conftest.$ac_ext
13121 cat >>conftest.$ac_ext <<_ACEOF
13122 /* end confdefs.h.  */
13123 #include <mntent.h>
13124 _ACEOF
13125 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13126   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13127   ac_status=$?
13128   grep -v '^ *+' conftest.er1 >conftest.err
13129   rm -f conftest.er1
13130   cat conftest.err >&5
13131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13132   (exit $ac_status); } >/dev/null; then
13133   if test -s conftest.err; then
13134     ac_cpp_err=$ac_c_preproc_warn_flag
13135     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13136   else
13137     ac_cpp_err=
13138   fi
13139 else
13140   ac_cpp_err=yes
13141 fi
13142 if test -z "$ac_cpp_err"; then
13143   cat >>confdefs.h <<\_ACEOF
13144 #define FSTYPE_MNTENT 1
13145 _ACEOF
13146  fstype=4.3BSD
13147 else
13148   echo "$as_me: failed program was:" >&5
13149 sed 's/^/| /' conftest.$ac_ext >&5
13150
13151
13152 fi
13153 rm -f conftest.err conftest.$ac_ext
13154 fi
13155 if test $fstype = no; then
13156 cat >conftest.$ac_ext <<_ACEOF
13157 /* confdefs.h.  */
13158 _ACEOF
13159 cat confdefs.h >>conftest.$ac_ext
13160 cat >>conftest.$ac_ext <<_ACEOF
13161 /* end confdefs.h.  */
13162 #include <sys/mount.h>
13163
13164 _ACEOF
13165 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13166   $EGREP "f_type;" >/dev/null 2>&1; then
13167   cat >>confdefs.h <<\_ACEOF
13168 #define FSTYPE_STATFS 1
13169 _ACEOF
13170  fstype=4.4BSD/OSF1
13171 fi
13172 rm -f conftest*
13173
13174 fi
13175 if test $fstype = no; then
13176 cat >conftest.$ac_ext <<_ACEOF
13177 /* confdefs.h.  */
13178 _ACEOF
13179 cat confdefs.h >>conftest.$ac_ext
13180 cat >>conftest.$ac_ext <<_ACEOF
13181 /* end confdefs.h.  */
13182 #include <sys/mount.h>
13183 #include <sys/fs_types.h>
13184 _ACEOF
13185 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13186   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13187   ac_status=$?
13188   grep -v '^ *+' conftest.er1 >conftest.err
13189   rm -f conftest.er1
13190   cat conftest.err >&5
13191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13192   (exit $ac_status); } >/dev/null; then
13193   if test -s conftest.err; then
13194     ac_cpp_err=$ac_c_preproc_warn_flag
13195     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13196   else
13197     ac_cpp_err=
13198   fi
13199 else
13200   ac_cpp_err=yes
13201 fi
13202 if test -z "$ac_cpp_err"; then
13203   cat >>confdefs.h <<\_ACEOF
13204 #define FSTYPE_GETMNT 1
13205 _ACEOF
13206  fstype=Ultrix
13207 else
13208   echo "$as_me: failed program was:" >&5
13209 sed 's/^/| /' conftest.$ac_ext >&5
13210
13211
13212 fi
13213 rm -f conftest.err conftest.$ac_ext
13214 fi
13215 echo "$as_me:$LINENO: result: $fstype" >&5
13216 echo "${ECHO_T}$fstype" >&6
13217
13218 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
13219 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
13220 if test "${ac_cv_type_signal+set}" = set; then
13221   echo $ECHO_N "(cached) $ECHO_C" >&6
13222 else
13223   cat >conftest.$ac_ext <<_ACEOF
13224 /* confdefs.h.  */
13225 _ACEOF
13226 cat confdefs.h >>conftest.$ac_ext
13227 cat >>conftest.$ac_ext <<_ACEOF
13228 /* end confdefs.h.  */
13229 #include <sys/types.h>
13230 #include <signal.h>
13231 #ifdef signal
13232 # undef signal
13233 #endif
13234 #ifdef __cplusplus
13235 extern "C" void (*signal (int, void (*)(int)))(int);
13236 #else
13237 void (*signal ()) ();
13238 #endif
13239
13240 int
13241 main ()
13242 {
13243 int i;
13244   ;
13245   return 0;
13246 }
13247 _ACEOF
13248 rm -f conftest.$ac_objext
13249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13250   (eval $ac_compile) 2>conftest.er1
13251   ac_status=$?
13252   grep -v '^ *+' conftest.er1 >conftest.err
13253   rm -f conftest.er1
13254   cat conftest.err >&5
13255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13256   (exit $ac_status); } &&
13257          { ac_try='test -z "$ac_c_werror_flag"
13258                          || test ! -s conftest.err'
13259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13260   (eval $ac_try) 2>&5
13261   ac_status=$?
13262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13263   (exit $ac_status); }; } &&
13264          { ac_try='test -s conftest.$ac_objext'
13265   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13266   (eval $ac_try) 2>&5
13267   ac_status=$?
13268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13269   (exit $ac_status); }; }; then
13270   ac_cv_type_signal=void
13271 else
13272   echo "$as_me: failed program was:" >&5
13273 sed 's/^/| /' conftest.$ac_ext >&5
13274
13275 ac_cv_type_signal=int
13276 fi
13277 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13278 fi
13279 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
13280 echo "${ECHO_T}$ac_cv_type_signal" >&6
13281
13282 cat >>confdefs.h <<_ACEOF
13283 #define RETSIGTYPE $ac_cv_type_signal
13284 _ACEOF
13285
13286
13287
13288 echo "$as_me:$LINENO: checking for type of signal functions" >&5
13289 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6
13290 if test "${bash_cv_signal_vintage+set}" = set; then
13291   echo $ECHO_N "(cached) $ECHO_C" >&6
13292 else
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     sigset_t ss;
13306     struct sigaction sa;
13307     sigemptyset(&ss); sigsuspend(&ss);
13308     sigaction(SIGINT, &sa, (struct sigaction *) 0);
13309     sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
13310
13311   ;
13312   return 0;
13313 }
13314 _ACEOF
13315 rm -f conftest.$ac_objext conftest$ac_exeext
13316 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13317   (eval $ac_link) 2>conftest.er1
13318   ac_status=$?
13319   grep -v '^ *+' conftest.er1 >conftest.err
13320   rm -f conftest.er1
13321   cat conftest.err >&5
13322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13323   (exit $ac_status); } &&
13324          { ac_try='test -z "$ac_c_werror_flag"
13325                          || test ! -s conftest.err'
13326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13327   (eval $ac_try) 2>&5
13328   ac_status=$?
13329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13330   (exit $ac_status); }; } &&
13331          { ac_try='test -s conftest$ac_exeext'
13332   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13333   (eval $ac_try) 2>&5
13334   ac_status=$?
13335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13336   (exit $ac_status); }; }; then
13337   bash_cv_signal_vintage=posix
13338 else
13339   echo "$as_me: failed program was:" >&5
13340 sed 's/^/| /' conftest.$ac_ext >&5
13341
13342
13343     cat >conftest.$ac_ext <<_ACEOF
13344 /* confdefs.h.  */
13345 _ACEOF
13346 cat confdefs.h >>conftest.$ac_ext
13347 cat >>conftest.$ac_ext <<_ACEOF
13348 /* end confdefs.h.  */
13349 #include <signal.h>
13350 int
13351 main ()
13352 {
13353
13354         int mask = sigmask(SIGINT);
13355         sigsetmask(mask); sigblock(mask); sigpause(mask);
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=4.2bsd
13384 else
13385   echo "$as_me: failed program was:" >&5
13386 sed 's/^/| /' conftest.$ac_ext >&5
13387
13388
13389       cat >conftest.$ac_ext <<_ACEOF
13390 /* confdefs.h.  */
13391 _ACEOF
13392 cat confdefs.h >>conftest.$ac_ext
13393 cat >>conftest.$ac_ext <<_ACEOF
13394 /* end confdefs.h.  */
13395
13396         #include <signal.h>
13397         RETSIGTYPE foo() { }
13398 int
13399 main ()
13400 {
13401
13402                 int mask = sigmask(SIGINT);
13403                 sigset(SIGINT, foo); sigrelse(SIGINT);
13404                 sighold(SIGINT); sigpause(SIGINT);
13405
13406   ;
13407   return 0;
13408 }
13409 _ACEOF
13410 rm -f conftest.$ac_objext conftest$ac_exeext
13411 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13412   (eval $ac_link) 2>conftest.er1
13413   ac_status=$?
13414   grep -v '^ *+' conftest.er1 >conftest.err
13415   rm -f conftest.er1
13416   cat conftest.err >&5
13417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13418   (exit $ac_status); } &&
13419          { ac_try='test -z "$ac_c_werror_flag"
13420                          || test ! -s conftest.err'
13421   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13422   (eval $ac_try) 2>&5
13423   ac_status=$?
13424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13425   (exit $ac_status); }; } &&
13426          { ac_try='test -s conftest$ac_exeext'
13427   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13428   (eval $ac_try) 2>&5
13429   ac_status=$?
13430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13431   (exit $ac_status); }; }; then
13432   bash_cv_signal_vintage=svr3
13433 else
13434   echo "$as_me: failed program was:" >&5
13435 sed 's/^/| /' conftest.$ac_ext >&5
13436
13437 bash_cv_signal_vintage=v7
13438
13439 fi
13440 rm -f conftest.err conftest.$ac_objext \
13441       conftest$ac_exeext conftest.$ac_ext
13442
13443 fi
13444 rm -f conftest.err conftest.$ac_objext \
13445       conftest$ac_exeext conftest.$ac_ext
13446
13447 fi
13448 rm -f conftest.err conftest.$ac_objext \
13449       conftest$ac_exeext conftest.$ac_ext
13450
13451 fi
13452
13453 echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
13454 echo "${ECHO_T}$bash_cv_signal_vintage" >&6
13455 if test "$bash_cv_signal_vintage" = posix; then
13456 cat >>confdefs.h <<\_ACEOF
13457 #define HAVE_POSIX_SIGNALS 1
13458 _ACEOF
13459
13460 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
13461 cat >>confdefs.h <<\_ACEOF
13462 #define HAVE_BSD_SIGNALS 1
13463 _ACEOF
13464
13465 elif test "$bash_cv_signal_vintage" = svr3; then
13466 cat >>confdefs.h <<\_ACEOF
13467 #define HAVE_USG_SIGHOLD 1
13468 _ACEOF
13469
13470 fi
13471
13472 echo "$as_me:$LINENO: checking for mode_t" >&5
13473 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
13474 if test "${ac_cv_type_mode_t+set}" = set; then
13475   echo $ECHO_N "(cached) $ECHO_C" >&6
13476 else
13477   cat >conftest.$ac_ext <<_ACEOF
13478 /* confdefs.h.  */
13479 _ACEOF
13480 cat confdefs.h >>conftest.$ac_ext
13481 cat >>conftest.$ac_ext <<_ACEOF
13482 /* end confdefs.h.  */
13483 $ac_includes_default
13484 int
13485 main ()
13486 {
13487 if ((mode_t *) 0)
13488   return 0;
13489 if (sizeof (mode_t))
13490   return 0;
13491   ;
13492   return 0;
13493 }
13494 _ACEOF
13495 rm -f conftest.$ac_objext
13496 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13497   (eval $ac_compile) 2>conftest.er1
13498   ac_status=$?
13499   grep -v '^ *+' conftest.er1 >conftest.err
13500   rm -f conftest.er1
13501   cat conftest.err >&5
13502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13503   (exit $ac_status); } &&
13504          { ac_try='test -z "$ac_c_werror_flag"
13505                          || test ! -s conftest.err'
13506   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13507   (eval $ac_try) 2>&5
13508   ac_status=$?
13509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13510   (exit $ac_status); }; } &&
13511          { ac_try='test -s conftest.$ac_objext'
13512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13513   (eval $ac_try) 2>&5
13514   ac_status=$?
13515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13516   (exit $ac_status); }; }; then
13517   ac_cv_type_mode_t=yes
13518 else
13519   echo "$as_me: failed program was:" >&5
13520 sed 's/^/| /' conftest.$ac_ext >&5
13521
13522 ac_cv_type_mode_t=no
13523 fi
13524 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13525 fi
13526 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
13527 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
13528 if test $ac_cv_type_mode_t = yes; then
13529   :
13530 else
13531
13532 cat >>confdefs.h <<_ACEOF
13533 #define mode_t int
13534 _ACEOF
13535
13536 fi
13537
13538 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
13539 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
13540 if test "${ac_cv_type_uid_t+set}" = set; then
13541   echo $ECHO_N "(cached) $ECHO_C" >&6
13542 else
13543   cat >conftest.$ac_ext <<_ACEOF
13544 /* confdefs.h.  */
13545 _ACEOF
13546 cat confdefs.h >>conftest.$ac_ext
13547 cat >>conftest.$ac_ext <<_ACEOF
13548 /* end confdefs.h.  */
13549 #include <sys/types.h>
13550
13551 _ACEOF
13552 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13553   $EGREP "uid_t" >/dev/null 2>&1; then
13554   ac_cv_type_uid_t=yes
13555 else
13556   ac_cv_type_uid_t=no
13557 fi
13558 rm -f conftest*
13559
13560 fi
13561 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
13562 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
13563 if test $ac_cv_type_uid_t = no; then
13564
13565 cat >>confdefs.h <<\_ACEOF
13566 #define uid_t int
13567 _ACEOF
13568
13569
13570 cat >>confdefs.h <<\_ACEOF
13571 #define gid_t int
13572 _ACEOF
13573
13574 fi
13575
13576 echo "$as_me:$LINENO: checking for size_t" >&5
13577 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
13578 if test "${ac_cv_type_size_t+set}" = set; then
13579   echo $ECHO_N "(cached) $ECHO_C" >&6
13580 else
13581   cat >conftest.$ac_ext <<_ACEOF
13582 /* confdefs.h.  */
13583 _ACEOF
13584 cat confdefs.h >>conftest.$ac_ext
13585 cat >>conftest.$ac_ext <<_ACEOF
13586 /* end confdefs.h.  */
13587 $ac_includes_default
13588 int
13589 main ()
13590 {
13591 if ((size_t *) 0)
13592   return 0;
13593 if (sizeof (size_t))
13594   return 0;
13595   ;
13596   return 0;
13597 }
13598 _ACEOF
13599 rm -f conftest.$ac_objext
13600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13601   (eval $ac_compile) 2>conftest.er1
13602   ac_status=$?
13603   grep -v '^ *+' conftest.er1 >conftest.err
13604   rm -f conftest.er1
13605   cat conftest.err >&5
13606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13607   (exit $ac_status); } &&
13608          { ac_try='test -z "$ac_c_werror_flag"
13609                          || test ! -s conftest.err'
13610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13611   (eval $ac_try) 2>&5
13612   ac_status=$?
13613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13614   (exit $ac_status); }; } &&
13615          { ac_try='test -s conftest.$ac_objext'
13616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13617   (eval $ac_try) 2>&5
13618   ac_status=$?
13619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13620   (exit $ac_status); }; }; then
13621   ac_cv_type_size_t=yes
13622 else
13623   echo "$as_me: failed program was:" >&5
13624 sed 's/^/| /' conftest.$ac_ext >&5
13625
13626 ac_cv_type_size_t=no
13627 fi
13628 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13629 fi
13630 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
13631 echo "${ECHO_T}$ac_cv_type_size_t" >&6
13632 if test $ac_cv_type_size_t = yes; then
13633   :
13634 else
13635
13636 cat >>confdefs.h <<_ACEOF
13637 #define size_t unsigned
13638 _ACEOF
13639
13640 fi
13641
13642 echo "$as_me:$LINENO: checking for pid_t" >&5
13643 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
13644 if test "${ac_cv_type_pid_t+set}" = set; then
13645   echo $ECHO_N "(cached) $ECHO_C" >&6
13646 else
13647   cat >conftest.$ac_ext <<_ACEOF
13648 /* confdefs.h.  */
13649 _ACEOF
13650 cat confdefs.h >>conftest.$ac_ext
13651 cat >>conftest.$ac_ext <<_ACEOF
13652 /* end confdefs.h.  */
13653 $ac_includes_default
13654 int
13655 main ()
13656 {
13657 if ((pid_t *) 0)
13658   return 0;
13659 if (sizeof (pid_t))
13660   return 0;
13661   ;
13662   return 0;
13663 }
13664 _ACEOF
13665 rm -f conftest.$ac_objext
13666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13667   (eval $ac_compile) 2>conftest.er1
13668   ac_status=$?
13669   grep -v '^ *+' conftest.er1 >conftest.err
13670   rm -f conftest.er1
13671   cat conftest.err >&5
13672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13673   (exit $ac_status); } &&
13674          { ac_try='test -z "$ac_c_werror_flag"
13675                          || test ! -s conftest.err'
13676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13677   (eval $ac_try) 2>&5
13678   ac_status=$?
13679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13680   (exit $ac_status); }; } &&
13681          { ac_try='test -s conftest.$ac_objext'
13682   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13683   (eval $ac_try) 2>&5
13684   ac_status=$?
13685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13686   (exit $ac_status); }; }; then
13687   ac_cv_type_pid_t=yes
13688 else
13689   echo "$as_me: failed program was:" >&5
13690 sed 's/^/| /' conftest.$ac_ext >&5
13691
13692 ac_cv_type_pid_t=no
13693 fi
13694 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13695 fi
13696 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
13697 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
13698 if test $ac_cv_type_pid_t = yes; then
13699   :
13700 else
13701
13702 cat >>confdefs.h <<_ACEOF
13703 #define pid_t int
13704 _ACEOF
13705
13706 fi
13707
13708 echo "$as_me:$LINENO: checking for off_t" >&5
13709 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
13710 if test "${ac_cv_type_off_t+set}" = set; then
13711   echo $ECHO_N "(cached) $ECHO_C" >&6
13712 else
13713   cat >conftest.$ac_ext <<_ACEOF
13714 /* confdefs.h.  */
13715 _ACEOF
13716 cat confdefs.h >>conftest.$ac_ext
13717 cat >>conftest.$ac_ext <<_ACEOF
13718 /* end confdefs.h.  */
13719 $ac_includes_default
13720 int
13721 main ()
13722 {
13723 if ((off_t *) 0)
13724   return 0;
13725 if (sizeof (off_t))
13726   return 0;
13727   ;
13728   return 0;
13729 }
13730 _ACEOF
13731 rm -f conftest.$ac_objext
13732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13733   (eval $ac_compile) 2>conftest.er1
13734   ac_status=$?
13735   grep -v '^ *+' conftest.er1 >conftest.err
13736   rm -f conftest.er1
13737   cat conftest.err >&5
13738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13739   (exit $ac_status); } &&
13740          { ac_try='test -z "$ac_c_werror_flag"
13741                          || test ! -s conftest.err'
13742   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13743   (eval $ac_try) 2>&5
13744   ac_status=$?
13745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13746   (exit $ac_status); }; } &&
13747          { ac_try='test -s conftest.$ac_objext'
13748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13749   (eval $ac_try) 2>&5
13750   ac_status=$?
13751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13752   (exit $ac_status); }; }; then
13753   ac_cv_type_off_t=yes
13754 else
13755   echo "$as_me: failed program was:" >&5
13756 sed 's/^/| /' conftest.$ac_ext >&5
13757
13758 ac_cv_type_off_t=no
13759 fi
13760 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13761 fi
13762 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
13763 echo "${ECHO_T}$ac_cv_type_off_t" >&6
13764 if test $ac_cv_type_off_t = yes; then
13765   :
13766 else
13767
13768 cat >>confdefs.h <<_ACEOF
13769 #define off_t long
13770 _ACEOF
13771
13772 fi
13773
13774 echo "$as_me:$LINENO: checking for ino_t" >&5
13775 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
13776 if test "${ac_cv_type_ino_t+set}" = set; then
13777   echo $ECHO_N "(cached) $ECHO_C" >&6
13778 else
13779   cat >conftest.$ac_ext <<_ACEOF
13780 /* confdefs.h.  */
13781 _ACEOF
13782 cat confdefs.h >>conftest.$ac_ext
13783 cat >>conftest.$ac_ext <<_ACEOF
13784 /* end confdefs.h.  */
13785 $ac_includes_default
13786 int
13787 main ()
13788 {
13789 if ((ino_t *) 0)
13790   return 0;
13791 if (sizeof (ino_t))
13792   return 0;
13793   ;
13794   return 0;
13795 }
13796 _ACEOF
13797 rm -f conftest.$ac_objext
13798 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13799   (eval $ac_compile) 2>conftest.er1
13800   ac_status=$?
13801   grep -v '^ *+' conftest.er1 >conftest.err
13802   rm -f conftest.er1
13803   cat conftest.err >&5
13804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13805   (exit $ac_status); } &&
13806          { ac_try='test -z "$ac_c_werror_flag"
13807                          || test ! -s conftest.err'
13808   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13809   (eval $ac_try) 2>&5
13810   ac_status=$?
13811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13812   (exit $ac_status); }; } &&
13813          { ac_try='test -s conftest.$ac_objext'
13814   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13815   (eval $ac_try) 2>&5
13816   ac_status=$?
13817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13818   (exit $ac_status); }; }; then
13819   ac_cv_type_ino_t=yes
13820 else
13821   echo "$as_me: failed program was:" >&5
13822 sed 's/^/| /' conftest.$ac_ext >&5
13823
13824 ac_cv_type_ino_t=no
13825 fi
13826 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13827 fi
13828 echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
13829 echo "${ECHO_T}$ac_cv_type_ino_t" >&6
13830 if test $ac_cv_type_ino_t = yes; then
13831   :
13832 else
13833
13834 cat >>confdefs.h <<_ACEOF
13835 #define ino_t unsigned long
13836 _ACEOF
13837
13838 fi
13839
13840 echo "$as_me:$LINENO: checking for dev_t" >&5
13841 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6
13842 if test "${ac_cv_type_dev_t+set}" = set; then
13843   echo $ECHO_N "(cached) $ECHO_C" >&6
13844 else
13845   cat >conftest.$ac_ext <<_ACEOF
13846 /* confdefs.h.  */
13847 _ACEOF
13848 cat confdefs.h >>conftest.$ac_ext
13849 cat >>conftest.$ac_ext <<_ACEOF
13850 /* end confdefs.h.  */
13851 $ac_includes_default
13852 int
13853 main ()
13854 {
13855 if ((dev_t *) 0)
13856   return 0;
13857 if (sizeof (dev_t))
13858   return 0;
13859   ;
13860   return 0;
13861 }
13862 _ACEOF
13863 rm -f conftest.$ac_objext
13864 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13865   (eval $ac_compile) 2>conftest.er1
13866   ac_status=$?
13867   grep -v '^ *+' conftest.er1 >conftest.err
13868   rm -f conftest.er1
13869   cat conftest.err >&5
13870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13871   (exit $ac_status); } &&
13872          { ac_try='test -z "$ac_c_werror_flag"
13873                          || test ! -s conftest.err'
13874   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13875   (eval $ac_try) 2>&5
13876   ac_status=$?
13877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13878   (exit $ac_status); }; } &&
13879          { ac_try='test -s conftest.$ac_objext'
13880   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13881   (eval $ac_try) 2>&5
13882   ac_status=$?
13883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13884   (exit $ac_status); }; }; then
13885   ac_cv_type_dev_t=yes
13886 else
13887   echo "$as_me: failed program was:" >&5
13888 sed 's/^/| /' conftest.$ac_ext >&5
13889
13890 ac_cv_type_dev_t=no
13891 fi
13892 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13893 fi
13894 echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
13895 echo "${ECHO_T}$ac_cv_type_dev_t" >&6
13896 if test $ac_cv_type_dev_t = yes; then
13897   :
13898 else
13899
13900 cat >>confdefs.h <<_ACEOF
13901 #define dev_t unsigned long
13902 _ACEOF
13903
13904 fi
13905
13906 echo "$as_me:$LINENO: checking for daddr_t" >&5
13907 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6
13908 if test "${ac_cv_type_daddr_t+set}" = set; then
13909   echo $ECHO_N "(cached) $ECHO_C" >&6
13910 else
13911   cat >conftest.$ac_ext <<_ACEOF
13912 /* confdefs.h.  */
13913 _ACEOF
13914 cat confdefs.h >>conftest.$ac_ext
13915 cat >>conftest.$ac_ext <<_ACEOF
13916 /* end confdefs.h.  */
13917 $ac_includes_default
13918 int
13919 main ()
13920 {
13921 if ((daddr_t *) 0)
13922   return 0;
13923 if (sizeof (daddr_t))
13924   return 0;
13925   ;
13926   return 0;
13927 }
13928 _ACEOF
13929 rm -f conftest.$ac_objext
13930 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13931   (eval $ac_compile) 2>conftest.er1
13932   ac_status=$?
13933   grep -v '^ *+' conftest.er1 >conftest.err
13934   rm -f conftest.er1
13935   cat conftest.err >&5
13936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13937   (exit $ac_status); } &&
13938          { ac_try='test -z "$ac_c_werror_flag"
13939                          || test ! -s conftest.err'
13940   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13941   (eval $ac_try) 2>&5
13942   ac_status=$?
13943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13944   (exit $ac_status); }; } &&
13945          { ac_try='test -s conftest.$ac_objext'
13946   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13947   (eval $ac_try) 2>&5
13948   ac_status=$?
13949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13950   (exit $ac_status); }; }; then
13951   ac_cv_type_daddr_t=yes
13952 else
13953   echo "$as_me: failed program was:" >&5
13954 sed 's/^/| /' conftest.$ac_ext >&5
13955
13956 ac_cv_type_daddr_t=no
13957 fi
13958 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13959 fi
13960 echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
13961 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6
13962 if test $ac_cv_type_daddr_t = yes; then
13963   :
13964 else
13965
13966 cat >>confdefs.h <<_ACEOF
13967 #define daddr_t long
13968 _ACEOF
13969
13970 fi
13971
13972 echo "$as_me:$LINENO: checking for major_t" >&5
13973 echo $ECHO_N "checking for major_t... $ECHO_C" >&6
13974 if test "${ac_cv_type_major_t+set}" = set; then
13975   echo $ECHO_N "(cached) $ECHO_C" >&6
13976 else
13977   cat >conftest.$ac_ext <<_ACEOF
13978 /* confdefs.h.  */
13979 _ACEOF
13980 cat confdefs.h >>conftest.$ac_ext
13981 cat >>conftest.$ac_ext <<_ACEOF
13982 /* end confdefs.h.  */
13983 $ac_includes_default
13984 int
13985 main ()
13986 {
13987 if ((major_t *) 0)
13988   return 0;
13989 if (sizeof (major_t))
13990   return 0;
13991   ;
13992   return 0;
13993 }
13994 _ACEOF
13995 rm -f conftest.$ac_objext
13996 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13997   (eval $ac_compile) 2>conftest.er1
13998   ac_status=$?
13999   grep -v '^ *+' conftest.er1 >conftest.err
14000   rm -f conftest.er1
14001   cat conftest.err >&5
14002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14003   (exit $ac_status); } &&
14004          { ac_try='test -z "$ac_c_werror_flag"
14005                          || test ! -s conftest.err'
14006   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14007   (eval $ac_try) 2>&5
14008   ac_status=$?
14009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14010   (exit $ac_status); }; } &&
14011          { ac_try='test -s conftest.$ac_objext'
14012   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14013   (eval $ac_try) 2>&5
14014   ac_status=$?
14015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14016   (exit $ac_status); }; }; then
14017   ac_cv_type_major_t=yes
14018 else
14019   echo "$as_me: failed program was:" >&5
14020 sed 's/^/| /' conftest.$ac_ext >&5
14021
14022 ac_cv_type_major_t=no
14023 fi
14024 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14025 fi
14026 echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
14027 echo "${ECHO_T}$ac_cv_type_major_t" >&6
14028 if test $ac_cv_type_major_t = yes; then
14029   :
14030 else
14031
14032 cat >>confdefs.h <<_ACEOF
14033 #define major_t int
14034 _ACEOF
14035
14036 fi
14037
14038 echo "$as_me:$LINENO: checking for minor_t" >&5
14039 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6
14040 if test "${ac_cv_type_minor_t+set}" = set; then
14041   echo $ECHO_N "(cached) $ECHO_C" >&6
14042 else
14043   cat >conftest.$ac_ext <<_ACEOF
14044 /* confdefs.h.  */
14045 _ACEOF
14046 cat confdefs.h >>conftest.$ac_ext
14047 cat >>conftest.$ac_ext <<_ACEOF
14048 /* end confdefs.h.  */
14049 $ac_includes_default
14050 int
14051 main ()
14052 {
14053 if ((minor_t *) 0)
14054   return 0;
14055 if (sizeof (minor_t))
14056   return 0;
14057   ;
14058   return 0;
14059 }
14060 _ACEOF
14061 rm -f conftest.$ac_objext
14062 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14063   (eval $ac_compile) 2>conftest.er1
14064   ac_status=$?
14065   grep -v '^ *+' conftest.er1 >conftest.err
14066   rm -f conftest.er1
14067   cat conftest.err >&5
14068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14069   (exit $ac_status); } &&
14070          { ac_try='test -z "$ac_c_werror_flag"
14071                          || test ! -s conftest.err'
14072   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14073   (eval $ac_try) 2>&5
14074   ac_status=$?
14075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14076   (exit $ac_status); }; } &&
14077          { ac_try='test -s conftest.$ac_objext'
14078   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14079   (eval $ac_try) 2>&5
14080   ac_status=$?
14081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14082   (exit $ac_status); }; }; then
14083   ac_cv_type_minor_t=yes
14084 else
14085   echo "$as_me: failed program was:" >&5
14086 sed 's/^/| /' conftest.$ac_ext >&5
14087
14088 ac_cv_type_minor_t=no
14089 fi
14090 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14091 fi
14092 echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
14093 echo "${ECHO_T}$ac_cv_type_minor_t" >&6
14094 if test $ac_cv_type_minor_t = yes; then
14095   :
14096 else
14097
14098 cat >>confdefs.h <<_ACEOF
14099 #define minor_t int
14100 _ACEOF
14101
14102 fi
14103
14104 echo "$as_me:$LINENO: checking for ssize_t" >&5
14105 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
14106 if test "${ac_cv_type_ssize_t+set}" = set; then
14107   echo $ECHO_N "(cached) $ECHO_C" >&6
14108 else
14109   cat >conftest.$ac_ext <<_ACEOF
14110 /* confdefs.h.  */
14111 _ACEOF
14112 cat confdefs.h >>conftest.$ac_ext
14113 cat >>conftest.$ac_ext <<_ACEOF
14114 /* end confdefs.h.  */
14115 $ac_includes_default
14116 int
14117 main ()
14118 {
14119 if ((ssize_t *) 0)
14120   return 0;
14121 if (sizeof (ssize_t))
14122   return 0;
14123   ;
14124   return 0;
14125 }
14126 _ACEOF
14127 rm -f conftest.$ac_objext
14128 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14129   (eval $ac_compile) 2>conftest.er1
14130   ac_status=$?
14131   grep -v '^ *+' conftest.er1 >conftest.err
14132   rm -f conftest.er1
14133   cat conftest.err >&5
14134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14135   (exit $ac_status); } &&
14136          { ac_try='test -z "$ac_c_werror_flag"
14137                          || test ! -s conftest.err'
14138   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14139   (eval $ac_try) 2>&5
14140   ac_status=$?
14141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14142   (exit $ac_status); }; } &&
14143          { ac_try='test -s conftest.$ac_objext'
14144   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14145   (eval $ac_try) 2>&5
14146   ac_status=$?
14147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14148   (exit $ac_status); }; }; then
14149   ac_cv_type_ssize_t=yes
14150 else
14151   echo "$as_me: failed program was:" >&5
14152 sed 's/^/| /' conftest.$ac_ext >&5
14153
14154 ac_cv_type_ssize_t=no
14155 fi
14156 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14157 fi
14158 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
14159 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
14160 if test $ac_cv_type_ssize_t = yes; then
14161   :
14162 else
14163
14164 cat >>confdefs.h <<_ACEOF
14165 #define ssize_t int
14166 _ACEOF
14167
14168 fi
14169
14170 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
14171 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
14172 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
14173   echo $ECHO_N "(cached) $ECHO_C" >&6
14174 else
14175   cat >conftest.$ac_ext <<_ACEOF
14176 /* confdefs.h.  */
14177 _ACEOF
14178 cat confdefs.h >>conftest.$ac_ext
14179 cat >>conftest.$ac_ext <<_ACEOF
14180 /* end confdefs.h.  */
14181 $ac_includes_default
14182 int
14183 main ()
14184 {
14185 static struct stat ac_aggr;
14186 if (ac_aggr.st_blocks)
14187 return 0;
14188   ;
14189   return 0;
14190 }
14191 _ACEOF
14192 rm -f conftest.$ac_objext
14193 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14194   (eval $ac_compile) 2>conftest.er1
14195   ac_status=$?
14196   grep -v '^ *+' conftest.er1 >conftest.err
14197   rm -f conftest.er1
14198   cat conftest.err >&5
14199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14200   (exit $ac_status); } &&
14201          { ac_try='test -z "$ac_c_werror_flag"
14202                          || test ! -s conftest.err'
14203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14204   (eval $ac_try) 2>&5
14205   ac_status=$?
14206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14207   (exit $ac_status); }; } &&
14208          { ac_try='test -s conftest.$ac_objext'
14209   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14210   (eval $ac_try) 2>&5
14211   ac_status=$?
14212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14213   (exit $ac_status); }; }; then
14214   ac_cv_member_struct_stat_st_blocks=yes
14215 else
14216   echo "$as_me: failed program was:" >&5
14217 sed 's/^/| /' conftest.$ac_ext >&5
14218
14219 cat >conftest.$ac_ext <<_ACEOF
14220 /* confdefs.h.  */
14221 _ACEOF
14222 cat confdefs.h >>conftest.$ac_ext
14223 cat >>conftest.$ac_ext <<_ACEOF
14224 /* end confdefs.h.  */
14225 $ac_includes_default
14226 int
14227 main ()
14228 {
14229 static struct stat ac_aggr;
14230 if (sizeof ac_aggr.st_blocks)
14231 return 0;
14232   ;
14233   return 0;
14234 }
14235 _ACEOF
14236 rm -f conftest.$ac_objext
14237 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14238   (eval $ac_compile) 2>conftest.er1
14239   ac_status=$?
14240   grep -v '^ *+' conftest.er1 >conftest.err
14241   rm -f conftest.er1
14242   cat conftest.err >&5
14243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14244   (exit $ac_status); } &&
14245          { ac_try='test -z "$ac_c_werror_flag"
14246                          || test ! -s conftest.err'
14247   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14248   (eval $ac_try) 2>&5
14249   ac_status=$?
14250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14251   (exit $ac_status); }; } &&
14252          { ac_try='test -s conftest.$ac_objext'
14253   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14254   (eval $ac_try) 2>&5
14255   ac_status=$?
14256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14257   (exit $ac_status); }; }; then
14258   ac_cv_member_struct_stat_st_blocks=yes
14259 else
14260   echo "$as_me: failed program was:" >&5
14261 sed 's/^/| /' conftest.$ac_ext >&5
14262
14263 ac_cv_member_struct_stat_st_blocks=no
14264 fi
14265 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14266 fi
14267 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14268 fi
14269 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
14270 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
14271 if test $ac_cv_member_struct_stat_st_blocks = yes; then
14272
14273 cat >>confdefs.h <<_ACEOF
14274 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
14275 _ACEOF
14276
14277
14278 cat >>confdefs.h <<\_ACEOF
14279 #define HAVE_ST_BLOCKS 1
14280 _ACEOF
14281
14282 else
14283   case $LIBOBJS in
14284     "fileblocks.$ac_objext"   | \
14285   *" fileblocks.$ac_objext"   | \
14286     "fileblocks.$ac_objext "* | \
14287   *" fileblocks.$ac_objext "* ) ;;
14288   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;;
14289 esac
14290
14291 fi
14292
14293
14294
14295 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
14296 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
14297 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
14298   echo $ECHO_N "(cached) $ECHO_C" >&6
14299 else
14300   cat >conftest.$ac_ext <<_ACEOF
14301 /* confdefs.h.  */
14302 _ACEOF
14303 cat confdefs.h >>conftest.$ac_ext
14304 cat >>conftest.$ac_ext <<_ACEOF
14305 /* end confdefs.h.  */
14306 $ac_includes_default
14307 int
14308 main ()
14309 {
14310 static struct stat ac_aggr;
14311 if (ac_aggr.st_rdev)
14312 return 0;
14313   ;
14314   return 0;
14315 }
14316 _ACEOF
14317 rm -f conftest.$ac_objext
14318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14319   (eval $ac_compile) 2>conftest.er1
14320   ac_status=$?
14321   grep -v '^ *+' conftest.er1 >conftest.err
14322   rm -f conftest.er1
14323   cat conftest.err >&5
14324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14325   (exit $ac_status); } &&
14326          { ac_try='test -z "$ac_c_werror_flag"
14327                          || test ! -s conftest.err'
14328   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14329   (eval $ac_try) 2>&5
14330   ac_status=$?
14331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14332   (exit $ac_status); }; } &&
14333          { ac_try='test -s conftest.$ac_objext'
14334   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14335   (eval $ac_try) 2>&5
14336   ac_status=$?
14337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14338   (exit $ac_status); }; }; then
14339   ac_cv_member_struct_stat_st_rdev=yes
14340 else
14341   echo "$as_me: failed program was:" >&5
14342 sed 's/^/| /' conftest.$ac_ext >&5
14343
14344 cat >conftest.$ac_ext <<_ACEOF
14345 /* confdefs.h.  */
14346 _ACEOF
14347 cat confdefs.h >>conftest.$ac_ext
14348 cat >>conftest.$ac_ext <<_ACEOF
14349 /* end confdefs.h.  */
14350 $ac_includes_default
14351 int
14352 main ()
14353 {
14354 static struct stat ac_aggr;
14355 if (sizeof ac_aggr.st_rdev)
14356 return 0;
14357   ;
14358   return 0;
14359 }
14360 _ACEOF
14361 rm -f conftest.$ac_objext
14362 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14363   (eval $ac_compile) 2>conftest.er1
14364   ac_status=$?
14365   grep -v '^ *+' conftest.er1 >conftest.err
14366   rm -f conftest.er1
14367   cat conftest.err >&5
14368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14369   (exit $ac_status); } &&
14370          { ac_try='test -z "$ac_c_werror_flag"
14371                          || test ! -s conftest.err'
14372   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14373   (eval $ac_try) 2>&5
14374   ac_status=$?
14375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14376   (exit $ac_status); }; } &&
14377          { ac_try='test -s conftest.$ac_objext'
14378   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14379   (eval $ac_try) 2>&5
14380   ac_status=$?
14381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14382   (exit $ac_status); }; }; then
14383   ac_cv_member_struct_stat_st_rdev=yes
14384 else
14385   echo "$as_me: failed program was:" >&5
14386 sed 's/^/| /' conftest.$ac_ext >&5
14387
14388 ac_cv_member_struct_stat_st_rdev=no
14389 fi
14390 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14391 fi
14392 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14393 fi
14394 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
14395 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
14396 if test $ac_cv_member_struct_stat_st_rdev = yes; then
14397
14398 cat >>confdefs.h <<_ACEOF
14399 #define HAVE_STRUCT_STAT_ST_RDEV 1
14400 _ACEOF
14401
14402
14403 cat >>confdefs.h <<\_ACEOF
14404 #define HAVE_ST_RDEV 1
14405 _ACEOF
14406
14407 fi
14408
14409
14410 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
14411 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
14412 if test "${ac_cv_struct_tm+set}" = set; then
14413   echo $ECHO_N "(cached) $ECHO_C" >&6
14414 else
14415   cat >conftest.$ac_ext <<_ACEOF
14416 /* confdefs.h.  */
14417 _ACEOF
14418 cat confdefs.h >>conftest.$ac_ext
14419 cat >>conftest.$ac_ext <<_ACEOF
14420 /* end confdefs.h.  */
14421 #include <sys/types.h>
14422 #include <time.h>
14423
14424 int
14425 main ()
14426 {
14427 struct tm *tp; tp->tm_sec;
14428   ;
14429   return 0;
14430 }
14431 _ACEOF
14432 rm -f conftest.$ac_objext
14433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14434   (eval $ac_compile) 2>conftest.er1
14435   ac_status=$?
14436   grep -v '^ *+' conftest.er1 >conftest.err
14437   rm -f conftest.er1
14438   cat conftest.err >&5
14439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14440   (exit $ac_status); } &&
14441          { ac_try='test -z "$ac_c_werror_flag"
14442                          || test ! -s conftest.err'
14443   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14444   (eval $ac_try) 2>&5
14445   ac_status=$?
14446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14447   (exit $ac_status); }; } &&
14448          { ac_try='test -s conftest.$ac_objext'
14449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14450   (eval $ac_try) 2>&5
14451   ac_status=$?
14452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14453   (exit $ac_status); }; }; then
14454   ac_cv_struct_tm=time.h
14455 else
14456   echo "$as_me: failed program was:" >&5
14457 sed 's/^/| /' conftest.$ac_ext >&5
14458
14459 ac_cv_struct_tm=sys/time.h
14460 fi
14461 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14462 fi
14463 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
14464 echo "${ECHO_T}$ac_cv_struct_tm" >&6
14465 if test $ac_cv_struct_tm = sys/time.h; then
14466
14467 cat >>confdefs.h <<\_ACEOF
14468 #define TM_IN_SYS_TIME 1
14469 _ACEOF
14470
14471 fi
14472
14473 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
14474 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
14475 if test "${ac_cv_c_const+set}" = set; then
14476   echo $ECHO_N "(cached) $ECHO_C" >&6
14477 else
14478   cat >conftest.$ac_ext <<_ACEOF
14479 /* confdefs.h.  */
14480 _ACEOF
14481 cat confdefs.h >>conftest.$ac_ext
14482 cat >>conftest.$ac_ext <<_ACEOF
14483 /* end confdefs.h.  */
14484
14485 int
14486 main ()
14487 {
14488 /* FIXME: Include the comments suggested by Paul. */
14489 #ifndef __cplusplus
14490   /* Ultrix mips cc rejects this.  */
14491   typedef int charset[2];
14492   const charset x;
14493   /* SunOS 4.1.1 cc rejects this.  */
14494   char const *const *ccp;
14495   char **p;
14496   /* NEC SVR4.0.2 mips cc rejects this.  */
14497   struct point {int x, y;};
14498   static struct point const zero = {0,0};
14499   /* AIX XL C 1.02.0.0 rejects this.
14500      It does not let you subtract one const X* pointer from another in
14501      an arm of an if-expression whose if-part is not a constant
14502      expression */
14503   const char *g = "string";
14504   ccp = &g + (g ? g-g : 0);
14505   /* HPUX 7.0 cc rejects these. */
14506   ++ccp;
14507   p = (char**) ccp;
14508   ccp = (char const *const *) p;
14509   { /* SCO 3.2v4 cc rejects this.  */
14510     char *t;
14511     char const *s = 0 ? (char *) 0 : (char const *) 0;
14512
14513     *t++ = 0;
14514   }
14515   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
14516     int x[] = {25, 17};
14517     const int *foo = &x[0];
14518     ++foo;
14519   }
14520   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14521     typedef const int *iptr;
14522     iptr p = 0;
14523     ++p;
14524   }
14525   { /* AIX XL C 1.02.0.0 rejects this saying
14526        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14527     struct s { int j; const int *ap[3]; };
14528     struct s *b; b->j = 5;
14529   }
14530   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14531     const int foo = 10;
14532   }
14533 #endif
14534
14535   ;
14536   return 0;
14537 }
14538 _ACEOF
14539 rm -f conftest.$ac_objext
14540 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14541   (eval $ac_compile) 2>conftest.er1
14542   ac_status=$?
14543   grep -v '^ *+' conftest.er1 >conftest.err
14544   rm -f conftest.er1
14545   cat conftest.err >&5
14546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14547   (exit $ac_status); } &&
14548          { ac_try='test -z "$ac_c_werror_flag"
14549                          || test ! -s conftest.err'
14550   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14551   (eval $ac_try) 2>&5
14552   ac_status=$?
14553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14554   (exit $ac_status); }; } &&
14555          { ac_try='test -s conftest.$ac_objext'
14556   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14557   (eval $ac_try) 2>&5
14558   ac_status=$?
14559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14560   (exit $ac_status); }; }; then
14561   ac_cv_c_const=yes
14562 else
14563   echo "$as_me: failed program was:" >&5
14564 sed 's/^/| /' conftest.$ac_ext >&5
14565
14566 ac_cv_c_const=no
14567 fi
14568 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14569 fi
14570 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
14571 echo "${ECHO_T}$ac_cv_c_const" >&6
14572 if test $ac_cv_c_const = no; then
14573
14574 cat >>confdefs.h <<\_ACEOF
14575 #define const
14576 _ACEOF
14577
14578 fi
14579
14580
14581
14582 echo "$as_me:$LINENO: checking for char" >&5
14583 echo $ECHO_N "checking for char... $ECHO_C" >&6
14584 if test "${ac_cv_type_char+set}" = set; then
14585   echo $ECHO_N "(cached) $ECHO_C" >&6
14586 else
14587   cat >conftest.$ac_ext <<_ACEOF
14588 /* confdefs.h.  */
14589 _ACEOF
14590 cat confdefs.h >>conftest.$ac_ext
14591 cat >>conftest.$ac_ext <<_ACEOF
14592 /* end confdefs.h.  */
14593 $ac_includes_default
14594 int
14595 main ()
14596 {
14597 if ((char *) 0)
14598   return 0;
14599 if (sizeof (char))
14600   return 0;
14601   ;
14602   return 0;
14603 }
14604 _ACEOF
14605 rm -f conftest.$ac_objext
14606 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14607   (eval $ac_compile) 2>conftest.er1
14608   ac_status=$?
14609   grep -v '^ *+' conftest.er1 >conftest.err
14610   rm -f conftest.er1
14611   cat conftest.err >&5
14612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14613   (exit $ac_status); } &&
14614          { ac_try='test -z "$ac_c_werror_flag"
14615                          || test ! -s conftest.err'
14616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14617   (eval $ac_try) 2>&5
14618   ac_status=$?
14619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14620   (exit $ac_status); }; } &&
14621          { ac_try='test -s conftest.$ac_objext'
14622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14623   (eval $ac_try) 2>&5
14624   ac_status=$?
14625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14626   (exit $ac_status); }; }; then
14627   ac_cv_type_char=yes
14628 else
14629   echo "$as_me: failed program was:" >&5
14630 sed 's/^/| /' conftest.$ac_ext >&5
14631
14632 ac_cv_type_char=no
14633 fi
14634 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14635 fi
14636 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
14637 echo "${ECHO_T}$ac_cv_type_char" >&6
14638
14639 echo "$as_me:$LINENO: checking size of char" >&5
14640 echo $ECHO_N "checking size of char... $ECHO_C" >&6
14641 if test "${ac_cv_sizeof_char+set}" = set; then
14642   echo $ECHO_N "(cached) $ECHO_C" >&6
14643 else
14644   if test "$ac_cv_type_char" = yes; then
14645   # The cast to unsigned long works around a bug in the HP C Compiler
14646   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14647   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14648   # This bug is HP SR number 8606223364.
14649   if test "$cross_compiling" = yes; then
14650   # Depending upon the size, compute the lo and hi bounds.
14651 cat >conftest.$ac_ext <<_ACEOF
14652 /* confdefs.h.  */
14653 _ACEOF
14654 cat confdefs.h >>conftest.$ac_ext
14655 cat >>conftest.$ac_ext <<_ACEOF
14656 /* end confdefs.h.  */
14657 $ac_includes_default
14658 int
14659 main ()
14660 {
14661 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
14662 test_array [0] = 0
14663
14664   ;
14665   return 0;
14666 }
14667 _ACEOF
14668 rm -f conftest.$ac_objext
14669 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14670   (eval $ac_compile) 2>conftest.er1
14671   ac_status=$?
14672   grep -v '^ *+' conftest.er1 >conftest.err
14673   rm -f conftest.er1
14674   cat conftest.err >&5
14675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14676   (exit $ac_status); } &&
14677          { ac_try='test -z "$ac_c_werror_flag"
14678                          || test ! -s conftest.err'
14679   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14680   (eval $ac_try) 2>&5
14681   ac_status=$?
14682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14683   (exit $ac_status); }; } &&
14684          { ac_try='test -s conftest.$ac_objext'
14685   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14686   (eval $ac_try) 2>&5
14687   ac_status=$?
14688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14689   (exit $ac_status); }; }; then
14690   ac_lo=0 ac_mid=0
14691   while :; do
14692     cat >conftest.$ac_ext <<_ACEOF
14693 /* confdefs.h.  */
14694 _ACEOF
14695 cat confdefs.h >>conftest.$ac_ext
14696 cat >>conftest.$ac_ext <<_ACEOF
14697 /* end confdefs.h.  */
14698 $ac_includes_default
14699 int
14700 main ()
14701 {
14702 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
14703 test_array [0] = 0
14704
14705   ;
14706   return 0;
14707 }
14708 _ACEOF
14709 rm -f conftest.$ac_objext
14710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14711   (eval $ac_compile) 2>conftest.er1
14712   ac_status=$?
14713   grep -v '^ *+' conftest.er1 >conftest.err
14714   rm -f conftest.er1
14715   cat conftest.err >&5
14716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14717   (exit $ac_status); } &&
14718          { ac_try='test -z "$ac_c_werror_flag"
14719                          || test ! -s conftest.err'
14720   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14721   (eval $ac_try) 2>&5
14722   ac_status=$?
14723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14724   (exit $ac_status); }; } &&
14725          { ac_try='test -s conftest.$ac_objext'
14726   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14727   (eval $ac_try) 2>&5
14728   ac_status=$?
14729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14730   (exit $ac_status); }; }; then
14731   ac_hi=$ac_mid; break
14732 else
14733   echo "$as_me: failed program was:" >&5
14734 sed 's/^/| /' conftest.$ac_ext >&5
14735
14736 ac_lo=`expr $ac_mid + 1`
14737                     if test $ac_lo -le $ac_mid; then
14738                       ac_lo= ac_hi=
14739                       break
14740                     fi
14741                     ac_mid=`expr 2 '*' $ac_mid + 1`
14742 fi
14743 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14744   done
14745 else
14746   echo "$as_me: failed program was:" >&5
14747 sed 's/^/| /' conftest.$ac_ext >&5
14748
14749 cat >conftest.$ac_ext <<_ACEOF
14750 /* confdefs.h.  */
14751 _ACEOF
14752 cat confdefs.h >>conftest.$ac_ext
14753 cat >>conftest.$ac_ext <<_ACEOF
14754 /* end confdefs.h.  */
14755 $ac_includes_default
14756 int
14757 main ()
14758 {
14759 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
14760 test_array [0] = 0
14761
14762   ;
14763   return 0;
14764 }
14765 _ACEOF
14766 rm -f conftest.$ac_objext
14767 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14768   (eval $ac_compile) 2>conftest.er1
14769   ac_status=$?
14770   grep -v '^ *+' conftest.er1 >conftest.err
14771   rm -f conftest.er1
14772   cat conftest.err >&5
14773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14774   (exit $ac_status); } &&
14775          { ac_try='test -z "$ac_c_werror_flag"
14776                          || test ! -s conftest.err'
14777   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14778   (eval $ac_try) 2>&5
14779   ac_status=$?
14780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14781   (exit $ac_status); }; } &&
14782          { ac_try='test -s conftest.$ac_objext'
14783   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14784   (eval $ac_try) 2>&5
14785   ac_status=$?
14786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14787   (exit $ac_status); }; }; then
14788   ac_hi=-1 ac_mid=-1
14789   while :; do
14790     cat >conftest.$ac_ext <<_ACEOF
14791 /* confdefs.h.  */
14792 _ACEOF
14793 cat confdefs.h >>conftest.$ac_ext
14794 cat >>conftest.$ac_ext <<_ACEOF
14795 /* end confdefs.h.  */
14796 $ac_includes_default
14797 int
14798 main ()
14799 {
14800 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
14801 test_array [0] = 0
14802
14803   ;
14804   return 0;
14805 }
14806 _ACEOF
14807 rm -f conftest.$ac_objext
14808 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14809   (eval $ac_compile) 2>conftest.er1
14810   ac_status=$?
14811   grep -v '^ *+' conftest.er1 >conftest.err
14812   rm -f conftest.er1
14813   cat conftest.err >&5
14814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14815   (exit $ac_status); } &&
14816          { ac_try='test -z "$ac_c_werror_flag"
14817                          || test ! -s conftest.err'
14818   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14819   (eval $ac_try) 2>&5
14820   ac_status=$?
14821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14822   (exit $ac_status); }; } &&
14823          { ac_try='test -s conftest.$ac_objext'
14824   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14825   (eval $ac_try) 2>&5
14826   ac_status=$?
14827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14828   (exit $ac_status); }; }; then
14829   ac_lo=$ac_mid; break
14830 else
14831   echo "$as_me: failed program was:" >&5
14832 sed 's/^/| /' conftest.$ac_ext >&5
14833
14834 ac_hi=`expr '(' $ac_mid ')' - 1`
14835                        if test $ac_mid -le $ac_hi; then
14836                          ac_lo= ac_hi=
14837                          break
14838                        fi
14839                        ac_mid=`expr 2 '*' $ac_mid`
14840 fi
14841 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14842   done
14843 else
14844   echo "$as_me: failed program was:" >&5
14845 sed 's/^/| /' conftest.$ac_ext >&5
14846
14847 ac_lo= ac_hi=
14848 fi
14849 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14850 fi
14851 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14852 # Binary search between lo and hi bounds.
14853 while test "x$ac_lo" != "x$ac_hi"; do
14854   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14855   cat >conftest.$ac_ext <<_ACEOF
14856 /* confdefs.h.  */
14857 _ACEOF
14858 cat confdefs.h >>conftest.$ac_ext
14859 cat >>conftest.$ac_ext <<_ACEOF
14860 /* end confdefs.h.  */
14861 $ac_includes_default
14862 int
14863 main ()
14864 {
14865 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
14866 test_array [0] = 0
14867
14868   ;
14869   return 0;
14870 }
14871 _ACEOF
14872 rm -f conftest.$ac_objext
14873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14874   (eval $ac_compile) 2>conftest.er1
14875   ac_status=$?
14876   grep -v '^ *+' conftest.er1 >conftest.err
14877   rm -f conftest.er1
14878   cat conftest.err >&5
14879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14880   (exit $ac_status); } &&
14881          { ac_try='test -z "$ac_c_werror_flag"
14882                          || test ! -s conftest.err'
14883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14884   (eval $ac_try) 2>&5
14885   ac_status=$?
14886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14887   (exit $ac_status); }; } &&
14888          { ac_try='test -s conftest.$ac_objext'
14889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14890   (eval $ac_try) 2>&5
14891   ac_status=$?
14892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14893   (exit $ac_status); }; }; then
14894   ac_hi=$ac_mid
14895 else
14896   echo "$as_me: failed program was:" >&5
14897 sed 's/^/| /' conftest.$ac_ext >&5
14898
14899 ac_lo=`expr '(' $ac_mid ')' + 1`
14900 fi
14901 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14902 done
14903 case $ac_lo in
14904 ?*) ac_cv_sizeof_char=$ac_lo;;
14905 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14906 See \`config.log' for more details." >&5
14907 echo "$as_me: error: cannot compute sizeof (char), 77
14908 See \`config.log' for more details." >&2;}
14909    { (exit 1); exit 1; }; } ;;
14910 esac
14911 else
14912   if test "$cross_compiling" = yes; then
14913   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14914 See \`config.log' for more details." >&5
14915 echo "$as_me: error: cannot run test program while cross compiling
14916 See \`config.log' for more details." >&2;}
14917    { (exit 1); exit 1; }; }
14918 else
14919   cat >conftest.$ac_ext <<_ACEOF
14920 /* confdefs.h.  */
14921 _ACEOF
14922 cat confdefs.h >>conftest.$ac_ext
14923 cat >>conftest.$ac_ext <<_ACEOF
14924 /* end confdefs.h.  */
14925 $ac_includes_default
14926 long longval () { return (long) (sizeof (char)); }
14927 unsigned long ulongval () { return (long) (sizeof (char)); }
14928 #include <stdio.h>
14929 #include <stdlib.h>
14930 int
14931 main ()
14932 {
14933
14934   FILE *f = fopen ("conftest.val", "w");
14935   if (! f)
14936     exit (1);
14937   if (((long) (sizeof (char))) < 0)
14938     {
14939       long i = longval ();
14940       if (i != ((long) (sizeof (char))))
14941         exit (1);
14942       fprintf (f, "%ld\n", i);
14943     }
14944   else
14945     {
14946       unsigned long i = ulongval ();
14947       if (i != ((long) (sizeof (char))))
14948         exit (1);
14949       fprintf (f, "%lu\n", i);
14950     }
14951   exit (ferror (f) || fclose (f) != 0);
14952
14953   ;
14954   return 0;
14955 }
14956 _ACEOF
14957 rm -f conftest$ac_exeext
14958 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14959   (eval $ac_link) 2>&5
14960   ac_status=$?
14961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14962   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14963   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14964   (eval $ac_try) 2>&5
14965   ac_status=$?
14966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14967   (exit $ac_status); }; }; then
14968   ac_cv_sizeof_char=`cat conftest.val`
14969 else
14970   echo "$as_me: program exited with status $ac_status" >&5
14971 echo "$as_me: failed program was:" >&5
14972 sed 's/^/| /' conftest.$ac_ext >&5
14973
14974 ( exit $ac_status )
14975 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14976 See \`config.log' for more details." >&5
14977 echo "$as_me: error: cannot compute sizeof (char), 77
14978 See \`config.log' for more details." >&2;}
14979    { (exit 1); exit 1; }; }
14980 fi
14981 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14982 fi
14983 fi
14984 rm -f conftest.val
14985 else
14986   ac_cv_sizeof_char=0
14987 fi
14988 fi
14989 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
14990 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
14991 cat >>confdefs.h <<_ACEOF
14992 #define SIZEOF_CHAR $ac_cv_sizeof_char
14993 _ACEOF
14994
14995
14996 echo "$as_me:$LINENO: checking for short int" >&5
14997 echo $ECHO_N "checking for short int... $ECHO_C" >&6
14998 if test "${ac_cv_type_short_int+set}" = set; then
14999   echo $ECHO_N "(cached) $ECHO_C" >&6
15000 else
15001   cat >conftest.$ac_ext <<_ACEOF
15002 /* confdefs.h.  */
15003 _ACEOF
15004 cat confdefs.h >>conftest.$ac_ext
15005 cat >>conftest.$ac_ext <<_ACEOF
15006 /* end confdefs.h.  */
15007 $ac_includes_default
15008 int
15009 main ()
15010 {
15011 if ((short int *) 0)
15012   return 0;
15013 if (sizeof (short int))
15014   return 0;
15015   ;
15016   return 0;
15017 }
15018 _ACEOF
15019 rm -f conftest.$ac_objext
15020 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15021   (eval $ac_compile) 2>conftest.er1
15022   ac_status=$?
15023   grep -v '^ *+' conftest.er1 >conftest.err
15024   rm -f conftest.er1
15025   cat conftest.err >&5
15026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15027   (exit $ac_status); } &&
15028          { ac_try='test -z "$ac_c_werror_flag"
15029                          || test ! -s conftest.err'
15030   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15031   (eval $ac_try) 2>&5
15032   ac_status=$?
15033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15034   (exit $ac_status); }; } &&
15035          { ac_try='test -s conftest.$ac_objext'
15036   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15037   (eval $ac_try) 2>&5
15038   ac_status=$?
15039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15040   (exit $ac_status); }; }; then
15041   ac_cv_type_short_int=yes
15042 else
15043   echo "$as_me: failed program was:" >&5
15044 sed 's/^/| /' conftest.$ac_ext >&5
15045
15046 ac_cv_type_short_int=no
15047 fi
15048 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15049 fi
15050 echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
15051 echo "${ECHO_T}$ac_cv_type_short_int" >&6
15052
15053 echo "$as_me:$LINENO: checking size of short int" >&5
15054 echo $ECHO_N "checking size of short int... $ECHO_C" >&6
15055 if test "${ac_cv_sizeof_short_int+set}" = set; then
15056   echo $ECHO_N "(cached) $ECHO_C" >&6
15057 else
15058   if test "$ac_cv_type_short_int" = yes; then
15059   # The cast to unsigned long works around a bug in the HP C Compiler
15060   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15061   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15062   # This bug is HP SR number 8606223364.
15063   if test "$cross_compiling" = yes; then
15064   # Depending upon the size, compute the lo and hi bounds.
15065 cat >conftest.$ac_ext <<_ACEOF
15066 /* confdefs.h.  */
15067 _ACEOF
15068 cat confdefs.h >>conftest.$ac_ext
15069 cat >>conftest.$ac_ext <<_ACEOF
15070 /* end confdefs.h.  */
15071 $ac_includes_default
15072 int
15073 main ()
15074 {
15075 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= 0)];
15076 test_array [0] = 0
15077
15078   ;
15079   return 0;
15080 }
15081 _ACEOF
15082 rm -f conftest.$ac_objext
15083 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15084   (eval $ac_compile) 2>conftest.er1
15085   ac_status=$?
15086   grep -v '^ *+' conftest.er1 >conftest.err
15087   rm -f conftest.er1
15088   cat conftest.err >&5
15089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15090   (exit $ac_status); } &&
15091          { ac_try='test -z "$ac_c_werror_flag"
15092                          || test ! -s conftest.err'
15093   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15094   (eval $ac_try) 2>&5
15095   ac_status=$?
15096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15097   (exit $ac_status); }; } &&
15098          { ac_try='test -s conftest.$ac_objext'
15099   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15100   (eval $ac_try) 2>&5
15101   ac_status=$?
15102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15103   (exit $ac_status); }; }; then
15104   ac_lo=0 ac_mid=0
15105   while :; do
15106     cat >conftest.$ac_ext <<_ACEOF
15107 /* confdefs.h.  */
15108 _ACEOF
15109 cat confdefs.h >>conftest.$ac_ext
15110 cat >>conftest.$ac_ext <<_ACEOF
15111 /* end confdefs.h.  */
15112 $ac_includes_default
15113 int
15114 main ()
15115 {
15116 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
15117 test_array [0] = 0
15118
15119   ;
15120   return 0;
15121 }
15122 _ACEOF
15123 rm -f conftest.$ac_objext
15124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15125   (eval $ac_compile) 2>conftest.er1
15126   ac_status=$?
15127   grep -v '^ *+' conftest.er1 >conftest.err
15128   rm -f conftest.er1
15129   cat conftest.err >&5
15130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15131   (exit $ac_status); } &&
15132          { ac_try='test -z "$ac_c_werror_flag"
15133                          || test ! -s conftest.err'
15134   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15135   (eval $ac_try) 2>&5
15136   ac_status=$?
15137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15138   (exit $ac_status); }; } &&
15139          { ac_try='test -s conftest.$ac_objext'
15140   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15141   (eval $ac_try) 2>&5
15142   ac_status=$?
15143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15144   (exit $ac_status); }; }; then
15145   ac_hi=$ac_mid; break
15146 else
15147   echo "$as_me: failed program was:" >&5
15148 sed 's/^/| /' conftest.$ac_ext >&5
15149
15150 ac_lo=`expr $ac_mid + 1`
15151                     if test $ac_lo -le $ac_mid; then
15152                       ac_lo= ac_hi=
15153                       break
15154                     fi
15155                     ac_mid=`expr 2 '*' $ac_mid + 1`
15156 fi
15157 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15158   done
15159 else
15160   echo "$as_me: failed program was:" >&5
15161 sed 's/^/| /' conftest.$ac_ext >&5
15162
15163 cat >conftest.$ac_ext <<_ACEOF
15164 /* confdefs.h.  */
15165 _ACEOF
15166 cat confdefs.h >>conftest.$ac_ext
15167 cat >>conftest.$ac_ext <<_ACEOF
15168 /* end confdefs.h.  */
15169 $ac_includes_default
15170 int
15171 main ()
15172 {
15173 static int test_array [1 - 2 * !(((long) (sizeof (short int))) < 0)];
15174 test_array [0] = 0
15175
15176   ;
15177   return 0;
15178 }
15179 _ACEOF
15180 rm -f conftest.$ac_objext
15181 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15182   (eval $ac_compile) 2>conftest.er1
15183   ac_status=$?
15184   grep -v '^ *+' conftest.er1 >conftest.err
15185   rm -f conftest.er1
15186   cat conftest.err >&5
15187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15188   (exit $ac_status); } &&
15189          { ac_try='test -z "$ac_c_werror_flag"
15190                          || test ! -s conftest.err'
15191   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15192   (eval $ac_try) 2>&5
15193   ac_status=$?
15194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15195   (exit $ac_status); }; } &&
15196          { ac_try='test -s conftest.$ac_objext'
15197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15198   (eval $ac_try) 2>&5
15199   ac_status=$?
15200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15201   (exit $ac_status); }; }; then
15202   ac_hi=-1 ac_mid=-1
15203   while :; do
15204     cat >conftest.$ac_ext <<_ACEOF
15205 /* confdefs.h.  */
15206 _ACEOF
15207 cat confdefs.h >>conftest.$ac_ext
15208 cat >>conftest.$ac_ext <<_ACEOF
15209 /* end confdefs.h.  */
15210 $ac_includes_default
15211 int
15212 main ()
15213 {
15214 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= $ac_mid)];
15215 test_array [0] = 0
15216
15217   ;
15218   return 0;
15219 }
15220 _ACEOF
15221 rm -f conftest.$ac_objext
15222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15223   (eval $ac_compile) 2>conftest.er1
15224   ac_status=$?
15225   grep -v '^ *+' conftest.er1 >conftest.err
15226   rm -f conftest.er1
15227   cat conftest.err >&5
15228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15229   (exit $ac_status); } &&
15230          { ac_try='test -z "$ac_c_werror_flag"
15231                          || test ! -s conftest.err'
15232   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15233   (eval $ac_try) 2>&5
15234   ac_status=$?
15235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15236   (exit $ac_status); }; } &&
15237          { ac_try='test -s conftest.$ac_objext'
15238   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15239   (eval $ac_try) 2>&5
15240   ac_status=$?
15241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15242   (exit $ac_status); }; }; then
15243   ac_lo=$ac_mid; break
15244 else
15245   echo "$as_me: failed program was:" >&5
15246 sed 's/^/| /' conftest.$ac_ext >&5
15247
15248 ac_hi=`expr '(' $ac_mid ')' - 1`
15249                        if test $ac_mid -le $ac_hi; then
15250                          ac_lo= ac_hi=
15251                          break
15252                        fi
15253                        ac_mid=`expr 2 '*' $ac_mid`
15254 fi
15255 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15256   done
15257 else
15258   echo "$as_me: failed program was:" >&5
15259 sed 's/^/| /' conftest.$ac_ext >&5
15260
15261 ac_lo= ac_hi=
15262 fi
15263 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15264 fi
15265 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15266 # Binary search between lo and hi bounds.
15267 while test "x$ac_lo" != "x$ac_hi"; do
15268   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15269   cat >conftest.$ac_ext <<_ACEOF
15270 /* confdefs.h.  */
15271 _ACEOF
15272 cat confdefs.h >>conftest.$ac_ext
15273 cat >>conftest.$ac_ext <<_ACEOF
15274 /* end confdefs.h.  */
15275 $ac_includes_default
15276 int
15277 main ()
15278 {
15279 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
15280 test_array [0] = 0
15281
15282   ;
15283   return 0;
15284 }
15285 _ACEOF
15286 rm -f conftest.$ac_objext
15287 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15288   (eval $ac_compile) 2>conftest.er1
15289   ac_status=$?
15290   grep -v '^ *+' conftest.er1 >conftest.err
15291   rm -f conftest.er1
15292   cat conftest.err >&5
15293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15294   (exit $ac_status); } &&
15295          { ac_try='test -z "$ac_c_werror_flag"
15296                          || test ! -s conftest.err'
15297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15298   (eval $ac_try) 2>&5
15299   ac_status=$?
15300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15301   (exit $ac_status); }; } &&
15302          { ac_try='test -s conftest.$ac_objext'
15303   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15304   (eval $ac_try) 2>&5
15305   ac_status=$?
15306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15307   (exit $ac_status); }; }; then
15308   ac_hi=$ac_mid
15309 else
15310   echo "$as_me: failed program was:" >&5
15311 sed 's/^/| /' conftest.$ac_ext >&5
15312
15313 ac_lo=`expr '(' $ac_mid ')' + 1`
15314 fi
15315 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15316 done
15317 case $ac_lo in
15318 ?*) ac_cv_sizeof_short_int=$ac_lo;;
15319 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
15320 See \`config.log' for more details." >&5
15321 echo "$as_me: error: cannot compute sizeof (short int), 77
15322 See \`config.log' for more details." >&2;}
15323    { (exit 1); exit 1; }; } ;;
15324 esac
15325 else
15326   if test "$cross_compiling" = yes; then
15327   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15328 See \`config.log' for more details." >&5
15329 echo "$as_me: error: cannot run test program while cross compiling
15330 See \`config.log' for more details." >&2;}
15331    { (exit 1); exit 1; }; }
15332 else
15333   cat >conftest.$ac_ext <<_ACEOF
15334 /* confdefs.h.  */
15335 _ACEOF
15336 cat confdefs.h >>conftest.$ac_ext
15337 cat >>conftest.$ac_ext <<_ACEOF
15338 /* end confdefs.h.  */
15339 $ac_includes_default
15340 long longval () { return (long) (sizeof (short int)); }
15341 unsigned long ulongval () { return (long) (sizeof (short int)); }
15342 #include <stdio.h>
15343 #include <stdlib.h>
15344 int
15345 main ()
15346 {
15347
15348   FILE *f = fopen ("conftest.val", "w");
15349   if (! f)
15350     exit (1);
15351   if (((long) (sizeof (short int))) < 0)
15352     {
15353       long i = longval ();
15354       if (i != ((long) (sizeof (short int))))
15355         exit (1);
15356       fprintf (f, "%ld\n", i);
15357     }
15358   else
15359     {
15360       unsigned long i = ulongval ();
15361       if (i != ((long) (sizeof (short int))))
15362         exit (1);
15363       fprintf (f, "%lu\n", i);
15364     }
15365   exit (ferror (f) || fclose (f) != 0);
15366
15367   ;
15368   return 0;
15369 }
15370 _ACEOF
15371 rm -f conftest$ac_exeext
15372 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15373   (eval $ac_link) 2>&5
15374   ac_status=$?
15375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15376   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15377   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15378   (eval $ac_try) 2>&5
15379   ac_status=$?
15380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15381   (exit $ac_status); }; }; then
15382   ac_cv_sizeof_short_int=`cat conftest.val`
15383 else
15384   echo "$as_me: program exited with status $ac_status" >&5
15385 echo "$as_me: failed program was:" >&5
15386 sed 's/^/| /' conftest.$ac_ext >&5
15387
15388 ( exit $ac_status )
15389 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
15390 See \`config.log' for more details." >&5
15391 echo "$as_me: error: cannot compute sizeof (short int), 77
15392 See \`config.log' for more details." >&2;}
15393    { (exit 1); exit 1; }; }
15394 fi
15395 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15396 fi
15397 fi
15398 rm -f conftest.val
15399 else
15400   ac_cv_sizeof_short_int=0
15401 fi
15402 fi
15403 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
15404 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6
15405 cat >>confdefs.h <<_ACEOF
15406 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
15407 _ACEOF
15408
15409
15410 echo "$as_me:$LINENO: checking for int" >&5
15411 echo $ECHO_N "checking for int... $ECHO_C" >&6
15412 if test "${ac_cv_type_int+set}" = set; then
15413   echo $ECHO_N "(cached) $ECHO_C" >&6
15414 else
15415   cat >conftest.$ac_ext <<_ACEOF
15416 /* confdefs.h.  */
15417 _ACEOF
15418 cat confdefs.h >>conftest.$ac_ext
15419 cat >>conftest.$ac_ext <<_ACEOF
15420 /* end confdefs.h.  */
15421 $ac_includes_default
15422 int
15423 main ()
15424 {
15425 if ((int *) 0)
15426   return 0;
15427 if (sizeof (int))
15428   return 0;
15429   ;
15430   return 0;
15431 }
15432 _ACEOF
15433 rm -f conftest.$ac_objext
15434 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15435   (eval $ac_compile) 2>conftest.er1
15436   ac_status=$?
15437   grep -v '^ *+' conftest.er1 >conftest.err
15438   rm -f conftest.er1
15439   cat conftest.err >&5
15440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15441   (exit $ac_status); } &&
15442          { ac_try='test -z "$ac_c_werror_flag"
15443                          || test ! -s conftest.err'
15444   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15445   (eval $ac_try) 2>&5
15446   ac_status=$?
15447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15448   (exit $ac_status); }; } &&
15449          { ac_try='test -s conftest.$ac_objext'
15450   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15451   (eval $ac_try) 2>&5
15452   ac_status=$?
15453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15454   (exit $ac_status); }; }; then
15455   ac_cv_type_int=yes
15456 else
15457   echo "$as_me: failed program was:" >&5
15458 sed 's/^/| /' conftest.$ac_ext >&5
15459
15460 ac_cv_type_int=no
15461 fi
15462 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15463 fi
15464 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
15465 echo "${ECHO_T}$ac_cv_type_int" >&6
15466
15467 echo "$as_me:$LINENO: checking size of int" >&5
15468 echo $ECHO_N "checking size of int... $ECHO_C" >&6
15469 if test "${ac_cv_sizeof_int+set}" = set; then
15470   echo $ECHO_N "(cached) $ECHO_C" >&6
15471 else
15472   if test "$ac_cv_type_int" = yes; then
15473   # The cast to unsigned long works around a bug in the HP C Compiler
15474   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15475   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15476   # This bug is HP SR number 8606223364.
15477   if test "$cross_compiling" = yes; then
15478   # Depending upon the size, compute the lo and hi bounds.
15479 cat >conftest.$ac_ext <<_ACEOF
15480 /* confdefs.h.  */
15481 _ACEOF
15482 cat confdefs.h >>conftest.$ac_ext
15483 cat >>conftest.$ac_ext <<_ACEOF
15484 /* end confdefs.h.  */
15485 $ac_includes_default
15486 int
15487 main ()
15488 {
15489 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
15490 test_array [0] = 0
15491
15492   ;
15493   return 0;
15494 }
15495 _ACEOF
15496 rm -f conftest.$ac_objext
15497 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15498   (eval $ac_compile) 2>conftest.er1
15499   ac_status=$?
15500   grep -v '^ *+' conftest.er1 >conftest.err
15501   rm -f conftest.er1
15502   cat conftest.err >&5
15503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15504   (exit $ac_status); } &&
15505          { ac_try='test -z "$ac_c_werror_flag"
15506                          || test ! -s conftest.err'
15507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15508   (eval $ac_try) 2>&5
15509   ac_status=$?
15510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15511   (exit $ac_status); }; } &&
15512          { ac_try='test -s conftest.$ac_objext'
15513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15514   (eval $ac_try) 2>&5
15515   ac_status=$?
15516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15517   (exit $ac_status); }; }; then
15518   ac_lo=0 ac_mid=0
15519   while :; do
15520     cat >conftest.$ac_ext <<_ACEOF
15521 /* confdefs.h.  */
15522 _ACEOF
15523 cat confdefs.h >>conftest.$ac_ext
15524 cat >>conftest.$ac_ext <<_ACEOF
15525 /* end confdefs.h.  */
15526 $ac_includes_default
15527 int
15528 main ()
15529 {
15530 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15531 test_array [0] = 0
15532
15533   ;
15534   return 0;
15535 }
15536 _ACEOF
15537 rm -f conftest.$ac_objext
15538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15539   (eval $ac_compile) 2>conftest.er1
15540   ac_status=$?
15541   grep -v '^ *+' conftest.er1 >conftest.err
15542   rm -f conftest.er1
15543   cat conftest.err >&5
15544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15545   (exit $ac_status); } &&
15546          { ac_try='test -z "$ac_c_werror_flag"
15547                          || test ! -s conftest.err'
15548   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15549   (eval $ac_try) 2>&5
15550   ac_status=$?
15551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15552   (exit $ac_status); }; } &&
15553          { ac_try='test -s conftest.$ac_objext'
15554   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15555   (eval $ac_try) 2>&5
15556   ac_status=$?
15557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15558   (exit $ac_status); }; }; then
15559   ac_hi=$ac_mid; break
15560 else
15561   echo "$as_me: failed program was:" >&5
15562 sed 's/^/| /' conftest.$ac_ext >&5
15563
15564 ac_lo=`expr $ac_mid + 1`
15565                     if test $ac_lo -le $ac_mid; then
15566                       ac_lo= ac_hi=
15567                       break
15568                     fi
15569                     ac_mid=`expr 2 '*' $ac_mid + 1`
15570 fi
15571 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15572   done
15573 else
15574   echo "$as_me: failed program was:" >&5
15575 sed 's/^/| /' conftest.$ac_ext >&5
15576
15577 cat >conftest.$ac_ext <<_ACEOF
15578 /* confdefs.h.  */
15579 _ACEOF
15580 cat confdefs.h >>conftest.$ac_ext
15581 cat >>conftest.$ac_ext <<_ACEOF
15582 /* end confdefs.h.  */
15583 $ac_includes_default
15584 int
15585 main ()
15586 {
15587 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
15588 test_array [0] = 0
15589
15590   ;
15591   return 0;
15592 }
15593 _ACEOF
15594 rm -f conftest.$ac_objext
15595 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15596   (eval $ac_compile) 2>conftest.er1
15597   ac_status=$?
15598   grep -v '^ *+' conftest.er1 >conftest.err
15599   rm -f conftest.er1
15600   cat conftest.err >&5
15601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15602   (exit $ac_status); } &&
15603          { ac_try='test -z "$ac_c_werror_flag"
15604                          || test ! -s conftest.err'
15605   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15606   (eval $ac_try) 2>&5
15607   ac_status=$?
15608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15609   (exit $ac_status); }; } &&
15610          { ac_try='test -s conftest.$ac_objext'
15611   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15612   (eval $ac_try) 2>&5
15613   ac_status=$?
15614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15615   (exit $ac_status); }; }; then
15616   ac_hi=-1 ac_mid=-1
15617   while :; do
15618     cat >conftest.$ac_ext <<_ACEOF
15619 /* confdefs.h.  */
15620 _ACEOF
15621 cat confdefs.h >>conftest.$ac_ext
15622 cat >>conftest.$ac_ext <<_ACEOF
15623 /* end confdefs.h.  */
15624 $ac_includes_default
15625 int
15626 main ()
15627 {
15628 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
15629 test_array [0] = 0
15630
15631   ;
15632   return 0;
15633 }
15634 _ACEOF
15635 rm -f conftest.$ac_objext
15636 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15637   (eval $ac_compile) 2>conftest.er1
15638   ac_status=$?
15639   grep -v '^ *+' conftest.er1 >conftest.err
15640   rm -f conftest.er1
15641   cat conftest.err >&5
15642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15643   (exit $ac_status); } &&
15644          { ac_try='test -z "$ac_c_werror_flag"
15645                          || test ! -s conftest.err'
15646   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15647   (eval $ac_try) 2>&5
15648   ac_status=$?
15649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15650   (exit $ac_status); }; } &&
15651          { ac_try='test -s conftest.$ac_objext'
15652   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15653   (eval $ac_try) 2>&5
15654   ac_status=$?
15655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15656   (exit $ac_status); }; }; then
15657   ac_lo=$ac_mid; break
15658 else
15659   echo "$as_me: failed program was:" >&5
15660 sed 's/^/| /' conftest.$ac_ext >&5
15661
15662 ac_hi=`expr '(' $ac_mid ')' - 1`
15663                        if test $ac_mid -le $ac_hi; then
15664                          ac_lo= ac_hi=
15665                          break
15666                        fi
15667                        ac_mid=`expr 2 '*' $ac_mid`
15668 fi
15669 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15670   done
15671 else
15672   echo "$as_me: failed program was:" >&5
15673 sed 's/^/| /' conftest.$ac_ext >&5
15674
15675 ac_lo= ac_hi=
15676 fi
15677 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15678 fi
15679 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15680 # Binary search between lo and hi bounds.
15681 while test "x$ac_lo" != "x$ac_hi"; do
15682   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15683   cat >conftest.$ac_ext <<_ACEOF
15684 /* confdefs.h.  */
15685 _ACEOF
15686 cat confdefs.h >>conftest.$ac_ext
15687 cat >>conftest.$ac_ext <<_ACEOF
15688 /* end confdefs.h.  */
15689 $ac_includes_default
15690 int
15691 main ()
15692 {
15693 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15694 test_array [0] = 0
15695
15696   ;
15697   return 0;
15698 }
15699 _ACEOF
15700 rm -f conftest.$ac_objext
15701 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15702   (eval $ac_compile) 2>conftest.er1
15703   ac_status=$?
15704   grep -v '^ *+' conftest.er1 >conftest.err
15705   rm -f conftest.er1
15706   cat conftest.err >&5
15707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15708   (exit $ac_status); } &&
15709          { ac_try='test -z "$ac_c_werror_flag"
15710                          || test ! -s conftest.err'
15711   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15712   (eval $ac_try) 2>&5
15713   ac_status=$?
15714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15715   (exit $ac_status); }; } &&
15716          { ac_try='test -s conftest.$ac_objext'
15717   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15718   (eval $ac_try) 2>&5
15719   ac_status=$?
15720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15721   (exit $ac_status); }; }; then
15722   ac_hi=$ac_mid
15723 else
15724   echo "$as_me: failed program was:" >&5
15725 sed 's/^/| /' conftest.$ac_ext >&5
15726
15727 ac_lo=`expr '(' $ac_mid ')' + 1`
15728 fi
15729 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15730 done
15731 case $ac_lo in
15732 ?*) ac_cv_sizeof_int=$ac_lo;;
15733 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15734 See \`config.log' for more details." >&5
15735 echo "$as_me: error: cannot compute sizeof (int), 77
15736 See \`config.log' for more details." >&2;}
15737    { (exit 1); exit 1; }; } ;;
15738 esac
15739 else
15740   if test "$cross_compiling" = yes; then
15741   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15742 See \`config.log' for more details." >&5
15743 echo "$as_me: error: cannot run test program while cross compiling
15744 See \`config.log' for more details." >&2;}
15745    { (exit 1); exit 1; }; }
15746 else
15747   cat >conftest.$ac_ext <<_ACEOF
15748 /* confdefs.h.  */
15749 _ACEOF
15750 cat confdefs.h >>conftest.$ac_ext
15751 cat >>conftest.$ac_ext <<_ACEOF
15752 /* end confdefs.h.  */
15753 $ac_includes_default
15754 long longval () { return (long) (sizeof (int)); }
15755 unsigned long ulongval () { return (long) (sizeof (int)); }
15756 #include <stdio.h>
15757 #include <stdlib.h>
15758 int
15759 main ()
15760 {
15761
15762   FILE *f = fopen ("conftest.val", "w");
15763   if (! f)
15764     exit (1);
15765   if (((long) (sizeof (int))) < 0)
15766     {
15767       long i = longval ();
15768       if (i != ((long) (sizeof (int))))
15769         exit (1);
15770       fprintf (f, "%ld\n", i);
15771     }
15772   else
15773     {
15774       unsigned long i = ulongval ();
15775       if (i != ((long) (sizeof (int))))
15776         exit (1);
15777       fprintf (f, "%lu\n", i);
15778     }
15779   exit (ferror (f) || fclose (f) != 0);
15780
15781   ;
15782   return 0;
15783 }
15784 _ACEOF
15785 rm -f conftest$ac_exeext
15786 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15787   (eval $ac_link) 2>&5
15788   ac_status=$?
15789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15790   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15791   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15792   (eval $ac_try) 2>&5
15793   ac_status=$?
15794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15795   (exit $ac_status); }; }; then
15796   ac_cv_sizeof_int=`cat conftest.val`
15797 else
15798   echo "$as_me: program exited with status $ac_status" >&5
15799 echo "$as_me: failed program was:" >&5
15800 sed 's/^/| /' conftest.$ac_ext >&5
15801
15802 ( exit $ac_status )
15803 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15804 See \`config.log' for more details." >&5
15805 echo "$as_me: error: cannot compute sizeof (int), 77
15806 See \`config.log' for more details." >&2;}
15807    { (exit 1); exit 1; }; }
15808 fi
15809 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15810 fi
15811 fi
15812 rm -f conftest.val
15813 else
15814   ac_cv_sizeof_int=0
15815 fi
15816 fi
15817 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
15818 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
15819 cat >>confdefs.h <<_ACEOF
15820 #define SIZEOF_INT $ac_cv_sizeof_int
15821 _ACEOF
15822
15823
15824 echo "$as_me:$LINENO: checking for long int" >&5
15825 echo $ECHO_N "checking for long int... $ECHO_C" >&6
15826 if test "${ac_cv_type_long_int+set}" = set; then
15827   echo $ECHO_N "(cached) $ECHO_C" >&6
15828 else
15829   cat >conftest.$ac_ext <<_ACEOF
15830 /* confdefs.h.  */
15831 _ACEOF
15832 cat confdefs.h >>conftest.$ac_ext
15833 cat >>conftest.$ac_ext <<_ACEOF
15834 /* end confdefs.h.  */
15835 $ac_includes_default
15836 int
15837 main ()
15838 {
15839 if ((long int *) 0)
15840   return 0;
15841 if (sizeof (long int))
15842   return 0;
15843   ;
15844   return 0;
15845 }
15846 _ACEOF
15847 rm -f conftest.$ac_objext
15848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15849   (eval $ac_compile) 2>conftest.er1
15850   ac_status=$?
15851   grep -v '^ *+' conftest.er1 >conftest.err
15852   rm -f conftest.er1
15853   cat conftest.err >&5
15854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15855   (exit $ac_status); } &&
15856          { ac_try='test -z "$ac_c_werror_flag"
15857                          || test ! -s conftest.err'
15858   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15859   (eval $ac_try) 2>&5
15860   ac_status=$?
15861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15862   (exit $ac_status); }; } &&
15863          { ac_try='test -s conftest.$ac_objext'
15864   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15865   (eval $ac_try) 2>&5
15866   ac_status=$?
15867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15868   (exit $ac_status); }; }; then
15869   ac_cv_type_long_int=yes
15870 else
15871   echo "$as_me: failed program was:" >&5
15872 sed 's/^/| /' conftest.$ac_ext >&5
15873
15874 ac_cv_type_long_int=no
15875 fi
15876 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15877 fi
15878 echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
15879 echo "${ECHO_T}$ac_cv_type_long_int" >&6
15880
15881 echo "$as_me:$LINENO: checking size of long int" >&5
15882 echo $ECHO_N "checking size of long int... $ECHO_C" >&6
15883 if test "${ac_cv_sizeof_long_int+set}" = set; then
15884   echo $ECHO_N "(cached) $ECHO_C" >&6
15885 else
15886   if test "$ac_cv_type_long_int" = yes; then
15887   # The cast to unsigned long works around a bug in the HP C Compiler
15888   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15889   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15890   # This bug is HP SR number 8606223364.
15891   if test "$cross_compiling" = yes; then
15892   # Depending upon the size, compute the lo and hi bounds.
15893 cat >conftest.$ac_ext <<_ACEOF
15894 /* confdefs.h.  */
15895 _ACEOF
15896 cat confdefs.h >>conftest.$ac_ext
15897 cat >>conftest.$ac_ext <<_ACEOF
15898 /* end confdefs.h.  */
15899 $ac_includes_default
15900 int
15901 main ()
15902 {
15903 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= 0)];
15904 test_array [0] = 0
15905
15906   ;
15907   return 0;
15908 }
15909 _ACEOF
15910 rm -f conftest.$ac_objext
15911 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15912   (eval $ac_compile) 2>conftest.er1
15913   ac_status=$?
15914   grep -v '^ *+' conftest.er1 >conftest.err
15915   rm -f conftest.er1
15916   cat conftest.err >&5
15917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15918   (exit $ac_status); } &&
15919          { ac_try='test -z "$ac_c_werror_flag"
15920                          || test ! -s conftest.err'
15921   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15922   (eval $ac_try) 2>&5
15923   ac_status=$?
15924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15925   (exit $ac_status); }; } &&
15926          { ac_try='test -s conftest.$ac_objext'
15927   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15928   (eval $ac_try) 2>&5
15929   ac_status=$?
15930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15931   (exit $ac_status); }; }; then
15932   ac_lo=0 ac_mid=0
15933   while :; do
15934     cat >conftest.$ac_ext <<_ACEOF
15935 /* confdefs.h.  */
15936 _ACEOF
15937 cat confdefs.h >>conftest.$ac_ext
15938 cat >>conftest.$ac_ext <<_ACEOF
15939 /* end confdefs.h.  */
15940 $ac_includes_default
15941 int
15942 main ()
15943 {
15944 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
15945 test_array [0] = 0
15946
15947   ;
15948   return 0;
15949 }
15950 _ACEOF
15951 rm -f conftest.$ac_objext
15952 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15953   (eval $ac_compile) 2>conftest.er1
15954   ac_status=$?
15955   grep -v '^ *+' conftest.er1 >conftest.err
15956   rm -f conftest.er1
15957   cat conftest.err >&5
15958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15959   (exit $ac_status); } &&
15960          { ac_try='test -z "$ac_c_werror_flag"
15961                          || test ! -s conftest.err'
15962   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15963   (eval $ac_try) 2>&5
15964   ac_status=$?
15965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15966   (exit $ac_status); }; } &&
15967          { ac_try='test -s conftest.$ac_objext'
15968   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15969   (eval $ac_try) 2>&5
15970   ac_status=$?
15971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15972   (exit $ac_status); }; }; then
15973   ac_hi=$ac_mid; break
15974 else
15975   echo "$as_me: failed program was:" >&5
15976 sed 's/^/| /' conftest.$ac_ext >&5
15977
15978 ac_lo=`expr $ac_mid + 1`
15979                     if test $ac_lo -le $ac_mid; then
15980                       ac_lo= ac_hi=
15981                       break
15982                     fi
15983                     ac_mid=`expr 2 '*' $ac_mid + 1`
15984 fi
15985 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15986   done
15987 else
15988   echo "$as_me: failed program was:" >&5
15989 sed 's/^/| /' conftest.$ac_ext >&5
15990
15991 cat >conftest.$ac_ext <<_ACEOF
15992 /* confdefs.h.  */
15993 _ACEOF
15994 cat confdefs.h >>conftest.$ac_ext
15995 cat >>conftest.$ac_ext <<_ACEOF
15996 /* end confdefs.h.  */
15997 $ac_includes_default
15998 int
15999 main ()
16000 {
16001 static int test_array [1 - 2 * !(((long) (sizeof (long int))) < 0)];
16002 test_array [0] = 0
16003
16004   ;
16005   return 0;
16006 }
16007 _ACEOF
16008 rm -f conftest.$ac_objext
16009 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16010   (eval $ac_compile) 2>conftest.er1
16011   ac_status=$?
16012   grep -v '^ *+' conftest.er1 >conftest.err
16013   rm -f conftest.er1
16014   cat conftest.err >&5
16015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16016   (exit $ac_status); } &&
16017          { ac_try='test -z "$ac_c_werror_flag"
16018                          || test ! -s conftest.err'
16019   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16020   (eval $ac_try) 2>&5
16021   ac_status=$?
16022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16023   (exit $ac_status); }; } &&
16024          { ac_try='test -s conftest.$ac_objext'
16025   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16026   (eval $ac_try) 2>&5
16027   ac_status=$?
16028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16029   (exit $ac_status); }; }; then
16030   ac_hi=-1 ac_mid=-1
16031   while :; do
16032     cat >conftest.$ac_ext <<_ACEOF
16033 /* confdefs.h.  */
16034 _ACEOF
16035 cat confdefs.h >>conftest.$ac_ext
16036 cat >>conftest.$ac_ext <<_ACEOF
16037 /* end confdefs.h.  */
16038 $ac_includes_default
16039 int
16040 main ()
16041 {
16042 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= $ac_mid)];
16043 test_array [0] = 0
16044
16045   ;
16046   return 0;
16047 }
16048 _ACEOF
16049 rm -f conftest.$ac_objext
16050 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16051   (eval $ac_compile) 2>conftest.er1
16052   ac_status=$?
16053   grep -v '^ *+' conftest.er1 >conftest.err
16054   rm -f conftest.er1
16055   cat conftest.err >&5
16056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16057   (exit $ac_status); } &&
16058          { ac_try='test -z "$ac_c_werror_flag"
16059                          || test ! -s conftest.err'
16060   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16061   (eval $ac_try) 2>&5
16062   ac_status=$?
16063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16064   (exit $ac_status); }; } &&
16065          { ac_try='test -s conftest.$ac_objext'
16066   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16067   (eval $ac_try) 2>&5
16068   ac_status=$?
16069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16070   (exit $ac_status); }; }; then
16071   ac_lo=$ac_mid; break
16072 else
16073   echo "$as_me: failed program was:" >&5
16074 sed 's/^/| /' conftest.$ac_ext >&5
16075
16076 ac_hi=`expr '(' $ac_mid ')' - 1`
16077                        if test $ac_mid -le $ac_hi; then
16078                          ac_lo= ac_hi=
16079                          break
16080                        fi
16081                        ac_mid=`expr 2 '*' $ac_mid`
16082 fi
16083 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16084   done
16085 else
16086   echo "$as_me: failed program was:" >&5
16087 sed 's/^/| /' conftest.$ac_ext >&5
16088
16089 ac_lo= ac_hi=
16090 fi
16091 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16092 fi
16093 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16094 # Binary search between lo and hi bounds.
16095 while test "x$ac_lo" != "x$ac_hi"; do
16096   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16097   cat >conftest.$ac_ext <<_ACEOF
16098 /* confdefs.h.  */
16099 _ACEOF
16100 cat confdefs.h >>conftest.$ac_ext
16101 cat >>conftest.$ac_ext <<_ACEOF
16102 /* end confdefs.h.  */
16103 $ac_includes_default
16104 int
16105 main ()
16106 {
16107 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
16108 test_array [0] = 0
16109
16110   ;
16111   return 0;
16112 }
16113 _ACEOF
16114 rm -f conftest.$ac_objext
16115 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16116   (eval $ac_compile) 2>conftest.er1
16117   ac_status=$?
16118   grep -v '^ *+' conftest.er1 >conftest.err
16119   rm -f conftest.er1
16120   cat conftest.err >&5
16121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16122   (exit $ac_status); } &&
16123          { ac_try='test -z "$ac_c_werror_flag"
16124                          || test ! -s conftest.err'
16125   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16126   (eval $ac_try) 2>&5
16127   ac_status=$?
16128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16129   (exit $ac_status); }; } &&
16130          { ac_try='test -s conftest.$ac_objext'
16131   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16132   (eval $ac_try) 2>&5
16133   ac_status=$?
16134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16135   (exit $ac_status); }; }; then
16136   ac_hi=$ac_mid
16137 else
16138   echo "$as_me: failed program was:" >&5
16139 sed 's/^/| /' conftest.$ac_ext >&5
16140
16141 ac_lo=`expr '(' $ac_mid ')' + 1`
16142 fi
16143 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16144 done
16145 case $ac_lo in
16146 ?*) ac_cv_sizeof_long_int=$ac_lo;;
16147 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
16148 See \`config.log' for more details." >&5
16149 echo "$as_me: error: cannot compute sizeof (long int), 77
16150 See \`config.log' for more details." >&2;}
16151    { (exit 1); exit 1; }; } ;;
16152 esac
16153 else
16154   if test "$cross_compiling" = yes; then
16155   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16156 See \`config.log' for more details." >&5
16157 echo "$as_me: error: cannot run test program while cross compiling
16158 See \`config.log' for more details." >&2;}
16159    { (exit 1); exit 1; }; }
16160 else
16161   cat >conftest.$ac_ext <<_ACEOF
16162 /* confdefs.h.  */
16163 _ACEOF
16164 cat confdefs.h >>conftest.$ac_ext
16165 cat >>conftest.$ac_ext <<_ACEOF
16166 /* end confdefs.h.  */
16167 $ac_includes_default
16168 long longval () { return (long) (sizeof (long int)); }
16169 unsigned long ulongval () { return (long) (sizeof (long int)); }
16170 #include <stdio.h>
16171 #include <stdlib.h>
16172 int
16173 main ()
16174 {
16175
16176   FILE *f = fopen ("conftest.val", "w");
16177   if (! f)
16178     exit (1);
16179   if (((long) (sizeof (long int))) < 0)
16180     {
16181       long i = longval ();
16182       if (i != ((long) (sizeof (long int))))
16183         exit (1);
16184       fprintf (f, "%ld\n", i);
16185     }
16186   else
16187     {
16188       unsigned long i = ulongval ();
16189       if (i != ((long) (sizeof (long int))))
16190         exit (1);
16191       fprintf (f, "%lu\n", i);
16192     }
16193   exit (ferror (f) || fclose (f) != 0);
16194
16195   ;
16196   return 0;
16197 }
16198 _ACEOF
16199 rm -f conftest$ac_exeext
16200 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16201   (eval $ac_link) 2>&5
16202   ac_status=$?
16203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16204   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16205   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16206   (eval $ac_try) 2>&5
16207   ac_status=$?
16208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16209   (exit $ac_status); }; }; then
16210   ac_cv_sizeof_long_int=`cat conftest.val`
16211 else
16212   echo "$as_me: program exited with status $ac_status" >&5
16213 echo "$as_me: failed program was:" >&5
16214 sed 's/^/| /' conftest.$ac_ext >&5
16215
16216 ( exit $ac_status )
16217 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
16218 See \`config.log' for more details." >&5
16219 echo "$as_me: error: cannot compute sizeof (long int), 77
16220 See \`config.log' for more details." >&2;}
16221    { (exit 1); exit 1; }; }
16222 fi
16223 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16224 fi
16225 fi
16226 rm -f conftest.val
16227 else
16228   ac_cv_sizeof_long_int=0
16229 fi
16230 fi
16231 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
16232 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6
16233 cat >>confdefs.h <<_ACEOF
16234 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
16235 _ACEOF
16236
16237
16238 echo "$as_me:$LINENO: checking for long long int" >&5
16239 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
16240 if test "${ac_cv_type_long_long_int+set}" = set; then
16241   echo $ECHO_N "(cached) $ECHO_C" >&6
16242 else
16243   cat >conftest.$ac_ext <<_ACEOF
16244 /* confdefs.h.  */
16245 _ACEOF
16246 cat confdefs.h >>conftest.$ac_ext
16247 cat >>conftest.$ac_ext <<_ACEOF
16248 /* end confdefs.h.  */
16249 $ac_includes_default
16250 int
16251 main ()
16252 {
16253 if ((long long int *) 0)
16254   return 0;
16255 if (sizeof (long long int))
16256   return 0;
16257   ;
16258   return 0;
16259 }
16260 _ACEOF
16261 rm -f conftest.$ac_objext
16262 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16263   (eval $ac_compile) 2>conftest.er1
16264   ac_status=$?
16265   grep -v '^ *+' conftest.er1 >conftest.err
16266   rm -f conftest.er1
16267   cat conftest.err >&5
16268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16269   (exit $ac_status); } &&
16270          { ac_try='test -z "$ac_c_werror_flag"
16271                          || test ! -s conftest.err'
16272   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16273   (eval $ac_try) 2>&5
16274   ac_status=$?
16275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16276   (exit $ac_status); }; } &&
16277          { ac_try='test -s conftest.$ac_objext'
16278   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16279   (eval $ac_try) 2>&5
16280   ac_status=$?
16281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16282   (exit $ac_status); }; }; then
16283   ac_cv_type_long_long_int=yes
16284 else
16285   echo "$as_me: failed program was:" >&5
16286 sed 's/^/| /' conftest.$ac_ext >&5
16287
16288 ac_cv_type_long_long_int=no
16289 fi
16290 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16291 fi
16292 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
16293 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
16294
16295 echo "$as_me:$LINENO: checking size of long long int" >&5
16296 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6
16297 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
16298   echo $ECHO_N "(cached) $ECHO_C" >&6
16299 else
16300   if test "$ac_cv_type_long_long_int" = yes; then
16301   # The cast to unsigned long works around a bug in the HP C Compiler
16302   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16303   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16304   # This bug is HP SR number 8606223364.
16305   if test "$cross_compiling" = yes; then
16306   # Depending upon the size, compute the lo and hi bounds.
16307 cat >conftest.$ac_ext <<_ACEOF
16308 /* confdefs.h.  */
16309 _ACEOF
16310 cat confdefs.h >>conftest.$ac_ext
16311 cat >>conftest.$ac_ext <<_ACEOF
16312 /* end confdefs.h.  */
16313 $ac_includes_default
16314 int
16315 main ()
16316 {
16317 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= 0)];
16318 test_array [0] = 0
16319
16320   ;
16321   return 0;
16322 }
16323 _ACEOF
16324 rm -f conftest.$ac_objext
16325 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16326   (eval $ac_compile) 2>conftest.er1
16327   ac_status=$?
16328   grep -v '^ *+' conftest.er1 >conftest.err
16329   rm -f conftest.er1
16330   cat conftest.err >&5
16331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16332   (exit $ac_status); } &&
16333          { ac_try='test -z "$ac_c_werror_flag"
16334                          || test ! -s conftest.err'
16335   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16336   (eval $ac_try) 2>&5
16337   ac_status=$?
16338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16339   (exit $ac_status); }; } &&
16340          { ac_try='test -s conftest.$ac_objext'
16341   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16342   (eval $ac_try) 2>&5
16343   ac_status=$?
16344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16345   (exit $ac_status); }; }; then
16346   ac_lo=0 ac_mid=0
16347   while :; do
16348     cat >conftest.$ac_ext <<_ACEOF
16349 /* confdefs.h.  */
16350 _ACEOF
16351 cat confdefs.h >>conftest.$ac_ext
16352 cat >>conftest.$ac_ext <<_ACEOF
16353 /* end confdefs.h.  */
16354 $ac_includes_default
16355 int
16356 main ()
16357 {
16358 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
16359 test_array [0] = 0
16360
16361   ;
16362   return 0;
16363 }
16364 _ACEOF
16365 rm -f conftest.$ac_objext
16366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16367   (eval $ac_compile) 2>conftest.er1
16368   ac_status=$?
16369   grep -v '^ *+' conftest.er1 >conftest.err
16370   rm -f conftest.er1
16371   cat conftest.err >&5
16372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16373   (exit $ac_status); } &&
16374          { ac_try='test -z "$ac_c_werror_flag"
16375                          || test ! -s conftest.err'
16376   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16377   (eval $ac_try) 2>&5
16378   ac_status=$?
16379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16380   (exit $ac_status); }; } &&
16381          { ac_try='test -s conftest.$ac_objext'
16382   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16383   (eval $ac_try) 2>&5
16384   ac_status=$?
16385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16386   (exit $ac_status); }; }; then
16387   ac_hi=$ac_mid; break
16388 else
16389   echo "$as_me: failed program was:" >&5
16390 sed 's/^/| /' conftest.$ac_ext >&5
16391
16392 ac_lo=`expr $ac_mid + 1`
16393                     if test $ac_lo -le $ac_mid; then
16394                       ac_lo= ac_hi=
16395                       break
16396                     fi
16397                     ac_mid=`expr 2 '*' $ac_mid + 1`
16398 fi
16399 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16400   done
16401 else
16402   echo "$as_me: failed program was:" >&5
16403 sed 's/^/| /' conftest.$ac_ext >&5
16404
16405 cat >conftest.$ac_ext <<_ACEOF
16406 /* confdefs.h.  */
16407 _ACEOF
16408 cat confdefs.h >>conftest.$ac_ext
16409 cat >>conftest.$ac_ext <<_ACEOF
16410 /* end confdefs.h.  */
16411 $ac_includes_default
16412 int
16413 main ()
16414 {
16415 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) < 0)];
16416 test_array [0] = 0
16417
16418   ;
16419   return 0;
16420 }
16421 _ACEOF
16422 rm -f conftest.$ac_objext
16423 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16424   (eval $ac_compile) 2>conftest.er1
16425   ac_status=$?
16426   grep -v '^ *+' conftest.er1 >conftest.err
16427   rm -f conftest.er1
16428   cat conftest.err >&5
16429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16430   (exit $ac_status); } &&
16431          { ac_try='test -z "$ac_c_werror_flag"
16432                          || test ! -s conftest.err'
16433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16434   (eval $ac_try) 2>&5
16435   ac_status=$?
16436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16437   (exit $ac_status); }; } &&
16438          { ac_try='test -s conftest.$ac_objext'
16439   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16440   (eval $ac_try) 2>&5
16441   ac_status=$?
16442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16443   (exit $ac_status); }; }; then
16444   ac_hi=-1 ac_mid=-1
16445   while :; do
16446     cat >conftest.$ac_ext <<_ACEOF
16447 /* confdefs.h.  */
16448 _ACEOF
16449 cat confdefs.h >>conftest.$ac_ext
16450 cat >>conftest.$ac_ext <<_ACEOF
16451 /* end confdefs.h.  */
16452 $ac_includes_default
16453 int
16454 main ()
16455 {
16456 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= $ac_mid)];
16457 test_array [0] = 0
16458
16459   ;
16460   return 0;
16461 }
16462 _ACEOF
16463 rm -f conftest.$ac_objext
16464 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16465   (eval $ac_compile) 2>conftest.er1
16466   ac_status=$?
16467   grep -v '^ *+' conftest.er1 >conftest.err
16468   rm -f conftest.er1
16469   cat conftest.err >&5
16470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16471   (exit $ac_status); } &&
16472          { ac_try='test -z "$ac_c_werror_flag"
16473                          || test ! -s conftest.err'
16474   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16475   (eval $ac_try) 2>&5
16476   ac_status=$?
16477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16478   (exit $ac_status); }; } &&
16479          { ac_try='test -s conftest.$ac_objext'
16480   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16481   (eval $ac_try) 2>&5
16482   ac_status=$?
16483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16484   (exit $ac_status); }; }; then
16485   ac_lo=$ac_mid; break
16486 else
16487   echo "$as_me: failed program was:" >&5
16488 sed 's/^/| /' conftest.$ac_ext >&5
16489
16490 ac_hi=`expr '(' $ac_mid ')' - 1`
16491                        if test $ac_mid -le $ac_hi; then
16492                          ac_lo= ac_hi=
16493                          break
16494                        fi
16495                        ac_mid=`expr 2 '*' $ac_mid`
16496 fi
16497 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16498   done
16499 else
16500   echo "$as_me: failed program was:" >&5
16501 sed 's/^/| /' conftest.$ac_ext >&5
16502
16503 ac_lo= ac_hi=
16504 fi
16505 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16506 fi
16507 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16508 # Binary search between lo and hi bounds.
16509 while test "x$ac_lo" != "x$ac_hi"; do
16510   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16511   cat >conftest.$ac_ext <<_ACEOF
16512 /* confdefs.h.  */
16513 _ACEOF
16514 cat confdefs.h >>conftest.$ac_ext
16515 cat >>conftest.$ac_ext <<_ACEOF
16516 /* end confdefs.h.  */
16517 $ac_includes_default
16518 int
16519 main ()
16520 {
16521 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
16522 test_array [0] = 0
16523
16524   ;
16525   return 0;
16526 }
16527 _ACEOF
16528 rm -f conftest.$ac_objext
16529 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16530   (eval $ac_compile) 2>conftest.er1
16531   ac_status=$?
16532   grep -v '^ *+' conftest.er1 >conftest.err
16533   rm -f conftest.er1
16534   cat conftest.err >&5
16535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16536   (exit $ac_status); } &&
16537          { ac_try='test -z "$ac_c_werror_flag"
16538                          || test ! -s conftest.err'
16539   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16540   (eval $ac_try) 2>&5
16541   ac_status=$?
16542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16543   (exit $ac_status); }; } &&
16544          { ac_try='test -s conftest.$ac_objext'
16545   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16546   (eval $ac_try) 2>&5
16547   ac_status=$?
16548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16549   (exit $ac_status); }; }; then
16550   ac_hi=$ac_mid
16551 else
16552   echo "$as_me: failed program was:" >&5
16553 sed 's/^/| /' conftest.$ac_ext >&5
16554
16555 ac_lo=`expr '(' $ac_mid ')' + 1`
16556 fi
16557 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16558 done
16559 case $ac_lo in
16560 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
16561 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
16562 See \`config.log' for more details." >&5
16563 echo "$as_me: error: cannot compute sizeof (long long int), 77
16564 See \`config.log' for more details." >&2;}
16565    { (exit 1); exit 1; }; } ;;
16566 esac
16567 else
16568   if test "$cross_compiling" = yes; then
16569   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16570 See \`config.log' for more details." >&5
16571 echo "$as_me: error: cannot run test program while cross compiling
16572 See \`config.log' for more details." >&2;}
16573    { (exit 1); exit 1; }; }
16574 else
16575   cat >conftest.$ac_ext <<_ACEOF
16576 /* confdefs.h.  */
16577 _ACEOF
16578 cat confdefs.h >>conftest.$ac_ext
16579 cat >>conftest.$ac_ext <<_ACEOF
16580 /* end confdefs.h.  */
16581 $ac_includes_default
16582 long longval () { return (long) (sizeof (long long int)); }
16583 unsigned long ulongval () { return (long) (sizeof (long long int)); }
16584 #include <stdio.h>
16585 #include <stdlib.h>
16586 int
16587 main ()
16588 {
16589
16590   FILE *f = fopen ("conftest.val", "w");
16591   if (! f)
16592     exit (1);
16593   if (((long) (sizeof (long long int))) < 0)
16594     {
16595       long i = longval ();
16596       if (i != ((long) (sizeof (long long int))))
16597         exit (1);
16598       fprintf (f, "%ld\n", i);
16599     }
16600   else
16601     {
16602       unsigned long i = ulongval ();
16603       if (i != ((long) (sizeof (long long int))))
16604         exit (1);
16605       fprintf (f, "%lu\n", i);
16606     }
16607   exit (ferror (f) || fclose (f) != 0);
16608
16609   ;
16610   return 0;
16611 }
16612 _ACEOF
16613 rm -f conftest$ac_exeext
16614 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16615   (eval $ac_link) 2>&5
16616   ac_status=$?
16617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16618   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16620   (eval $ac_try) 2>&5
16621   ac_status=$?
16622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16623   (exit $ac_status); }; }; then
16624   ac_cv_sizeof_long_long_int=`cat conftest.val`
16625 else
16626   echo "$as_me: program exited with status $ac_status" >&5
16627 echo "$as_me: failed program was:" >&5
16628 sed 's/^/| /' conftest.$ac_ext >&5
16629
16630 ( exit $ac_status )
16631 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
16632 See \`config.log' for more details." >&5
16633 echo "$as_me: error: cannot compute sizeof (long long int), 77
16634 See \`config.log' for more details." >&2;}
16635    { (exit 1); exit 1; }; }
16636 fi
16637 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16638 fi
16639 fi
16640 rm -f conftest.val
16641 else
16642   ac_cv_sizeof_long_long_int=0
16643 fi
16644 fi
16645 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
16646 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6
16647 cat >>confdefs.h <<_ACEOF
16648 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
16649 _ACEOF
16650
16651
16652 echo "$as_me:$LINENO: checking for int *" >&5
16653 echo $ECHO_N "checking for int *... $ECHO_C" >&6
16654 if test "${ac_cv_type_int_p+set}" = set; then
16655   echo $ECHO_N "(cached) $ECHO_C" >&6
16656 else
16657   cat >conftest.$ac_ext <<_ACEOF
16658 /* confdefs.h.  */
16659 _ACEOF
16660 cat confdefs.h >>conftest.$ac_ext
16661 cat >>conftest.$ac_ext <<_ACEOF
16662 /* end confdefs.h.  */
16663 $ac_includes_default
16664 int
16665 main ()
16666 {
16667 if ((int * *) 0)
16668   return 0;
16669 if (sizeof (int *))
16670   return 0;
16671   ;
16672   return 0;
16673 }
16674 _ACEOF
16675 rm -f conftest.$ac_objext
16676 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16677   (eval $ac_compile) 2>conftest.er1
16678   ac_status=$?
16679   grep -v '^ *+' conftest.er1 >conftest.err
16680   rm -f conftest.er1
16681   cat conftest.err >&5
16682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16683   (exit $ac_status); } &&
16684          { ac_try='test -z "$ac_c_werror_flag"
16685                          || test ! -s conftest.err'
16686   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16687   (eval $ac_try) 2>&5
16688   ac_status=$?
16689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16690   (exit $ac_status); }; } &&
16691          { ac_try='test -s conftest.$ac_objext'
16692   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16693   (eval $ac_try) 2>&5
16694   ac_status=$?
16695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16696   (exit $ac_status); }; }; then
16697   ac_cv_type_int_p=yes
16698 else
16699   echo "$as_me: failed program was:" >&5
16700 sed 's/^/| /' conftest.$ac_ext >&5
16701
16702 ac_cv_type_int_p=no
16703 fi
16704 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16705 fi
16706 echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
16707 echo "${ECHO_T}$ac_cv_type_int_p" >&6
16708
16709 echo "$as_me:$LINENO: checking size of int *" >&5
16710 echo $ECHO_N "checking size of int *... $ECHO_C" >&6
16711 if test "${ac_cv_sizeof_int_p+set}" = set; then
16712   echo $ECHO_N "(cached) $ECHO_C" >&6
16713 else
16714   if test "$ac_cv_type_int_p" = yes; then
16715   # The cast to unsigned long works around a bug in the HP C Compiler
16716   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16717   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16718   # This bug is HP SR number 8606223364.
16719   if test "$cross_compiling" = yes; then
16720   # Depending upon the size, compute the lo and hi bounds.
16721 cat >conftest.$ac_ext <<_ACEOF
16722 /* confdefs.h.  */
16723 _ACEOF
16724 cat confdefs.h >>conftest.$ac_ext
16725 cat >>conftest.$ac_ext <<_ACEOF
16726 /* end confdefs.h.  */
16727 $ac_includes_default
16728 int
16729 main ()
16730 {
16731 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= 0)];
16732 test_array [0] = 0
16733
16734   ;
16735   return 0;
16736 }
16737 _ACEOF
16738 rm -f conftest.$ac_objext
16739 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16740   (eval $ac_compile) 2>conftest.er1
16741   ac_status=$?
16742   grep -v '^ *+' conftest.er1 >conftest.err
16743   rm -f conftest.er1
16744   cat conftest.err >&5
16745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16746   (exit $ac_status); } &&
16747          { ac_try='test -z "$ac_c_werror_flag"
16748                          || test ! -s conftest.err'
16749   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16750   (eval $ac_try) 2>&5
16751   ac_status=$?
16752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16753   (exit $ac_status); }; } &&
16754          { ac_try='test -s conftest.$ac_objext'
16755   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16756   (eval $ac_try) 2>&5
16757   ac_status=$?
16758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16759   (exit $ac_status); }; }; then
16760   ac_lo=0 ac_mid=0
16761   while :; do
16762     cat >conftest.$ac_ext <<_ACEOF
16763 /* confdefs.h.  */
16764 _ACEOF
16765 cat confdefs.h >>conftest.$ac_ext
16766 cat >>conftest.$ac_ext <<_ACEOF
16767 /* end confdefs.h.  */
16768 $ac_includes_default
16769 int
16770 main ()
16771 {
16772 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
16773 test_array [0] = 0
16774
16775   ;
16776   return 0;
16777 }
16778 _ACEOF
16779 rm -f conftest.$ac_objext
16780 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16781   (eval $ac_compile) 2>conftest.er1
16782   ac_status=$?
16783   grep -v '^ *+' conftest.er1 >conftest.err
16784   rm -f conftest.er1
16785   cat conftest.err >&5
16786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16787   (exit $ac_status); } &&
16788          { ac_try='test -z "$ac_c_werror_flag"
16789                          || test ! -s conftest.err'
16790   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16791   (eval $ac_try) 2>&5
16792   ac_status=$?
16793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16794   (exit $ac_status); }; } &&
16795          { ac_try='test -s conftest.$ac_objext'
16796   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16797   (eval $ac_try) 2>&5
16798   ac_status=$?
16799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16800   (exit $ac_status); }; }; then
16801   ac_hi=$ac_mid; break
16802 else
16803   echo "$as_me: failed program was:" >&5
16804 sed 's/^/| /' conftest.$ac_ext >&5
16805
16806 ac_lo=`expr $ac_mid + 1`
16807                     if test $ac_lo -le $ac_mid; then
16808                       ac_lo= ac_hi=
16809                       break
16810                     fi
16811                     ac_mid=`expr 2 '*' $ac_mid + 1`
16812 fi
16813 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16814   done
16815 else
16816   echo "$as_me: failed program was:" >&5
16817 sed 's/^/| /' conftest.$ac_ext >&5
16818
16819 cat >conftest.$ac_ext <<_ACEOF
16820 /* confdefs.h.  */
16821 _ACEOF
16822 cat confdefs.h >>conftest.$ac_ext
16823 cat >>conftest.$ac_ext <<_ACEOF
16824 /* end confdefs.h.  */
16825 $ac_includes_default
16826 int
16827 main ()
16828 {
16829 static int test_array [1 - 2 * !(((long) (sizeof (int *))) < 0)];
16830 test_array [0] = 0
16831
16832   ;
16833   return 0;
16834 }
16835 _ACEOF
16836 rm -f conftest.$ac_objext
16837 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16838   (eval $ac_compile) 2>conftest.er1
16839   ac_status=$?
16840   grep -v '^ *+' conftest.er1 >conftest.err
16841   rm -f conftest.er1
16842   cat conftest.err >&5
16843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16844   (exit $ac_status); } &&
16845          { ac_try='test -z "$ac_c_werror_flag"
16846                          || test ! -s conftest.err'
16847   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16848   (eval $ac_try) 2>&5
16849   ac_status=$?
16850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16851   (exit $ac_status); }; } &&
16852          { ac_try='test -s conftest.$ac_objext'
16853   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16854   (eval $ac_try) 2>&5
16855   ac_status=$?
16856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16857   (exit $ac_status); }; }; then
16858   ac_hi=-1 ac_mid=-1
16859   while :; do
16860     cat >conftest.$ac_ext <<_ACEOF
16861 /* confdefs.h.  */
16862 _ACEOF
16863 cat confdefs.h >>conftest.$ac_ext
16864 cat >>conftest.$ac_ext <<_ACEOF
16865 /* end confdefs.h.  */
16866 $ac_includes_default
16867 int
16868 main ()
16869 {
16870 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= $ac_mid)];
16871 test_array [0] = 0
16872
16873   ;
16874   return 0;
16875 }
16876 _ACEOF
16877 rm -f conftest.$ac_objext
16878 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16879   (eval $ac_compile) 2>conftest.er1
16880   ac_status=$?
16881   grep -v '^ *+' conftest.er1 >conftest.err
16882   rm -f conftest.er1
16883   cat conftest.err >&5
16884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16885   (exit $ac_status); } &&
16886          { ac_try='test -z "$ac_c_werror_flag"
16887                          || test ! -s conftest.err'
16888   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16889   (eval $ac_try) 2>&5
16890   ac_status=$?
16891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16892   (exit $ac_status); }; } &&
16893          { ac_try='test -s conftest.$ac_objext'
16894   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16895   (eval $ac_try) 2>&5
16896   ac_status=$?
16897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16898   (exit $ac_status); }; }; then
16899   ac_lo=$ac_mid; break
16900 else
16901   echo "$as_me: failed program was:" >&5
16902 sed 's/^/| /' conftest.$ac_ext >&5
16903
16904 ac_hi=`expr '(' $ac_mid ')' - 1`
16905                        if test $ac_mid -le $ac_hi; then
16906                          ac_lo= ac_hi=
16907                          break
16908                        fi
16909                        ac_mid=`expr 2 '*' $ac_mid`
16910 fi
16911 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16912   done
16913 else
16914   echo "$as_me: failed program was:" >&5
16915 sed 's/^/| /' conftest.$ac_ext >&5
16916
16917 ac_lo= ac_hi=
16918 fi
16919 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16920 fi
16921 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16922 # Binary search between lo and hi bounds.
16923 while test "x$ac_lo" != "x$ac_hi"; do
16924   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16925   cat >conftest.$ac_ext <<_ACEOF
16926 /* confdefs.h.  */
16927 _ACEOF
16928 cat confdefs.h >>conftest.$ac_ext
16929 cat >>conftest.$ac_ext <<_ACEOF
16930 /* end confdefs.h.  */
16931 $ac_includes_default
16932 int
16933 main ()
16934 {
16935 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
16936 test_array [0] = 0
16937
16938   ;
16939   return 0;
16940 }
16941 _ACEOF
16942 rm -f conftest.$ac_objext
16943 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16944   (eval $ac_compile) 2>conftest.er1
16945   ac_status=$?
16946   grep -v '^ *+' conftest.er1 >conftest.err
16947   rm -f conftest.er1
16948   cat conftest.err >&5
16949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16950   (exit $ac_status); } &&
16951          { ac_try='test -z "$ac_c_werror_flag"
16952                          || test ! -s conftest.err'
16953   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16954   (eval $ac_try) 2>&5
16955   ac_status=$?
16956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16957   (exit $ac_status); }; } &&
16958          { ac_try='test -s conftest.$ac_objext'
16959   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16960   (eval $ac_try) 2>&5
16961   ac_status=$?
16962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16963   (exit $ac_status); }; }; then
16964   ac_hi=$ac_mid
16965 else
16966   echo "$as_me: failed program was:" >&5
16967 sed 's/^/| /' conftest.$ac_ext >&5
16968
16969 ac_lo=`expr '(' $ac_mid ')' + 1`
16970 fi
16971 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16972 done
16973 case $ac_lo in
16974 ?*) ac_cv_sizeof_int_p=$ac_lo;;
16975 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
16976 See \`config.log' for more details." >&5
16977 echo "$as_me: error: cannot compute sizeof (int *), 77
16978 See \`config.log' for more details." >&2;}
16979    { (exit 1); exit 1; }; } ;;
16980 esac
16981 else
16982   if test "$cross_compiling" = yes; then
16983   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16984 See \`config.log' for more details." >&5
16985 echo "$as_me: error: cannot run test program while cross compiling
16986 See \`config.log' for more details." >&2;}
16987    { (exit 1); exit 1; }; }
16988 else
16989   cat >conftest.$ac_ext <<_ACEOF
16990 /* confdefs.h.  */
16991 _ACEOF
16992 cat confdefs.h >>conftest.$ac_ext
16993 cat >>conftest.$ac_ext <<_ACEOF
16994 /* end confdefs.h.  */
16995 $ac_includes_default
16996 long longval () { return (long) (sizeof (int *)); }
16997 unsigned long ulongval () { return (long) (sizeof (int *)); }
16998 #include <stdio.h>
16999 #include <stdlib.h>
17000 int
17001 main ()
17002 {
17003
17004   FILE *f = fopen ("conftest.val", "w");
17005   if (! f)
17006     exit (1);
17007   if (((long) (sizeof (int *))) < 0)
17008     {
17009       long i = longval ();
17010       if (i != ((long) (sizeof (int *))))
17011         exit (1);
17012       fprintf (f, "%ld\n", i);
17013     }
17014   else
17015     {
17016       unsigned long i = ulongval ();
17017       if (i != ((long) (sizeof (int *))))
17018         exit (1);
17019       fprintf (f, "%lu\n", i);
17020     }
17021   exit (ferror (f) || fclose (f) != 0);
17022
17023   ;
17024   return 0;
17025 }
17026 _ACEOF
17027 rm -f conftest$ac_exeext
17028 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17029   (eval $ac_link) 2>&5
17030   ac_status=$?
17031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17032   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17033   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17034   (eval $ac_try) 2>&5
17035   ac_status=$?
17036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17037   (exit $ac_status); }; }; then
17038   ac_cv_sizeof_int_p=`cat conftest.val`
17039 else
17040   echo "$as_me: program exited with status $ac_status" >&5
17041 echo "$as_me: failed program was:" >&5
17042 sed 's/^/| /' conftest.$ac_ext >&5
17043
17044 ( exit $ac_status )
17045 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
17046 See \`config.log' for more details." >&5
17047 echo "$as_me: error: cannot compute sizeof (int *), 77
17048 See \`config.log' for more details." >&2;}
17049    { (exit 1); exit 1; }; }
17050 fi
17051 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17052 fi
17053 fi
17054 rm -f conftest.val
17055 else
17056   ac_cv_sizeof_int_p=0
17057 fi
17058 fi
17059 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
17060 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6
17061 cat >>confdefs.h <<_ACEOF
17062 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
17063 _ACEOF
17064
17065
17066
17067 # Check for sys/types.h types
17068 echo "$as_me:$LINENO: checking for u_int type" >&5
17069 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6
17070 if test "${ac_cv_have_u_int+set}" = set; then
17071   echo $ECHO_N "(cached) $ECHO_C" >&6
17072 else
17073
17074     cat >conftest.$ac_ext <<_ACEOF
17075 /* confdefs.h.  */
17076 _ACEOF
17077 cat confdefs.h >>conftest.$ac_ext
17078 cat >>conftest.$ac_ext <<_ACEOF
17079 /* end confdefs.h.  */
17080  #include <sys/types.h>
17081 int
17082 main ()
17083 {
17084  u_int a; a = 1;
17085   ;
17086   return 0;
17087 }
17088 _ACEOF
17089 rm -f conftest.$ac_objext
17090 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17091   (eval $ac_compile) 2>conftest.er1
17092   ac_status=$?
17093   grep -v '^ *+' conftest.er1 >conftest.err
17094   rm -f conftest.er1
17095   cat conftest.err >&5
17096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17097   (exit $ac_status); } &&
17098          { ac_try='test -z "$ac_c_werror_flag"
17099                          || test ! -s conftest.err'
17100   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17101   (eval $ac_try) 2>&5
17102   ac_status=$?
17103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17104   (exit $ac_status); }; } &&
17105          { ac_try='test -s conftest.$ac_objext'
17106   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17107   (eval $ac_try) 2>&5
17108   ac_status=$?
17109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17110   (exit $ac_status); }; }; then
17111    ac_cv_have_u_int="yes"
17112 else
17113   echo "$as_me: failed program was:" >&5
17114 sed 's/^/| /' conftest.$ac_ext >&5
17115
17116  ac_cv_have_u_int="no"
17117
17118 fi
17119 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17120
17121 fi
17122 echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
17123 echo "${ECHO_T}$ac_cv_have_u_int" >&6
17124 if test "x$ac_cv_have_u_int" = "xyes" ; then
17125    cat >>confdefs.h <<\_ACEOF
17126 #define HAVE_U_INT 1
17127 _ACEOF
17128
17129    have_u_int=1
17130 fi
17131
17132 echo "$as_me:$LINENO: checking for intmax_t type" >&5
17133 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6
17134 if test "${ac_cv_have_intmax_t+set}" = set; then
17135   echo $ECHO_N "(cached) $ECHO_C" >&6
17136 else
17137
17138    cat >conftest.$ac_ext <<_ACEOF
17139 /* confdefs.h.  */
17140 _ACEOF
17141 cat confdefs.h >>conftest.$ac_ext
17142 cat >>conftest.$ac_ext <<_ACEOF
17143 /* end confdefs.h.  */
17144  #include <sys/types.h>
17145 int
17146 main ()
17147 {
17148  intmax_t a; a = 1;
17149   ;
17150   return 0;
17151 }
17152 _ACEOF
17153 rm -f conftest.$ac_objext
17154 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17155   (eval $ac_compile) 2>conftest.er1
17156   ac_status=$?
17157   grep -v '^ *+' conftest.er1 >conftest.err
17158   rm -f conftest.er1
17159   cat conftest.err >&5
17160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17161   (exit $ac_status); } &&
17162          { ac_try='test -z "$ac_c_werror_flag"
17163                          || test ! -s conftest.err'
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); }; } &&
17169          { ac_try='test -s conftest.$ac_objext'
17170   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17171   (eval $ac_try) 2>&5
17172   ac_status=$?
17173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17174   (exit $ac_status); }; }; then
17175    ac_cv_have_intmax_t="yes"
17176 else
17177   echo "$as_me: failed program was:" >&5
17178 sed 's/^/| /' conftest.$ac_ext >&5
17179
17180
17181          cat >conftest.$ac_ext <<_ACEOF
17182 /* confdefs.h.  */
17183 _ACEOF
17184 cat confdefs.h >>conftest.$ac_ext
17185 cat >>conftest.$ac_ext <<_ACEOF
17186 /* end confdefs.h.  */
17187  #include <stdint.h>
17188 int
17189 main ()
17190 {
17191  intmax_t a; a = 1;
17192   ;
17193   return 0;
17194 }
17195 _ACEOF
17196 rm -f conftest.$ac_objext
17197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17198   (eval $ac_compile) 2>conftest.er1
17199   ac_status=$?
17200   grep -v '^ *+' conftest.er1 >conftest.err
17201   rm -f conftest.er1
17202   cat conftest.err >&5
17203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17204   (exit $ac_status); } &&
17205          { ac_try='test -z "$ac_c_werror_flag"
17206                          || test ! -s conftest.err'
17207   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17208   (eval $ac_try) 2>&5
17209   ac_status=$?
17210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17211   (exit $ac_status); }; } &&
17212          { ac_try='test -s conftest.$ac_objext'
17213   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17214   (eval $ac_try) 2>&5
17215   ac_status=$?
17216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17217   (exit $ac_status); }; }; then
17218    ac_cv_have_intmax_t="yes"
17219 else
17220   echo "$as_me: failed program was:" >&5
17221 sed 's/^/| /' conftest.$ac_ext >&5
17222
17223  ac_cv_have_intmax_t="no"
17224
17225 fi
17226 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17227
17228
17229 fi
17230 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17231
17232
17233 fi
17234 echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
17235 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6
17236 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
17237    cat >>confdefs.h <<\_ACEOF
17238 #define HAVE_INTMAX_T 1
17239 _ACEOF
17240
17241    have_intmax_t=1
17242 fi
17243
17244
17245 echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
17246 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6
17247 if test "${ac_cv_have_u_intmax_t+set}" = set; then
17248   echo $ECHO_N "(cached) $ECHO_C" >&6
17249 else
17250
17251    cat >conftest.$ac_ext <<_ACEOF
17252 /* confdefs.h.  */
17253 _ACEOF
17254 cat confdefs.h >>conftest.$ac_ext
17255 cat >>conftest.$ac_ext <<_ACEOF
17256 /* end confdefs.h.  */
17257  #include <sys/types.h>
17258 int
17259 main ()
17260 {
17261  u_intmax_t a; a = 1;
17262   ;
17263   return 0;
17264 }
17265 _ACEOF
17266 rm -f conftest.$ac_objext
17267 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17268   (eval $ac_compile) 2>conftest.er1
17269   ac_status=$?
17270   grep -v '^ *+' conftest.er1 >conftest.err
17271   rm -f conftest.er1
17272   cat conftest.err >&5
17273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17274   (exit $ac_status); } &&
17275          { ac_try='test -z "$ac_c_werror_flag"
17276                          || test ! -s conftest.err'
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); }; } &&
17282          { ac_try='test -s conftest.$ac_objext'
17283   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17284   (eval $ac_try) 2>&5
17285   ac_status=$?
17286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17287   (exit $ac_status); }; }; then
17288    ac_cv_have_u_intmax_t="yes"
17289 else
17290   echo "$as_me: failed program was:" >&5
17291 sed 's/^/| /' conftest.$ac_ext >&5
17292
17293
17294          cat >conftest.$ac_ext <<_ACEOF
17295 /* confdefs.h.  */
17296 _ACEOF
17297 cat confdefs.h >>conftest.$ac_ext
17298 cat >>conftest.$ac_ext <<_ACEOF
17299 /* end confdefs.h.  */
17300  #include <stdint.h>
17301 int
17302 main ()
17303 {
17304  u_intmax_t a; a = 1;
17305   ;
17306   return 0;
17307 }
17308 _ACEOF
17309 rm -f conftest.$ac_objext
17310 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17311   (eval $ac_compile) 2>conftest.er1
17312   ac_status=$?
17313   grep -v '^ *+' conftest.er1 >conftest.err
17314   rm -f conftest.er1
17315   cat conftest.err >&5
17316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17317   (exit $ac_status); } &&
17318          { ac_try='test -z "$ac_c_werror_flag"
17319                          || test ! -s conftest.err'
17320   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17321   (eval $ac_try) 2>&5
17322   ac_status=$?
17323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17324   (exit $ac_status); }; } &&
17325          { ac_try='test -s conftest.$ac_objext'
17326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17327   (eval $ac_try) 2>&5
17328   ac_status=$?
17329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17330   (exit $ac_status); }; }; then
17331    ac_cv_have_u_intmax_t="yes"
17332 else
17333   echo "$as_me: failed program was:" >&5
17334 sed 's/^/| /' conftest.$ac_ext >&5
17335
17336  ac_cv_have_u_intmax_t="no"
17337
17338 fi
17339 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17340
17341
17342 fi
17343 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17344
17345 fi
17346 echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
17347 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6
17348 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
17349    cat >>confdefs.h <<\_ACEOF
17350 #define HAVE_U_INTMAX_T 1
17351 _ACEOF
17352
17353    have_u_intmax_t=1
17354 fi
17355
17356
17357 echo "$as_me:$LINENO: checking for intXX_t types" >&5
17358 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6
17359 if test "${ac_cv_have_intxx_t+set}" = set; then
17360   echo $ECHO_N "(cached) $ECHO_C" >&6
17361 else
17362
17363    cat >conftest.$ac_ext <<_ACEOF
17364 /* confdefs.h.  */
17365 _ACEOF
17366 cat confdefs.h >>conftest.$ac_ext
17367 cat >>conftest.$ac_ext <<_ACEOF
17368 /* end confdefs.h.  */
17369  #include <sys/types.h>
17370 int
17371 main ()
17372 {
17373  int8_t a; int16_t b; int32_t c; a = b = c = 1;
17374   ;
17375   return 0;
17376 }
17377 _ACEOF
17378 rm -f conftest.$ac_objext
17379 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17380   (eval $ac_compile) 2>conftest.er1
17381   ac_status=$?
17382   grep -v '^ *+' conftest.er1 >conftest.err
17383   rm -f conftest.er1
17384   cat conftest.err >&5
17385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17386   (exit $ac_status); } &&
17387          { ac_try='test -z "$ac_c_werror_flag"
17388                          || test ! -s conftest.err'
17389   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17390   (eval $ac_try) 2>&5
17391   ac_status=$?
17392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17393   (exit $ac_status); }; } &&
17394          { ac_try='test -s conftest.$ac_objext'
17395   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17396   (eval $ac_try) 2>&5
17397   ac_status=$?
17398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17399   (exit $ac_status); }; }; then
17400    ac_cv_have_intxx_t="yes"
17401 else
17402   echo "$as_me: failed program was:" >&5
17403 sed 's/^/| /' conftest.$ac_ext >&5
17404
17405  ac_cv_have_intxx_t="no"
17406
17407 fi
17408 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17409
17410 fi
17411 echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
17412 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6
17413 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
17414    cat >>confdefs.h <<\_ACEOF
17415 #define HAVE_INTXX_T 1
17416 _ACEOF
17417
17418    have_intxx_t=1
17419 fi
17420
17421 echo "$as_me:$LINENO: checking for int64_t type" >&5
17422 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6
17423 if test "${ac_cv_have_int64_t+set}" = set; then
17424   echo $ECHO_N "(cached) $ECHO_C" >&6
17425 else
17426
17427    cat >conftest.$ac_ext <<_ACEOF
17428 /* confdefs.h.  */
17429 _ACEOF
17430 cat confdefs.h >>conftest.$ac_ext
17431 cat >>conftest.$ac_ext <<_ACEOF
17432 /* end confdefs.h.  */
17433  #include <sys/types.h>
17434 int
17435 main ()
17436 {
17437  int64_t a; a = 1;
17438   ;
17439   return 0;
17440 }
17441 _ACEOF
17442 rm -f conftest.$ac_objext
17443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17444   (eval $ac_compile) 2>conftest.er1
17445   ac_status=$?
17446   grep -v '^ *+' conftest.er1 >conftest.err
17447   rm -f conftest.er1
17448   cat conftest.err >&5
17449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17450   (exit $ac_status); } &&
17451          { ac_try='test -z "$ac_c_werror_flag"
17452                          || test ! -s conftest.err'
17453   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17454   (eval $ac_try) 2>&5
17455   ac_status=$?
17456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17457   (exit $ac_status); }; } &&
17458          { ac_try='test -s conftest.$ac_objext'
17459   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17460   (eval $ac_try) 2>&5
17461   ac_status=$?
17462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17463   (exit $ac_status); }; }; then
17464    ac_cv_have_int64_t="yes"
17465 else
17466   echo "$as_me: failed program was:" >&5
17467 sed 's/^/| /' conftest.$ac_ext >&5
17468
17469  ac_cv_have_int64_t="no"
17470
17471 fi
17472 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17473
17474 fi
17475 echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
17476 echo "${ECHO_T}$ac_cv_have_int64_t" >&6
17477 if test "x$ac_cv_have_int64_t" = "xyes" ; then
17478    cat >>confdefs.h <<\_ACEOF
17479 #define HAVE_INT64_T 1
17480 _ACEOF
17481
17482    have_int64_t=1
17483 fi
17484
17485 echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
17486 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6
17487 if test "${ac_cv_have_u_intxx_t+set}" = set; then
17488   echo $ECHO_N "(cached) $ECHO_C" >&6
17489 else
17490
17491    cat >conftest.$ac_ext <<_ACEOF
17492 /* confdefs.h.  */
17493 _ACEOF
17494 cat confdefs.h >>conftest.$ac_ext
17495 cat >>conftest.$ac_ext <<_ACEOF
17496 /* end confdefs.h.  */
17497  #include <sys/types.h>
17498 int
17499 main ()
17500 {
17501  u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
17502   ;
17503   return 0;
17504 }
17505 _ACEOF
17506 rm -f conftest.$ac_objext
17507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17508   (eval $ac_compile) 2>conftest.er1
17509   ac_status=$?
17510   grep -v '^ *+' conftest.er1 >conftest.err
17511   rm -f conftest.er1
17512   cat conftest.err >&5
17513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17514   (exit $ac_status); } &&
17515          { ac_try='test -z "$ac_c_werror_flag"
17516                          || test ! -s conftest.err'
17517   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17518   (eval $ac_try) 2>&5
17519   ac_status=$?
17520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17521   (exit $ac_status); }; } &&
17522          { ac_try='test -s conftest.$ac_objext'
17523   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17524   (eval $ac_try) 2>&5
17525   ac_status=$?
17526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17527   (exit $ac_status); }; }; then
17528    ac_cv_have_u_intxx_t="yes"
17529 else
17530   echo "$as_me: failed program was:" >&5
17531 sed 's/^/| /' conftest.$ac_ext >&5
17532
17533  ac_cv_have_u_intxx_t="no"
17534
17535 fi
17536 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17537
17538 fi
17539 echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
17540 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6
17541 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
17542    cat >>confdefs.h <<\_ACEOF
17543 #define HAVE_U_INTXX_T 1
17544 _ACEOF
17545
17546    have_u_intxx_t=1
17547 fi
17548
17549 echo "$as_me:$LINENO: checking for u_int64_t types" >&5
17550 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6
17551 if test "${ac_cv_have_u_int64_t+set}" = set; then
17552   echo $ECHO_N "(cached) $ECHO_C" >&6
17553 else
17554
17555    cat >conftest.$ac_ext <<_ACEOF
17556 /* confdefs.h.  */
17557 _ACEOF
17558 cat confdefs.h >>conftest.$ac_ext
17559 cat >>conftest.$ac_ext <<_ACEOF
17560 /* end confdefs.h.  */
17561  #include <sys/types.h>
17562 int
17563 main ()
17564 {
17565  u_int64_t a; a = 1;
17566   ;
17567   return 0;
17568 }
17569 _ACEOF
17570 rm -f conftest.$ac_objext
17571 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17572   (eval $ac_compile) 2>conftest.er1
17573   ac_status=$?
17574   grep -v '^ *+' conftest.er1 >conftest.err
17575   rm -f conftest.er1
17576   cat conftest.err >&5
17577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17578   (exit $ac_status); } &&
17579          { ac_try='test -z "$ac_c_werror_flag"
17580                          || test ! -s conftest.err'
17581   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17582   (eval $ac_try) 2>&5
17583   ac_status=$?
17584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17585   (exit $ac_status); }; } &&
17586          { ac_try='test -s conftest.$ac_objext'
17587   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17588   (eval $ac_try) 2>&5
17589   ac_status=$?
17590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17591   (exit $ac_status); }; }; then
17592    ac_cv_have_u_int64_t="yes"
17593 else
17594   echo "$as_me: failed program was:" >&5
17595 sed 's/^/| /' conftest.$ac_ext >&5
17596
17597  ac_cv_have_u_int64_t="no"
17598
17599 fi
17600 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17601
17602 fi
17603 echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
17604 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6
17605 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
17606    cat >>confdefs.h <<\_ACEOF
17607 #define HAVE_U_INT64_T 1
17608 _ACEOF
17609
17610    have_u_int64_t=1
17611 fi
17612
17613 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
17614            test "x$ac_cv_header_sys_bitypes_h" = "xyes")
17615 then
17616    echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
17617 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6
17618    cat >conftest.$ac_ext <<_ACEOF
17619 /* confdefs.h.  */
17620 _ACEOF
17621 cat confdefs.h >>conftest.$ac_ext
17622 cat >>conftest.$ac_ext <<_ACEOF
17623 /* end confdefs.h.  */
17624  #include <sys/bitypes.h>
17625 int
17626 main ()
17627 {
17628  int8_t a; int16_t b; int32_t c;
17629         u_int8_t e; u_int16_t f; u_int32_t g;
17630         a = b = c = e = f = g = 1;
17631   ;
17632   return 0;
17633 }
17634 _ACEOF
17635 rm -f conftest.$ac_objext
17636 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17637   (eval $ac_compile) 2>conftest.er1
17638   ac_status=$?
17639   grep -v '^ *+' conftest.er1 >conftest.err
17640   rm -f conftest.er1
17641   cat conftest.err >&5
17642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17643   (exit $ac_status); } &&
17644          { ac_try='test -z "$ac_c_werror_flag"
17645                          || test ! -s conftest.err'
17646   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17647   (eval $ac_try) 2>&5
17648   ac_status=$?
17649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17650   (exit $ac_status); }; } &&
17651          { ac_try='test -s conftest.$ac_objext'
17652   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17653   (eval $ac_try) 2>&5
17654   ac_status=$?
17655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17656   (exit $ac_status); }; }; then
17657    cat >>confdefs.h <<\_ACEOF
17658 #define HAVE_U_INTXX_T 1
17659 _ACEOF
17660
17661         cat >>confdefs.h <<\_ACEOF
17662 #define HAVE_INTXX_T 1
17663 _ACEOF
17664
17665         cat >>confdefs.h <<\_ACEOF
17666 #define HAVE_SYS_BITYPES_H 1
17667 _ACEOF
17668
17669         echo "$as_me:$LINENO: result: yes" >&5
17670 echo "${ECHO_T}yes" >&6
17671 else
17672   echo "$as_me: failed program was:" >&5
17673 sed 's/^/| /' conftest.$ac_ext >&5
17674
17675  echo "$as_me:$LINENO: result: no" >&5
17676 echo "${ECHO_T}no" >&6
17677
17678 fi
17679 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17680 fi
17681
17682 if test -z "$have_u_intxx_t" ; then
17683    echo "$as_me:$LINENO: checking for uintXX_t types" >&5
17684 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6
17685 if test "${ac_cv_have_uintxx_t+set}" = set; then
17686   echo $ECHO_N "(cached) $ECHO_C" >&6
17687 else
17688
17689       cat >conftest.$ac_ext <<_ACEOF
17690 /* confdefs.h.  */
17691 _ACEOF
17692 cat confdefs.h >>conftest.$ac_ext
17693 cat >>conftest.$ac_ext <<_ACEOF
17694 /* end confdefs.h.  */
17695  #include <sys/types.h>
17696 int
17697 main ()
17698 {
17699  uint8_t a; uint16_t b;
17700            uint32_t c; a = b = c = 1;
17701   ;
17702   return 0;
17703 }
17704 _ACEOF
17705 rm -f conftest.$ac_objext
17706 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17707   (eval $ac_compile) 2>conftest.er1
17708   ac_status=$?
17709   grep -v '^ *+' conftest.er1 >conftest.err
17710   rm -f conftest.er1
17711   cat conftest.err >&5
17712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17713   (exit $ac_status); } &&
17714          { ac_try='test -z "$ac_c_werror_flag"
17715                          || test ! -s conftest.err'
17716   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17717   (eval $ac_try) 2>&5
17718   ac_status=$?
17719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17720   (exit $ac_status); }; } &&
17721          { ac_try='test -s conftest.$ac_objext'
17722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17723   (eval $ac_try) 2>&5
17724   ac_status=$?
17725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17726   (exit $ac_status); }; }; then
17727    ac_cv_have_uintxx_t="yes"
17728 else
17729   echo "$as_me: failed program was:" >&5
17730 sed 's/^/| /' conftest.$ac_ext >&5
17731
17732  ac_cv_have_uintxx_t="no"
17733
17734 fi
17735 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17736
17737 fi
17738 echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
17739 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6
17740    if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
17741       cat >>confdefs.h <<\_ACEOF
17742 #define HAVE_UINTXX_T 1
17743 _ACEOF
17744
17745    fi
17746 fi
17747
17748 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
17749           test "x$ac_cv_header_sys_bitypes_h" = "xyes")
17750 then
17751    echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
17752 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6
17753    cat >conftest.$ac_ext <<_ACEOF
17754 /* confdefs.h.  */
17755 _ACEOF
17756 cat confdefs.h >>conftest.$ac_ext
17757 cat >>conftest.$ac_ext <<_ACEOF
17758 /* end confdefs.h.  */
17759  #include <sys/bitypes.h>
17760 int
17761 main ()
17762 {
17763  int64_t a; u_int64_t b;
17764        a = b = 1;
17765   ;
17766   return 0;
17767 }
17768 _ACEOF
17769 rm -f conftest.$ac_objext
17770 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17771   (eval $ac_compile) 2>conftest.er1
17772   ac_status=$?
17773   grep -v '^ *+' conftest.er1 >conftest.err
17774   rm -f conftest.er1
17775   cat conftest.err >&5
17776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17777   (exit $ac_status); } &&
17778          { ac_try='test -z "$ac_c_werror_flag"
17779                          || test ! -s conftest.err'
17780   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17781   (eval $ac_try) 2>&5
17782   ac_status=$?
17783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17784   (exit $ac_status); }; } &&
17785          { ac_try='test -s conftest.$ac_objext'
17786   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17787   (eval $ac_try) 2>&5
17788   ac_status=$?
17789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17790   (exit $ac_status); }; }; then
17791    cat >>confdefs.h <<\_ACEOF
17792 #define HAVE_U_INT64_T 1
17793 _ACEOF
17794
17795        cat >>confdefs.h <<\_ACEOF
17796 #define HAVE_INT64_T 1
17797 _ACEOF
17798
17799        echo "$as_me:$LINENO: result: yes" >&5
17800 echo "${ECHO_T}yes" >&6
17801 else
17802   echo "$as_me: failed program was:" >&5
17803 sed 's/^/| /' conftest.$ac_ext >&5
17804
17805  echo "$as_me:$LINENO: result: no" >&5
17806 echo "${ECHO_T}no" >&6
17807
17808 fi
17809 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17810 fi
17811
17812 if (test -z "$have_uintxx_t" && \
17813           test "x$ac_cv_header_sys_bitypes_h" = "xyes")
17814 then
17815    echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
17816 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6
17817    cat >conftest.$ac_ext <<_ACEOF
17818 /* confdefs.h.  */
17819 _ACEOF
17820 cat confdefs.h >>conftest.$ac_ext
17821 cat >>conftest.$ac_ext <<_ACEOF
17822 /* end confdefs.h.  */
17823  #include <sys/bitypes.h>
17824 int
17825 main ()
17826 {
17827  uint8_t a; uint16_t b;
17828           uint32_t c; a = b = c = 1;
17829   ;
17830   return 0;
17831 }
17832 _ACEOF
17833 rm -f conftest.$ac_objext
17834 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17835   (eval $ac_compile) 2>conftest.er1
17836   ac_status=$?
17837   grep -v '^ *+' conftest.er1 >conftest.err
17838   rm -f conftest.er1
17839   cat conftest.err >&5
17840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17841   (exit $ac_status); } &&
17842          { ac_try='test -z "$ac_c_werror_flag"
17843                          || test ! -s conftest.err'
17844   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17845   (eval $ac_try) 2>&5
17846   ac_status=$?
17847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17848   (exit $ac_status); }; } &&
17849          { ac_try='test -s conftest.$ac_objext'
17850   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17851   (eval $ac_try) 2>&5
17852   ac_status=$?
17853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17854   (exit $ac_status); }; }; then
17855    cat >>confdefs.h <<\_ACEOF
17856 #define HAVE_UINTXX_T 1
17857 _ACEOF
17858
17859        echo "$as_me:$LINENO: result: yes" >&5
17860 echo "${ECHO_T}yes" >&6
17861 else
17862   echo "$as_me: failed program was:" >&5
17863 sed 's/^/| /' conftest.$ac_ext >&5
17864
17865  echo "$as_me:$LINENO: result: no" >&5
17866 echo "${ECHO_T}no" >&6
17867
17868 fi
17869 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17870
17871 fi
17872
17873
17874
17875
17876
17877
17878
17879
17880
17881
17882
17883
17884
17885
17886
17887
17888
17889 for ac_func in \
17890         fork \
17891         getcwd \
17892         gethostname \
17893         getpid \
17894         gettimeofday \
17895         setpgid \
17896         setpgrp \
17897         setsid \
17898         signal \
17899         strerror \
17900         strncmp \
17901         strncpy \
17902         vfprintf \
17903
17904 do
17905 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17906 echo "$as_me:$LINENO: checking for $ac_func" >&5
17907 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17908 if eval "test \"\${$as_ac_var+set}\" = set"; then
17909   echo $ECHO_N "(cached) $ECHO_C" >&6
17910 else
17911   cat >conftest.$ac_ext <<_ACEOF
17912 /* confdefs.h.  */
17913 _ACEOF
17914 cat confdefs.h >>conftest.$ac_ext
17915 cat >>conftest.$ac_ext <<_ACEOF
17916 /* end confdefs.h.  */
17917 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17918    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17919 #define $ac_func innocuous_$ac_func
17920
17921 /* System header to define __stub macros and hopefully few prototypes,
17922     which can conflict with char $ac_func (); below.
17923     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17924     <limits.h> exists even on freestanding compilers.  */
17925
17926 #ifdef __STDC__
17927 # include <limits.h>
17928 #else
17929 # include <assert.h>
17930 #endif
17931
17932 #undef $ac_func
17933
17934 /* Override any gcc2 internal prototype to avoid an error.  */
17935 #ifdef __cplusplus
17936 extern "C"
17937 {
17938 #endif
17939 /* We use char because int might match the return type of a gcc2
17940    builtin and then its argument prototype would still apply.  */
17941 char $ac_func ();
17942 /* The GNU C library defines this for functions which it implements
17943     to always fail with ENOSYS.  Some functions are actually named
17944     something starting with __ and the normal name is an alias.  */
17945 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17946 choke me
17947 #else
17948 char (*f) () = $ac_func;
17949 #endif
17950 #ifdef __cplusplus
17951 }
17952 #endif
17953
17954 int
17955 main ()
17956 {
17957 return f != $ac_func;
17958   ;
17959   return 0;
17960 }
17961 _ACEOF
17962 rm -f conftest.$ac_objext conftest$ac_exeext
17963 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17964   (eval $ac_link) 2>conftest.er1
17965   ac_status=$?
17966   grep -v '^ *+' conftest.er1 >conftest.err
17967   rm -f conftest.er1
17968   cat conftest.err >&5
17969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17970   (exit $ac_status); } &&
17971          { ac_try='test -z "$ac_c_werror_flag"
17972                          || test ! -s conftest.err'
17973   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17974   (eval $ac_try) 2>&5
17975   ac_status=$?
17976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17977   (exit $ac_status); }; } &&
17978          { ac_try='test -s conftest$ac_exeext'
17979   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17980   (eval $ac_try) 2>&5
17981   ac_status=$?
17982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17983   (exit $ac_status); }; }; then
17984   eval "$as_ac_var=yes"
17985 else
17986   echo "$as_me: failed program was:" >&5
17987 sed 's/^/| /' conftest.$ac_ext >&5
17988
17989 eval "$as_ac_var=no"
17990 fi
17991 rm -f conftest.err conftest.$ac_objext \
17992       conftest$ac_exeext conftest.$ac_ext
17993 fi
17994 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17995 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17996 if test `eval echo '${'$as_ac_var'}'` = yes; then
17997   cat >>confdefs.h <<_ACEOF
17998 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17999 _ACEOF
18000
18001 else
18002   echo 'configure: cannot find needed function.'; exit 1
18003
18004 fi
18005 done
18006
18007
18008
18009 for ac_func in fchdir
18010 do
18011 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18012 echo "$as_me:$LINENO: checking for $ac_func" >&5
18013 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18014 if eval "test \"\${$as_ac_var+set}\" = set"; then
18015   echo $ECHO_N "(cached) $ECHO_C" >&6
18016 else
18017   cat >conftest.$ac_ext <<_ACEOF
18018 /* confdefs.h.  */
18019 _ACEOF
18020 cat confdefs.h >>conftest.$ac_ext
18021 cat >>conftest.$ac_ext <<_ACEOF
18022 /* end confdefs.h.  */
18023 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18024    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18025 #define $ac_func innocuous_$ac_func
18026
18027 /* System header to define __stub macros and hopefully few prototypes,
18028     which can conflict with char $ac_func (); below.
18029     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18030     <limits.h> exists even on freestanding compilers.  */
18031
18032 #ifdef __STDC__
18033 # include <limits.h>
18034 #else
18035 # include <assert.h>
18036 #endif
18037
18038 #undef $ac_func
18039
18040 /* Override any gcc2 internal prototype to avoid an error.  */
18041 #ifdef __cplusplus
18042 extern "C"
18043 {
18044 #endif
18045 /* We use char because int might match the return type of a gcc2
18046    builtin and then its argument prototype would still apply.  */
18047 char $ac_func ();
18048 /* The GNU C library defines this for functions which it implements
18049     to always fail with ENOSYS.  Some functions are actually named
18050     something starting with __ and the normal name is an alias.  */
18051 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18052 choke me
18053 #else
18054 char (*f) () = $ac_func;
18055 #endif
18056 #ifdef __cplusplus
18057 }
18058 #endif
18059
18060 int
18061 main ()
18062 {
18063 return f != $ac_func;
18064   ;
18065   return 0;
18066 }
18067 _ACEOF
18068 rm -f conftest.$ac_objext conftest$ac_exeext
18069 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18070   (eval $ac_link) 2>conftest.er1
18071   ac_status=$?
18072   grep -v '^ *+' conftest.er1 >conftest.err
18073   rm -f conftest.er1
18074   cat conftest.err >&5
18075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18076   (exit $ac_status); } &&
18077          { ac_try='test -z "$ac_c_werror_flag"
18078                          || test ! -s conftest.err'
18079   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18080   (eval $ac_try) 2>&5
18081   ac_status=$?
18082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18083   (exit $ac_status); }; } &&
18084          { ac_try='test -s conftest$ac_exeext'
18085   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18086   (eval $ac_try) 2>&5
18087   ac_status=$?
18088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18089   (exit $ac_status); }; }; then
18090   eval "$as_ac_var=yes"
18091 else
18092   echo "$as_me: failed program was:" >&5
18093 sed 's/^/| /' conftest.$ac_ext >&5
18094
18095 eval "$as_ac_var=no"
18096 fi
18097 rm -f conftest.err conftest.$ac_objext \
18098       conftest$ac_exeext conftest.$ac_ext
18099 fi
18100 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18101 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18102 if test `eval echo '${'$as_ac_var'}'` = yes; then
18103   cat >>confdefs.h <<_ACEOF
18104 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18105 _ACEOF
18106  cat >>confdefs.h <<\_ACEOF
18107 #define HAVE_FCHDIR 1
18108 _ACEOF
18109
18110 fi
18111 done
18112
18113
18114 for ac_func in strtoll
18115 do
18116 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18117 echo "$as_me:$LINENO: checking for $ac_func" >&5
18118 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18119 if eval "test \"\${$as_ac_var+set}\" = set"; then
18120   echo $ECHO_N "(cached) $ECHO_C" >&6
18121 else
18122   cat >conftest.$ac_ext <<_ACEOF
18123 /* confdefs.h.  */
18124 _ACEOF
18125 cat confdefs.h >>conftest.$ac_ext
18126 cat >>conftest.$ac_ext <<_ACEOF
18127 /* end confdefs.h.  */
18128 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18129    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18130 #define $ac_func innocuous_$ac_func
18131
18132 /* System header to define __stub macros and hopefully few prototypes,
18133     which can conflict with char $ac_func (); below.
18134     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18135     <limits.h> exists even on freestanding compilers.  */
18136
18137 #ifdef __STDC__
18138 # include <limits.h>
18139 #else
18140 # include <assert.h>
18141 #endif
18142
18143 #undef $ac_func
18144
18145 /* Override any gcc2 internal prototype to avoid an error.  */
18146 #ifdef __cplusplus
18147 extern "C"
18148 {
18149 #endif
18150 /* We use char because int might match the return type of a gcc2
18151    builtin and then its argument prototype would still apply.  */
18152 char $ac_func ();
18153 /* The GNU C library defines this for functions which it implements
18154     to always fail with ENOSYS.  Some functions are actually named
18155     something starting with __ and the normal name is an alias.  */
18156 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18157 choke me
18158 #else
18159 char (*f) () = $ac_func;
18160 #endif
18161 #ifdef __cplusplus
18162 }
18163 #endif
18164
18165 int
18166 main ()
18167 {
18168 return f != $ac_func;
18169   ;
18170   return 0;
18171 }
18172 _ACEOF
18173 rm -f conftest.$ac_objext conftest$ac_exeext
18174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18175   (eval $ac_link) 2>conftest.er1
18176   ac_status=$?
18177   grep -v '^ *+' conftest.er1 >conftest.err
18178   rm -f conftest.er1
18179   cat conftest.err >&5
18180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18181   (exit $ac_status); } &&
18182          { ac_try='test -z "$ac_c_werror_flag"
18183                          || test ! -s conftest.err'
18184   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18185   (eval $ac_try) 2>&5
18186   ac_status=$?
18187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18188   (exit $ac_status); }; } &&
18189          { ac_try='test -s conftest$ac_exeext'
18190   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18191   (eval $ac_try) 2>&5
18192   ac_status=$?
18193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18194   (exit $ac_status); }; }; then
18195   eval "$as_ac_var=yes"
18196 else
18197   echo "$as_me: failed program was:" >&5
18198 sed 's/^/| /' conftest.$ac_ext >&5
18199
18200 eval "$as_ac_var=no"
18201 fi
18202 rm -f conftest.err conftest.$ac_objext \
18203       conftest$ac_exeext conftest.$ac_ext
18204 fi
18205 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18206 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18207 if test `eval echo '${'$as_ac_var'}'` = yes; then
18208   cat >>confdefs.h <<_ACEOF
18209 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18210 _ACEOF
18211  cat >>confdefs.h <<\_ACEOF
18212 #define HAVE_STRTOLL 1
18213 _ACEOF
18214
18215 fi
18216 done
18217
18218
18219
18220 for ac_func in chflags
18221 do
18222 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18223 echo "$as_me:$LINENO: checking for $ac_func" >&5
18224 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18225 if eval "test \"\${$as_ac_var+set}\" = set"; then
18226   echo $ECHO_N "(cached) $ECHO_C" >&6
18227 else
18228   cat >conftest.$ac_ext <<_ACEOF
18229 /* confdefs.h.  */
18230 _ACEOF
18231 cat confdefs.h >>conftest.$ac_ext
18232 cat >>conftest.$ac_ext <<_ACEOF
18233 /* end confdefs.h.  */
18234 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18235    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18236 #define $ac_func innocuous_$ac_func
18237
18238 /* System header to define __stub macros and hopefully few prototypes,
18239     which can conflict with char $ac_func (); below.
18240     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18241     <limits.h> exists even on freestanding compilers.  */
18242
18243 #ifdef __STDC__
18244 # include <limits.h>
18245 #else
18246 # include <assert.h>
18247 #endif
18248
18249 #undef $ac_func
18250
18251 /* Override any gcc2 internal prototype to avoid an error.  */
18252 #ifdef __cplusplus
18253 extern "C"
18254 {
18255 #endif
18256 /* We use char because int might match the return type of a gcc2
18257    builtin and then its argument prototype would still apply.  */
18258 char $ac_func ();
18259 /* The GNU C library defines this for functions which it implements
18260     to always fail with ENOSYS.  Some functions are actually named
18261     something starting with __ and the normal name is an alias.  */
18262 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18263 choke me
18264 #else
18265 char (*f) () = $ac_func;
18266 #endif
18267 #ifdef __cplusplus
18268 }
18269 #endif
18270
18271 int
18272 main ()
18273 {
18274 return f != $ac_func;
18275   ;
18276   return 0;
18277 }
18278 _ACEOF
18279 rm -f conftest.$ac_objext conftest$ac_exeext
18280 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18281   (eval $ac_link) 2>conftest.er1
18282   ac_status=$?
18283   grep -v '^ *+' conftest.er1 >conftest.err
18284   rm -f conftest.er1
18285   cat conftest.err >&5
18286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18287   (exit $ac_status); } &&
18288          { ac_try='test -z "$ac_c_werror_flag"
18289                          || test ! -s conftest.err'
18290   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18291   (eval $ac_try) 2>&5
18292   ac_status=$?
18293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18294   (exit $ac_status); }; } &&
18295          { ac_try='test -s conftest$ac_exeext'
18296   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18297   (eval $ac_try) 2>&5
18298   ac_status=$?
18299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18300   (exit $ac_status); }; }; then
18301   eval "$as_ac_var=yes"
18302 else
18303   echo "$as_me: failed program was:" >&5
18304 sed 's/^/| /' conftest.$ac_ext >&5
18305
18306 eval "$as_ac_var=no"
18307 fi
18308 rm -f conftest.err conftest.$ac_objext \
18309       conftest$ac_exeext conftest.$ac_ext
18310 fi
18311 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18312 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18313 if test `eval echo '${'$as_ac_var'}'` = yes; then
18314   cat >>confdefs.h <<_ACEOF
18315 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18316 _ACEOF
18317
18318 fi
18319 done
18320
18321
18322
18323
18324
18325
18326 for ac_func in snprintf vsnprintf gethostid fseeko
18327 do
18328 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18329 echo "$as_me:$LINENO: checking for $ac_func" >&5
18330 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18331 if eval "test \"\${$as_ac_var+set}\" = set"; then
18332   echo $ECHO_N "(cached) $ECHO_C" >&6
18333 else
18334   cat >conftest.$ac_ext <<_ACEOF
18335 /* confdefs.h.  */
18336 _ACEOF
18337 cat confdefs.h >>conftest.$ac_ext
18338 cat >>conftest.$ac_ext <<_ACEOF
18339 /* end confdefs.h.  */
18340 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18341    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18342 #define $ac_func innocuous_$ac_func
18343
18344 /* System header to define __stub macros and hopefully few prototypes,
18345     which can conflict with char $ac_func (); below.
18346     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18347     <limits.h> exists even on freestanding compilers.  */
18348
18349 #ifdef __STDC__
18350 # include <limits.h>
18351 #else
18352 # include <assert.h>
18353 #endif
18354
18355 #undef $ac_func
18356
18357 /* Override any gcc2 internal prototype to avoid an error.  */
18358 #ifdef __cplusplus
18359 extern "C"
18360 {
18361 #endif
18362 /* We use char because int might match the return type of a gcc2
18363    builtin and then its argument prototype would still apply.  */
18364 char $ac_func ();
18365 /* The GNU C library defines this for functions which it implements
18366     to always fail with ENOSYS.  Some functions are actually named
18367     something starting with __ and the normal name is an alias.  */
18368 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18369 choke me
18370 #else
18371 char (*f) () = $ac_func;
18372 #endif
18373 #ifdef __cplusplus
18374 }
18375 #endif
18376
18377 int
18378 main ()
18379 {
18380 return f != $ac_func;
18381   ;
18382   return 0;
18383 }
18384 _ACEOF
18385 rm -f conftest.$ac_objext conftest$ac_exeext
18386 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18387   (eval $ac_link) 2>conftest.er1
18388   ac_status=$?
18389   grep -v '^ *+' conftest.er1 >conftest.err
18390   rm -f conftest.er1
18391   cat conftest.err >&5
18392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18393   (exit $ac_status); } &&
18394          { ac_try='test -z "$ac_c_werror_flag"
18395                          || test ! -s conftest.err'
18396   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18397   (eval $ac_try) 2>&5
18398   ac_status=$?
18399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18400   (exit $ac_status); }; } &&
18401          { ac_try='test -s conftest$ac_exeext'
18402   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18403   (eval $ac_try) 2>&5
18404   ac_status=$?
18405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18406   (exit $ac_status); }; }; then
18407   eval "$as_ac_var=yes"
18408 else
18409   echo "$as_me: failed program was:" >&5
18410 sed 's/^/| /' conftest.$ac_ext >&5
18411
18412 eval "$as_ac_var=no"
18413 fi
18414 rm -f conftest.err conftest.$ac_objext \
18415       conftest$ac_exeext conftest.$ac_ext
18416 fi
18417 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18418 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18419 if test `eval echo '${'$as_ac_var'}'` = yes; then
18420   cat >>confdefs.h <<_ACEOF
18421 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18422 _ACEOF
18423
18424 fi
18425 done
18426
18427
18428
18429
18430
18431
18432 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
18433 do
18434 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18435 echo "$as_me:$LINENO: checking for $ac_func" >&5
18436 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18437 if eval "test \"\${$as_ac_var+set}\" = set"; then
18438   echo $ECHO_N "(cached) $ECHO_C" >&6
18439 else
18440   cat >conftest.$ac_ext <<_ACEOF
18441 /* confdefs.h.  */
18442 _ACEOF
18443 cat confdefs.h >>conftest.$ac_ext
18444 cat >>conftest.$ac_ext <<_ACEOF
18445 /* end confdefs.h.  */
18446 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18447    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18448 #define $ac_func innocuous_$ac_func
18449
18450 /* System header to define __stub macros and hopefully few prototypes,
18451     which can conflict with char $ac_func (); below.
18452     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18453     <limits.h> exists even on freestanding compilers.  */
18454
18455 #ifdef __STDC__
18456 # include <limits.h>
18457 #else
18458 # include <assert.h>
18459 #endif
18460
18461 #undef $ac_func
18462
18463 /* Override any gcc2 internal prototype to avoid an error.  */
18464 #ifdef __cplusplus
18465 extern "C"
18466 {
18467 #endif
18468 /* We use char because int might match the return type of a gcc2
18469    builtin and then its argument prototype would still apply.  */
18470 char $ac_func ();
18471 /* The GNU C library defines this for functions which it implements
18472     to always fail with ENOSYS.  Some functions are actually named
18473     something starting with __ and the normal name is an alias.  */
18474 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18475 choke me
18476 #else
18477 char (*f) () = $ac_func;
18478 #endif
18479 #ifdef __cplusplus
18480 }
18481 #endif
18482
18483 int
18484 main ()
18485 {
18486 return f != $ac_func;
18487   ;
18488   return 0;
18489 }
18490 _ACEOF
18491 rm -f conftest.$ac_objext conftest$ac_exeext
18492 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18493   (eval $ac_link) 2>conftest.er1
18494   ac_status=$?
18495   grep -v '^ *+' conftest.er1 >conftest.err
18496   rm -f conftest.er1
18497   cat conftest.err >&5
18498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18499   (exit $ac_status); } &&
18500          { ac_try='test -z "$ac_c_werror_flag"
18501                          || test ! -s conftest.err'
18502   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18503   (eval $ac_try) 2>&5
18504   ac_status=$?
18505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18506   (exit $ac_status); }; } &&
18507          { ac_try='test -s conftest$ac_exeext'
18508   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18509   (eval $ac_try) 2>&5
18510   ac_status=$?
18511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18512   (exit $ac_status); }; }; then
18513   eval "$as_ac_var=yes"
18514 else
18515   echo "$as_me: failed program was:" >&5
18516 sed 's/^/| /' conftest.$ac_ext >&5
18517
18518 eval "$as_ac_var=no"
18519 fi
18520 rm -f conftest.err conftest.$ac_objext \
18521       conftest$ac_exeext conftest.$ac_ext
18522 fi
18523 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18524 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18525 if test `eval echo '${'$as_ac_var'}'` = yes; then
18526   cat >>confdefs.h <<_ACEOF
18527 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18528 _ACEOF
18529
18530 fi
18531 done
18532
18533
18534 # If resolver functions are not in libc check for -lnsl or -lresolv.
18535 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
18536 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
18537 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
18538   echo $ECHO_N "(cached) $ECHO_C" >&6
18539 else
18540   cat >conftest.$ac_ext <<_ACEOF
18541 /* confdefs.h.  */
18542 _ACEOF
18543 cat confdefs.h >>conftest.$ac_ext
18544 cat >>conftest.$ac_ext <<_ACEOF
18545 /* end confdefs.h.  */
18546 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
18547    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18548 #define gethostbyname_r innocuous_gethostbyname_r
18549
18550 /* System header to define __stub macros and hopefully few prototypes,
18551     which can conflict with char gethostbyname_r (); below.
18552     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18553     <limits.h> exists even on freestanding compilers.  */
18554
18555 #ifdef __STDC__
18556 # include <limits.h>
18557 #else
18558 # include <assert.h>
18559 #endif
18560
18561 #undef gethostbyname_r
18562
18563 /* Override any gcc2 internal prototype to avoid an error.  */
18564 #ifdef __cplusplus
18565 extern "C"
18566 {
18567 #endif
18568 /* We use char because int might match the return type of a gcc2
18569    builtin and then its argument prototype would still apply.  */
18570 char gethostbyname_r ();
18571 /* The GNU C library defines this for functions which it implements
18572     to always fail with ENOSYS.  Some functions are actually named
18573     something starting with __ and the normal name is an alias.  */
18574 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
18575 choke me
18576 #else
18577 char (*f) () = gethostbyname_r;
18578 #endif
18579 #ifdef __cplusplus
18580 }
18581 #endif
18582
18583 int
18584 main ()
18585 {
18586 return f != gethostbyname_r;
18587   ;
18588   return 0;
18589 }
18590 _ACEOF
18591 rm -f conftest.$ac_objext conftest$ac_exeext
18592 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18593   (eval $ac_link) 2>conftest.er1
18594   ac_status=$?
18595   grep -v '^ *+' conftest.er1 >conftest.err
18596   rm -f conftest.er1
18597   cat conftest.err >&5
18598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18599   (exit $ac_status); } &&
18600          { ac_try='test -z "$ac_c_werror_flag"
18601                          || test ! -s conftest.err'
18602   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18603   (eval $ac_try) 2>&5
18604   ac_status=$?
18605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18606   (exit $ac_status); }; } &&
18607          { ac_try='test -s conftest$ac_exeext'
18608   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18609   (eval $ac_try) 2>&5
18610   ac_status=$?
18611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18612   (exit $ac_status); }; }; then
18613   ac_cv_func_gethostbyname_r=yes
18614 else
18615   echo "$as_me: failed program was:" >&5
18616 sed 's/^/| /' conftest.$ac_ext >&5
18617
18618 ac_cv_func_gethostbyname_r=no
18619 fi
18620 rm -f conftest.err conftest.$ac_objext \
18621       conftest$ac_exeext conftest.$ac_ext
18622 fi
18623 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
18624 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
18625 if test $ac_cv_func_gethostbyname_r = yes; then
18626   echo "$as_me:$LINENO: result: using libc's resolver" >&5
18627 echo "${ECHO_T}using libc's resolver" >&6
18628 else
18629
18630 echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
18631 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6
18632 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
18633   echo $ECHO_N "(cached) $ECHO_C" >&6
18634 else
18635   ac_check_lib_save_LIBS=$LIBS
18636 LIBS="-lnsl  $LIBS"
18637 cat >conftest.$ac_ext <<_ACEOF
18638 /* confdefs.h.  */
18639 _ACEOF
18640 cat confdefs.h >>conftest.$ac_ext
18641 cat >>conftest.$ac_ext <<_ACEOF
18642 /* end confdefs.h.  */
18643
18644 /* Override any gcc2 internal prototype to avoid an error.  */
18645 #ifdef __cplusplus
18646 extern "C"
18647 #endif
18648 /* We use char because int might match the return type of a gcc2
18649    builtin and then its argument prototype would still apply.  */
18650 char gethostbyname_r ();
18651 int
18652 main ()
18653 {
18654 gethostbyname_r ();
18655   ;
18656   return 0;
18657 }
18658 _ACEOF
18659 rm -f conftest.$ac_objext conftest$ac_exeext
18660 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18661   (eval $ac_link) 2>conftest.er1
18662   ac_status=$?
18663   grep -v '^ *+' conftest.er1 >conftest.err
18664   rm -f conftest.er1
18665   cat conftest.err >&5
18666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18667   (exit $ac_status); } &&
18668          { ac_try='test -z "$ac_c_werror_flag"
18669                          || test ! -s conftest.err'
18670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18671   (eval $ac_try) 2>&5
18672   ac_status=$?
18673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18674   (exit $ac_status); }; } &&
18675          { ac_try='test -s conftest$ac_exeext'
18676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18677   (eval $ac_try) 2>&5
18678   ac_status=$?
18679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18680   (exit $ac_status); }; }; then
18681   ac_cv_lib_nsl_gethostbyname_r=yes
18682 else
18683   echo "$as_me: failed program was:" >&5
18684 sed 's/^/| /' conftest.$ac_ext >&5
18685
18686 ac_cv_lib_nsl_gethostbyname_r=no
18687 fi
18688 rm -f conftest.err conftest.$ac_objext \
18689       conftest$ac_exeext conftest.$ac_ext
18690 LIBS=$ac_check_lib_save_LIBS
18691 fi
18692 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
18693 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6
18694 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
18695   cat >>confdefs.h <<_ACEOF
18696 #define HAVE_LIBNSL 1
18697 _ACEOF
18698
18699   LIBS="-lnsl $LIBS"
18700
18701 fi
18702
18703
18704 echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
18705 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6
18706 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
18707   echo $ECHO_N "(cached) $ECHO_C" >&6
18708 else
18709   ac_check_lib_save_LIBS=$LIBS
18710 LIBS="-lresolv  $LIBS"
18711 cat >conftest.$ac_ext <<_ACEOF
18712 /* confdefs.h.  */
18713 _ACEOF
18714 cat confdefs.h >>conftest.$ac_ext
18715 cat >>conftest.$ac_ext <<_ACEOF
18716 /* end confdefs.h.  */
18717
18718 /* Override any gcc2 internal prototype to avoid an error.  */
18719 #ifdef __cplusplus
18720 extern "C"
18721 #endif
18722 /* We use char because int might match the return type of a gcc2
18723    builtin and then its argument prototype would still apply.  */
18724 char gethostbyname_r ();
18725 int
18726 main ()
18727 {
18728 gethostbyname_r ();
18729   ;
18730   return 0;
18731 }
18732 _ACEOF
18733 rm -f conftest.$ac_objext conftest$ac_exeext
18734 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18735   (eval $ac_link) 2>conftest.er1
18736   ac_status=$?
18737   grep -v '^ *+' conftest.er1 >conftest.err
18738   rm -f conftest.er1
18739   cat conftest.err >&5
18740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18741   (exit $ac_status); } &&
18742          { ac_try='test -z "$ac_c_werror_flag"
18743                          || test ! -s conftest.err'
18744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18745   (eval $ac_try) 2>&5
18746   ac_status=$?
18747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18748   (exit $ac_status); }; } &&
18749          { ac_try='test -s conftest$ac_exeext'
18750   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18751   (eval $ac_try) 2>&5
18752   ac_status=$?
18753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18754   (exit $ac_status); }; }; then
18755   ac_cv_lib_resolv_gethostbyname_r=yes
18756 else
18757   echo "$as_me: failed program was:" >&5
18758 sed 's/^/| /' conftest.$ac_ext >&5
18759
18760 ac_cv_lib_resolv_gethostbyname_r=no
18761 fi
18762 rm -f conftest.err conftest.$ac_objext \
18763       conftest$ac_exeext conftest.$ac_ext
18764 LIBS=$ac_check_lib_save_LIBS
18765 fi
18766 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
18767 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6
18768 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
18769   cat >>confdefs.h <<_ACEOF
18770 #define HAVE_LIBRESOLV 1
18771 _ACEOF
18772
18773   LIBS="-lresolv $LIBS"
18774
18775 fi
18776
18777 fi
18778
18779
18780
18781
18782
18783 for ac_func in inet_pton
18784 do
18785 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18786 echo "$as_me:$LINENO: checking for $ac_func" >&5
18787 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18788 if eval "test \"\${$as_ac_var+set}\" = set"; then
18789   echo $ECHO_N "(cached) $ECHO_C" >&6
18790 else
18791   cat >conftest.$ac_ext <<_ACEOF
18792 /* confdefs.h.  */
18793 _ACEOF
18794 cat confdefs.h >>conftest.$ac_ext
18795 cat >>conftest.$ac_ext <<_ACEOF
18796 /* end confdefs.h.  */
18797 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18798    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18799 #define $ac_func innocuous_$ac_func
18800
18801 /* System header to define __stub macros and hopefully few prototypes,
18802     which can conflict with char $ac_func (); below.
18803     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18804     <limits.h> exists even on freestanding compilers.  */
18805
18806 #ifdef __STDC__
18807 # include <limits.h>
18808 #else
18809 # include <assert.h>
18810 #endif
18811
18812 #undef $ac_func
18813
18814 /* Override any gcc2 internal prototype to avoid an error.  */
18815 #ifdef __cplusplus
18816 extern "C"
18817 {
18818 #endif
18819 /* We use char because int might match the return type of a gcc2
18820    builtin and then its argument prototype would still apply.  */
18821 char $ac_func ();
18822 /* The GNU C library defines this for functions which it implements
18823     to always fail with ENOSYS.  Some functions are actually named
18824     something starting with __ and the normal name is an alias.  */
18825 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18826 choke me
18827 #else
18828 char (*f) () = $ac_func;
18829 #endif
18830 #ifdef __cplusplus
18831 }
18832 #endif
18833
18834 int
18835 main ()
18836 {
18837 return f != $ac_func;
18838   ;
18839   return 0;
18840 }
18841 _ACEOF
18842 rm -f conftest.$ac_objext conftest$ac_exeext
18843 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18844   (eval $ac_link) 2>conftest.er1
18845   ac_status=$?
18846   grep -v '^ *+' conftest.er1 >conftest.err
18847   rm -f conftest.er1
18848   cat conftest.err >&5
18849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18850   (exit $ac_status); } &&
18851          { ac_try='test -z "$ac_c_werror_flag"
18852                          || test ! -s conftest.err'
18853   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18854   (eval $ac_try) 2>&5
18855   ac_status=$?
18856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18857   (exit $ac_status); }; } &&
18858          { ac_try='test -s conftest$ac_exeext'
18859   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18860   (eval $ac_try) 2>&5
18861   ac_status=$?
18862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18863   (exit $ac_status); }; }; then
18864   eval "$as_ac_var=yes"
18865 else
18866   echo "$as_me: failed program was:" >&5
18867 sed 's/^/| /' conftest.$ac_ext >&5
18868
18869 eval "$as_ac_var=no"
18870 fi
18871 rm -f conftest.err conftest.$ac_objext \
18872       conftest$ac_exeext conftest.$ac_ext
18873 fi
18874 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18875 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18876 if test `eval echo '${'$as_ac_var'}'` = yes; then
18877   cat >>confdefs.h <<_ACEOF
18878 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18879 _ACEOF
18880  cat >>confdefs.h <<\_ACEOF
18881 #define HAVE_INET_PTON 1
18882 _ACEOF
18883
18884 fi
18885 done
18886
18887
18888 for ac_func in inet_ntop
18889 do
18890 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18891 echo "$as_me:$LINENO: checking for $ac_func" >&5
18892 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18893 if eval "test \"\${$as_ac_var+set}\" = set"; then
18894   echo $ECHO_N "(cached) $ECHO_C" >&6
18895 else
18896   cat >conftest.$ac_ext <<_ACEOF
18897 /* confdefs.h.  */
18898 _ACEOF
18899 cat confdefs.h >>conftest.$ac_ext
18900 cat >>conftest.$ac_ext <<_ACEOF
18901 /* end confdefs.h.  */
18902 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18903    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18904 #define $ac_func innocuous_$ac_func
18905
18906 /* System header to define __stub macros and hopefully few prototypes,
18907     which can conflict with char $ac_func (); below.
18908     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18909     <limits.h> exists even on freestanding compilers.  */
18910
18911 #ifdef __STDC__
18912 # include <limits.h>
18913 #else
18914 # include <assert.h>
18915 #endif
18916
18917 #undef $ac_func
18918
18919 /* Override any gcc2 internal prototype to avoid an error.  */
18920 #ifdef __cplusplus
18921 extern "C"
18922 {
18923 #endif
18924 /* We use char because int might match the return type of a gcc2
18925    builtin and then its argument prototype would still apply.  */
18926 char $ac_func ();
18927 /* The GNU C library defines this for functions which it implements
18928     to always fail with ENOSYS.  Some functions are actually named
18929     something starting with __ and the normal name is an alias.  */
18930 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18931 choke me
18932 #else
18933 char (*f) () = $ac_func;
18934 #endif
18935 #ifdef __cplusplus
18936 }
18937 #endif
18938
18939 int
18940 main ()
18941 {
18942 return f != $ac_func;
18943   ;
18944   return 0;
18945 }
18946 _ACEOF
18947 rm -f conftest.$ac_objext conftest$ac_exeext
18948 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18949   (eval $ac_link) 2>conftest.er1
18950   ac_status=$?
18951   grep -v '^ *+' conftest.er1 >conftest.err
18952   rm -f conftest.er1
18953   cat conftest.err >&5
18954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18955   (exit $ac_status); } &&
18956          { ac_try='test -z "$ac_c_werror_flag"
18957                          || test ! -s conftest.err'
18958   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18959   (eval $ac_try) 2>&5
18960   ac_status=$?
18961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18962   (exit $ac_status); }; } &&
18963          { ac_try='test -s conftest$ac_exeext'
18964   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18965   (eval $ac_try) 2>&5
18966   ac_status=$?
18967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18968   (exit $ac_status); }; }; then
18969   eval "$as_ac_var=yes"
18970 else
18971   echo "$as_me: failed program was:" >&5
18972 sed 's/^/| /' conftest.$ac_ext >&5
18973
18974 eval "$as_ac_var=no"
18975 fi
18976 rm -f conftest.err conftest.$ac_objext \
18977       conftest$ac_exeext conftest.$ac_ext
18978 fi
18979 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18980 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18981 if test `eval echo '${'$as_ac_var'}'` = yes; then
18982   cat >>confdefs.h <<_ACEOF
18983 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18984 _ACEOF
18985  cat >>confdefs.h <<\_ACEOF
18986 #define HAVE_INET_NTOP 1
18987 _ACEOF
18988
18989 fi
18990 done
18991
18992
18993 for ac_func in gethostbyname2
18994 do
18995 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18996 echo "$as_me:$LINENO: checking for $ac_func" >&5
18997 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18998 if eval "test \"\${$as_ac_var+set}\" = set"; then
18999   echo $ECHO_N "(cached) $ECHO_C" >&6
19000 else
19001   cat >conftest.$ac_ext <<_ACEOF
19002 /* confdefs.h.  */
19003 _ACEOF
19004 cat confdefs.h >>conftest.$ac_ext
19005 cat >>conftest.$ac_ext <<_ACEOF
19006 /* end confdefs.h.  */
19007 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19008    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19009 #define $ac_func innocuous_$ac_func
19010
19011 /* System header to define __stub macros and hopefully few prototypes,
19012     which can conflict with char $ac_func (); below.
19013     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19014     <limits.h> exists even on freestanding compilers.  */
19015
19016 #ifdef __STDC__
19017 # include <limits.h>
19018 #else
19019 # include <assert.h>
19020 #endif
19021
19022 #undef $ac_func
19023
19024 /* Override any gcc2 internal prototype to avoid an error.  */
19025 #ifdef __cplusplus
19026 extern "C"
19027 {
19028 #endif
19029 /* We use char because int might match the return type of a gcc2
19030    builtin and then its argument prototype would still apply.  */
19031 char $ac_func ();
19032 /* The GNU C library defines this for functions which it implements
19033     to always fail with ENOSYS.  Some functions are actually named
19034     something starting with __ and the normal name is an alias.  */
19035 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19036 choke me
19037 #else
19038 char (*f) () = $ac_func;
19039 #endif
19040 #ifdef __cplusplus
19041 }
19042 #endif
19043
19044 int
19045 main ()
19046 {
19047 return f != $ac_func;
19048   ;
19049   return 0;
19050 }
19051 _ACEOF
19052 rm -f conftest.$ac_objext conftest$ac_exeext
19053 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19054   (eval $ac_link) 2>conftest.er1
19055   ac_status=$?
19056   grep -v '^ *+' conftest.er1 >conftest.err
19057   rm -f conftest.er1
19058   cat conftest.err >&5
19059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19060   (exit $ac_status); } &&
19061          { ac_try='test -z "$ac_c_werror_flag"
19062                          || test ! -s conftest.err'
19063   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19064   (eval $ac_try) 2>&5
19065   ac_status=$?
19066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19067   (exit $ac_status); }; } &&
19068          { ac_try='test -s conftest$ac_exeext'
19069   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19070   (eval $ac_try) 2>&5
19071   ac_status=$?
19072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19073   (exit $ac_status); }; }; then
19074   eval "$as_ac_var=yes"
19075 else
19076   echo "$as_me: failed program was:" >&5
19077 sed 's/^/| /' conftest.$ac_ext >&5
19078
19079 eval "$as_ac_var=no"
19080 fi
19081 rm -f conftest.err conftest.$ac_objext \
19082       conftest$ac_exeext conftest.$ac_ext
19083 fi
19084 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19085 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19086 if test `eval echo '${'$as_ac_var'}'` = yes; then
19087   cat >>confdefs.h <<_ACEOF
19088 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19089 _ACEOF
19090  cat >>confdefs.h <<\_ACEOF
19091 #define HAVE_GETHOSTBYNAME2 1
19092 _ACEOF
19093
19094 fi
19095 done
19096
19097
19098 echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
19099 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6
19100 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
19101   echo $ECHO_N "(cached) $ECHO_C" >&6
19102 else
19103   cat >conftest.$ac_ext <<_ACEOF
19104 /* confdefs.h.  */
19105 _ACEOF
19106 cat confdefs.h >>conftest.$ac_ext
19107 cat >>conftest.$ac_ext <<_ACEOF
19108 /* end confdefs.h.  */
19109 #include <sys/socket.h>
19110 int
19111 main ()
19112 {
19113 struct sockaddr s; s.sa_len;
19114   ;
19115   return 0;
19116 }
19117 _ACEOF
19118 rm -f conftest.$ac_objext
19119 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19120   (eval $ac_compile) 2>conftest.er1
19121   ac_status=$?
19122   grep -v '^ *+' conftest.er1 >conftest.err
19123   rm -f conftest.er1
19124   cat conftest.err >&5
19125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19126   (exit $ac_status); } &&
19127          { ac_try='test -z "$ac_c_werror_flag"
19128                          || test ! -s conftest.err'
19129   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19130   (eval $ac_try) 2>&5
19131   ac_status=$?
19132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19133   (exit $ac_status); }; } &&
19134          { ac_try='test -s conftest.$ac_objext'
19135   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19136   (eval $ac_try) 2>&5
19137   ac_status=$?
19138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19139   (exit $ac_status); }; }; then
19140   ac_cv_struct_sockaddr_sa_len=yes
19141 else
19142   echo "$as_me: failed program was:" >&5
19143 sed 's/^/| /' conftest.$ac_ext >&5
19144
19145 ac_cv_struct_sockaddr_sa_len=no
19146 fi
19147 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19148 fi
19149 echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
19150 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6
19151
19152  if test $ac_cv_struct_sockaddr_sa_len = yes; then
19153
19154 cat >>confdefs.h <<\_ACEOF
19155 #define HAVE_SA_LEN 1
19156 _ACEOF
19157
19158  fi
19159
19160
19161 echo "$as_me:$LINENO: checking for IPv6 support" >&5
19162 echo $ECHO_N "checking for IPv6 support... $ECHO_C" >&6
19163 if test "${ac_cv_ipv6_support+set}" = set; then
19164   echo $ECHO_N "(cached) $ECHO_C" >&6
19165 else
19166   cat >conftest.$ac_ext <<_ACEOF
19167 /* confdefs.h.  */
19168 _ACEOF
19169 cat confdefs.h >>conftest.$ac_ext
19170 cat >>conftest.$ac_ext <<_ACEOF
19171 /* end confdefs.h.  */
19172  #include <sys/types.h>
19173 #include <sys/socket.h>
19174 #include <netinet/in.h>
19175 int
19176 main ()
19177 {
19178 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] =
19179  0;
19180   ;
19181   return 0;
19182 }
19183 _ACEOF
19184 rm -f conftest.$ac_objext conftest$ac_exeext
19185 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19186   (eval $ac_link) 2>conftest.er1
19187   ac_status=$?
19188   grep -v '^ *+' conftest.er1 >conftest.err
19189   rm -f conftest.er1
19190   cat conftest.err >&5
19191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19192   (exit $ac_status); } &&
19193          { ac_try='test -z "$ac_c_werror_flag"
19194                          || test ! -s conftest.err'
19195   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19196   (eval $ac_try) 2>&5
19197   ac_status=$?
19198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19199   (exit $ac_status); }; } &&
19200          { ac_try='test -s conftest$ac_exeext'
19201   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19202   (eval $ac_try) 2>&5
19203   ac_status=$?
19204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19205   (exit $ac_status); }; }; then
19206   ac_cv_ipv6_support=yes
19207 else
19208   echo "$as_me: failed program was:" >&5
19209 sed 's/^/| /' conftest.$ac_ext >&5
19210
19211 ac_cv_ipv6_support=no
19212 fi
19213 rm -f conftest.err conftest.$ac_objext \
19214       conftest$ac_exeext conftest.$ac_ext
19215 fi
19216 echo "$as_me:$LINENO: result: $ac_cv_ipv6_support" >&5
19217 echo "${ECHO_T}$ac_cv_ipv6_support" >&6
19218
19219 if test "$ac_cv_ipv6_support" = yes; then
19220
19221 cat >>confdefs.h <<\_ACEOF
19222 #define HAVE_IPV6 1
19223 _ACEOF
19224
19225 fi
19226
19227
19228
19229
19230 for ac_func in strftime
19231 do
19232 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19233 echo "$as_me:$LINENO: checking for $ac_func" >&5
19234 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19235 if eval "test \"\${$as_ac_var+set}\" = set"; then
19236   echo $ECHO_N "(cached) $ECHO_C" >&6
19237 else
19238   cat >conftest.$ac_ext <<_ACEOF
19239 /* confdefs.h.  */
19240 _ACEOF
19241 cat confdefs.h >>conftest.$ac_ext
19242 cat >>conftest.$ac_ext <<_ACEOF
19243 /* end confdefs.h.  */
19244 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19245    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19246 #define $ac_func innocuous_$ac_func
19247
19248 /* System header to define __stub macros and hopefully few prototypes,
19249     which can conflict with char $ac_func (); below.
19250     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19251     <limits.h> exists even on freestanding compilers.  */
19252
19253 #ifdef __STDC__
19254 # include <limits.h>
19255 #else
19256 # include <assert.h>
19257 #endif
19258
19259 #undef $ac_func
19260
19261 /* Override any gcc2 internal prototype to avoid an error.  */
19262 #ifdef __cplusplus
19263 extern "C"
19264 {
19265 #endif
19266 /* We use char because int might match the return type of a gcc2
19267    builtin and then its argument prototype would still apply.  */
19268 char $ac_func ();
19269 /* The GNU C library defines this for functions which it implements
19270     to always fail with ENOSYS.  Some functions are actually named
19271     something starting with __ and the normal name is an alias.  */
19272 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19273 choke me
19274 #else
19275 char (*f) () = $ac_func;
19276 #endif
19277 #ifdef __cplusplus
19278 }
19279 #endif
19280
19281 int
19282 main ()
19283 {
19284 return f != $ac_func;
19285   ;
19286   return 0;
19287 }
19288 _ACEOF
19289 rm -f conftest.$ac_objext conftest$ac_exeext
19290 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19291   (eval $ac_link) 2>conftest.er1
19292   ac_status=$?
19293   grep -v '^ *+' conftest.er1 >conftest.err
19294   rm -f conftest.er1
19295   cat conftest.err >&5
19296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19297   (exit $ac_status); } &&
19298          { ac_try='test -z "$ac_c_werror_flag"
19299                          || test ! -s conftest.err'
19300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19301   (eval $ac_try) 2>&5
19302   ac_status=$?
19303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19304   (exit $ac_status); }; } &&
19305          { ac_try='test -s conftest$ac_exeext'
19306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19307   (eval $ac_try) 2>&5
19308   ac_status=$?
19309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19310   (exit $ac_status); }; }; then
19311   eval "$as_ac_var=yes"
19312 else
19313   echo "$as_me: failed program was:" >&5
19314 sed 's/^/| /' conftest.$ac_ext >&5
19315
19316 eval "$as_ac_var=no"
19317 fi
19318 rm -f conftest.err conftest.$ac_objext \
19319       conftest$ac_exeext conftest.$ac_ext
19320 fi
19321 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19322 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19323 if test `eval echo '${'$as_ac_var'}'` = yes; then
19324   cat >>confdefs.h <<_ACEOF
19325 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19326 _ACEOF
19327
19328 else
19329   # strftime is in -lintl on SCO UNIX.
19330 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
19331 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
19332 if test "${ac_cv_lib_intl_strftime+set}" = set; then
19333   echo $ECHO_N "(cached) $ECHO_C" >&6
19334 else
19335   ac_check_lib_save_LIBS=$LIBS
19336 LIBS="-lintl  $LIBS"
19337 cat >conftest.$ac_ext <<_ACEOF
19338 /* confdefs.h.  */
19339 _ACEOF
19340 cat confdefs.h >>conftest.$ac_ext
19341 cat >>conftest.$ac_ext <<_ACEOF
19342 /* end confdefs.h.  */
19343
19344 /* Override any gcc2 internal prototype to avoid an error.  */
19345 #ifdef __cplusplus
19346 extern "C"
19347 #endif
19348 /* We use char because int might match the return type of a gcc2
19349    builtin and then its argument prototype would still apply.  */
19350 char strftime ();
19351 int
19352 main ()
19353 {
19354 strftime ();
19355   ;
19356   return 0;
19357 }
19358 _ACEOF
19359 rm -f conftest.$ac_objext conftest$ac_exeext
19360 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19361   (eval $ac_link) 2>conftest.er1
19362   ac_status=$?
19363   grep -v '^ *+' conftest.er1 >conftest.err
19364   rm -f conftest.er1
19365   cat conftest.err >&5
19366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19367   (exit $ac_status); } &&
19368          { ac_try='test -z "$ac_c_werror_flag"
19369                          || test ! -s conftest.err'
19370   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19371   (eval $ac_try) 2>&5
19372   ac_status=$?
19373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19374   (exit $ac_status); }; } &&
19375          { ac_try='test -s conftest$ac_exeext'
19376   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19377   (eval $ac_try) 2>&5
19378   ac_status=$?
19379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19380   (exit $ac_status); }; }; then
19381   ac_cv_lib_intl_strftime=yes
19382 else
19383   echo "$as_me: failed program was:" >&5
19384 sed 's/^/| /' conftest.$ac_ext >&5
19385
19386 ac_cv_lib_intl_strftime=no
19387 fi
19388 rm -f conftest.err conftest.$ac_objext \
19389       conftest$ac_exeext conftest.$ac_ext
19390 LIBS=$ac_check_lib_save_LIBS
19391 fi
19392 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
19393 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
19394 if test $ac_cv_lib_intl_strftime = yes; then
19395   cat >>confdefs.h <<\_ACEOF
19396 #define HAVE_STRFTIME 1
19397 _ACEOF
19398
19399 LIBS="-lintl $LIBS"
19400 fi
19401
19402 fi
19403 done
19404
19405
19406 for ac_func in vprintf
19407 do
19408 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19409 echo "$as_me:$LINENO: checking for $ac_func" >&5
19410 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19411 if eval "test \"\${$as_ac_var+set}\" = set"; then
19412   echo $ECHO_N "(cached) $ECHO_C" >&6
19413 else
19414   cat >conftest.$ac_ext <<_ACEOF
19415 /* confdefs.h.  */
19416 _ACEOF
19417 cat confdefs.h >>conftest.$ac_ext
19418 cat >>conftest.$ac_ext <<_ACEOF
19419 /* end confdefs.h.  */
19420 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19421    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19422 #define $ac_func innocuous_$ac_func
19423
19424 /* System header to define __stub macros and hopefully few prototypes,
19425     which can conflict with char $ac_func (); below.
19426     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19427     <limits.h> exists even on freestanding compilers.  */
19428
19429 #ifdef __STDC__
19430 # include <limits.h>
19431 #else
19432 # include <assert.h>
19433 #endif
19434
19435 #undef $ac_func
19436
19437 /* Override any gcc2 internal prototype to avoid an error.  */
19438 #ifdef __cplusplus
19439 extern "C"
19440 {
19441 #endif
19442 /* We use char because int might match the return type of a gcc2
19443    builtin and then its argument prototype would still apply.  */
19444 char $ac_func ();
19445 /* The GNU C library defines this for functions which it implements
19446     to always fail with ENOSYS.  Some functions are actually named
19447     something starting with __ and the normal name is an alias.  */
19448 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19449 choke me
19450 #else
19451 char (*f) () = $ac_func;
19452 #endif
19453 #ifdef __cplusplus
19454 }
19455 #endif
19456
19457 int
19458 main ()
19459 {
19460 return f != $ac_func;
19461   ;
19462   return 0;
19463 }
19464 _ACEOF
19465 rm -f conftest.$ac_objext conftest$ac_exeext
19466 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19467   (eval $ac_link) 2>conftest.er1
19468   ac_status=$?
19469   grep -v '^ *+' conftest.er1 >conftest.err
19470   rm -f conftest.er1
19471   cat conftest.err >&5
19472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19473   (exit $ac_status); } &&
19474          { ac_try='test -z "$ac_c_werror_flag"
19475                          || test ! -s conftest.err'
19476   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19477   (eval $ac_try) 2>&5
19478   ac_status=$?
19479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19480   (exit $ac_status); }; } &&
19481          { ac_try='test -s conftest$ac_exeext'
19482   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19483   (eval $ac_try) 2>&5
19484   ac_status=$?
19485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19486   (exit $ac_status); }; }; then
19487   eval "$as_ac_var=yes"
19488 else
19489   echo "$as_me: failed program was:" >&5
19490 sed 's/^/| /' conftest.$ac_ext >&5
19491
19492 eval "$as_ac_var=no"
19493 fi
19494 rm -f conftest.err conftest.$ac_objext \
19495       conftest$ac_exeext conftest.$ac_ext
19496 fi
19497 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19498 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19499 if test `eval echo '${'$as_ac_var'}'` = yes; then
19500   cat >>confdefs.h <<_ACEOF
19501 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19502 _ACEOF
19503
19504 echo "$as_me:$LINENO: checking for _doprnt" >&5
19505 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
19506 if test "${ac_cv_func__doprnt+set}" = set; then
19507   echo $ECHO_N "(cached) $ECHO_C" >&6
19508 else
19509   cat >conftest.$ac_ext <<_ACEOF
19510 /* confdefs.h.  */
19511 _ACEOF
19512 cat confdefs.h >>conftest.$ac_ext
19513 cat >>conftest.$ac_ext <<_ACEOF
19514 /* end confdefs.h.  */
19515 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
19516    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19517 #define _doprnt innocuous__doprnt
19518
19519 /* System header to define __stub macros and hopefully few prototypes,
19520     which can conflict with char _doprnt (); below.
19521     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19522     <limits.h> exists even on freestanding compilers.  */
19523
19524 #ifdef __STDC__
19525 # include <limits.h>
19526 #else
19527 # include <assert.h>
19528 #endif
19529
19530 #undef _doprnt
19531
19532 /* Override any gcc2 internal prototype to avoid an error.  */
19533 #ifdef __cplusplus
19534 extern "C"
19535 {
19536 #endif
19537 /* We use char because int might match the return type of a gcc2
19538    builtin and then its argument prototype would still apply.  */
19539 char _doprnt ();
19540 /* The GNU C library defines this for functions which it implements
19541     to always fail with ENOSYS.  Some functions are actually named
19542     something starting with __ and the normal name is an alias.  */
19543 #if defined (__stub__doprnt) || defined (__stub____doprnt)
19544 choke me
19545 #else
19546 char (*f) () = _doprnt;
19547 #endif
19548 #ifdef __cplusplus
19549 }
19550 #endif
19551
19552 int
19553 main ()
19554 {
19555 return f != _doprnt;
19556   ;
19557   return 0;
19558 }
19559 _ACEOF
19560 rm -f conftest.$ac_objext conftest$ac_exeext
19561 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19562   (eval $ac_link) 2>conftest.er1
19563   ac_status=$?
19564   grep -v '^ *+' conftest.er1 >conftest.err
19565   rm -f conftest.er1
19566   cat conftest.err >&5
19567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19568   (exit $ac_status); } &&
19569          { ac_try='test -z "$ac_c_werror_flag"
19570                          || test ! -s conftest.err'
19571   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19572   (eval $ac_try) 2>&5
19573   ac_status=$?
19574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19575   (exit $ac_status); }; } &&
19576          { ac_try='test -s conftest$ac_exeext'
19577   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19578   (eval $ac_try) 2>&5
19579   ac_status=$?
19580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19581   (exit $ac_status); }; }; then
19582   ac_cv_func__doprnt=yes
19583 else
19584   echo "$as_me: failed program was:" >&5
19585 sed 's/^/| /' conftest.$ac_ext >&5
19586
19587 ac_cv_func__doprnt=no
19588 fi
19589 rm -f conftest.err conftest.$ac_objext \
19590       conftest$ac_exeext conftest.$ac_ext
19591 fi
19592 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
19593 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
19594 if test $ac_cv_func__doprnt = yes; then
19595
19596 cat >>confdefs.h <<\_ACEOF
19597 #define HAVE_DOPRNT 1
19598 _ACEOF
19599
19600 fi
19601
19602 fi
19603 done
19604
19605
19606 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
19607 # for constant arguments.  Useless!
19608 echo "$as_me:$LINENO: checking for working alloca.h" >&5
19609 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
19610 if test "${ac_cv_working_alloca_h+set}" = set; then
19611   echo $ECHO_N "(cached) $ECHO_C" >&6
19612 else
19613   cat >conftest.$ac_ext <<_ACEOF
19614 /* confdefs.h.  */
19615 _ACEOF
19616 cat confdefs.h >>conftest.$ac_ext
19617 cat >>conftest.$ac_ext <<_ACEOF
19618 /* end confdefs.h.  */
19619 #include <alloca.h>
19620 int
19621 main ()
19622 {
19623 char *p = (char *) alloca (2 * sizeof (int));
19624   ;
19625   return 0;
19626 }
19627 _ACEOF
19628 rm -f conftest.$ac_objext conftest$ac_exeext
19629 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19630   (eval $ac_link) 2>conftest.er1
19631   ac_status=$?
19632   grep -v '^ *+' conftest.er1 >conftest.err
19633   rm -f conftest.er1
19634   cat conftest.err >&5
19635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19636   (exit $ac_status); } &&
19637          { ac_try='test -z "$ac_c_werror_flag"
19638                          || test ! -s conftest.err'
19639   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19640   (eval $ac_try) 2>&5
19641   ac_status=$?
19642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19643   (exit $ac_status); }; } &&
19644          { ac_try='test -s conftest$ac_exeext'
19645   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19646   (eval $ac_try) 2>&5
19647   ac_status=$?
19648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19649   (exit $ac_status); }; }; then
19650   ac_cv_working_alloca_h=yes
19651 else
19652   echo "$as_me: failed program was:" >&5
19653 sed 's/^/| /' conftest.$ac_ext >&5
19654
19655 ac_cv_working_alloca_h=no
19656 fi
19657 rm -f conftest.err conftest.$ac_objext \
19658       conftest$ac_exeext conftest.$ac_ext
19659 fi
19660 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
19661 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
19662 if test $ac_cv_working_alloca_h = yes; then
19663
19664 cat >>confdefs.h <<\_ACEOF
19665 #define HAVE_ALLOCA_H 1
19666 _ACEOF
19667
19668 fi
19669
19670 echo "$as_me:$LINENO: checking for alloca" >&5
19671 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
19672 if test "${ac_cv_func_alloca_works+set}" = set; then
19673   echo $ECHO_N "(cached) $ECHO_C" >&6
19674 else
19675   cat >conftest.$ac_ext <<_ACEOF
19676 /* confdefs.h.  */
19677 _ACEOF
19678 cat confdefs.h >>conftest.$ac_ext
19679 cat >>conftest.$ac_ext <<_ACEOF
19680 /* end confdefs.h.  */
19681 #ifdef __GNUC__
19682 # define alloca __builtin_alloca
19683 #else
19684 # ifdef _MSC_VER
19685 #  include <malloc.h>
19686 #  define alloca _alloca
19687 # else
19688 #  if HAVE_ALLOCA_H
19689 #   include <alloca.h>
19690 #  else
19691 #   ifdef _AIX
19692  #pragma alloca
19693 #   else
19694 #    ifndef alloca /* predefined by HP cc +Olibcalls */
19695 char *alloca ();
19696 #    endif
19697 #   endif
19698 #  endif
19699 # endif
19700 #endif
19701
19702 int
19703 main ()
19704 {
19705 char *p = (char *) alloca (1);
19706   ;
19707   return 0;
19708 }
19709 _ACEOF
19710 rm -f conftest.$ac_objext conftest$ac_exeext
19711 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19712   (eval $ac_link) 2>conftest.er1
19713   ac_status=$?
19714   grep -v '^ *+' conftest.er1 >conftest.err
19715   rm -f conftest.er1
19716   cat conftest.err >&5
19717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19718   (exit $ac_status); } &&
19719          { ac_try='test -z "$ac_c_werror_flag"
19720                          || test ! -s conftest.err'
19721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19722   (eval $ac_try) 2>&5
19723   ac_status=$?
19724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19725   (exit $ac_status); }; } &&
19726          { ac_try='test -s conftest$ac_exeext'
19727   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19728   (eval $ac_try) 2>&5
19729   ac_status=$?
19730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19731   (exit $ac_status); }; }; then
19732   ac_cv_func_alloca_works=yes
19733 else
19734   echo "$as_me: failed program was:" >&5
19735 sed 's/^/| /' conftest.$ac_ext >&5
19736
19737 ac_cv_func_alloca_works=no
19738 fi
19739 rm -f conftest.err conftest.$ac_objext \
19740       conftest$ac_exeext conftest.$ac_ext
19741 fi
19742 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
19743 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
19744
19745 if test $ac_cv_func_alloca_works = yes; then
19746
19747 cat >>confdefs.h <<\_ACEOF
19748 #define HAVE_ALLOCA 1
19749 _ACEOF
19750
19751 else
19752   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
19753 # that cause trouble.  Some versions do not even contain alloca or
19754 # contain a buggy version.  If you still want to use their alloca,
19755 # use ar to extract alloca.o from them instead of compiling alloca.c.
19756
19757 ALLOCA=alloca.$ac_objext
19758
19759 cat >>confdefs.h <<\_ACEOF
19760 #define C_ALLOCA 1
19761 _ACEOF
19762
19763
19764 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
19765 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
19766 if test "${ac_cv_os_cray+set}" = set; then
19767   echo $ECHO_N "(cached) $ECHO_C" >&6
19768 else
19769   cat >conftest.$ac_ext <<_ACEOF
19770 /* confdefs.h.  */
19771 _ACEOF
19772 cat confdefs.h >>conftest.$ac_ext
19773 cat >>conftest.$ac_ext <<_ACEOF
19774 /* end confdefs.h.  */
19775 #if defined(CRAY) && ! defined(CRAY2)
19776 webecray
19777 #else
19778 wenotbecray
19779 #endif
19780
19781 _ACEOF
19782 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19783   $EGREP "webecray" >/dev/null 2>&1; then
19784   ac_cv_os_cray=yes
19785 else
19786   ac_cv_os_cray=no
19787 fi
19788 rm -f conftest*
19789
19790 fi
19791 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
19792 echo "${ECHO_T}$ac_cv_os_cray" >&6
19793 if test $ac_cv_os_cray = yes; then
19794   for ac_func in _getb67 GETB67 getb67; do
19795     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19796 echo "$as_me:$LINENO: checking for $ac_func" >&5
19797 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19798 if eval "test \"\${$as_ac_var+set}\" = set"; then
19799   echo $ECHO_N "(cached) $ECHO_C" >&6
19800 else
19801   cat >conftest.$ac_ext <<_ACEOF
19802 /* confdefs.h.  */
19803 _ACEOF
19804 cat confdefs.h >>conftest.$ac_ext
19805 cat >>conftest.$ac_ext <<_ACEOF
19806 /* end confdefs.h.  */
19807 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19808    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19809 #define $ac_func innocuous_$ac_func
19810
19811 /* System header to define __stub macros and hopefully few prototypes,
19812     which can conflict with char $ac_func (); below.
19813     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19814     <limits.h> exists even on freestanding compilers.  */
19815
19816 #ifdef __STDC__
19817 # include <limits.h>
19818 #else
19819 # include <assert.h>
19820 #endif
19821
19822 #undef $ac_func
19823
19824 /* Override any gcc2 internal prototype to avoid an error.  */
19825 #ifdef __cplusplus
19826 extern "C"
19827 {
19828 #endif
19829 /* We use char because int might match the return type of a gcc2
19830    builtin and then its argument prototype would still apply.  */
19831 char $ac_func ();
19832 /* The GNU C library defines this for functions which it implements
19833     to always fail with ENOSYS.  Some functions are actually named
19834     something starting with __ and the normal name is an alias.  */
19835 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19836 choke me
19837 #else
19838 char (*f) () = $ac_func;
19839 #endif
19840 #ifdef __cplusplus
19841 }
19842 #endif
19843
19844 int
19845 main ()
19846 {
19847 return f != $ac_func;
19848   ;
19849   return 0;
19850 }
19851 _ACEOF
19852 rm -f conftest.$ac_objext conftest$ac_exeext
19853 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19854   (eval $ac_link) 2>conftest.er1
19855   ac_status=$?
19856   grep -v '^ *+' conftest.er1 >conftest.err
19857   rm -f conftest.er1
19858   cat conftest.err >&5
19859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19860   (exit $ac_status); } &&
19861          { ac_try='test -z "$ac_c_werror_flag"
19862                          || test ! -s conftest.err'
19863   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19864   (eval $ac_try) 2>&5
19865   ac_status=$?
19866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19867   (exit $ac_status); }; } &&
19868          { ac_try='test -s conftest$ac_exeext'
19869   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19870   (eval $ac_try) 2>&5
19871   ac_status=$?
19872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19873   (exit $ac_status); }; }; then
19874   eval "$as_ac_var=yes"
19875 else
19876   echo "$as_me: failed program was:" >&5
19877 sed 's/^/| /' conftest.$ac_ext >&5
19878
19879 eval "$as_ac_var=no"
19880 fi
19881 rm -f conftest.err conftest.$ac_objext \
19882       conftest$ac_exeext conftest.$ac_ext
19883 fi
19884 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19885 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19886 if test `eval echo '${'$as_ac_var'}'` = yes; then
19887
19888 cat >>confdefs.h <<_ACEOF
19889 #define CRAY_STACKSEG_END $ac_func
19890 _ACEOF
19891
19892     break
19893 fi
19894
19895   done
19896 fi
19897
19898 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
19899 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
19900 if test "${ac_cv_c_stack_direction+set}" = set; then
19901   echo $ECHO_N "(cached) $ECHO_C" >&6
19902 else
19903   if test "$cross_compiling" = yes; then
19904   ac_cv_c_stack_direction=0
19905 else
19906   cat >conftest.$ac_ext <<_ACEOF
19907 /* confdefs.h.  */
19908 _ACEOF
19909 cat confdefs.h >>conftest.$ac_ext
19910 cat >>conftest.$ac_ext <<_ACEOF
19911 /* end confdefs.h.  */
19912 int
19913 find_stack_direction ()
19914 {
19915   static char *addr = 0;
19916   auto char dummy;
19917   if (addr == 0)
19918     {
19919       addr = &dummy;
19920       return find_stack_direction ();
19921     }
19922   else
19923     return (&dummy > addr) ? 1 : -1;
19924 }
19925
19926 int
19927 main ()
19928 {
19929   exit (find_stack_direction () < 0);
19930 }
19931 _ACEOF
19932 rm -f conftest$ac_exeext
19933 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19934   (eval $ac_link) 2>&5
19935   ac_status=$?
19936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19937   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19938   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19939   (eval $ac_try) 2>&5
19940   ac_status=$?
19941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19942   (exit $ac_status); }; }; then
19943   ac_cv_c_stack_direction=1
19944 else
19945   echo "$as_me: program exited with status $ac_status" >&5
19946 echo "$as_me: failed program was:" >&5
19947 sed 's/^/| /' conftest.$ac_ext >&5
19948
19949 ( exit $ac_status )
19950 ac_cv_c_stack_direction=-1
19951 fi
19952 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19953 fi
19954 fi
19955 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
19956 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
19957
19958 cat >>confdefs.h <<_ACEOF
19959 #define STACK_DIRECTION $ac_cv_c_stack_direction
19960 _ACEOF
19961
19962
19963 fi
19964
19965 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
19966 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
19967 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
19968 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
19969   echo $ECHO_N "(cached) $ECHO_C" >&6
19970 else
19971   ac_check_lib_save_LIBS=$LIBS
19972 LIBS="-lsun  $LIBS"
19973 cat >conftest.$ac_ext <<_ACEOF
19974 /* confdefs.h.  */
19975 _ACEOF
19976 cat confdefs.h >>conftest.$ac_ext
19977 cat >>conftest.$ac_ext <<_ACEOF
19978 /* end confdefs.h.  */
19979
19980 /* Override any gcc2 internal prototype to avoid an error.  */
19981 #ifdef __cplusplus
19982 extern "C"
19983 #endif
19984 /* We use char because int might match the return type of a gcc2
19985    builtin and then its argument prototype would still apply.  */
19986 char getmntent ();
19987 int
19988 main ()
19989 {
19990 getmntent ();
19991   ;
19992   return 0;
19993 }
19994 _ACEOF
19995 rm -f conftest.$ac_objext conftest$ac_exeext
19996 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19997   (eval $ac_link) 2>conftest.er1
19998   ac_status=$?
19999   grep -v '^ *+' conftest.er1 >conftest.err
20000   rm -f conftest.er1
20001   cat conftest.err >&5
20002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20003   (exit $ac_status); } &&
20004          { ac_try='test -z "$ac_c_werror_flag"
20005                          || test ! -s conftest.err'
20006   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20007   (eval $ac_try) 2>&5
20008   ac_status=$?
20009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20010   (exit $ac_status); }; } &&
20011          { ac_try='test -s conftest$ac_exeext'
20012   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20013   (eval $ac_try) 2>&5
20014   ac_status=$?
20015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20016   (exit $ac_status); }; }; then
20017   ac_cv_lib_sun_getmntent=yes
20018 else
20019   echo "$as_me: failed program was:" >&5
20020 sed 's/^/| /' conftest.$ac_ext >&5
20021
20022 ac_cv_lib_sun_getmntent=no
20023 fi
20024 rm -f conftest.err conftest.$ac_objext \
20025       conftest$ac_exeext conftest.$ac_ext
20026 LIBS=$ac_check_lib_save_LIBS
20027 fi
20028 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
20029 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
20030 if test $ac_cv_lib_sun_getmntent = yes; then
20031   LIBS="-lsun $LIBS"
20032 else
20033   echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
20034 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
20035 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
20036   echo $ECHO_N "(cached) $ECHO_C" >&6
20037 else
20038   ac_check_lib_save_LIBS=$LIBS
20039 LIBS="-lseq  $LIBS"
20040 cat >conftest.$ac_ext <<_ACEOF
20041 /* confdefs.h.  */
20042 _ACEOF
20043 cat confdefs.h >>conftest.$ac_ext
20044 cat >>conftest.$ac_ext <<_ACEOF
20045 /* end confdefs.h.  */
20046
20047 /* Override any gcc2 internal prototype to avoid an error.  */
20048 #ifdef __cplusplus
20049 extern "C"
20050 #endif
20051 /* We use char because int might match the return type of a gcc2
20052    builtin and then its argument prototype would still apply.  */
20053 char getmntent ();
20054 int
20055 main ()
20056 {
20057 getmntent ();
20058   ;
20059   return 0;
20060 }
20061 _ACEOF
20062 rm -f conftest.$ac_objext conftest$ac_exeext
20063 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20064   (eval $ac_link) 2>conftest.er1
20065   ac_status=$?
20066   grep -v '^ *+' conftest.er1 >conftest.err
20067   rm -f conftest.er1
20068   cat conftest.err >&5
20069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20070   (exit $ac_status); } &&
20071          { ac_try='test -z "$ac_c_werror_flag"
20072                          || test ! -s conftest.err'
20073   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20074   (eval $ac_try) 2>&5
20075   ac_status=$?
20076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20077   (exit $ac_status); }; } &&
20078          { ac_try='test -s conftest$ac_exeext'
20079   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20080   (eval $ac_try) 2>&5
20081   ac_status=$?
20082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20083   (exit $ac_status); }; }; then
20084   ac_cv_lib_seq_getmntent=yes
20085 else
20086   echo "$as_me: failed program was:" >&5
20087 sed 's/^/| /' conftest.$ac_ext >&5
20088
20089 ac_cv_lib_seq_getmntent=no
20090 fi
20091 rm -f conftest.err conftest.$ac_objext \
20092       conftest$ac_exeext conftest.$ac_ext
20093 LIBS=$ac_check_lib_save_LIBS
20094 fi
20095 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
20096 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
20097 if test $ac_cv_lib_seq_getmntent = yes; then
20098   LIBS="-lseq $LIBS"
20099 else
20100   echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
20101 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
20102 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
20103   echo $ECHO_N "(cached) $ECHO_C" >&6
20104 else
20105   ac_check_lib_save_LIBS=$LIBS
20106 LIBS="-lgen  $LIBS"
20107 cat >conftest.$ac_ext <<_ACEOF
20108 /* confdefs.h.  */
20109 _ACEOF
20110 cat confdefs.h >>conftest.$ac_ext
20111 cat >>conftest.$ac_ext <<_ACEOF
20112 /* end confdefs.h.  */
20113
20114 /* Override any gcc2 internal prototype to avoid an error.  */
20115 #ifdef __cplusplus
20116 extern "C"
20117 #endif
20118 /* We use char because int might match the return type of a gcc2
20119    builtin and then its argument prototype would still apply.  */
20120 char getmntent ();
20121 int
20122 main ()
20123 {
20124 getmntent ();
20125   ;
20126   return 0;
20127 }
20128 _ACEOF
20129 rm -f conftest.$ac_objext conftest$ac_exeext
20130 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20131   (eval $ac_link) 2>conftest.er1
20132   ac_status=$?
20133   grep -v '^ *+' conftest.er1 >conftest.err
20134   rm -f conftest.er1
20135   cat conftest.err >&5
20136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20137   (exit $ac_status); } &&
20138          { ac_try='test -z "$ac_c_werror_flag"
20139                          || test ! -s conftest.err'
20140   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20141   (eval $ac_try) 2>&5
20142   ac_status=$?
20143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20144   (exit $ac_status); }; } &&
20145          { ac_try='test -s conftest$ac_exeext'
20146   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20147   (eval $ac_try) 2>&5
20148   ac_status=$?
20149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20150   (exit $ac_status); }; }; then
20151   ac_cv_lib_gen_getmntent=yes
20152 else
20153   echo "$as_me: failed program was:" >&5
20154 sed 's/^/| /' conftest.$ac_ext >&5
20155
20156 ac_cv_lib_gen_getmntent=no
20157 fi
20158 rm -f conftest.err conftest.$ac_objext \
20159       conftest$ac_exeext conftest.$ac_ext
20160 LIBS=$ac_check_lib_save_LIBS
20161 fi
20162 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
20163 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
20164 if test $ac_cv_lib_gen_getmntent = yes; then
20165   LIBS="-lgen $LIBS"
20166 fi
20167
20168 fi
20169
20170 fi
20171
20172
20173 for ac_func in getmntent
20174 do
20175 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20176 echo "$as_me:$LINENO: checking for $ac_func" >&5
20177 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20178 if eval "test \"\${$as_ac_var+set}\" = set"; then
20179   echo $ECHO_N "(cached) $ECHO_C" >&6
20180 else
20181   cat >conftest.$ac_ext <<_ACEOF
20182 /* confdefs.h.  */
20183 _ACEOF
20184 cat confdefs.h >>conftest.$ac_ext
20185 cat >>conftest.$ac_ext <<_ACEOF
20186 /* end confdefs.h.  */
20187 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20188    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20189 #define $ac_func innocuous_$ac_func
20190
20191 /* System header to define __stub macros and hopefully few prototypes,
20192     which can conflict with char $ac_func (); below.
20193     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20194     <limits.h> exists even on freestanding compilers.  */
20195
20196 #ifdef __STDC__
20197 # include <limits.h>
20198 #else
20199 # include <assert.h>
20200 #endif
20201
20202 #undef $ac_func
20203
20204 /* Override any gcc2 internal prototype to avoid an error.  */
20205 #ifdef __cplusplus
20206 extern "C"
20207 {
20208 #endif
20209 /* We use char because int might match the return type of a gcc2
20210    builtin and then its argument prototype would still apply.  */
20211 char $ac_func ();
20212 /* The GNU C library defines this for functions which it implements
20213     to always fail with ENOSYS.  Some functions are actually named
20214     something starting with __ and the normal name is an alias.  */
20215 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20216 choke me
20217 #else
20218 char (*f) () = $ac_func;
20219 #endif
20220 #ifdef __cplusplus
20221 }
20222 #endif
20223
20224 int
20225 main ()
20226 {
20227 return f != $ac_func;
20228   ;
20229   return 0;
20230 }
20231 _ACEOF
20232 rm -f conftest.$ac_objext conftest$ac_exeext
20233 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20234   (eval $ac_link) 2>conftest.er1
20235   ac_status=$?
20236   grep -v '^ *+' conftest.er1 >conftest.err
20237   rm -f conftest.er1
20238   cat conftest.err >&5
20239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20240   (exit $ac_status); } &&
20241          { ac_try='test -z "$ac_c_werror_flag"
20242                          || test ! -s conftest.err'
20243   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20244   (eval $ac_try) 2>&5
20245   ac_status=$?
20246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20247   (exit $ac_status); }; } &&
20248          { ac_try='test -s conftest$ac_exeext'
20249   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20250   (eval $ac_try) 2>&5
20251   ac_status=$?
20252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20253   (exit $ac_status); }; }; then
20254   eval "$as_ac_var=yes"
20255 else
20256   echo "$as_me: failed program was:" >&5
20257 sed 's/^/| /' conftest.$ac_ext >&5
20258
20259 eval "$as_ac_var=no"
20260 fi
20261 rm -f conftest.err conftest.$ac_objext \
20262       conftest$ac_exeext conftest.$ac_ext
20263 fi
20264 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20265 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20266 if test `eval echo '${'$as_ac_var'}'` = yes; then
20267   cat >>confdefs.h <<_ACEOF
20268 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20269 _ACEOF
20270
20271 fi
20272 done
20273
20274
20275 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
20276 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
20277 if test "${ac_cv_func_closedir_void+set}" = set; then
20278   echo $ECHO_N "(cached) $ECHO_C" >&6
20279 else
20280   if test "$cross_compiling" = yes; then
20281   ac_cv_func_closedir_void=yes
20282 else
20283   cat >conftest.$ac_ext <<_ACEOF
20284 /* confdefs.h.  */
20285 _ACEOF
20286 cat confdefs.h >>conftest.$ac_ext
20287 cat >>conftest.$ac_ext <<_ACEOF
20288 /* end confdefs.h.  */
20289 $ac_includes_default
20290 #include <$ac_header_dirent>
20291 #ifndef __cplusplus
20292 int closedir ();
20293 #endif
20294
20295 int
20296 main ()
20297 {
20298 exit (closedir (opendir (".")) != 0);
20299   ;
20300   return 0;
20301 }
20302 _ACEOF
20303 rm -f conftest$ac_exeext
20304 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20305   (eval $ac_link) 2>&5
20306   ac_status=$?
20307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20308   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20309   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20310   (eval $ac_try) 2>&5
20311   ac_status=$?
20312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20313   (exit $ac_status); }; }; then
20314   ac_cv_func_closedir_void=no
20315 else
20316   echo "$as_me: program exited with status $ac_status" >&5
20317 echo "$as_me: failed program was:" >&5
20318 sed 's/^/| /' conftest.$ac_ext >&5
20319
20320 ( exit $ac_status )
20321 ac_cv_func_closedir_void=yes
20322 fi
20323 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20324 fi
20325 fi
20326 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
20327 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
20328 if test $ac_cv_func_closedir_void = yes; then
20329
20330 cat >>confdefs.h <<\_ACEOF
20331 #define CLOSEDIR_VOID 1
20332 _ACEOF
20333
20334 fi
20335
20336 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
20337 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
20338 if test "${ac_cv_func_setpgrp_void+set}" = set; then
20339   echo $ECHO_N "(cached) $ECHO_C" >&6
20340 else
20341   if test "$cross_compiling" = yes; then
20342   { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
20343 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
20344    { (exit 1); exit 1; }; }
20345 else
20346   cat >conftest.$ac_ext <<_ACEOF
20347 /* confdefs.h.  */
20348 _ACEOF
20349 cat confdefs.h >>conftest.$ac_ext
20350 cat >>conftest.$ac_ext <<_ACEOF
20351 /* end confdefs.h.  */
20352 #if HAVE_UNISTD_H
20353 # include <unistd.h>
20354 #endif
20355
20356 int
20357 main ()
20358 {
20359 /* If this system has a BSD-style setpgrp which takes arguments,
20360   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
20361   exit successfully. */
20362   exit (setpgrp (1,1) == -1 ? 0 : 1);
20363   ;
20364   return 0;
20365 }
20366 _ACEOF
20367 rm -f conftest$ac_exeext
20368 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20369   (eval $ac_link) 2>&5
20370   ac_status=$?
20371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20372   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20373   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20374   (eval $ac_try) 2>&5
20375   ac_status=$?
20376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20377   (exit $ac_status); }; }; then
20378   ac_cv_func_setpgrp_void=no
20379 else
20380   echo "$as_me: program exited with status $ac_status" >&5
20381 echo "$as_me: failed program was:" >&5
20382 sed 's/^/| /' conftest.$ac_ext >&5
20383
20384 ( exit $ac_status )
20385 ac_cv_func_setpgrp_void=yes
20386 fi
20387 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20388 fi
20389 fi
20390 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
20391 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
20392 if test $ac_cv_func_setpgrp_void = yes; then
20393
20394 cat >>confdefs.h <<\_ACEOF
20395 #define SETPGRP_VOID 1
20396 _ACEOF
20397
20398 fi
20399                       # AC_FUNC_FNMATCH    dnl use local version
20400
20401
20402 echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
20403 echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
20404 if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
20405   echo $ECHO_N "(cached) $ECHO_C" >&6
20406 else
20407   ac_check_lib_save_LIBS=$LIBS
20408 LIBS="-lxpg4  $LIBS"
20409 cat >conftest.$ac_ext <<_ACEOF
20410 /* confdefs.h.  */
20411 _ACEOF
20412 cat confdefs.h >>conftest.$ac_ext
20413 cat >>conftest.$ac_ext <<_ACEOF
20414 /* end confdefs.h.  */
20415
20416 /* Override any gcc2 internal prototype to avoid an error.  */
20417 #ifdef __cplusplus
20418 extern "C"
20419 #endif
20420 /* We use char because int might match the return type of a gcc2
20421    builtin and then its argument prototype would still apply.  */
20422 char setlocale ();
20423 int
20424 main ()
20425 {
20426 setlocale ();
20427   ;
20428   return 0;
20429 }
20430 _ACEOF
20431 rm -f conftest.$ac_objext conftest$ac_exeext
20432 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20433   (eval $ac_link) 2>conftest.er1
20434   ac_status=$?
20435   grep -v '^ *+' conftest.er1 >conftest.err
20436   rm -f conftest.er1
20437   cat conftest.err >&5
20438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20439   (exit $ac_status); } &&
20440          { ac_try='test -z "$ac_c_werror_flag"
20441                          || test ! -s conftest.err'
20442   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20443   (eval $ac_try) 2>&5
20444   ac_status=$?
20445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20446   (exit $ac_status); }; } &&
20447          { ac_try='test -s conftest$ac_exeext'
20448   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20449   (eval $ac_try) 2>&5
20450   ac_status=$?
20451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20452   (exit $ac_status); }; }; then
20453   ac_cv_lib_xpg4_setlocale=yes
20454 else
20455   echo "$as_me: failed program was:" >&5
20456 sed 's/^/| /' conftest.$ac_ext >&5
20457
20458 ac_cv_lib_xpg4_setlocale=no
20459 fi
20460 rm -f conftest.err conftest.$ac_objext \
20461       conftest$ac_exeext conftest.$ac_ext
20462 LIBS=$ac_check_lib_save_LIBS
20463 fi
20464 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
20465 echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
20466 if test $ac_cv_lib_xpg4_setlocale = yes; then
20467   LIBS="$LIBS -lxpg4"
20468 fi
20469
20470
20471
20472
20473 echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
20474 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6
20475 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
20476   echo $ECHO_N "(cached) $ECHO_C" >&6
20477 else
20478   ac_check_lib_save_LIBS=$LIBS
20479 LIBS="-lsun  $LIBS"
20480 cat >conftest.$ac_ext <<_ACEOF
20481 /* confdefs.h.  */
20482 _ACEOF
20483 cat confdefs.h >>conftest.$ac_ext
20484 cat >>conftest.$ac_ext <<_ACEOF
20485 /* end confdefs.h.  */
20486
20487 /* Override any gcc2 internal prototype to avoid an error.  */
20488 #ifdef __cplusplus
20489 extern "C"
20490 #endif
20491 /* We use char because int might match the return type of a gcc2
20492    builtin and then its argument prototype would still apply.  */
20493 char getpwnam ();
20494 int
20495 main ()
20496 {
20497 getpwnam ();
20498   ;
20499   return 0;
20500 }
20501 _ACEOF
20502 rm -f conftest.$ac_objext conftest$ac_exeext
20503 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20504   (eval $ac_link) 2>conftest.er1
20505   ac_status=$?
20506   grep -v '^ *+' conftest.er1 >conftest.err
20507   rm -f conftest.er1
20508   cat conftest.err >&5
20509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20510   (exit $ac_status); } &&
20511          { ac_try='test -z "$ac_c_werror_flag"
20512                          || test ! -s conftest.err'
20513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20514   (eval $ac_try) 2>&5
20515   ac_status=$?
20516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20517   (exit $ac_status); }; } &&
20518          { ac_try='test -s conftest$ac_exeext'
20519   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20520   (eval $ac_try) 2>&5
20521   ac_status=$?
20522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20523   (exit $ac_status); }; }; then
20524   ac_cv_lib_sun_getpwnam=yes
20525 else
20526   echo "$as_me: failed program was:" >&5
20527 sed 's/^/| /' conftest.$ac_ext >&5
20528
20529 ac_cv_lib_sun_getpwnam=no
20530 fi
20531 rm -f conftest.err conftest.$ac_objext \
20532       conftest$ac_exeext conftest.$ac_ext
20533 LIBS=$ac_check_lib_save_LIBS
20534 fi
20535 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
20536 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6
20537 if test $ac_cv_lib_sun_getpwnam = yes; then
20538   cat >>confdefs.h <<_ACEOF
20539 #define HAVE_LIBSUN 1
20540 _ACEOF
20541
20542   LIBS="-lsun $LIBS"
20543
20544 fi
20545
20546
20547
20548 for ac_header in zlib.h
20549 do
20550 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20551 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20552   echo "$as_me:$LINENO: checking for $ac_header" >&5
20553 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20554 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20555   echo $ECHO_N "(cached) $ECHO_C" >&6
20556 fi
20557 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20558 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20559 else
20560   # Is the header compilable?
20561 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20562 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20563 cat >conftest.$ac_ext <<_ACEOF
20564 /* confdefs.h.  */
20565 _ACEOF
20566 cat confdefs.h >>conftest.$ac_ext
20567 cat >>conftest.$ac_ext <<_ACEOF
20568 /* end confdefs.h.  */
20569 $ac_includes_default
20570 #include <$ac_header>
20571 _ACEOF
20572 rm -f conftest.$ac_objext
20573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20574   (eval $ac_compile) 2>conftest.er1
20575   ac_status=$?
20576   grep -v '^ *+' conftest.er1 >conftest.err
20577   rm -f conftest.er1
20578   cat conftest.err >&5
20579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20580   (exit $ac_status); } &&
20581          { ac_try='test -z "$ac_c_werror_flag"
20582                          || test ! -s conftest.err'
20583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20584   (eval $ac_try) 2>&5
20585   ac_status=$?
20586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20587   (exit $ac_status); }; } &&
20588          { ac_try='test -s conftest.$ac_objext'
20589   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20590   (eval $ac_try) 2>&5
20591   ac_status=$?
20592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20593   (exit $ac_status); }; }; then
20594   ac_header_compiler=yes
20595 else
20596   echo "$as_me: failed program was:" >&5
20597 sed 's/^/| /' conftest.$ac_ext >&5
20598
20599 ac_header_compiler=no
20600 fi
20601 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20602 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20603 echo "${ECHO_T}$ac_header_compiler" >&6
20604
20605 # Is the header present?
20606 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20607 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20608 cat >conftest.$ac_ext <<_ACEOF
20609 /* confdefs.h.  */
20610 _ACEOF
20611 cat confdefs.h >>conftest.$ac_ext
20612 cat >>conftest.$ac_ext <<_ACEOF
20613 /* end confdefs.h.  */
20614 #include <$ac_header>
20615 _ACEOF
20616 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20617   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20618   ac_status=$?
20619   grep -v '^ *+' conftest.er1 >conftest.err
20620   rm -f conftest.er1
20621   cat conftest.err >&5
20622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20623   (exit $ac_status); } >/dev/null; then
20624   if test -s conftest.err; then
20625     ac_cpp_err=$ac_c_preproc_warn_flag
20626     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20627   else
20628     ac_cpp_err=
20629   fi
20630 else
20631   ac_cpp_err=yes
20632 fi
20633 if test -z "$ac_cpp_err"; then
20634   ac_header_preproc=yes
20635 else
20636   echo "$as_me: failed program was:" >&5
20637 sed 's/^/| /' conftest.$ac_ext >&5
20638
20639   ac_header_preproc=no
20640 fi
20641 rm -f conftest.err conftest.$ac_ext
20642 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20643 echo "${ECHO_T}$ac_header_preproc" >&6
20644
20645 # So?  What about this header?
20646 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20647   yes:no: )
20648     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20649 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20650     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20651 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20652     ac_header_preproc=yes
20653     ;;
20654   no:yes:* )
20655     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20656 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20657     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20658 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20659     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20660 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20661     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20662 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20663     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20664 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20665     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20666 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20667     (
20668       cat <<\_ASBOX
20669 ## ------------------------------------------ ##
20670 ## Report this to the AC_PACKAGE_NAME lists.  ##
20671 ## ------------------------------------------ ##
20672 _ASBOX
20673     ) |
20674       sed "s/^/$as_me: WARNING:     /" >&2
20675     ;;
20676 esac
20677 echo "$as_me:$LINENO: checking for $ac_header" >&5
20678 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20679 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20680   echo $ECHO_N "(cached) $ECHO_C" >&6
20681 else
20682   eval "$as_ac_Header=\$ac_header_preproc"
20683 fi
20684 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20685 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20686
20687 fi
20688 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20689   cat >>confdefs.h <<_ACEOF
20690 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20691 _ACEOF
20692
20693 fi
20694
20695 done
20696
20697 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
20698 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
20699 if test "${ac_cv_lib_z_deflate+set}" = set; then
20700   echo $ECHO_N "(cached) $ECHO_C" >&6
20701 else
20702   ac_check_lib_save_LIBS=$LIBS
20703 LIBS="-lz  $LIBS"
20704 cat >conftest.$ac_ext <<_ACEOF
20705 /* confdefs.h.  */
20706 _ACEOF
20707 cat confdefs.h >>conftest.$ac_ext
20708 cat >>conftest.$ac_ext <<_ACEOF
20709 /* end confdefs.h.  */
20710
20711 /* Override any gcc2 internal prototype to avoid an error.  */
20712 #ifdef __cplusplus
20713 extern "C"
20714 #endif
20715 /* We use char because int might match the return type of a gcc2
20716    builtin and then its argument prototype would still apply.  */
20717 char deflate ();
20718 int
20719 main ()
20720 {
20721 deflate ();
20722   ;
20723   return 0;
20724 }
20725 _ACEOF
20726 rm -f conftest.$ac_objext conftest$ac_exeext
20727 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20728   (eval $ac_link) 2>conftest.er1
20729   ac_status=$?
20730   grep -v '^ *+' conftest.er1 >conftest.err
20731   rm -f conftest.er1
20732   cat conftest.err >&5
20733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20734   (exit $ac_status); } &&
20735          { ac_try='test -z "$ac_c_werror_flag"
20736                          || test ! -s conftest.err'
20737   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20738   (eval $ac_try) 2>&5
20739   ac_status=$?
20740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20741   (exit $ac_status); }; } &&
20742          { ac_try='test -s conftest$ac_exeext'
20743   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20744   (eval $ac_try) 2>&5
20745   ac_status=$?
20746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20747   (exit $ac_status); }; }; then
20748   ac_cv_lib_z_deflate=yes
20749 else
20750   echo "$as_me: failed program was:" >&5
20751 sed 's/^/| /' conftest.$ac_ext >&5
20752
20753 ac_cv_lib_z_deflate=no
20754 fi
20755 rm -f conftest.err conftest.$ac_objext \
20756       conftest$ac_exeext conftest.$ac_ext
20757 LIBS=$ac_check_lib_save_LIBS
20758 fi
20759 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
20760 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
20761 if test $ac_cv_lib_z_deflate = yes; then
20762   FDLIBS="-lz"
20763 fi
20764
20765 have_zlib=no
20766 if test x$FDLIBS = x-lz; then
20767   cat >>confdefs.h <<\_ACEOF
20768 #define HAVE_LIBZ 1
20769 _ACEOF
20770
20771   have_zlib=yes
20772 fi
20773
20774 if test "${ac_cv_header_sys_acl_h+set}" = set; then
20775   echo "$as_me:$LINENO: checking for sys/acl.h" >&5
20776 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
20777 if test "${ac_cv_header_sys_acl_h+set}" = set; then
20778   echo $ECHO_N "(cached) $ECHO_C" >&6
20779 fi
20780 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
20781 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
20782 else
20783   # Is the header compilable?
20784 echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
20785 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6
20786 cat >conftest.$ac_ext <<_ACEOF
20787 /* confdefs.h.  */
20788 _ACEOF
20789 cat confdefs.h >>conftest.$ac_ext
20790 cat >>conftest.$ac_ext <<_ACEOF
20791 /* end confdefs.h.  */
20792 $ac_includes_default
20793 #include <sys/acl.h>
20794 _ACEOF
20795 rm -f conftest.$ac_objext
20796 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20797   (eval $ac_compile) 2>conftest.er1
20798   ac_status=$?
20799   grep -v '^ *+' conftest.er1 >conftest.err
20800   rm -f conftest.er1
20801   cat conftest.err >&5
20802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20803   (exit $ac_status); } &&
20804          { ac_try='test -z "$ac_c_werror_flag"
20805                          || test ! -s conftest.err'
20806   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20807   (eval $ac_try) 2>&5
20808   ac_status=$?
20809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20810   (exit $ac_status); }; } &&
20811          { ac_try='test -s conftest.$ac_objext'
20812   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20813   (eval $ac_try) 2>&5
20814   ac_status=$?
20815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20816   (exit $ac_status); }; }; then
20817   ac_header_compiler=yes
20818 else
20819   echo "$as_me: failed program was:" >&5
20820 sed 's/^/| /' conftest.$ac_ext >&5
20821
20822 ac_header_compiler=no
20823 fi
20824 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20825 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20826 echo "${ECHO_T}$ac_header_compiler" >&6
20827
20828 # Is the header present?
20829 echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
20830 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6
20831 cat >conftest.$ac_ext <<_ACEOF
20832 /* confdefs.h.  */
20833 _ACEOF
20834 cat confdefs.h >>conftest.$ac_ext
20835 cat >>conftest.$ac_ext <<_ACEOF
20836 /* end confdefs.h.  */
20837 #include <sys/acl.h>
20838 _ACEOF
20839 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20840   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20841   ac_status=$?
20842   grep -v '^ *+' conftest.er1 >conftest.err
20843   rm -f conftest.er1
20844   cat conftest.err >&5
20845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20846   (exit $ac_status); } >/dev/null; then
20847   if test -s conftest.err; then
20848     ac_cpp_err=$ac_c_preproc_warn_flag
20849     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20850   else
20851     ac_cpp_err=
20852   fi
20853 else
20854   ac_cpp_err=yes
20855 fi
20856 if test -z "$ac_cpp_err"; then
20857   ac_header_preproc=yes
20858 else
20859   echo "$as_me: failed program was:" >&5
20860 sed 's/^/| /' conftest.$ac_ext >&5
20861
20862   ac_header_preproc=no
20863 fi
20864 rm -f conftest.err conftest.$ac_ext
20865 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20866 echo "${ECHO_T}$ac_header_preproc" >&6
20867
20868 # So?  What about this header?
20869 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20870   yes:no: )
20871     { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
20872 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20873     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the compiler's result" >&5
20874 echo "$as_me: WARNING: sys/acl.h: proceeding with the compiler's result" >&2;}
20875     ac_header_preproc=yes
20876     ;;
20877   no:yes:* )
20878     { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
20879 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
20880     { echo "$as_me:$LINENO: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&5
20881 echo "$as_me: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&2;}
20882     { echo "$as_me:$LINENO: WARNING: sys/acl.h: see the Autoconf documentation" >&5
20883 echo "$as_me: WARNING: sys/acl.h: see the Autoconf documentation" >&2;}
20884     { echo "$as_me:$LINENO: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&5
20885 echo "$as_me: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
20886     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
20887 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
20888     { echo "$as_me:$LINENO: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&5
20889 echo "$as_me: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&2;}
20890     (
20891       cat <<\_ASBOX
20892 ## ------------------------------------------ ##
20893 ## Report this to the AC_PACKAGE_NAME lists.  ##
20894 ## ------------------------------------------ ##
20895 _ASBOX
20896     ) |
20897       sed "s/^/$as_me: WARNING:     /" >&2
20898     ;;
20899 esac
20900 echo "$as_me:$LINENO: checking for sys/acl.h" >&5
20901 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
20902 if test "${ac_cv_header_sys_acl_h+set}" = set; then
20903   echo $ECHO_N "(cached) $ECHO_C" >&6
20904 else
20905   ac_cv_header_sys_acl_h=$ac_header_preproc
20906 fi
20907 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
20908 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
20909
20910 fi
20911
20912
20913 echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
20914 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6
20915 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
20916   echo $ECHO_N "(cached) $ECHO_C" >&6
20917 else
20918   ac_check_lib_save_LIBS=$LIBS
20919 LIBS="-lacl  $LIBS"
20920 cat >conftest.$ac_ext <<_ACEOF
20921 /* confdefs.h.  */
20922 _ACEOF
20923 cat confdefs.h >>conftest.$ac_ext
20924 cat >>conftest.$ac_ext <<_ACEOF
20925 /* end confdefs.h.  */
20926
20927 /* Override any gcc2 internal prototype to avoid an error.  */
20928 #ifdef __cplusplus
20929 extern "C"
20930 #endif
20931 /* We use char because int might match the return type of a gcc2
20932    builtin and then its argument prototype would still apply.  */
20933 char acl_get_file ();
20934 int
20935 main ()
20936 {
20937 acl_get_file ();
20938   ;
20939   return 0;
20940 }
20941 _ACEOF
20942 rm -f conftest.$ac_objext conftest$ac_exeext
20943 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20944   (eval $ac_link) 2>conftest.er1
20945   ac_status=$?
20946   grep -v '^ *+' conftest.er1 >conftest.err
20947   rm -f conftest.er1
20948   cat conftest.err >&5
20949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20950   (exit $ac_status); } &&
20951          { ac_try='test -z "$ac_c_werror_flag"
20952                          || test ! -s conftest.err'
20953   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20954   (eval $ac_try) 2>&5
20955   ac_status=$?
20956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20957   (exit $ac_status); }; } &&
20958          { ac_try='test -s conftest$ac_exeext'
20959   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20960   (eval $ac_try) 2>&5
20961   ac_status=$?
20962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20963   (exit $ac_status); }; }; then
20964   ac_cv_lib_acl_acl_get_file=yes
20965 else
20966   echo "$as_me: failed program was:" >&5
20967 sed 's/^/| /' conftest.$ac_ext >&5
20968
20969 ac_cv_lib_acl_acl_get_file=no
20970 fi
20971 rm -f conftest.err conftest.$ac_objext \
20972       conftest$ac_exeext conftest.$ac_ext
20973 LIBS=$ac_check_lib_save_LIBS
20974 fi
20975 echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
20976 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6
20977 if test $ac_cv_lib_acl_acl_get_file = yes; then
20978   FDLIBS="-lacl $FDLIBS"
20979 fi
20980
20981 have_acl=no
20982 if test $ac_cv_lib_acl_acl_get_file = yes; then
20983    cat >>confdefs.h <<\_ACEOF
20984 #define HAVE_ACL 1
20985 _ACEOF
20986
20987    have_acl=yes
20988 fi
20989
20990 PTHREAD_LIB=""
20991 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
20992 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
20993 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
20994   echo $ECHO_N "(cached) $ECHO_C" >&6
20995 else
20996   ac_check_lib_save_LIBS=$LIBS
20997 LIBS="-lpthread  $LIBS"
20998 cat >conftest.$ac_ext <<_ACEOF
20999 /* confdefs.h.  */
21000 _ACEOF
21001 cat confdefs.h >>conftest.$ac_ext
21002 cat >>conftest.$ac_ext <<_ACEOF
21003 /* end confdefs.h.  */
21004
21005 /* Override any gcc2 internal prototype to avoid an error.  */
21006 #ifdef __cplusplus
21007 extern "C"
21008 #endif
21009 /* We use char because int might match the return type of a gcc2
21010    builtin and then its argument prototype would still apply.  */
21011 char pthread_create ();
21012 int
21013 main ()
21014 {
21015 pthread_create ();
21016   ;
21017   return 0;
21018 }
21019 _ACEOF
21020 rm -f conftest.$ac_objext conftest$ac_exeext
21021 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21022   (eval $ac_link) 2>conftest.er1
21023   ac_status=$?
21024   grep -v '^ *+' conftest.er1 >conftest.err
21025   rm -f conftest.er1
21026   cat conftest.err >&5
21027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21028   (exit $ac_status); } &&
21029          { ac_try='test -z "$ac_c_werror_flag"
21030                          || test ! -s conftest.err'
21031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21032   (eval $ac_try) 2>&5
21033   ac_status=$?
21034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21035   (exit $ac_status); }; } &&
21036          { ac_try='test -s conftest$ac_exeext'
21037   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21038   (eval $ac_try) 2>&5
21039   ac_status=$?
21040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21041   (exit $ac_status); }; }; then
21042   ac_cv_lib_pthread_pthread_create=yes
21043 else
21044   echo "$as_me: failed program was:" >&5
21045 sed 's/^/| /' conftest.$ac_ext >&5
21046
21047 ac_cv_lib_pthread_pthread_create=no
21048 fi
21049 rm -f conftest.err conftest.$ac_objext \
21050       conftest$ac_exeext conftest.$ac_ext
21051 LIBS=$ac_check_lib_save_LIBS
21052 fi
21053 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
21054 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
21055 if test $ac_cv_lib_pthread_pthread_create = yes; then
21056   PTHREAD_LIB="-lpthread"
21057 else
21058   echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
21059 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
21060 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
21061   echo $ECHO_N "(cached) $ECHO_C" >&6
21062 else
21063   ac_check_lib_save_LIBS=$LIBS
21064 LIBS="-lpthreads  $LIBS"
21065 cat >conftest.$ac_ext <<_ACEOF
21066 /* confdefs.h.  */
21067 _ACEOF
21068 cat confdefs.h >>conftest.$ac_ext
21069 cat >>conftest.$ac_ext <<_ACEOF
21070 /* end confdefs.h.  */
21071
21072 /* Override any gcc2 internal prototype to avoid an error.  */
21073 #ifdef __cplusplus
21074 extern "C"
21075 #endif
21076 /* We use char because int might match the return type of a gcc2
21077    builtin and then its argument prototype would still apply.  */
21078 char pthread_create ();
21079 int
21080 main ()
21081 {
21082 pthread_create ();
21083   ;
21084   return 0;
21085 }
21086 _ACEOF
21087 rm -f conftest.$ac_objext conftest$ac_exeext
21088 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21089   (eval $ac_link) 2>conftest.er1
21090   ac_status=$?
21091   grep -v '^ *+' conftest.er1 >conftest.err
21092   rm -f conftest.er1
21093   cat conftest.err >&5
21094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21095   (exit $ac_status); } &&
21096          { ac_try='test -z "$ac_c_werror_flag"
21097                          || test ! -s conftest.err'
21098   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21099   (eval $ac_try) 2>&5
21100   ac_status=$?
21101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21102   (exit $ac_status); }; } &&
21103          { ac_try='test -s conftest$ac_exeext'
21104   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21105   (eval $ac_try) 2>&5
21106   ac_status=$?
21107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21108   (exit $ac_status); }; }; then
21109   ac_cv_lib_pthreads_pthread_create=yes
21110 else
21111   echo "$as_me: failed program was:" >&5
21112 sed 's/^/| /' conftest.$ac_ext >&5
21113
21114 ac_cv_lib_pthreads_pthread_create=no
21115 fi
21116 rm -f conftest.err conftest.$ac_objext \
21117       conftest$ac_exeext conftest.$ac_ext
21118 LIBS=$ac_check_lib_save_LIBS
21119 fi
21120 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
21121 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
21122 if test $ac_cv_lib_pthreads_pthread_create = yes; then
21123   PTHREAD_LIB="-lpthreads"
21124 else
21125   echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
21126 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
21127 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
21128   echo $ECHO_N "(cached) $ECHO_C" >&6
21129 else
21130   ac_check_lib_save_LIBS=$LIBS
21131 LIBS="-lc_r  $LIBS"
21132 cat >conftest.$ac_ext <<_ACEOF
21133 /* confdefs.h.  */
21134 _ACEOF
21135 cat confdefs.h >>conftest.$ac_ext
21136 cat >>conftest.$ac_ext <<_ACEOF
21137 /* end confdefs.h.  */
21138
21139 /* Override any gcc2 internal prototype to avoid an error.  */
21140 #ifdef __cplusplus
21141 extern "C"
21142 #endif
21143 /* We use char because int might match the return type of a gcc2
21144    builtin and then its argument prototype would still apply.  */
21145 char pthread_create ();
21146 int
21147 main ()
21148 {
21149 pthread_create ();
21150   ;
21151   return 0;
21152 }
21153 _ACEOF
21154 rm -f conftest.$ac_objext conftest$ac_exeext
21155 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21156   (eval $ac_link) 2>conftest.er1
21157   ac_status=$?
21158   grep -v '^ *+' conftest.er1 >conftest.err
21159   rm -f conftest.er1
21160   cat conftest.err >&5
21161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21162   (exit $ac_status); } &&
21163          { ac_try='test -z "$ac_c_werror_flag"
21164                          || test ! -s conftest.err'
21165   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21166   (eval $ac_try) 2>&5
21167   ac_status=$?
21168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21169   (exit $ac_status); }; } &&
21170          { ac_try='test -s conftest$ac_exeext'
21171   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21172   (eval $ac_try) 2>&5
21173   ac_status=$?
21174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21175   (exit $ac_status); }; }; then
21176   ac_cv_lib_c_r_pthread_create=yes
21177 else
21178   echo "$as_me: failed program was:" >&5
21179 sed 's/^/| /' conftest.$ac_ext >&5
21180
21181 ac_cv_lib_c_r_pthread_create=no
21182 fi
21183 rm -f conftest.err conftest.$ac_objext \
21184       conftest$ac_exeext conftest.$ac_ext
21185 LIBS=$ac_check_lib_save_LIBS
21186 fi
21187 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
21188 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
21189 if test $ac_cv_lib_c_r_pthread_create = yes; then
21190   PTHREAD_LIB="-lc_r"
21191 else
21192   echo "$as_me:$LINENO: checking for pthread_create" >&5
21193 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6
21194 if test "${ac_cv_func_pthread_create+set}" = set; then
21195   echo $ECHO_N "(cached) $ECHO_C" >&6
21196 else
21197   cat >conftest.$ac_ext <<_ACEOF
21198 /* confdefs.h.  */
21199 _ACEOF
21200 cat confdefs.h >>conftest.$ac_ext
21201 cat >>conftest.$ac_ext <<_ACEOF
21202 /* end confdefs.h.  */
21203 /* Define pthread_create to an innocuous variant, in case <limits.h> declares pthread_create.
21204    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21205 #define pthread_create innocuous_pthread_create
21206
21207 /* System header to define __stub macros and hopefully few prototypes,
21208     which can conflict with char pthread_create (); below.
21209     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21210     <limits.h> exists even on freestanding compilers.  */
21211
21212 #ifdef __STDC__
21213 # include <limits.h>
21214 #else
21215 # include <assert.h>
21216 #endif
21217
21218 #undef pthread_create
21219
21220 /* Override any gcc2 internal prototype to avoid an error.  */
21221 #ifdef __cplusplus
21222 extern "C"
21223 {
21224 #endif
21225 /* We use char because int might match the return type of a gcc2
21226    builtin and then its argument prototype would still apply.  */
21227 char pthread_create ();
21228 /* The GNU C library defines this for functions which it implements
21229     to always fail with ENOSYS.  Some functions are actually named
21230     something starting with __ and the normal name is an alias.  */
21231 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
21232 choke me
21233 #else
21234 char (*f) () = pthread_create;
21235 #endif
21236 #ifdef __cplusplus
21237 }
21238 #endif
21239
21240 int
21241 main ()
21242 {
21243 return f != pthread_create;
21244   ;
21245   return 0;
21246 }
21247 _ACEOF
21248 rm -f conftest.$ac_objext conftest$ac_exeext
21249 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21250   (eval $ac_link) 2>conftest.er1
21251   ac_status=$?
21252   grep -v '^ *+' conftest.er1 >conftest.err
21253   rm -f conftest.er1
21254   cat conftest.err >&5
21255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21256   (exit $ac_status); } &&
21257          { ac_try='test -z "$ac_c_werror_flag"
21258                          || test ! -s conftest.err'
21259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21260   (eval $ac_try) 2>&5
21261   ac_status=$?
21262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21263   (exit $ac_status); }; } &&
21264          { ac_try='test -s conftest$ac_exeext'
21265   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21266   (eval $ac_try) 2>&5
21267   ac_status=$?
21268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21269   (exit $ac_status); }; }; then
21270   ac_cv_func_pthread_create=yes
21271 else
21272   echo "$as_me: failed program was:" >&5
21273 sed 's/^/| /' conftest.$ac_ext >&5
21274
21275 ac_cv_func_pthread_create=no
21276 fi
21277 rm -f conftest.err conftest.$ac_objext \
21278       conftest$ac_exeext conftest.$ac_ext
21279 fi
21280 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
21281 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6
21282
21283
21284 fi
21285
21286
21287 fi
21288
21289
21290 fi
21291
21292
21293
21294 cat >>confdefs.h <<\_ACEOF
21295 #define FDLIBS 1
21296 _ACEOF
21297
21298
21299
21300 CFLAGS=${CFLAGS--O}
21301 LDFLAGS=${LDFLAGS--O}
21302 DB_LIBS="${SQL_LFLAGS}"
21303
21304 CPPFLAGS="$CPPFLAGS"
21305
21306
21307
21308
21309
21310
21311
21312
21313
21314
21315
21316
21317
21318
21319 OBJLIST=
21320
21321
21322 lld="lld"
21323 llu="llu"
21324
21325 WCFLAGS=
21326 WLDFLAGS=
21327
21328 #
21329 # Finally we set appropriate distribution specific
21330 #  variables and defaults
21331 #
21332 # PFILES are platform specific files
21333 PFILES="platforms/Makefile"
21334 PSCMD="ps -e"
21335 WIN32=
21336 MACOSX=
21337 hostname=`uname -n | cut -d '.' -f 1`
21338 case "$DISTNAME" in
21339 aix)
21340         DISTVER=`uname -r`
21341         PSCMD="ps -e -o pid,comm"
21342         PFILES="${PFILES} \
21343            platforms/aix/Makefile"
21344         TAPEDRIVE="/dev/rmt0.1"
21345   ;;
21346 alpha)
21347         DISTVER=`uname -r`
21348         PTHREAD_LIB="-lpthread -lexc"
21349         if test "${CC}" = "gcc" ; then
21350            lld="lld"
21351            llu="llu"
21352         else
21353            lld="ld"
21354            llu="lu"
21355         fi
21356         TAPEDRIVE="/dev/nrmt0"
21357   ;;
21358 bsdi)
21359         DISTVER=`uname -a |awk '{print $3}'`
21360         TAPEDRIVE="/dev/nrmt0"
21361         PTHREAD_LIB="-pthread"
21362         CFLAGS="${CFLAGS} -pthread"
21363         PSCMD="ps -ax -o pid,command"
21364         lld="qd"
21365         llu="qu"
21366         PFILES="${PFILES} \
21367             platforms/bsdi/Makefile \
21368             platforms/bsdi/bacula-fd \
21369             platforms/bsdi/bacula-sd \
21370             platforms/bsdi/bacula-dir"
21371         largefile_support="yes"
21372   ;;
21373 cygwin)
21374         DISTVER=`uname -a |awk '{print $3}'`
21375         TAPEDRIVE="/dev/nrst0"
21376         WIN32=win32
21377         WCFLAGS="-mwindows"
21378         WLDFLAGS="-mwindows"
21379   ;;
21380 darwin)
21381         DISTVER=`uname -r`
21382         TAPEDRIVE="/dev/nst0"
21383         PSCMD="ps -e -o pid,command"
21384         MACOSX=macosx
21385         PFILES="${PFILES} \
21386            platforms/darwin/Makefile"
21387   ;;
21388 debian)
21389         DISTVER=`cat /etc/debian_version`
21390         TAPEDRIVE="/dev/nrst0"
21391         PSCMD="ps -e -o pid,command"
21392   ;;
21393 freebsd)
21394         DISTVER=`uname -a |awk '{print $3}'`
21395         VER=`echo $DISTVER | cut -c 1`
21396         if test x$VER = x4 ; then
21397            PTHREAD_LIB="-pthread"
21398            CFLAGS="${CFLAGS} -pthread"
21399         fi
21400         lld="qd"
21401         llu="qu"
21402         TAPEDRIVE="/dev/nrsa0"
21403         PSCMD="ps -ax -o pid,command"
21404         PFILES="${PFILES} \
21405             platforms/freebsd/Makefile \
21406             platforms/freebsd/bacula-fd \
21407             platforms/freebsd/bacula-sd \
21408             platforms/freebsd/bacula-dir"
21409         largefile_support="yes"
21410   ;;
21411 hpux)
21412         PSCMD="UNIX95=1 ps -e -o pid,comm"
21413         CFLAGS="$(CFLAGS) -D_XOPEN_SOURCE_EXTENDED=1"
21414         DISTVER=`uname -r`
21415         TAPEDRIVE="/dev/rmt/0hnb"
21416         PTHREAD_LIB="-lpthread"
21417         cat >>confdefs.h <<\_ACEOF
21418 #define _INCLUDE_LONGLONG 1
21419 _ACEOF
21420
21421   ;;
21422 irix)
21423         DISTVER=`uname -r`
21424         TAPEDRIVE="/dev/rmt/0cbn"
21425         PSCMD="ps -e -o pid,comm"
21426         PFILES="${PFILES} \
21427             platforms/irix/Makefile \
21428             platforms/irix/bacula-fd \
21429             platforms/irix/bacula-sd \
21430             platforms/irix/bacula-dir"
21431   ;;
21432 netbsd)
21433         DISTVER=`uname -a |awk '{print $3}'`
21434         lld="qd"
21435         llu="qu"
21436         TAPEDRIVE="/dev/nrst0"
21437         PSCMD="ps -ax -o pid,command"
21438         PTHREAD_LIB="-pthread"
21439         CFLAGS="${CFLAGS} -pthread"
21440   ;;
21441 openbsd)
21442         DISTVER=`uname -a |awk '{print $3}'`
21443         lld="qd"
21444         llu="qu"
21445         TAPEDRIVE="/dev/nrst0"
21446         PSCMD="ps -ax -o pid,command"
21447         PTHREAD_LIB="-pthread"
21448         CFLAGS="${CFLAGS} -pthread"
21449         PFILES="${PFILES} \
21450             platforms/openbsd/Makefile \
21451             platforms/openbsd/bacula-fd \
21452             platforms/openbsd/bacula-sd \
21453             platforms/openbsd/bacula-dir"
21454   ;;
21455 redhat)
21456         if test -f /etc/whitebox-release ; then
21457            f=/etc/whitebox-release
21458         else
21459            f=/etc/redhat-release
21460         fi
21461         if test `cat $f | grep release |\
21462                    cut -f 3 -d ' '`x = "Enterprise"x ; then
21463            DISTVER="Enterprise "`cat $f | grep release |\
21464                     cut -f 6 -d ' '`
21465         else
21466             DISTVER=`cat /etc/redhat-release | grep release |\
21467                      cut -f 5 -d ' '`
21468         fi
21469         TAPEDRIVE="/dev/nst0"
21470         PSCMD="ps -e -o pid,command"
21471         PFILES="${PFILES} \
21472             platforms/redhat/Makefile \
21473             platforms/redhat/bacula-fd \
21474             platforms/redhat/bacula-sd \
21475             platforms/redhat/bacula-dir \
21476             platforms/redhat/bacula.spec \
21477             "
21478         hostname=`hostname -s`
21479   ;;
21480 mandrake)
21481         DISTVER=`cat /etc/mandrake-release | grep release |\
21482            cut -f 5 -d ' '`
21483         TAPEDRIVE="/dev/nst0"
21484         PSCMD="ps -e -o pid,command"
21485         PFILES="${PFILES} \
21486             platforms/mandrake/Makefile \
21487             platforms/mandrake/bacula-fd \
21488             platforms/mandrake/bacula-sd \
21489             platforms/mandrake/bacula-dir \
21490             platforms/mandrake/bacula.spec \
21491             "
21492   ;;
21493 gentoo)
21494         DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
21495         TAPEDRIVE="/dev/nst0"
21496         PSCMD="ps -e -o pid,command"
21497         PFILES="${PFILES} \
21498             platforms/gentoo/Makefile \
21499          platforms/gentoo/bacula-init \
21500             platforms/gentoo/bacula-fd \
21501             platforms/gentoo/bacula-sd \
21502             platforms/gentoo/bacula-dir"
21503   ;;
21504 slackware)
21505         DISTVER=`cat /etc/slackware-version`
21506         TAPEDRIVE="/dev/nst0"
21507         PSCMD="ps -e -o pid,command"
21508         PFILES="${PFILES} \
21509             platforms/slackware/Makefile \
21510             platforms/slackware/rc.bacula-fd \
21511             platforms/slackware/rc.bacula-sd \
21512             platforms/slackware/rc.bacula-dir\
21513             platforms/slackware/functions.bacula"
21514   ;;
21515 solaris)
21516         DISTVER=`uname -r`
21517         TAPEDRIVE="/dev/rmt/0cbn"
21518         PSCMD="ps -e -o pid,comm"
21519         PFILES="${PFILES} \
21520             platforms/solaris/Makefile \
21521             platforms/solaris/bacula-fd \
21522             platforms/solaris/bacula-sd \
21523             platforms/solaris/bacula-dir"
21524         if test x$DISTVER = x5.6 ; then
21525             cat >>confdefs.h <<\_ACEOF
21526 #define HAVE_OLD_SOCKOPT 1
21527 _ACEOF
21528
21529         fi
21530         LIBS="$LIBS -lresolv"
21531   ;;
21532 suse)
21533         DISTVER=`cat /etc/SuSE-release |grep VERSION|\
21534             cut -f 3 -d ' '`
21535         TAPEDRIVE="/dev/nst0"
21536         PSCMD="ps -e -o pid,command"
21537         PFILES="${PFILES} \
21538             platforms/suse/Makefile \
21539             platforms/suse/bacula-fd \
21540             platforms/suse/bacula-sd \
21541             platforms/suse/bacula-dir \
21542             platforms/suse/bacula \
21543             platforms/suse/bacula.spec"
21544   ;;
21545 suse5)
21546         DISTNAME=suse
21547         DISTVER=5.x
21548         TAPEDRIVE="/dev/nst0"
21549         PSCMD="ps -e -o pid,command"
21550         PFILES="${PFILES} \
21551             platforms/suse/Makefile \
21552             platforms/suse/bacula-fd \
21553             platforms/suse/bacula-sd \
21554             platforms/suse/bacula-dir"
21555   ;;
21556 unknown)
21557         DISTVER=unknown
21558         TAPEDRIVE="/dev/nst0"
21559   ;;
21560 *)
21561   echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
21562   ;;
21563 esac
21564
21565
21566
21567 LIBS="$PTHREAD_LIB $LIBS"
21568
21569 cat >>confdefs.h <<_ACEOF
21570 #define lld "$lld"
21571 _ACEOF
21572
21573 cat >>confdefs.h <<_ACEOF
21574 #define llu "$llu"
21575 _ACEOF
21576
21577
21578
21579
21580
21581
21582
21583
21584 MCOMMON=./autoconf/Make.common
21585
21586
21587 if test "x${subsysdir}" = "x${sbindir}" ; then
21588    echo " "
21589    echo " "
21590    echo "You have set both --sbindir and --with-subsys-dir"
21591    echo "  equal to: ${subsysdir} "
21592    echo "This is not permitted. Please reconfigure."
21593    echo " "
21594    echo "Aborting configuration ..."
21595    echo " "
21596    echo " "
21597    exit 1
21598 fi
21599
21600                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     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/gnome-console/Makefile src/gnome-console/gnome-console.conf src/gnome2-console/Makefile src/gnome2-console/gnome-console.conf src/wx-console/Makefile src/wx-console/wx-console.conf src/tray-monitor/Makefile src/tray-monitor/tray-monitor.conf src/dird/Makefile src/dird/bacula-dir.conf src/lib/Makefile src/stored/Makefile src/stored/bacula-sd.conf src/filed/Makefile src/filed/bacula-fd.conf src/filed/win32/Makefile src/cats/Makefile src/cats/make_catalog_backup src/cats/delete_catalog_backup src/cats/create_postgresql_database src/cats/update_postgresql_tables src/cats/make_postgresql_tables src/cats/grant_postgresql_privileges src/cats/drop_postgresql_tables src/cats/drop_postgresql_database src/cats/create_mysql_database src/cats/update_mysql_tables src/cats/make_mysql_tables src/cats/grant_mysql_privileges src/cats/drop_mysql_tables src/cats/drop_mysql_database src/cats/create_sqlite_database src/cats/update_sqlite_tables src/cats/make_sqlite_tables src/cats/grant_sqlite_privileges src/cats/drop_sqlite_tables src/cats/drop_sqlite_database src/cats/create_sqlite3_database src/cats/update_sqlite3_tables src/cats/make_sqlite3_tables src/cats/grant_sqlite3_privileges src/cats/drop_sqlite3_tables src/cats/drop_sqlite3_database src/cats/sqlite src/cats/mysql src/cats/create_bdb_database src/cats/update_bdb_tables src/cats/make_bdb_tables src/cats/grant_bdb_privileges src/cats/drop_bdb_tables src/cats/drop_bdb_database src/cats/create_bacula_database src/cats/update_bacula_tables src/cats/grant_bacula_privileges src/cats/make_bacula_tables src/cats/drop_bacula_tables src/cats/drop_bacula_database src/findlib/Makefile src/tools/Makefile src/win32/winbacula.nsi src/win32/baculafd/bacula-fd.conf src/win32/Makefile src/win32/console/bconsole.conf src/win32/wx-console/wx-console.conf src/win32/pebuilder/Makefile src/bimagemgr/Makefile src/bimagemgr/bacula-bimagemgr.spec $PFILES"
21601           ac_config_commands="$ac_config_commands default"
21602 cat >confcache <<\_ACEOF
21603 # This file is a shell script that caches the results of configure
21604 # tests run on this system so they can be shared between configure
21605 # scripts and configure runs, see configure's option --config-cache.
21606 # It is not useful on other systems.  If it contains results you don't
21607 # want to keep, you may remove or edit it.
21608 #
21609 # config.status only pays attention to the cache file if you give it
21610 # the --recheck option to rerun configure.
21611 #
21612 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21613 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21614 # following values.
21615
21616 _ACEOF
21617
21618 # The following way of writing the cache mishandles newlines in values,
21619 # but we know of no workaround that is simple, portable, and efficient.
21620 # So, don't put newlines in cache variables' values.
21621 # Ultrix sh set writes to stderr and can't be redirected directly,
21622 # and sets the high bit in the cache file unless we assign to the vars.
21623 {
21624   (set) 2>&1 |
21625     case `(ac_space=' '; set | grep ac_space) 2>&1` in
21626     *ac_space=\ *)
21627       # `set' does not quote correctly, so add quotes (double-quote
21628       # substitution turns \\\\ into \\, and sed turns \\ into \).
21629       sed -n \
21630         "s/'/'\\\\''/g;
21631           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21632       ;;
21633     *)
21634       # `set' quotes correctly as required by POSIX, so do not add quotes.
21635       sed -n \
21636         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
21637       ;;
21638     esac;
21639 } |
21640   sed '
21641      t clear
21642      : clear
21643      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21644      t end
21645      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21646      : end' >>confcache
21647 if diff $cache_file confcache >/dev/null 2>&1; then :; else
21648   if test -w $cache_file; then
21649     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21650     cat confcache >$cache_file
21651   else
21652     echo "not updating unwritable cache $cache_file"
21653   fi
21654 fi
21655 rm -f confcache
21656
21657 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21658 # Let make expand exec_prefix.
21659 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21660
21661 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21662 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21663 # trailing colons and then remove the whole line if VPATH becomes empty
21664 # (actually we leave an empty line to preserve line numbers).
21665 if test "x$srcdir" = x.; then
21666   ac_vpsub='/^[  ]*VPATH[        ]*=/{
21667 s/:*\$(srcdir):*/:/;
21668 s/:*\${srcdir}:*/:/;
21669 s/:*@srcdir@:*/:/;
21670 s/^\([^=]*=[     ]*\):*/\1/;
21671 s/:*$//;
21672 s/^[^=]*=[       ]*$//;
21673 }'
21674 fi
21675
21676 DEFS=-DHAVE_CONFIG_H
21677
21678 ac_libobjs=
21679 ac_ltlibobjs=
21680 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21681   # 1. Remove the extension, and $U if already installed.
21682   ac_i=`echo "$ac_i" |
21683          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
21684   # 2. Add them.
21685   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
21686   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
21687 done
21688 LIBOBJS=$ac_libobjs
21689
21690 LTLIBOBJS=$ac_ltlibobjs
21691
21692
21693
21694 : ${CONFIG_STATUS=./config.status}
21695 ac_clean_files_save=$ac_clean_files
21696 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21697 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21698 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21699 cat >$CONFIG_STATUS <<_ACEOF
21700 #! $SHELL
21701 # Generated by $as_me.
21702 # Run this file to recreate the current configuration.
21703 # Compiler output produced by configure, useful for debugging
21704 # configure, is in config.log if it exists.
21705
21706 debug=false
21707 ac_cs_recheck=false
21708 ac_cs_silent=false
21709 SHELL=\${CONFIG_SHELL-$SHELL}
21710 _ACEOF
21711
21712 cat >>$CONFIG_STATUS <<\_ACEOF
21713 ## --------------------- ##
21714 ## M4sh Initialization.  ##
21715 ## --------------------- ##
21716
21717 # Be Bourne compatible
21718 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21719   emulate sh
21720   NULLCMD=:
21721   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21722   # is contrary to our usage.  Disable this feature.
21723   alias -g '${1+"$@"}'='"$@"'
21724 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21725   set -o posix
21726 fi
21727 DUALCASE=1; export DUALCASE # for MKS sh
21728
21729 # Support unset when possible.
21730 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21731   as_unset=unset
21732 else
21733   as_unset=false
21734 fi
21735
21736
21737 # Work around bugs in pre-3.0 UWIN ksh.
21738 $as_unset ENV MAIL MAILPATH
21739 PS1='$ '
21740 PS2='> '
21741 PS4='+ '
21742
21743 # NLS nuisances.
21744 for as_var in \
21745   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21746   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21747   LC_TELEPHONE LC_TIME
21748 do
21749   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21750     eval $as_var=C; export $as_var
21751   else
21752     $as_unset $as_var
21753   fi
21754 done
21755
21756 # Required to use basename.
21757 if expr a : '\(a\)' >/dev/null 2>&1; then
21758   as_expr=expr
21759 else
21760   as_expr=false
21761 fi
21762
21763 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
21764   as_basename=basename
21765 else
21766   as_basename=false
21767 fi
21768
21769
21770 # Name of the executable.
21771 as_me=`$as_basename "$0" ||
21772 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21773          X"$0" : 'X\(//\)$' \| \
21774          X"$0" : 'X\(/\)$' \| \
21775          .     : '\(.\)' 2>/dev/null ||
21776 echo X/"$0" |
21777     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
21778           /^X\/\(\/\/\)$/{ s//\1/; q; }
21779           /^X\/\(\/\).*/{ s//\1/; q; }
21780           s/.*/./; q'`
21781
21782
21783 # PATH needs CR, and LINENO needs CR and PATH.
21784 # Avoid depending upon Character Ranges.
21785 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21786 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21787 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21788 as_cr_digits='0123456789'
21789 as_cr_alnum=$as_cr_Letters$as_cr_digits
21790
21791 # The user is always right.
21792 if test "${PATH_SEPARATOR+set}" != set; then
21793   echo "#! /bin/sh" >conf$$.sh
21794   echo  "exit 0"   >>conf$$.sh
21795   chmod +x conf$$.sh
21796   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21797     PATH_SEPARATOR=';'
21798   else
21799     PATH_SEPARATOR=:
21800   fi
21801   rm -f conf$$.sh
21802 fi
21803
21804
21805   as_lineno_1=$LINENO
21806   as_lineno_2=$LINENO
21807   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21808   test "x$as_lineno_1" != "x$as_lineno_2" &&
21809   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
21810   # Find who we are.  Look in the path if we contain no path at all
21811   # relative or not.
21812   case $0 in
21813     *[\\/]* ) as_myself=$0 ;;
21814     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21815 for as_dir in $PATH
21816 do
21817   IFS=$as_save_IFS
21818   test -z "$as_dir" && as_dir=.
21819   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21820 done
21821
21822        ;;
21823   esac
21824   # We did not find ourselves, most probably we were run as `sh COMMAND'
21825   # in which case we are not to be found in the path.
21826   if test "x$as_myself" = x; then
21827     as_myself=$0
21828   fi
21829   if test ! -f "$as_myself"; then
21830     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
21831 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
21832    { (exit 1); exit 1; }; }
21833   fi
21834   case $CONFIG_SHELL in
21835   '')
21836     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21837 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
21838 do
21839   IFS=$as_save_IFS
21840   test -z "$as_dir" && as_dir=.
21841   for as_base in sh bash ksh sh5; do
21842          case $as_dir in
21843          /*)
21844            if ("$as_dir/$as_base" -c '
21845   as_lineno_1=$LINENO
21846   as_lineno_2=$LINENO
21847   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21848   test "x$as_lineno_1" != "x$as_lineno_2" &&
21849   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
21850              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
21851              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
21852              CONFIG_SHELL=$as_dir/$as_base
21853              export CONFIG_SHELL
21854              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
21855            fi;;
21856          esac
21857        done
21858 done
21859 ;;
21860   esac
21861
21862   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21863   # uniformly replaced by the line number.  The first 'sed' inserts a
21864   # line-number line before each line; the second 'sed' does the real
21865   # work.  The second script uses 'N' to pair each line-number line
21866   # with the numbered line, and appends trailing '-' during
21867   # substitution so that $LINENO is not a special case at line end.
21868   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21869   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
21870   sed '=' <$as_myself |
21871     sed '
21872       N
21873       s,$,-,
21874       : loop
21875       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
21876       t loop
21877       s,-$,,
21878       s,^['$as_cr_digits']*\n,,
21879     ' >$as_me.lineno &&
21880   chmod +x $as_me.lineno ||
21881     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
21882 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
21883    { (exit 1); exit 1; }; }
21884
21885   # Don't try to exec as it changes $[0], causing all sort of problems
21886   # (the dirname of $[0] is not the place where we might find the
21887   # original and so on.  Autoconf is especially sensible to this).
21888   . ./$as_me.lineno
21889   # Exit status is that of the last command.
21890   exit
21891 }
21892
21893
21894 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
21895   *c*,-n*) ECHO_N= ECHO_C='
21896 ' ECHO_T='      ' ;;
21897   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
21898   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
21899 esac
21900
21901 if expr a : '\(a\)' >/dev/null 2>&1; then
21902   as_expr=expr
21903 else
21904   as_expr=false
21905 fi
21906
21907 rm -f conf$$ conf$$.exe conf$$.file
21908 echo >conf$$.file
21909 if ln -s conf$$.file conf$$ 2>/dev/null; then
21910   # We could just check for DJGPP; but this test a) works b) is more generic
21911   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
21912   if test -f conf$$.exe; then
21913     # Don't use ln at all; we don't have any links
21914     as_ln_s='cp -p'
21915   else
21916     as_ln_s='ln -s'
21917   fi
21918 elif ln conf$$.file conf$$ 2>/dev/null; then
21919   as_ln_s=ln
21920 else
21921   as_ln_s='cp -p'
21922 fi
21923 rm -f conf$$ conf$$.exe conf$$.file
21924
21925 if mkdir -p . 2>/dev/null; then
21926   as_mkdir_p=:
21927 else
21928   test -d ./-p && rmdir ./-p
21929   as_mkdir_p=false
21930 fi
21931
21932 as_executable_p="test -f"
21933
21934 # Sed expression to map a string onto a valid CPP name.
21935 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21936
21937 # Sed expression to map a string onto a valid variable name.
21938 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21939
21940
21941 # IFS
21942 # We need space, tab and new line, in precisely that order.
21943 as_nl='
21944 '
21945 IFS="   $as_nl"
21946
21947 # CDPATH.
21948 $as_unset CDPATH
21949
21950 exec 6>&1
21951
21952 # Open the log real soon, to keep \$[0] and so on meaningful, and to
21953 # report actual input values of CONFIG_FILES etc. instead of their
21954 # values after options handling.  Logging --version etc. is OK.
21955 exec 5>>config.log
21956 {
21957   echo
21958   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21959 ## Running $as_me. ##
21960 _ASBOX
21961 } >&5
21962 cat >&5 <<_CSEOF
21963
21964 This file was extended by $as_me, which was
21965 generated by GNU Autoconf 2.59.  Invocation command line was
21966
21967   CONFIG_FILES    = $CONFIG_FILES
21968   CONFIG_HEADERS  = $CONFIG_HEADERS
21969   CONFIG_LINKS    = $CONFIG_LINKS
21970   CONFIG_COMMANDS = $CONFIG_COMMANDS
21971   $ $0 $@
21972
21973 _CSEOF
21974 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
21975 echo >&5
21976 _ACEOF
21977
21978 # Files that config.status was made for.
21979 if test -n "$ac_config_files"; then
21980   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
21981 fi
21982
21983 if test -n "$ac_config_headers"; then
21984   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
21985 fi
21986
21987 if test -n "$ac_config_links"; then
21988   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
21989 fi
21990
21991 if test -n "$ac_config_commands"; then
21992   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
21993 fi
21994
21995 cat >>$CONFIG_STATUS <<\_ACEOF
21996
21997 ac_cs_usage="\
21998 \`$as_me' instantiates files from templates according to the
21999 current configuration.
22000
22001 Usage: $0 [OPTIONS] [FILE]...
22002
22003   -h, --help       print this help, then exit
22004   -V, --version    print version number, then exit
22005   -q, --quiet      do not print progress messages
22006   -d, --debug      don't remove temporary files
22007       --recheck    update $as_me by reconfiguring in the same conditions
22008   --file=FILE[:TEMPLATE]
22009                    instantiate the configuration file FILE
22010   --header=FILE[:TEMPLATE]
22011                    instantiate the configuration header FILE
22012
22013 Configuration files:
22014 $config_files
22015
22016 Configuration headers:
22017 $config_headers
22018
22019 Configuration commands:
22020 $config_commands
22021
22022 Report bugs to <bug-autoconf@gnu.org>."
22023 _ACEOF
22024
22025 cat >>$CONFIG_STATUS <<_ACEOF
22026 ac_cs_version="\\
22027 config.status
22028 configured by $0, generated by GNU Autoconf 2.59,
22029   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22030
22031 Copyright (C) 2003 Free Software Foundation, Inc.
22032 This config.status script is free software; the Free Software Foundation
22033 gives unlimited permission to copy, distribute and modify it."
22034 srcdir=$srcdir
22035 INSTALL="$INSTALL"
22036 _ACEOF
22037
22038 cat >>$CONFIG_STATUS <<\_ACEOF
22039 # If no file are specified by the user, then we need to provide default
22040 # value.  By we need to know if files were specified by the user.
22041 ac_need_defaults=:
22042 while test $# != 0
22043 do
22044   case $1 in
22045   --*=*)
22046     ac_option=`expr "x$1" : 'x\([^=]*\)='`
22047     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
22048     ac_shift=:
22049     ;;
22050   -*)
22051     ac_option=$1
22052     ac_optarg=$2
22053     ac_shift=shift
22054     ;;
22055   *) # This is not an option, so the user has probably given explicit
22056      # arguments.
22057      ac_option=$1
22058      ac_need_defaults=false;;
22059   esac
22060
22061   case $ac_option in
22062   # Handling of the options.
22063 _ACEOF
22064 cat >>$CONFIG_STATUS <<\_ACEOF
22065   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22066     ac_cs_recheck=: ;;
22067   --version | --vers* | -V )
22068     echo "$ac_cs_version"; exit 0 ;;
22069   --he | --h)
22070     # Conflict between --help and --header
22071     { { echo "$as_me:$LINENO: error: ambiguous option: $1
22072 Try \`$0 --help' for more information." >&5
22073 echo "$as_me: error: ambiguous option: $1
22074 Try \`$0 --help' for more information." >&2;}
22075    { (exit 1); exit 1; }; };;
22076   --help | --hel | -h )
22077     echo "$ac_cs_usage"; exit 0 ;;
22078   --debug | --d* | -d )
22079     debug=: ;;
22080   --file | --fil | --fi | --f )
22081     $ac_shift
22082     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22083     ac_need_defaults=false;;
22084   --header | --heade | --head | --hea )
22085     $ac_shift
22086     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22087     ac_need_defaults=false;;
22088   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22089   | -silent | --silent | --silen | --sile | --sil | --si | --s)
22090     ac_cs_silent=: ;;
22091
22092   # This is an error.
22093   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22094 Try \`$0 --help' for more information." >&5
22095 echo "$as_me: error: unrecognized option: $1
22096 Try \`$0 --help' for more information." >&2;}
22097    { (exit 1); exit 1; }; } ;;
22098
22099   *) ac_config_targets="$ac_config_targets $1" ;;
22100
22101   esac
22102   shift
22103 done
22104
22105 ac_configure_extra_args=
22106
22107 if $ac_cs_silent; then
22108   exec 6>/dev/null
22109   ac_configure_extra_args="$ac_configure_extra_args --silent"
22110 fi
22111
22112 _ACEOF
22113 cat >>$CONFIG_STATUS <<_ACEOF
22114 if \$ac_cs_recheck; then
22115   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22116   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22117 fi
22118
22119 _ACEOF
22120
22121
22122
22123
22124
22125 cat >>$CONFIG_STATUS <<\_ACEOF
22126 for ac_config_target in $ac_config_targets
22127 do
22128   case "$ac_config_target" in
22129   # Handling of arguments.
22130   "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
22131   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22132   "scripts/startmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
22133   "scripts/stopmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
22134   "scripts/btraceback" ) CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
22135   "scripts/startit" ) CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
22136   "scripts/stopit" ) CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
22137   "scripts/bconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
22138   "scripts/gconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
22139   "scripts/bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
22140   "scripts/devel_bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
22141   "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
22142   "scripts/logrotate" ) CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
22143   "scripts/bacula.desktop.gnome1" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
22144   "scripts/bacula.desktop.gnome2" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
22145   "scripts/bacula.desktop.gnome1.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
22146   "scripts/bacula.desktop.gnome2.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
22147   "scripts/bacula.desktop.gnome1.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
22148   "scripts/bacula.desktop.gnome2.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
22149   "scripts/gnome-console.console_apps" ) CONFIG_FILES="$CONFIG_FILES scripts/gnome-console.console_apps" ;;
22150   "scripts/mtx-changer" ) CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
22151   "scripts/dvd-writepart" ) CONFIG_FILES="$CONFIG_FILES scripts/dvd-writepart" ;;
22152   "scripts/dvd-freespace" ) CONFIG_FILES="$CONFIG_FILES scripts/dvd-freespace" ;;
22153   "scripts/bacula-tray-monitor.desktop" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
22154   "scripts/logwatch/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
22155   "scripts/logwatch/logfile.bacula.conf" ) CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
22156   "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
22157   "src/host.h" ) CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
22158   "src/console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
22159   "src/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
22160   "src/gnome-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/Makefile" ;;
22161   "src/gnome-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/gnome-console.conf" ;;
22162   "src/gnome2-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
22163   "src/gnome2-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/gnome-console.conf" ;;
22164   "src/wx-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
22165   "src/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/wx-console.conf" ;;
22166   "src/tray-monitor/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
22167   "src/tray-monitor/tray-monitor.conf" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
22168   "src/dird/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
22169   "src/dird/bacula-dir.conf" ) CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
22170   "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
22171   "src/stored/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
22172   "src/stored/bacula-sd.conf" ) CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
22173   "src/filed/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
22174   "src/filed/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
22175   "src/filed/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/win32/Makefile" ;;
22176   "src/cats/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
22177   "src/cats/make_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
22178   "src/cats/delete_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
22179   "src/cats/create_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
22180   "src/cats/update_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
22181   "src/cats/make_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
22182   "src/cats/grant_postgresql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
22183   "src/cats/drop_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
22184   "src/cats/drop_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
22185   "src/cats/create_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
22186   "src/cats/update_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
22187   "src/cats/make_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
22188   "src/cats/grant_mysql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
22189   "src/cats/drop_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
22190   "src/cats/drop_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
22191   "src/cats/create_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
22192   "src/cats/update_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
22193   "src/cats/make_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
22194   "src/cats/grant_sqlite_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
22195   "src/cats/drop_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
22196   "src/cats/drop_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
22197   "src/cats/create_sqlite3_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
22198   "src/cats/update_sqlite3_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
22199   "src/cats/make_sqlite3_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
22200   "src/cats/grant_sqlite3_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
22201   "src/cats/drop_sqlite3_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
22202   "src/cats/drop_sqlite3_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
22203   "src/cats/sqlite" ) CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
22204   "src/cats/mysql" ) CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
22205   "src/cats/create_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
22206   "src/cats/update_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
22207   "src/cats/make_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
22208   "src/cats/grant_bdb_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
22209   "src/cats/drop_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
22210   "src/cats/drop_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
22211   "src/cats/create_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
22212   "src/cats/update_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
22213   "src/cats/grant_bacula_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
22214   "src/cats/make_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
22215   "src/cats/drop_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
22216   "src/cats/drop_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
22217   "src/findlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
22218   "src/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
22219   "src/win32/winbacula.nsi" ) CONFIG_FILES="$CONFIG_FILES src/win32/winbacula.nsi" ;;
22220   "src/win32/baculafd/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/baculafd/bacula-fd.conf" ;;
22221   "src/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/win32/Makefile" ;;
22222   "src/win32/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/console/bconsole.conf" ;;
22223   "src/win32/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/wx-console/wx-console.conf" ;;
22224   "src/win32/pebuilder/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/win32/pebuilder/Makefile" ;;
22225   "src/bimagemgr/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/bimagemgr/Makefile" ;;
22226   "src/bimagemgr/bacula-bimagemgr.spec" ) CONFIG_FILES="$CONFIG_FILES src/bimagemgr/bacula-bimagemgr.spec" ;;
22227   "$PFILES" ) CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
22228   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
22229   "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
22230   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22231 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22232    { (exit 1); exit 1; }; };;
22233   esac
22234 done
22235
22236 # If the user did not use the arguments to specify the items to instantiate,
22237 # then the envvar interface is used.  Set only those that are not.
22238 # We use the long form for the default assignment because of an extremely
22239 # bizarre bug on SunOS 4.1.3.
22240 if $ac_need_defaults; then
22241   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22242   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22243   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22244 fi
22245
22246 # Have a temporary directory for convenience.  Make it in the build tree
22247 # simply because there is no reason to put it here, and in addition,
22248 # creating and moving files from /tmp can sometimes cause problems.
22249 # Create a temporary directory, and hook for its removal unless debugging.
22250 $debug ||
22251 {
22252   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22253   trap '{ (exit 1); exit 1; }' 1 2 13 15
22254 }
22255
22256 # Create a (secure) tmp directory for tmp files.
22257
22258 {
22259   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22260   test -n "$tmp" && test -d "$tmp"
22261 }  ||
22262 {
22263   tmp=./confstat$$-$RANDOM
22264   (umask 077 && mkdir $tmp)
22265 } ||
22266 {
22267    echo "$me: cannot create a temporary directory in ." >&2
22268    { (exit 1); exit 1; }
22269 }
22270
22271 _ACEOF
22272
22273 cat >>$CONFIG_STATUS <<_ACEOF
22274
22275 #
22276 # CONFIG_FILES section.
22277 #
22278
22279 # No need to generate the scripts if there are no CONFIG_FILES.
22280 # This happens for instance when ./config.status config.h
22281 if test -n "\$CONFIG_FILES"; then
22282   # Protect against being on the right side of a sed subst in config.status.
22283   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22284    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22285 s,@SHELL@,$SHELL,;t t
22286 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22287 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22288 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22289 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22290 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22291 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22292 s,@exec_prefix@,$exec_prefix,;t t
22293 s,@prefix@,$prefix,;t t
22294 s,@program_transform_name@,$program_transform_name,;t t
22295 s,@bindir@,$bindir,;t t
22296 s,@sbindir@,$sbindir,;t t
22297 s,@libexecdir@,$libexecdir,;t t
22298 s,@datadir@,$datadir,;t t
22299 s,@sysconfdir@,$sysconfdir,;t t
22300 s,@sharedstatedir@,$sharedstatedir,;t t
22301 s,@localstatedir@,$localstatedir,;t t
22302 s,@libdir@,$libdir,;t t
22303 s,@includedir@,$includedir,;t t
22304 s,@oldincludedir@,$oldincludedir,;t t
22305 s,@infodir@,$infodir,;t t
22306 s,@mandir@,$mandir,;t t
22307 s,@build_alias@,$build_alias,;t t
22308 s,@host_alias@,$host_alias,;t t
22309 s,@target_alias@,$target_alias,;t t
22310 s,@DEFS@,$DEFS,;t t
22311 s,@ECHO_C@,$ECHO_C,;t t
22312 s,@ECHO_N@,$ECHO_N,;t t
22313 s,@ECHO_T@,$ECHO_T,;t t
22314 s,@LIBS@,$LIBS,;t t
22315 s,@BUILD_DIR@,$BUILD_DIR,;t t
22316 s,@TRUEPRG@,$TRUEPRG,;t t
22317 s,@FALSEPRG@,$FALSEPRG,;t t
22318 s,@VERSION@,$VERSION,;t t
22319 s,@DATE@,$DATE,;t t
22320 s,@LSMDATE@,$LSMDATE,;t t
22321 s,@CC@,$CC,;t t
22322 s,@CFLAGS@,$CFLAGS,;t t
22323 s,@LDFLAGS@,$LDFLAGS,;t t
22324 s,@CPPFLAGS@,$CPPFLAGS,;t t
22325 s,@ac_ct_CC@,$ac_ct_CC,;t t
22326 s,@EXEEXT@,$EXEEXT,;t t
22327 s,@OBJEXT@,$OBJEXT,;t t
22328 s,@CXX@,$CXX,;t t
22329 s,@CXXFLAGS@,$CXXFLAGS,;t t
22330 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
22331 s,@CPP@,$CPP,;t t
22332 s,@EGREP@,$EGREP,;t t
22333 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22334 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22335 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22336 s,@RANLIB@,$RANLIB,;t t
22337 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22338 s,@MV@,$MV,;t t
22339 s,@RM@,$RM,;t t
22340 s,@CP@,$CP,;t t
22341 s,@SED@,$SED,;t t
22342 s,@ECHO@,$ECHO,;t t
22343 s,@CMP@,$CMP,;t t
22344 s,@TBL@,$TBL,;t t
22345 s,@AR@,$AR,;t t
22346 s,@OPENSSL@,$OPENSSL,;t t
22347 s,@MTX@,$MTX,;t t
22348 s,@MKISOFS@,$MKISOFS,;t t
22349 s,@PYTHON@,$PYTHON,;t t
22350 s,@GROWISOFS@,$GROWISOFS,;t t
22351 s,@DVDRWMEDIAINFO@,$DVDRWMEDIAINFO,;t t
22352 s,@PKGCONFIG@,$PKGCONFIG,;t t
22353 s,@WXCONFIG@,$WXCONFIG,;t t
22354 s,@WXFLAGS@,$WXFLAGS,;t t
22355 s,@CDRECORD@,$CDRECORD,;t t
22356 s,@PIDOF@,$PIDOF,;t t
22357 s,@AWK@,$AWK,;t t
22358 s,@ARFLAGS@,$ARFLAGS,;t t
22359 s,@MAKE_SHELL@,$MAKE_SHELL,;t t
22360 s,@LOCAL_LIBS@,$LOCAL_LIBS,;t t
22361 s,@LOCAL_CFLAGS@,$LOCAL_CFLAGS,;t t
22362 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
22363 s,@LOCAL_DEFS@,$LOCAL_DEFS,;t t
22364 s,@build@,$build,;t t
22365 s,@build_cpu@,$build_cpu,;t t
22366 s,@build_vendor@,$build_vendor,;t t
22367 s,@build_os@,$build_os,;t t
22368 s,@host@,$host,;t t
22369 s,@host_cpu@,$host_cpu,;t t
22370 s,@host_vendor@,$host_vendor,;t t
22371 s,@host_os@,$host_os,;t t
22372 s,@HAVE_SUN_OS_TRUE@,$HAVE_SUN_OS_TRUE,;t t
22373 s,@HAVE_SUN_OS_FALSE@,$HAVE_SUN_OS_FALSE,;t t
22374 s,@HAVE_OSF1_OS_TRUE@,$HAVE_OSF1_OS_TRUE,;t t
22375 s,@HAVE_OSF1_OS_FALSE@,$HAVE_OSF1_OS_FALSE,;t t
22376 s,@HAVE_AIX_OS_TRUE@,$HAVE_AIX_OS_TRUE,;t t
22377 s,@HAVE_AIX_OS_FALSE@,$HAVE_AIX_OS_FALSE,;t t
22378 s,@HAVE_HPUX_OS_TRUE@,$HAVE_HPUX_OS_TRUE,;t t
22379 s,@HAVE_HPUX_OS_FALSE@,$HAVE_HPUX_OS_FALSE,;t t
22380 s,@HAVE_LINUX_OS_TRUE@,$HAVE_LINUX_OS_TRUE,;t t
22381 s,@HAVE_LINUX_OS_FALSE@,$HAVE_LINUX_OS_FALSE,;t t
22382 s,@HAVE_FREEBSD_OS_TRUE@,$HAVE_FREEBSD_OS_TRUE,;t t
22383 s,@HAVE_FREEBSD_OS_FALSE@,$HAVE_FREEBSD_OS_FALSE,;t t
22384 s,@HAVE_NETBSD_OS_TRUE@,$HAVE_NETBSD_OS_TRUE,;t t
22385 s,@HAVE_NETBSD_OS_FALSE@,$HAVE_NETBSD_OS_FALSE,;t t
22386 s,@HAVE_OPENBSD_OS_TRUE@,$HAVE_OPENBSD_OS_TRUE,;t t
22387 s,@HAVE_OPENBSD_OS_FALSE@,$HAVE_OPENBSD_OS_FALSE,;t t
22388 s,@HAVE_BSDI_OS_TRUE@,$HAVE_BSDI_OS_TRUE,;t t
22389 s,@HAVE_BSDI_OS_FALSE@,$HAVE_BSDI_OS_FALSE,;t t
22390 s,@HAVE_SGI_OS_TRUE@,$HAVE_SGI_OS_TRUE,;t t
22391 s,@HAVE_SGI_OS_FALSE@,$HAVE_SGI_OS_FALSE,;t t
22392 s,@HAVE_IRIX_OS_TRUE@,$HAVE_IRIX_OS_TRUE,;t t
22393 s,@HAVE_IRIX_OS_FALSE@,$HAVE_IRIX_OS_FALSE,;t t
22394 s,@HAVE_DARWIN_OS_TRUE@,$HAVE_DARWIN_OS_TRUE,;t t
22395 s,@HAVE_DARWIN_OS_FALSE@,$HAVE_DARWIN_OS_FALSE,;t t
22396 s,@INSIDE_GNOME_COMMON_TRUE@,$INSIDE_GNOME_COMMON_TRUE,;t t
22397 s,@INSIDE_GNOME_COMMON_FALSE@,$INSIDE_GNOME_COMMON_FALSE,;t t
22398 s,@MSGFMT@,$MSGFMT,;t t
22399 s,@GNOME_INCLUDEDIR@,$GNOME_INCLUDEDIR,;t t
22400 s,@GNOMEUI_LIBS@,$GNOMEUI_LIBS,;t t
22401 s,@GNOME_LIBDIR@,$GNOME_LIBDIR,;t t
22402 s,@GNOME_LIBS@,$GNOME_LIBS,;t t
22403 s,@GNOMEGNORBA_LIBS@,$GNOMEGNORBA_LIBS,;t t
22404 s,@GTKXMHTML_LIBS@,$GTKXMHTML_LIBS,;t t
22405 s,@ZVT_LIBS@,$ZVT_LIBS,;t t
22406 s,@GNOME_CONFIG@,$GNOME_CONFIG,;t t
22407 s,@ORBIT_CONFIG@,$ORBIT_CONFIG,;t t
22408 s,@ORBIT_IDL@,$ORBIT_IDL,;t t
22409 s,@HAVE_ORBIT_TRUE@,$HAVE_ORBIT_TRUE,;t t
22410 s,@HAVE_ORBIT_FALSE@,$HAVE_ORBIT_FALSE,;t t
22411 s,@ORBIT_CFLAGS@,$ORBIT_CFLAGS,;t t
22412 s,@ORBIT_LIBS@,$ORBIT_LIBS,;t t
22413 s,@HAVE_GNORBA_TRUE@,$HAVE_GNORBA_TRUE,;t t
22414 s,@HAVE_GNORBA_FALSE@,$HAVE_GNORBA_FALSE,;t t
22415 s,@GNORBA_CFLAGS@,$GNORBA_CFLAGS,;t t
22416 s,@GNORBA_LIBS@,$GNORBA_LIBS,;t t
22417 s,@GNOME_APPLETS_LIBS@,$GNOME_APPLETS_LIBS,;t t
22418 s,@GNOME_DOCKLETS_LIBS@,$GNOME_DOCKLETS_LIBS,;t t
22419 s,@GNOME_CAPPLET_LIBS@,$GNOME_CAPPLET_LIBS,;t t
22420 s,@GNOME_DIR@,$GNOME_DIR,;t t
22421 s,@WXCONS_CPPFLAGS@,$WXCONS_CPPFLAGS,;t t
22422 s,@WXCONS_LDFLAGS@,$WXCONS_LDFLAGS,;t t
22423 s,@WX_DIR@,$WX_DIR,;t t
22424 s,@TRAY_MONITOR_CPPFLAGS@,$TRAY_MONITOR_CPPFLAGS,;t t
22425 s,@TRAY_MONITOR_LDFLAGS@,$TRAY_MONITOR_LDFLAGS,;t t
22426 s,@TRAY_MONITOR_DIR@,$TRAY_MONITOR_DIR,;t t
22427 s,@TTOOL_LDFLAGS@,$TTOOL_LDFLAGS,;t t
22428 s,@STATIC_FD@,$STATIC_FD,;t t
22429 s,@STATIC_SD@,$STATIC_SD,;t t
22430 s,@STATIC_DIR@,$STATIC_DIR,;t t
22431 s,@STATIC_CONS@,$STATIC_CONS,;t t
22432 s,@STATIC_GNOME_CONS@,$STATIC_GNOME_CONS,;t t
22433 s,@STATIC_WX_CONS@,$STATIC_WX_CONS,;t t
22434 s,@ALL_DIRS@,$ALL_DIRS,;t t
22435 s,@CONS_INC@,$CONS_INC,;t t
22436 s,@CONS_OBJ@,$CONS_OBJ,;t t
22437 s,@CONS_SRC@,$CONS_SRC,;t t
22438 s,@CONS_LIBS@,$CONS_LIBS,;t t
22439 s,@CONS_LDFLAGS@,$CONS_LDFLAGS,;t t
22440 s,@READLINE_SRC@,$READLINE_SRC,;t t
22441 s,@PYTHON_LIBS@,$PYTHON_LIBS,;t t
22442 s,@PYTHON_INCDIR@,$PYTHON_INCDIR,;t t
22443 s,@OPENSSL_LIBS@,$OPENSSL_LIBS,;t t
22444 s,@OPENSSL_INC@,$OPENSSL_INC,;t t
22445 s,@working_dir@,$working_dir,;t t
22446 s,@scriptdir@,$scriptdir,;t t
22447 s,@dump_email@,$dump_email,;t t
22448 s,@job_email@,$job_email,;t t
22449 s,@smtp_host@,$smtp_host,;t t
22450 s,@piddir@,$piddir,;t t
22451 s,@subsysdir@,$subsysdir,;t t
22452 s,@baseport@,$baseport,;t t
22453 s,@dir_port@,$dir_port,;t t
22454 s,@fd_port@,$fd_port,;t t
22455 s,@sd_port@,$sd_port,;t t
22456 s,@dir_password@,$dir_password,;t t
22457 s,@fd_password@,$fd_password,;t t
22458 s,@sd_password@,$sd_password,;t t
22459 s,@mon_dir_password@,$mon_dir_password,;t t
22460 s,@mon_fd_password@,$mon_fd_password,;t t
22461 s,@mon_sd_password@,$mon_sd_password,;t t
22462 s,@bimagemgr_cgidir@,$bimagemgr_cgidir,;t t
22463 s,@bimagemgr_docdir@,$bimagemgr_docdir,;t t
22464 s,@bimagemgr_binowner@,$bimagemgr_binowner,;t t
22465 s,@bimagemgr_bingroup@,$bimagemgr_bingroup,;t t
22466 s,@bimagemgr_dataowner@,$bimagemgr_dataowner,;t t
22467 s,@bimagemgr_datagroup@,$bimagemgr_datagroup,;t t
22468 s,@dir_user@,$dir_user,;t t
22469 s,@dir_group@,$dir_group,;t t
22470 s,@sd_user@,$sd_user,;t t
22471 s,@sd_group@,$sd_group,;t t
22472 s,@fd_user@,$fd_user,;t t
22473 s,@fd_group@,$fd_group,;t t
22474 s,@SBINPERM@,$SBINPERM,;t t
22475 s,@SQL_LFLAGS@,$SQL_LFLAGS,;t t
22476 s,@SQL_INCLUDE@,$SQL_INCLUDE,;t t
22477 s,@SQL_BINDIR@,$SQL_BINDIR,;t t
22478 s,@cats@,$cats,;t t
22479 s,@DB_NAME@,$DB_NAME,;t t
22480 s,@GETCONF@,$GETCONF,;t t
22481 s,@ac_ct_GETCONF@,$ac_ct_GETCONF,;t t
22482 s,@X_CFLAGS@,$X_CFLAGS,;t t
22483 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
22484 s,@X_LIBS@,$X_LIBS,;t t
22485 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
22486 s,@LIBOBJS@,$LIBOBJS,;t t
22487 s,@ALLOCA@,$ALLOCA,;t t
22488 s,@FDLIBS@,$FDLIBS,;t t
22489 s,@DEBUG@,$DEBUG,;t t
22490 s,@DINCLUDE@,$DINCLUDE,;t t
22491 s,@DLIB@,$DLIB,;t t
22492 s,@DB_LIBS@,$DB_LIBS,;t t
22493 s,@WCFLAGS@,$WCFLAGS,;t t
22494 s,@WLDFLAGS@,$WLDFLAGS,;t t
22495 s,@OBJLIST@,$OBJLIST,;t t
22496 s,@hostname@,$hostname,;t t
22497 s,@TAPEDRIVE@,$TAPEDRIVE,;t t
22498 s,@PSCMD@,$PSCMD,;t t
22499 s,@WIN32@,$WIN32,;t t
22500 s,@MACOSX@,$MACOSX,;t t
22501 s,@DISTNAME@,$DISTNAME,;t t
22502 s,@DISTVER@,$DISTVER,;t t
22503 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22504 /@MCOMMON@/r $MCOMMON
22505 s,@MCOMMON@,,;t t
22506 CEOF
22507
22508 _ACEOF
22509
22510   cat >>$CONFIG_STATUS <<\_ACEOF
22511   # Split the substitutions into bite-sized pieces for seds with
22512   # small command number limits, like on Digital OSF/1 and HP-UX.
22513   ac_max_sed_lines=48
22514   ac_sed_frag=1 # Number of current file.
22515   ac_beg=1 # First line for current file.
22516   ac_end=$ac_max_sed_lines # Line after last line for current file.
22517   ac_more_lines=:
22518   ac_sed_cmds=
22519   while $ac_more_lines; do
22520     if test $ac_beg -gt 1; then
22521       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22522     else
22523       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22524     fi
22525     if test ! -s $tmp/subs.frag; then
22526       ac_more_lines=false
22527     else
22528       # The purpose of the label and of the branching condition is to
22529       # speed up the sed processing (if there are no `@' at all, there
22530       # is no need to browse any of the substitutions).
22531       # These are the two extra sed commands mentioned above.
22532       (echo ':t
22533   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22534       if test -z "$ac_sed_cmds"; then
22535         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22536       else
22537         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22538       fi
22539       ac_sed_frag=`expr $ac_sed_frag + 1`
22540       ac_beg=$ac_end
22541       ac_end=`expr $ac_end + $ac_max_sed_lines`
22542     fi
22543   done
22544   if test -z "$ac_sed_cmds"; then
22545     ac_sed_cmds=cat
22546   fi
22547 fi # test -n "$CONFIG_FILES"
22548
22549 _ACEOF
22550 cat >>$CONFIG_STATUS <<\_ACEOF
22551 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
22552   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22553   case $ac_file in
22554   - | *:- | *:-:* ) # input from stdin
22555         cat >$tmp/stdin
22556         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22557         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22558   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22559         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22560   * )   ac_file_in=$ac_file.in ;;
22561   esac
22562
22563   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22564   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22565 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22566          X"$ac_file" : 'X\(//\)[^/]' \| \
22567          X"$ac_file" : 'X\(//\)$' \| \
22568          X"$ac_file" : 'X\(/\)' \| \
22569          .     : '\(.\)' 2>/dev/null ||
22570 echo X"$ac_file" |
22571     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22572           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22573           /^X\(\/\/\)$/{ s//\1/; q; }
22574           /^X\(\/\).*/{ s//\1/; q; }
22575           s/.*/./; q'`
22576   { if $as_mkdir_p; then
22577     mkdir -p "$ac_dir"
22578   else
22579     as_dir="$ac_dir"
22580     as_dirs=
22581     while test ! -d "$as_dir"; do
22582       as_dirs="$as_dir $as_dirs"
22583       as_dir=`(dirname "$as_dir") 2>/dev/null ||
22584 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22585          X"$as_dir" : 'X\(//\)[^/]' \| \
22586          X"$as_dir" : 'X\(//\)$' \| \
22587          X"$as_dir" : 'X\(/\)' \| \
22588          .     : '\(.\)' 2>/dev/null ||
22589 echo X"$as_dir" |
22590     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22591           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22592           /^X\(\/\/\)$/{ s//\1/; q; }
22593           /^X\(\/\).*/{ s//\1/; q; }
22594           s/.*/./; q'`
22595     done
22596     test ! -n "$as_dirs" || mkdir $as_dirs
22597   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22598 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22599    { (exit 1); exit 1; }; }; }
22600
22601   ac_builddir=.
22602
22603 if test "$ac_dir" != .; then
22604   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22605   # A "../" for each directory in $ac_dir_suffix.
22606   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22607 else
22608   ac_dir_suffix= ac_top_builddir=
22609 fi
22610
22611 case $srcdir in
22612   .)  # No --srcdir option.  We are building in place.
22613     ac_srcdir=.
22614     if test -z "$ac_top_builddir"; then
22615        ac_top_srcdir=.
22616     else
22617        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22618     fi ;;
22619   [\\/]* | ?:[\\/]* )  # Absolute path.
22620     ac_srcdir=$srcdir$ac_dir_suffix;
22621     ac_top_srcdir=$srcdir ;;
22622   *) # Relative path.
22623     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22624     ac_top_srcdir=$ac_top_builddir$srcdir ;;
22625 esac
22626
22627 # Do not use `cd foo && pwd` to compute absolute paths, because
22628 # the directories may not exist.
22629 case `pwd` in
22630 .) ac_abs_builddir="$ac_dir";;
22631 *)
22632   case "$ac_dir" in
22633   .) ac_abs_builddir=`pwd`;;
22634   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22635   *) ac_abs_builddir=`pwd`/"$ac_dir";;
22636   esac;;
22637 esac
22638 case $ac_abs_builddir in
22639 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22640 *)
22641   case ${ac_top_builddir}. in
22642   .) ac_abs_top_builddir=$ac_abs_builddir;;
22643   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22644   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22645   esac;;
22646 esac
22647 case $ac_abs_builddir in
22648 .) ac_abs_srcdir=$ac_srcdir;;
22649 *)
22650   case $ac_srcdir in
22651   .) ac_abs_srcdir=$ac_abs_builddir;;
22652   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22653   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22654   esac;;
22655 esac
22656 case $ac_abs_builddir in
22657 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22658 *)
22659   case $ac_top_srcdir in
22660   .) ac_abs_top_srcdir=$ac_abs_builddir;;
22661   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22662   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22663   esac;;
22664 esac
22665
22666
22667   case $INSTALL in
22668   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22669   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
22670   esac
22671
22672   if test x"$ac_file" != x-; then
22673     { echo "$as_me:$LINENO: creating $ac_file" >&5
22674 echo "$as_me: creating $ac_file" >&6;}
22675     rm -f "$ac_file"
22676   fi
22677   # Let's still pretend it is `configure' which instantiates (i.e., don't
22678   # use $as_me), people would be surprised to read:
22679   #    /* config.h.  Generated by config.status.  */
22680   if test x"$ac_file" = x-; then
22681     configure_input=
22682   else
22683     configure_input="$ac_file.  "
22684   fi
22685   configure_input=$configure_input"Generated from `echo $ac_file_in |
22686                                      sed 's,.*/,,'` by configure."
22687
22688   # First look for the input files in the build tree, otherwise in the
22689   # src tree.
22690   ac_file_inputs=`IFS=:
22691     for f in $ac_file_in; do
22692       case $f in
22693       -) echo $tmp/stdin ;;
22694       [\\/$]*)
22695          # Absolute (can't be DOS-style, as IFS=:)
22696          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22697 echo "$as_me: error: cannot find input file: $f" >&2;}
22698    { (exit 1); exit 1; }; }
22699          echo "$f";;
22700       *) # Relative
22701          if test -f "$f"; then
22702            # Build tree
22703            echo "$f"
22704          elif test -f "$srcdir/$f"; then
22705            # Source tree
22706            echo "$srcdir/$f"
22707          else
22708            # /dev/null tree
22709            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22710 echo "$as_me: error: cannot find input file: $f" >&2;}
22711    { (exit 1); exit 1; }; }
22712          fi;;
22713       esac
22714     done` || { (exit 1); exit 1; }
22715 _ACEOF
22716 cat >>$CONFIG_STATUS <<_ACEOF
22717   sed "$ac_vpsub
22718 $extrasub
22719 _ACEOF
22720 cat >>$CONFIG_STATUS <<\_ACEOF
22721 :t
22722 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22723 s,@configure_input@,$configure_input,;t t
22724 s,@srcdir@,$ac_srcdir,;t t
22725 s,@abs_srcdir@,$ac_abs_srcdir,;t t
22726 s,@top_srcdir@,$ac_top_srcdir,;t t
22727 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
22728 s,@builddir@,$ac_builddir,;t t
22729 s,@abs_builddir@,$ac_abs_builddir,;t t
22730 s,@top_builddir@,$ac_top_builddir,;t t
22731 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
22732 s,@INSTALL@,$ac_INSTALL,;t t
22733 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22734   rm -f $tmp/stdin
22735   if test x"$ac_file" != x-; then
22736     mv $tmp/out $ac_file
22737   else
22738     cat $tmp/out
22739     rm -f $tmp/out
22740   fi
22741
22742 done
22743 _ACEOF
22744 cat >>$CONFIG_STATUS <<\_ACEOF
22745
22746 #
22747 # CONFIG_HEADER section.
22748 #
22749
22750 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22751 # NAME is the cpp macro being defined and VALUE is the value it is being given.
22752 #
22753 # ac_d sets the value in "#define NAME VALUE" lines.
22754 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
22755 ac_dB='[         ].*$,\1#\2'
22756 ac_dC=' '
22757 ac_dD=',;t'
22758 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22759 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
22760 ac_uB='$,\1#\2define\3'
22761 ac_uC=' '
22762 ac_uD=',;t'
22763
22764 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
22765   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22766   case $ac_file in
22767   - | *:- | *:-:* ) # input from stdin
22768         cat >$tmp/stdin
22769         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22770         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22771   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22772         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22773   * )   ac_file_in=$ac_file.in ;;
22774   esac
22775
22776   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
22777 echo "$as_me: creating $ac_file" >&6;}
22778
22779   # First look for the input files in the build tree, otherwise in the
22780   # src tree.
22781   ac_file_inputs=`IFS=:
22782     for f in $ac_file_in; do
22783       case $f in
22784       -) echo $tmp/stdin ;;
22785       [\\/$]*)
22786          # Absolute (can't be DOS-style, as IFS=:)
22787          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22788 echo "$as_me: error: cannot find input file: $f" >&2;}
22789    { (exit 1); exit 1; }; }
22790          # Do quote $f, to prevent DOS paths from being IFS'd.
22791          echo "$f";;
22792       *) # Relative
22793          if test -f "$f"; then
22794            # Build tree
22795            echo "$f"
22796          elif test -f "$srcdir/$f"; then
22797            # Source tree
22798            echo "$srcdir/$f"
22799          else
22800            # /dev/null tree
22801            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22802 echo "$as_me: error: cannot find input file: $f" >&2;}
22803    { (exit 1); exit 1; }; }
22804          fi;;
22805       esac
22806     done` || { (exit 1); exit 1; }
22807   # Remove the trailing spaces.
22808   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
22809
22810 _ACEOF
22811
22812 # Transform confdefs.h into two sed scripts, `conftest.defines' and
22813 # `conftest.undefs', that substitutes the proper values into
22814 # config.h.in to produce config.h.  The first handles `#define'
22815 # templates, and the second `#undef' templates.
22816 # And first: Protect against being on the right side of a sed subst in
22817 # config.status.  Protect against being in an unquoted here document
22818 # in config.status.
22819 rm -f conftest.defines conftest.undefs
22820 # Using a here document instead of a string reduces the quoting nightmare.
22821 # Putting comments in sed scripts is not portable.
22822 #
22823 # `end' is used to avoid that the second main sed command (meant for
22824 # 0-ary CPP macros) applies to n-ary macro definitions.
22825 # See the Autoconf documentation for `clear'.
22826 cat >confdef2sed.sed <<\_ACEOF
22827 s/[\\&,]/\\&/g
22828 s,[\\$`],\\&,g
22829 t clear
22830 : clear
22831 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
22832 t end
22833 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
22834 : end
22835 _ACEOF
22836 # If some macros were called several times there might be several times
22837 # the same #defines, which is useless.  Nevertheless, we may not want to
22838 # sort them, since we want the *last* AC-DEFINE to be honored.
22839 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
22840 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
22841 rm -f confdef2sed.sed
22842
22843 # This sed command replaces #undef with comments.  This is necessary, for
22844 # example, in the case of _POSIX_SOURCE, which is predefined and required
22845 # on some systems where configure will not decide to define it.
22846 cat >>conftest.undefs <<\_ACEOF
22847 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
22848 _ACEOF
22849
22850 # Break up conftest.defines because some shells have a limit on the size
22851 # of here documents, and old seds have small limits too (100 cmds).
22852 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
22853 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
22854 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
22855 echo '  :' >>$CONFIG_STATUS
22856 rm -f conftest.tail
22857 while grep . conftest.defines >/dev/null
22858 do
22859   # Write a limited-size here document to $tmp/defines.sed.
22860   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
22861   # Speed up: don't consider the non `#define' lines.
22862   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
22863   # Work around the forget-to-reset-the-flag bug.
22864   echo 't clr' >>$CONFIG_STATUS
22865   echo ': clr' >>$CONFIG_STATUS
22866   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
22867   echo 'CEOF
22868   sed -f $tmp/defines.sed $tmp/in >$tmp/out
22869   rm -f $tmp/in
22870   mv $tmp/out $tmp/in
22871 ' >>$CONFIG_STATUS
22872   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
22873   rm -f conftest.defines
22874   mv conftest.tail conftest.defines
22875 done
22876 rm -f conftest.defines
22877 echo '  fi # grep' >>$CONFIG_STATUS
22878 echo >>$CONFIG_STATUS
22879
22880 # Break up conftest.undefs because some shells have a limit on the size
22881 # of here documents, and old seds have small limits too (100 cmds).
22882 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
22883 rm -f conftest.tail
22884 while grep . conftest.undefs >/dev/null
22885 do
22886   # Write a limited-size here document to $tmp/undefs.sed.
22887   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
22888   # Speed up: don't consider the non `#undef'
22889   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
22890   # Work around the forget-to-reset-the-flag bug.
22891   echo 't clr' >>$CONFIG_STATUS
22892   echo ': clr' >>$CONFIG_STATUS
22893   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
22894   echo 'CEOF
22895   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
22896   rm -f $tmp/in
22897   mv $tmp/out $tmp/in
22898 ' >>$CONFIG_STATUS
22899   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
22900   rm -f conftest.undefs
22901   mv conftest.tail conftest.undefs
22902 done
22903 rm -f conftest.undefs
22904
22905 cat >>$CONFIG_STATUS <<\_ACEOF
22906   # Let's still pretend it is `configure' which instantiates (i.e., don't
22907   # use $as_me), people would be surprised to read:
22908   #    /* config.h.  Generated by config.status.  */
22909   if test x"$ac_file" = x-; then
22910     echo "/* Generated by configure.  */" >$tmp/config.h
22911   else
22912     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
22913   fi
22914   cat $tmp/in >>$tmp/config.h
22915   rm -f $tmp/in
22916   if test x"$ac_file" != x-; then
22917     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
22918       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22919 echo "$as_me: $ac_file is unchanged" >&6;}
22920     else
22921       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22922 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22923          X"$ac_file" : 'X\(//\)[^/]' \| \
22924          X"$ac_file" : 'X\(//\)$' \| \
22925          X"$ac_file" : 'X\(/\)' \| \
22926          .     : '\(.\)' 2>/dev/null ||
22927 echo X"$ac_file" |
22928     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22929           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22930           /^X\(\/\/\)$/{ s//\1/; q; }
22931           /^X\(\/\).*/{ s//\1/; q; }
22932           s/.*/./; q'`
22933       { if $as_mkdir_p; then
22934     mkdir -p "$ac_dir"
22935   else
22936     as_dir="$ac_dir"
22937     as_dirs=
22938     while test ! -d "$as_dir"; do
22939       as_dirs="$as_dir $as_dirs"
22940       as_dir=`(dirname "$as_dir") 2>/dev/null ||
22941 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22942          X"$as_dir" : 'X\(//\)[^/]' \| \
22943          X"$as_dir" : 'X\(//\)$' \| \
22944          X"$as_dir" : 'X\(/\)' \| \
22945          .     : '\(.\)' 2>/dev/null ||
22946 echo X"$as_dir" |
22947     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22948           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22949           /^X\(\/\/\)$/{ s//\1/; q; }
22950           /^X\(\/\).*/{ s//\1/; q; }
22951           s/.*/./; q'`
22952     done
22953     test ! -n "$as_dirs" || mkdir $as_dirs
22954   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22955 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22956    { (exit 1); exit 1; }; }; }
22957
22958       rm -f $ac_file
22959       mv $tmp/config.h $ac_file
22960     fi
22961   else
22962     cat $tmp/config.h
22963     rm -f $tmp/config.h
22964   fi
22965 done
22966 _ACEOF
22967 cat >>$CONFIG_STATUS <<\_ACEOF
22968
22969 #
22970 # CONFIG_COMMANDS section.
22971 #
22972 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
22973   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
22974   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
22975   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
22976 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22977          X"$ac_dest" : 'X\(//\)[^/]' \| \
22978          X"$ac_dest" : 'X\(//\)$' \| \
22979          X"$ac_dest" : 'X\(/\)' \| \
22980          .     : '\(.\)' 2>/dev/null ||
22981 echo X"$ac_dest" |
22982     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22983           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22984           /^X\(\/\/\)$/{ s//\1/; q; }
22985           /^X\(\/\).*/{ s//\1/; q; }
22986           s/.*/./; q'`
22987   { if $as_mkdir_p; then
22988     mkdir -p "$ac_dir"
22989   else
22990     as_dir="$ac_dir"
22991     as_dirs=
22992     while test ! -d "$as_dir"; do
22993       as_dirs="$as_dir $as_dirs"
22994       as_dir=`(dirname "$as_dir") 2>/dev/null ||
22995 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22996          X"$as_dir" : 'X\(//\)[^/]' \| \
22997          X"$as_dir" : 'X\(//\)$' \| \
22998          X"$as_dir" : 'X\(/\)' \| \
22999          .     : '\(.\)' 2>/dev/null ||
23000 echo X"$as_dir" |
23001     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23002           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23003           /^X\(\/\/\)$/{ s//\1/; q; }
23004           /^X\(\/\).*/{ s//\1/; q; }
23005           s/.*/./; q'`
23006     done
23007     test ! -n "$as_dirs" || mkdir $as_dirs
23008   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23009 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23010    { (exit 1); exit 1; }; }; }
23011
23012   ac_builddir=.
23013
23014 if test "$ac_dir" != .; then
23015   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23016   # A "../" for each directory in $ac_dir_suffix.
23017   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23018 else
23019   ac_dir_suffix= ac_top_builddir=
23020 fi
23021
23022 case $srcdir in
23023   .)  # No --srcdir option.  We are building in place.
23024     ac_srcdir=.
23025     if test -z "$ac_top_builddir"; then
23026        ac_top_srcdir=.
23027     else
23028        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23029     fi ;;
23030   [\\/]* | ?:[\\/]* )  # Absolute path.
23031     ac_srcdir=$srcdir$ac_dir_suffix;
23032     ac_top_srcdir=$srcdir ;;
23033   *) # Relative path.
23034     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23035     ac_top_srcdir=$ac_top_builddir$srcdir ;;
23036 esac
23037
23038 # Do not use `cd foo && pwd` to compute absolute paths, because
23039 # the directories may not exist.
23040 case `pwd` in
23041 .) ac_abs_builddir="$ac_dir";;
23042 *)
23043   case "$ac_dir" in
23044   .) ac_abs_builddir=`pwd`;;
23045   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23046   *) ac_abs_builddir=`pwd`/"$ac_dir";;
23047   esac;;
23048 esac
23049 case $ac_abs_builddir in
23050 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23051 *)
23052   case ${ac_top_builddir}. in
23053   .) ac_abs_top_builddir=$ac_abs_builddir;;
23054   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23055   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23056   esac;;
23057 esac
23058 case $ac_abs_builddir in
23059 .) ac_abs_srcdir=$ac_srcdir;;
23060 *)
23061   case $ac_srcdir in
23062   .) ac_abs_srcdir=$ac_abs_builddir;;
23063   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23064   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23065   esac;;
23066 esac
23067 case $ac_abs_builddir in
23068 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23069 *)
23070   case $ac_top_srcdir in
23071   .) ac_abs_top_srcdir=$ac_abs_builddir;;
23072   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23073   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23074   esac;;
23075 esac
23076
23077
23078   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
23079 echo "$as_me: executing $ac_dest commands" >&6;}
23080   case $ac_dest in
23081     default ) (echo "Doing make of dependencies"; ${MAKE:-make} depend;)
23082  ;;
23083   esac
23084 done
23085 _ACEOF
23086
23087 cat >>$CONFIG_STATUS <<\_ACEOF
23088
23089 { (exit 0); exit 0; }
23090 _ACEOF
23091 chmod +x $CONFIG_STATUS
23092 ac_clean_files=$ac_clean_files_save
23093
23094
23095 # configure is writing to config.log, and then calls config.status.
23096 # config.status does its own redirection, appending to config.log.
23097 # Unfortunately, on DOS this fails, as config.log is still kept open
23098 # by configure, so config.status won't be able to write to it; its
23099 # output is simply discarded.  So we exec the FD to /dev/null,
23100 # effectively closing config.log, so it can be properly (re)opened and
23101 # appended to by config.status.  When coming back to configure, we
23102 # need to make the FD available again.
23103 if test "$no_create" != yes; then
23104   ac_cs_success=:
23105   ac_config_status_args=
23106   test "$silent" = yes &&
23107     ac_config_status_args="$ac_config_status_args --quiet"
23108   exec 5>/dev/null
23109   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23110   exec 5>>config.log
23111   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23112   # would make configure fail if this is the last instruction.
23113   $ac_cs_success || { (exit 1); exit 1; }
23114 fi
23115
23116
23117 cd scripts
23118 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
23119 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
23120 cd ..
23121
23122 c=src/cats
23123
23124 chmod 755 $c/create_bacula_database   $c/update_bacula_tables  $c/make_bacula_tables
23125 chmod 755 $c/grant_bacula_privileges  $c/drop_bacula_tables    $c/drop_bacula_database
23126
23127 chmod 755 $c/create_bdb_database      $c/update_bdb_tables     $c/make_bdb_tables
23128 chmod 755 $c/grant_bdb_privileges     $c/drop_bdb_tables       $c/drop_bdb_database
23129
23130 chmod 755 $c/create_mysql_database    $c/update_mysql_tables   $c/make_mysql_tables
23131 chmod 755 $c/grant_mysql_privileges   $c/drop_mysql_tables     $c/drop_mysql_database
23132
23133 chmod 755 $c/create_sqlite_database   $c/update_sqlite_tables  $c/make_sqlite_tables
23134 chmod 755 $c/grant_sqlite_privileges  $c/drop_sqlite_tables    $c/drop_sqlite_database
23135
23136 chmod 755 $c/create_postgresql_database  $c/update_postgresql_tables $c/make_postgresql_tables
23137 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables   $c/drop_postgresql_database
23138
23139 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
23140 chmod 755 $c/sqlite
23141 chmod 755 $c/mysql
23142
23143 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
23144    largefile_support="yes"
23145 fi
23146
23147 #
23148 # A whole lot of hand springs to get the compiler version.
23149 #  This is because gcc changed the output in version 3.0
23150 #
23151 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
23152 if test "x${CCVERSION}" = "x" ; then
23153   CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
23154 fi
23155 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
23156 if test x"${CXXVERSION}" = x ; then
23157   CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
23158 fi
23159
23160 if test "x${subsysdir}" = "x${sbindir}" ; then
23161    echo " "
23162    echo " "
23163    echo "You have set --sbindir and --with-subsys-dir"
23164    echo "  both equal to: ${subsysdir} "
23165    echo "  This is not permitted. Please reconfigure."
23166    echo " "
23167    echo "Aborting configuration ..."
23168    echo " "
23169    echo " "
23170    exit 1
23171 fi
23172
23173 if test "x${db_name}" = "xInternal" ; then
23174    echo " "
23175    echo " "
23176    echo "You have not specified either --enable-client-only or one of the"
23177    echo "  supported databases: MySQL, PostgreSQL, SQLite3 or SQLite."
23178    echo "  This is not permitted. Please reconfigure."
23179    echo " "
23180    echo "Aborting the configuration ..."
23181    echo " "
23182    echo " "
23183    exit 1
23184 fi
23185
23186 echo "
23187 Configuration on `date`:
23188
23189   Host:                       $host -- ${DISTNAME} ${DISTVER}
23190   Bacula version:             ${VERSION} (${DATE})
23191   Source code location:       ${srcdir}
23192   Install binaries:           ${sbindir}
23193   Install config files:       ${sysconfdir}
23194   Scripts directory:          ${scriptdir}
23195   Working directory:          ${working_dir}
23196   PID directory:              ${piddir}
23197   Subsys directory:           ${subsysdir}
23198   Man directory:              ${mandir}
23199   C Compiler:                 ${CC} ${CCVERSION}
23200   C++ Compiler:               ${CXX} ${CXXVERSION}
23201   Compiler flags:             ${WCFLAGS} ${CFLAGS}
23202   Linker flags:               ${WLDFLAGS} ${LDFLAGS}
23203   Libraries:                  ${LIBS}
23204   Statically Linked Tools:    ${support_static_tools}
23205   Statically Linked FD:       ${support_static_fd}
23206   Statically Linked SD:       ${support_static_sd}
23207   Statically Linked DIR:      ${support_static_dir}
23208   Statically Linked CONS:     ${support_static_cons}
23209   Database type:              ${db_name}
23210   Database lib:               ${DB_LIBS}
23211
23212   Job Output Email:           ${job_email}
23213   Traceback Email:            ${dump_email}
23214   SMTP Host Address:          ${smtp_host}
23215
23216   Director Port:              ${dir_port}
23217   File daemon Port:           ${fd_port}
23218   Storage daemon Port:        ${sd_port}
23219
23220   Director User:              ${dir_user}
23221   Director Group:             ${dir_group}
23222   Storage Daemon User:        ${sd_user}
23223   Storage DaemonGroup:        ${sd_group}
23224   File Daemon User:           ${fd_user}
23225   File Daemon Group:          ${fd_group}
23226
23227   SQL binaries Directory      ${SQL_BINDIR}
23228
23229   Large file support:         $largefile_support
23230   Bacula conio support:       ${got_conio} ${CONS_LIBS}
23231   readline support:           ${got_readline} ${PRTREADLINE_SRC}
23232   TCP Wrappers support:       ${TCPW_MSG}
23233   TLS support:                ${support_tls}
23234   ZLIB support:               ${have_zlib}
23235   enable-smartalloc:          ${support_smartalloc}
23236   enable-gnome:               ${support_gnome} ${gnome_version}
23237   enable-wx-console:          ${support_wx_console} ${wx_version}
23238   enable-tray-monitor:        ${support_tray_monitor}
23239   client-only:                ${build_client_only}
23240   ACL support:                ${have_acl}
23241   Python support:             ${support_python} ${PYTHON_LIBS}
23242
23243   " > config.out
23244
23245 cat config.out